!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("@xysfe/actui/es/assets/utils/helpers.js")):"function"==typeof define&&define.amd?define(["@xysfe/actui/es/assets/utils/helpers.js"],t):"object"==typeof exports?exports.Switch=t(require("@xysfe/actui/es/assets/utils/helpers.js")):e.Switch=t(e["@xysfe/actui/es/assets/utils/helpers.js"])}("undefined"!=typeof self?self:this,function(e){return function(e){function t(s){if(n[s])return n[s].exports;var i=n[s]={i:s,l:!1,exports:{}};return e[s].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,s){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:s})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="../",t(t.s=1413)}({1065:function(e,t,n){"use strict";var s=n(38);n.n(s);t.a={name:"ActSwitch",props:{value:{type:Boolean,default:!1},activeColor:{type:String,default:"#8c7fee"},inactiveColor:{type:String,default:"#FFF"},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:"30px"}},data:function(){return{checkboxValue:this.value}},watch:{value:function(e){this.checkboxValue=e}},computed:{style:function(){var e={};return this.size&&(e.fontSize=Object(s.formatFontSize)(this.size)),e}},methods:{onClick:function(){if(!this.disabled){var e=!this.checkboxValue;this.$emit("change",e),this.$emit("input",e)}}}}},1413:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=n(1414);s.a.install=function(e){e.component(s.a.name,s.a)},t.default=s.a},1414:function(e,t,n){"use strict";function s(e){c||n(1415)}var i=n(1065),o=n(1416),r=n(7),c=!1,a=s,u=Object(r.a)(i.a,o.a,o.b,!1,a,"data-v-f096997c",null);u.options.__file="src\\components\\Switch\\src\\index.vue",t.a=u.exports},1415:function(e,t){},1416:function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return i});var s=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"act-switch",style:e.style},[n("div",{staticClass:"act-switch-input",attrs:{type:"checkbox"},on:{click:e.onClick}}),e._v(" "),n("i",{staticClass:"act-switch-ui",class:{checked:e.checkboxValue,disabled:e.disabled},style:{backgroundColor:e.checkboxValue?e.activeColor:e.inactiveColor}}),e._v(" "),n("span",{staticClass:"act-switch-label"},[e._t("default")],2)])},i=[];s._withStripped=!0},38:function(t,n){t.exports=e},7:function(e,t,n){"use strict";function s(e,t,n,s,i,o,r,c){e=e||{};var a=typeof e.default;"object"!==a&&"function"!==a||(e=e.default);var u="function"==typeof e?e.options:e;t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),s&&(u.functional=!0),o&&(u._scopeId=o);var l;if(r?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(r)},u._ssrRegister=l):i&&(l=c?function(){i.call(this,this.$root.$options.shadowRoot)}:i),l)if(u.functional){u._injectStyles=l;var f=u.render;u.render=function(e,t){return l.call(t),f(e,t)}}else{var d=u.beforeCreate;u.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:u}}t.a=s}})});