import{Y as L}from"./index.Df8UJ10K.js";import{G as M}from"./api.CWDQtUKA.js";import{_ as R}from"./addTabs.vue_vue_type_script_setup_true_lang.DUWSOa85.js";import{_ as w}from"./addContent.vue_vue_type_script_setup_true_lang.CjSxH-mZ.js";import j from"./formContent.DOXk5Ydv.js";import{a as T,r as b,q,aj as o,J as _,o as s,K as l,b as r,S as a,P as C,u,y,M as k,c as x,R as E,a9 as F,G as J}from"./vue.D1BjjNmv.js";import"./associationTable.vue_vue_type_script_setup_true_lang.BgjhHfmD.js";import"./dictionary.BEN7awPC.js";import"./_plugin-vue_export-helper.DlAUqK2U.js";const K={class:"yxt-flex-between"},P={key:0,slot:"label"},S=T({name:"config"}),ee=T({...S,setup(Y){let m=b(!1),n=b(!1),f=b(""),V=b([]);const z=()=>{M({limit:999,parent__isnull:!0}).then(g=>{const d=g.data.filter(i=>i.key!=="base");if(V.value=d,d.length>0){const i=d.find(p=>{var c;return((c=p.title)==null?void 0:c.includes("登录"))||p.key==="login"});f.value=i?i.key:d[0].key}})};return q(()=>{z()}),(g,t)=>{const d=o("el-tag"),i=o("el-button"),p=o("el-button-group"),c=o("el-header"),v=o("el-drawer"),B=o("el-col"),N=o("el-row"),D=o("el-tab-pane"),G=o("el-tabs"),U=o("el-card");return s(),_(U,null,{default:l(()=>[r("div",null,[a(c,null,{default:l(()=>[r("div",K,[r("div",null,[a(d,null,{default:l(()=>t[4]||(t[4]=[C("系统配置:您可以对您的网站进行自定义配置")])),_:1})]),r("div",null,[a(p,null,{default:l(()=>[a(i,{size:"small",type:"warning",icon:u(L),onClick:t[0]||(t[0]=e=>y(n)?n.value=!0:n=!0)},{default:l(()=>t[5]||(t[5]=[C(" 添加内容 ")])),_:1},8,["icon"])]),_:1})])])]),_:1})]),r("div",null,[u(m)?(s(),_(v,{key:0,title:"添加分组",modelValue:u(m),"onUpdate:modelValue":t[1]||(t[1]=e=>y(m)?m.value=e:m=e),direction:"rtl",size:"30%"},{default:l(()=>[a(R)]),_:1},8,["modelValue"])):k("",!0)]),r("div",null,[u(n)?(s(),_(v,{key:0,title:"添加内容",modelValue:u(n),"onUpdate:modelValue":t[2]||(t[2]=e=>y(n)?n.value=e:n=e),direction:"rtl",size:"30%"},{default:l(()=>[a(w)]),_:1},8,["modelValue"])):k("",!0)]),a(G,{type:"border-card",modelValue:u(f),"onUpdate:modelValue":t[3]||(t[3]=e=>y(f)?f.value=e:f=e)},{default:l(()=>[(s(!0),x(E,null,F(u(V),(e,I)=>(s(),_(D,{key:I,label:e.title,name:e.key},{default:l(()=>[e.icon?(s(),x("span",P,[r("i",{class:J(e.icon),style:{"font-weight":"1000","font-size":"16px"}},null,2)])):k("",!0),e.icon?(s(),_(N,{key:1},{default:l(()=>[a(B,{offset:4,span:8},{default:l(()=>[a(w)]),_:1})]),_:1})):(s(),_(j,{key:2,options:e,editableTabsItem:e},null,8,["options","editableTabsItem"]))]),_:2},1032,["label","name"]))),128))]),_:1},8,["modelValue"])]),_:1})}}});export{ee as default};
