System.register(["./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785"],(function(e,t){"use strict";var a,n,c,u,l,r;return{setters:[e=>{a=e.ay},e=>{n=e.k,c=e.R,u=e.a0,l=e.t,r=e.c}],execute:function(){e("_",n({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 n(t){const{"onUpdate:value":n,onChange:c,onUpdateValue:u}=e;n&&a(n,t),u&&a(u,t),c&&a(c,t)}return{checked:r((()=>t.value===e.checkedValue)),onClick:function(){t.value!==e.checkedValue?n(e.checkedValue):n(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:["text-14px",e?"i-mage:play-fill text-primary":"i-mage:pause-fill text-error"]},null)])}}))}}}));
