text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["770c0960"],{c464e:function(e,t,o){"use strict";o.r(t);var n=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"q-pa-md"},[o("div",{staticClass:"q-pb-md q-gutter-md row justify-around"},[o("q-toggle",{staticClass:"col-12",attrs:{label:"Enable themes"},model:{value:e.enableTheme,callback:function(t){e.enableTheme=t},expression:"enableTheme"}}),o("q-select",{staticClass:"col-12",attrs:{outlined:"",dense:"","emit-value":"","map-options":"",label:"Change theme",options:e.themesList,disable:!0!==e.enableTheme},model:{value:e.theme,callback:function(t){e.theme=t},expression:"theme"}})],1),o("q-separator"),o("div",{staticClass:"q-pa-md row justify-around"},[o("my-component",{staticClass:"text-center",attrs:{"enable-theme":e.enableTheme,theme:e.theme}},[o("div",{staticClass:"text-h4"},[e._v("Quasar Components")])])],1)],1)},r=[],s=(o("8e6e"),o("8a81"),o("456d"),o("c47a")),a=o.n(s),l=(o("7f7f"),o("ac6a"),o("cadf"),o("06db"),o("5df3"),o("f400"),o("2b0e")),i=o("dda6");function h(e,t){var o=Object.keys(e);return Object.getOwnPropertySymbols&&o.push.apply(o,Object.getOwnPropertySymbols(e)),t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),o}function c(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?h(o,!0).forEach(function(t){a()(e,t,o[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):h(o).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))})}return e}var m=l["a"].extend({name:"my-component",mixins:[i["a"],i["b"]],data:function(){return{radio:"line",checkbox:!0,knob:70}},methods:{__renderRadio:function(e,t,o){var n,r,s=this,a=new Map,l=this.useDefaultTheme;return!0===this.enableTheme&&(n="color",r="bgColor",a=this.getThemeColors([n,r]),l=this.setBothColors),e("q-radio",l(a.get(n),a.get(r),{props:{value:this.radio,val:t,label:o,dark:!0===this.enableTheme&&this.theme&&"color"in this.theme,color:!0===this.enableTheme&&this.theme&&"color"in this.theme?this.theme.color:void 0},on:{input:function(e){s.radio=e}}}))},__renderCheckbox:function(e){var t,o,n=this,r=new Map,s=this.useDefaultTheme;return!0===this.enableTheme&&(t="color",o="bgColor",r=this.getThemeColors([t,o]),s=this.setBothColors),e("q-checkbox",s(r.get(t),r.get(o),{props:{value:this.checkbox,dark:!0===this.enableTheme&&this.theme&&"color"in this.theme,color:!0===this.enableTheme&&this.theme&&"color"in this.theme?this.theme.color:void 0},on:{input:function(e){n.checkbox=e}}}))},__renderKnob:function(e){var t,o,n=this,r=new Map,s=this.useDefaultTheme;return!0===this.enableTheme&&(t="color",o="bgColor",r=this.getThemeColors([t,o]),s=this.setBothColors),e("q-knob",s(r.get(t),r.get(o),{props:{value:this.knob},on:{input:function(e){n.knob=e}}}))}},render:function(e){var t,o,n=this.$slots.default,r=new Map,s=this.useDefaultTheme;return!0===this.enableTheme&&(t="color",o="bgColor",r=this.getThemeColors([t,o]),s=this.setBothColors),e("div",s(r.get(t),r.get(o),{staticClass:"q-pa-md",style:{width:"100%"}}),[n||"",this.__renderRadio(e,"line","Line"),this.__renderRadio(e,"rect","Rect"),this.__renderCheckbox(e),this.__renderKnob(e)])}}),u={components:{MyComponent:m},data:function(){return{enableTheme:!0,theme:void 0,themes:[{name:"Default"},{name:"Dark",color:"blue-grey-2",bgColor:"blue-grey-8"},{name:"Teal",color:"teal-2",bgColor:"teal-8"},{name:"Brown",color:"brown-2",bgColor:"brown-8"},{name:"Deep Purple",color:"deep-purple-2",bgColor:"deep-purple-8"},{name:"Indigo",color:"grey-2",bgColor:"indigo-8"},{name:"Blue",color:"blue-2",bgColor:"blue-8"}]}},computed:{themesList:function(){var e=[];return this.themes.forEach(function(t){e.push({label:t.name,value:c({},t)})}),e}}},b=u,d=o("2877"),p=Object(d["a"])(b,n,r,!1,null,null,null);t["default"]=p.exports}}]);