PageSourceSearch

https://www.ftu.org.hk/_nuxt/3vOXl9JJ.js

js ftu.org.hk collected 2026-09-25 04:50:34 UTC 6,855 bytes, 1 lines download raw bytes

1import{_ as I}from"./7Vp9wS4X.js";import{b as $}from"./CILtB5eU.js";import{u as U}from"./C8uHJLGK.js";import{u as q}from"./BvC-Ff6-.js";import{c as _,d as N,a as T,ae as j,i as z,l as o,o as n,e as i,m as s,F as g,x as w,s as C,t as a,n as A,y as l,_ as B}from"./D1FcBL9p.js";import{u as L}from"./qJlnEoVS.js";const R=()=>({navigationRows:[],serviceData:{},defaultServiceId:""}),M=()=>{const{langType:b}=U(),{data:d,pending:x,error:y,refresh:u}=q(()=>`contact-us-service-data-${b.value}`,()=>$(b.value),{default:R,watch:[b]}),c=_(()=>{var v;return(v=d.value)!=null?v:R()}),S=_(()=>c.value.navigationRows),p=_(()=>c.value.serviceData),h=_(()=>c.value.defaultServiceId);return{contactPageData:c,contactNavigationRows:S,contactServiceData:p,defaultServiceId:h,pending:x,error:y,refresh:u}},O={key:0},P={class:"navigation-bar"},F={class:"nav-row"},V=["onClick"],E={class:"content-area"},G={key:0,class:"service-cards"},H={class:"card-header"},J={class:"card-title"},K={class:"card-content"},Q={key:0,class:"address-section"},W={class:"location"},X=["href"],Y={key:1,class:"phone-section"},Z={class:"phone-number"},ss={key:2,class:"phone-section"},es={class:"phone-number"},ts={key:3,class:"phone-section"},os=["href"],ns={class:"phone-number"},as={key:4,class:"phone-section"},ls=["href"],is={class:"phone-number"},rs={key:5,class:"services-section"},cs={class:"services"},ds={key:6,class:"hours-section"},us={class:"hours"},vs={key:1,class:"default-content"},_s={key:1},ps={class:"navigation-bar"},hs={class:"nav-row"},fs=["onClick"],bs={class:"content-area"},ys={key:0,class:"service-cards"},ks={class:"card-header"},gs={class:"card-title"},ws={class:"card-content"},Cs={key:0,class:"address-section"},xs={class:"location"},Ss=["href"],ms={key:1,class:"phone-section"},Ds={class:"phone-number"},Is={key:2,class:"phone-section"},Rs={class:"phone-number"},Us={key:3,class:"phone-section"},$s=["href"],qs={class:"phone-number"},Ns={key:4,class:"phone-section"},Ts=["href"],js={class:"phone-number"},zs={key:5,class:"services-section"},As={class:"services"},Bs={key:6,class:"hours-section"},Ls={class:"hours"},Ms={key:1,class:"default-content"},Os=N({__name:"ContactUsContent",setup(b){const{isMobile:d}=T(),{isTradChin:x}=U(),{contactNavigationRows:y,contactServiceData:u,defaultServiceId:c}=M(),S=L(),p=j(),h=z(null),v=_(()=>{const r=typeof p.query.id=="string"?p.query.id:"";if(d.value){if(h.value!==null)return h.value}else if(r&&u.value[r])return r;return c.value&&u.value[c.value]?c.value:Object.keys(u.value)[0]||""}),k=_(()=>u.value[v.value]||null),m=r=>{d.value?h.value=r:S.replace({query:{...p.query,id:r}})},D=r=>!r||typeof r!="string"?"#":`https://www.google.com/maps/search/?api=1&query=${encodeURIComponent(r.replace(/<br\s*\/?>/gi," "))}`;return(r,t)=>(n(),o("div",null,[i(x)?(n(),o("div",O,[s("div",P,[s("div",F,[(n(!0),o(g,null,w(i(y).flat(),e=>(n(),o("button",{key:e.id,class:C(["nav-button",{active:i(v)===e.id}]),onClick:f=>m(e.id)},a(e.name),11,V))),128))])]),s("div",E,[i(k)?(n(),o("div",G,[(n(!0),o(g,null,w(i(k),(e,f)=>(n(),o("div",{key:f,class:"service-card"},[s("div",H,[s("h3",J,a(e.title),1),s("div",{class:"location-icon",style:A(i(d)?"width: 31px;height: 31px;":"")},[...t[0]||(t[0]=[s("img",{src:I,alt:"location"},null,-1)])],4)]),s("div",K,[s("div",{class:C(["contact-info",i(d)?"info-mobile":""])},[e.address?(n(),o("div",Q,[t[1]||(t[1]=s("span",{class:"label"},"地址",-1)),s("span",W,[s("a",{href:D(e.address),target:"_blank",class:"text-blue-600 underline"},a(e.address),9,X)])])):l("",!0),e.phone&&e.phone.trim()?(n(),o("div",Y,[t[2]||(t[2]=s("span",{class:"label"},"電話",-1)),s("span",Z,a(e.phone),1)])):l("",!0),e.fax&&e.fax.trim()?(n(),o("div",ss,[t[3]||(t[3]=s("span",{class:"label"},"傳真",-1)),s("span",es,a(e.fax),1)])):l("",!0),e.email&&e.email.trim()?(n(),o("div",ts,[t[4]||(t[4]=s("span",{class:"label"},"電郵",-1)),s("a",{href:`mailto:${e.email}`,style:{"text-decoration":"none",color:"inherit"}},[s("span",ns,a(e.email),1)],8,os)])):l("",!0),e.website&&e.website.trim()?(n(),o("div",as,[t[5]||(t[5]=s("span",{class:"label"},"網址",-1)),s("a",{href:e.website,style:{"text-decoration":"none",color:"inherit"},target:"_blank"},[s("span",is,a(e.website.replace(/^https?:\/\//,"")),1)],8,ls)])):l("",!0),e.services&&e.services.trim()?(n(),o("div",rs,[t[6]||(t[6]=s("span",{class:"label"},"備註",-1)),s("span",cs,a(e.services),1)])):l("",!0),e.hours?(n(),o("div",ds,[t[7]||(t[7]=s("span",{class:"label"},"辦公時間",-1)),s("div",us,[s("span",null,a(e.hours),1)])])):l("",!0)],2)])]))),128))])):(n(),o("div",vs,[...t[8]||(t[8]=[s("div",{class:"welcome-message"},[s("h2",null,"歡迎聯繫工聯會"),s("p",null,"請選擇上方服務類別查看詳細聯絡資訊")],-1)])]))])])):(n(),o("div",_s,[s("div",ps,[s("div",hs,[(n(!0),o(g,null,w(i(y).flat(),e=>(n(),o("button",{key:e.id,class:C(["nav-button",{active:i(v)===e.id}]),onClick:f=>m(e.id)},a(e.name),11,fs))),128))])]),s("div",bs,[i(k)?(n(),o("div",ys,[(n(!0),o(g,null,w(i(k),(e,f)=>(n(),o("div",{key:f,class:"service-card"}
1,[s("div",ks,[s("h3",gs,a(e.title),1),t[9]||(t[9]=s("div",{class:"location-icon"},[s("img",{src:I,alt:"location"})],-1))]),s("div",ws,[s("div",{class:C(["contact-info",i(d)?"info-mobile":""])},[e.address?(n(),o("div",Cs,[t[10]||(t[10]=s("span",{class:"label"},"地址",-1)),s("span",xs,[s("a",{href:D(e.address),target:"_blank",style:{"text-decoration":"none",color:"inherit"}},a(e.address),9,Ss)])])):l("",!0),e.phone&&e.phone.trim()?(n(),o("div",ms,[t[11]||(t[11]=s("span",{class:"label"},"电话",-1)),s("span",Ds,a(e.phone),1)])):l("",!0),e.fax&&e.fax.trim()?(n(),o("div",Is,[t[12]||(t[12]=s("span",{class:"label"},"传真",-1)),s("span",Rs,a(e.fax),1)])):l("",!0),e.email&&e.email.trim()?(n(),o("div",Us,[t[13]||(t[13]=s("span",{class:"label"},"电邮",-1)),s("a",{href:`mailto:${e.email}`,style:{"text-decoration":"none",color:"inherit"}},[s("span",qs,a(e.email),1)],8,$s)])):l("",!0),e.website&&e.website.trim()?(n(),o("div",Ns,[t[14]||(t[14]=s("span",{class:"label"},"网址",-1)),s("a",{href:e.website,style:{"text-decoration":"none",color:"inherit"},target:"_blank"},[s("span",js,a(e.website.replace(/^https?:\/\//,"")),1)],8,Ts)])):l("",!0),e.services&&e.services.trim()?(n(),o("div",zs,[t[15]||(t[15]=s("span",{class:"label"},"备注",-1)),s("span",As,a(e.services),1)])):l("",!0),e.hours?(n(),o("div",Bs,[t[16]||(t[16]=s("span",{class:"label"},"办公时间",-1)),s("div",Ls,[s("span",null,a(e.hours),1)])])):l("",!0)],2)])]))),128))])):(n(),o("div",Ms,[...t[17]||(t[17]=[s("div",{class:"welcome-message"},[s("h2",null,"欢迎联系工联会"),s("p",null,"请选择上方服务类别查看详细联络资讯")],-1)])]))])]))]))}}),Ps=B(Os,[["__scopeId","data-v-98b9e13e"]]),Ks=Object.freeze(Object.defineProperty({__proto__:null,default:Ps},Symbol.toStringTag,{value:"Module"}));export{Ps as C,Ks as a,M as u};

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.