Files
vuefilemanager/public/chunks/plan-create/metered.js
Čarodej 662ba988a0 build
2022-01-14 09:30:59 +01:00

1 line
21 KiB
JavaScript
Vendored

(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{"+K/L":function(t,e,a){var r=a("uWhG");"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,n);r.locals&&(t.exports=r.locals)},"0ezt":function(t,e,a){var r=a("x7z+");"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,n);r.locals&&(t.exports=r.locals)},"2Sb1":function(t,e,a){"use strict";var r={name:"PageHeader",props:["title","canBack"],components:{ChevronLeftIcon:a("CjXH").j}},n=(a("sksd"),a("KHd+")),i=Object(n.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"page-header"},[t.canBack?a("div",{staticClass:"go-back",on:{click:function(e){return t.$router.back()}}},[a("chevron-left-icon",{attrs:{size:"17"}})],1):t._e(),t._v(" "),a("div",{staticClass:"content"},[a("h1",{staticClass:"title"},[t._v(t._s(t.title))])])])}),[],!1,null,"7ea8553f",null);e.a=i.exports},AA0l:function(t,e,a){"use strict";a.r(e);var r=a("o0o1"),n=a.n(r),i=a("xxrA"),s=a("jH4x"),o=a("UD3w"),l=a("A5+z"),c=a("4TWA"),d=a("D+dh"),p=a("D62o"),u=a("eZ9V"),f=a("THmQ"),v=a("Nv84"),m=a("2Sb1"),b=a("KnjL"),h=a("TJPC"),g=a("L2JU"),x=a("xCqy"),_=a("vDqi"),w=a.n(_);function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var a=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==a)return;var r,n,i=[],s=!0,o=!1;try{for(a=a.call(t);!(s=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);s=!0);}catch(t){o=!0,n=t}finally{try{s||null==a.return||a.return()}finally{if(o)throw n}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);"Object"===a&&t.constructor&&(a=t.constructor.name);if("Map"===a||"Set"===a)return Array.from(t);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return k(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,r=new Array(e);a<e;a++)r[a]=t[a];return r}function C(t,e,a,r,n,i,s){try{var o=t[i](s),l=o.value}catch(t){return void a(t)}o.done?e(l):Promise.resolve(l).then(r,n)}function $(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,r)}return a}function I(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var S={name:"CreateMeteredPlan",components:{ValidationProvider:l.ValidationProvider,ValidationObserver:l.ValidationObserver,AppInputSwitch:s.a,SwitchInput:i.a,SectionTitle:f.a,AppInputText:o.a,MobileHeader:p.a,SelectInput:c.a,ButtonBase:v.a,ImageInput:d.a,PageHeader:m.a,FormLabel:u.a,required:h.a,InfoBox:b.a},computed:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$(Object(a),!0).forEach((function(e){I(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},Object(g.b)(["currencyList","intervalList"])),data:function(){return{errorMessage:void 0,isLoading:!1,isError:!1,plan:{type:"fixed",name:void 0,description:void 0,currency:void 0,features:{bandwidth:{active:!1,per_unit:void 0,first_unit:1,aggregate_strategy:"sum_of_usage"},storage:{active:!1,per_unit:void 0,first_unit:1,aggregate_strategy:"maximum_usage"},member:{active:!1,per_unit:void 0,first_unit:1,aggregate_strategy:"maximum_usage"},flatFee:{active:!1,per_unit:void 0,aggregate_strategy:"maximum_usage"}}}}},methods:{createPlan:function(){var t,e=this;return(t=n.a.mark((function t(){var a;return n.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=[],Object.entries(e.plan.features).forEach((function(t){var e=y(t,2),r=e[0],n=e[1];n.active&&a.push({aggregate_strategy:n.aggregate_strategy,key:r,tiers:[{per_unit:n.per_unit,first_unit:1,flat_fee:null,last_unit:null}]})})),t.next=4,e.$refs.createPlan.validate();case 4:if(t.sent){t.next=7;break}return t.abrupt("return");case 7:e.isLoading=!0,w.a.post("/api/subscriptions/admin/plans",{type:"metered",name:e.plan.name,description:e.plan.description,currency:e.plan.currency,meters:a}).then((function(t){x.a.$emit("toaster",{type:"success",message:e.$t("toaster.plan_created")}),e.$router.push({name:"PlanMeteredSettings",params:{id:t.data.data.id}}),e.config.isEmptyPlans&&e.$store.commit("REPLACE_CONFIG_VALUE",{key:"isEmptyPlans",value:!1})})).catch((function(t){x.a.$emit("toaster",{type:"danger",message:e.$t("popup_error.title")})})).finally((function(){e.isLoading=!1}));case 9:case"end":return t.stop()}}),t)})),function(){var e=this,a=arguments;return new Promise((function(r,n){var i=t.apply(e,a);function s(t){C(i,r,n,s,o,"next",t)}function o(t){C(i,r,n,s,o,"throw",t)}s(void 0)}))})()}}},P=a("KHd+"),O=Object(P.a)(S,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ValidationObserver",{ref:"createPlan",attrs:{tag:"form"},on:{submit:function(e){return e.preventDefault(),t.createPlan.apply(null,arguments)}},scopedSlots:t._u([{key:"default",fn:function(e){e.invalid;return[a("div",{staticClass:"card shadow-card"},[a("FormLabel",[t._v("\n\t\t\t"+t._s(t.$t("Details"))+"\n\t\t")]),t._v(" "),a("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Name",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{attrs:{title:t.$t("admin_page_plans.form.name")}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.plan.name,expression:"plan.name"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("admin_page_plans.form.name_plac"),type:"text"},domProps:{value:t.plan.name},on:{input:function(e){e.target.composing||t.$set(t.plan,"name",e.target.value)}}})])]}}],null,!0)}),t._v(" "),a("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Description"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{attrs:{title:t.$t("admin_page_plans.form.description")}},[a("textarea",{directives:[{name:"model",rawName:"v-model",value:t.plan.description,expression:"plan.description"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("admin_page_plans.form.description_plac")},domProps:{value:t.plan.description},on:{input:function(e){e.target.composing||t.$set(t.plan,"description",e.target.value)}}})])]}}],null,!0)}),t._v(" "),a("ValidationProvider",{attrs:{tag:"div",mode:"passive",name:"Currency",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{staticClass:"w-full",attrs:{title:t.$t("Currency"),"is-last":!0}},[a("SelectInput",{attrs:{options:t.currencyList,placeholder:t.$t("Select plan currency"),isError:r[0]},model:{value:t.plan.currency,callback:function(e){t.$set(t.plan,"currency",e)},expression:"plan.currency"}})],1)]}}],null,!0)})],1),t._v(" "),a("div",{staticClass:"card shadow-card"},[a("FormLabel",[t._v("\n\t\t\t"+t._s(t.$t("Charged Features"))+"\n\t\t")]),t._v(" "),a("div",[a("AppInputSwitch",{attrs:{title:t.$t("Bandwidth Price per 1GB"),description:t.$t("Charge your user by the amount of data he upload or download.")}},[a("SwitchInput",{staticClass:"switch",attrs:{state:t.plan.features.bandwidth.active},model:{value:t.plan.features.bandwidth.active,callback:function(e){t.$set(t.plan.features.bandwidth,"active",e)},expression:"plan.features.bandwidth.active"}})],1),t._v(" "),t.plan.features.bandwidth.active?a("ValidationProvider",{staticClass:"-mt-3",attrs:{tag:"div",mode:"passive",name:"Bandwidth Price",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{staticClass:"w-full"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.plan.features.bandwidth.per_unit,expression:"plan.features.bandwidth.per_unit"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("Type the price per 1GB..."),type:"number",step:"0.01",min:"0.01",max:"999999999999"},domProps:{value:t.plan.features.bandwidth.per_unit},on:{input:function(e){e.target.composing||t.$set(t.plan.features.bandwidth,"per_unit",e.target.value)}}})])]}}],null,!0)}):t._e()],1),t._v(" "),a("div",[a("AppInputSwitch",{attrs:{title:t.$t("Storage Price per 1GB"),description:t.$t("Charge your user by the amount of data he has stored on the disk per 1GB.")}},[a("SwitchInput",{staticClass:"switch",attrs:{state:t.plan.features.storage.active},model:{value:t.plan.features.storage.active,callback:function(e){t.$set(t.plan.features.storage,"active",e)},expression:"plan.features.storage.active"}})],1)],1),t._v(" "),t.plan.features.storage.active?a("ValidationProvider",{staticClass:"-mt-3",attrs:{tag:"div",mode:"passive",name:"Storage Price",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{staticClass:"w-full"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.plan.features.storage.per_unit,expression:"plan.features.storage.per_unit"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("Type the price per 1GB..."),type:"number",step:"0.01",min:"0.01",max:"999999999999"},domProps:{value:t.plan.features.storage.per_unit},on:{input:function(e){e.target.composing||t.$set(t.plan.features.storage,"per_unit",e.target.value)}}})])]}}],null,!0)}):t._e(),t._v(" "),a("div",[a("AppInputSwitch",{attrs:{title:t.$t("Price per 1 Member"),description:t.$t("Charge your user by the total members he use in his Team Folders.")}},[a("SwitchInput",{staticClass:"switch",attrs:{state:t.plan.features.member.active},model:{value:t.plan.features.member.active,callback:function(e){t.$set(t.plan.features.member,"active",e)},expression:"plan.features.member.active"}})],1)],1),t._v(" "),t.plan.features.member.active?a("ValidationProvider",{staticClass:"-mt-3",attrs:{tag:"div",mode:"passive",name:"Member Price",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{staticClass:"w-full"},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.plan.features.member.per_unit,expression:"plan.features.member.per_unit"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("Type the price per 1 member..."),type:"number",step:"0.01",min:"0.01",max:"999999999999"},domProps:{value:t.plan.features.member.per_unit},on:{input:function(e){e.target.composing||t.$set(t.plan.features.member,"per_unit",e.target.value)}}})])]}}],null,!0)}):t._e(),t._v(" "),a("div",[a("AppInputSwitch",{attrs:{title:t.$t("Flat Fee per Cycle"),description:t.$t("Charge monthly flat fee."),"is-last":!t.plan.features.flatFee.active}},[a("SwitchInput",{staticClass:"switch",attrs:{state:t.plan.features.flatFee.active},model:{value:t.plan.features.flatFee.active,callback:function(e){t.$set(t.plan.features.flatFee,"active",e)},expression:"plan.features.flatFee.active"}})],1),t._v(" "),t.plan.features.flatFee.active?a("ValidationProvider",{staticClass:"-mt-3",attrs:{tag:"div",mode:"passive",name:"FlatFee Price",rules:"required"},scopedSlots:t._u([{key:"default",fn:function(e){var r=e.errors;return[a("AppInputText",{staticClass:"w-full",attrs:{"is-last":!0}},[a("input",{directives:[{name:"model",rawName:"v-model",value:t.plan.features.flatFee.per_unit,expression:"plan.features.flatFee.per_unit"}],staticClass:"focus-border-theme input-dark",class:{"border-red":r[0]},attrs:{placeholder:t.$t("Type the price..."),type:"number",step:"0.01",min:"0.01",max:"999999999999"},domProps:{value:t.plan.features.flatFee.per_unit},on:{input:function(e){e.target.composing||t.$set(t.plan.features.flatFee,"per_unit",e.target.value)}}})])]}}],null,!0)}):t._e()],1)],1),t._v(" "),a("ButtonBase",{attrs:{disabled:t.isLoading,loading:t.isLoading,"button-style":"theme",type:"submit"}},[t._v("\n\t\t"+t._s(t.$t("admin_page_plans.create_plan_button"))+"\n\t")])]}}])})}),[],!1,null,null,null);e.default=O.exports},D62o:function(t,e,a){"use strict";a("xCqy");var r=a("CjXH"),n={name:"MobileHeader",props:["title"],components:{ChevronLeftIcon:r.j,MenuIcon:r.X},methods:{goBack:function(){this.$router.back()}}},i=(a("lpU+"),a("KHd+")),s=Object(i.a)(n,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("header",{staticClass:"mobile-header"},[a("div",{staticClass:"go-back",on:{click:t.goBack}},[a("chevron-left-icon",{staticClass:"icon",attrs:{size:"17"}})],1),t._v(" "),a("div",{staticClass:"location-name"},[t._v(t._s(t.title))]),t._v(" "),a("div",{staticClass:"mobile-menu",on:{click:function(e){return t.$showMobileMenu("user-navigation")}}},[a("menu-icon",{staticClass:"icon",attrs:{size:"17"}})],1)])}),[],!1,null,"0da6bf54",null);e.a=s.exports},Il6k:function(t,e,a){"use strict";a("+K/L")},KJww:function(t,e,a){var r=a("c6IS");"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,n);r.locals&&(t.exports=r.locals)},KnjL:function(t,e,a){"use strict";var r={name:"InfoBox",props:["type"]},n=(a("LQoL"),a("KHd+")),i=Object(n.a)(r,(function(){var t=this.$createElement;return(this._self._c||t)("div",{staticClass:"info-box",class:this.type},[this._t("default")],2)}),[],!1,null,"27ea1904",null);e.a=i.exports},LQoL:function(t,e,a){"use strict";a("0ezt")},LvO6:function(t,e,a){var r=a("lF1h");"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,n);r.locals&&(t.exports=r.locals)},NEz6:function(t,e,a){"use strict";a("KJww")},Qak4:function(t,e,a){var r=a("qESJ");"string"==typeof r&&(r=[[t.i,r,""]]);var n={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(r,n);r.locals&&(t.exports=r.locals)},THmQ:function(t,e,a){"use strict";var r={name:"SectionTitle"},n=(a("NEz6"),a("KHd+")),i=Object(n.a)(r,(function(){var t=this.$createElement;return(this._self._c||t)("b",{staticClass:"text-label"},[this._t("default")],2)}),[],!1,null,"9cac37aa",null);e.a=i.exports},UD3w:function(t,e,a){"use strict";var r={name:"AppInputText",props:["description","isLast","title","error"]},n=a("KHd+"),i=Object(n.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{class:{"mb-7":!t.isLast}},[t.title?a("label",{staticClass:"text-sm font-bold dark:text-gray-200 text-gray-700 mb-1.5 block"},[t._v("\n\t\t"+t._s(t.title)+":\n\t")]):t._e(),t._v(" "),t._t("default"),t._v(" "),t.description?a("small",{staticClass:"text-xs text-gray-500 pt-2 leading-4 block",domProps:{innerHTML:t._s(t.description)}}):t._e(),t._v(" "),t.error?a("span",{staticClass:"text-red pt-2 text-xs"},[t._v("\n\t\t"+t._s(t.error)+"\n\t")]):t._e()],2)}),[],!1,null,null,null);e.a=i.exports},c6IS:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".text-label[data-v-9cac37aa]{font-size:.75em;color:#afafaf;font-weight:700;display:block;margin-bottom:20px}.dark .text-label[data-v-9cac37aa]{color:#00bc7e}",""])},jH4x:function(t,e,a){"use strict";var r={name:"AppInputSwitch",props:["description","isLast","title","error"]},n=a("KHd+"),i=Object(n.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"flex items-center justify-between sm:space-x-8 space-x-2 w-full",class:{"mb-7":!t.isLast}},[a("div",{staticClass:"leading-5"},[a("label",{staticClass:"text-sm font-bold dark:text-gray-200 text-gray-700 mb-1.5 block"},[t._v("\n\t\t\t"+t._s(t.title)+":\n\t\t")]),t._v(" "),t.description?a("span",{staticClass:"text-xs text-gray-500 leading-4 block",domProps:{innerHTML:t._s(t.description)}}):t._e(),t._v(" "),t.error?a("span",{staticClass:"error-message"},[t._v("\n\t\t\t"+t._s(t.error)+"\n\t\t")]):t._e()]),t._v(" "),a("div",[t._t("default")],2)])}),[],!1,null,null,null);e.a=i.exports},lF1h:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".page-header[data-v-7ea8553f]{display:flex;align-items:center;background:#fff;z-index:9;width:100%;position:sticky;top:0;padding-top:20px;padding-bottom:20px}.page-header .title[data-v-7ea8553f]{font-size:1.125em;font-weight:700;color:#1b2539}.page-header .go-back[data-v-7ea8553f]{margin-right:10px;cursor:pointer}.page-header .go-back svg[data-v-7ea8553f]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:960px){.page-header .title[data-v-7ea8553f]{font-size:1.125em}}@media only screen and (max-width:690px){.page-header[data-v-7ea8553f]{display:none}}.dark .page-header[data-v-7ea8553f]{background:#151515}.dark .page-header .title[data-v-7ea8553f]{color:#bec6cf}.dark .page-header .icon path[data-v-7ea8553f]{fill:#00bc7e}",""])},"lpU+":function(t,e,a){"use strict";a("Qak4")},qESJ:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".mobile-header[data-v-0da6bf54]{padding:10px 0;text-align:center;background:#fff;position:sticky;display:none;z-index:6;top:0}.mobile-header>div[data-v-0da6bf54]{flex-grow:1;align-self:center;white-space:nowrap}.mobile-header .go-back[data-v-0da6bf54]{text-align:left}.mobile-header .location-name[data-v-0da6bf54]{line-height:1;text-align:center;width:100%;vertical-align:middle;font-size:.9375em;color:#1b2539;font-weight:700;max-width:220px;overflow:hidden;text-overflow:ellipsis;display:inline-block}.mobile-header .mobile-menu[data-v-0da6bf54]{text-align:right}.mobile-header .icon[data-v-0da6bf54]{vertical-align:middle;margin-top:-4px}@media only screen and (max-width:690px){.mobile-header[data-v-0da6bf54]{display:flex;margin-bottom:15px}}.dark .mobile-header[data-v-0da6bf54]{background:#151515}.dark .mobile-header .location-name[data-v-0da6bf54]{color:#bec6cf}",""])},sksd:function(t,e,a){"use strict";a("LvO6")},uWhG:function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".input-wrapper[data-v-6ecf530e]{display:flex;width:100%}.input-wrapper .input-label[data-v-6ecf530e]{color:#1b2539}.input-wrapper .switch-content[data-v-6ecf530e]{width:100%}.input-wrapper .switch-content[data-v-6ecf530e]:last-child{width:80px}.switch[data-v-6ecf530e]{width:50px;height:28px;background:#f1f1f5;position:relative}.switch[data-v-6ecf530e],.switch .switch-button[data-v-6ecf530e]{border-radius:50px;display:block;transition:all .3s ease}.switch .switch-button[data-v-6ecf530e]{width:22px;height:22px;background:#fff;position:absolute;top:3px;left:3px;box-shadow:0 2px 4px rgba(37,38,94,.1);cursor:pointer}.switch.active .switch-button[data-v-6ecf530e]{left:25px}.dark .switch[data-v-6ecf530e]{background:#1e2024}.dark .popup-wrapper .switch[data-v-6ecf530e]{background:#25272c}",""])},"x7z+":function(t,e,a){(t.exports=a("I1BE")(!1)).push([t.i,".info-box[data-v-27ea1904]{padding:20px;border-radius:10px;margin-bottom:32px;background:#f4f5f6;text-align:left}.info-box.error[data-v-27ea1904]{background:rgba(253,57,122,.1)}.info-box.error a[data-v-27ea1904],.info-box.error p[data-v-27ea1904]{color:#fd397a}.info-box.error a[data-v-27ea1904]{text-decoration:underline}.info-box p[data-v-27ea1904]{line-height:1.6;word-break:break-word;font-weight:600}.info-box p[data-v-27ea1904],.info-box p[data-v-27ea1904] a{font-size:15px}.info-box p[data-v-27ea1904] b{font-size:15px;font-weight:700}.info-box a[data-v-27ea1904],.info-box b[data-v-27ea1904]{font-weight:700}.info-box a[data-v-27ea1904]{font-size:.9375em;line-height:1.6}.info-box ul[data-v-27ea1904]{margin-top:15px}.info-box ul[data-v-27ea1904],.info-box ul li[data-v-27ea1904],.info-box ul li a[data-v-27ea1904]{display:block}@media only screen and (max-width:690px){.info-box[data-v-27ea1904]{padding:15px}}.dark .info-box[data-v-27ea1904]{background:#1e2024}.dark .info-box.error[data-v-27ea1904]{background:rgba(253,57,122,.1)}.dark .info-box.error a[data-v-27ea1904],.dark .info-box.error p[data-v-27ea1904]{color:#fd397a}.dark .info-box.error a[data-v-27ea1904]{text-decoration:underline}.dark .info-box p[data-v-27ea1904],.dark .info-box ul li[data-v-27ea1904]{color:#bec6cf}",""])},xxrA:function(t,e,a){"use strict";var r={name:"SwitchInput",props:["label","name","state","info","input"],data:function(){return{isSwitched:void 0}},methods:{changeState:function(){this.isSwitched=!this.isSwitched,this.$emit("input",this.isSwitched)}},mounted:function(){this.isSwitched=this.state}},n=(a("Il6k"),a("KHd+")),i=Object(n.a)(r,(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"input-wrapper"},[a("div",{staticClass:"switch-content"},[t.label?a("label",{staticClass:"input-label"},[t._v("\n\t\t\t\t"+t._s(t.label)+":\n\t\t\t")]):t._e(),t._v(" "),t.info?a("small",{staticClass:"input-info"},[t._v("\n\t\t\t\t"+t._s(t.info)+"\n\t\t\t")]):t._e()]),t._v(" "),a("div",{staticClass:"switch-content text-right"},[a("div",{staticClass:"switch",class:{active:t.state},on:{click:t.changeState}},[a("div",{staticClass:"switch-button"})])])])}),[],!1,null,"6ecf530e",null);e.a=i.exports}}]);