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;;AAED,aAAO,KAAP;AACD;AAzBO,GAhBH;AA4CP,EAAA,OAAO,EAAE;AACP,IAAA,WADO,yBACI;AACT,UAAM,MAAM,GAAG,kBAAS,OAAT,CAAiB,OAAjB,CAAyB,WAAzB,CAAqC,IAArC,CAA0C,IAA1C,CAAf;;AAEA,UAAI,CAAC,MAAL,EAAa,OAAO,IAAP;AAEb,aAAO,KAAK,cAAL,CAAoB,KAApB,EAA2B;AAChC,QAAA,WAAW,EAAE;AADmB,OAA3B,EAEJ,CAAC,MAAD,CAFI,CAAP;AAGD;AATM,GA5CF;AAwDP,EAAA,MAxDO,kBAwDC,CAxDD,EAwDE;AAAA,gCACe,KAAK,iBAAL,EADf;AAAA,QACC,GADD,yBACC,GADD;AAAA,QACM,IADN,yBACM,IADN;;AAGP,IAAA,IAAI,CAAC,KAAL,GAAa,KAAK,MAAlB;;AAEA,QAAI,KAAK,WAAT,EAAsB;AACpB,MAAA,IAAI,CAAC,KAAL,GAAa,IAAI,CAAC,KAAL,IAAc,EAA3B;AACA,MAAA,IAAI,CAAC,KAAL,CAAW,QAAX,GAAsB,CAAtB;AACD;;AAED,WAAO,CAAC,CAAC,GAAD,EAAM,KAAK,kBAAL,CAAwB,KAAK,KAA7B,EAAoC,IAApC,CAAN,EAAiD,CACvD,KAAK,WAAL,EADuD,EAEvD,KAAK,MAAL,CAAY,OAF2C,CAAjD,CAAR;AAID;AAtEM,CAJM,C","sourcesContent":["// Styles\nimport './VCard.sass'\n\n// Extensions\nimport VSheet from '../VSheet'\n\n// Mixins\nimport Loadable from '../../mixins/loadable'\nimport Routable from '../../mixins/routable'\n\n// Helpers\nimport mixins from '../../util/mixins'\n\n// Types\nimport { VNode } from 'vue'\n\n/* @vue/component */\nexport default mixins(\n Loadable,\n Routable,\n VSheet\n).extend({\n name: 'v-card',\n\n props: {\n flat: Boolean,\n hover: Boolean,\n img: String,\n link: Boolean,\n loaderHeight: {\n type: [Number, String],\n default: 4,\n },\n outlined: Boolean,\n raised: Boolean,\n },\n\n computed: {\n classes (): object {\n return {\n 'v-card': true,\n ...Routable.options.computed.classes.call(this),\n 'v-card--flat': this.flat,\n 'v-card--hover': this.hover,\n 'v-card--link': this.isClickable,\n 'v-card--loading': this.loading,\n 'v-card--disabled': this.loading || this.disabled,\n 'v-card--outlined': this.outlined,\n 'v-card--raised': this.raised,\n ...VSheet.options.computed.classes.call(this),\n }\n },\n styles (): object {\n const style: Dictionary<string> = {\n ...VSheet.options.computed.styles.call(this),\n }\n\n if (this.img) {\n style.background = `url(\"${this.img}\") center center / cover no-repeat`\n }\n\n return style\n },\n },\n\n methods: {\n genProgress () {\n const render = Loadable.options.methods.genProgress.call(this)\n\n if (!render) return null\n\n return this.$createElement('div', {\n staticClass: 'v-card__progress',\n }, [render])\n },\n },\n\n render (h): VNode {\n const { tag, data } = this.generateRouteLink()\n\n data.style = this.styles\n\n if (this.isClickable) {\n data.attrs = data.attrs || {}\n data.attrs.tabindex = 0\n }\n\n return h(tag, this.setBackgroundColor(this.color, data), [\n this.genProgress(),\n this.$slots.default,\n ])\n },\n})\n"],"sourceRoot":"","file":"VCard.js"} |