PageSourceSearch

https://www.careem.com/_nuxt/BjWc5nf_.js

js careem.com collected 2026-09-24 08:29:42 UTC 33,268 bytes, 1 lines download raw bytes

1var nt=Object.defineProperty;var rt=(m,s,o)=>s in m?nt(m,s,{enumerable:!0,configurable:!0,writable:!0,value:o}):m[s]=o;var te=(m,s,o)=>rt(m,typeof s!="symbol"?s+"":s,o);import{_ as xe}from"./CbN2T-Pd.js";import{v as it,j as et,q as tt,h as we,_ as ct,g as ut,e as dt}from"./GLNXbUXS.js";import{_ as lt}from"./D_rETJQO.js";import{ae as gt,v as ve,ab as se,M as ft,aq as mt,a8 as ot,a0 as me,e as I,a3 as fe,z as ne,f as _e,ar as st,c as a,o as t,a as c,b as f,g as e,n as v,d as h,w as U,F as G,r as Q,h as Y,Q as W,t as P,i as be,ag as ht,as as pt,at as bt}from"./HUmYAQn_.js";import{_ as oe}from"./fHu5ITI0.js";import{_ as _t}from"./B_8vt0UL.js";import{u as yt}from"./CGvZgZP5.js";const xt=[1779033703,-1150833019,1013904242,-1521486534,1359893119,-1694144372,528734635,1541459225],wt=[1116352408,1899447441,-1245643825,-373957723,961987163,1508970993,-1841331548,-1424204075,-670586216,310598401,607225278,1426881987,1925078388,-2132889090,-1680079193,-1046744716,-459576895,-272742522,264347078,604807628,770255983,1249150122,1555081692,1996064986,-1740746414,-1473132947,-1341970488,-1084653625,-958395405,-710438585,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,-2117940946,-1838011259,-1564481375,-1474664885,-1035236496,-949202525,-778901479,-694614492,-200395387,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,-2067236844,-1933114872,-1866530822,-1538233109,-1090935817,-965641998],vt="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",le=[];class kt{constructor(){te(this,"_data",new ae);te(this,"_hash",new ae([...xt]));te(this,"_nDataBytes",0);te(this,"_minBufferSize",0)}finalize(s){s&&this._append(s);const o=this._nDataBytes*8,l=this._data.sigBytes*8;return this._data.words[l>>>5]|=128<<24-l%32,this._data.words[(l+64>>>9<<4)+14]=Math.floor(o/4294967296),this._data.words[(l+64>>>9<<4)+15]=o,this._data.sigBytes=this._data.words.length*4,this._process(),this._hash}_doProcessBlock(s,o){const l=this._hash.words;let u=l[0],n=l[1],r=l[2],x=l[3],p=l[4],i=l[5],$=l[6],O=l[7];for(let b=0;b<64;b++){if(b<16)le[b]=s[o+b]|0;else{const E=le[b-15],L=(E<<25|E>>>7)^(E<<14|E>>>18)^E>>>3,g=le[b-2],j=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;le[b]=L+le[b-7]+j+le[b-16]}const M=p&i^~p&$,A=u&n^u&r^n&r,y=(u<<30|u>>>2)^(u<<19|u>>>13)^(u<<10|u>>>22),d=(p<<26|p>>>6)^(p<<21|p>>>11)^(p<<7|p>>>25),C=O+d+M+wt[b]+le[b],R=y+A;O=$,$=i,i=p,p=x+C|0,x=r,r=n,n=u,u=C+R|0}l[0]=l[0]+u|0,l[1]=l[1]+n|0,l[2]=l[2]+r|0,l[3]=l[3]+x|0,l[4]=l[4]+p|0,l[5]=l[5]+i|0,l[6]=l[6]+$|0,l[7]=l[7]+O|0}_append(s){typeof s=="string"&&(s=ae.fromUtf8(s)),this._data.concat(s),this._nDataBytes+=s.sigBytes}_process(s){let o,l=this._data.sigBytes/64;s?l=Math.ceil(l):l=Math.max((l|0)-this._minBufferSize,0);const u=l*16,n=Math.min(u*4,this._data.sigBytes);if(u){for(let r=0;r<u;r+=16)this._doProcessBlock(this._data.words,r);o=this._data.words.splice(0,u),this._data.sigBytes-=n}return new ae(o,n)}}class ae{constructor(s,o){te(this,"words");te(this,"sigBytes");s=this.words=s||[],this.sigBytes=o===void 0?s.length*4:o}static fromUtf8(s){const o=unescape(encodeURIComponent(s)),l=o.length,u=[];for(let n=0;n<l;n++)u[n>>>2]|=(o.charCodeAt(n)&255)<<24-n%4*8;return new ae(u,l)}toBase64(){const s=[];for(let o=0;o<this.sigBytes;o+=3){const l=this.words[o>>>2]>>>24-o%4*8&255,u=this.words[o+1>>>2]>>>24-(o+1)%4*8&255,n=this.words[o+2>>>2]>>>24-(o+2)%4*8&255,r=l<<16|u<<8|n;for(let x=0;x<4&&o*8+x*6<this.sigBytes*8;x++)s.push(vt.charAt(r>>>6*(3-x)&63))}return s.join("")}concat(s){if(this.words[this.sigBytes>>>2]&=4294967295<<32-this.sigBytes%4*8,this.words.length=Math.ceil(this.sigBytes/4),this.sigBytes%4)for(let o=0;o<s.sigBytes;o++){const l=s.words[o>>>2]>>>24-o%4*8&255;this.words[this.sigBytes+o>>>2]|=l<<24-(this.sigBytes+o)%4*8}else for(let o=0;o<s.sigBytes;o+=4)this.words[this.sigBytes+o>>>2]=s.words[o>>>2];this.sigBytes+=s.sigBytes}}function $t(m){return new kt().finalize(m).toBase64()}function Lt(m){return $t(gt(m))}function at(m,s,o){const[l={},u]=typeof s=="string"?[{},s]:[s,o],n=ve(()=>se(m)),r=l.key||Lt([u,typeof n.value=="string"?n.value:"",...Ct(l)]);if(!r||typeof r!="string")throw new TypeError("[nuxt] [useFetch] key must be a string: "+r);if(!m)throw new Error("[nuxt] [useFetch] request is missing.");const x=r===u?"$f"+r:r;if(!l.baseURL&&typeof n.value=="string"&&n.value[0]==="/"&&n.value[1]==="/")throw new Error('[nuxt] [useFetch] the request URL must not start with "//".');const{server:p,lazy:i,default:$,transform:O,pick:b,watch:M,immediate:A,getCachedData:y,deep:d,dedupe:C,...R}=l,E=ft({...mt,...R,cache:typeof l.cache=="boolean"?void 0:l.cache}),L={server:p,lazy:i,default:$,transform:O,pick:b,immediate:A,getCachedData:y,deep:d,dedupe:C,watch:M===!1?[]:[E,n,...M||[]]};let g;return it(x,()=>{var F;(F=g==null?void 0:g.abort)==null||F.call(g,new DOMException("Request aborted as another request to the same endpoint was initiated.","AbortError")),g=typeof AbortController<"u"?new AbortController:{};const T=se(l.timeout);let B;return T&&(B=setTimeout(()=>g.abort(new DOMException("Request aborted due to timeout.","AbortError")),T),g.signal.onabort=()=>clearTimeout(B)),(l.$fetch||globalThis.$fetch)(n.value,{signal:g.signal,...E}).finally(()=>{clearTimeout(B)})},L)}function Ct(m){var o;const s=[((o=se(m.method))==null?void 0:o.toUpperCase())||"GET",se(m.baseURL)];for(const l of[m.params||m.query]){const u=se(l);if(!u)continue;const n={};for(const[r,x]of Object.entries(u))n[se(r)]=se(x);s.push(n)}return s}const jt={id:"fixed-header",class:"header flex items-center lg:px-4 bg-white fixed top-0 w-full"},Bt={class:"max-w-full w-full flex items-center justify-between h-full lg:container lg:max-w-7xl"},St=["src","alt"],Ot={class:"h-full overflow-hidden overflow-y-auto lg:h-auto lg:overflow-visible lg:overflow-y-visible"},zt={class:"flex flex-col pb-20 lg:pb-0 lg:flex-row"},At=["href","title"],Nt={class:"max-w-full lg:container flex flex-col lg:flex-row relative"}
1,Ut={key:0,class:"sub-menu-colon relative w-full lg:w-2/12"},Mt={class:"sub-menu-tab-left flex bg-gray-100 px-5 lg:px-0 lg:bg-transparent lg:block lg:mt-7"},Et=["onClick","id"],It={class:"flex w-full px-3 pt-4 lg:pl-4 lg:w-9/12"},Tt={class:"w-full flex sub-menu-tab-right relative my-3"},qt={key:0,class:"flex flex-wrap"},Pt={class:"inline-block m-0 text-sm"},Rt={key:0,src:"https://careem-public-web-media.media.careem.com/wink_bf076b40b5.webp",alt:"logo",width:"15",class:"inline mb-1 mr-1 rtl:ml-1"},Dt=["href","title"],Vt={class:"inline-block m-0 text-sm"},Ft={key:0,src:"https://careem-public-web-media.media.careem.com/wink_bf076b40b5.webp",alt:"logo",class:"inline mb-1",width:"19"},Gt={key:1,class:"product-group w-full flex flex-wrap"},Qt={class:"product-title font-bold text-sm w-6/12"},Yt={key:2,class:"mt-8 mb-10 px-2 lg:px-4 lg:mb-0 lg:mt-14"},Ht={key:3,class:"sub-menu bg-transparent lg:bg-gray-100 rounded-none lg:rounded-b-3xl relative lg:absolute w-full left-0 p-0 lg:py-5 transition-all hidden top-auto z-10"},Jt={class:"max-w-full lg:container flex flex-wrap flex-col lg:flex-row relative"},Kt=["href","title"],Wt={class:"text-sm transition-all text-green-700 hover:text-green-500 m-0"},Xt={class:"text-sm transition-all text-green-700 hover:text-green-500 m-0"},Zt={key:0,class:"header-lang is-mobile w-full absolute bottom-0 px-5 py-5 flex z-10 items-center bg-white lg:hidden"},el={class:"header-lang hidden lg:flex relative items-center w-1/3"},tl=["id"],ll={__name:"Header",props:{error:{type:Object,default:()=>({})},languagesOptions:{type:Array,default:()=>[]},selectedLang:{type:String,default:""},handleLanguage:{type:Function,default:()=>{}}},async setup(m){var F,re;let s,o;const u=ot().public.apiUrl,{activeLang:n,header:r,dirLang:x,browserLang:p}=me(),{isMobile:i}=et(),$=m,O=I({}),b=I(null),M=I(null),A=I(0),y=I(!1),d=I($.selectedLang),C=I(""),R=tt.stringify({populate:["topNavigation","topNavigation.subNavigation","topNavigation.tab.tabNavigation","topNavigation.tab.products","topNavigation.tab.products.productImage","topNavigation.tab.button"]},{encodeValuesOnly:!0}),E=ve(()=>{const N=fe().path;C.value!==N&&(b.value=null),C.value=N});ne(E,()=>{});const L=N=>{b.value=N,M.value=!1,document.querySelector("body").classList.add("overflow-hidden")},g=()=>{b.value=null,document.querySelector("body").classList.remove("overflow-hidden")},j=N=>{A.value=N},T=(N,S=!1)=>{var D,X,H;const V=document.querySelector("body");y.value=S?!1:!y.value,b.value=null,A.value=0,((D=V.classList)==null?void 0:D.value)===""&&!S?(X=V.classList)==null||X.add("overflow-hidden"):(H=V.classList)==null||H.remove("overflow-hidden")};ne(()=>$.selectedLang,N=>{d.value=N}),ne(fe(),()=>{const N=document.querySelector("body");b.value=null,y.value=!1,b.value=null,A.value=0,M.value=!1,N.classList.remove("overflow-hidden")}),_e(()=>{window==null||window.addEventListener("scroll",()=>{const N=document.getElementById("fixed-header");if(!N)return;(window.scrollY||document.documentElement.scrollTop)>10?N.style.boxShadow="0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24)":N.style.boxShadow="none"})});const{data:B,error:he}=([s,o]=st(()=>at(`${u}top-navigation?${R}&locale=${n.value||p.value||"en-AE"}`,"$6IjuT9epq-")),s=await s,o(),s);return O.value=((re=(F=B.value)==null?void 0:F.data)==null?void 0:re.topNavigation)??{},(N,S)=>{var ce,_,J,q,Z,ke,$e,Le,Ce,je,Be,Se,Oe,ze,Ae,Ne,Ue,Me,Ee,Ie,Te,qe,Pe,Re,De,Ve,Fe,Ge;const V=xe,D=we,X=ct,H=ut,ie=lt;return t(),a("header",jt,[c("div",Bt,[(q=(J=(_=(ce=e(r))==null?void 0:ce.logo)==null?void 0:_.data)==null?void 0:J.attributes)!=null&&q.url?(t(),a("div",{key:0,class:v([e(x)?"pr-5":"pl-5","header-logo relative z-10 w-3/12 sm:w-2/10 lg:pl-0 lg:w-2/12"])},[h(V,{to:`/${e(n)?`${e(n)}/`:""}`,title:"Careem"},{default:U(()=>{var w,ee,ue,de;return[c("img",{src:(ee=(w=e(r))==null?void 0:w.logo)==null?void 0:ee.data.attributes.url,alt:((de=(ue=e(r))==null?void 0:ue.logo)==null?void 0:de.data.attributes.alternativeText)||"Careem"},null,8,St)]}),_:1},8,["to"])],2)):f("",!0),e(O)?(t(),a("div",{key:1,class:v(["header-nav w-full absolute left-0 bg-white lg:bg-transparent lg:static lg:w-6/12 lg:flex",e(y)?"block":"hidden"])},[c("nav",Ot,[c("ul",zt,[(t(!0),a(G,null,Q(e(O),(w,ee)=>{var ue,de;return t(),a("li",{key:`navigation-${ee}`,class:v([{"menu-open":ee===e(b)},"lg:mr-7 font-semibold leading-6 overflow-hidden"])},[w.external?f("",!0):(t(),Y(V,{key:0,onClick:k=>!!w.tab.length>0||!!w.subNavigation.length>0?L(ee):"",to:!!w.tab.length>0||!!w.subNavigation.length>0?"":`/${e(n)===""?"en-AE":e(n)}/${w.url}/`,title:w.title,class:v([!!w.tab.length>0&&e(i)?"hidden":"block","header-nav-link text-sm relative px-5 py-4 z-10 lg:px-0 lg:py-6"])},{default:U(()=>[W(P(w.title)+" ",1),!!w.subNavigation.length>0&&e(i)?(t(),Y(D,{key:0,name:"angle-down",class:v([e(x)?"left-5":"right-5","absolute top-4 w-iconLg"])},null,8,["class"])):f("",!0)]),_:2},1032,["onClick","to","title","class"])),w.external?(t(),a("a",{key:1,href:w.url,target:"_blank",rel:"noopenner norefferer",class:v(["header-nav-link relative px-5 py-4 z-10 lg:px-0 lg:py-6",!!w.tab.length>0&&e(i)?"hidden":"block"]),title:w.title},P(w.title),11,At)):f("",!0),w.tab.length>0?(t(),a("div",{key:2,class:v(["sub-menu bg-transparent lg:bg-gray-100 rounded-none lg:rou
1nded-b-3xl relative lg:absolute w-full border-b border-gray-200 lg:border-none left-0 p-0 lg:p-5 transition-all top-auto z-10",e(i)?"block":"hidden"])},[c("div",Nt,[(de=(ue=w.tab)==null?void 0:ue[0])!=null&&de.title?(t(),a("div",Ut,[c("div",Mt,[(t(!0),a(G,null,Q(w.tab,(k,K)=>(t(),a("span",{key:`tab-${K}`,onClick:ge=>j(K),id:[K===e(A)?"active":""],class:v([e(x)?"ml-6":"mr-6","w-auto lg:w-full block relative font-bold text-sm text-center leading-5 py-4 lg:py-3 lg:mr-0 cursor-pointer"])},P(k.title),11,Et))),128))])])):f("",!0),c("div",It,[c("div",Tt,[(t(!0),a(G,null,Q(w.tab,(k,K)=>{var ge;return t(),a("div",{key:`tab-colon-${K}`,class:v([{tabActive:K===e(A)},"w-full flex flex-col tab-colon opacity-0 invisible absolute top-0 left-0"])},[k.tabNavigation?(t(),a("div",qt,[(t(!0),a(G,null,Q(k.tabNavigation,(z,ye)=>(t(),a("div",{class:"py-1 m-1 lg:p-2",key:`navigation-column-${ye}`,onClick:g},[z.external?z.external?(t(),a("a",{key:1,href:z.url,title:z.title,class:"text-sm transition-all text-green-700 px-4 py-3 rounded-lg bg-gray-200",target:"_blank",rel:"noopenner norefferer"},[c("h4",Vt,[z.showIcon!==!1?(t(),a("img",Ft)):f("",!0),c("span",null,P(z==null?void 0:z.title),1)])],8,Dt)):f("",!0):(t(),Y(V,{key:0,to:`/${e(n)===""?"en-AE":e(n)}/${z.url}/`,title:z.title,class:"text-sm transition-all text-green-700 px-4 py-3 rounded-lg bg-gray-200"},{default:U(()=>[c("h4",Pt,[z.showIcon!==!1?(t(),a("img",Rt)):f("",!0),c("span",null,P(z==null?void 0:z.title),1)])]),_:2},1032,["to","title"]))]))),128))])):f("",!0),k.products?(t(),a("div",Gt,[(t(!0),a(G,null,Q((ge=k.products)==null?void 0:ge.data,(z,ye)=>{var Qe,Ye,He,Je;return t(),a("div",{class:"product-column my-2 px-2 lg:px-4 w-6/12 sm:w-4/12 md:w-3/12 lg:w-3/12",onClick:S[0]||(S[0]=pe=>T(pe,!0)),key:`tab-column-${ye}`},[h(V,{to:`/${e(n)===""?"en-AE":e(n)}/${(Qe=z.attributes)==null?void 0:Qe.slug}/`,class:v([e(x)?`pr-3 bg-boxed-${(Ye=z.attributes)==null?void 0:Ye.productColor}`:`pl-3 bg-boxed-${(He=z.attributes)==null?void 0:He.productColor}`,"product-colon overflow-hidden flex items-center h-20 rounded-lg justify-between"]),title:(Je=z.attributes)==null?void 0:Je.title},{default:U(()=>{var pe,Ke,We,Xe;return[c("span",Qt,P((pe=z.attributes)==null?void 0:pe.title),1),h(X,{image:(Xe=(We=(Ke=z.attributes)==null?void 0:Ke.productImage)==null?void 0:We.data)==null?void 0:Xe.attributes,class:"header-product-image flex justify-end items-center h-full w-6/12 object-contain"},null,8,["image"])]}),_:2},1032,["to","class","title"])])}),128))])):f("",!0),k.button?(t(),a("div",Yt,[k.button?(t(),Y(H,{key:0,label:k.button.label,titleText:k.button.label,type:k.button.type,url:k.button.url,external:k.button.external,enabled:k.button.enabled,size:e(i)?"small":void 0},null,8,["label","titleText","type","url","external","enabled","size"])):f("",!0)])):f("",!0)],2)}),128))])]),e(i)?f("",!0):(t(),a("div",{key:1,onClick:S[1]||(S[1]=k=>g()),class:v([e(x)?"left-0":"right-0","sub-menu-closed w-8 h-8 bg-white border border-gray-200 rounded-full absolute top-0 cursor-pointer flex items-center justify-center transitionAll"])},[h(D,{name:"times",class:"w-iconMd icon-green"})],2))])],2)):f("",!0),w.subNavigation.length>0?(t(),a("div",Ht,[c("div",Jt,[(t(!0),a(G,null,Q(w.subNavigation,(k,K)=>(t(),a("div",{class:"px-10 my-4 lg:px-4 lg:my-5",key:`navigation-column-${K}`,onClick:S[2]||(S[2]=ge=>T(ge,!0))},[k.external?(t(),a("a",{key:0,href:k.url,title:k.title,class:"text-sm leading-5 transition-all hover:text-green-500",target:"_blank",rel:"noopenner norefferer"},[c("h4",Wt,P(k.title),1)],8,Kt)):k.external?f("",!0):(t(),Y(V,{key:1,to:`/${e(n)===""?"en-AE":e(n)}/${k.url}/`,title:k.title,class:"text-sm leading-5 transition-all hover:text-green-500"},{default:U(()=>[c("h4",Xt,P(k.title),1)]),_:2},1032,["to","title"]))]))),128)),e(i)?f("",!0):(t(),a("div",{key:0,onClick:S[3]||(S[3]=k=>g()),class:v([e(x)?"left-0":"right-0","sub-menu-closed w-8 h-8 bg-white border border-gray-200 rounded-full absolute cursor-pointer flex items-center justify-center"])},[h(D,{name:"times",class:"w-iconMd icon-green"})],2))])])):f("",!0),!e(i)&&!!w.tab.length>0||!!w.subNavigation.length>0?(t(),a("div",{key:4,class:v([ee===e(b)?"block":"hidden","bg-mask w-full bg-gray-400 fixed left-0 z-0 opacity-70"]),onClick:S[4]||(S[4]=k=>g())},null,2)):f("",!0)],2)}),128))])]),e(i)?(t(),a("div",Zt,[h(ie,{modelValue:e(d),"onUpdate:modelValue":S[5]||(S[5]=w=>be(d)?d.value=w:null),options:m.languagesOptions,"option-attribute":"title","value-attribute":"iso",onChange:$.handleLanguage,class:"w-full relative text-sm leading-6 font-semibold",theme:"light"},{leading:U(()=>[h(D,{name:"browser",class:"w-iconLg icon-green my-auto"})]),trailing:U(()=>[h(D,{name:"angle-down",class:"w-iconMd icon-green my-auto"})]),_:1},8,["modelValue","options","onChange"])])):f("",!0)],2)):f("",!0),c("div",{class:v([e(x)?"pl-5":"pr-5","header-button-lang flex justify-end items-center relative z-10 w-9/12 lg:pr-0 lg:pl-0 sm:w-6/12 lg:w-4/12"])},[c("div",{class:v([e(i)?e(x)?"lg:ml-5":"lg:mr-5":e(x)?"lg:ml-5":"lg:mr-5","header-button"])},[(e(i)?(Z=e(r))!=null&&Z.mobileButton:(ke=e(r))!=null&&ke.button)?(t(),Y(H,{key:0,label:e(i)?(Le=($e=e(r))==null?void 0:$e.mobileButton)==null?void 0:Le.label:(je=(Ce=e(r))==null?void 0:Ce.button)==null?void 0:je.label,titleText:e(i)?(Se=(Be=e(r))==null?void 0:Be.mobileButton)==null?void 0:Se.label:(ze=(Oe=e(r))==null?void 0:Oe.button)==null?void 0:ze.label,type:e(i)?(Ne=(Ae=e(r))==null?void 0:Ae.mobileButton)==null?void 0:Ne.type:(Me=(Ue=e(r))==null?void 0:Ue.button)==null?void 0:Me.type,url:e(i)?(Ie=(Ee=e(r))==null?void 0:Ee.mobileButton)==null?void 0:Ie.url:(qe=(Te=e(r))==null?void 0:Te.button)==null?void 0:qe.url,external:e(i)?(Re=(Pe=e(r))==null?void 0:Pe.mobileButton)==null?void 0:Re.external:(Ve=(De=e(r))==null?void 0:De.button)==null?void 0:Ve.external,mobileUrl:(Ge=(Fe=e(r))==null?void 0:Fe.mobileButton)==null?void 0:Ge.url,isMobile:!!e(i),size:e(i)?"small":void 0}
1,null,8,["label","titleText","type","url","external","mobileUrl","isMobile","size"])):f("",!0)],2),c("div",el,[h(ie,{modelValue:e(d),"onUpdate:modelValue":S[6]||(S[6]=w=>be(d)?d.value=w:null),options:m.languagesOptions,"option-attribute":"title","value-attribute":"iso",onChange:$.handleLanguage,class:"w-full relative text-sm leading-6 font-semibold",theme:"light"},{leading:U(()=>[h(D,{name:"browser",class:"w-iconLg icon-green my-auto"})]),trailing:U(()=>[h(D,{name:"angle-down",class:"w-iconMd icon-green my-auto"})]),_:1},8,["modelValue","options","onChange"])]),c("div",{id:e(y)?"header-nav-icon-active":"",class:v([e(x)?"mr-2 sm:mr-4":"ml-2 sm:ml-4","header-nav-icon cursor-pointer block lg:hidden"]),onClick:T},S[7]||(S[7]=[c("i",{class:"w-6 flex relative bg-green-500 my-1"},null,-1),c("i",{class:"w-6 flex relative bg-green-500 my-1"},null,-1)]),10,tl)],2)])])}}},ol={key:0,class:"my-2"},sl={class:"max-w-full w-full flex py-5 px-5 items-center"},al={class:"w-11/12 flex items-center"},nl={class:"w-1/12 flex justify-end"},rl={__name:"Notification",setup(m){const{notification:s,dirLang:o}=me(),l=I(!1);function u(){sessionStorage.getItem("notification")===null&&(l.value=!0)}function n(){sessionStorage.setItem("notification","true"),l.value=!1}return _e(()=>{u()}),(r,x)=>{const p=we,i=dt;return e(l)==!0&&e(s).enabled?(t(),a("section",ol,[c("div",{class:v([e(s).type,"max-w-full w-full container-xl px-0 bg-boxed-green_light notification lg:rounded-3xl"])},[c("div",sl,[c("div",al,[h(p,{name:"question-circle",class:"w-iconLg md:w-iconXl"}),e(s).description?(t(),Y(i,{key:0,value:e(s).description,class:v([e(o)?"pr-2":"pl-2","notification-text text-sm leading-4"])},null,8,["value","class"])):f("",!0)]),c("div",nl,[c("span",{class:"w-6 h-6 rounded-full flex items-center justify-center cursor-pointer lg:w-8 lg:h-8",onClick:n},[h(p,{name:"times",class:"w-iconMd"})])])])],2)])):f("",!0)}}},il={key:0,class:"download-box"},cl={key:0,class:"flex justify-center lg:justify-start"},ul=["href"],dl={key:1,class:"flex justify-center lg:justify-start mt-5"},gl=["href"],fl={key:2,class:"flex justify-center lg:justify-start mt-5"},ml=["href"],hl={key:1,class:"flex mt-7 items-center download-box"},pl=["href"],bl=["href"],_l=["href"],yl={__name:"Download",props:{vertical:{type:String,default:""}},setup(m){const{isMobile:s}=et(),{download:o,dirLang:l}=me(),u=I(!0),n=I(!0),r=I({ios:"",android:"",other:""}),x=ht(),p=()=>{s&&(u.value=navigator.userAgent.indexOf("Mac")>0,n.value=!u.value)},i=($="")=>((b,M)=>{const A=new URL(b),y=new URLSearchParams(A.search),d=new URLSearchParams;for(const C in M)(C==="gclid"||C==="gbraid")&&d.set(C,M[C]);return y.forEach((C,R)=>{d.append(R,C)}),A.search=d.toString(),A.toString()})($,x.query);return _e(()=>{if(p(),o!=null&&o.value){const{android:$,other:O,iOS:b}=o.value;r.value.ios=i(b),r.value.android=i($),r.value.other=i(O)}}),($,O)=>m.vertical=="true"?(t(),a("div",il,[e(o).iOS&&u.value?(t(),a("div",cl,[c("a",{href:r.value.ios,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/app-store.webp",alt:"Careem - App Store",class:"max-h-8 md:max-h-10",loading:"lazy"})],8,ul)])):f("",!0),e(o).android&&n.value?(t(),a("div",dl,[c("a",{href:r.value.android,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/google-play.webp",alt:"Careem - Google Play",class:"max-h-8 md:max-h-10",loading:"lazy"})],8,gl)])):f("",!0),e(o).other&&n.value?(t(),a("div",fl,[c("a",{href:r.value.other,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/apk-download.webp",alt:"Careem - Android",class:"max-h-9 md:max-h-11 download-image-android",loading:"lazy"})],8,ml)])):f("",!0)])):(t(),a("div",hl,[e(o).iOS&&u.value?(t(),a("div",{key:0,class:v([e(l)?"mx-2 lg:mr-0 lg:ml-4":"mx-2 lg:ml-0 lg:mr-4","flex justify-center lg:justify-start"])},[c("a",{href:r.value.ios,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/app-store.webp",alt:"Careem - App Store",class:"max-h-10",loading:"lazy"})],8,pl)],2)):f("",!0),e(o).android&&n.value?(t(),a("div",{key:1,class:v([e(l)?"mx-2 lg:mr-0 lg:ml-4":"mx-2 lg:ml-0 lg:mr-4","flex justify-center lg:justify-start"])},[c("a",{href:r.value.android,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/google-play.webp",alt:"Careem - Google Play",class:"max-h-10",loading:"lazy"})],8,bl)],2)):f("",!0),e(o).other&&n.value?(t(),a("div",{key:2,class:v([e(l)?"mx-2 lg:mr-0 lg:ml-4":"mx-2 lg:ml-0 lg:mr-4","flex justify-center lg:justify-start"])},[c("a",{href:r.value.other,target:"_blank",rel:"noopener noreferrer"},[h(e(oe),{format:"webp",src:"/images/apk-download.webp",alt:"Careem - Android",class:"max-h-10",loading:"lazy"})],8,_l)],2)):f("",!0)]))}},xl={id:"footer",class:"footer mt-10 mb-8 px-5 lg:px-4 lg:mb-12 lg:mt-24"},wl={class:"max-w-full w-full flex flex-col lg:container lg:max-w-7xl"},vl={class:"flex flex-col w-full lg:items-start lg:w-60"},kl={key:0,class:"lg:mt-1 mb-8 lg:ml-2"},$l=["src","alt"],Ll={class:"flex lg:justify-between flex-col lg:flex-row"},Cl={key:0,class:"text-xl font-semibold text-green-700 lg:text-lg mb-8"},jl=["href","title"],Bl={class:"mt-7 lg:mt-0 lg:justify-between w-full lg:w-fit lg:ml-20 min-w-40 relative"},Sl={key:0,class:"footer-locationSwitch flex relative mt-4 lg:mt-0 justify-center w-full lg:justify-start"},Ol={key:1,class:"flex relative mt-4 justify-center w-full lg:justify-start"},zl=["href","aria-label"],Al={class:"flex flex-col mt-10 lg:flex-row lg:mt-14 lg:pt-5 lg:border-t"},Nl={key:0,class:"order-3 mt-16 flex items-center justify-center lg:mt-0 lg:order-1 lg:justify-start lg:w-4/12"},Ul={key:1,class:"order-2 flex mt-6 items-center justify-center lg:mt-0 lg:order-2 lg:w-6/12"},Ml={class:"flex flex-wrap justify-center"},El=["href","title"],Il={key:2,class:"order-1 lg:order-3 lg:w-4/12"},Tl={class:"list-none flex justify-center lg:justify-end"},ql=["href"],Pl=["href"],Rl=["href"],Dl=["href"],Vl={__name:"Footer",props:{locationOptions:{type:Array,default:()=>[]},languagesOptions:{type:Array,default:()=>[]},selectedLocations:{type:Object,default:()=>({})},selectedLang:{type:String,default:""},handleLocation:{type:Function,default:()=>{}},handleLanguage:{type:Function,default:()=>{}}},async setup(m){var E;let s,o;const l=m,n=ot().public.apiUrl,{activeLang:r,browserLang:x,dirLang:p,footer:i,header:$}=me(),O=I({}),b=I({}),M=I({}),A=L=>L&&typeof L=="object"&&"value"in L?L.value:L,y=ve(()=>A(r)||A(x)||"en-AE"),d=(L="")=>{const g=String(L||"").replace(/^\/+|\/+$/g,""),j=g?`${g}/`:"";return`/${y.value}/${j}`},C=tt.stringify({populate:["navigation.links","helpCenter"]},{encodeValuesOnly:!0});ne(()=>l.selectedLocations,L=>{M.value=L==null?void 0:L.title},{immediate:!0}),ne(()=>l.selectedLang,L=>{b.value=L},{immediate:!0});const{data:R}=([s,o]=st(()=>at(`${n}footer-navigation?${C}&locale=${A(r)||A(x)||"en-AE"}`,"$88Ah-BDdyz")),s=await s,o(),s);return O.value=((E=R==null?void 0:R.value)==null?void 0:E.data)??{},(L,g)=>{var re,N,S,V,D,X,H,ie,ce;const j=xe,T=yl,B=we,he=lt,F=oe;return t(),a("footer",xl,[c("div",wl,[c("div",{class:v([e(p)?"lg:text-right":"lg:text-left","flex flex-col text-center lg:justify-between lg:flex-row"])},[c("div",vl,[(re=e($))!=null&&re.logo?(t(),a("div",kl,[h(j,{to:`/${e(r)?`${e(r)}/`:""}`,title:"Careem",class:"inline-flex"},{default:U(()=>[c("img",{src:e($).logo.data.attributes.url,alt:e($).logo.data.attributes.alternativeText,width:"111.44",height:"22",loading:"lazy"},null,8,$l)]),_:1},8,["to"])])):f("",!0),h(T,{vertical:"true"})]),c("div",Ll,[(t(!0),a(G,null,Q((N=e(O))==null?void 0:N.navigation,(_,J)=>(t(),a("div",{key:`navigation-${J}`,class:v("w-full mt-12 lg:mt-0 lg:mx-6 lg:w-fit")}
1,[_.title?(t(),a("h2",Cl,P(_.title),1)):f("",!0),c("ul",null,[(t(!0),a(G,null,Q(_.links,(q,Z)=>(t(),a("li",{key:`item-${Z}`,class:"mt-3"},[q.enabled&&q.external?(t(),a("a",{key:0,href:q.url,title:q.label,class:"footer-link font-semibold text-sm leading-4 relative hover:text-green-500",target:"_blank",rel:"noopener noreferrer"},P(q.label),9,jl)):q.enabled&&!q.external?(t(),Y(j,{key:1,to:d(q.url),title:q.label,class:"footer-link font-semibold text-sm leading-4 relative hover:text-green-500"},{default:U(()=>[W(P(q.label),1)]),_:2},1032,["to","title"])):f("",!0)]))),128))])]))),128))]),c("div",Bl,[(S=e(O))!=null&&S.locationSwitch?(t(),a("div",Sl,[h(he,{modelValue:e(M),"onUpdate:modelValue":g[0]||(g[0]=_=>be(M)?M.value=_:null),options:m.locationOptions,"option-attribute":"title","value-attribute":"title",onChange:m.handleLocation,class:"w-full relative text-sm leading-6 font-semibold max-w-44",theme:"light"},{leading:U(()=>[h(B,{name:"map-marker-bottom",class:"w-iconLg icon-green my-auto"})]),trailing:U(()=>[h(B,{name:"angle-down",class:"w-iconMd icon-green my-auto"})]),_:1},8,["modelValue","options","onChange"])])):f("",!0),(V=e(O))!=null&&V.langSwitch?(t(),a("div",Ol,[h(he,{modelValue:e(b),"onUpdate:modelValue":g[1]||(g[1]=_=>be(b)?b.value=_:null),options:m.languagesOptions,"option-attribute":"title","value-attribute":"iso",onChange:m.handleLanguage,class:"w-full relative text-sm leading-6 font-semibold max-w-44",theme:"light"},{leading:U(()=>[h(B,{name:"browser",class:"w-iconLg icon-green my-auto"})]),trailing:U(()=>[h(B,{name:"angle-down",class:"w-iconMd icon-green my-auto"})]),_:1},8,["modelValue","options","onChange"])])):f("",!0),(t(!0),a(G,null,Q((D=e(O))==null?void 0:D.helpCenter,(_,J)=>{var q;return t(),a("div",{key:`helpCenter-${J}`,class:"flex relative mt-4 justify-center w-full lg:justify-start"},[_.enabled&&_.external?(t(),a("a",{key:0,href:_.url,class:"flex text-sm leading-6 font-semibold transition-colors hover:text-green-500",target:"_blank",rel:"noopener noreferrer","aria-label":_.label},[h(B,{name:(q=_==null?void 0:_.label)!=null&&q.includes("ride")?"briefcase":"info-circle",class:v([e(p)?"ml-3":"mr-3","w-iconLg icon-green"])},null,8,["name","class"]),W(" "+P(_.label),1)],8,zl)):_.enabled&&!_.external?(t(),Y(j,{key:1,to:d(_.url),class:"flex text-sm leading-6 font-semibold transition-colors hover:text-green-500"},{default:U(()=>{var Z;return[h(B,{name:(Z=_==null?void 0:_.label)!=null&&Z.includes("ride")?"briefcase":"info-circle",class:v([e(p)?"ml-3":"mr-3","w-iconLg icon-green"])},null,8,["name","class"]),W(" "+P(_.label),1)]}),_:2},1032,["to"])):f("",!0)])}),128))])],2),c("div",Al,[(X=e(i))!=null&&X.copyright?(t(),a("div",Nl,[c("span",{class:v([e(p)?"lg:text-right":"lg:text-left","footer-copyright text-xs text-center w-6/12 lg:w-full"])}," All rights reserved. Careem © "+P(new Date().getFullYear()),3)])):f("",!0),(H=e(i))!=null&&H.footerMenu?(t(),a("div",Ul,[c("ul",Ml,[(t(!0),a(G,null,Q(e(i).footerMenu,(_,J)=>(t(),a("li",{key:`footer-${J}`,class:"m-2"},[_.external?(t(),a("a",{key:0,href:_.url,title:_.title,class:"footer-link text-xs font-semibold relative hover:text-green-500 lg:font-normal",target:"_blank",rel:"noopener noreferrer"},P(_.title),9,El)):(t(),Y(j,{key:1,to:d(_.url),title:_.title,class:"footer-link text-xs font-semibold relative hover:text-green-500 lg:font-normal"},{default:U(()=>[W(P(_.title),1)]),_:2},1032,["to","title"]))]))),128))])])):f("",!0),(ie=e(i))!=null&&ie.socialChannels&&((ce=e(i))!=null&&ce.socialChannels.enabled)?(t(),a("div",Il,[c("ul",Tl,[e(i).socialChannels.facebook?(t(),a("li",{key:0,class:v([e(p)?"mx-5 lg:mx-0 lg:mr-7":"mx-5 lg:mx-0 lg:ml-7","block"])},[c("a",{href:e(i).socialChannels.facebook,class:"block",target:"_blank",rel:"noopener noreferrer","aria-label":"Facebook"},[h(F,{src:"/icon/facebook.png",alt:"",srcset:"",loading:"lazy"})],8,ql)],2)):f("",!0),e(i).socialChannels.twitter?(t(),a("li",{key:1,class:v([e(p)?"mx-5 lg:mx-0 lg:mr-7":"mx-5 lg:mx-0 lg:ml-7","block"])},[c("a",{href:e(i).socialChannels.twitter,class:"block",target:"_blank",rel:"noopener noreferrer","aria-label":"Twitter"},[h(F,{src:"/icon/twitter.png",alt:"",srcset:"",loading:"lazy"})],8,Pl)],2)):f("",!0),e(i).socialChannels.linkedin?(t(),a("li",{key:2,class:v([e(p)?"mx-5 lg:mx-0 lg:mr-7":"mx-5 lg:mx-0 lg:ml-7","block"])},[c("a",{href:e(i).socialChannels.linkedin,class:"block",target:"_blank",rel:"noopener noreferrer","aria-label":"LinkedIn"},[h(F,{src:"/icon/linked.png",alt:"",srcset:"",loading:"lazy"})],8,Rl)],2)):f("",!0),e(i).socialChannels.instagram?(t(),a("li",{key:3,class:v([e(p)?"mx-5 lg:mx-0 lg:mr-7":"mx-5 lg:mx-0 lg:ml-7","block"])},[c("a",{href:e(i).socialChannels.instagram,class:"block",target:"_blank",rel:"noopener noreferrer","aria-label":"Instagram"},[h(F,{src:"/icon/instagram.png",alt:"",srcset:"",loading:"lazy"})],8,Dl)],2)):f("",!0)])])):f("",!0)])])])}}},Ze="consent.v2";function Fl(){const m=pt("consent",()=>({ad_user_data:"denied",ad_personalization:"denied",ad_storage:"denied",analytics_storage:"denied",functionality_storage:"granted",security_storage:"granted"}));
1{const u=localStorage.getItem(Ze);if(u)try{const n=JSON.parse(u);m.value={...m.value,...n},window.gtag&&window.gtag("consent","update",n)}catch{}}function s(u){m.value={...m.value,...u},localStorage.setItem(Ze,JSON.stringify(m.value)),window.gtag&&window.gtag("consent","update",u)}function o(){s({ad_user_data:"granted",ad_personalization:"granted",ad_storage:"granted",analytics_storage:"granted"})}function l(){s({ad_user_data:"denied",ad_personalization:"denied",ad_storage:"denied",analytics_storage:"denied"})}return{consent:m,grantConsent:o,rejectConsent:l,setConsent:s}}const Gl={class:"flex flex-col pt-20"},Ql={dir:"ltr",class:"text-sm text-gray-500"},to={__name:"default",setup(m){const{default_lang:s,default_location:o,localesLocations:l,activeLang:u}=me(),{cookiesEnabledIds:n}=yt(),{grantConsent:r,rejectConsent:x}=Fl(),p=I({}),i=I(""),$=I([]),O=I([]),b=y=>{var d;p.value=l.value.find(C=>C.title===y),$.value=p.value.availableLanguages,i.value=p.value.availableLanguages[0].iso,window.location.pathname=`/${i.value}/${((d=fe().path.split("/").slice(2).join("/"))==null?void 0:d.toLowerCase())||""}`},M=y=>{var d;i.value=y,window.location.pathname=`/${y}/${((d=fe().path.split("/").slice(2).join("/"))==null?void 0:d.toLowerCase())||""}`},A=()=>{var E,L;const{path:y}=fe(),d=(E=o.value)==null?void 0:E.toLowerCase(),C=(L=y.split("/")[1])==null?void 0:L.toLowerCase(),R=g=>{var j;return((j=g.title)==null?void 0:j.toLowerCase())===d&&g.availableLanguages.some(T=>{var B;return T.iso.toUpperCase()===((B=s.value)==null?void 0:B.toUpperCase())})};if(y===""||y==="/"){const g=l.value.find(R);if(g){const j=g.availableLanguages.find(T=>{var B;return T.iso.toUpperCase()===((B=s.value)==null?void 0:B.toUpperCase())});j&&(p.value=g,i.value=j.iso,$.value=g.availableLanguages)}}else if(C){const g=l.value.find(j=>j.availableLanguages.some(T=>{var B;return((B=T.iso)==null?void 0:B.toLowerCase())===C}));if(g){const j=g.availableLanguages.find(T=>{var B;return((B=T.iso)==null?void 0:B.toLowerCase())===C});j&&(p.value=g,i.value=j.iso,$.value=g.availableLanguages)}}return l.value};return ne(()=>n.value,(y,d)=>{y!=null&&y.includes("gtm")&&!(d!=null&&d.includes("gtm"))?r():!(y!=null&&y.includes("gtm"))&&(d!=null&&d.includes("gtm"))&&x()},{deep:!0}),_e(()=>{var y;O.value=A(),(y=n.value)!=null&&y.includes("gtm")&&r()}),(y,d)=>{const C=ll,R=rl,E=bt,L=Vl,g=xe,j=_t;return t(),a("main",Gl,[h(C,{selectedLang:e(i),languagesOptions:e($),handleLanguage:M},null,8,["selectedLang","languagesOptions"]),h(R),h(E,{"keep-alive":""}),h(L,{selectedLocations:e(p),locationOptions:e(O),selectedLang:e(i),languagesOptions:e($),handleLocation:b,handleLanguage:M},null,8,["selectedLocations","locationOptions","selectedLang","languagesOptions"]),h(j,null,{bar:U(()=>[d[4]||(d[4]=c("h2",{class:"text-left"},"We value your privacy",-1)),c("p",Ql,[d[1]||(d[1]=W(' We use cookies to enhance your browsing experience, serve personalised ads or content, and analyse our traffic. By clicking "Accept All", you consent to our use of cookies. ')),d[2]||(d[2]=c("br",null,null,-1)),d[3]||(d[3]=W(" For more details, please refer to our ")),h(g,{to:`/${e(u)}/cookie-policy`},{default:U(()=>d[0]||(d[0]=[W("Cookie Policy.")])),_:1},8,["to"])])]),_:1})])}}};export{to 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.