{"version":3,"file":"VCheckbox-RHhwSBRz.js","sources":["../../../node_modules/.pnpm/vuetify@2.7.2_vue@2.7.16/node_modules/vuetify/lib/components/VCheckbox/VCheckbox.js"],"sourcesContent":["// Styles\nimport \"../../../src/components/VCheckbox/VCheckbox.sass\";\nimport \"../../../src/styles/components/_selection-controls.sass\"; // Components\n\nimport VIcon from '../VIcon';\nimport VInput from '../VInput'; // Mixins\n\nimport Selectable from '../../mixins/selectable';\n/* @vue/component */\n\nexport default Selectable.extend({\n name: 'v-checkbox',\n props: {\n indeterminate: Boolean,\n indeterminateIcon: {\n type: String,\n default: '$checkboxIndeterminate'\n },\n offIcon: {\n type: String,\n default: '$checkboxOff'\n },\n onIcon: {\n type: String,\n default: '$checkboxOn'\n }\n },\n\n data() {\n return {\n inputIndeterminate: this.indeterminate\n };\n },\n\n computed: {\n classes() {\n return { ...VInput.options.computed.classes.call(this),\n 'v-input--selection-controls': true,\n 'v-input--checkbox': true,\n 'v-input--indeterminate': this.inputIndeterminate\n };\n },\n\n computedIcon() {\n if (this.inputIndeterminate) {\n return this.indeterminateIcon;\n } else if (this.isActive) {\n return this.onIcon;\n } else {\n return this.offIcon;\n }\n },\n\n // Do not return undefined if disabled,\n // according to spec, should still show\n // a color when disabled and active\n validationState() {\n if (this.isDisabled && !this.inputIndeterminate) return undefined;\n if (this.hasError && this.shouldValidate) return 'error';\n if (this.hasSuccess) return 'success';\n if (this.hasColor !== null) return this.computedColor;\n return undefined;\n }\n\n },\n watch: {\n indeterminate(val) {\n // https://github.com/vuetifyjs/vuetify/issues/8270\n this.$nextTick(() => this.inputIndeterminate = val);\n },\n\n inputIndeterminate(val) {\n this.$emit('update:indeterminate', val);\n },\n\n isActive() {\n if (!this.indeterminate) return;\n this.inputIndeterminate = false;\n }\n\n },\n methods: {\n genCheckbox() {\n const {\n title,\n ...checkboxAttrs\n } = this.attrs$;\n return this.$createElement('div', {\n staticClass: 'v-input--selection-controls__input'\n }, [this.$createElement(VIcon, this.setTextColor(this.validationState, {\n props: {\n dense: this.dense,\n dark: this.dark,\n light: this.light\n }\n }), this.computedIcon), this.genInput('checkbox', { ...checkboxAttrs,\n 'aria-checked': this.inputIndeterminate ? 'mixed' : this.isActive.toString()\n }), this.genRipple(this.setTextColor(this.rippleState))]);\n },\n\n genDefaultSlot() {\n return [this.genCheckbox(), this.genLabel()];\n }\n\n }\n});\n//# sourceMappingURL=VCheckbox.js.map"],"names":["__unplugin_components_28","Selectable","__spreadProps","__spreadValues","VInput","val","_a","title","checkboxAttrs","__objRest","VIcon"],"mappings":"ojCAUA,MAAeA,EAAAC,EAAW,OAAO,CAC/B,KAAM,aACN,MAAO,CACL,cAAe,QACf,kBAAmB,CACjB,KAAM,OACN,QAAS,wBACV,EACD,QAAS,CACP,KAAM,OACN,QAAS,cACV,EACD,OAAQ,CACN,KAAM,OACN,QAAS,aACf,CACG,EAED,MAAO,CACL,MAAO,CACL,mBAAoB,KAAK,aAC1B,CACF,EAED,SAAU,CACR,SAAU,CACR,OAAOC,EAAAC,EAAA,GAAKC,EAAO,QAAQ,SAAS,QAAQ,KAAK,IAAI,GAA9C,CACL,8BAA+B,GAC/B,oBAAqB,GACrB,yBAA0B,KAAK,kBAChC,EACF,EAED,cAAe,CACb,OAAI,KAAK,mBACA,KAAK,kBACH,KAAK,SACP,KAAK,OAEL,KAAK,OAEf,EAKD,iBAAkB,CAChB,GAAI,OAAK,YAAc,CAAC,KAAK,oBAC7B,IAAI,KAAK,UAAY,KAAK,eAAgB,MAAO,QACjD,GAAI,KAAK,WAAY,MAAO,UAC5B,GAAI,KAAK,WAAa,KAAM,OAAO,KAAK,cAE9C,CAEG,EACD,MAAO,CACL,cAAcC,EAAK,CAEjB,KAAK,UAAU,IAAM,KAAK,mBAAqBA,CAAG,CACnD,EAED,mBAAmBA,EAAK,CACtB,KAAK,MAAM,uBAAwBA,CAAG,CACvC,EAED,UAAW,CACJ,KAAK,gBACV,KAAK,mBAAqB,GAChC,CAEG,EACD,QAAS,CACP,aAA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