import{aH as r,a as d,b as l,f as p,o as c,h as m,i as h,t as u,j as f,b6 as g,n as C,c as _,aJ as v}from"./index.bde7963b.js";import{S as b}from"./index.13318916.js";import{b as y}from"./index.ed1d4028.js";import"./index.c5b98ab4.js";import"./uniqBy.3333e3da.js";import"./_baseIteratee.34b68bfe.js";import"./index.706d2d48.js";import"./useWindowSizeFn.ada338ad.js";import"./useContentViewHeight.9a4f8bdd.js";import"./index.357d6afd.js";import"./RedoOutlined.4aa527e6.js";import"./lock.e24f9ae8.js";import"./ArrowLeftOutlined.284f8ef3.js";import"./index.9b1e5ec7.js";const w=d({name:"SwitchItem",components:{Switch:b},props:{event:{type:Number},disabled:{type:Boolean},title:{type:String},def:{type:Boolean}},setup(e){const{prefixCls:t}=l("setting-switch-item"),{t:n}=_(),a=p(()=>e.def?{checked:e.def}:{});function o(i){e.event&&y(e.event,i)}return{prefixCls:t,t:n,handleChange:o,getBindValue:a}}});function S(e,t,n,a,o,i){const s=v("Switch");return c(),m("div",{class:C(e.prefixCls)},[h("span",null,u(e.title),1),f(s,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)}var q=r(w,[["render",S],["__scopeId","data-v-440e72fd"]]);export{q as default};
