1import{u as T,A as N,l as I,k as O,G as z,m as E,Y as F}from"./vendor-vue-84d16355.js";import{k as g,w as Y,m as J,p as K,aC as R,K as $,t as p,u as h,L as n,I as e,a2 as q,ak as i,A as k,N as l,F as j,B as U,V as r}from"./vendor-aaabb63e.js";import{u as Q}from"./app-dcda8cf5.js";import{V as W}from"./VerifySaveBoxPin-ebfa6f0c.js";import{C as M}from"./CommunityJoinPrompt-4ce0e918.js";import"./vendor-vuetify-eff83da4.js";import"./_plugin-vue_export-helper-c27b6911.js";const X=["lang","dir"],Z={class:"flex items-center justify-between w-auto px-6 pt-3 mx-5 lg:px-8","aria-label":"Global"},ee={class:"w-full"},te={class:"flex w-full h-[50px] gap-4 items-center"},ae={style:{height:"inherit"},class:"flex items-center gap-3"},se=["src"],oe={href:"/Visa-Passport-Information",class:"flex items-center text-[#ffffff] hover:text-[#e6cc06]"},le=["src"],re={class:"ml-2"},ne={class:"flex flex-row mx-5"},ie={href:"/about",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},de={href:"/service-portal",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},ce=["href"],ue=["innerHTML"],ge={href:"/legal",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},ve={href:"/immigration",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},me={href:"/become-a-partner",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},xe={href:"/news",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},fe={href:"/contact",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},pe={href:"/privacy-policy",class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},he={class:"items-center hidden gap-2 lg:flex lg:flex-1 lg:justify-end lg:flex-nowrap drop"},be={class:"flex lg:hidden"},ye=["src"],ke={class:"flow-root mt-6"},we={class:"-my-6 divide-y divide-gray-500/10"},_e={class:"py-6 space-y-2"},Ce=["href"],He={__name:"HomeHeader",setup($e){const w="https://111-storage.s3.us-east-1.amazonaws.com/public",_=T(),t=g(localStorage.getItem("appLanguage")||navigator.language.slice(0,2)||"en"),c=Q(),u=g("");g("");const C=g(!1),d=g(!1),b=g([]);Y(t,o=>{localStorage.setItem("appLanguage",o)});const y=g(!1);if(J("$axios"),typeof window<"u"){const o=sessionStorage.getItem("darkMode")==="true";d.value=o,document.documentElement.classList.toggle("dark",o)}const L=o=>{document.documentElement.classList.toggle("dark",o)},P=()=>{d.value=!d.value,sessionStorage.setItem("darkMode",String(d.value)),L(d.value)};K(()=>{H(),D(),L(d.value)});const H=async()=>{var o,a;Object.keys(c.authUser).length===0&&await c.getAuthUser(),c.authUser.roles&&c.authUser.roles.length>0&&((o=c.authUser.roles[0])!=null&&o.name)?(u.value=(a=c.authUser.roles[0])==null?void 0:a.name,u.value=c.authUser.name,console.log("the user",u.value)):t.value==="en"?u.value="login":u.value="تسجÙÙ Ø§ÙØ¯Ø®ÙÙ"},D=async()=>{try{const{data:o}=await R.get("/api/cms/public/header-pages");b.value=(o==null?void 0:o.data)||[]}catch(o){console.error("Failed to load CMS header pages:",o),b.value=[]}},S=o=>o!=null&&o.slug?o.slug==="real-estate"?"/real-estate":`/pages/${o.slug}`:"#",B=()=>{_.push(Object.keys(c.authUser).length>0?"/portal/profile":"/login")};return(o,a)=>{const V=$("v-icon"),A=$("v-btn"),G=$("v-divider");return p(),h(j,null,[n(W,{"dialog-state":C.value,onClose:a[0]||(a[0]=s=>C.value=!1)},null,8,["dialog-state"]),e("div",{class:"bg-gray-900 drop-shadow-2xl bg-opacity-10",lang:t.value,dir:t.value==="ar"?"rtl":"ltr"},[e("nav",Z,[e("div",ee,[e("div",te,[e("div",ae,[e("video",{onClick:a[1]||(a[1]=q(s=>i(_).push("/home-page"),["stop"])),width:"200",draggable:"true",class:"w-[200px] h-auto aspect-video object-contain block",src:`${i(w)}/images/111Group-logo.webm`,"aria-label":"Go to home page",style:{cursor:"pointer"},autoplay:"",muted:"",loop:"",playsinline:"",preload:"auto"},null,8,se),n(A,{icon:"",variant:"text",class:"p-0","aria-label":"Open SaveBox",title:"Open SaveBox",onClick:a[2]||(a[2]=s=>C.value=!0)},{default:k(()=>[n(V,{icon:"mdi-safe",size:"large",color:d.value?"white":"#e3cf3e"},null,8,["color"])]),_:1})]),n(G,{thickness:5,color:"white",vertical:"",class:"mx-2 opacity-100"}),e("div",null,[e("a",oe,[e("img",{class:"w-12 icon-container",src:`${i(w)}/images/passport&magnifying2.webp`,alt:"Visa Information"},null,8,le),e("p",re,l(t.value==="en"?"Visa Information":"Ù
عÙÙÙ
ات Ø¬ÙØ§Ø² Ø§ÙØ³Ùر ÙØ§ÙØªØ£Ø´ÙØ±Ø©"),1)])])]),e("div",ne,[n(i(N),{class:"items-end hidden text-white lg:flex lg:gap-x-6"},{default:k(()=>[e("a",ie,l(t.value==="ar"?"ØÙÙ":"About"),1),e("a",de,l(t.value==="ar"?"Ø§ÙØ®Ø¯Ù
ات":"Services"),1),(p(!0),h(j,null,U(b.value,s=>{var v,m,x,f;return p(),h("a",{key:`desktop-${s.id}`,href:S(s),class:"hover:text-[#e3cf3e] text-sm font-semibold leading-6"},[e("span",{innerHTML:t.value==="ar"?((v=s.title)==null?void 0:v.ar)||((m=s.title)==null?void 0:m.en)||s.slug:((x=s.title)==null?void 0:x.en)||((f=s.title)==null?void 0:f.ar)||s.slug},null,8,ue)],8,ce)}),128)),e("a",ge,l(t.value==="ar"?"ÙØ§ÙÙÙÙ":"Legal"),1),e("a",ve,l(t.value==="ar"?"اÙÙØ¬Ø±Ø©":"Immigration"),1),e("a",me,l(t.value==="ar"?"Ù٠شرÙÙÙØ§":"Become a Partner"),1),e("a",xe,l(t.value==="ar"?"أخبار":"News"),1),e("a",fe,l(t.value==="ar"?"ØªÙØ§ØµÙ":"Contact"),1),e("a",pe,l(t.value==="ar"?"Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©":"Privacy Policy"),1)]),_:1}),e("div",he,[e("button",{onClick:P,class:r(["text-[17px] font-bold rounded-full py-2 px-4 flex items-center justify-center border-[1.5px] border-black w-auto h-[40px] bg-white text-black hover:bg-gray-100 shrink-0 whitespace-nowrap",{"bg-black text-white border-black hover:bg-gray-800":d.value}]),"aria-label":"Toggle dark mode",title:"Toggle dark mode"},l(d.value?"ð Dark":"âï¸ Light"),3),e("button",{type:"button",onClick:B,class:r(["text-[17px] font-bold rounded-full py-2 px-4 flex items-center justify-center gap-1 border-[1.5px] border-black w-auto h-[40px] bg-white text-black hover:bg-gray-100 drop-shadow-md shrink-0 whitespace-nowrap",{"flex-row-reverse":t.value==="ar"}])},[n(i(I),{class:"w-6 h-6 shrink-0"}),e("span",null,l(u.value),1)],2),n(M)])])]),e("div",be,[e("button",{type:"button",class:"-m-2.5 inline-flex items-center justify-center rounded-md p-2.5 text-white",onClick:a[3]||(a[3]=s=>y.value=!0)},[a[7]||(a[7]=e("span",{class:"sr-only"},"Open main menu",-1)),n(i(O),{class:"w-10 h-10","aria-hidden":"true"})])])]),n(i(F),{as:"div",class:"lg:hidden",onClose:a[6]||(a[6]=s=>y.value=!1),open:y.value},{default:k(()=>[a[10]||(a[10]=e("div",{class:"fixed inset-0 z-10"},null,-1)),n(i(z),{class:r(["fixed inset-y-0 right-0 z-10 w-full px-6 py-6 overflow-y-auto bg-white sm:max-w-sm sm:ring-1 sm:ring-gray-900/10",{"left-0":t.value==="ar"}])},{default:k(()=>[e("div",{class:r(["flex items-center justify-between",{"flex-row-reverse":t.value==="ar"}])},[e("button",{onClick:a[4]||(a[4]=s=>i(_).push("/home-page")),class:"-m-1.5 p-1.5"},[a[8]||(a[8]=e("span",{class:"sr-only"},"Your Company",-1)),e("video",{class:"h-[80px] w-auto object-contain block",src:`${i(w)}/images/111Group-logo.webm`,"aria-label":"111 Group logo",autoplay:"",muted:"",loop:"",playsinline:"",preload:"auto"},null,8,ye)]),e("button",{type:"button",class:"-m-2.5 rounded-md p-2.5 text-gray-700",onClick:a[5]||(a[5]=s=>y.value=!1)},[a[9]||(a[9]=e("span",{class:"sr-only"},"Close menu",-1)),n(i(E),{class:"w-8 h-8 font-black text-black","aria-hidden":"true"})])],2),e("div",ke,[e("div",we,[e("div",_e,[e("a",{href:"/about",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"ØÙÙ":"About"),3),e("a",{href:"/service-portal",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"Ø§ÙØ®Ø¯Ù
ات":"Services"),3),(p(!0),h(j,null,U(b.value,s=>{var v,m,x,f;return p(),h("a",{key:`mobile-${s.id}`,href:S(s),class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?((v=s.title)==null?void 0:v.ar)||((m=s.title)==null?void 0:m.en)||s.slug:((x=s.title)==null?void 0:x.en)||((f=s.title)==null?void 0:f.ar)||s.slug),11,Ce)}),128)),e("a",{href:"/legal",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"ÙØ§ÙÙÙÙ":"Legal"),3),e("a",{href:"/immigration",class:r(["-hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"اÙÙØ¬Ø±Ø©":"Immigration"),3),e("a",{href:"/become-a-partner",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"Ù٠شرÙÙÙØ§":"Become a Partner"),3),e("a",{href:"/news",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"أخبار":"News"),3),e("a",{href:"/contact",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"ØªÙØ§ØµÙ":"Contact"),3),e("a",{href:"/privacy-policy",class:r(["hover:text-[#e3cf3e] -mx-3 block rounded-lg px-3 py-2 text-base font-semibold leading-7 text-gray-900 hover:bg-gray-100",{"text-end":t.value==="ar"}])},l(t.value==="ar"?"Ø³ÙØ§Ø³Ø© Ø§ÙØ®ØµÙØµÙØ©":"Privacy Policy"),3)]),e("div",{class:r(["flex flex-col items-start gap-4 py-6",{"flex-col-reverse items-end":t.value==="ar"}])},[e("button",{onClick:P,class:r(["text-[17px] font-bold rounded-full py-2 px-4 flex items-center justify-center border-[1.5px] border-black w-auto h-[40px] bg-white text-black hover:bg-gray-100 shrink-0 whitespace-nowrap",{"bg-black text-white border-black hover:bg-gray-800":d.value}]),"aria-label":"Toggle dark mode",title:"Toggle dark mode"},l(d.value?"ð Dark":"âï¸ Light"),3),e("button",{type:"button",onClick:B,class:r(["text-[17px] font-bold rounded-full py-2 px-4 flex items-center justify-center gap-1 border-[1.5px] border-black w-auto h-[40px] bg-white text-black hover:bg-gray-100 drop-shadow-md shrink-0 whitespace-nowrap",{"flex-row-reverse":t.value==="ar"}])},[n(i(I),{class:"w-6 h-6 shrink-0"}),e("span",null,l(u.value),1)],2),n(M)],2)])])]),_:1},8,["class"])]),_:1},8,["open"])],8,X)],64)}}};export{He 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.