System.register(["./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509"],(function(e,t){"use strict";var n,c,a,u,l,o;return{setters:[e=>{n=e.$},e=>{c=e.k,a=e.t,u=e.c,l=e.P,o=e.Q}],execute:function(){e("_",c({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=a(e,"value");function c(t){const{"onUpdate:value":c,onChange:a,onUpdateValue:u}=e;c&&n(c,t),u&&n(u,t),a&&n(a,t)}return{checked:u((()=>t.value===e.checkedValue)),onClick:function(){t.value!==e.checkedValue?c(e.checkedValue):c(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)])}}))}}}));
