import{_ as A}from"./title.91d56da3.js";import{d as $,S,r as N,w as T,j as L,o as e,c as n,a1 as u,b as B,f as s,n as M,F as f,l as w,a as h,p as d,t as z,x as E,g as F,_ as H}from"./entry.a0f8d4df.js";const I=["onClick"],j=["innerHTML"],D={class:"branch-tit"},V={key:0,class:"xhy-branch-cont",style:{"max-height":"calc(100% - 51px)"}},O=["onClick"],U=["innerHTML"],q=$({__name:"module15",props:{settings:Object},async setup(t){let o,m;const{HomeApi:v,ChamberApi:_}=F(),{Utils:g,Cos:G}=E(),{$navigateToShId:p}=S(),C=t,i=N([]);C.settings;{let a=([o,m]=T(()=>v.branchList()),o=await o,m(),o);i.value=a||[]}L(()=>{});const x=async a=>{var l;let r=(l=(await _.branchColumnConfig())[0])==null?void 0:l.sn;p(`/article/${24}_${a.tagId||-1}_${a.branchId||0}_0.html`,{branchName:a.branchName||"",sn:r||1})};return(a,k)=>{var l,b,y;const r=A;return e(),n("div",{style:u(`width: ${t.settings.moduleWidth};padding: 0 10px; box-sizing: border-box;`)},[((l=t.settings)==null?void 0:l.branchShowType)===1||!((b=t.settings)!=null&&b.branchShowType)?(e(),n("div",{key:0,style:u(`width: ${t.settings.moduleWidth};padding: 0 10px; box-sizing: border-box;height: ${t.settings.moduleWidth!=="100%"?"410px":""};`),class:"module-wrap"},[B(r,{settings:t.settings},null,8,["settings"]),s(i)&&s(i).length?(e(),n("div",{key:0,class:M([{"branch-cont-w25":t.settings.moduleWidth<"50%"&&t.settings.moduleWidth!=="100%","branch-cont-w50":t.settings.moduleWidth<"75%"&&t.settings.moduleWidth>="50%"&&t.settings.moduleWidth!=="100%"},"branch-cont"]),style:{"max-height":"calc(100% - 51px)",padding:"15px"}},[(e(!0),n(f,null,w(s(i),c=>(e(),n("div",{class:"flex flex-ct flex-i-ct branch-item",onClick:W=>x(c),style:{}},[h("span",{innerHTML:s(g).wrapByStr(c.branchName,"\u4E13\u4E1A\u59D4\u5458\u4F1A",t.settings.moduleWidth==="100%"?12:0)},null,8,j)],8,I))),256))],2)):d("",!0)],4)):d("",!0),((y=t.settings)==null?void 0:y.branchShowType)===2?(e(),n("div",{key:1,style:u(`width: ${t.settings.moduleWidth};padding: 0 10px; box-sizing: border-box;padding: 0`),class:"flex branch-wrap2"},[h("div",D,z(t.settings.title||"\u5206\u652F\u673A\u6784"),1),s(i)&&s(i).length?(e(),n("div",V,[(e(!0),n(f,null,w(s(i),c=>(e(),n("div",{class:"flex flex-ct flex-i-ct xhy-branch-item",onClick:W=>x(c)},[h("span",{innerHTML:s(g).wrapByStr(c.branchName,"\u4E13\u4E1A\u59D4\u5458\u4F1A",t.settings.moduleWidth==="100%"?12:0)},null,8,U)],8,O))),256))])):d("",!0)],4)):d("",!0)],4)}}});const P=H(q,[["__scopeId","data-v-5a7bfd04"]]);export{P as default};
