1import{r,l as x,o as T,i as S,c as s,a as t,b as B,d as D,F as _,e as f,u as F,g as n,n as M,t as g,h,k as y}from"./index-DdwgCdNA.js";import N from"./AboutBanner-B97AXJta.js";const I={class:"main"},L={style:{"background-color":"#fff","min-height":"100vh"}},P={class:"container Department",style:{"margin-top":"40px"}},V={class:"layout"},$={class:"sidebar sidebara"},z={class:"menu"},H=["onClick"],R={class:"content"},Y={key:0},j={class:"DepartmentContent"},q={key:0,class:"image-block"},A=["src"],E={class:"text-block"},U={class:"title_color",style:{margin:"10px","font-size":"18px"}},W=["innerHTML"],G={key:1,style:{"place-content":"space-evenly","font-weight":"600","text-align":"center"}},Q={__name:"Department",setup(J){F();const d=S("apiClient"),m=r([]),i=r([]),u=r(null),k="/CNFIAPI";var p=!0;x({title:"ä¸è¯æ°åå·¥æ¥ç¸½æ - é¨éä»ç´¹",meta:[{name:"description",content:"工總é¨é,å·¥ç¸½ç§æ¸é·,工總å¯ç§æ¸é·"},{property:"og:title",content:"ä¸è¯æ°åå·¥æ¥ç¸½æ - é¨éä»ç´¹"}]}),T(async()=>{b()});const b=async()=>{var o=await d.getStaffType();if(m.value.push(...o),o.length>0){const e=o[0].id.replace(/-/g,"");u.value=e;var a=await d.getStaffByType(e);i.value=a}},v=r(null),w=async o=>{u.value=o,i.value=[];var a=await d.getStaffByType(o);if(i.value=a,p=a.some(e=>e.imgFilePath!==null),window.innerWidth<=900)setTimeout(()=>{const e=v.value;if(e){const c=e.getBoundingClientRect().top+window.scrollY+-180;window.scrollTo({top:c,behavior:"smooth"})}},100);else{const c=document.querySelector(".CurrMenu").getBoundingClientRect(),C=window.scrollY+c.top-40;window.scrollTo({top:C,behavior:"auto"})}};return(o,a)=>(n(),s("div",I,[t("main",L,[B(N),a[0]||(a[0]=D('<div class="container"><div class="NowMenu dynamic-content" style="font-size:18px;"><a href="/"><i class="fas fa-home"></i> é¦é  </a><div> >
1 </div><a href="#" class="CurrMenu"> é¨éä»ç´¹Â </a></div></div>',1)),t("div",P,[t("div",V,[t("div",$,[t("ul",z,[(n(!0),s(_,null,f(m.value,(e,l)=>(n(),s("li",{key:l,class:"menu-item"},[t("button",{onClick:c=>w(e.id.replace(/-/g,"")),class:M([{selected:u.value===e.id.replace(/-/g,"")},"menu-button menu-buttona"])},g(e.name),11,H)]))),128))])]),t("div",R,[t("div",{ref_key:"memberSection",ref:v,class:"table-container"},[i.value&&i.value.length>0?(n(),s("div",Y,[(n(!0),s(_,null,f(i.value,(e,l)=>(n(),s("div",{key:l,style:{display:"flex"}},[t("div",j,[y(p)?(n(),s("div",q,[e.imgFilePath!=null?(n(),s("img",{key:0,src:`${y(k)}/img/${e.imgFilePath}`,class:"d-block imgDiv DeptImg",alt:"..."},null,8,A)):h("",!0)])):h("",!0),t("div",E,[t("div",U,g(e.title),1),t("div",{class:"dynamic-content",name:"Content",innerHTML:e.content,style:{padding:"20px 10px"}},null,8,W)])])]))),128))])):(n(),s("div",G," ç¡è³æ "))],512)])])])])]))}};export{Q as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.