PageSourceSearch

https://tabunghaji.gov.my/_nuxt/DPPsTVLa.js

js tabunghaji.gov.my collected 2026-10-02 11:05:48 UTC 31,240 bytes, 1 lines download raw bytes

1import{_ as $e}from"./CLvS6zwr.js";import Me from"./29Q671Qy.js";import{s as He,aw as ne,h as $,a1 as u,r as _e,al as Fe,U as Se,W as je,ap as Ie,ax as pe,m as Ce,Y as t,l as a,k as H,i as e,M as ee,af as s,d as Re,F,a3 as B,p as r,ay as O,o as A,ab as o,az as ve,at as be,aA as Ee,b as Be,aB as W,aq as Ae,j as we,au as Oe,a as me,O as ke,a4 as ze}from"./CaybM7gS.js";import{M as Pe}from"./C4nFu4DX.js";import{u as Ue}from"./CfOA-LQy.js";import{u as te}from"./Cs1w09T_.js";import{u as fe}from"./Bq2fhhqZ.js";import{_ as re}from"./DlAUqK2U.js";import Ne from"./BiYVrgUB.js";import"./C53JRSck.js";import"./DfAj_3LY.js";const Te=He("menu",()=>{const q="th-menu-cache",w="th-header-menu-cache",C="th-footer-cache",i=u(null),m=u(null),p=u(null),T=u(!1),f=u(!1),x=u(!1),g=u(null),h=u(null),I=u(null),M=u(null),v=u(null),b=u(null),k=1e3*60*5,y=d=>{if(!(typeof window>"u"))try{const c=localStorage.getItem(`${q}-${d}`);if(c){const P=JSON.parse(c);i.value=P.menuItems,g.value=P.lastFetched,M.value=d}const z=localStorage.getItem(`${w}-${d}`);if(z){const P=JSON.parse(z);m.value=P.headerMenuItems,h.value=P.lastFetched,v.value=d}const Y=localStorage.getItem(`${C}-${d}`);if(Y){const P=JSON.parse(Y);p.value=P.footerInfo,I.value=P.lastFetched,b.value=d}}catch(c){console.error("Failed to load menu from localStorage:",c)}},G=d=>{if(!(typeof window>"u"||!i.value))try{const c={menuItems:i.value,lastFetched:g.value||Date.now()};localStorage.setItem(`${q}-${d}`,JSON.stringify(c))}catch(c){console.error("Failed to save menu to localStorage:",c)}},ae=d=>{if(!(typeof window>"u"||!m.value))try{const c={headerMenuItems:m.value,lastFetched:h.value||Date.now()};localStorage.setItem(`${w}-${d}`,JSON.stringify(c))}catch(c){console.error("Failed to save header menu to localStorage:",c)}},se=d=>{if(!(typeof window>"u"||!p.value))try{const c={footerInfo:p.value,lastFetched:I.value||Date.now()};localStorage.setItem(`${C}-${d}`,JSON.stringify(c))}catch(c){console.error("Failed to save footer info to localStorage:",c)}},{locale:R}=te();y(R.value),ne(R,(d,c)=>{d!==c&&(y(d),Q(!0),Z(!0),oe(!0))});const K=$(()=>!g.value||!i.value||M.value!==R.value?!1:Date.now()-g.value<k),E=$(()=>!h.value||!m.value||v.value!==R.value?!1:Date.now()-h.value<k),J=$(()=>!I.value||!p.value||b.value!==R.value?!1:Date.now()-I.value<k);let N=null,D=null,V=null;async function Z(d=!1){if(!d&&K.value)return i.value;if(T.value&&N)return N;const{strapiLocale:c}=te();return T.value=!0,N=(async()=>{try{const{data:z,error:Y}=await fe("/navigation/render/soo3nh8ere4r9nfdbhfofwij?type=TREE",{query:{locale:c.value}},"$LqxsxCZY51");return i.value=z.value||null,g.value=Date.now(),M.value=R.value,G(R.value),i.value}finally{T.value=!1,N=null}})(),N}async function Q(d=!1){if(!d&&E.value)return m.value;if(f.value&&D)return D;const{strapiLocale:c}=te();return f.value=!0,D=(async()=>{try{const{data:z}=await fe("/navigation/render/s2dr2p8boa9zylver68f7rco?type=TREE",{query:{locale:c.value}},"$9RURYZ6Z4c");return m.value=z.value||null,h.value=Date.now(),v.value=R.value,ae(R.value),m.value}finally{f.value=!1,D=null}})(),D}async function oe(d=!1){return!d&&J.value?p.value:(x.value&&V||(x.value=!0,V=(async()=>{try{const{strapiLocale:c}=te(),{data:z}=await fe("/footer",{query:{locale:c.value}},"$OPcU7qcswC");return p.value=z.value||null,I.value=Date.now(),b.value=R.value,se(R.value),p.value}finally{x.value=!1,V=null}})()),V)}function ie(){i.value=null,m.value=null,p.value=null,g.value=null,h.value=null,I.value=null,M.value=null,v.value=null,b.value=null,typeof window<"u"&&(localStorage.removeItem(`${q}-bm`),localStorage.removeItem(`${q}-en`),localStorage.removeItem(`${w}-bm`),localStorage.removeItem(`${w}-en`),localStorage.removeItem(`${C}-bm`),localStorage.removeItem(`${C}-en`))}const ce=$(()=>{if(!m.value)return[];const d=m.value.find(c=>c.title==="Simpanan"||c.title==="Savings");return d?d.items:[]}),de=$(()=>{if(!m.value)return[];const d=m.value.find(c=>c.title==="Haji"||c.title==="Hajj");return d?d.items:[]}),ue=$(()=>{if(!m.value)return[];const d=m.value.find(c=>c.title==="Produk"||c.title==="Products");return d?d.items:[]}),he=$(()=>{if(!m.value)return[];const d=m.value.find(c=>c.title==="THiJARI");return d?d.items:[]});return{menuItems:$(()=>i.value),headerMenuItems:$(()=>m.value),footerInfo:$(()=>p.value),isLoading:$(()=>T.value),isHeaderLoading:$(()=>f.value),isFooterLoading:$(()=>x.value),isCacheValid:K,isHeaderCacheValid:E,isFooterCacheValid:J,headerSimpananMenu:ce,headerHajiMenu:de,headerProdukMenu:ue,headerThijariMenu:he,fetch
1MenuItems:Z,fetchHeaderMenuItems:Q,fetchFooterInfo:oe,clearCache:ie}}),De={class:"flex gap-[26px]"},qe=["href"],Je={class:"nav gap-[8px] hidden lg:flex"},Ve={key:0,class:"absolute top-full left-0 pt-2 bg-white shadow-xl rounded-lg border border-gray-200 z-50 w-[800px]"},Ye={class:"grid grid-cols-12 divide-x divide-logo-100"},Ge={class:"p-6 col-span-4"},Ke={class:"text-lg font-bold text-secondary-dark-100 mb-3"},We={class:"text-sm text-gray-500 leading-relaxed"},Ze={class:"p-6 col-span-8"},Qe={class:"text-lg font-bold text-secondary-dark-100 mb-4"},Xe={class:"grid grid-cols-2 gap-4 text-secondary-mid-100"},et={class:"text-secondary-mid-100"},tt=["href"],at={class:"text-sm text-secondary-mid-100"},st=["href"],ot={key:0,class:"absolute top-full left-0 pt-2 bg-white shadow-xl rounded-lg border border-gray-200 z-50 w-[800px]"},lt={class:"grid grid-cols-12 divide-x divide-logo-100"},nt={class:"p-6 col-span-4"},rt={class:"text-lg font-bold text-secondary-dark-100 mb-3"},it={class:"text-sm text-gray-500 leading-relaxed"},ct={class:"p-6 col-span-8"},dt={class:"text-lg font-bold text-secondary-dark-100 mb-4"},ut={class:"grid grid-cols-2 gap-4 text-secondary-mid-100"},ht={class:"text-secondary-mid-100"},mt=["href"],ft={class:"text-sm text-secondary-mid-100"},pt=["href"],vt={key:0,class:"absolute top-full left-0 pt-2 bg-white shadow-xl rounded-lg border border-gray-200 z-50 w-[200px]"},_t={class:"divide-x divide-logo-100"},gt={class:"p-6"},xt={class:"grid gap-4 text-secondary-mid-100"},yt={class:"text-secondary-mid-100"},bt=["href"],wt={class:"text-sm text-secondary-mid-100"},kt={key:0,class:"absolute top-full left-0 pt-2 bg-white shadow-xl rounded-lg border border-gray-200 z-50 w-[200px]"},$t={class:"divide-x divide-logo-100"},Mt={class:"p-6"},St={class:"grid gap-4 text-secondary-mid-100"},jt={class:"text-secondary-mid-100"},Ct=["href"],Tt={class:"text-sm text-secondary-mid-100"},Lt={key:4,class:"relative flex items-center"},Ht=["href"],Ft={class:"gap-[8px] hidden lg:flex"},It={class:"flex items-center border border-gray-300 rounded-lg px-3 py-1.5 gap-2 focus-within:border-primary-100 transition-colors"},Rt=["placeholder"],Et={key:0,class:"absolute top-full right-0 mt-2 w-[480px] bg-white rounded-xl shadow-2xl border border-gray-200 z-50 overflow-hidden"},Bt={class:"max-h-[60vh] overflow-y-auto"},At={key:0,class:"text-center py-8 text-gray-500 flex flex-col items-center"},Ot={key:1,class:"p-2 space-y-1"},zt=["href"],Pt={class:"font-semibold text-gray-800"},Ut={key:2,class:"text-center py-8 text-gray-500"},Nt={class:"flex items-center"},Dt={target:"_blank",href:"https://www.thijari.com.my/"},qt={class:"flex items-center gap-1 ml-2"},Jt={class:"flex lg:hidden"},Vt={class:"flex flex-col p-4 bg-white rounded-lg shadow-lg z-50 lg:hidden"},Yt={class:"flex flex-col space-y-2"},Gt={class:"border-b border-gray-100"},Kt={key:0,class:"pl-4 pb-2"},Wt=["href"],Zt=["href"],Qt={class:"border-b border-gray-100"},Xt={key:0,class:"pl-4 pb-2"},ea=["href"],ta=["href"],aa={class:"border-b border-gray-100"},sa={key:0,class:"pl-4 pb-2"},oa=["href"],la={class:"border-b border-gray-100"},na={key:0,class:"pl-4 pb-2"},ra=["href"],ia={class:"flex items-center border border-gray-300 rounded-xl px-4 py-2.5 gap-2 focus-within:border-primary-100 transition-colors bg-white"},ca=["placeholder"],da={key:0,class:"absolute left-0 right-0 top-full mt-1 bg-white rounded-xl shadow-xl border border-gray-200 z-50 overflow-hidden"},ua={class:"max-h-[40vh] overflow-y-auto"},ha={key:0,class:"text-center py-4 text-gray-500"},ma={key:1,class:"p-2 space-y-1"},fa=["href"],pa={key:2,class:"text-center py-4 text-gray-500 text-sm"},va={target:"_blank",href:"https://www.thijari.com.my/"},_a=_e({__name:"AppHeader",async setup(q){let w,C;const{t:i,setLocale:m}=Fe();Ue();const p=Te(),T=Ae(),{locale:f,switchLocale:x,isSupported:g}=te();ne(f,L=>{m(L)},{immediate:!0});const h=u(!1),I=()=>{h.value=window.scrollY>0};Se(()=>{window.addEventListener("scroll",I,{passive:!0}),document.addEventListener("click",ge),I()}),je(()=>{window.removeEventListener("scroll",I),document.removeEventListener("click",ge)});const M=u(!1),v=u(!1),b=u(!1),k=u(!1),y=u(!1),G=u(!1),ae=u(!1),se=u(!1),R=u(!1),K=$(()=>f.value==="bm"?"ms":f.value),E=u(""),J=u([]),N=u(!1),D=u(!1),V=u(null),Z=u(null),Q=u(!1),oe=u(null),ie=()=>{M.value=!M.value},ce=()=>{v.value=!v.value},de=()=>{b.value=!b.value},ue=()=>{k.value=!k.value},he=()=>{y.value=!y.value}
1,d=new Pe({host:T.public.meilisearchUrl,apiKey:T.public.meilisearchKey}),c=async L=>{if(!L.trim()){J.value=[];return}N.value=!0;try{const l=await d.multiSearch({queries:[{indexUid:"page",q:L,limit:5},{indexUid:"article",q:L,limit:5},{indexUid:"campaign",q:L,limit:3},{indexUid:"faq",q:L,limit:3}]}),U=[],S=l.results[0]?.hits;console.log(S),S&&U.push(...S.map(j=>({title:j.metaTitle?j.metaTitle:j.slug.split("-").map(ye=>ye.charAt(0).toUpperCase()+ye.slice(1)).join(" ").replace(/Th/g,"TH"),link:j.slug?`/${j.slug}`:void 0})));const X=l.results[1]?.hits;X&&U.push(...X.map(j=>({title:`${j.title}`.replace(/Th/g,"TH"),link:j.slug?`/siaran-media/${j.category?.name}/${j.slug}`:void 0})));const n=l.results[2]?.hits;n&&U.push(...n.map(j=>({title:`${j.title}`.replace(/Th/g,"TH"),link:j.slug?`/program-kempen/${j.slug}`:void 0})));const _=l.results[3]?.hits;_&&U.push(..._.map(j=>({title:`Soalan Lazim ${j.name}`.replace(/Th/g,"TH"),link:j.slug?`/soalan-lazim/${j.slug}`:void 0}))),J.value=U}catch(l){console.error("Search error:",l),J.value=[]}finally{N.value=!1}};let z;ne(E,L=>{clearTimeout(z),z=setTimeout(()=>c(L),300)});const Y=$(()=>E.value.trim()===""?[]:J.value),P=()=>{E.value="",J.value=[],V.value?.focus()},Le=()=>{D.value=!1,V.value?.blur()},ge=L=>{Z.value&&!Z.value.contains(L.target)&&(D.value=!1)},xe=()=>{M.value=!1,v.value=!1,b.value=!1,k.value=!1,y.value=!1,Q.value=!1,E.value="",J.value=[]},le=L=>{const l=L==="ms"?"bm":L;g(l)&&x(l)};Ie().afterEach(()=>{M.value=!1}),ne(M,L=>{L?document.body.style.overflow="hidden":document.body.style.overflow=""});try{[w,C]=pe(()=>p.fetchHeaderMenuItems()),await w,C()}catch{throw Ce({statusCode:404,statusMessage:"Page Not Found",fatal:!0})}return(L,l)=>{const U=$e,S=Me,X=Be;return t(),a("div",null,[M.value?(t(),a("div",{key:0,class:"fixed inset-0 bg-black bg-opacity-25 lg:hidden",onClick:xe})):H("",!0),e("div",{class:ee([h.value?"h-[64px] py-[11px]":"h-[96px] py-[11px]","h-[64px] py-[11px] sticky top-0 z-50 w-full bg-white px-[24px] xl:pl-[100px] xl:pr-[84px] border-b-[2px] border-accent flex justify-between relative transition-all duration-300"])},[e("div",De,[e("a",{href:`/${s(f)}`,class:ee([h.value?"w-[114px]":"w-[154px]","block transition-all duration-300"])},[...l[18]||(l[18]=[e("img",{class:"h-full object-contain",src:Re,alt:""},null,-1)])],10,qe),e("div",Je,[(t(!0),a(F,null,B(s(p).headerMenuItems,n=>(t(),a(F,{key:n.id},[n.title==="Simpanan"||n.title==="Savings"?(t(),a("div",{key:0,class:"relative flex items-center",onMouseenter:l[0]||(l[0]=_=>G.value=!0),onMouseleave:l[1]||(l[1]=_=>G.value=!1)},[r(U,{class:"nav-item"},{default:O(()=>[A(o(s(i)("header.navSimpanan")),1)]),_:1}),G.value?(t(),a("div",Ve,[e("div",Ye,[e("div",Ge,[e("h3",Ke,o(s(i)("header.navSimpanan")),1),e("p",We,o(n.additionalFields.description),1)]),e("div",Ze,[e("h3",Qe,o(s(i)("header.navSimpanan")),1),e("div",Xe,[(t(!0),a(F,null,B(s(p).headerSimpananMenu,_=>(t(),a("div",et,[e("a",{href:`/${s(f)}${_.path}`,class:"block font-bold hover:underline !text-secondary-mid-100"},o(_.title),9,tt),e("p",at,o(_.additionalFields?.description),1)]))),256))]),e("a",{href:`/${s(f)}/menu#simpanan`,class:"inline-flex !text-dark-grey-100 items-center gap-2 mt-8 text-sm font-semibold"},[A(o(s(i)("header.learnSimpanan"))+" ",1),r(S,{class:"!text-primary-100",name:"material-symbols:arrow-forward"})],8,st)])])])):H("",!0)],32)):n.title==="Haji"||n.title==="Hajj"?(t(),a("div",{key:1,class:"relative flex items-center",onMouseenter:l[2]||(l[2]=_=>ae.value=!0),onMouseleave:l[3]||(l[3]=_=>ae.value=!1)},[r(U,{class:"nav-item"},{default:O(()=>[A(o(s(i)("header.navHaji")),1)]),_:1}),ae.value?(t(),a("div",ot,[e("div",lt,[e("div",nt,[e("h3",rt,o(s(i)("header.navHaji")),1),e("p",it,o(n.additionalFields.description),1)]),e("div",ct,[e("h3",dt,o(s(i)("header.navHaji")),1),e("div",ut,[(t(!0),a(F,null,B(s(p).headerHajiMenu,_=>(t(),a("div",ht,[e("a",{href:`/${s(f)}${_.path}`,class:"block font-bold hover:underline !text-secondary-mid-100"},o(_.title),9,mt),e("p",ft,o(_.additionalFields?.description),1)]))),256))]),e("a",{href:`/${s(f)}/menu#haji`,class:"inline-flex !text-dark-grey-100 items-center gap-2 mt-8 text-sm font-semibold"},[A(o(s(i)("header.learnHaji"))+" ",1),r(S,{class:"!text-primary-100",name:"material-symbols:arrow-forward"})],8,pt)])])])):H("",!0)],32)):n.title==="Produk"||n.title==="Products"?(t(),a("div",{key:2,class:"relative flex items-center",onMouseenter:l[4]||(l[4]=_=>se.value=!0),onMouseleave:l[5]||(l[5]=_=>se.value=!1)},[r(U,{class:"nav-item"},{default:O(()=>
1[A(o(s(i)("header.navProduk")),1)]),_:1}),se.value?(t(),a("div",vt,[e("div",_t,[e("div",gt,[e("div",xt,[(t(!0),a(F,null,B(s(p).headerProdukMenu,_=>(t(),a("div",yt,[e("a",{href:`/${s(f)}${_.path}`,class:"block font-bold hover:underline !text-secondary-mid-100"},o(_.title),9,bt),e("p",wt,o(_.additionalFields?.description),1)]))),256))])])])])):H("",!0)],32)):n.title==="THiJARI"?(t(),a("div",{key:3,class:"relative flex items-center",onMouseenter:l[6]||(l[6]=_=>R.value=!0),onMouseleave:l[7]||(l[7]=_=>R.value=!1)},[r(U,{class:"nav-item"},{default:O(()=>[A(o(s(i)("header.navThijari")),1)]),_:1}),R.value?(t(),a("div",kt,[e("div",$t,[e("div",Mt,[e("div",St,[(t(!0),a(F,null,B(s(p).headerThijariMenu,_=>(t(),a("div",jt,[e("a",{href:`/${s(f)}${_.path}`,class:"block font-bold hover:underline !text-secondary-mid-100"},o(_.title),9,Ct),e("p",Tt,o(_.additionalFields?.description),1)]))),256))])])])])):H("",!0)],32)):(t(),a("div",Lt,[e("a",{href:`/${s(f)}${n.path}`,class:"nav-item"},o(n.title),9,Ht)]))],64))),128))])]),e("div",Ft,[e("div",{class:"relative flex items-center",ref_key:"searchContainerRef",ref:Z},[e("div",It,[r(S,{name:"material-symbols:search",class:"text-xl text-gray-400 flex-shrink-0"}),ve(e("input",{ref_key:"desktopSearchInput",ref:V,"onUpdate:modelValue":l[8]||(l[8]=n=>E.value=n),type:"text",placeholder:s(i)("header.search"),class:"outline-none text-sm w-[180px] text-gray-800 placeholder-gray-400",onFocus:l[9]||(l[9]=n=>D.value=!0),onKeydown:Ee(Le,["esc"])},null,40,Rt),[[be,E.value]]),E.value?(t(),a("button",{key:0,onClick:P,class:"text-gray-400 hover:text-gray-600"},[r(S,{name:"material-symbols:close",class:"text-lg"})])):H("",!0)]),D.value&&E.value.trim()!==""?(t(),a("div",Et,[e("div",Bt,[N.value?(t(),a("div",At,[r(S,{name:"svg-spinners:ring-resize",class:"text-3xl mx-auto mb-2"}),A(" "+o(s(i)("header.searching")),1)])):Y.value.length>0?(t(),a("div",Ot,[(t(!0),a(F,null,B(Y.value,n=>(t(),a("a",{key:n.title,href:`/${s(f)}${n.link}`,class:"block px-4 py-3 rounded-lg hover:bg-gray-50 transition-colors"},[e("div",Pt,o(n.title),1)],8,zt))),128))])):(t(),a("div",Ut,o(s(i)("header.noResults")),1))])])):H("",!0)],512),e("div",Nt,[e("a",Dt,[r(X,null,{default:O(()=>[A(o(s(i)("header.loginThijari")),1)]),_:1})])]),e("div",qt,[e("button",{onClick:l[10]||(l[10]=n=>le("en")),class:ee(["text-sm px-1 transition-colors text-primary-100",K.value==="en"?"font-extrabold":""])}," ENG ",2),l[19]||(l[19]=e("span",{class:"text-gray-300 font-light"},"|",-1)),e("button",{onClick:l[11]||(l[11]=n=>le("ms")),class:ee(["text-sm px-1 transition-colors text-primary-100",K.value==="ms"?"font-extrabold":""])}," BM ",2)])]),e("div",Jt,[r(X,{variant:"flat",shadow:!1,onClick:W(ie,["stop"]),class:"!p-2"},{default:O(()=>[r(S,{name:"material-symbols:menu",class:"text-2xl"})]),_:1})]),M.value?(t(),a("div",{key:0,class:"absolute top-full left-0 right-0 translate-y-1",onClick:xe},[e("div",null,[e("div",Vt,[e("div",Yt,[e("div",Gt,[e("button",{onClick:W(ce,["stop"]),class:"mobile-nav-item w-full flex items-center justify-between"},[e("span",null,o(s(i)("header.navSimpanan")),1),r(S,{name:v.value?"mdi:minus":"material-symbols:add",class:"text-xl"},null,8,["name"])]),v.value?(t(),a("div",Kt,[(t(!0),a(F,null,B(s(p).headerSimpananMenu,n=>(t(),a("a",{key:n.path,href:`/${s(f)}${n.path}`,class:"block py-2 text-sm text-secondary-mid-100 hover:text-primary-100"},o(n.title),9,Wt))),128)),e("a",{href:`/${s(f)}/menu#simpanan`,class:"inline-flex items-center gap-2 py-2 text-sm font-semibold text-dark-grey-100 hover:text-primary-100"},[A(o(s(i)("header.learnSimpanan"))+" ",1),r(S,{class:"!text-primary-100",name:"material-symbols:arrow-forward"})],8,Zt)])):H("",!0)]),e("div",Qt,[e("button",{onClick:W(de,["stop"]),class:"mobile-nav-item w-full flex items-center justify-between"},[e("span",null,o(s(i)("header.navHaji")),1),r(S,{name:b.value?"mdi:minus":"material-symbols:add",class:"text-xl"},null,8,["name"])]),b.value?(t(),a("div",Xt,[(t(!0),a(F,null,B(s(p).headerHajiMenu,n=>(t(),a("a",{key:n.path,href:`/${s(f)}${n.path}`,class:"block py-2 text-sm text-secondary-mid-100 hover:text-primary-100"},o(n.title),9,ea))),128)),e("a",{href:`/${s(f)}/menu#haji`,class:"inline-flex items-center gap-2 py-2 text-sm font-semibold text-dark-grey-100 hover:text-primary-100"},[A(o(s(i)("header.learnHaji"))+" ",1),r(S,{class:"!text-primary-100",name:"material-symbols:arrow-forward"})],8,ta)])):H("",!0)]),e("div",aa,[e("button",{onClick:W(ue,["stop"]),class:"mobile-nav-item w-full flex items-center justify-between"}
1,[e("span",null,o(s(i)("header.navProduk")),1),r(S,{name:k.value?"mdi:minus":"material-symbols:add",class:"text-xl"},null,8,["name"])]),k.value?(t(),a("div",sa,[(t(!0),a(F,null,B(s(p).headerProdukMenu,n=>(t(),a("a",{key:n.path,href:`/${s(f)}${n.path}`,class:"block py-2 text-sm text-secondary-mid-100 hover:text-primary-100"},o(n.title),9,oa))),128))])):H("",!0)]),e("div",la,[e("button",{onClick:W(he,["stop"]),class:"mobile-nav-item w-full flex items-center justify-between"},[e("span",null,o(s(i)("header.navThijari")),1),r(S,{name:y.value?"mdi:minus":"material-symbols:add",class:"text-xl"},null,8,["name"])]),y.value?(t(),a("div",na,[(t(!0),a(F,null,B(s(p).headerThijariMenu,n=>(t(),a("a",{key:n.path,href:`/${s(f)}${n.path}`,class:"block py-2 text-sm text-secondary-mid-100 hover:text-primary-100"},o(n.title),9,ra))),128))])):H("",!0)]),r(U,{to:`/${s(f)}/hubungi-kami`,class:"mobile-nav-item"},{default:O(()=>[A(o(s(i)("header.contactUs")),1)]),_:1},8,["to"]),e("div",{class:"flex items-center gap-1 px-4 py-3",onClick:l[14]||(l[14]=W(()=>{},["stop"]))},[e("button",{onClick:l[12]||(l[12]=n=>le("en")),class:ee(["text-sm px-1 transition-colors text-primary-100",K.value==="en"?"font-extrabold":""])}," ENG ",2),l[20]||(l[20]=e("span",{class:"text-gray-300 font-light"},"|",-1)),e("button",{onClick:l[13]||(l[13]=n=>le("ms")),class:ee(["text-sm px-1 transition-colors text-primary-100",K.value==="ms"?"font-extrabold":""])}," BM ",2)])])]),e("div",{class:"flex items-center gap-3 mt-6 px-3",onClick:l[17]||(l[17]=W(()=>{},["stop"]))},[e("div",ia,[r(S,{name:"material-symbols:search",class:"text-xl text-primary-100 flex-shrink-0"}),ve(e("input",{ref_key:"mobileSearchInput",ref:oe,"onUpdate:modelValue":l[15]||(l[15]=n=>E.value=n),type:"text",placeholder:s(i)("header.search"),class:"w-1/2 flex-1 outline-none text-sm text-gray-800 placeholder-gray-400 bg-white",onFocus:l[16]||(l[16]=n=>Q.value=!0)},null,40,ca),[[be,E.value]]),E.value?(t(),a("button",{key:0,onClick:P,class:"text-gray-400 hover:text-gray-600 flex items-center"},[r(S,{name:"material-symbols:close",class:"text-lg"})])):H("",!0)]),Q.value&&E.value.trim()!==""?(t(),a("div",da,[e("div",ua,[N.value?(t(),a("div",ha,[r(S,{name:"svg-spinners:ring-resize",class:"text-2xl mx-auto mb-1"}),A(" "+o(s(i)("header.searching")),1)])):Y.value.length>0?(t(),a("div",ma,[(t(!0),a(F,null,B(Y.value,n=>(t(),a("a",{key:n.title,href:`/${s(f)}${n.link}`,class:"block px-3 py-2 rounded-lg hover:bg-gray-50 text-sm font-semibold text-gray-800"},o(n.title),9,fa))),128))])):(t(),a("div",pa,o(s(i)("header.noResults")),1))])])):H("",!0),e("a",va,[r(X,{class:"text-xs"},{default:O(()=>[A(o(s(i)("header.loginThijari")),1)]),_:1})])])])])):H("",!0)],2)])}}}),ga=Object.assign(re(_a,[["__scopeId","data-v-10342786"]]),{__name:"LayoutAppHeader"}),xa=""+new URL("TH_logo_white_line.WqcOhJtu.png",import.meta.url).href,ya={id:"main-footer",class:"bg-black w-full px-4 md:px-[100px] pt-[45px] pb-[70px] grid grid-cols-1 lg:grid-cols-12 gap-8 lg:gap-[90px] lg:grid-rows-auto"},ba={class:"lg:col-span-3 lg:row-span-2"},wa={class:"flex-wrap gap-[16px] mt-[36px] hidden lg:flex"},ka={href:"https://www.facebook.com/TabungHaji",target:"_blank",rel:"noopener noreferrer"},$a={href:"https://www.tiktok.com/@tabunghaji",target:"_blank",rel:"noopener noreferrer"},Ma={href:"https://x.com/tabung_haji",target:"_blank",rel:"noopener noreferrer"},Sa={href:"https://www.instagram.com/lembagatabunghaji",target:"_blank",rel:"noopener noreferrer"},ja={href:"https://www.threads.net/@lembagatabunghaji",target:"_blank",rel:"noopener noreferrer"},Ca={href:"https://www.youtube.com/channel/UC4sle1phSYLhmayy5050_kA/featured",target:"_blank",rel:"noopener noreferrer"},Ta={href:"https://www.linkedin.com/company/tabung-haji",target:"_blank",rel:"noopener noreferrer"},La={class:"my-4 block",href:"/soalan-lazim"},Ha={class:"my-4 block",href:"/maklum-balas"},Fa={class:"hidden lg:block"},Ia={class:"text-white font-bold mb-4"},Ra={class:"space-y-3"},Ea={class:"flex gap-4 items-center"},Ba={class:"rounded-xl bg-[#2A2B2E] text-1-primary-green w-8 h-8 flex justify-center items-center"},Aa={class:"text-white"},Oa={class:"flex gap-4 items-center"},za={class:"rounded-xl bg-[#2A2B2E] text-1-primary-green w-8 h-8 flex justify-center items-center"},Pa={class:"text-white"},Ua={href:"mailto:[email protected]",class:"!text-white"},Na=["innerHTML"],Da={class:"lg:col-span-9 lg:row-span-1"},qa={class:"footer-nav-container hidden lg:flex w-full mt-[10px] gap-10"},Ja={class:"footer-nav__title"},Va={class:"footer-nav__items"},Ya={class:"lg:hidden space-y-4"},Ga=["onClick"],Ka={class:"footer-nav__title"},Wa={class:"accordion-content overflow-hidden transition-all duration-300"},Za={class:"footer-nav__items pb-4"},Qa={class:"text-white lg:row-span-1 lg:col-span-9 text-14 penafian"},Xa={class:"lg:hidden mt-8"},es={class:"flex flex-wrap gap-[16px]"},ts={href:"https://www.facebook.com/TabungHaji",target:"_blank",rel:"noopener noreferrer"},as={href:"https://www.tiktok.com/@tabunghaji",target:"_blank",rel:"noopener noreferrer"},ss={href:"https://x.com/tabung_haji",target:"_blank",rel:"noopener noreferrer"},os={href:"https://www.instagram.com/lembagatabunghaji",target:"_blank",rel:"noopener noreferrer"},ls={href:"https://www.threads.net/@lembagatabunghaji",target:"_blank",rel:"noopener noreferrer"},ns={href:"https://www.youtube.com/channel/UC4sle1phSYLhmayy5050_kA/featured",target:"_blank",rel:"noopener noreferrer"},rs={href:"https://www.linkedin.com/company/tabung-haji",target:"_blank",rel:"noopener noreferrer"},is={class:"text-white font-bold mb-4"},cs={class:"space-y-3"},ds={class:"flex gap-4 items-center"},us={class:"rounded-xl bg-[#2A2B2E] text-1-primary-green w-8 h-8 flex justify-center items-center"},hs={class:"text-white"},ms={class:"flex gap-4 items-center"},fs={class:"rounded-xl bg-[#2A2B2E] text-1-primary-green w-8 h-8 flex justify-center items-center"},ps={class:"text-white"},vs={href:"mailto:[email protected]",class:"!text-white"},_s=["innerHTML"],gs=_e({__name:"AppFooter",async setup(q){let w,C;const i=Te();try{[w,C]=pe(()=>i.fetchMenuItems()),await w,C()}catch{throw Ce({statusCode:404,statusMessage:"Page Not Found",fatal:!0})}[w,C]=pe(()=>
1i.fetchFooterInfo()),await w,C();const m=u({}),p=x=>{m.value[x]=!m.value[x]},T=$(()=>i.footerInfo?.data??{}),f=$(()=>i.menuItems?i.menuItems.map(x=>({title:x.title,items:x.items?.map(g=>({name:g.title,link:g.path||"/"}))||[]})):[]);return(x,g)=>{const h=Me,I=$e,M=Ne;return t(),a("div",ya,[e("div",ba,[g[0]||(g[0]=e("img",{class:"w-[200px]",src:xa,alt:""},null,-1)),e("div",wa,[e("a",ka,[r(h,{class:"social-icons",name:"mdi:facebook"})]),e("a",$a,[r(h,{class:"social-icons",name:"ic:baseline-tiktok"})]),e("a",Ma,[r(h,{class:"social-icons",name:"ri:twitter-x-fill"})]),e("a",Sa,[r(h,{class:"social-icons",name:"mdi:instagram"})]),e("a",ja,[r(h,{class:"social-icons",name:"ri:threads-fill"})]),e("a",Ca,[r(h,{class:"social-icons",name:"ri:youtube-line"})]),e("a",Ta,[r(h,{class:"social-icons",name:"ri:linkedin-box-line"})])]),g[1]||(g[1]=e("hr",{class:"bg-1-primary-green border-1-primary-green mt-6 block"},null,-1)),e("a",La,o(x.$t("footer.soalanLazim")),1),g[2]||(g[2]=e("hr",{class:"bg-1-primary-green border-1-primary-green mb-6 block"},null,-1)),e("a",Ha,o(x.$t("footer.borangMaklumBalas")),1),g[3]||(g[3]=e("hr",{class:"bg-1-primary-green border-1-primary-green mb-6 block"},null,-1)),e("div",Fa,[e("p",Ia,o(x.$t("footer.thcc")),1),e("div",Ra,[e("div",Ea,[e("div",Ba,[r(h,{name:"mage:phone"})]),e("div",Aa,[e("p",null,o(x.$t("footer.telefon")),1),e("p",null,o(T.value.telefon),1)])]),e("div",Oa,[e("div",za,[r(h,{name:"ph:envelope"})]),e("div",Pa,[e("p",null,o(x.$t("footer.emel")),1),e("a",Ua,o(T.value.emel),1)])])]),e("p",{class:"text-white mt-6",innerHTML:T.value.waktuOperasi},null,8,Na)])]),e("div",Da,[e("div",qa,[(t(!0),a(F,null,B(f.value,v=>(t(),a("div",{key:v.title,class:"footer-nav-sections"},[e("p",Ja,o(v.title),1),e("div",Va,[(t(!0),a(F,null,B(v.items,b=>(t(),we(I,{key:b.name,href:b.link,class:"block !text-[#B2B2B2]"},{default:O(()=>[e("p",null,o(b.name),1)]),_:2},1032,["href"]))),128))])]))),128))]),e("div",Ya,[(t(!0),a(F,null,B(f.value,v=>(t(),a("div",{key:v.title,class:"accordion-item"},[e("button",{onClick:b=>p(v.title.toLowerCase()),class:"accordion-header w-full flex justify-between items-center py-4 text-left"},[e("span",Ka,o(v.title),1),r(h,{name:m.value[v.title.toLowerCase()]?"mdi:minus":"mdi:plus",class:"text-white text-xl transition-transform duration-200"},null,8,["name"])],8,Ga),ve(e("div",Wa,[e("div",Za,[(t(!0),a(F,null,B(v.items,b=>(t(),we(I,{key:b.name,href:b.link,class:"block !text-[#B2B2B2]"},{default:O(()=>[e("p",null,o(b.name),1)]),_:2},1032,["href"]))),128))])],512),[[Oe,m.value[v.title.toLowerCase()]]])]))),128))])]),e("div",Qa,[r(M,{animate:!1,content:T.value.penafian},null,8,["content"])]),e("div",Xa,[e("div",es,[e("a",ts,[r(h,{class:"social-icons",name:"mdi:facebook"})]),e("a",as,[r(h,{class:"social-icons",name:"ic:baseline-tiktok"})]),e("a",ss,[r(h,{class:"social-icons",name:"ri:twitter-x-fill"})]),e("a",os,[r(h,{class:"social-icons",name:"mdi:instagram"})]),e("a",ls,[r(h,{class:"social-icons",name:"ri:threads-fill"})]),e("a",ns,[r(h,{class:"social-icons",name:"ri:youtube-line"})]),e("a",rs,[r(h,{class:"social-icons",name:"ri:linkedin-box-line"})])]),g[4]||(g[4]=e("hr",{class:"bg-1-primary-green border-1-primary-green my-8"},null,-1)),e("p",is,o(x.$t("footer.thcc")),1),e("div",cs,[e("div",ds,[e("div",us,[r(h,{name:"mage:phone"})]),e("div",hs,[e("p",null,o(x.$t("footer.telefon")),1),e("p",null,o(T.value.telefon),1)])]),e("div",ms,[e("div",fs,[r(h,{name:"ph:envelope"})]),e("div",ps,[e("p",null,o(x.$t("footer.emel")),1),e("a",vs,o(T.value.emel),1)])])]),e("p",{class:"text-white mt-6",innerHTML:T.value.waktuOperasi},null,8,_s)])])}}}),xs=Object.assign(re(gs,[["__scopeId","data-v-4fabc645"]]),{__name:"LayoutAppFooter"}),ys=""+new URL("th_gerak_icon.CXuPlxi-.webp",import.meta.url).href,bs=""+new URL("adam.C6Zu4Ag2.png",import.meta.url).href,ws={key:0,class:"fixed inset-0 bg-black/40 z-[9999] pointer-events-none"},ks=_e({__name:"FloatingChatButton",setup(q){const w=u(null),C=u(null),i=u(null),m=u(null);let p=null;const{locale:T}=te(),f=$(()=>T.value==="en"?"en":"ms");function x(){window.fdWidget&&typeof window.fdWidget.open=="function"?(window.fdWidget.user.update({language:f.value}),window.fdWidget.open()):console.error("Freshdesk widget not loaded yet")}const g=$(()=>{if(!i.value)return"0px";
1const k=i.value.getBoundingClientRect();return`${k.top+k.height/2}px`}),h=$(()=>{if(!m.value)return"0px";const k=m.value.getBoundingClientRect();return`${k.top+k.height/2}px`});function I(k){M(),w.value=k}function M(){p&&(clearTimeout(p),p=null)}function v(){M(),p=setTimeout(()=>{w.value=null},150)}function b(k){const y=k.target;C.value?.contains(y)||(w.value=null)}return Se(()=>{document.addEventListener("click",b)}),je(()=>{document.removeEventListener("click",b)}),(k,y)=>(t(),a(F,null,[r(me,{name:"fade"},{default:O(()=>[s(w)?(t(),a("div",ws)):H("",!0)]),_:1}),r(me,{name:"slide"},{default:O(()=>[s(w)==="gerak"?(t(),a("a",{key:0,target:"_blank",href:"/th-gerak",class:"fixed z-[10000] flex items-center -translate-y-1/2 gap-3 px-8 py-4 bg-black rounded-xl shadow-xl hover:brightness-110 transition-all duration-200 no-underline",style:ke({top:s(g),right:"5.5rem"}),"aria-label":"TH Gerak",onMouseenter:M,onMouseleave:v},[...y[2]||(y[2]=[e("span",{class:"text-logo text-xl font-semibold whitespace-nowrap"},"TH Gerak",-1),e("span",{class:"text-logo text-xl"},"→",-1)])],36)):H("",!0)]),_:1}),r(me,{name:"slide"},{default:O(()=>[s(w)==="chat"?(t(),a("a",{key:0,class:"fixed z-[10000] flex items-center -translate-y-1/2 gap-3 px-8 py-4 bg-black rounded-xl shadow-xl hover:brightness-110 transition-all duration-200 no-underline cursor-pointer",style:ke({top:s(h),right:"5.5rem"}),"aria-label":"Live Chat",onMouseenter:M,onMouseleave:v,onClick:x},[...y[3]||(y[3]=[e("span",{class:"text-logo text-xl font-semibold whitespace-nowrap"},"Live Chat",-1),e("span",{class:"text-logo text-xl"},"→",-1)])],36)):H("",!0)]),_:1}),e("div",{ref_key:"containerRef",ref:C,class:"fixed right-0 top-1/2 -translate-y-1/2 z-[9998] flex flex-col rounded-l-2xl overflow-hidden shadow-lg animate-pulse-subtle"},[e("div",{ref_key:"gerakRef",ref:i,class:"flex items-center justify-center w-16 h-16 bg-logo border-b border-black cursor-pointer transition-all duration-200",onMouseenter:y[0]||(y[0]=G=>I("gerak")),onMouseleave:v},[...y[4]||(y[4]=[e("img",{src:ys,alt:"TH Gerak",class:"w-10 h-10 object-contain"},null,-1)])],544),e("div",{ref_key:"chatRef",ref:m,class:"flex items-center justify-center w-16 h-16 bg-logo cursor-pointer transition-all duration-200",onMouseenter:y[1]||(y[1]=G=>I("chat")),onMouseleave:v},[...y[5]||(y[5]=[e("img",{src:bs,alt:"Chat",class:"w-12 h-12 object-contain"},null,-1)])],544)],512)],64))}}),$s=Object.assign(re(ks,[["__scopeId","data-v-2a0dcd49"]]),{__name:"LayoutFloatingChatButton"}),Ms={},Ss={class:"w-[100vw] bg-white z-1 overflow-clip"};function js(q,w){const C=ga,i=xs,m=$s;return t(),a("div",Ss,[r(C,{class:"sticky top-0 z-[9999]"}),e("div",null,[ze(q.$slots,"default")]),r(i),r(m)])}const Ps=re(Ms,[["render",js]]);export{Ps 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.