import{u as r,v as d,_ as l}from"./index.js";import{b as c}from"./index-505b5f6e.js";import{d as p,c as m,Z as h,_ as u,$ as f,a0 as _,k as C,a9 as g,a1 as b,a6 as v}from"./vue-72a104e4.js";import{aj as y}from"./antd-835b28bf.js";import"./index-e9fd0db7.js";import"./index-12377682.js";import"./index-b4ea7fff.js";import"./index-a5c222af.js";import"./useContentViewHeight-91c9d265.js";import"./useWindowSizeFn-7c45a656.js";import"./lock-f3b41037.js";const k=p({name:"SwitchItem",components:{Switch:y},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=r("setting-switch-item"),{t:n}=d(),a=m(()=>e.def?{checked:e.def}:{});function o(s){e.event&&c(e.event,s)}return{prefixCls:t,t:n,handleChange:o,getBindValue:a}}});function S(e,t,n,a,o,s){const i=v("Switch");return h(),u("div",{class:b(e.prefixCls)},[f("span",null,_(e.title),1),C(i,g(e.getBindValue,{onChange:e.handleChange,disabled:e.disabled,checkedChildren:e.t("layout.setting.on"),unCheckedChildren:e.t("layout.setting.off")}),null,16,["onChange","disabled","checkedChildren","unCheckedChildren"])],2)}const P=l(k,[["render",S],["__scopeId","data-v-0f0bf616"]]);export{P as default};
