PageSourceSearch

https://www.amaken.jo/_next/static/chunks/app/%5Blocale%5D/layout-7d48555ddac43ee4.js

js amaken.jo collected 2026-10-02 00:03:00 UTC 27,784 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8450],{26140:(e,s,r)=>{"use strict";r.r(s),r.d(s,{AppInstallBanner:()=>x});var a=r(95155),t=r(12115),l=r(18955),n=r(64749),o=r(52508),i=r(39867),c=r(39068),d=r(65229),m=r(71756),h=r(8531);function x(){let[e,s]=(0,t.useState)(!1),{canInstallApp:r,isIOS:x,isAndroid:p}=(0,h.BG)(),u=(0,l.c3)("appInstall");(0,t.useEffect)(()=>{if(m.N.ENABLED&&r&&!(0,h.Ae)()){let e=setTimeout(()=>{s(!0)},m.N.SHOW_DELAY);return()=>clearTimeout(e)}},[r]),(0,t.useEffect)(()=>(e?(document.body.style.paddingBottom="80px",document.body.style.setProperty("--app-banner-height","117px")):(document.body.style.paddingBottom="0px",document.body.style.removeProperty("--app-banner-height")),()=>{document.body.style.paddingBottom="0px",document.body.style.removeProperty("--app-banner-height")}),[e]);let g=()=>{s(!1),(0,h.sv)()};return m.N.ENABLED&&r&&e?(0,a.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-50 bg-gradient-to-r from-primary to-primary/90 text-white shadow-lg border-t border-white/10",children:(0,a.jsx)("div",{className:"container mx-auto px-4 py-4",children:(0,a.jsxs)("div",{className:"flex items-center flex-col justify-between gap-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-3 flex-1 min-w-0",children:[(0,a.jsx)("div",{className:"bg-white/20 p-2 rounded-full flex-shrink-0",children:(0,a.jsx)(o.A,{className:"w-5 h-5"})}),(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-semibold truncate",children:u("title")}),(0,a.jsx)("p",{className:"text-xs text-white/90 truncate",children:u("subtitle")})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-0 flex-shrink-0",children:[(0,a.jsxs)(n.$n,{onClick:()=>{let e=(0,h.cx)(x,p);if(x){let s=document.createElement("iframe");s.style.display="none",s.style.width="1px",s.style.height="1px",s.style.position="absolute",s.style.top="-1000px",s.src=m.N.IOS_APP_URL_SCHEME,document.body.appendChild(s),setTimeout(()=>{s.parentNode&&document.body.removeChild(s),e&&(window.location.href=e)},1500)}else{let s=m.N.ANDROID_APP_URL_SCHEME;window.location.href=s,setTimeout(()=>{e&&(window.location.href=e)},2e3)}g()},size:"sm",className:"bg-white text-primary hover:bg-white/90 text-xs px-4 py-2 h-auto font-semibold rounded-full shadow-sm",children:[(0,a.jsx)(i.A,{className:"w-3 h-3 mr-1"}),u("openApp")]}),(0,a.jsxs)(n.$n,{onClick:()=>{g()},variant:"ghost",size:"sm",className:"text-white hover:bg-white/20 text-xs px-4 py-2 h-auto font-semibold rounded-full",children:[(0,a.jsx)(c.A,{className:"w-3 h-3 mr-1"}),u("continueBrowser")]}),(0,a.jsx)("button",{onClick:g,className:"text-white/80 hover:text-white transition-colors p-1 rounded-full hover:bg-white/10",children:(0,a.jsx)(d.A,{className:"w-4 h-4"})})]})]})})}):null}},37370:(e,s,r)=>{"use strict";r.d(s,{GoogleOAuthWrapper:()=>l});var a=r(95155),t=r(84604);function l(e){let{children:s}=e;return(0,a.jsx)(t.G_,{clientId:"655691401831-v29rhgmkeclu0itdbnb9of1nkub13b3r.apps.googleusercontent.com",children:s})}},63052:(e,s,r)=>{"use strict";r.r(s),r.d(s,{AuthModal:()=>j});var a=r(95155),t=r(12115),l=r(64749),n=r(52987),o=r(35626),i=r(35299),c=r(23664),d=r(69141),m=r(8531),h=r(66328),x=r(18955),p=r(22952),u=r(4353),g=r(75919),f=r(84604),v=r(11068),b=r.n(v);function j(){var e,s,r,v,j,w,N,y,k,_,P,A,C,S,E,B,L;let{open:$,setOpenLoginModal:V,executePostLoginCallback:M}=(0,m.Xi)(),z=(0,h.Ym)(),O=(0,x.c3)("auth"),G=(0,x.c3)("auth.errors"),{step:T,setStep:H,loading:I,error:D,setError:F,phoneForm:U,phoneRegisterForm:q,emailForm:K,handlePhoneSubmit:W,handleVerifyOtp:Y,handlePhoneRegister:R,handleEmailSubmit:Q,handleEmailLogin:X,handleEmailRegister:J,handleSocialLogin:Z,handleForgotPassword:ee,goBack:es,resetAuth:er}=(0,g.As)(),{canResend:ea,startCountdown:et,formatTime:el}=(0,g.MB)();(0,t.useEffect)(()=>{"phone-otp"===T&&et()},[T,et]);let en=async e=>{try{let s=await fetch("https://www.googleapis.com/oauth2/v3/userinfo",{headers:{Authorization:"Bearer ".concat(e.access_token)}}),r=await s.json(),a={socialUserId:r.sub,firstName:r.given_name||"",lastName:r.family_name||"",email:r.email,socialUserName:r.name,photoUrl:r.picture,socialNetwork:"GOOGLE"};(await Z(a)).success&&(V(!1),M())}catch(e){F(G("google_login_failed")),console.error("Google login error:",e)}},eo=(0,f.mg)({onSuccess:en,onError:()=>{F(G("google_login_failed")),console.error("Google login failed")}}),ei=async e=>{try{if(null==e?void 0:e.accessToken){var s,r,a,t;let l={socialUserId:e.id,firstName:(null==(s=e.name)?void 0:s.split(" ")[0])||"",lastName:(null==(r=e.name)?void 0:r.split(" ").slice(1).join(" "))||"",email:e.email||"",socialUserName:e.name,photoUrl:null==(t=e.picture)||null==(a=t.data)?void 0:a.url,socialNetwork:"FACEBOOK",accessToken:e.accessToken};(await Z(l)).success&&(V(!1),M())}}catch(e){F(G("facebook_login_failed")),console.error("Facebook login error:",e)}},ec=async()=>{let e=U.getValues("phone");e&&(await W({phone:e}),et())},ed=async e=>{(await R(e)).success&&(er(),V(!1),M())},em=async e=>{(await X(e)).success&&(er(),V(!1),M())},eh=async e=>{(await J(e)).success&&(er(),V(!1),M())},ex=async e=>{(await Y(e)).success&&(er(),V(!1),M())};return(0,a.jsx)(l.lG,{open:$,onOpenChange:e=>{er(),V(e)},children:(0,a.jsxs)(l.Cf,{className:"sm:max-w-lg p-6",children:["phone-input"!==T&&"email-input"!==T&&(0,a.jsx)("button",{onClick:es,className:(0,m.cn)("absolute top-2 hover:bg-gray-100 rounded-full cursor-pointer p-2 z-10","ar"===z?"right-2":"left-2"),children:"ar"===z?(0,a.jsx)(n.A,{className:"w-4 h-4"}):(0,a.jsx)(o.A,{className:"w-4 h-4"})}),(0,a.jsxs)(l.c7,{className:"relative",children:[(0,a.jsx)(l.L3,{className:"text-center text-lg font-semibold",children:O("welcome_title")}),(0,a.jsx)("p",{className:"text-center text-sm text-gray-500",children:O("welcome_subtitle")})]}),D&&(0,a.jsx)("div",{className:"bg-red-50 border border-red-200 text-red-600 px-4 py-3 rounded-lg text-sm",children:D}),"phone-input"===T&&(0,a.jsx)("form",{onSubmit:U.handleSubmit(W),children:(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)("div",{className:"flex items-start gap-2",dir:"ltr",children:[(0,a.jsx)("div",{className:"w-36 flex items-center justify-center border rounded-lg bg-gray-50 px-3 py-3",children:(0,a.jsx)("select",{disabled:!0,className:"bg-transparent outline-none w-full text-sm appearance-none",children:(0,a.jsx)("option",{children:O("country_code")})})}),(0,a.jsx)(u.x8,{placeholder:O("phone_number_placeholder"),forceLtr:!0,containerClassName:"flex-1",onChange:e=>U.setValue("phone",e),value:U.watch("phone"),error:(null==(r=U.formState)||null==(s=r.errors)||null==(e=s.phone)?void 0:e.message)?G("phone_invalid"):void 0})]}),(0,a.jsxs)("p",{className:"text-xs text-gray-500",children:[O("privacy_text")," ",(0,a.jsx)(p.N_,{href:"/privacy-policy",target:"_blank",className:"underline cursor-pointer",children:O("privacy_policy")})]}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover py-3 h-12 text-white cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]})}),"email-input"===T&&(0,a.jsxs)("form",{onSubmit:K.handleSubmit(Q),className:"space-y-4",children:[(0,a.jsx)(u.x8,{placeholder:O("email_placeholder"),value:K.watch("email"),onChange:e=>K.setValue("email",e),error:(null==K||null==(w=K.formState)||null==(j=w.errors)||null==(v=j.email)?void 0:v.message)?G("email_invalid"):void 0,forceLtr:!0}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover text-white h-12 cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]}),("phone-input"===T||"email-input"===T)&&(0,a.jsxs)("div",{className:"space-y-4",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)("div",{className:"flex-1 h-px bg-gray-200"}),(0,a.jsx)("span",{className:"text-sm text-gray-500",children:O("or")}
1),(0,a.jsx)("div",{className:"flex-1 h-px bg-gray-200"})]}),(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsxs)(l.$n,{variant:"outline",className:"w-full flex items-center justify-center py-3 h-12 border-gray-300 hover:bg-gray-50 cursor-pointer",onClick:()=>eo(),children:[(0,a.jsxs)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"#4285F4"}),(0,a.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"#34A853"}),(0,a.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"#FBBC05"}),(0,a.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"#EA4335"})]}),O("continue_with_google")]}),(0,a.jsx)(b(),{appId:"1029804531895410",fields:"name,email,picture",scope:"public_profile,email",callback:ei,onFailure:e=>{F(G("facebook_login_failed")),console.error("Facebook login error:",e)},render:e=>(0,a.jsxs)(l.$n,{variant:"outline",className:"w-full flex items-center justify-center py-3 h-12 border-gray-300 hover:bg-gray-50 cursor-pointer",onClick:e.onClick,disabled:e.isDisabled,children:[(0,a.jsx)("svg",{className:"w-5 h-5 mr-2",viewBox:"0 0 24 24",fill:"#1877F2",children:(0,a.jsx)("path",{d:"M24 12.073c0-6.627-5.373-12-12-12s-12 5.373-12 12c0 5.99 4.388 10.954 10.125 11.854v-8.385H7.078v-3.47h3.047V9.43c0-3.007 1.792-4.669 4.533-4.669 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.47h-2.796v8.385C19.612 23.027 24 18.062 24 12.073z"})}),O("continue_with_facebook")]})}),(0,a.jsx)(l.$n,{variant:"outline",className:"w-full flex items-center justify-center py-3 h-12 border-gray-300 hover:bg-gray-50 cursor-pointer",onClick:()=>H("phone-input"===T?"email-input":"phone-input"),children:"phone-input"===T?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.A,{className:"w-5 h-5 mr-2"}),O("continue_with_email")]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(d.A,{className:"w-5 h-5 mr-2"}),O("continue_with_phone")]})})]})]}),"phone-otp"===T&&(0,a.jsxs)("form",{onSubmit:U.handleSubmit(ex),className:"space-y-4",children:[(0,a.jsx)(u.OS,{value:U.watch("otp")||"",onChange:e=>U.setValue("otp",e),error:(null==(k=U.formState)||null==(y=k.errors)||null==(N=y.otp)?void 0:N.message)?G("otp_required"):void 0,autoFocus:!0}),(0,a.jsx)("div",{className:"text-center",children:ea?(0,a.jsx)(l.$n,{type:"button",variant:"ghost",className:"text-amaken hover:text-amaken-hover cursor-pointer",onClick:ec,disabled:I,children:O("resend_otp")}):(0,a.jsxs)("p",{className:"text-sm text-gray-500",children:[O("resend_otp_in")," ",el]})}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover text-white h-12 cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]}),"phone-register"===T&&(0,a.jsxs)("form",{onSubmit:q.handleSubmit(ed),className:"space-y-4",children:[(0,a.jsx)(u.x8,{placeholder:O("first_name_placeholder"),value:q.watch("firstName"),onChange:e=>q.setValue("firstName",e),error:(null==(_=q.formState.errors.firstName)?void 0:_.message)?G("first_name_required"):void 0}),(0,a.jsx)(u.x8,{placeholder:O("last_name_placeholder"),value:q.watch("lastName"),onChange:e=>q.setValue("lastName",e),error:(null==(P=q.formState.errors.lastName)?void 0:P.message)?G("last_name_required"):void 0}),(0,a.jsx)(u.x8,{placeholder:O("email_optional_placeholder"),value:q.watch("email")||"",onChange:e=>q.setValue("email",e),error:(null==(A=q.formState.errors.email)?void 0:A.message)?G("email_invalid"):void 0}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover text-white h-12 cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]}),"email-password"===T&&(0,a.jsxs)("form",{onSubmit:K.handleSubmit(em),className:"space-y-4",children:[(0,a.jsx)(u.x8,{placeholder:O("password_placeholder"),type:"password",value:K.watch("password")||"",onChange:e=>K.setValue("password",e),onBlur:()=>K.trigger("password"),error:(null==(C=K.formState.errors.password)?void 0:C.message)?G("password_weak"):void 0,showPasswordToggle:!0,forceLtr:!0}),(0,a.jsx)("div",{className:"text-right",children:(0,a.jsx)(l.$n,{type:"button",variant:"ghost",className:"text-amaken hover:text-amaken-hover p-0 h-auto text-sm",onClick:()=>{let e=K.getValues("email");e&&ee(e)},disabled:I,children:O("forgot_password")})}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover text-white h-12 cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]}),"email-register"===T&&(0,a.jsxs)("form",{onSubmit:K.handleSubmit(eh),className:"space-y-4",children:[(0,a.jsx)(u.x8,{placeholder:O("first_name_placeholder"),value:K.watch("firstName")||"",onChange:e=>K.setValue("firstName",e),error:(null==(S=K.formState.errors.firstName)?void 0:S.message)?G("first_name_required"):void 0}),(0,a.jsx)(u.x8,{placeholder:O("last_name_placeholder"),value:K.watch("lastName")||"",onChange:e=>K.setValue("lastName",e),error:(null==(E=K.formState.errors.lastName)?void 0:E.message)?G("last_name_required"):void 0}),(0,a.jsx)(u.x8,{placeholder:O("password_placeholder"),type:"password",value:K.watch("password")||"",onChange:e=>K.setValue("password",e,{shouldValidate:!0}),error:(null==(B=K.formState.errors.password)?void 0:B.message)?G("password_weak"):void 0,showPasswordToggle:!0,forceLtr:!0}),(0,a.jsx)(u.x8,{placeholder:O("confirm_password_placeholder"),type:"password",value:K.watch("confirmPassword")||"",onChange:e=>K.setValue("confirmPassword",e,{shouldValidate:!0}),error:(null==(L=K.formState.errors.confirmPassword)?void 0:L.message)?G("passwords_not_match"):void 0,showPasswordToggle:!0,forceLtr:!0}),(0,a.jsxs)(l.$n,{type:"submit",className:"w-full bg-amaken hover:bg-amaken-hover text-white h-12 cursor-pointer",disabled:I,children:[I&&(0,a.jsx)(i.A,{className:"w-4 h-4 mr-2 animate-spin"}),O("continue")]})]})]})})}},74565:(e,s,r)=>{"use strict";r.d(s,{GlobalGATracking:()=>n});var a=r(12115),t=r(20063),l=r(80650);function n(){let e=(0,t.usePathname)();return(0,a.useEffect)(()=>{(0,l.Mc)()},[]),(0,a.useEffect)(()=>{(0,l.oe)(window.location.href,e)},[e]),null}},77182:(e,s,r)=>{"use strict";r.d(s,{CompareBar:()=>i});var a=r(95155),t=r(18955),l=r(8531),n=r(22952),o=r(12115);function i(){let{compareList:e,clearCompare:s}=(0,l.IB)(),r=(0,n.a8)(),i=(0,n.rd)(),c=(0,t.c3)("property.compare");return((0,o.useEffect)(()=>{s()},[r]),e.length<2)?null:(0,a.jsx)("div",{className:"fixed bottom-0 left-0 right-0 bg-white shadow-lg border-t border-gray-200",children:(0,a.jsxs)("div",{className:"container-main mx-auto  py-3 px-4 flex items-center justify-between z-50",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-gray-700",children:c("title",{count:e.length})}),(0,a.jsxs)("div",{className:"flex gap-3",children:[(0,a.jsx)("button",{onClick:()=>i.push("/compare/".concat(e.join("/"))),className:"bg-orange-500 text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-orange-600 cursor-pointer",children:c("buttonCompare")}),(0,a.jsx)("button",{onClick:s,className:"bg-black text-white px-4 py-2 rounded-md text-sm font-medium hover:bg-gray-800 cursor-pointer",children:c("buttonClear")}
1)]})]})})}},88301:(e,s,r)=>{"use strict";r.r(s),r.d(s,{Header:()=>_});var a=r(95155),t=r(12115),l=r(22952),n=r(66328),o=r(18955),i=r(20063),c=r(15239),d=r(64269),m=r(64749),h=r(40448),x=r(98739),p=r(50434),u=r(65229),g=r(9540),f=r(20508),v=r(83457),b=r(84926),j=r(77505),w=r(75919);function N(){let e=(0,l.rd)(),s=(0,o.c3)("header.userMenu"),{userData:r,setUser:t}=(0,j.n)(),{removeCookie:n}=(0,w.GH)("auth_token"),i=(0,l.a8)();return(0,a.jsxs)(m.rI,{children:[(0,a.jsx)(m.ty,{asChild:!0,children:(0,a.jsxs)(m.eu,{className:"w-12 h-12 bg-cyan-500 cursor-pointer",children:[(0,a.jsx)(m.BK,{className:"object-cover",alt:"user image",src:(null==r?void 0:r.imageUrl)||""}),(0,a.jsx)(m.q5,{className:"bg-cyan-500 text-white text-xl",children:(0,a.jsx)(f.A,{className:"w-7 h-7"})})]})}),(0,a.jsxs)(m.SQ,{className:"w-56",align:"end",forceMount:!0,children:[(0,a.jsx)("div",{className:"flex flex-col space-y-1 p-2",children:(0,a.jsxs)("p",{className:"text-sm text-muted-foreground",children:[s("welcome"),": ",null==r?void 0:r.firstName]})}),(0,a.jsx)(m.mB,{}),(0,a.jsx)(m.lp,{className:"text-muted-foreground",children:s("manageAccount")}),(0,a.jsxs)(m._2,{onClick:()=>e.push("/favorites"),className:"cursor-pointer",children:[(0,a.jsx)(v.A,{className:"mr-2 h-4 w-4"}),s("favorites")]}),(0,a.jsxs)(m._2,{onClick:()=>e.push("/profile-user"),className:"cursor-pointer",children:[(0,a.jsx)(f.A,{className:"mr-2 h-4 w-4"}),s("myProfile")]}),(0,a.jsx)(m.mB,{}),(0,a.jsxs)(m._2,{className:"cursor-pointer text-red-600 focus:text-red-600",onClick:()=>{n(),t(null),i.includes("profile-user")&&e.replace("/")},children:[(0,a.jsx)(b.A,{className:"mr-2 h-4 w-4"}),s("logout")]})]})]})}var y=r(8531),k=r(39471);function _(){let[e,s]=(0,t.useState)(!1),[r,f]=(0,t.useState)(!1),[v,b]=(0,t.useState)(!1),{setOpenLoginModal:w}=(0,y.Xi)(),_=(0,n.Ym)(),P=(0,l.a8)(),A=(0,i.useSearchParams)(),C=(0,l.rd)(),{userData:S}=(0,j.n)(),E=(0,o.c3)("header");(0,t.useEffect)(()=>{if("/"!==P)return void s(!0);let e=()=>{window.scrollY?s(!0):s(!1)};return window.addEventListener("scroll",e),e(),()=>{window.removeEventListener("scroll",e)}},[P]),(0,t.useEffect)(()=>{f(!1)},[P]),(0,t.useEffect)(()=>(r?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[r]);let B=async e=>{e.preventDefault();let s=P.startsWith("/properties")||P.startsWith("/search-by-amaken-map"),r=A.toString(),a=r?"".concat(P,"?").concat(r):P;if(s){b(!0);try{let e="en"===_?"ar":"en",s=await (0,k.f)(P,_,e),a=r?"".concat(s,"?").concat(r):s;C.replace(a,{locale:e})}catch(e){console.error("Error translating filters:",e),C.replace(a,{locale:"en"===_?"ar":"en"})}finally{b(!1)}}else C.replace(a,{locale:"en"===_?"ar":"en"})},L=[{key:"HOME",title:E("home"),path:"/"},{key:"SEARCH BY AMAKEN MAP",title:E("search-by-Amaken-Map"),path:"/search-by-amaken-map"},{key:"AGENCIES",title:E("agencies"),path:"/agencies"}],$=[{key:"ABOUT US",title:E("about-us"),path:"/about"},{key:"FAQ",title:E("faq"),path:"/faq"},{key:"BLOGS",title:E("blogs"),path:"/blogs"}];return(0,a.jsx)("header",{id:"header",className:(0,d.cn)("fixed top-0 left-0 right-0 py-5 z-50 transition-all duration-500",e?"bg-white slide-header-from-top shadow":"bg-transparent border-b-0"),children:(0,a.jsxs)("nav",{className:"relative container-main",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[(0,a.jsx)("div",{children:"en"===_?(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(l.N_,{className:(0,d.cn)("block",e&&"hidden"),href:"/",children:(0,a.jsx)(c.default,{src:"/images/logos/Amaken-logo-white.svg",alt:"amaken Logo en",width:153,height:44})}),(0,a.jsx)(l.N_,{className:(0,d.cn)("hidden",e&&"block"),href:"/",children:(0,a.jsx)(c.default,{src:"/images/logos/Amaken-logo-gradient.svg",alt:"amaken Logo en",width:153,height:44})})]}):(0,a.jsxs)("div",{className:"flex",children:[(0,a.jsx)(l.N_,{className:(0,d.cn)("block",e&&"hidden"),href:"/",children:(0,a.jsx)(c.default,{src:"/images/logos/Amaken-logo-white-ar.svg",alt:"amaken Logo ar",width:153,height:44})}),(0,a.jsx)(l.N_,{className:(0,d.cn)("hidden",e&&"block"),href:"/",children:(0,a.jsx)(c.default,{src:"/images/logos/Amaken-logo-gradient-ar.svg",alt:"amaken Logo ar",width:153,height:44})})]})}),(0,a.jsxs)("ul",{className:(0,d.cn)("hidden lg:flex flex-wrap items-center mx-5 ",{"text-black":e,"text-white":!e}),children:[L.map(e=>{let{key:s,title:r,path:t}=e;return(0,a.jsx)("li",{className:"py-1.5 px-5 hover:bg-[#ffffff12] transition-colors rounded-xl",children:(0,a.jsx)(l.N_,{href:t,locale:_,className:"text-sm font-semibold",children:r})},s)}),(0,a.jsx)("li",{children:(0,a.jsx)(m.KS,{viewport:!1,children:(0,a.jsx)(m.SK,{children:(0,a.jsxs)(m.JD,{className:"",children:[(0,a.jsx)(m.wd,{className:"px-5 flex items-center bg-transparent text-sm font-semibold  hover:bg-[#ffffff12] transition-colors ",children:E("about-amaken")}),(0,a.jsx)(m.hA,{children:(0,a.jsx)("ul",{className:"grid w-[200px] gap-4",children:(0,a.jsx)("li",{children:$.map(e=>{let{key:s,title:r,path:t}=e;return(0,a.jsx)(m.Ws,{asChild:!0,children:(0,a.jsx)(l.N_,{href:t,locale:_,className:"block px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 transition-colors",children:r})},s)})})})})]})})})}),(0,a.jsx)("li",{className:"py-1.5 px-5 hover:bg-[#ffffff12] transition-colors rounded-xl",children:(0,a.jsx)("a",{href:"#",onClick:B,className:"text-sm font-normal cursor-pointer ".concat("en"===_?"font-family-title-ar":"font-family-title-en"," ").concat(v?"opacity-50 pointer-events-none":""),children:(0,a.jsx)("span",{className:"text-base",children:v?"...":"en"===_?"عربي":"English"})})})]})]}),(0,a.jsxs)("div",{className:"flex items-center space-x-4",children:[S?(0,a.jsx)(N,{}):(0,a.jsxs)("div",{className:"hidden lg:flex items-center space-x-4",children:[(0,a.jsxs)(m.$n,{variant:"ghost",className:"flex items-center text-sm font-semibold gap-0 cursor-pointer hover:bg-[#ffffff12] ".concat(e?"text-gray-900":"text-white hover:text-white"),onClick:e=>{e.preventDefault(),w(!0)},children:[(0,a.jsx)(h.A,{className:"w-[18px] h-[18px] me-2"}),(0,a.jsx)("span",{className:"",children:E("sign-in")})]}),(0,a.jsx)(l.N_,{href:"https://agency.amaken.jo",target:"_blank",rel:"nofollow",children:(0,a.jsxs)(m.$n,{variant:"outline",size:"lg",className:(0,d.cn)("bg-transparent hover:text-white  hover:bg-amaken transition-colors duration-[400]  rounded-[60px] px-[22px] py-[9px] hover:border-amaken relative btn-animated hover:before:bg-amaken-hover overflow-hidden z-0 cursor-pointer",{"text-black border-black":e,"text-white border-white ":!e}),children:[E("agencies-sign-in"),"en"===_?(0,a.jsx)(x.A,{className:"ms-0.5 w-5 h-5"}):(0,a.jsx)(p.A,{className:"ms-0.5 w-5 h-5"})]})})]}),(0,a.jsx)(m.$n,{variant:"ghost",size:"sm",className:(0,d.cn)("lg:hidden p-2",e?"text-gray-900":"text-white"),onClick:()=>f(!r),"aria-label":"Toggle mobile menu",children:r?(0,a.jsx)(u.A,{className:"w-6 h-6"}):(0,a.jsx)(g.A,{className:"w-6 h-6"})})]})]}),(0,a.jsx)("div",{className:(0,d.cn)("lg:hidden absolute top-full left-0 right-0 bg-white shadow-lg border-t mt
1-5 rounded-b-lg h-screen overflow-hidden transition-all duration-500",r?"translate-y-0":"translate-y-full"),children:r&&(0,a.jsxs)("div",{className:"px-4 py-6 space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[L.map(e=>{let{key:s,title:r,path:t}=e;return(0,a.jsx)(l.N_,{href:t,locale:_,className:"block px-4 py-3 text-sm font-semibold text-gray-900 hover:bg-gray-100 rounded-lg transition-colors",onClick:()=>f(!1),children:r},s)}),(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)("div",{className:"px-4 py-3 text-sm font-semibold text-gray-900 border-b border-gray-200",children:E("about-amaken")}),$.map(e=>{let{key:s,title:r,path:t}=e;return(0,a.jsx)(l.N_,{href:t,locale:_,className:"block px-8 py-2 text-sm text-gray-700 hover:bg-gray-100 rounded-lg transition-colors",onClick:()=>f(!1),children:r},s)})]})]}),(0,a.jsx)("div",{className:"border-t border-gray-200 pt-4",children:(0,a.jsx)("a",{href:"#",onClick:e=>{f(!1),B(e)},className:"block px-4 py-3 text-sm font-normal hover:bg-gray-100 rounded-lg transition-colors cursor-pointer ".concat("en"===_?"font-family-title-ar":"font-family-title-en"," ").concat(v?"opacity-50 pointer-events-none":""),children:(0,a.jsx)("span",{className:"text-base",children:v?"...":"en"===_?"عربي":"English"})})}),!S&&(0,a.jsxs)("div",{className:"border-t border-gray-200 pt-4 space-y-3",children:[(0,a.jsxs)(m.$n,{variant:"ghost",className:"w-full justify-start text-sm font-semibold text-gray-900 hover:bg-gray-100",onClick:e=>{e.preventDefault(),w(!0),f(!1)},children:[(0,a.jsx)(h.A,{className:"w-[18px] h-[18px] me-2"}),E("sign-in")]}),(0,a.jsx)(l.N_,{href:"https://agency.amaken.jo",target:"_blank",rel:"nofollow",children:(0,a.jsxs)(m.$n,{variant:"ghost",className:"w-full justify-start bg-transparent text-gray-900 hover:bg-gray-100 rounded-[60px] py-3",onClick:()=>f(!1),children:[E("agencies-sign-in"),"en"===_?(0,a.jsx)(x.A,{className:"ms-2 w-5 h-5"}):(0,a.jsx)(p.A,{className:"ms-2 w-5 h-5"})]})})]})]})})]})})}},93836:()=>{},95487:(e,s,r)=>{Promise.resolve().then(r.bind(r,21256)),Promise.resolve().then(r.bind(r,64707)),Promise.resolve().then(r.bind(r,3809)),Promise.resolve().then(r.t.bind(r,81356,23)),Promise.resolve().then(r.t.bind(r,72587,23)),Promise.resolve().then(r.t.bind(r,10692,23)),Promise.resolve().then(r.t.bind(r,74620,23)),Promise.resolve().then(r.bind(r,77182)),Promise.resolve().then(r.bind(r,74565)),Promise.resolve().then(r.bind(r,28179)),Promise.resolve().then(r.bind(r,26140)),Promise.resolve().then(r.bind(r,63052)),Promise.resolve().then(r.bind(r,98621)),Promise.resolve().then(r.bind(r,88301)),Promise.resolve().then(r.bind(r,13496)),Promise.resolve().then(r.bind(r,85897)),Promise.resolve().then(r.bind(r,50276)),Promise.resolve().then(r.bind(r,73457)),Promise.resolve().then(r.bind(r,3730)),Promise.resolve().then(r.bind(r,51834)),Promise.resolve().then(r.bind(r,6259)),Promise.resolve().then(r.bind(r,41052)),Promise.resolve().then(r.bind(r,92698)),Promise.resolve().then(r.bind(r,76444)),Promise.resolve().then(r.bind(r,26333)),Promise.resolve().then(r.bind(r,50909)),Promise.resolve().then(r.bind(r,11186)),Promise.resolve().then(r.bind(r,86259)),Promise.resolve().then(r.bind(r,64581)),Promise.resolve().then(r.bind(r,4249)),Promise.resolve().then(r.bind(r,44846)),Promise.resolve().then(r.bind(r,87270)),Promise.resolve().then(r.bind(r,13406)),Promise.resolve().then(r.bind(r,46767)),Promise.resolve().then(r.bind(r,31732)),Promise.resolve().then(r.bind(r,90854)),Promise.resolve().then(r.bind(r,59334)),Promise.resolve().then(r.bind(r,80155)),Promise.resolve().then(r.bind(r,77674)),Promise.resolve().then(r.bind(r,79011)),Promise.resolve().then(r.bind(r,48477)),Promise.resolve().then(r.bind(r,76020)),Promise.resolve().then(r.bind(r,17747)),Promise.resolve().then(r.bind(r,64023)),Promise.resolve().then(r.bind(r,97265)),Promise.resolve().then(r.bind(r,11889)),Promise.resolve().then(r.bind(r,41088)),Promise.resolve().then(r.bind(r,37370)),Promise.resolve().then(r.bind(r,48749)),Promise.resolve().then(r.bind(r,88030)),Promise.resolve().then(r.t.bind(r,93836,23))},98621:(e,s,r)=>{"use strict";r.d(s,{DiscoverCities:()=>o});var a=r(95155),t=r(22952),l=r(8531),n=r(51432);function o(){var e;let{filterData:s,isLoading:r}=(0,l.PI)(e=>e);return r?(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:[...Array(6)].map((e,s)=>(0,a.jsx)("div",{className:"h-6 w-20 bg-gray-200 animate-pulse rounded"},s))}):(0,a.jsx)("div",{className:"flex flex-wrap gap-2",children:null==s||null==(e=s.governorates)?void 0:e.map((e,r)=>{var l;let o=(0,n.pr)({governorate:e.label});return(0,a.jsx)(t.N_,{href:"/properties".concat(o.length>0?"/"+o.join("/"):""),className:"text-gray-600 hover:text-teal-600 cursor-pointer transition-colors",children:(0,a.jsxs)("span",{children:[e.label,r<(null==s||null==(l=s.governorates)?void 0:l.length)-1&&(0,a.jsx)("span",{className:"ms-2 text-gray-400",children:"/"})]})},e.value)})})}}},e=>{e.O(0,[563,8776,5475,6328,5455,684,9187,7583,1356,1722,7306,4749,7729,4353,8441,1255,7358],()=>e(e.s=95487)),_N_E=e.O()}]);

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.