System.register(["./naive-legacy.js?v=1764233927359","./vue-legacy.js?v=1764233927359"],function(e,t){"use strict";var n,a,c,u,l,o;return{setters:[e=>{n=e.a1},e=>{a=e.k,c=e.P,u=e.W,l=e.t,o=e.c}],execute:function(){e("_",a({functional:!0,props:{value:{type:[String,Number,Boolean],default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},onChange:[Function,Array],showText:{type:Boolean,default:!0},checkedLabel:{type:String,default:""},uncheckedLabel:{type:String,default:""}},setup(e){const t=l(e,"value");function a(t){const{"onUpdate:value":a,onChange:c,onUpdateValue:u}=e;a&&n(a,t),u&&n(u,t),c&&n(c,t)}return{checked:o(()=>t.value===e.checkedValue),onClick:function(){t.value!==e.checkedValue?a(e.checkedValue):a(e.uncheckedValue)}}},render(){const{checked:e}=this,{t:t}=c();return u("div",{class:"inline-flex gap-2px items-center cursor-pointer",onClick:()=>{this.onClick()}},[this.showText?u("span",{class:e?"text-primary":"text-error"},[e?this.checkedLabel||t("Public.Status.Running"):this.uncheckedLabel||t("Public.Status.Stop")]):"",u("span",{class:["iconfont",e?"icon-start":"icon-stop"]},null)])}}))}}});
