1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DPliiWLA.js","./DPhtfMym.js","./D3L1gIDB.js","./entry.8D4uGHif.css"])))=>i.map(i=>d[i]); 2import{d as D,R as P,u as F,c as u,r as _,w as R,g as S,P as U,a as n,z as Z,b as a,f as r,H as x,y as w,W as G,F as I,G as O,aj as W,o as l}from"./D3L1gIDB.js";import{_ as q}from"./DrupClhV.js";import{_ as J}from"./BxPQt6NI.js";import{_ as K,a as Q,b as X}from"./CW10ZnlW.js";import{u as Y}from"./CV-AGu8v.js";import{u as H}from"./BGse-hL8.js";import{_ as ee}from"./DlAUqK2U.js";import"./DPliiWLA.js";import"./DPhtfMym.js";const te={class:"category-page"},ae={class:"bg-white sticky top-0 z-40 backdrop-blur-sm bg-white/95"},oe={class:"cief-container"},se={class:"flex items-center max-w-6xl mx-auto justify-between py-4"},ne={class:"bg-zinc-100 bg-gray-50 py-20"},le={class:"cief-container max-w-6xl mx-auto bg-white rounded-xl py-10 px-4 sm:px-6 lg:px-10"},re={key:0,class:"flex justify-center items-center py-20"},ce={key:1,class:"text-center py-20"},ie={class:"text-red-600 mb-4"},de={key:2,class:"space-y-12"},ue={class:"text-center"},ge={class:"text-3xl font-bold text-gray-900 mb-4"},me=["alt"],_e=["alt"],ve=["alt"],ye={class:"bg-white"},pe=["innerHTML"],he={key:0,class:"relative"},fe=["href"],xe=["src","alt"],be=["src","alt"],ke={class:"bg-white"},Ce=["innerHTML"],we={key:0,class:"accordion-gallery"},Ie=["href"],Ee=["src","alt"],Le={class:"overlay"},Te={class:"overlay-inner"},Ne={class:"title"},ze=["src","alt"],Ze=["innerHTML"],He={key:3,class:"text-center py-20 text-gray-500"},Ve={class:"text-sm text-gray-400"},Me=D({__name:"[categoryCode]",setup($e){const V=P(),{locale:g}=F(),v=u(()=>V.params.categoryCode),m=_("current"),M=e=>{const t=[],c=d=>{for(const s of d)t.push(s),s.children&&s.children.length>0&&c(s.children)};return c(e),t},$=async()=>{try{const{cmsApi:e}=await W(async()=>{const{cmsApi:c}=await import("./DPliiWLA.js");return{cmsApi:c}},__vite__mapDeps([0,1,2,3]),import.meta.url),t=await e.category.getList();if(t.code===200&&t.data){const c=M(t.data);console.log("ð æ¥æ¾åä½çææ ç®, categoryCode:",v.value);const d=c.find(s=>s.categoryCode===v.value||s.categoryNameZh===v.value||s.categoryNameEn===v.value||String(s.categoryId)===v.value);if(console.log("ð æ¾å°çåä½çææ ç®:",d),d){const s=c.filter(p=>p.parentId===d.categoryId);return console.log("ð æ¾å°çåæ ç®:",s),{category:d,categoryId:d.categoryId,children:s,hasChildren:s.length>0}}else console.warn("â ï¸ æªæ¾å°å¹é çåä½çææ ç®")}}catch(e){console.error("æ¥æ¾åä½çææ ç®å¤±è´¥:",e)}return{category:null,categoryId:null,children:[],hasChildren:!1}},{content:o,loading:j,loadCategoryContent:b}=Y(),h=_(null),y=_(null),i=u(()=>{if(m.value==="current"&&y.value)return g.value==="en"?y.value.categoryNameEn:y.value.categoryNameZh;const e=f.value.find(t=>t.categoryCode===m.value);return e?g.value==="en"?e.categoryNameEn:e.categoryNameZh:""}),E=H(o,"content"),k=u(()=>o.value&&(H(o,"image").value||o.value.imageUrl)||""),L=u(()=>{if(!o.value)return[];if(g.value==="en"&&o.value.imageEnList)return o.value.imageEnList;if(o.value.imageZhList)return o.value.imageZhList;const e=g.value==="en"?o.value.imageEn||o.value.imageZh||"":o.value.imageZh||o.value.imageEn||"";return e?e.split(",").map(t=>t.trim()).filter(t=>t):[]}),C=u(()=>{var e;return((e=o.value)==null?void 0:e.contentType)||"normal"}),T=_(null),f=_([]),A=_(!1),B=u(()=>{if(!y.value)return[];const e=[];return f.value.forEach(t=>{e.push({id:t.categoryCode,label:g.value==="en"?t.categoryNameEn:t.categoryNameZh})}
2),console.log("ð·ï¸ åä½çæé¡µé¢å¯¼èªæ ç¾ï¼ä»
åæ ç®ï¼:",e),e});R(m,async e=>{console.log("ð 忢尿 ç¾:",e);const t=f.value.find(c=>c.categoryCode===e);t&&await b(t.categoryId)});const N=async()=>{h.value=null;const e=await $();e.categoryId?(y.value=e.category,T.value=e.categoryId,f.value=e.children,A.value=e.hasChildren,e.children.length>0?(m.value=e.children[0].categoryCode,await b(e.children[0].categoryId)):await b(e.categoryId)):h.value="æªæ¾å°å¯¹åºçæ ç®"};S(()=>{N()});const z=e=>{const t=e.target;t.src="/images/one.jpg"};return U({title:u(()=>`${i.value||"æ ç®å
容"} - ä¸å½å½é
䏿æè²åºéä¼`),meta:[{name:"description",content:"ä¸å½å½é
䏿æè²åºé伿 ç®å
容"}]}),(e,t)=>{const c=q,d=J;return l(),n("div",te,[Z(c,{"title-image":"/images/support/hzst.png",alt:"åä½çæ","background-image":"/images/brand/activities.png"}),a("section",ae,[a("div",oe,[a("div",se,[Z(d,{items:B.value,modelValue:m.value,"onUpdate:modelValue":t[0]||(t[0]=s=>m.value=s),class:"flex space-x-8"},null,8,["items","modelValue"])])])]),a("section",ne,[a("div",le,[r(j)?(l(),n("div",re,t[1]||(t[1]=[a("div",{class:"animate-spin rounded-full h-12 w-12 border-b-2 border-red-600"},null,-1)]))):h.value?(l(),n("div",ce,[a("p",ie,x(h.value),1),a("button",{onClick:N,class:"px-6 py-2 bg-red-600 text-white rounded-lg hover:bg-red-700 transition-colors"}," éæ°å è½½ ")])):r(o)?(l(),n("div",de,[a("div",ue,[a("h2",ge,[a("img",{src:K,alt:i.value,class:"inline-block w-[50px] mb-2"},null,8,me),G(" "+x(i.value)+" ",1),a("img",{src:Q,alt:i.value,class:"inline-block w-[50px] mb-2"},null,8,_e)]),a("img",{src:X,alt:i.value,class:"inline-block w-[450px] mb-3"},null,8,ve)]),C.value==="normal"?(l(),n(I,{key:0},[a("div",ye,[a("div",{innerHTML:r(E),class:"prose prose-lg max-w-none text-base text-gray-700 leading-relaxed mb-4"},null,8,pe)]),k.value?(l(),n("div",he,[r(o).link?(l(),n("a",{key:0,href:r(o).link,target:"_blank",rel:"noopener noreferrer"},[a("img",{src:k.value,alt:i.value,class:"w-full block hover:opacity-90 transition-opacity",onError:z},null,40,xe)],8,fe)):(l(),n("img",{key:1,src:k.value,alt:i.value,class:"w-full block",onError:z},null,40,be))])):w("",!0)],64)):C.value==="accordion"?(l(),n(I,{key:1},[a("div",ke,[a("div",{innerHTML:r(E),class:"prose prose-lg max-w-none text-base text-gray-700 leading-relaxed mb-4"},null,8,Ce)]),L.value.length>0?(l(),n("div",we,[(l(!0),n(I,null,O(L.value,(s,p)=>(l(),n("div",{key:p,class:"gallery group"},[r(o).link?(l(),n("a",{key:0,href:r(o).link,target:"_blank",rel:"noopener noreferrer"},[a("img",{src:s,alt:`${i.value}-${p}`,class:"panel-img",loading:"lazy"},null,8,Ee),a("div",Le,[a("div",Te,[a("span",Ne,x(r(o).linkText||"æ¥ç详æ
"),1)])])],8,Ie)):(l(),n("img",{key:1,src:s,alt:`${i.value}-${p}`,class:"panel-img",loading:"lazy"},null,8,ze))]))),128))])):w("",!0)],64)):C.value==="free"?(l(),n("div",{key:2,innerHTML:r(g)==="en"?r(o).freeContentEn:r(o).freeContentZh,class:"prose prose-lg max-w-none text-base text-gray-700 leading-relaxed"},null,8,Ze)):w("",!0)])):(l(),n("div",He,[t[2]||(t[2]=a("p",{class:"text-lg mb-4"},"ææ å
容",-1)),a("p",Ve,"æ ç®ID: "+x(T.value),1)]))])])])}}}),Ge=ee(Me,[["__scopeId","data-v-38858c9e"]]);export{Ge 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.