(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["components/evan-switch/evan-switch"],{"4ddd":function(e,t,n){"use strict";var a=n("cc38"),i=n.n(a);i.a},"4e94":function(e,t,n){"use strict";n.r(t);var a=n("5674"),i=n("7e19");for(var u in i)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(u);n("4ddd");var r=n("828b"),l=Object(r["a"])(i["default"],a["b"],a["c"],!1,null,"b8f27b64",null,!1,a["a"],void 0);t["default"]=l.exports},"557b":function(e,t,n){"use strict";var a=n("47a9");Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=a(n("3b2d")),u={name:"EvanSwitch",props:{value:{type:[String,Number,Boolean],default:!1},activeColor:{type:String,default:"#108ee9"},inactiveColor:{type:String,default:"#fff"},size:{type:Number,default:30},disabled:{type:Boolean,default:!1},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},beforeChange:{type:Function,default:null},extraData:null,contextLevel:{type:Number,default:1}},computed:{switchHeight:function(){return this.size+"px"}},watch:{value:{immediate:!0,handler:function(e){this.currentValue=e}}},data:function(){return{currentValue:!1}},methods:{toggle:function(){var e=this;if(!this.disabled)if(this.beforeChange&&"function"===typeof this.beforeChange){for(var t=this,n=0;n<this.contextLevel;n++)t=t.$options.parent;var a=this.beforeChange(this.currentValue===this.activeValue?this.inactiveValue:this.activeValue,this.extraData,t);"object"===(0,i.default)(a)?a.then((function(){e.toggleValue()})).catch((function(){})):"boolean"===typeof a&&a&&this.toggleValue()}else this.toggleValue()},toggleValue:function(){this.currentValue=this.currentValue===this.activeValue?this.inactiveValue:this.activeValue,this.$emit("input",this.currentValue),this.$emit("change",this.currentValue)}}};t.default=u},5674:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){}));var a=function(){var e=this.$createElement;this._self._c},i=[]},"7e19":function(e,t,n){"use strict";n.r(t);var a=n("557b"),i=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(u);t["default"]=i.a},cc38:function(e,t,n){}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
    'components/evan-switch/evan-switch-create-component',
    {
        'components/evan-switch/evan-switch-create-component':(function(module, exports, __webpack_require__){
            __webpack_require__('df3c')['createComponent'](__webpack_require__("4e94"))
        })
    },
    [['components/evan-switch/evan-switch-create-component']]
]);
