text: import{j as e,bF as t,i,K as n,o as s,m as d,n as o,q as a,N as r,x as l}from"./vendor.686fd1d4.js";/* empty css              */import{c as p,e as c}from"./index.44a64fe8.js";import{b as m}from"./index.638015b5.js";import"./index.f22424e6.js";/* empty css              *//* empty css              */import"./index.21d75cd5.js";import"./index.74de2db9.js";import"./useWindowSizeFn.d82e06bf.js";import"./useFrameKeepAlive.9ad94c6f.js";import"./useContentViewHeight.7797c6a9.js";/* empty css              */import"./useSortable.928c6068.js";import"./lock.25c77807.js";var f=e({name:"SwitchItem",components:{Switch:t},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=p("setting-switch-item"),{t:n}=c();return{prefixCls:t,t:n,handleChange:function(t){e.event&&m(e.event,t)},getBindValue:i((()=>e.def?{checked:e.def}:{}))}}});const h=l()(((e,t,i,l,p,c)=>{const m=n("Switch");return s(),d("div",{class:e.prefixCls},[o("span",null,a(e.title),1),o(m,r(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)}));f.render=h,f.__scopeId="data-v-fd7354e2";export default f;
  