import{c as e,q as s,H as a,v as l,x as o,z as t,y as m,e as r,Q as n,D as d,I as i,J as u,N as p,B as c,C as b,G as f}from"./base-lib.js?v=1761009159";import{B as v}from"./index114.js?v=1761009159";import{z as _,at as y,W as k}from"./utils-lib.js?v=1761009159";import{g as j,t as x,f as V,a as h,h as C,b as g,s as w,c as S,d as U}from"./index473.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./site.js?v=1761009159";import"./useStore4.js?v=1761009159";const z={class:"h-full"},B={key:0,class:"mb-1rem text-secondary flex items-center"},H={class:"mt-1rem"},q={key:0,class:"ml-[20px] mt-[2rem]"},D=e({__name:"files",setup:(e,{expose:D})=>(s(j),D({init:j}),(e,s)=>{const D=y,G=k,I=v,J=f,N=a("bt-loading");return l(),o("div",z,[t("div",null,["master"!==m(x)?(l(),o("div",B,[s[7]||(s[7]=t("span",null,"选择配置块：",-1)),r(D,{class:"!w-[16rem]",modelValue:m(V),"onUpdate:modelValue":s[0]||(s[0]=e=>n(V)?V.value=e:null),options:m(h),onChange:s[1]||(s[1]=e=>m(j)())},null,8,["modelValue","options"])])):d("",!0),i(r(G,{options:m(C),"list-style":"none",class:"ml-0 text-small mb-1rem"},null,8,["options"]),[[u,"master"===m(x)]]),"master"===m(x)?i((l(),p(I,{key:1,class:"!w-[64rem] border border-dark rounded-base !h-[50rem]",modelValue:m(w),"onUpdate:modelValue":s[2]||(s[2]=e=>n(w)?w.value=e:null),onSave:s[3]||(s[3]=e=>m(S)())},null,8,["modelValue"])),[[N,m(g)]]):i((l(),p(I,{key:2,class:"!w-[64rem] border border-dark rounded-base !h-[34rem]",modelValue:m(w),"onUpdate:modelValue":s[4]||(s[4]=e=>n(w)?w.value=e:null),onSave:s[5]||(s[5]=e=>m(S)())},null,8,["modelValue"])),[[N,m(g)]]),t("div",H,["master"!==m(x)?(l(),p(J,{key:0,type:"primary",onClick:m(S)},{default:c(()=>s[8]||(s[8]=[b("保存",-1)])),_:1,__:[8]},8,["onClick"])):d("",!0),r(J,{type:"default",onClick:s[6]||(s[6]=e=>m(_)({value:m(w)}))},{default:c(()=>s[9]||(s[9]=[b("复制",-1)])),_:1,__:[9]})])]),"master"!==m(x)?(l(),o("div",q,[r(G,{options:m(U)},null,8,["options"])])):d("",!0)])})});export{D as default};
