import{M as S,L,H as R,B as q,a as C}from"./Dr4acodI.js";import{e as M,l as w,f as $,o as i,c as d,a as _,m as a,a2 as v,p as g,aq as U,u as A,h as G,g as V,j as I,d as b,w as m,b as c,a3 as O,q as T,cs as j,ct as F}from"./C_yW9YRN.js";const P={class:"calls-wrappper"},W={class:"content-center flex flex-col gap-5"},Z=["href"],D=["href"],E={__name:"Calls",props:{settings:{required:!0}},setup(h){const u=h;w(()=>n(u.settings.phones));const r=$(null);function n(t){var o,f,p;const s=Intl.DateTimeFormat().resolvedOptions().timeZone;let e=[];t&&(s.includes("Cairo")?(e=t.filter(l=>l.phone_code=="+20"),e.length||(e=t)):s.includes("Riyadh")?(e=t.filter(l=>l.phone_code=="+966"),e.length||(e=t)):(e=t.filter(l=>l.phone_code=="+971"),e.length||(e=t))),r.value=(p=(o=e[0])==null?void 0:o.phone_code)==null?void 0:p.concat((f=e[0])==null?void 0:f.phone)}return(t,s)=>(i(),d("div",P,[_("div",W,[a(r)?(i(),d("a",{key:0,"aria-label":"whats btn",target:"_blank",href:`https://wa.me/${a(r)}${(t._.provides[v]||t.$route).query.message?"/?text="+(t._.provides[v]||t.$route).query.message:""}`,class:"pulse bg-[#25d366]"},s[0]||(s[0]=[_("i",{class:"fab fa-whatsapp text-3xl"},null,-1)]),8,Z)):g("",!0),a(r)?(i(),d("a",{key:1,"aria-label":"email btn",href:`mailto:${u.settings.public_mails[0]}`,class:"pulse bg-primary"},s[1]||(s[1]=[_("i",{class:"fas fa-envelope text-2xl"},null,-1)]),8,D)):g("",!0)])]))}},K=M(E,[["__scopeId","data-v-271b02fe"]]),Q={class:"flex flex-col min-h-[100vh]"},z={class:"app_wrapper",id:"app_wrapper"},Y={__name:"default",setup(h){const u=U(),{t:r,locale:n}=A(),t=T();G({titleTemplate:`%s - ${r("NAV.name")}`}),V().$axios;const s=$(null);new window.WOW().init(),I(()=>n.value,()=>{e()});function e(){$fetch("setting",{baseURL:t.public.baseURL,headers:{"Accept-Language":n.value}}).then(o=>{s.value=o.data,u.getMainServices(s.value)})}return w(()=>{e()}),(o,f)=>{const p=S,l=L,x=R,y=j,H=F,N=K,k=q,B=C;return i(),b(B,{lang:a(n)},{default:m(()=>[c(x,null,{default:m(()=>[c(p,{name:"google-site-verification",content:"TRBHjNKSiN5U5acO_fU_9sfar64NGrmHQ9UZ_vH0528"}),c(l,{rel:"alternate",href:`https://alalmiyalhura.com${a(n)=="ar"?"/ar":""}`,hreflang:a(n)},null,8,["href","hreflang"])]),_:1}),c(k,{dir:a(n)=="ar"?"rtl":"ltr"},{default:m(()=>[_("div",Q,[c(y,{onGetNavbar:e,settings:a(s)},null,8,["settings"]),_("div",z,[O(o.$slots,"default")]),c(H,{class:"mt-auto",onGetNavbar:e,settings:a(s)},null,8,["settings"])]),a(s)?(i(),b(N,{key:0,settings:a(s)},null,8,["settings"])):g("",!0)]),_:3},8,["dir"])]),_:3},8,["lang"])}}};export{Y as default};
