import{d as r,e as d,U as l,a2 as p,a3 as m,a4 as c,a5 as h,k as u,ag as f,a6 as C}from"./vue-vendor-CxLCUzY4.js";import{H as g}from"./antd-vue-vendor-CDWW6V_M.js";import{C as b,K as k,_ as y}from"./index-B_2CoVdl.js";import{b as B}from"./index-mJaUOqVi.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./index-CC3OF1BO.js";import"./index-DAURrYyA.js";import"./index-Dz2zbQB_.js";import"./index-exs4VcBw.js";import"./index-ByLO0zSl.js";import"./useTimeout-CB9F1PLu.js";import"./useIntersectionObserver-FVRzwlSd.js";import"./useHeaderSetting-DD-46f26.js";import"./useMultipleTabSetting-DUkfrN4E.js";const S=r({name:"SwitchItem",components:{Switch:g},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=b("setting-switch-item"),{t:n}=k(),o=d(()=>e.def?{checked:e.def}:{});function a(s){e.event&&B(e.event,s)}return{prefixCls:t,t:n,handleChange:a,getBindValue:o}}});function v(e,t,n,o,a,s){const i=l("Switch");return p(),m("div",{class:C(e.prefixCls)},[c("span",null,h(e.title),1),u(i,f(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 q=y(S,[["render",v],["__scopeId","data-v-f7b5b422"]]);export{q as default};
