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AAO,MAAP;AACD;AArCO,KApBG;AA4Db,aAAS;AACP;;;;;AAKA,yBANO,+BAMU;AACf,gBAAM,SAAS,SAAS,KAAK,MAAd,CAAf;AAEA,mBAAO,MAAM,MAAN,IACH,KAAK,GAAL,GAAW,KAAK,GAAL,CAAS,YAApB,GAAmC,CADhC,GAEH,MAFJ;AAGD;AAZM,KA5DI;AA2Eb,UA3Ea,kBA2EL,CA3EK,EA2EJ;AACP,YAAM,OAAO,KAAK,kBAAL,CAAwB,KAAK,KAA7B,EAAoC;AAC/C,yBAAa,UADkC;AAE/C;AACE,sCAAsB,KAAK,QAD7B;AAEE,mCAAmB,CAAC,KAAK,QAAN,KAAmB,KAAK,GAAL,IAAY,KAAK,KAApC,CAFrB;AAGE,mCAAmB,KAAK;AAH1B,eAIK,KAAK,YAJV,CAF+C;AAQ/C,mBAAO,KAAK,MARmC;AAS/C,iBAAK;AAT0C,SAApC,CAAb;AAYA,eAAO,EAAE,QAAF,EAAY,IAAZ,EAAkB,KAAK,MAAL,CAAY,OAA9B,CAAP;AACD;AAzFY,C","sourcesContent":["// Styles\nimport '../../stylus/components/_footer.styl'\n\n// Mixins\nimport Applicationable from '../../mixins/applicationable'\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n/* @vue/component */\nexport default {\n name: 'v-footer',\n\n mixins: [\n Applicationable(null, [\n 'height',\n 'inset'\n ]),\n Colorable,\n Themeable\n ],\n\n props: {\n height: {\n default: 32,\n type: [Number, String]\n },\n inset: Boolean\n },\n\n computed: {\n applicationProperty () {\n return this.inset ? 'insetFooter' : 'footer'\n },\n computedMarginBottom () {\n if (!this.app) return\n\n return this.$vuetify.application.bottom\n },\n computedPaddingLeft () {\n return !this.app || !this.inset\n ? 0\n : this.$vuetify.application.left\n },\n computedPaddingRight () {\n return !this.app || !this.inset\n ? 0\n : this.$vuetify.application.right\n },\n styles () {\n const styles = {\n height: isNaN(this.height) ? this.height : `${this.height}px`\n }\n\n if (this.computedPaddingLeft) {\n styles.paddingLeft = `${this.computedPaddingLeft}px`\n }\n\n if (this.computedPaddingRight) {\n styles.paddingRight = `${this.computedPaddingRight}px`\n }\n\n if (this.computedMarginBottom) {\n styles.marginBottom = `${this.computedMarginBottom}px`\n }\n\n return styles\n }\n },\n\n methods: {\n /**\n * Update the application layout\n *\n * @return {number}\n */\n updateApplication () {\n const height = parseInt(this.height)\n\n return isNaN(height)\n ? this.$el ? this.$el.clientHeight : 0\n : height\n }\n },\n\n render (h) {\n const data = this.setBackgroundColor(this.color, {\n staticClass: 'v-footer',\n 'class': {\n 'v-footer--absolute': this.absolute,\n 'v-footer--fixed': !this.absolute && (this.app || this.fixed),\n 'v-footer--inset': this.inset,\n ...this.themeClasses\n },\n style: this.styles,\n ref: 'content'\n })\n\n return h('footer', data, this.$slots.default)\n }\n}\n"],"sourceRoot":""}
|