PageSourceSearch

https://www.after-care.org.tw/assets/information-LyEURJd1.js

js after-care.org.tw collected 2026-10-05 18:43:11 UTC 8,795 bytes, 1 lines download raw bytes

1import{_ as U,k,b as a,c as o,g as x,w as T,d as t,K as J,F as q,f as E,t as c,e as u,L as C,M as S,n as M,N as X,p as j,j as z,O as Y,B as Z,u as ee,r as O,C as te,m as ae,o as oe,i as le,P,s as ne,a as se,y as ie,x as K,S as re,Q as de}from"./index-DT4rNbsv.js";/* empty css                      *//* empty css                  */import{_ as A}from"./download-_6tA9xZz.js";const N=p=>(j("data-v-c6327321"),p=p(),z(),p),ue={class:"dialogWrapper"},ce=["id"],_e={key:0,class:"relatedBox"},pe=N(()=>t("p",null,"附件下載專區:",-1)),he={class:"relatedFiles"},ve=["href"],be=["href"],fe=["onKeydown"],ye=N(()=>t("span",null,"關閉",-1)),ge=N(()=>t("img",{src:Y,alt:"","aria-hidden":"true"},null,-1)),we=[ye,ge],ke={__name:"multiFilesDialog",props:{visible:{type:Boolean,required:!0},relatedFiles:{type:Array,default:()=>[]}},emits:["update:visible"],setup(p,{emit:$}){const d=p,f=$,y=k(`dialog-title-${Math.random().toString(36).substr(2,9)}`),i=()=>{f("update:visible",!1)},l=()=>{M(()=>{const h=document.querySelector(".dialogHeader");h&&h.focus()})};return(h,I)=>{const b=X;return a(),o("div",ue,[x(b,{"model-value":p.visible,width:"800",class:"dialogBox","show-close":!1,onClose:i,onOpen:l,role:"dialog","aria-modal":"true","aria-labelledby":y.value},{default:T(()=>[t("div",{class:"dialogHeader",id:y.value},[J(h.$slots,"title",{},void 0,!0)],8,ce),d.relatedFiles.length>0?(a(),o("div",_e,[pe,t("ul",he,[(a(!0),o(q,null,E(d.relatedFiles,(r,B)=>(a(),o("li",{key:B},[B==d.relatedFiles.length-1?(a(),o("a",{key:0,href:r.file_url,title:"下載附件",download:""},c(r.original_name),9,ve)):(a(),o("a",{key:1,href:r.file_url,title:"下載附件",download:""},c(r.original_name)+"、",9,be))]))),128))])])):u("",!0),t("button",{onClick:i,class:"dialogBtn",onKeydown:C(S(i,["prevent"]),["enter"]),"aria-label":"關閉對話框"},we,40,fe)]),_:3},8,["model-value","aria-labelledby"])])}}},R=U(ke,[["__scopeId","data-v-c6327321"]]),_=p=>(j("data-v-ed50f91b"),p=p(),z(),p),$e={class:"informationBox"},me={class:"content"},xe={class:"informationTable"},Ce={key:0,nowrap:"nowrap"},Se=_(()=>t("th",{nowrap:"nowrap"},"標題",-1)),Ie={key:1,nowrap:"nowrap"},Be={key:2,nowrap:"nowrap"},De={key:0},Te=_(()=>t("td",{nowrap:"nowrap",colspan:"4",tabindex:"0"},"目前無下載項目",-1)),Ae=[Te],Fe=_(()=>t("div",{class:"contentBox"},null,-1)),Ke={key:0,nowrap:"nowrap",tabindex:"0"},qe={key:1},Ee=["href","title","aria-label"],Me={key:2,style:{"overflow-wrap":"anywhere"},tabindex:"0"},Ne={key:3,nowrap:"nowrap",tabindex:"0"},Ve={key:4,nowrap:"nowrap",class:"icon"},He=["href","onKeydown","onClick"],Le=_(()=>t("img",{src:A,alt:"下載檔案"},null,-1)),Oe=[Le],Pe=["onKeydown","onClick"],Re=_(()=>t("img",{src:A,alt:"下載檔案"},null,-1)),Ue=[Re],je={class:"mbList"},ze=_(()=>t("span",null,"日期 : ",-1)),Qe={key:0},We=_(()=>t("span",null,"標題 : ",-1)),Ge={key:1},Je=_(()=>t("span",null,"標題 : ",-1)),Xe=["href","title","aria-label"],Ye={key:2},Ze=_(()=>t("span",null,"點閱次數 : ",-1)),et={key:3,class:"mbIconBox"},tt=_(()=>t("span",null,"附件下載 : ",-1)),at=["href","onKeydown","onClick"],ot=_(()=>t("img",{src:A,alt:"download img"},null,-1)),lt=[ot],nt=["onKeydown","onClick"],st=_(()=>t("img",{src:A,alt:"download img"},null,-1)),it=[st],rt={class:"pagination"},dt={__name:"information",setup(p){const $=Z(),d=ee(),f=k(!1),y=k(!1),i=O([]),l=k(""),h=k(1),I=k(1),b=k([]);O([]),d.sublistTitle="資訊公開",d.breadCrumbItem=[{label:"首頁",path:"/"},{label:"認識更保",path:"/about/information?type=董事及監察人名冊"},{label:"資訊公開",path:"/about/information?type=董事及監察人名冊"}];const r=async(s,n,v)=>{try{const g=await de(s),D=await P(h.value);b.value=D.data.payload,n.is_multiple_files&&(f.value=!0,i.value=n,v=="mobile"?(y.value=!0,f.value=!1):v=="wideScreen"&&(f.value=!0,y.value=!1))}catch(g){console.error("Error fetching news data:",g)}},B=async()=>{try{const s=await le();d.menuItems=[],s.data.payload.forEach(n=>{n.category!=""&&n.category!=null&&d.menuItems.push({index:n.id,label:n.category,url:`/about/information?type=${n.category}&id=${n.id}`})})}catch(s){console.error("Error fetching news data:",s)}},V=async()=>{try{const s=await P(h.value);b.value=s.data.payload}catch(s){console.error("Error fetching news data:",s)}};te(()=>$.query,async(s,n)=>{l.value=s.type,h.value=s.id,l.value!=null&&(d.pageTitle=l.value,d.breadCrumbItem[3]={label:l.value,path:`/about/information?type=${l.value}&id=${h.value}`}),await V()});const Q=async s=>{I.value=s,await M(),window.scrollTo({top:0,behavior:"smooth"})},W=ae(()=>b.value.filter((s,n)=>n>=(I.value-1)*10&&n<I.value*10));oe(async()=>{l.value=$.query.type,h.value=$.query.id,l.value!=null&&(d.pageTitle=l.value,d.breadCrumbItem[3]={label:l.value,path:`/about/information?type=${l.value}&id=${h.value}`}),await B(),await V(),G()});const G=()=>{M(()=>{document.querySelectorAll(".el-pager li.number").forEach(v=>{const g=v.textContent.trim();v.setAttribute("title",`第${g}頁`),v.removeAttribute("aria-label"),v.setAttribute("role","button")});const s=document.querySelector(".el-pagination .btn-prev");s&&(s.setAttribute("aria-label","上一頁"),s.setAttribute("title","上一頁"),s.setAttribute("role","button"));const n=document.querySelector(".el-pagination .btn-next");n&&(n.setAttribute("aria-label","下一頁"),n.setAttribute("title","下一頁"),n.setAttribute("role","button"))})};return(s,n)=>{var g,D,H,L;const v=ne;return a(),o("div",$e,[t("div",me,[t("table",xe,[t("thead",null,[t("tr",null,[l.value!="保護法規"?(a(),o("th",Ce,"日期")):u("",!0),Se,l.value!="保護法規"?(a(),o("th",Ie,"點閱次數")):u("",!0),l.value!="保護法規"?(a(),o("th",Be,"附件下載")):u("",!0)])]),t("tbody",null,[((g=b.value)==null?void 0:g.length)===0?(a(),o("tr",De,Ae)):u("",!0),x(R,{visible:f.value,relatedFiles:(D=i==null?void 0:i.value)==null?void 0:D.related_files,"onUpdate:visible":n[0]||(n[0]=e=>f.value=e)},{title:T(()=>
1[t("h2",null,c(i.value.title),1)]),content:T(()=>[Fe]),_:1},8,["visible","relatedFiles"]),(a(!0),o(q,null,E(W.value,(e,F)=>{var m;return a(),o("tr",{key:F},[l.value!="保護法規"?(a(),o("td",Ke,c(se(ie)(e.publish_date)),1)):u("",!0),l.value=="保護法規"?(a(),o("td",qe,[t("a",{href:e.external_link,target:"_blank",title:`${e.title}按 enter 跳轉到全國法規資料庫(另開新視窗)`,"aria-label":`${e.title}按 enter 跳轉到全國法規資料庫(另開新視窗)`},c(e.title),9,Ee)])):u("",!0),l.value!="保護法規"?(a(),o("td",Me,c(e.title),1)):u("",!0),l.value!="保護法規"?(a(),o("td",Ne,c(e.view_count),1)):u("",!0),l.value!="保護法規"?(a(),o("td",Ve,[e.is_multiple_files==!1&&e.related_files!=null?(a(),o("a",{key:0,href:(m=e==null?void 0:e.related_files[0])==null?void 0:m.file_url,target:"_blank",title:"下載檔案","aria-label":"下載檔案",onKeydown:C(S(w=>r(e.id,e,"wideScreen"),["prevent"]),["enter"]),onClick:w=>r(e.id,e,"wideScreen"),download:"",tabindex:"0"},Oe,40,He)):(a(),o("a",{key:1,href:"#",role:"button","aria-label":"下載檔案",title:"下載檔案",onKeydown:C(S(w=>r(e.id,e,"wideScreen"),["prevent"]),["enter"]),onClick:w=>r(e.id,e,"wideScreen"),tabindex:"0"},Ue,40,Pe))])):u("",!0)])}),128))])]),t("div",je,[x(R,{visible:y.value,relatedFiles:(H=i==null?void 0:i.value)==null?void 0:H.related_files,"onUpdate:visible":n[1]||(n[1]=e=>y.value=e)},{title:T(()=>[t("h2",null,c(i.value.title),1)]),_:1},8,["visible","relatedFiles"]),(a(!0),o(q,null,E(b.value,(e,F)=>{var m;return a(),o("div",{class:"mbItem",key:F,tabindex:"0"},[t("p",null,[ze,K(c(e.publish_date),1)]),l.value!="保護法規"?(a(),o("p",Qe,[We,K(c(e.title),1)])):(a(),o("p",Ge,[Je,t("a",{href:e.external_link,target:"_blank",title:`${e.title}按 enter 跳轉到全國法規資料庫(另開新視窗)`,"aria-label":`${e.title}按 enter 跳轉到全國法規資料庫(另開新視窗)`},c(e.title),9,Xe)])),l.value!="保護法規"?(a(),o("p",Ye,[Ze,K(c(e.view_count),1)])):u("",!0),l.value!="保護法規"?(a(),o("div",et,[tt,e.is_multiple_files==!1&&e.related_files!=null?(a(),o("a",{key:0,href:(m=e==null?void 0:e.related_files[0])==null?void 0:m.file_url,target:"_blank",title:"下載檔案","aria-label":"下載檔案",download:"",onKeydown:C(S(w=>r(e.id,e,"mobile"),["prevent"]),["enter"]),onClick:w=>r(e.id,e,"mobile"),tabindex:"0"},lt,40,at)):(a(),o("a",{key:1,href:"#",role:"button","aria-label":"下載檔案",title:"下載檔案",onKeydown:C(S(w=>r(e.id,e,"mobile"),["prevent"]),["enter"]),onClick:w=>r(e.id,e,"mobile"),tabindex:"0"},it,40,nt))])):u("",!0)])}),128))]),t("div",rt,[x(v,{background:"",layout:"prev, pager, next","page-size":10,total:(L=b.value)==null?void 0:L.length,onCurrentChange:Q},null,8,["total"])])]),x(re,{stickyTop:250})])}}},ht=U(dt,[["__scopeId","data-v-ed50f91b"]]);export{ht 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.