{"version":3,"sources":["webpack:///../examples/checkbox-group/CheckboxGroupDemo2.vue","webpack:///../examples/checkbox-group/CheckboxGroupDemo2.vue?9540","webpack:///../core/mixins/trueValueMixin.js","webpack:///../core/mixins/localValueMixin.js","webpack:///../core/mixins/optionsMixin.js","webpack:///../core/mixins/preventBrowserBackMixin.js","webpack:///../examples/checkbox-group/CheckboxGroupDemo2.vue?9a92"],"names":["class","style","chosenCities3","name","options","countries","color","components","LvCheckboxGroup","data","cities","code","disabled","checked","chosenCities1","chosenCities2","chosenCities4","__exports__","render","props","emits","computed","modelValue","this","$attrs","value","methods","updateValue","newValue","$emit","Array","optionLabel","optionValue","optionDisabled","dataKey","getOptionLabel","option","ObjectUtils","resolveFieldData","getOptionValue","getOptionRenderKey","isOptionDisabled","isOptionSelected","contains","equals","equalityKey","popstateEvent","preventPopstate","window","history","pushState","id","addEventListener","handleOnPopstate","removeEventListener","handleOnBrowserBack","manuallyClosePopstate","$router","go"],"mappings":"sNACOA,MAAM,kB,GAGNC,MAAA,uB,kHAHL,eAIM,MAJN,EAIM,CAFJ,eAAqH,G,WAAzF,EAAAC,c,qDAAA,EAAAA,cAAa,IAAEC,KAAK,YAAaC,QAAS,EAAAC,UAAWC,MAAM,W,iCACvF,eAAmF,IAAnF,EAA4B,mCAAgC,eAAG,EAAAJ,eAAa,Q,YAMjE,GACbK,WAAY,CACVC,gBAAA,QAEFC,KAJa,WAKX,MAAO,CACLC,OAAQ,CACN,CAAEP,KAAM,WAAYQ,KAAM,MAC1B,CAAER,KAAM,OAAQQ,KAAM,KAAMC,UAAU,GACtC,CAAET,KAAM,SAAUQ,KAAM,OACxB,CAAER,KAAM,WAAYQ,KAAM,MAAOE,SAAS,GAC1C,CAAEV,KAAM,QAASQ,KAAM,QAEzBN,UAAW,CAAC,QAAS,MAAO,QAAS,UACrCS,cAAe,CAAC,CAAEX,KAAM,QAASQ,KAAM,QACvCI,cAAe,CAAC,MAAO,MACvBb,cAAe,KACfc,cAAe,CAAC,U,i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KAAKS,YAAc,KAAOT,KAAKW,WCjC7B,GACbzB,KADa,WAEX,MAAO,CACLqC,cAAe,OAGnBpB,QAAS,CACPqB,gBADO,WAELC,OAAOC,QAAQC,UAAU,CAAEC,GAAI,GAAK,KAAM,MAC1CH,OAAOI,iBAAiB,WAAY7B,KAAK8B,kBACzC9B,KAAKuB,eAAgB,GAEvBO,iBANO,WAOLL,OAAOM,oBAAoB,WAAY,MACvC/B,KAAKuB,cAAgB,KACjBvB,KAAKgC,qBACPhC,KAAKgC,uBAGTC,sBAbO,WAcDjC,KAAKuB,gBAEHvB,KAAKkC,SACPlC,KAAKkC,QAAQC,IAAI,GAEnBV,OAAOM,oBAAoB,WAAY,MACvC/B,KAAKuB,cAAgB,U,yDC1B7B","file":"js/chunk-7ba00643.7cd6de95.js","sourcesContent":["\n \n \n \n Chosen options (using v-model): {{ chosenCities3 }}\n \n\n\n\n\n","import { render } from \"./CheckboxGroupDemo2.vue?vue&type=template&id=d11a0e98&scoped=true\"\nimport script from \"./CheckboxGroupDemo2.vue?vue&type=script&lang=js\"\nexport * from \"./CheckboxGroupDemo2.vue?vue&type=script&lang=js\"\n\nimport \"./CheckboxGroupDemo2.vue?vue&type=style&index=0&id=d11a0e98&lang=scss&scoped=true\"\n\nimport exportComponent from \"/opt/build/repo/docs-v3/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-d11a0e98\"]])\n\nexport default __exports__","export default {\n props: ['value'],\n emits: ['input', 'update:modelValue'],\n computed: {\n modelValue() {\n return this.$attrs.modelValue ? this.$attrs.modelValue : this.value;\n },\n },\n methods: {\n updateValue(newValue) {\n // TODO Handle conditions in generic way...\n this.$emit('input', newValue); // Only for Vue 2\n this.$emit('update:modelValue', newValue); // Only for Vue 3\n },\n },\n};\n","export default {\n props: ['value'],\n emits: ['input', 'update:modelValue'],\n computed: {\n modelValue() {\n // return this.$attrs.modelValue ? this.$attrs.modelValue : this.value;\n return this.value ? this.value : this.$attrs.modelValue ? this.$attrs.modelValue : null;\n },\n },\n methods: {\n updateValue(newValue) {\n // TODO Handle conditions in generic way...\n this.$emit('input', newValue); // Only for Vue 2\n this.$emit('update:modelValue', newValue); // Only for Vue 3\n },\n },\n};\n","import { ObjectUtils } from 'lightvue/utils';\n\nexport default {\n props: {\n options: Array,\n optionLabel: null,\n optionValue: null,\n optionDisabled: null,\n dataKey: null,\n },\n methods: {\n getOptionLabel(option) {\n return this.optionLabel ? ObjectUtils.resolveFieldData(option, this.optionLabel) : option;\n },\n getOptionValue(option) {\n return this.optionValue ? ObjectUtils.resolveFieldData(option, this.optionValue) : option;\n },\n getOptionRenderKey(option) {\n return this.dataKey ? ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option);\n },\n isOptionDisabled(option) {\n return this.optionDisabled ? ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;\n },\n isOptionSelected(option) {\n if (this.modelValue instanceof Array) {\n return ObjectUtils.contains(this.getOptionValue(option), this.modelValue);\n } else {\n return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);\n }\n },\n },\n computed: {\n equalityKey() {\n return this.optionValue ? null : this.dataKey;\n },\n },\n};\n","export default {\n data() {\n return {\n popstateEvent: null,\n };\n },\n methods: {\n preventPopstate() {\n window.history.pushState({ id: 2 }, null, null);\n window.addEventListener('popstate', this.handleOnPopstate);\n this.popstateEvent = true;\n },\n handleOnPopstate() {\n window.removeEventListener('popstate', null);\n this.popstateEvent = null;\n if (this.handleOnBrowserBack) {\n this.handleOnBrowserBack();\n }\n },\n manuallyClosePopstate() {\n if (this.popstateEvent) {\n // window.history.back();\n if (this.$router) {\n this.$router.go(-1);\n }\n window.removeEventListener('popstate', null);\n this.popstateEvent = null;\n }\n },\n },\n};\n","export * from \"-!../../docs-v3/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../docs-v3/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../docs-v3/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/stylePostLoader.js!../../docs-v3/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../docs-v3/node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../docs-v3/node_modules/cache-loader/dist/cjs.js??ref--0-0!../../docs-v3/node_modules/@vue/cli-service/node_modules/vue-loader-v16/dist/index.js??ref--0-1!./CheckboxGroupDemo2.vue?vue&type=style&index=0&id=d11a0e98&lang=scss&scoped=true\""],"sourceRoot":""}
Chosen options (using v-model): {{ chosenCities3 }}