import{aP as r,a as p,b as d,f as m,aQ as l,o as c,h,i as u,t as f,j as g,aU as C,n as _,c as v}from"./index.0d073eaa.js";import{S as y}from"./index.04f7e044.js";import{b}from"./index.428574d8.js";import"./index.c4338a98.js";import"./index.c9bfdeac.js";import"./ArrowLeftOutlined.90d2e05e.js";import"./index.0fb15725.js";import"./index.c15ba425.js";import"./FullscreenOutlined.401a7bcd.js";import"./index.7680e967.js";import"./useWindowSizeFn.ef20ece8.js";import"./useContentViewHeight.01b9d1c6.js";import"./uniqBy.ac0f9c38.js";import"./_baseIteratee.3919e7cf.js";import"./get.49a42f2e.js";import"./index.78efd931.js";import"./useRefs.e81831e2.js";import"./PlusOutlined.64d8e001.js";import"./RedoOutlined.32117fb5.js";import"./index.aa6b7013.js";import"./lock.2102e909.js";const w=p({name:"SwitchItem",components:{Switch:y},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=d("setting-switch-item"),{t:n}=v(),o=m(()=>e.def?{checked:e.def}:{});function i(a){e.event&&b(e.event,a)}return{prefixCls:t,t:n,handleChange:i,getBindValue:o}}});function S(e,t,n,o,i,a){const s=l("Switch");return c(),h("div",{class:_(e.prefixCls)},[u("span",null,f(e.title),1),g(s,C(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)}var L=r(w,[["render",S],["__scopeId","data-v-440e72fd"]]);export{L as default};
