1import x from"./CBn7OBgE.js";import z from"./NrpJ2TBN.js";import{g as D,m as k}from"./Bg3951aB.js";import{i as N}from"./BpJa6I6o.js";import{n as B,a as F,b as P,g as H}from"./C1dxbtEK.js";import{c as s,d as E,a as M,H as O,u as I,l as $,o as C,b as T,e as l}from"./rNMPrltl.js";import{L as S}from"./CXXDZoq4.js";import{g as j,u as R}from"./boj7xwiX.js";import{a as K}from"./Cb-3LY-o.js";import{u as w}from"./BaIuNnjw.js";import{u as W}from"./DIsFLZxp.js";import{u as Y}from"./Df7I_IO4.js";import{u as G}from"./CVqkpwaS.js";import"./DiwT2u7L.js";import"./DcrRLIrS.js";import"./BlRCviZe.js";import"./gpKywMoy.js";const J=""+new URL("6483e6f300350.yg66AX6Y.jpg",import.meta.url).href,X=""+new URL("6483ebab59501.BApDMgUh.png",import.meta.url).href,Z=""+new URL("6483eb9f1d395.BMDFFZaW.png",import.meta.url).href;function q(e){const t=w(e);return t!=null&&t.list&&Array.isArray(t.list)?t.list:e&&typeof e=="object"&&Array.isArray(e.list)?e.list:[]}function Q(e){var i,r,u;const t=w(e),n=e&&typeof e=="object"?e:null;return{content:(i=typeof(t==null?void 0:t.content)=="string"?t.content:void 0)!=null?i:typeof(n==null?void 0:n.content)=="string"?n.content:void 0,imgUrl:(r=typeof(t==null?void 0:t.imgUrl)=="string"?t.imgUrl:void 0)!=null?r:typeof(n==null?void 0:n.imgUrl)=="string"?n.imgUrl:void 0,title:(u=typeof(t==null?void 0:t.title)=="string"?t.title:void 0)!=null?u:typeof(n==null?void 0:n.title)=="string"?n.title:void 0}}function V(e,t){if(t!==S["zh-CN"])return e;try{return K(e)}catch{return e}}function tt(e){const t=H(e||{});return t?t.replace(/-æ¶æ¯$/,"").replace(/^éæ¼[-ï¼]|^å
³äº[-ï¼]|^About[-ï¼]/i,"").trim()||t:"çµç¹æ¶æ§"}function U(e){var n,i;const t=e.match(/<img[^>]+src=["']([^"']+)["']/i);return(i=(n=t==null?void 0:t[1])==null?void 0:n.trim())!=null?i:""}function et(e,t){var u,c,m;const n=U((u=e.content)!=null?u:""),i=((c=e.imgUrl)!=null?c:"").trim(),r=((m=t==null?void 0:t.imgUrl)!=null?m:"").trim();return n||i||r}function nt(e,t){if(t.trim())return!0;const n=e.trim();return n?U(n)?!0:n.replace(/<[^>]+>/g,"").replace(/\s+/g,"").length>=10:!1}function rt(e){return e===S["zh-CN"]?X:e===S.en?J:Z}async function ot(e){var g,f;const t=j(),n=B(await N(t)),i=F(n),r=P(i);if(!r)return null;const c=q(await D({columnId:r,langType:String(t),pageNo:"1",pageSize:"1"}))[0];if(!(c!=null&&c.id))return null;const m=Q(await k({contentId:c.id,langType:String(t)})),o=(f=(g=m.content)==null?void 0:g.trim())!=null?f:"",a=et(m,c);return nt(o,a)?{columnContent:a&&U(o)?"":o?V(o,t):"",columnName:tt(i),imgUrl:a}:null}function it(e,t){const n=s(()=>{var o,a;return(a=(o=e.value)==null?void 0:o.columnContent)!=null?a:""}),i=s(()=>{var o,a;return(a=(o=e.value)==null?void 0:o.columnName)!=null?a:""}),r=s(()=>{var o,a;return(a=(o=e.value)==null?void 0:o.imgUrl)!=null?a:""}),u=s(()=>!!e.value),c=s(()=>r.value||rt(t.value)),m=s(()=>!r.value&&!n.value);return{columnContent:n,columnName:i,cmsImgUrl:r,imgUrl:c,hasCmsData:u,usingStaticFallback:m}}const Tt=E({__name:"index",async setup(e){let t,n;const{isMobile:i}=M(),{isTradChin:r,isSimpChin:u,langType:c}=R(),{data:m,pending:o,error:a}=([t,n]=O(()=>W("about-structure",()=>ot())),t=await t,n(),t),{columnContent:b,imgUrl:g}=it(m,c),f=s(()=>{var p;return(p=a.value)!=null?p:null}),L=s(()=>r.value?"çµç¹æ¶æ§":u.value?"ç»ç»æ¶æ":"Organization Structure"),{title:d}=Y({"zh-CN":"ç»ç»æ¶æ","zh-HK":"çµç¹æ¶æ§",en:"Organization Structure"}),h=s(()=>r.value?"馿¸¯å·¥è¯æçµç¹æ¶æ§å
æ¬æå¡ä»£è¡¨å¤§æãçäºæãç£äºæçæ©æ§ï¼äºè§£å·¥è¯æççµç¹æ¶æ§åé使¨¡å¼ã":u.value?"馿¸¯å·¥èä¼ç»ç»æ¶æå
æ¬ä¼å代表大ä¼ãçäºä¼ãçäºä¼çæºæï¼äºè§£å·¥èä¼çç»ç»æ¶æåè¿ä½æ¨¡å¼ã":"Organizational structure of the Hong Kong Federation of Trade Unions, including Member Congress, Executive Council, and Supervisory Committee."),{getStaticCanonicalUrl:A}=G(),v=A("/about/structure");I({title:d,titleTemplate:null,meta:[{name:"description",content:h},{property:"og:title",content:d},{property:"og:description",content:h},{property:"og:type",content:"website"},{property:"og:url",content:v},{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}]});const _=s(()=>{const p="https://www.ftu.org.hk",y=r.value?"zh-HK":u.value?"zh-CN":"en";return[{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:r.value?"é¦é ":u.value?"é¦é¡µ":"Home",item:`${p}/${y}/`},{"@type":"ListItem",position:2,name:r.value?"éæ¼æå":u.value?"å
³äºæä»¬":"About Us",item:`${p}/${y}/about`},{"@type":"ListItem",position:3,name:d.value,item:v.value}]},{"@context":"https://schema.org","@type":"WebPage",name:d.value,description:h.value,url:v.value,inLanguage:y,isPartOf:{"@type":"WebSite",name:"馿¸¯å·¥è¯æ",url:p}}]});return I({title:d,link:[{rel:"canonical",href:v}],script:[{type:"application/ld+json",children:JSON.stringify(_.value)}]}),(p,y)=>(C(),$("div",null,[l(i)?(C(),T(x,{key:0,"column-name":l(L),"column-content":l(b),"img-url":l(g),pending:l(o),"load-error":l(f)},null,8,["column-name","column-content","img-url","pending","load-error"])):(C(),T(z,{key:1,"column-name":l(L),"column-content":l(b),"img-url":l(g),pending:l(o),"load-error":l(f)},null,8,["column-name","column-content","img-url","pending","load-error"]))]))}});
1export{Tt 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.