import{bp as l,bq as e,d as s,L as t}from"./utils-lib.js?v=1761009159";import{e as a,m as o,i as r}from"./base-lib.js?v=1761009159";import{_ as n}from"./index106.js?v=1761009159";const i=(l,e,s,t)=>({type:l,label:e,key:s,attrs:{class:"!w-[300px]",clearable:!0,...null==t?void 0:t.attrs},...t}),u=(l,e,s)=>i("input",l,e,s||{}),p=(l,e,s)=>i("textarea",l,e,s||{}),c=(l,e,s,t)=>i("select",l,e,{options:s,...t||{attrs:{}}}),d=(l,e,s)=>i("switch",l,e,s||{}),b=(l,e,s,t)=>i("checkbox",l,e,{options:s,...t||{attrs:{}}}),y=(l,e,s,t)=>i("radio",l,e,{options:s,...t||{attrs:{}}}),f=(l,e,s,t)=>i("radio:button",l,e,{options:s,...t||{attrs:{}}}),k=(l,{key:e,rules:s}={key:"",rules:{}})=>({type:"custom",rules:s,render:l}),v=(l,e,s)=>({label:l,type:"help",options:e,attrs:{...(null==s?void 0:s.attrs)||{}}}),m=l=>({type:"group",label:"",group:l}),j=(l,e,o)=>({type:"input",label:l,key:e,attrs:{...(null==o?void 0:o.attrs)||{}},rules:(null==o?void 0:o.rules)||[],slots:{append:()=>a(t,{onClick:o.iconClick},{default:()=>[a(s,{icon:null==o?void 0:o.icon,class:"cursor-pointer"},null)]})}}),w=(l,e,s,t)=>({type:"input",label:l,key:e,...t||{},rules:(null==t?void 0:t.rules)||[],slots:{append:()=>a("span",null,[s])}}),x=(l,e)=>({type:"custom",render:()=>a(n,{class:"w-full",direction:"horizontal"},{default:()=>[a("div",{class:"flex items-center w-full"},[a("span",{class:"bt-link mr-[4px]",onClick:()=>{l.value=!l.value}},[l.value?"收起":"展开",e||"更多配置"]),a(s,{icon:l.value?"el-arrow-up":"el-arrow-down"},null)])]})}),h=(l,e,s,t)=>j(l,e,{iconClick:t,icon:"el-refresh",...s}),C=(l,e,s,t)=>j(l,e,{iconClick:t,icon:"el-folder-opened",...s}),g=(l,e)=>({type:"button",slots:l,...e||{},attrs:{size:"default",type:"default",...(null==e?void 0:e.attrs)||{}}}),z=(s,t,n,i)=>({type:"custom",key:n||"",rules:(null==i?void 0:i.rules)||[],render:u=>{let p;const c=n?l({key:n},u):"";return a(e,o({label:s,prop:c},i||{}),"function"==typeof(d=p=t())||"[object Object]"===Object.prototype.toString.call(d)&&!r(d)?p:{default:()=>[p]});var d}});export{k as F,j as a,u as b,p as c,m as d,f as e,v as f,g,z as h,y as i,c as j,h as k,C as l,w as m,x as n,d as o,b as p};
