import{u as r,o as d,_ as c}from"./index.js";import{b as l}from"./index-1adf9d7f.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 y}from"./vue-08ef39cb.js";import{ac as k}from"./antd-fb8ca017.js";import"./index-922f0b14.js";import"./index-094bd341.js";import"./index-5222460c.js";import"./index-be3bd629.js";import"./useContentViewHeight-3410df66.js";import"./useWindowSizeFn-40274562.js";import"./lock-4bf6aa77.js";const v=p({name:"SwitchItem",components:{Switch:k},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(),o=m(()=>e.def?{checked:e.def}:{});function a(s){e.event&&l(e.event,s)}return{prefixCls:t,t:n,handleChange:a,getBindValue:o}}});function S(e,t,n,o,a,s){const i=y("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 Z=c(v,[["render",S],["__scopeId","data-v-0f0bf616"]]);export{Z as default};
