System.register(["./naive-legacy.js?v=1763625242172","./vue-legacy.js?v=1763625242172"],(function(e,t){"use strict";var n,a,c,u,l,o;return{setters:[e=>{n=e.a2},e=>{a=e.k,c=e.t,u=e.c,l=e.P,o=e.X}],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=c(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:u((()=>t.value===e.checkedValue)),onClick:function(){t.value!==e.checkedValue?a(e.checkedValue):a(e.uncheckedValue)}}},render(){const{checked:e}=this,{t:t}=l();return o("div",{class:"inline-flex gap-2px items-center cursor-pointer",onClick:()=>{this.onClick()}},[this.showText?o("span",{class:e?"text-primary":"text-error"},[e?this.checkedLabel||t("Public.Status.Running"):this.uncheckedLabel||t("Public.Status.Stop")]):"",o("span",{class:["iconfont",e?"icon-start":"icon-stop"]},null)])}}))}}}));
