import{c as e,s as a,q as l,H as s,v as o,x as t,z as n,I as i,y as d,F as r,b0 as p,A as m,ba as c,e as v,B as u,K as f,N as b,D as w,C as x,an as y,b1 as k,ak as _,al as h,ab as j,a9 as g,G as C,az as V}from"./base-lib.js?v=1761009159";import{_ as O}from"./index103.js?v=1761009159";import{c as P}from"./index48.js?v=1761009159";import{_ as U}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./index112.js?v=1761009159";import"./index107.js?v=1761009159";import"./store3.js?v=1761009159";import"./store4.js?v=1761009159";import"./config.js?v=1761009159";import"./store5.js?v=1761009159";import"./hooks.js?v=1761009159";const I={class:"p-[2rem]"},S={class:"flex flex-col"},z={class:"overview-box min-h-[20rem]"},D={class:"content"},A={class:"model-title"},F={class:"model-content"},H={key:0,class:"model mt-[16px]"},L={key:1,class:"font-bold mt-[24px] text-base"},T={class:"operate"},q={class:"flex items-center"},B={class:"py-1rem"},G={key:0},K={key:0,class:"flex w-full justify-end"},M=["onClick"],N=U(e({__name:"index",setup(e){const U=P(),{isLoading:N,overviewModelList:E,supportConfig:J,supportPath:Q,form:R}=a(U);return l(async()=>{await U.getOverviewData(),await U.getOverviewTemplateData(),U.dataAlignment()}),(e,a)=>{const l=y,P=k,W=_,X=h,Y=O,Z=j,$=g,ee=C,ae=V,le=s("trim"),se=s("bt-loading");return o(),t("div",I,[a[8]||(a[8]=n("div",{class:"warm-tips"},[n("i",{class:"svgtofont-el-warning text-warning mr-[0.8rem] text-large"}),n("span",{class:"text-warning"}," 温馨提示：预览编辑界面，可以预览和修改当前概览界面，添加自己需要的工具和模块 ")],-1)),n("div",S,[a[7]||(a[7]=n("div",{class:"text-base mb-[1rem] font-bold leading-[2.2rem]"},"模板",-1)),i((o(),t("div",z,[(o(!0),t(r,null,p(d(E),(e,s)=>(o(),t("div",{class:"overview-item",key:s},[n("div",D,[n("span",A,m(e.title),1),n("div",F,["browse"===e.template?(o(),t("div",H,a[1]||(a[1]=[c('<div class="to-day" data-v-c14dfd4b><span class="" data-v-c14dfd4b>今日</span><span class="font-bold" data-v-c14dfd4b>-</span></div><div class="yester-day" data-v-c14dfd4b><span data-v-c14dfd4b>昨日</span><span class="font-bold" data-v-c14dfd4b>-</span></div>',2)]))):(o(),t("span",L,"-"))])]),n("div",T,[n("div",q,[a[2]||(a[2]=n("span",{class:"mr-[.6rem]"},"显示",-1)),v(l,{modelValue:e.isShow,"onUpdate:modelValue":a=>e.isShow=a,width:32,size:"small",onChange:a=>d(U).setOverviewTemplateShow(e)},null,8,["modelValue","onUpdate:modelValue","onChange"])]),d(J).indexOf(e.name)>-1||d(Q).indexOf(e.name)>-1?(o(),t(r,{key:0},[v(P,{direction:"vertical"}),v(ae,{visible:e.overviewPopover,placement:"top",width:"320","popper-class":"el-tooltip-white overview-popover"},{reference:u(()=>[n("span",{class:"cursor-pointer mr-[16px]",onClick:a=>d(U).setPopoverShow(e,s)}," 设置 ",8,M)]),default:u(()=>[n("div",B,[v($,{model:d(R),"label-width":"60px"},{default:u(()=>[(o(!0),t(r,null,p(e.params,(l,s)=>(o(),t(r,{key:s},[e.name?(o(),t("div",G,[v(Z,{label:l.name,class:f("".concat("select"===l.type?"":"!mb-0"))},{default:u(()=>["select"===l.type?(o(),b(X,{key:0,modelValue:d(R)["val"+s],"onUpdate:modelValue":e=>d(R)["val"+s]=e,placeholder:"请选择"+l.name},{default:u(()=>[(o(!0),t(r,null,p(l.option,(e,a)=>(o(),b(W,{key:a,label:e.name,value:a},null,8,["label","value"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue","placeholder"])):i((o(),b(Y,{key:1,modelValue:d(R).val0,"onUpdate:modelValue":a[0]||(a[0]=e=>d(R).val0=e),name:"path",icon:"el-folder-opened",readonly:"",onIconClick:a=>d(U).onPathChange(e),width:"20rem"},null,8,["modelValue","onIconClick"])),[[le]])]),_:2},1032,["label","class"])])):w("",!0)],64))),128))]),_:2},1032,["model"]),"open_dir"!==e.name?(o(),t("div",K,[n("div",null,[v(ee,{type:"default",onClick:a=>e.overviewPopover=!1},{default:u(()=>a[3]||(a[3]=[x(" 取消 ",-1)])),_:2,__:[3]},1032,["onClick"]),v(ee,{type:"primary",onClick:a=>d(U).addOverviewFun(e)},{default:u(()=>a[4]||(a[4]=[x("确认",-1)])),_:2,__:[4]},1032,["onClick"])])])):w("",!0)])]),_:2},1032,["visible"])],64)):(o(),t(r,{key:1},[a[5]||(a[5]=n("span",null,null,-1)),a[6]||(a[6]=n("span",null,null,-1))],64))])]))),128))])),[[se,d(N)]])])])}}}),[["__scopeId","data-v-c14dfd4b"]]);export{N as default};
