exports.id=5099,exports.ids=[5099],exports.modules={87713:(e,t,a)=>{var r={"./al.json":[79762,9762],"./en.json":[39316,9316],"./it.json":[71880,1880]};function s(e){if(!a.o(r,e))return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t});var t=r[e],s=t[0];return a.e(t[1]).then(()=>a.t(s,19))}s.keys=()=>Object.keys(r),s.id=87713,e.exports=s},19615:e=>{function t(e){return Promise.resolve().then(()=>{var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t})}t.keys=()=>[],t.resolve=t,t.id=19615,e.exports=t},94985:(e,t,a)=>{Promise.resolve().then(a.bind(a,67733))},88194:(e,t,a)=>{Promise.resolve().then(a.bind(a,52719)),Promise.resolve().then(a.bind(a,81115)),Promise.resolve().then(a.bind(a,17014)),Promise.resolve().then(a.bind(a,9998)),Promise.resolve().then(a.bind(a,73119)),Promise.resolve().then(a.bind(a,56248)),Promise.resolve().then(a.bind(a,3869)),Promise.resolve().then(a.bind(a,29610)),Promise.resolve().then(a.bind(a,83255)),Promise.resolve().then(a.bind(a,64563)),Promise.resolve().then(a.bind(a,5269)),Promise.resolve().then(a.t.bind(a,92481,23)),Promise.resolve().then(a.t.bind(a,79404,23)),Promise.resolve().then(a.bind(a,92248))},67119:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,12994,23)),Promise.resolve().then(a.t.bind(a,96114,23)),Promise.resolve().then(a.t.bind(a,9727,23)),Promise.resolve().then(a.t.bind(a,79671,23)),Promise.resolve().then(a.t.bind(a,41868,23)),Promise.resolve().then(a.t.bind(a,84759,23))},65870:(e,t,a)=>{Promise.resolve().then(a.t.bind(a,79404,23))},67733:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n});var r=a(10326),s=a(90434);function n({reset:e}){return(0,r.jsxs)("div",{className:"min-h-[60vh] flex flex-col items-center justify-center px-4 text-center",children:[r.jsx("h1",{className:"text-4xl font-bold text-gray-900 dark:text-white mb-4",children:"Dicka shkoi keq"}),r.jsx("p",{className:"text-gray-500 dark:text-gray-400 mb-8 max-w-md",children:"Na vjen keq, por dicka nuk shkoi si duhet. Provoni perseri ose kthehuni ne faqen kryesore."}),(0,r.jsxs)("div",{className:"flex gap-4",children:[r.jsx("button",{onClick:e,className:"px-6 py-3 bg-baboon-500 text-white rounded-xl font-semibold hover:bg-baboon-600 transition-colors",children:"Provo perseri"}),r.jsx(s.default,{href:"/",className:"px-6 py-3 bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 rounded-xl font-semibold hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:"Kryefaqja"})]})]})}},52719:(e,t,a)=>{"use strict";a.d(t,{default:()=>n});var r=a(10326),s=a(96931);function n(){return(0,r.jsxs)(r.Fragment,{children:[r.jsx(s.default,{id:"gtm",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-5RL6XDXF');`}}),r.jsx(s.default,{src:"https://www.googletagmanager.com/gtag/js?id=G-T24TZ0W8XY",strategy:"afterInteractive"}),r.jsx(s.default,{id:"ga4",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}
gtag('js',new Date());
gtag('config','G-T24TZ0W8XY');`}}),r.jsx(s.default,{src:"https://www.googletagmanager.com/gtag/js?id=AW-980976730",strategy:"afterInteractive"}),r.jsx(s.default,{id:"google-ads",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`gtag('consent','default',{
'ad_storage':'denied',
'ad_user_data':'denied',
'ad_personalization':'denied',
'analytics_storage':'denied',
wait_for_update:500
});
gtag('config','AW-980976730');`}}),r.jsx(s.default,{id:"fb-pixel",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:`!function(f,b,e,v,n,t,s)
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];
s.parentNode.insertBefore(t,s)}(window,document,'script',
'https://connect.facebook.net/en_US/fbevents.js');
fbq('init','896993180638361');
fbq('init','1044790799896459');
fbq('track','PageView');`}}),r.jsx("noscript",{children:r.jsx("img",{height:"1",width:"1",style:{display:"none"},src:"https://www.facebook.com/tr?id=896993180638361&ev=PageView&noscript=1",alt:""})}),r.jsx("noscript",{children:r.jsx("iframe",{src:"https://www.googletagmanager.com/ns.html?id=GTM-5RL6XDXF",height:"0",width:"0",style:{display:"none",visibility:"hidden"}})})]})}},9998:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var r=a(10326),s=a(17577);function n(e,t,a){let r=new Date(Date.now()+864e5*a).toUTCString();document.cookie=`${e}=${t};path=/;expires=${r};samesite=lax`}function i(){let[e,t]=(0,s.useState)(!1);return e?r.jsx("div",{className:"fixed inset-x-0 bottom-0 z-[9998] flex justify-center px-4 pb-5 animate-[slideUp_0.4s_ease-out]",children:(0,r.jsxs)("div",{className:"w-full max-w-lg bg-white/80 dark:bg-[#1a1a1a]/80 backdrop-blur-xl border border-gray-200/50 dark:border-gray-700/50 shadow-2xl rounded-2xl p-5 font-sans",children:[(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[r.jsx("span",{className:"text-2xl shrink-0 mt-0.5",children:"\uD83C\uDF6A"}),(0,r.jsxs)("div",{className:"flex-1",children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-gray-100 mb-1",children:"We value your privacy"}),r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400 leading-relaxed",children:"We use cookies to enhance your browsing experience and analyze our traffic."})]})]}),(0,r.jsxs)("div",{className:"flex gap-2 mt-4",children:[r.jsx("button",{onClick:()=>{n("cookieConsent","declined",180),"function"==typeof window.gtag&&window.gtag("consent","update",{ad_storage:"denied",ad_user_data:"denied",ad_personalization:"denied",analytics_storage:"denied"}),t(!1)},className:"flex-1 px-4 py-2.5 text-sm font-medium rounded-xl bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-gray-200 dark:hover:bg-gray-700 transition-all active:scale-[0.98]",children:"Decline"}),r.jsx("button",{onClick:()=>{n("cookieConsent","accepted",180),"function"==typeof window.gtag&&window.gtag("consent","update",{ad_storage:"granted",ad_user_data:"granted",ad_personalization:"granted",analytics_storage:"granted"}),t(!1)},className:"flex-1 px-4 py-2.5 text-sm font-medium rounded-xl bg-baboon-500 text-white hover:bg-baboon-600 shadow-lg shadow-baboon-500/25 transition-all active:scale-[0.98]",children:"Accept All"})]})]})}):null}},73119:(e,t,a)=>{"use strict";a.d(t,{default:()=>s}),a(17577),a(20902);var r=a(62257);function s(){let[e]=(0,r.er)();return null}},81115:(e,t,a)=>{"use strict";a.d(t,{default:()=>m});var r=a(10326),s=a(17577),n=a(6162),i=a(29610),o=a(91216),l=a(12714),d=a(20902),c=a(95312),u=a(94019);function m(){let e=(0,n.T)(),{showLoginModal:t,setShowLoginModal:a,showRegisterModal:m,setShowRegisterModal:g}=(0,i.q)(),[h]=(0,c.YA)(),[x]=(0,c.l4)(),[p]=(0,c.gX)(),[b]=(0,c.sz)(),[f,y]=(0,s.useState)("login"),[v,j]=(0,s.useState)(""),[k,w]=(0,s.useState)(""),[N,C]=(0,s.useState)(""),[S,P]=(0,s.useState)(""),[_,T]=(0,s.useState)(""),[D,A]=(0,s.useState)("+355"),[I,L]=(0,s.useState)(""),[q,V]=(0,s.useState)(""),[B,O]=(0,s.useState)(!1),[$,R]=(0,s.useState)(!1),[F,z]=(0,s.useState)(null),[E,M]=(0,s.useState)(["","","",""]),U=(0,s.useRef)([]),[H,Z]=(0,s.useState)(!1),[K,W]=(0,s.useState)(!1),[X,Q]=(0,s.useState)(!1),G=m&&"login"===f?"register":f;if(!(t||m))return null;let J=()=>{a(!1),g(!1),y("login"),L(""),V(""),j(""),w(""),C(""),P(""),T(""),A("+355"),R(!1),z(null),M(["","","",""])},Y=async t=>{t.preventDefault(),L(""),O(!0);try{let t=await h({email:v,password:k,fcmToken:(0,d.AZ)()}).unwrap();t.success?(J(),window.location.reload()):L(t.message||e("login_failed",{defaultValue:"Hyrja deshtoi. Provo perseri."}))}catch{L(e("generic_error",{defaultValue:"Ndodhi nje gabim."}))}finally{O(!1)}},ee=async t=>{t.preventDefault(),L(""),O(!0);try{let t=await x({name:N,surname:S,email:v,phone:_,phonePrefix:D,password:k}).unwrap();t.success&&t.data?(z(t.data.id??t.data.customerID),M(["","","",""]),L(""),V(e("activation_code_sent",{defaultValue:"Regjistrimi u krye me sukses. Vendosni kodin e konfirmimit qe ka ardhur ne celularin tuaj."})),y("activation"),setTimeout(()=>U.current[0]?.focus(),100)):L(t.error||t.message||e("register_failed",{defaultValue:"Regjistrimi deshtoi."}))}catch{L(e("generic_error",{defaultValue:"Ndodhi nje gabim."}))}finally{O(!1)}},et=(e,t)=>{if(!/^\d*$/.test(t))return;let a=[...E];a[e]=t.slice(-1),M(a),t&&e<3&&U.current[e+1]?.focus(),t&&3===e&&a.every(e=>""!==e)&&es(a.join(""))},ea=(e,t)=>{"Backspace"===t.key&&!E[e]&&e>0&&U.current[e-1]?.focus()},er=e=>{e.preventDefault();let t=e.clipboardData.getData("text").replace(/\D/g,"").slice(0,4);4===t.length&&(M(t.split("")),U.current[3]?.focus(),es(t))},es=async t=>{if(F&&4===t.length){L(""),V(""),O(!0);try{let a=await p({userId:F,activationCode:t,password:k,phone:_,name:N,surname:S,email:v}).unwrap();a.success?(J(),window.location.reload()):(L(a.error||e("activation_failed",{defaultValue:"Kodi i aktivizimit nuk eshte i sakte."})),M(["","","",""]),U.current[0]?.focus())}catch{L(e("generic_error",{defaultValue:"Ndodhi nje gabim."}))}finally{O(!1)}}},en=async()=>{if(F&&!H){Z(!0),L("");try{let t=await b({userId:F}).unwrap();t.success?V(e("code_resent",{defaultValue:"Kodi u ridergua me sukses."})):L(t.error||e("resend_failed",{defaultValue:"Nuk u dergua kodi. Provo perseri."}))}catch{L(e("generic_error",{defaultValue:"Ndodhi nje gabim."}))}finally{Z(!1)}}};return(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm z-50",onClick:J}),r.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4",children:(0,r.jsxs)("div",{className:"bg-white/90 dark:bg-black/70 backdrop-blur-xl rounded-2xl shadow-2xl w-full max-w-md overflow-hidden border border-gray-200/50 dark:border-white/10",onClick:e=>e.stopPropagation(),children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-6 pt-5 pb-3",children:[r.jsx("h2",{className:"text-xl font-bold text-gray-900 dark:text-white",children:(()=>{switch(G){case"register":return e("create_account",{defaultValue:"Krijo Llogari"});case"activation":return e("activation_title",{defaultValue:"Konfirmo Numrin"});default:return e("log_in",{defaultValue:"Hyr ne Llogari"})}})()}),r.jsx("button",{onClick:J,className:"p-1.5 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:r.jsx(u.Z,{className:"w-5 h-5 text-gray-500"})})]}),(0,r.jsxs)("div",{className:"px-6 pb-6",children:[I&&r.jsx("div",{className:"bg-red-50 dark:bg-red-900/20 border border-red-200 dark:border-red-800 text-red-600 dark:text-red-400 p-3 rounded-xl mb-4 text-sm",children:I}),q&&r.jsx("div",{className:"bg-green-50 dark:bg-green-900/20 border border-green-200 dark:border-green-800 text-green-600 dark:text-green-400 p-3 rounded-xl mb-4 text-sm",children:q}),"login"===G&&(0,r.jsxs)("form",{onSubmit:Y,className:"space-y-4",children:[(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Email"}),r.jsx("input",{type:"email",value:v,onChange:e=>j(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"email@example.com"})]}),(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:e("password",{defaultValue:"Fjalekalimi"})}),(0,r.jsxs)("div",{className:"relative",children:[r.jsx("input",{type:K?"text":"password",value:k,onChange:e=>w(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 pr-11 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"********"}),r.jsx("button",{type:"button",onClick:()=>W(!K),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",children:K?r.jsx(o.Z,{className:"w-4.5 h-4.5"}):r.jsx(l.Z,{className:"w-4.5 h-4.5"})})]})]}),r.jsx("div",{className:"flex justify-end",children:r.jsx("button",{type:"button",onClick:()=>{y("register"),Q(!0),L(""),V("")},className:"text-xs font-medium text-baboon-500 hover:underline",children:e("forgot_password",{defaultValue:"Ke harruar fjalekalimin?"})})}),r.jsx("button",{type:"submit",disabled:B,className:"w-full py-3 rounded-xl font-semibold text-white bg-baboon-500 hover:bg-baboon-600 transition-colors text-sm disabled:opacity-50",children:B?e("logging_in",{defaultValue:"Duke hyre..."}):e("log_in",{defaultValue:"Hyr"})}),(0,r.jsxs)("p",{className:"text-center text-sm text-gray-500 dark:text-gray-400 pt-4",children:[e("no_account",{defaultValue:"Nuk ke llogari?"})," ",r.jsx("button",{type:"button",onClick:()=>{y("register"),L("")},className:"font-semibold text-baboon-500 hover:underline",children:e("register",{defaultValue:"Regjistrohu"})})]})]}),"register"===G&&(0,r.jsxs)("form",{onSubmit:ee,className:"space-y-4",children:[X&&(0,r.jsxs)("div",{className:"bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-800 rounded-xl p-3 text-center",children:[r.jsx("p",{className:"text-sm text-blue-800 dark:text-blue-200 font-medium",children:e("reset_register_hint")}),r.jsx("p",{className:"text-xs text-blue-600 dark:text-blue-300 mt-1",children:e("reset_no_data_loss")})]}),(0,r.jsxs)("div",{className:"grid grid-cols-2 gap-3",children:[(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:e("first_name",{defaultValue:"Emri"})}),r.jsx("input",{type:"text",value:N,onChange:e=>C(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"Emri"})]}),(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:e("last_name",{defaultValue:"Mbiemri"})}),r.jsx("input",{type:"text",value:S,onChange:e=>P(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"Mbiemri"})]})]}),(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:"Email"}),r.jsx("input",{type:"email",value:v,onChange:e=>j(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"email@example.com"})]}),(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:e("phone",{defaultValue:"Celulari"})}),(0,r.jsxs)("div",{className:"flex gap-2",children:[(0,r.jsxs)("select",{value:D,onChange:e=>A(e.target.value),className:"border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-3 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm w-24",children:[r.jsx("option",{value:"+355",children:"\uD83C\uDDE6\uD83C\uDDF1 +355"}),r.jsx("option",{value:"+383",children:"\uD83C\uDDFD\uD83C\uDDF0 +383"}),r.jsx("option",{value:"+389",children:"\uD83C\uDDF2\uD83C\uDDF0 +389"}),r.jsx("option",{value:"+39",children:"\uD83C\uDDEE\uD83C\uDDF9 +39"}),r.jsx("option",{value:"+49",children:"\uD83C\uDDE9\uD83C\uDDEA +49"}),r.jsx("option",{value:"+44",children:"\uD83C\uDDEC\uD83C\uDDE7 +44"}),r.jsx("option",{value:"+1",children:"\uD83C\uDDFA\uD83C\uDDF8 +1"})]}),r.jsx("input",{type:"tel",value:_,onChange:e=>T(e.target.value),required:!0,className:"flex-1 border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"6X XXX XXXX"})]})]}),(0,r.jsxs)("div",{children:[r.jsx("label",{className:"block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1",children:e("password",{defaultValue:"Fjalekalimi"})}),(0,r.jsxs)("div",{className:"relative",children:[r.jsx("input",{type:K?"text":"password",value:k,onChange:e=>w(e.target.value),required:!0,className:"w-full border border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl px-4 py-3 pr-11 focus:ring-2 focus:ring-baboon-500 focus:border-transparent outline-none text-sm",placeholder:"********"}),r.jsx("button",{type:"button",onClick:()=>W(!K),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300 transition-colors",children:K?r.jsx(o.Z,{className:"w-4.5 h-4.5"}):r.jsx(l.Z,{className:"w-4.5 h-4.5"})})]})]}),(0,r.jsxs)("label",{className:"flex items-start gap-2.5 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:$,onChange:e=>R(e.target.checked),className:"mt-0.5 w-4 h-4 rounded"}),(0,r.jsxs)("span",{className:"text-xs text-gray-500 dark:text-gray-400 leading-relaxed",children:[e("accept_terms_prefix",{defaultValue:"Pranoj"})," ",r.jsx("a",{href:"/termat-kushtet",target:"_blank",className:"font-semibold text-baboon-500 underline",children:e("terms_and_conditions",{defaultValue:"Kushtet e Perdorimit"})})," ",e("and",{defaultValue:"dhe"})," ",r.jsx("a",{href:"/deklarata-e-privatesise",target:"_blank",className:"font-semibold text-baboon-500 underline",children:e("privacy_policy",{defaultValue:"Politiken e Privatesise"})})]})]}),r.jsx("button",{type:"submit",disabled:B||!$,className:"w-full py-3 rounded-xl font-semibold text-white bg-baboon-500 hover:bg-baboon-600 transition-colors text-sm disabled:opacity-50",children:B?e("registering",{defaultValue:"Duke u regjistruar..."}):e("register",{defaultValue:"Regjistrohu"})}),(0,r.jsxs)("p",{className:"text-center text-sm text-gray-500 dark:text-gray-400 pt-4",children:[e("already_have_account",{defaultValue:"Ke llogari?"})," ",r.jsx("button",{type:"button",onClick:()=>{y("login"),L("")},className:"font-semibold text-baboon-500 hover:underline",children:e("log_in",{defaultValue:"Hyr"})})]})]}),"activation"===G&&(0,r.jsxs)("div",{className:"space-y-6",children:[r.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 text-center",children:e("enter_activation_code",{defaultValue:"Vendosni kodin 4-shifror qe u dergua ne numrin tuaj"})}),(0,r.jsxs)("p",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300 text-center",children:[D," ",_]}),r.jsx("div",{className:"flex justify-center gap-3",children:E.map((e,t)=>r.jsx("input",{ref:e=>{U.current[t]=e},type:"text",inputMode:"numeric",maxLength:1,value:e,onChange:e=>et(t,e.target.value),onKeyDown:e=>ea(t,e),onPaste:0===t?er:void 0,className:"w-14 h-14 text-center text-2xl font-bold border-2 border-gray-300 dark:border-gray-600 bg-white dark:bg-[#242424] text-gray-900 dark:text-white rounded-xl focus:ring-2 focus:ring-baboon-500 focus:border-baboon-500 outline-none transition-colors"},t))}),B&&r.jsx("div",{className:"flex justify-center",children:(0,r.jsxs)("div",{className:"text-sm text-gray-500 dark:text-gray-400 flex items-center gap-2",children:[(0,r.jsxs)("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",fill:"none",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),e("verifying",{defaultValue:"Duke verifikuar..."})]})}),r.jsx("button",{onClick:()=>es(E.join("")),disabled:B||E.some(e=>""===e),className:"w-full py-3 rounded-xl font-semibold text-white bg-baboon-500 hover:bg-baboon-600 transition-colors text-sm disabled:opacity-50",children:e("verify",{defaultValue:"Konfirmo"})}),r.jsx("div",{className:"text-center",children:r.jsx("button",{type:"button",onClick:en,disabled:H,className:"text-sm text-baboon-500 hover:underline font-medium disabled:opacity-50",children:H?e("resending",{defaultValue:"Duke riderguar..."}):e("resend_code",{defaultValue:"Ridergo kodin"})})})]})]})]})})]})}},17014:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var r=a(10326),s=a(77626),n=a.n(s),i=a(17577),o=a(6162),l=a(29610),d=a(8958),c=a(83255),u=a(95312),m=a(94019),g=a(46226),h=a(35047);function x(){let e=(0,o.T)(),t=(0,h.useRouter)(),{showCartDrawer:a,setShowCartDrawer:s,setShowLoginModal:x}=(0,l.q)(),{cart:p,totalItems:b,subtotal:f,totalPrice:y,discountAmount:v,updateQuantity:j,removeItem:k,clearCart:w}=(0,c.j)(),{data:N}=(0,u.LP)(),C=!!N?.authenticated,[S,P]=(0,i.useState)(null);if(!a)return null;let _=e=>{let t=e.itemPrice;return e.variants&&e.variants.length>0&&(t=e.variants[0].price),e.toppings&&(t+=e.toppings.reduce((e,t)=>e+t.price,0)),t};return(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{onClick:()=>s(!1),className:"jsx-f2e1e181fadf6bb1 fixed inset-0 bg-black/50 z-50 transition-opacity"}),(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 fixed top-0 right-0 h-full w-full max-w-md bg-white dark:bg-[#242424] z-50 shadow-2xl flex flex-col animate-slide-in-right",children:[(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex items-center justify-between px-5 py-4 border-b border-gray-200 dark:border-gray-700",children:[(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1",children:[r.jsx("h2",{className:"jsx-f2e1e181fadf6bb1 text-lg font-bold text-gray-900 dark:text-white",children:e("your_cart",{defaultValue:"Shporta jote"})}),p.restaurantName&&r.jsx("p",{className:"jsx-f2e1e181fadf6bb1 text-sm text-gray-500 dark:text-gray-400",children:p.restaurantName})]}),r.jsx("button",{onClick:()=>s(!1),className:"jsx-f2e1e181fadf6bb1 p-1.5 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:r.jsx(m.Z,{className:"w-5 h-5 text-gray-500"})})]}),r.jsx("div",{className:"jsx-f2e1e181fadf6bb1 flex-1 overflow-y-auto scrollbar-thin px-5 py-4",children:0===b?(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex flex-col items-center justify-center h-full text-center",children:[r.jsx("div",{className:"jsx-f2e1e181fadf6bb1 text-6xl mb-4",children:"\uD83D\uDED2"}),r.jsx("p",{className:"jsx-f2e1e181fadf6bb1 text-gray-500 dark:text-gray-400 font-medium",children:e("cart_empty",{defaultValue:"Shporta eshte bosh"})}),r.jsx("p",{className:"jsx-f2e1e181fadf6bb1 text-sm text-gray-400 dark:text-gray-500 mt-1",children:e("cart_empty_desc",{defaultValue:"Shto artikuj nga nje restorante"})})]}):(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 space-y-4",children:[p.items.map((e,t)=>{let a=_(e);return(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex gap-3",children:[e.image&&r.jsx("div",{className:"jsx-f2e1e181fadf6bb1 relative w-16 h-16 rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-800 flex-shrink-0",children:r.jsx(g.default,{src:(0,d.QL)(e.image),alt:e.itemName,fill:!0,sizes:"64px",className:"object-cover"})}),(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex-1 min-w-0",children:[r.jsx("h4",{className:"jsx-f2e1e181fadf6bb1 text-sm font-semibold text-gray-900 dark:text-white truncate",children:e.itemName}),e.variants&&e.variants.length>0&&r.jsx("p",{className:"jsx-f2e1e181fadf6bb1 text-xs text-gray-500 dark:text-gray-400",children:e.variants[0].name}),e.toppings&&e.toppings.length>0&&(0,r.jsxs)("p",{className:"jsx-f2e1e181fadf6bb1 text-xs text-gray-400 dark:text-gray-500 truncate",children:["+",e.toppings.map(e=>e.name).join(", ")]}),(0,r.jsxs)("p",{className:"jsx-f2e1e181fadf6bb1 text-sm font-semibold text-gray-900 dark:text-white mt-1",children:[a*e.quantity," ALL"]})]}),(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex items-center gap-2 flex-shrink-0",children:[r.jsx("button",{disabled:null!==S,onClick:async()=>{P({itemId:e.id,type:"minus"}),1===e.quantity?await k(e.id):await j(e.id,e.quantity-1),P(null)},className:"jsx-f2e1e181fadf6bb1 w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 font-bold text-sm transition-colors disabled:opacity-40",children:S?.itemId===e.id&&"minus"===S.type?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"jsx-f2e1e181fadf6bb1 animate-spin h-4 w-4",children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"jsx-f2e1e181fadf6bb1 opacity-25"}),r.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",className:"jsx-f2e1e181fadf6bb1 opacity-75"})]}):1===e.quantity?r.jsx("svg",{fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,className:"jsx-f2e1e181fadf6bb1 w-3.5 h-3.5",children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m14.74 9-.346 9m-4.788 0L9.26 9m9.968-3.21c.342.052.682.107 1.022.166m-1.022-.165L18.16 19.673a2.25 2.25 0 0 1-2.244 2.077H8.084a2.25 2.25 0 0 1-2.244-2.077L4.772 5.79m14.456 0a48.108 48.108 0 0 0-3.478-.397m-12 .562c.34-.059.68-.114 1.022-.165m0 0a48.11 48.11 0 0 1 3.478-.397m7.5 0v-.916c0-1.18-.91-2.164-2.09-2.201a51.964 51.964 0 0 0-3.32 0c-1.18.037-2.09 1.022-2.09 2.201v.916m7.5 0a48.667 48.667 0 0 0-7.5 0",className:"jsx-f2e1e181fadf6bb1"})}):"−"}),r.jsx("span",{className:"jsx-f2e1e181fadf6bb1 text-sm font-semibold text-gray-900 dark:text-white w-5 text-center",children:e.quantity}),r.jsx("button",{disabled:null!==S,onClick:async()=>{P({itemId:e.id,type:"plus"}),await j(e.id,e.quantity+1),P(null)},className:"jsx-f2e1e181fadf6bb1 w-8 h-8 flex items-center justify-center rounded-full bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 font-bold text-sm transition-colors disabled:opacity-40",children:S?.itemId===e.id&&"plus"===S.type?(0,r.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",className:"jsx-f2e1e181fadf6bb1 animate-spin h-4 w-4",children:[r.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",className:"jsx-f2e1e181fadf6bb1 opacity-25"}),r.jsx("path",{fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z",className:"jsx-f2e1e181fadf6bb1 opacity-75"})]}):"+"})]})]},`${e.id}-${t}`)}),r.jsx("button",{onClick:w,className:"jsx-f2e1e181fadf6bb1 text-sm text-baboon-500 hover:text-baboon-600 font-medium",children:e("clear_cart",{defaultValue:"Pastro shporten"})})]})}),b>0&&(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 border-t border-gray-200 dark:border-gray-700 px-5 py-4 space-y-3",children:[(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 space-y-1.5",children:[(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex justify-between text-sm text-gray-600 dark:text-gray-400",children:[r.jsx("span",{className:"jsx-f2e1e181fadf6bb1",children:e("subtotal",{defaultValue:"Nentotali"})}),(0,r.jsxs)("span",{className:"jsx-f2e1e181fadf6bb1",children:[f," ALL"]})]}),v>0&&(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex justify-between text-sm text-green-600",children:[r.jsx("span",{className:"jsx-f2e1e181fadf6bb1",children:e("discount",{defaultValue:"Zbritje"})}),(0,r.jsxs)("span",{className:"jsx-f2e1e181fadf6bb1",children:["-",v," ALL"]})]}),(0,r.jsxs)("div",{className:"jsx-f2e1e181fadf6bb1 flex justify-between text-base font-bold text-gray-900 dark:text-white pt-1.5 border-t border-gray-100 dark:border-gray-800",children:[r.jsx("span",{className:"jsx-f2e1e181fadf6bb1",children:e("total",{defaultValue:"Totali"})}),(0,r.jsxs)("span",{className:"jsx-f2e1e181fadf6bb1",children:[y," ALL"]})]})]}),(0,r.jsxs)("button",{onClick:()=>{if(!C){s(!1),x(!0);return}s(!1),t.push("/porosi")},className:"jsx-f2e1e181fadf6bb1 w-full py-3.5 rounded-xl font-semibold text-white text-sm transition-colors bg-baboon-500 hover:bg-baboon-600",children:[e("go_to_checkout",{defaultValue:"Vazhdo me Porosine"})," \xb7 ",y," ALL"]})]})]}),r.jsx(n(),{id:"f2e1e181fadf6bb1",children:"@-webkit-keyframes slide-in-right{from{-webkit-transform:translatex(100%);transform:translatex(100%)}to{-webkit-transform:translatex(0);transform:translatex(0)}}@-moz-keyframes slide-in-right{from{-moz-transform:translatex(100%);transform:translatex(100%)}to{-moz-transform:translatex(0);transform:translatex(0)}}@-o-keyframes slide-in-right{from{-o-transform:translatex(100%);transform:translatex(100%)}to{-o-transform:translatex(0);transform:translatex(0)}}@keyframes slide-in-right{from{-webkit-transform:translatex(100%);-moz-transform:translatex(100%);-o-transform:translatex(100%);transform:translatex(100%)}to{-webkit-transform:translatex(0);-moz-transform:translatex(0);-o-transform:translatex(0);transform:translatex(0)}}.animate-slide-in-right.jsx-f2e1e181fadf6bb1{-webkit-animation:slide-in-right.3s ease-out;-moz-animation:slide-in-right.3s ease-out;-o-animation:slide-in-right.3s ease-out;animation:slide-in-right.3s ease-out}"})]})}},56248:(e,t,a)=>{"use strict";a.d(t,{default:()=>$});var r=a(10326),s=a(17577),n=a(6162),i=a(29610),o=a(64563),l=a(95312),d=a(35047),c=a(90434),u=a(46226),m=a(88307),g=a(94019),h=a(51807),x=a(4402),p=a(8958);function b(e){let t=String(e.businessName??e.restaurantName??"");return{id:Number(e.businessID??e.restaurantID??e.id??0),restaurantName:t,slug:String(e.slug||(0,x.jB)(t)),image:String(e.businessImageUrl||e.photoUrl||e.mainProductPhotoUrl||e.image||""),logo:String(e.logo??""),rating:Number(e.averageRate??e.rating??0),storeTypeId:Number(e.businessStoreTypeID??e.storeTypeId??e.type??0)}}function f(){let e=(0,n.T)(),[t,a]=(0,s.useState)(""),[i,o]=(0,s.useState)([]),[d,f]=(0,s.useState)([]),[y,v]=(0,s.useState)([]),[j,k]=(0,s.useState)(!1),[w,N]=(0,s.useState)(""),[C,S]=(0,s.useState)(!1),P=(0,s.useRef)(null);(0,s.useRef)(null);let{data:_}=(0,l.LP)(),T=!!_?.authenticated,{data:D,isLoading:A}=(0,h.$n)(),[I]=(0,h.FB)(),[L]=(0,h.b1)(),q=(D?.mostSearchedBusiness||[]).slice(0,8).map(b),V=(D?.lastSearchedBusiness||[]).slice(0,8).map(b),{data:B,isFetching:O}=(0,h.A3)(w,{skip:w.length<2}),$=(0,s.useMemo)(()=>{if(0===y.length||0===i.length)return[{category:null,restaurants:i}];let e=[];for(let t of y){let a=i.filter(e=>e.storeTypeId===t.id);a.length>0&&e.push({category:t,restaurants:a})}let t=new Set(e.flatMap(e=>e.restaurants.map(e=>e.id))),a=i.filter(e=>!t.has(e.id));return a.length>0&&e.length>0?e[0].restaurants=[...e[0].restaurants,...a]:a.length>0&&e.push({category:null,restaurants:a}),e},[i,y]),R=e=>{e&&T&&I(e),k(!1),S(!1),a("")},F=e=>{L(e)},z=C&&t.length<2&&(A||q.length>0||V.length>0),E=j&&(i.length>0||d.length>0);return(0,r.jsxs)("div",{ref:P,className:"relative flex-1 max-w-2xl",children:[(0,r.jsxs)("div",{className:`flex items-center bg-gray-100 dark:bg-[#242424] rounded-full px-4 py-2.5 transition-all ${C?"ring-2 ring-baboon-500":""}`,children:[r.jsx(m.Z,{className:"w-5 h-5 text-gray-400 dark:text-gray-500 mr-2 flex-shrink-0"}),r.jsx("input",{type:"text",value:t,onChange:e=>a(e.target.value),onFocus:()=>{S(!0),t.length>=2&&(i.length>0||d.length>0)&&k(!0)},placeholder:e("search_restaurants_food",{defaultValue:"Kerko restorante, ushqime..."}),className:"flex-1 bg-transparent outline-none text-sm text-gray-800 dark:text-gray-200 placeholder-gray-400 dark:placeholder-gray-500"}),t&&r.jsx("button",{onClick:()=>{a(""),o([]),f([]),v([]),k(!1)},className:"p-0.5",children:r.jsx(g.Z,{className:"w-4 h-4 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"})}),O&&r.jsx("div",{className:"w-4 h-4 border-2 border-gray-300 border-t-gray-600 rounded-full animate-spin ml-1"})]}),z&&(0,r.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white dark:bg-[#1a1a1a] rounded-xl shadow-lg z-50 max-h-[70vh] overflow-y-auto scrollbar-thin",children:[A&&0===q.length&&r.jsx("div",{className:"flex items-center justify-center py-6",children:r.jsx("div",{className:"w-5 h-5 border-2 border-gray-300 dark:border-gray-600 border-t-baboon-500 rounded-full animate-spin"})}),q.length>0&&(0,r.jsxs)("div",{children:[r.jsx("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider px-4 pt-3 pb-2",children:e("most_searched",{defaultValue:"Me te kerkuarat"})}),q.map(e=>(0,r.jsxs)(c.default,{href:(0,x.Ki)(e),onClick:()=>R(e.id),className:"flex items-center gap-3 px-4 py-2.5 hover:bg-gray-50 dark:hover:bg-white/5 transition-colors",children:[r.jsx(m.Z,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),r.jsx("span",{className:"text-sm text-gray-800 dark:text-gray-200 truncate",children:e.restaurantName})]},e.id))]}),T&&V.length>0&&(0,r.jsxs)("div",{className:q.length>0?"border-t border-gray-100 dark:border-gray-800":"",children:[r.jsx("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider px-4 pt-3 pb-2",children:e("recent_searches",{defaultValue:"Kerkimet e fundit"})}),V.map(e=>(0,r.jsxs)("div",{className:"flex items-center gap-3 px-4 py-2.5 hover:bg-gray-50 dark:hover:bg-white/5 transition-colors",children:[(0,r.jsxs)(c.default,{href:(0,x.Ki)(e),onClick:()=>R(e.id),className:"flex items-center gap-3 flex-1 min-w-0",children:[r.jsx("svg",{className:"w-4 h-4 text-gray-400 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"})}),r.jsx("span",{className:"text-sm text-gray-800 dark:text-gray-200 truncate",children:e.restaurantName})]}),r.jsx("button",{onClick:()=>F(e.id),className:"p-1 flex-shrink-0",children:r.jsx(g.Z,{className:"w-3.5 h-3.5 text-gray-400 hover:text-gray-600 dark:hover:text-gray-300"})})]},e.id))]})]}),E&&(0,r.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white dark:bg-[#1a1a1a] rounded-xl shadow-lg z-50 max-h-[70vh] overflow-y-auto scrollbar-thin",children:[$.map((t,a)=>t.restaurants.length>0&&r.jsx("div",{className:a>0?"border-t border-gray-100 dark:border-gray-800":"",children:(0,r.jsxs)("div",{className:"p-4 pb-3",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[t.category?.imageUrl&&r.jsx(u.default,{src:(0,p.QL)(t.category.imageUrl),alt:"",width:20,height:20,className:"w-5 h-5 rounded"}),r.jsx("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",children:t.category?.description||e("restaurants_and_stores",{defaultValue:"Restorante dhe dyqane"})})]}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:t.restaurants.map(e=>(0,r.jsxs)(c.default,{href:(0,x.Ki)(e),onClick:()=>R(e.id),className:"group text-center",children:[r.jsx("div",{className:"w-full aspect-[4/3] rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-800 mb-1.5",children:e.image||e.logo?r.jsx(u.default,{src:(0,p.QL)(e.image||e.logo),alt:e.restaurantName,width:160,height:120,className:"w-full h-full object-cover group-hover:scale-105 transition-transform"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:r.jsx(m.Z,{className:"w-5 h-5"})})}),r.jsx("p",{className:"text-xs font-medium text-gray-800 dark:text-gray-200 truncate",children:e.restaurantName})]},e.id))})]})},t.category?.id??"all")),d.length>0&&(0,r.jsxs)("div",{className:`p-4 ${i.length>0?"border-t border-gray-100 dark:border-gray-800":""}`,children:[r.jsx("p",{className:"text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider mb-3",children:e("related_items",{defaultValue:"Artikuj te ngjashem"})}),r.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:d.map(e=>(0,r.jsxs)(c.default,{href:(0,x.Ki)({slug:e.restaurantSlug||String(e.restaurantId)}),onClick:()=>R(e.restaurantId),className:"group",children:[r.jsx("div",{className:"w-full aspect-[4/3] rounded-lg overflow-hidden bg-gray-100 dark:bg-gray-800 mb-1.5",children:e.image?r.jsx(u.default,{src:(0,p.QL)(e.image),alt:e.itemName,width:160,height:120,className:"w-full h-full object-cover group-hover:scale-105 transition-transform"}):r.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-400",children:r.jsx(m.Z,{className:"w-5 h-5"})})}),r.jsx("p",{className:"text-xs font-medium text-gray-800 dark:text-gray-200 truncate",children:e.itemName}),r.jsx("p",{className:"text-[10px] text-gray-500 dark:text-gray-400 truncate",children:e.restaurantName})]},e.id))})]}),0===i.length&&0===d.length&&t.length>=2&&!O&&r.jsx("div",{className:"px-4 py-6 text-center text-sm text-gray-500 dark:text-gray-400",children:e("no_results",{defaultValue:"Nuk u gjet asnje rezultat."})})]})]})}let y={al:"https://flagcdn.com/w40/al.png",en:"https://flagcdn.com/w40/gb.png",it:"https://flagcdn.com/w40/it.png"};function v({code:e}){return r.jsx("img",{src:y[e],alt:"",width:20,height:14,className:"w-5 h-3.5 rounded-[2px] shrink-0 shadow-sm object-cover"})}let j=[{code:"al",label:"Shqip"},{code:"en",label:"English"},{code:"it",label:"Italiano"}],k={al:"menu-porosit-online",en:"menu-order-online",it:"menu-ordina-online"},w=Object.values(k),N={al:{prefix:"restorant",suffix:"porosit-online"},en:{prefix:"restaurant",suffix:"order-online"},it:{prefix:"ristorante",suffix:"ordina-online"}},C=Object.values(N).map(e=>e.prefix);function S(){let[e,t]=(0,s.useState)(!1),[a,n]=(0,s.useState)("al"),i=(0,s.useRef)(null),o=e=>{document.cookie=`langCode=${e};path=/;max-age=31536000;samesite=lax`,n(e),t(!1);let a=function(e,t){let a=w.find(t=>e.endsWith("/"+t));if(a)return e.replace(a,k[t]);let r=e.split("/").filter(Boolean);if(r.length>=4){let e=r[1];if(C.includes(e)){let e=N[t];return r[1]=e.prefix,r[3]=e.suffix,"/"+r.join("/")}}return e}(window.location.pathname,e);window.location.href=a},l=j.find(e=>e.code===a)||j[0];return(0,r.jsxs)("div",{className:"relative",ref:i,children:[(0,r.jsxs)("button",{onClick:()=>t(!e),className:"flex items-center gap-2 px-3 py-2 rounded-full text-sm font-medium text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:[r.jsx(v,{code:l.code}),r.jsx("span",{className:"hidden sm:inline",children:l.label}),r.jsx("svg",{className:`w-3.5 h-3.5 text-gray-400 transition-transform duration-200 ${e?"rotate-180":""}`,fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19 9l-7 7-7-7"})})]}),e&&(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>t(!1)}),r.jsx("div",{className:"absolute right-0 mt-2 w-44 bg-white dark:bg-[#1a1a1a] backdrop-blur-xl border border-gray-200/50 dark:border-gray-700/50 rounded-2xl shadow-2xl z-50 overflow-hidden p-1.5 animate-[slideUp_0.2s_ease-out]",children:j.map(e=>{let t=e.code===a;return(0,r.jsxs)("button",{onClick:()=>o(e.code),className:`flex items-center gap-2.5 w-full text-left px-3 py-2.5 text-sm rounded-xl transition-all ${t?"bg-baboon-500/10 dark:bg-baboon-500/15 text-baboon-600 dark:text-baboon-400 font-semibold":"text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800"}`,children:[r.jsx(v,{code:e.code}),r.jsx("span",{children:e.label}),t&&r.jsx("svg",{className:"w-4 h-4 ml-auto text-baboon-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:r.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})]},e.code)})})]})]})}let P={restaurants:1,grocery:2,"alcohol-tobacco":30,markets:3,"flowers-gifts":31},_=Object.fromEntries(Object.entries(P).map(([e,t])=>[t,e])),T=new Set(Object.keys(P));function D({businessTypes:e}){let t=(0,d.usePathname)().split("/")[1]||"",a=T.has(t);return e&&0!==e.length?r.jsx("div",{className:"flex items-center gap-2 md:gap-3 md:justify-center lg:gap-4 overflow-x-auto scrollbar-hide px-4 py-2 max-w-[1400px] mx-auto",children:e.map(e=>{let s=_[e.id]||String(e.id),n=a&&t===s,i=n?"/":`/${s}`;return(0,r.jsxs)(c.default,{href:i,className:`flex items-center gap-1.5 flex-shrink-0 pr-3 rounded-full text-sm font-medium transition-all duration-200 cursor-pointer ${n?"bg-baboon-500 text-white shadow-sm shadow-baboon-500/20 border border-baboon-500":"text-gray-700 dark:text-gray-200 hover:bg-gray-100/80 dark:hover:bg-white/20"}`,children:[e.imageUrl&&r.jsx("div",{className:"w-7 h-7 rounded-full overflow-hidden flex-shrink-0",children:r.jsx(u.default,{src:(0,p.QL)(e.imageUrl),alt:e.description,width:28,height:28,className:"w-full h-full object-cover"})}),r.jsx("span",{children:e.description})]},e.id)})}):null}var A=a(60850),I=a(72607),L=a(79635),q=a(71810),V=a(77636),B=a(941),O=a(32691);function $(){let e=(0,n.T)(),{setShowLoginModal:t}=(0,i.q)(),{location:a,setShowLocationPicker:m}=(0,o.T)(),{data:g}=(0,l.LP)(),[x]=(0,l._y)(),p=!!g?.authenticated,b=g?.authenticated&&g.user?`${g.user.name}${g.user.surname?" "+g.user.surname:""}`:null,y=(0,d.usePathname)(),{data:v,isLoading:j}=(0,h.rR)();y.split("/")[1];let[k,w]=(0,s.useState)(!1),[N,C]=(0,s.useState)(!1),[P,_]=(0,s.useState)(!1),T=(0,s.useRef)(null),$=async()=>{try{await x().unwrap(),window.location.href="/"}catch{window.location.href="/api/auth/logout"}};return(0,r.jsxs)("header",{className:`fixed top-0 left-0 right-0 z-50 bg-white/80 dark:bg-black/70 backdrop-blur-xl border-b border-gray-200/50 dark:border-white/5 transition-shadow duration-300 ${N?"shadow-sm":""}`,children:[(0,r.jsxs)("div",{className:"flex items-center h-14 md:h-16 px-4 gap-2 md:gap-3 max-w-[1400px] mx-auto",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,r.jsxs)(c.default,{href:"/",className:"flex-shrink-0",children:[r.jsx(u.default,{src:"/images/logo.svg",alt:"Baboon",width:110,height:36,className:"object-contain hidden sm:block"}),r.jsx(u.default,{src:"/images/favicon.svg",alt:"Baboon",width:28,height:28,className:"object-contain sm:hidden"})]}),r.jsx("div",{className:"hidden lg:block w-px h-6 bg-gray-200 dark:bg-gray-700 mx-1"}),(0,r.jsxs)("button",{onClick:()=>m(!0),className:"hidden lg:flex items-center gap-1.5 text-sm hover:bg-gray-100/80 dark:hover:bg-gray-800/80 rounded-full px-3 py-2 transition-colors max-w-[200px]",children:[r.jsx(V.Z,{className:"w-4 h-4 text-baboon-500 flex-shrink-0"}),r.jsx("span",{className:"font-medium text-gray-900 dark:text-white truncate",suppressHydrationWarning:!0,children:a.address.split(",")[0]}),r.jsx(B.Z,{className:"w-3 h-3 text-gray-400 flex-shrink-0"})]})]}),r.jsx("div",{className:"flex-1 min-w-0 max-w-2xl mx-auto",children:r.jsx(f,{})}),(0,r.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0",children:[(0,r.jsxs)("button",{onClick:()=>{let e=!k;w(e),document.documentElement.classList.toggle("dark",e),localStorage.setItem("theme",e?"dark":"light")},className:"hidden md:flex items-center gap-1 p-1.5 rounded-full hover:bg-gray-100/80 dark:hover:bg-gray-800/80 transition-colors",title:k?e("dark_mode",{defaultValue:"Dark Mode"}):e("light_mode",{defaultValue:"Light Mode"}),children:[r.jsx(A.Z,{className:`w-3.5 h-3.5 transition-colors ${k?"text-gray-400":"text-amber-500"}`}),r.jsx("div",{className:"relative w-8 h-[18px] bg-gray-300 dark:bg-gray-600 rounded-full transition-colors",children:r.jsx("div",{className:`absolute top-[2px] w-[14px] h-[14px] bg-white rounded-full shadow-sm transition-transform duration-200 ${k?"translate-x-[15px]":"translate-x-[2px]"}`})}),r.jsx(I.Z,{className:`w-3.5 h-3.5 transition-colors ${k?"text-blue-400":"text-gray-400"}`})]}),r.jsx("div",{className:"hidden md:block",children:r.jsx(S,{})}),p?(0,r.jsxs)("div",{className:"relative",ref:T,children:[r.jsx("button",{onClick:()=>_(!P),className:"flex items-center gap-2 p-1.5 rounded-full hover:bg-gray-100/80 dark:hover:bg-gray-800/80 transition-colors",children:r.jsx("div",{className:"w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-700 flex items-center justify-center",children:r.jsx(L.Z,{className:"w-4.5 h-4.5 text-gray-500 dark:text-gray-400"})})}),P&&(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>_(!1)}),(0,r.jsxs)("div",{className:"absolute right-0 mt-2 w-52 bg-white dark:bg-[#1a1a1a] backdrop-blur-xl border border-gray-200/50 dark:border-gray-700/50 rounded-2xl shadow-2xl z-50 overflow-hidden p-1.5 animate-[slideUp_0.2s_ease-out]",children:[b&&r.jsx("div",{className:"px-3 py-2 mb-1",children:r.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-white truncate",children:b})}),(0,r.jsxs)(c.default,{href:"/llogaria/perdorues",onClick:()=>_(!1),className:"flex items-center gap-2.5 w-full px-3 py-2.5 text-sm rounded-xl text-gray-700 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:[r.jsx(L.Z,{className:"w-4 h-4"}),r.jsx("span",{suppressHydrationWarning:!0,children:e("account",{defaultValue:"Llogaria"})})]}),r.jsx("div",{className:"border-t border-gray-100 dark:border-gray-700/50 my-1"}),(0,r.jsxs)("button",{onClick:()=>{_(!1),$()},className:"flex items-center gap-2.5 w-full px-3 py-2.5 text-sm rounded-xl text-red-600 dark:text-red-400 hover:bg-red-50 dark:hover:bg-red-900/20 transition-colors",children:[r.jsx(q.Z,{className:"w-4 h-4"}),r.jsx("span",{suppressHydrationWarning:!0,children:e("logout",{defaultValue:"Dil"})})]})]})]})]}):(0,r.jsxs)("button",{onClick:()=>t(!0),className:"inline-flex items-center gap-1.5 px-4 py-2 bg-baboon-500 text-white text-sm font-semibold rounded-full hover:bg-baboon-600 transition-colors whitespace-nowrap shadow-sm",children:[r.jsx(O.Z,{className:"w-4 h-4"}),r.jsx("span",{className:"hidden sm:inline",suppressHydrationWarning:!0,children:e("sign_in",{defaultValue:"Hyr"})})]})]})]}),r.jsx("div",{className:"md:hidden flex items-center justify-center gap-2 px-4 pb-1.5 max-w-[1400px] mx-auto",children:(0,r.jsxs)("button",{onClick:()=>m(!0),className:"flex items-center gap-1 text-xs text-gray-600 dark:text-gray-400 min-w-0",children:[r.jsx(V.Z,{className:"w-3.5 h-3.5 text-baboon-500 flex-shrink-0"}),r.jsx("span",{className:"font-medium text-sm truncate",suppressHydrationWarning:!0,children:a.address.split(",")[0]}),r.jsx(B.Z,{className:"w-3.5 h-3.5 text-gray-400 flex-shrink-0"})]})}),r.jsx("div",{className:"border-t border-gray-200/40 dark:border-white/5",children:v&&v.length>0?r.jsx(D,{businessTypes:v}):j?r.jsx("div",{className:"flex items-center gap-2 md:gap-3 md:justify-center lg:gap-4 overflow-hidden px-4 py-2 max-w-[1400px] mx-auto",children:Array.from({length:5}).map((e,t)=>(0,r.jsxs)("div",{className:"flex items-center gap-1.5 flex-shrink-0 pl-0.5 pr-3 py-0.5 rounded-full bg-gray-200/30 dark:bg-white/5 animate-pulse",children:[r.jsx("div",{className:"w-7 h-7 rounded-full bg-gray-300/40 dark:bg-white/10"}),r.jsx("div",{className:"h-3.5 rounded-full bg-gray-300/40 dark:bg-white/10",style:{width:`${60+12*t}px`}})]},t))}):null})]})}},3869:(e,t,a)=>{"use strict";a.d(t,{default:()=>x});var r=a(10326),s=a(17577),n=a(6162),i=a(64563),o=a(94019),l=a(88307),d=a(77636),c=a(95312),u=a(39898),m=a(29798),g=a(47546),h=a(33734);function x(){let e=(0,n.T)(),{location:t,setLocation:a,isDetecting:x,showLocationPicker:p,setShowLocationPicker:b}=(0,i.T)(),{data:f}=(0,c.LP)(),y=!!f?.authenticated,v=f?.user?.id,{data:j=[]}=(0,u.hB)(v,{skip:!y||!v}),[k]=(0,u.sH)(),[w,N]=(0,s.useState)(""),[C,S]=(0,s.useState)([]),[P,_]=(0,s.useState)(!1),[T,D]=(0,s.useState)(!1),[A,I]=(0,s.useState)(!1),[L,q]=(0,s.useState)(""),[V,B]=(0,s.useState)(!1),[O,$]=(0,s.useState)(null),R=(0,s.useRef)(null),F=(0,s.useRef)(null),z=(0,s.useRef)(null);(0,s.useRef)(null),(0,s.useRef)(null);let E=(0,s.useCallback)(async e=>{if(e.length<3){S([]);return}_(!0);try{let t=await fetch(`https://nominatim.openstreetmap.org/search?format=json&q=${encodeURIComponent(e)}&countrycodes=al,xk&limit=5&accept-language=sq`),a=await t.json();S(a||[])}catch{S([])}finally{_(!1)}},[]),M=e=>{N(e),F.current&&clearTimeout(F.current),F.current=setTimeout(()=>E(e),400)},U=e=>{let t=e.display_name.split(",").slice(0,3).join(",").trim();$({lat:parseFloat(e.lat),lng:parseFloat(e.lon),address:t}),D(!0),N(""),S([])},H=()=>{D(!1),I(!1),$(null),q(""),B(!1),b(!1),N(""),S([])},Z=async()=>{if(O){let e=L?`${O.address} (${L})`:O.address;if(a(O.lat,O.lng,e),V&&y&&v)try{await k({userId:v,city:{id:1,description:"Tirane"},regId:"",latitude:String(O.lat),longitude:String(O.lng),addressStreet:O.address,addressDetails:L||" ",type:"home",phonePrefix:f?.user?.phonePrefix||"+355",phone:f?.user?.phone||"",primary:!1,active:!0}).unwrap()}catch{}}I(!1),D(!1),$(null),q(""),B(!1),b(!1)},K=e=>{let t=e.addressStreet||e.address||`${e.latitude}, ${e.longitude}`;a(e.latitude,e.longitude,t),b(!1)},W={0:{icon:m.Z,label:e("home_address",{defaultValue:"Shtepi"})},1:{icon:g.Z,label:e("work_address",{defaultValue:"Pune"})},2:{icon:d.Z,label:e("other_address",{defaultValue:"Tjeter"})}};return p?T&&O?(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:H}),r.jsx("div",{className:"fixed inset-x-0 top-0 z-50 flex justify-center pt-16 sm:pt-24 px-4",children:(0,r.jsxs)("div",{className:"bg-white dark:bg-[#242424] rounded-2xl shadow-2xl w-full max-w-md overflow-hidden",children:[(0,r.jsxs)("div",{className:"relative h-48 bg-gradient-to-b from-[#e8f4fd] to-[#d0eafc] dark:from-[#1a2a3a] dark:to-[#0d1f2d] flex items-center justify-center",children:[(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsxs)("svg",{width:"48",height:"60",viewBox:"0 0 48 60",fill:"none",className:"animate-bounce",children:[r.jsx("path",{d:"M24 0C10.745 0 0 10.745 0 24c0 18 24 36 24 36s24-18 24-36C48 10.745 37.255 0 24 0z",fill:"#FF0050"}),r.jsx("circle",{cx:"24",cy:"22",r:"10",fill:"white"}),r.jsx("circle",{cx:"24",cy:"22",r:"5",fill:"#FF0050"})]}),r.jsx("div",{className:"absolute -bottom-1 left-1/2 -translate-x-1/2 w-6 h-1.5 bg-black/20 rounded-full blur-sm"})]}),r.jsx("div",{className:"absolute inset-0 opacity-10",children:(0,r.jsxs)("svg",{width:"100%",height:"100%",xmlns:"http://www.w3.org/2000/svg",children:[r.jsx("defs",{children:r.jsx("pattern",{id:"grid",width:"30",height:"30",patternUnits:"userSpaceOnUse",children:r.jsx("path",{d:"M 30 0 L 0 0 0 30",fill:"none",stroke:"currentColor",strokeWidth:"0.5"})})}),r.jsx("rect",{width:"100%",height:"100%",fill:"url(#grid)"})]})})]}),(0,r.jsxs)("div",{className:"px-6 py-5 text-center",children:[r.jsx("h3",{className:"text-xl font-bold text-gray-900 dark:text-white mb-1",children:e("is_this_your_location",{defaultValue:"A je ketu?"})}),r.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 mb-5",children:O.address}),r.jsx("button",{onClick:()=>{O&&a(O.lat,O.lng,O.address),D(!1),$(null),b(!1)},className:"w-full py-3 rounded-xl font-semibold text-white transition-colors mb-3 bg-baboon-500 hover:bg-baboon-600",children:e("yes_correct",{defaultValue:"Po, kjo eshte e sakte"})}),r.jsx("button",{onClick:()=>{D(!1),I(!0)},className:"w-full py-3 rounded-xl font-semibold text-gray-700 dark:text-gray-300 bg-gray-100 dark:bg-gray-800 hover:bg-gray-200 dark:hover:bg-gray-700 transition-colors",children:e("no_change_address",{defaultValue:"Jo, ndrysho adresen"})})]})]})})]}):A&&O?(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:H}),r.jsx("div",{className:"fixed inset-x-0 top-0 z-50 flex justify-center pt-16 sm:pt-24 px-4",children:(0,r.jsxs)("div",{className:"bg-white dark:bg-[#242424] rounded-2xl shadow-2xl w-full max-w-lg overflow-hidden flex flex-col",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-5 py-4 border-b border-gray-100 dark:border-gray-800",children:[r.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:e("adjust_pin",{defaultValue:"Vendos pinen ne harte"})}),r.jsx("button",{onClick:H,className:"w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:r.jsx(o.Z,{className:"w-5 h-5 text-gray-500"})})]}),(0,r.jsxs)("div",{className:"relative h-[400px]",children:[r.jsx("div",{ref:z,style:{width:"100%",height:"100%"}}),r.jsx("div",{className:"absolute top-3 left-1/2 -translate-x-1/2 z-10 bg-black/70 text-white text-xs font-medium px-3 py-1.5 rounded-full backdrop-blur-sm",children:e("drag_pin_hint",{defaultValue:"Terheq pinen per te ndryshuar vendndodhjen"})})]}),(0,r.jsxs)("div",{className:"px-5 py-4 border-t border-gray-100 dark:border-gray-800 space-y-3",children:[r.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400 truncate",children:O.address}),r.jsx("input",{type:"text",value:L,onChange:e=>q(e.target.value),placeholder:e("address_details_placeholder",{defaultValue:"Detaje (nr. apartamenti, kati, etj.)"}),className:"w-full px-4 py-2.5 bg-gray-100 dark:bg-gray-800 border-0 rounded-xl text-sm text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 focus:ring-2 focus:ring-baboon-500 outline-none"}),y&&(0,r.jsxs)("label",{className:"flex items-center gap-2 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:V,onChange:e=>B(e.target.checked),className:"w-4 h-4 rounded border-gray-300 text-baboon-500 focus:ring-baboon-500 accent-baboon-500"}),r.jsx("span",{className:"text-sm text-gray-600 dark:text-gray-400",children:e("save_address_to_account",{defaultValue:"Ruaj adresen ne llogarine time"})})]}),r.jsx("button",{onClick:Z,className:"w-full py-3 rounded-xl font-bold text-white text-sm bg-baboon-500 hover:bg-baboon-600 transition-colors",children:e("confirm_location",{defaultValue:"Konfirmo vendndodhjen"})})]})]})})]}):(0,r.jsxs)(r.Fragment,{children:[r.jsx("div",{className:"fixed inset-0 bg-black/40 z-40",onClick:H}),r.jsx("div",{className:"fixed inset-x-0 top-0 z-50 flex justify-center pt-16 sm:pt-24 px-4",children:(0,r.jsxs)("div",{className:"bg-white dark:bg-[#242424] rounded-2xl shadow-2xl w-full max-w-md max-h-[70vh] flex flex-col overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 border-b border-gray-100 dark:border-gray-800",children:[r.jsx("h3",{className:"text-lg font-bold text-gray-900 dark:text-white",children:e("select_address",{defaultValue:"Zgjidh Adresen"})}),r.jsx("button",{onClick:H,className:"p-1 rounded-full hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors",children:r.jsx(o.Z,{className:"w-5 h-5 text-gray-500 dark:text-gray-400"})})]}),r.jsx("div",{className:"px-4 py-3",children:(0,r.jsxs)("div",{className:"relative",children:[r.jsx(l.Z,{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-gray-400"}),r.jsx("input",{ref:R,type:"text",value:w,onChange:e=>M(e.target.value),placeholder:e("search_address",{defaultValue:"Kerko adresen..."}),className:"w-full pl-10 pr-4 py-2.5 bg-gray-100 dark:bg-gray-800 border-0 rounded-xl text-sm text-gray-900 dark:text-white placeholder:text-gray-400 dark:placeholder:text-gray-500 focus:ring-2 focus:ring-baboon-500 outline-none"})]})}),r.jsx("div",{className:"px-4 pb-2",children:(0,r.jsxs)("button",{onClick:()=>{navigator.geolocation&&navigator.geolocation.getCurrentPosition(async e=>{let t=e.coords.latitude,a=e.coords.longitude,r=`${t.toFixed(4)}, ${a.toFixed(4)}`;try{let e=await fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${t}&lon=${a}&accept-language=sq`),s=await e.json();s.display_name&&(r=s.display_name.split(",").slice(0,3).join(",").trim())}catch{}$({lat:t,lng:a,address:r}),D(!0)},()=>{},{enableHighAccuracy:!0,timeout:1e4})},disabled:x,className:"flex items-center gap-2 w-full px-3 py-2.5 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors text-left",children:[r.jsx("div",{className:"w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0",style:{backgroundColor:"rgba(255,0,80,0.1)"},children:x?(0,r.jsxs)("svg",{className:"animate-spin w-4 h-4 text-baboon-500",fill:"none",viewBox:"0 0 24 24",children:[r.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),r.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):r.jsx(d.Z,{className:"w-4 h-4 text-baboon-500"})}),(0,r.jsxs)("div",{children:[r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white",children:x?e("detecting_location",{defaultValue:"Duke gjetur vendndodhjen..."}):e("use_current_location",{defaultValue:"Perdor vendndodhjen aktuale"})}),r.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:e("via_browser",{defaultValue:"Permes shfletuesit"})})]})]})}),y&&j.length>0&&0===C.length&&!P&&(0,r.jsxs)("div",{className:"px-4 pb-2 overflow-y-auto flex-1 min-h-0 scrollbar-thin",children:[r.jsx("p",{className:"text-xs font-medium text-gray-400 dark:text-gray-500 uppercase tracking-wider mb-2 px-1",children:e("saved_addresses")}),r.jsx("div",{className:"space-y-1",children:j.filter(e=>!1!==e.active).map(e=>{let t=W[e.type]||W[2],a=t.icon;return(0,r.jsxs)("button",{onClick:()=>K(e),className:"flex items-center gap-3 w-full px-3 py-2.5 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors text-left",children:[r.jsx("div",{className:`w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 ${e.primary?"bg-baboon-50 dark:bg-baboon-900/20":"bg-gray-100 dark:bg-gray-800"}`,children:r.jsx(a,{className:`w-4 h-4 ${e.primary?"text-baboon-500":"text-gray-400"}`})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-1.5",children:[r.jsx("span",{className:"text-xs font-semibold text-gray-400 dark:text-gray-500 uppercase",children:t.label}),e.primary&&r.jsx(h.Z,{className:"w-3 h-3 text-baboon-500 fill-baboon-500"})]}),r.jsx("p",{className:"text-sm font-medium text-gray-900 dark:text-white truncate",children:e.addressStreet||e.address}),e.addressDetails&&r.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500 truncate",children:e.addressDetails})]})]},e.id)})})]}),C.length>0&&(0,r.jsxs)("div",{className:"px-4 pb-2 overflow-y-auto flex-1 scrollbar-thin",children:[r.jsx("p",{className:"text-xs font-medium text-gray-400 dark:text-gray-500 uppercase tracking-wider mb-2 px-1",children:e("search_results",{defaultValue:"Rezultatet"})}),C.map((e,t)=>(0,r.jsxs)("button",{onClick:()=>U(e),className:"flex items-start gap-2.5 w-full px-3 py-2.5 rounded-xl hover:bg-gray-50 dark:hover:bg-gray-800 transition-colors text-left",children:[r.jsx(d.Z,{className:"w-4 h-4 text-gray-400 dark:text-gray-500 mt-0.5 flex-shrink-0"}),r.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-300 line-clamp-2",children:e.display_name})]},t))]}),P&&r.jsx("div",{className:"px-4 py-3 text-center",children:r.jsx("p",{className:"text-sm text-gray-400 dark:text-gray-500",children:e("searching",{defaultValue:"Duke kerkuar..."})})}),(0,r.jsxs)("div",{className:"border-t border-gray-100 dark:border-gray-800 px-4 py-3 pb-5 flex items-center gap-2",children:[r.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 flex-shrink-0"}),(0,r.jsxs)("div",{className:"min-w-0",children:[r.jsx("p",{className:"text-xs text-gray-400 dark:text-gray-500",children:e("current_location",{defaultValue:"Vendndodhja aktuale"})}),r.jsx("p",{className:"text-sm font-medium text-gray-700 dark:text-gray-300 truncate",children:t.address})]})]})]})})]}):null}a(80810),a(6793)},29610:(e,t,a)=>{"use strict";a.d(t,{AppProvider:()=>i,q:()=>o});var r=a(10326),s=a(17577);let n=(0,s.createContext)(void 0);function i({children:e}){let[t,a]=(0,s.useState)(!1),[i,o]=(0,s.useState)(!1),[l,d]=(0,s.useState)(!1),[c,u]=(0,s.useState)(null),[m,g]=(0,s.useState)(!1),[h,x]=(0,s.useState)("delivery"),[p,b]=(0,s.useState)(!1),f=(0,s.useCallback)(()=>{b(e=>{let t=!e;try{localStorage.setItem("baboon_sidebar_collapsed",String(t))}catch{}return t})},[]),y=(0,s.useCallback)((e,t="success")=>{u({message:e,type:t}),setTimeout(()=>u(null),4e3)},[]),v=(0,s.useCallback)(()=>{u(null)},[]);return(0,r.jsxs)(n.Provider,{value:{showLoginModal:t,setShowLoginModal:a,showRegisterModal:i,setShowRegisterModal:o,showCartDrawer:l,setShowCartDrawer:d,toast:c,showToast:y,hideToast:v,isMobileSidebarOpen:m,setMobileSidebarOpen:g,deliveryMode:h,setDeliveryMode:x,isSidebarCollapsed:p,setSidebarCollapsed:b,toggleSidebar:f},children:[e,c&&r.jsx("div",{className:`fixed bottom-4 right-4 z-50 px-6 py-3 rounded-lg shadow-lg text-white ${"success"===c.type?"bg-green-500":"bg-red-500"}`,children:c.message})]})}function o(){let e=(0,s.useContext)(n);if(!e)throw Error("useApp must be used within AppProvider");return e}},83255:(e,t,a)=>{"use strict";a.d(t,{CartProvider:()=>l,j:()=>d});var r=a(10326),s=a(17577);let n=(0,s.createContext)(void 0),i={cartId:null,restaurantId:null,restaurantName:"",items:[]};async function o(e,t,a){try{let r=await fetch("/api/cart",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({restaurantId:e,items:t.map(e=>({menuItem:{id:e.id},quantity:e.quantity,price:e.itemPrice,itemPrice:e.itemPrice,name:e.itemName,...e.variants?.[0]?{variantItem:{id:e.variants[0].id,itemName:e.variants[0].name,price:e.variants[0].price}}:{},...e.toppings?.length?{toppingItems:e.toppings.map(e=>({id:e.id,itemName:e.name,price:e.price,quantity:1}))}:{}})),minimumOrder:a.minimumOrder||0,transportCost:a.transportCost||0,deliveryTime:a.deliveryTime||50,discount:a.discount?{id:a.discount.id,couponCode:a.discount.couponCode||""}:void 0})}),s=await r.json();return{cartId:s.cartId||null,success:s.success}}catch(e){return console.error("[CartContext] createCart failed:",e),{cartId:null,success:!1}}}function l({children:e}){let[t,a]=(0,s.useState)(i),l=(0,s.useRef)(i),[d,c]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),[g,h]=(0,s.useState)(null),[x,p]=(0,s.useState)(null),b=(0,s.useRef)({}),f=(0,s.useCallback)(e=>{a(t=>{let a="function"==typeof e?e(t):e;return l.current=a,a})},[]),y=(0,s.useCallback)((e,t,a,r,s)=>{if(c(!0),!e||!e.items||0===e.items.length){let e=l.current;if(e.items.length>0&&e.restaurantId===t){f(e=>({...e,restaurantLat:r??e.restaurantLat,restaurantLng:s??e.restaurantLng}));return}f({...i,restaurantId:t||null,restaurantName:a||"",restaurantLat:r,restaurantLng:s});return}let n=e.id||e.cartId||null,o=e.business?.restaurantID||e.restaurantId||t||null,d=e.business?.restaurantName||e.restaurantName||a||"",u=(e.items||[]).map(e=>({id:e.menuItem?.id||e.id,itemName:e.name||e.itemName||"",itemPrice:e.price||e.itemPrice||0,quantity:e.quantity||1,image:e.image||"",variants:e.variantItem?[e.variantItem]:[],toppings:e.toppingItems||[],note:e.note||""}));f({cartId:n,restaurantId:o,restaurantName:d,restaurantLat:r||e.business?.latitude,restaurantLng:s||e.business?.longitude,items:u,minimumOrder:e.zone?.minimumOrder,transportCost:e.zone?.transportcost,deliveryTime:e.zone?.deliveryTime})},[f]),v=(0,s.useCallback)((e,t,a)=>{if(e.restaurantId&&e.restaurantId!==t)return[a];let r=e.items.findIndex(e=>e.id===a.id&&e.variants?.[0]?.id===a.variants?.[0]?.id&&(e.toppings??[]).map(e=>e.id).sort().join(",")===(a.toppings??[]).map(e=>e.id).sort().join(","));if(r>=0){let t=[...e.items];return t[r]={...t[r],quantity:t[r].quantity+a.quantity},t}return[...e.items,a]},[]),j=(0,s.useCallback)(async(e,t,a,r)=>{r&&(b.current=r),h(a.id),m(!0);try{let s=l.current,n=s.restaurantId&&s.restaurantId!==e,d=v(s,e,a),c={minimumOrder:n?r?.minimumOrder:s.minimumOrder||r?.minimumOrder,transportCost:n?r?.transportCost:s.transportCost||r?.transportCost,deliveryTime:n?r?.deliveryTime:s.deliveryTime||r?.deliveryTime,discount:n?void 0:s.discount},{cartId:u,success:m}=await o(e,d,c);if(!m)return{success:!1};return f(a=>n?{...i,cartId:u,restaurantId:e,restaurantName:t,items:d,minimumOrder:r?.minimumOrder,transportCost:r?.transportCost,deliveryTime:r?.deliveryTime}:{...a,cartId:u??a.cartId,restaurantId:e,restaurantName:t,items:d}),{success:!0}}catch{return{success:!1}}finally{h(null),m(!1)}},[v,f]),k=(0,s.useCallback)(async e=>{p(e),m(!0);try{let t=l.current,a=t.items.filter(t=>t.id!==e);if(0===a.length)return f({...i}),{success:!0};let{cartId:r,success:s}=await o(t.restaurantId,a,{minimumOrder:t.minimumOrder,transportCost:t.transportCost,deliveryTime:t.deliveryTime,discount:t.discount});if(!s)return{success:!1};return f(e=>({...e,cartId:r??e.cartId,items:a})),{success:!0}}catch{return{success:!1}}finally{p(null),m(!1)}},[f]),w=(0,s.useCallback)(async(e,t)=>{if(t<=0)return k(e);p(e),m(!0);try{let a=l.current,r=a.items.map(a=>a.id===e?{...a,quantity:t}:a),{cartId:s,success:n}=await o(a.restaurantId,r,{minimumOrder:a.minimumOrder,transportCost:a.transportCost,deliveryTime:a.deliveryTime,discount:a.discount});if(!n)return{success:!1};return f(e=>({...e,cartId:s??e.cartId,items:r})),{success:!0}}catch{return{success:!1}}finally{p(null),m(!1)}},[k,f]),N=(0,s.useCallback)(()=>{f({...i})},[f]),C=(0,s.useCallback)(e=>{f(t=>({...t,discount:e}))},[f]),S=(0,s.useCallback)(()=>{f(e=>{let t={...e};return delete t.discount,t})},[f]),P=(0,s.useCallback)(e=>{f(t=>({...t,courierTip:e}))},[f]),_=(0,s.useCallback)(e=>t.items.filter(t=>t.id===e).reduce((e,t)=>e+t.quantity,0),[t.items]),T=t.items.reduce((e,t)=>e+t.quantity,0),D=t.items.reduce((e,t)=>{let a=t.itemPrice;return t.variants&&t.variants.length>0&&(a=t.variants[0].price),t.toppings&&(a+=t.toppings.reduce((e,t)=>e+t.price,0)),e+a*t.quantity},0),A=!t.discount||D<t.discount.minimumOrder?0:t.discount.percentage?Math.round(D*t.discount.discount/100):t.discount.discount,I=D-A+(t.courierTip??0);return r.jsx(n.Provider,{value:{cart:t,cartId:t.cartId,addItem:j,removeItem:k,updateQuantity:w,clearCart:N,applyDiscount:C,removeDiscount:S,setCourierTip:P,getItemQuantity:_,hydrateFromServer:y,syncing:u,addingItemId:g,updatingItemId:x,totalItems:T,totalPrice:I,subtotal:D,discountAmount:A},children:e})}function d(){let e=(0,s.useContext)(n);if(!e)throw Error("useCart must be used within CartProvider");return e}},64563:(e,t,a)=>{"use strict";a.d(t,{LocationProvider:()=>l,T:()=>d});var r=a(10326),s=a(17577),n=a(46260);let i=(0,s.createContext)(void 0),o={latitude:n.pH.AL.latitude,longitude:n.pH.AL.longitude,address:"Tiran\xeb, Shqip\xebri",isAutoDetected:!1};function l({children:e}){let[t,a]=(0,s.useState)(o),[n,l]=(0,s.useState)(!1),[d,c]=(0,s.useState)(!1),[u,m]=(0,s.useState)(!1),g=(0,s.useCallback)((e,t,r)=>{a({latitude:e,longitude:t,address:r,isAutoDetected:!1}),c(!1)},[]),h=(0,s.useCallback)(async()=>{if(navigator.geolocation){l(!0);try{let{latitude:e,longitude:t}=(await new Promise((e,t)=>{navigator.geolocation.getCurrentPosition(e,t,{enableHighAccuracy:!0,timeout:1e4,maximumAge:3e5})})).coords;try{let r=await fetch(`https://nominatim.openstreetmap.org/reverse?format=json&lat=${e}&lon=${t}&accept-language=sq`),s=await r.json(),n=s.display_name?s.display_name.split(",").slice(0,3).join(",").trim():`${e.toFixed(4)}, ${t.toFixed(4)}`;a({latitude:e,longitude:t,address:n,isAutoDetected:!0})}catch{a({latitude:e,longitude:t,address:`${e.toFixed(4)}, ${t.toFixed(4)}`,isAutoDetected:!0})}c(!1)}catch{}finally{l(!1)}}},[]);return r.jsx(i.Provider,{value:{location:t,setLocation:g,detectLocation:h,isDetecting:n,showLocationPicker:d,setShowLocationPicker:c},children:e})}function d(){let e=(0,s.useContext)(i);if(!e)throw Error("useLocation must be used within LocationProvider");return e}},46260:(e,t,a)=>{"use strict";a.d(t,{pH:()=>r});let r={AL:{latitude:41.327546,longitude:19.818698,cityId:1,countryId:1},XK:{latitude:42.662914,longitude:21.165503,cityId:2,countryId:2}};process.env.BABOON_API_MOBILE_URL,process.env.BABOON_API_URL,process.env.BABOON_API_SYSADMIN_URL,process.env.BABOON_API_PAYMENT_URL},20902:(e,t,a)=>{"use strict";a.d(t,{AZ:()=>n});var r=a(42585);a(60937);let s={apiKey:process.env.NEXT_PUBLIC_FIREBASE_API_KEY||"AIzaSyCdFk-SKrv3Xyvx63VT3jqz2TJSGRp5zFY",authDomain:process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN||"baboon-1125.firebaseapp.com",databaseURL:process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL||"https://baboon-1125.firebaseio.com",projectId:process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID||"baboon-1125",storageBucket:process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET||"baboon-1125.appspot.com",messagingSenderId:process.env.NEXT_PUBLIC_FIREBASE_MESSAGING_SENDER_ID||"777937716876",appId:process.env.NEXT_PUBLIC_FIREBASE_APP_ID||"1:777937716876:web:0ebe6c4d231db36b27dda9",measurementId:process.env.NEXT_PUBLIC_FIREBASE_MEASUREMENT_ID||"G-QCCC2S0M5L"};function n(){return null}0===(0,r.C6)().length?(0,r.ZF)(s):(0,r.C6)()[0]},8958:(e,t,a)=>{"use strict";function r(e){return e&&e.trim()&&(e.startsWith("sync")&&(e=e.slice(4)),e.startsWith("http://")||e.startsWith("https://")||e.startsWith("/"))?e:"/images/placeholder.png"}a.d(t,{QL:()=>r}),a(46260)},4402:(e,t,a)=>{"use strict";a.d(t,{Ki:()=>i,jB:()=>n});var r=a(61355),s=a.n(r);function n(e,t="-"){let a=e.toLowerCase();return a=a.replace(/ç/g,"c").replace(/ë/g,"e"),s()(a,{lower:!0,strict:!0,replacement:t})}function i(e){let t=e.citySlug||"tirana",a=e.slug||"restaurant";return`/${t}/${a}/menu-porosit-online`}},95312:(e,t,a)=>{"use strict";a.d(t,{LP:()=>i,YA:()=>o,_y:()=>d,gX:()=>c,iJ:()=>n,l4:()=>l,sz:()=>u});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"authApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["Session"],endpoints:e=>({getSession:e.query({query:()=>"api/auth/session",providesTags:["Session"],keepUnusedDataFor:300}),login:e.mutation({query:e=>({url:"api/auth/login",method:"POST",body:e}),invalidatesTags:e=>e?.success?["Session"]:[]}),register:e.mutation({query:e=>({url:"api/auth/register",method:"POST",body:e})}),logout:e.mutation({query:()=>({url:"api/auth/logout",method:"POST"}),invalidatesTags:["Session"]}),activate:e.mutation({query:e=>({url:"api/auth/activate",method:"POST",body:e}),invalidatesTags:e=>e?.success?["Session"]:[]}),resendActivation:e.mutation({query:e=>({url:"api/auth/resend-activation",method:"POST",body:e})}),resetPassword:e.mutation({query:e=>({url:"api/auth/reset-password",method:"POST",body:e})}),googleVerify:e.mutation({query:e=>({url:"api/auth/google/verify",method:"POST",body:e}),invalidatesTags:e=>e?.success||e?.authenticated?["Session"]:[]})})}),{useGetSessionQuery:i,useLoginMutation:o,useRegisterMutation:l,useLogoutMutation:d,useActivateMutation:c,useResendActivationMutation:u,useResetPasswordMutation:m,useGoogleVerifyMutation:g}=n},41679:(e,t,a)=>{"use strict";a.d(t,{SY:()=>l,UP:()=>o,tJ:()=>i});var r=a(69119),s=a(51131),n=a(61786);let i=(0,r.LC)({reducerPath:"checkoutApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["CheckoutScreen"],endpoints:e=>({placeOrder:e.mutation({query:e=>({url:"api/checkout",method:"POST",body:e}),async onQueryStarted(e,{dispatch:t,queryFulfilled:a}){try{await a,t(n.Eh.util.invalidateTags(["OrderHistory"]))}catch{}}}),validateDiscount:e.mutation({query:e=>({url:"api/discount",method:"POST",body:e})})})}),{usePlaceOrderMutation:o,useValidateDiscountMutation:l}=i},39898:(e,t,a)=>{"use strict";a.d(t,{Z0:()=>m,ct:()=>d,dV:()=>g,hB:()=>i,nu:()=>n,sH:()=>o,tu:()=>u,zh:()=>l});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"customerApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["Addresses","Favourites"],endpoints:e=>({getAddresses:e.query({query:e=>`api/customers/${e}/addresses`,providesTags:["Addresses"],keepUnusedDataFor:0,transformResponse:e=>e?.success?e.data??[]:Array.isArray(e)?e:[]}),addAddress:e.mutation({query:e=>({url:`api/customers/${e.userId}/addresses`,method:"POST",body:e}),invalidatesTags:["Addresses"]}),updateAddress:e.mutation({query:({addressId:e,userId:t,...a})=>({url:`api/customers/${t}/addresses?addressId=${e}`,method:"PUT",body:a}),invalidatesTags:["Addresses"]}),deleteAddress:e.mutation({query:({addressId:e,userId:t})=>({url:`api/customers/${t}/addresses?addressId=${e}`,method:"DELETE"}),invalidatesTags:["Addresses"]}),activateAddress:e.mutation({query:({userId:e,...t})=>({url:`api/customers/${e}/addresses/activate`,method:"PUT",body:t}),invalidatesTags:["Addresses"]}),getCities:e.query({query:()=>"api/cities",keepUnusedDataFor:600,transformResponse:e=>e?.success?e.data??[]:Array.isArray(e)?e:[]}),getFavourites:e.query({query:()=>"api/favourites/list",providesTags:["Favourites"],keepUnusedDataFor:300,transformResponse:e=>e?.restaurants?e.restaurants:Array.isArray(e)?e:[]}),toggleFavourite:e.mutation({query:({restaurantId:e,isFavourite:t})=>({url:"api/favourites",method:t?"DELETE":"POST",body:{restaurantId:e}}),invalidatesTags:["Favourites"]})})}),{useGetAddressesQuery:i,useAddAddressMutation:o,useUpdateAddressMutation:l,useDeleteAddressMutation:d,useActivateAddressMutation:c,useGetCitiesQuery:u,useGetFavouritesQuery:m,useToggleFavouriteMutation:g}=n},87581:(e,t,a)=>{"use strict";a.d(t,{$L:()=>n,EA:()=>o,PE:()=>i,vN:()=>l});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"membershipApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["Membership"],endpoints:e=>({getMembershipScreen:e.query({query:()=>"api/membership",providesTags:["Membership"],keepUnusedDataFor:300,transformResponse:e=>e?.success?e.data:e}),activateMembership:e.mutation({query:e=>({url:"api/membership",method:"POST",body:e}),invalidatesTags:["Membership"]}),cancelMembership:e.mutation({query:e=>({url:"api/membership",method:"PUT",body:e}),invalidatesTags:["Membership"]})})}),{useGetMembershipScreenQuery:i,useActivateMembershipMutation:o,useCancelMembershipMutation:l}=n},62257:(e,t,a)=>{"use strict";a.d(t,{$h:()=>d,cv:()=>n,er:()=>i,oq:()=>l,s:()=>o});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"miscApi",baseQuery:(0,s.ni)({baseUrl:"/"}),endpoints:e=>({registerFcmToken:e.mutation({query:e=>({url:"api/fcm",method:"POST",body:e})}),sendPasswordSms:e.mutation({query:e=>({url:"api/password/send-sms",method:"POST",body:e})}),verifyPasswordCode:e.mutation({query:e=>({url:"api/password/verify-code",method:"POST",body:e})}),changePassword:e.mutation({query:e=>({url:"api/password/change",method:"POST",body:e})})})}),{useRegisterFcmTokenMutation:i,useSendPasswordSmsMutation:o,useVerifyPasswordCodeMutation:l,useChangePasswordMutation:d}=n},61786:(e,t,a)=>{"use strict";a.d(t,{Bb:()=>i,E$:()=>l,Eh:()=>n,vY:()=>o});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"orderApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["OrderHistory","OrderTracking"],endpoints:e=>({getOrderHistory:e.query({query:()=>"api/orders/history",providesTags:["OrderHistory"],keepUnusedDataFor:120,transformResponse:e=>{if(Array.isArray(e))return e;if(e?.orders)return e.orders;if(e?.data){if(Array.isArray(e.data))return e.data;if(e.data?.orders)return e.data.orders}return[]}}),getOrderStatus:e.query({query:e=>`api/orders/status?orderId=${e}`,providesTags:(e,t,a)=>[{type:"OrderTracking",id:a}],keepUnusedDataFor:0}),rateOrder:e.mutation({query:({orderId:e,...t})=>({url:`api/orders/status?action=rate&orderId=${e}`,method:"POST",body:t}),invalidatesTags:(e,t,{orderId:a})=>[{type:"OrderTracking",id:a}]})})}),{useGetOrderHistoryQuery:i,useGetOrderStatusQuery:o,useRateOrderMutation:l}=n},32584:(e,t,a)=>{"use strict";a.d(t,{IV:()=>g,U6:()=>d,Yw:()=>n,vm:()=>i,xk:()=>l,xv:()=>o,zg:()=>m});var r=a(69119),s=a(51131);let n=(0,r.LC)({reducerPath:"paymentApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["CreditCards"],endpoints:e=>({getCreditCards:e.query({query:()=>"api/credit-cards",transformResponse:e=>e.cards||[],providesTags:["CreditCards"]}),deleteCreditCard:e.mutation({query:e=>({url:"api/credit-cards",method:"DELETE",body:e}),invalidatesTags:["CreditCards"]}),attemptToPay:e.query({query:e=>`api/payments/attempt-to-pay?paymentId=${e}`}),reAttemptToPay:e.query({query:e=>`api/payments/re-attempt-to-pay?paymentId=${e}`}),getPaymentStatus:e.query({query:e=>`api/payments/status?orderId=${e}`}),closePayment:e.mutation({query:e=>({url:"api/payments/close",method:"PUT",body:e})}),updatePaymentType:e.mutation({query:e=>({url:"api/payments/update-type",method:"PUT",body:e})})})}),{useGetCreditCardsQuery:i,useDeleteCreditCardMutation:o,useLazyAttemptToPayQuery:l,useLazyReAttemptToPayQuery:d,useLazyGetPaymentStatusQuery:c,useGetPaymentStatusQuery:u,useClosePaymentMutation:m,useUpdatePaymentTypeMutation:g}=n},51807:(e,t,a)=>{"use strict";a.d(t,{$n:()=>l,A3:()=>o,FB:()=>d,Qr:()=>h,ai:()=>i,b1:()=>c,rR:()=>p,yr:()=>x});var r=a(69119),s=a(51131),n=a(17577);let i=(0,r.LC)({reducerPath:"restaurantApi",baseQuery:(0,s.ni)({baseUrl:"/"}),tagTypes:["Search","SearchScreen","BusinessTypes","MenuItem","HomepageBusinesses"],endpoints:e=>({search:e.query({query:e=>`api/search?keyword=${encodeURIComponent(e)}`,providesTags:["Search"],keepUnusedDataFor:60}),getBusinessTypes:e.query({query:()=>"api/business-types",providesTags:["BusinessTypes"],keepUnusedDataFor:86400,transformResponse:e=>Array.isArray(e)?e:[]}),getHomepageBusinesses:e.query({query:({offset:e,limit:t})=>`api/homepage/businesses?offset=${e}&limit=${t}`,providesTags:["HomepageBusinesses"],keepUnusedDataFor:1200}),getMarketingCategoryBusinesses:e.query({query:({categoryId:e,offset:t,limit:a})=>`api/homepage/marketing-category?categoryId=${e}&offset=${t}&limit=${a}`,keepUnusedDataFor:1200}),getNearMe:e.query({query:e=>{let t=[];return e&&(null!=e.deliveryType&&t.push(`deliveryType=${e.deliveryType}`),null!=e.latitude&&t.push(`latitude=${e.latitude}`),null!=e.longitude&&t.push(`longitude=${e.longitude}`),null!=e.cityId&&t.push(`cityId=${e.cityId}`),null!=e.businessTypeId&&t.push(`businessTypeId=${e.businessTypeId}`)),`api/nearme${t.length?`?${t.join("&")}`:""}`},keepUnusedDataFor:60}),getSearchScreen:e.query({query:()=>"api/search/screen",transformResponse:e=>e?.data??e??{},providesTags:["SearchScreen"],keepUnusedDataFor:1200}),saveSearchClick:e.mutation({query:e=>({url:"api/search/history",method:"POST",body:{businessId:e}}),invalidatesTags:["SearchScreen"]}),removeSearchHistory:e.mutation({query:e=>({url:"api/search/history",method:"DELETE",body:{businessId:e}}),invalidatesTags:["SearchScreen"]}),getMenuItem:e.query({query:({restaurantId:e,menuItemId:t})=>`api/restaurants/item?restaurantId=${e}&menuItemId=${t}`,providesTags:(e,t,a)=>[{type:"MenuItem",id:a.menuItemId}],keepUnusedDataFor:1200})})}),{useSearchQuery:o,useGetSearchScreenQuery:l,useSaveSearchClickMutation:d,useRemoveSearchHistoryMutation:c,useGetBusinessTypesQuery:u,useGetHomepageBusinessesQuery:m,useGetMarketingCategoryBusinessesQuery:g,useGetNearMeQuery:h,useGetMenuItemQuery:x}=i;function p(){let[e,t]=(0,n.useState)([]);(0,n.useRef)(!1);let{data:a=[],isLoading:r}=u(void 0,{skip:!1}),s=a.length>0?a:e;return{data:s,isLoading:r&&0===s.length}}},92248:(e,t,a)=>{"use strict";a.d(t,{ReduxProvider:()=>y});var r=a(10326),s=a(25842),n=a(8860),i=a(51131),o=a(95312),l=a(51807),d=a(39898),c=a(61786),u=a(41679),m=a(87581),g=a(62257);let h=(0,a(69119).LC)({reducerPath:"cartApi",baseQuery:(0,i.ni)({baseUrl:"/"}),endpoints:e=>({createCart:e.mutation({query:e=>({url:"api/cart",method:"POST",body:e})}),updateCartItem:e.mutation({query:({cartId:e,...t})=>({url:`api/cart/${e}`,method:"PUT",body:t})})})}),{useCreateCartMutation:x,useUpdateCartItemMutation:p}=h;var b=a(32584);let f=(0,n.xC)({reducer:{[o.iJ.reducerPath]:o.iJ.reducer,[l.ai.reducerPath]:l.ai.reducer,[d.nu.reducerPath]:d.nu.reducer,[c.Eh.reducerPath]:c.Eh.reducer,[u.tJ.reducerPath]:u.tJ.reducer,[m.$L.reducerPath]:m.$L.reducer,[g.cv.reducerPath]:g.cv.reducer,[h.reducerPath]:h.reducer,[b.Yw.reducerPath]:b.Yw.reducer},middleware:e=>e().concat(o.iJ.middleware,l.ai.middleware,d.nu.middleware,c.Eh.middleware,u.tJ.middleware,m.$L.middleware,g.cv.middleware,h.middleware,b.Yw.middleware)});function y({children:e}){return r.jsx(s.zt,{store:f,children:e})}(0,i.sj)(f.dispatch)},26083:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>r});let r=(0,a(68570).createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/app/error.tsx#default`)},30935:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>_,generateMetadata:()=>P});var r=a(19510),s=a(10882),n=a(2126),i=a(89907);a(67272);var o=a(68570);let l=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/layout/Header.tsx#default`);var d=a(57371),c=a(17710),u=a(39122);function m(){let e=(0,u.Z)();return r.jsx("footer",{className:"bg-[#f5f5f5] border-t border-gray-200 dark:bg-[#242424] dark:border-gray-800",children:(0,r.jsxs)("div",{className:"max-w-[1400px] mx-auto px-4 sm:px-6 lg:px-8 pt-10 pb-6",children:[r.jsx("div",{className:"mb-8",children:r.jsx(d.default,{href:"/",className:"inline-block",children:r.jsx(c.default,{src:"/images/logo.svg",alt:"Baboon",width:110,height:36,className:"object-contain"})})}),r.jsx("nav",{"aria-label":"Footer navigation",children:(0,r.jsxs)("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-8 mb-10",children:[(0,r.jsxs)("section",{children:[r.jsx("h3",{className:"text-sm font-bold text-gray-900 dark:text-white mb-4",children:e("about_us",{defaultValue:"Rreth Nesh"})}),(0,r.jsxs)("ul",{className:"space-y-3",children:[r.jsx("li",{children:r.jsx(d.default,{href:"/rreth-nesh",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("about_us",{defaultValue:"Rreth Nesh"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/kariera/apliko",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("careers",{defaultValue:"Kariera"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/blog",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("blog")})})]})]}),(0,r.jsxs)("section",{children:[r.jsx("h3",{className:"text-sm font-bold text-gray-900 dark:text-white mb-4",children:e("help",{defaultValue:"Ndihm\xeb"})}),(0,r.jsxs)("ul",{className:"space-y-3",children:[r.jsx("li",{children:r.jsx(d.default,{href:"/llogaria",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("account",{defaultValue:"Llogaria"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/llogaria/porosite",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("order_history",{defaultValue:"Historiku i Porosive"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/na-kontaktoni",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("delivery_help",{defaultValue:"Ndihm\xeb D\xebrgese"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/faq",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:"FAQ"})})]})]}),(0,r.jsxs)("section",{children:[r.jsx("h3",{className:"text-sm font-bold text-gray-900 dark:text-white mb-4",children:e("doing_business",{defaultValue:"Biznesi"})}),(0,r.jsxs)("ul",{className:"space-y-3",children:[r.jsx("li",{children:r.jsx(d.default,{href:"/per-biznese",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("list_your_business",{defaultValue:"Listo Biznesin"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/per-biznese",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("for_restaurants",{defaultValue:"P\xebr Restorantet"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/per-drivers",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("for_drivers",{defaultValue:"P\xebr Shofer\xebt"})})})]})]}),(0,r.jsxs)("section",{children:[r.jsx("h3",{className:"text-sm font-bold text-gray-900 dark:text-white mb-4",children:e("get_to_know_us",{defaultValue:"Na Njihni"})}),(0,r.jsxs)("ul",{className:"space-y-3",children:[r.jsx("li",{children:r.jsx(d.default,{href:"/si-funksionon",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("how_it_works",{defaultValue:"Si Funksionon"})})}),r.jsx("li",{children:r.jsx(d.default,{href:"/blog",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("blog")})}),r.jsx("li",{children:r.jsx(d.default,{href:"/pergjegjesite",className:"text-sm text-gray-600 hover:text-baboon-500 dark:text-gray-400 transition-colors",children:e("pergjegjesite",{defaultValue:"P\xebrgjegj\xebsit\xeb"})})})]})]})]})}),(0,r.jsxs)("div",{className:"border-t border-gray-300 dark:border-gray-700 pt-4",children:[(0,r.jsxs)("div",{className:"flex flex-col md:flex-row items-start md:items-center justify-between gap-4",children:[(0,r.jsxs)("nav",{"aria-label":"Social media",className:"flex items-center gap-4",children:[r.jsx("a",{href:"https://www.instagram.com/baboon.delivery/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-baboon-500 dark:text-gray-400 transition-colors","aria-label":"Instagram",children:r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zM12 0C8.741 0 8.333.014 7.053.072 2.695.272.273 2.69.073 7.052.014 8.333 0 8.741 0 12c0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98C8.333 23.986 8.741 24 12 24c3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98C15.668.014 15.259 0 12 0zm0 5.838a6.162 6.162 0 100 12.324 6.162 6.162 0 000-12.324zM12 16a4 4 0 110-8 4 4 0 010 8zm6.406-11.845a1.44 1.44 0 100 2.881 1.44 1.44 0 000-2.881z"})})}),r.jsx("a",{href:"https://www.facebook.com/baboondelivery/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-baboon-500 dark:text-gray-400 transition-colors","aria-label":"Facebook",children:r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.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"})})}),r.jsx("a",{href:"https://www.linkedin.com/company/baboonfood/",target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-baboon-500 dark:text-gray-400 transition-colors","aria-label":"LinkedIn",children:r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 01-2.063-2.065 2.064 2.064 0 112.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"})})}),r.jsx("a",{href:"https://www.tiktok.com/@baboondelivery",target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-baboon-500 dark:text-gray-400 transition-colors","aria-label":"TikTok",children:r.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 24 24",children:r.jsx("path",{d:"M12.525.02c1.31-.02 2.61-.01 3.91-.02.08 1.53.63 3.09 1.75 4.17 1.12 1.11 2.7 1.62 4.24 1.79v4.03c-1.44-.05-2.89-.35-4.2-.97-.57-.26-1.1-.59-1.62-.93-.01 2.92.01 5.84-.02 8.75-.08 1.4-.54 2.79-1.35 3.94-1.31 1.92-3.58 3.17-5.91 3.21-1.43.08-2.86-.31-4.08-1.03-2.02-1.19-3.44-3.37-3.65-5.71-.02-.5-.03-1-.01-1.49.18-1.9 1.12-3.72 2.58-4.96 1.66-1.44 3.98-2.13 6.15-1.72.02 1.48-.04 2.96-.04 4.44-.99-.32-2.15-.23-3.02.37-.63.41-1.11 1.04-1.36 1.75-.21.51-.15 1.07-.14 1.61.24 1.64 1.82 3.02 3.5 2.87 1.12-.01 2.19-.66 2.77-1.61.19-.33.4-.67.41-1.06.1-1.79.06-3.57.07-5.36.01-4.03-.01-8.05.02-12.07z"})})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsxs)("a",{href:"https://apps.apple.com/us/app/baboon-delivery-food-and-more/id1069121718",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-gray-900 text-white dark:bg-gray-700 px-4 py-2.5 rounded-lg text-xs font-medium hover:bg-gray-800 dark:hover:bg-gray-600 transition-colors","aria-label":"Download on the App Store",children:[r.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.8-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z"})}),"App Store"]}),(0,r.jsxs)("a",{href:"https://play.google.com/store/apps/details?id=al.baboon",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 bg-gray-900 text-white dark:bg-gray-700 px-4 py-2.5 rounded-lg text-xs font-medium hover:bg-gray-800 dark:hover:bg-gray-600 transition-colors","aria-label":"Get it on Google Play",children:[r.jsx("svg",{className:"w-5 h-5",viewBox:"0 0 24 24",fill:"currentColor",children:r.jsx("path",{d:"M3,20.5V3.5C3,2.91 3.34,2.39 3.84,2.15L13.69,12L3.84,21.85C3.34,21.61 3,21.09 3,20.5M16.81,15.12L6.05,21.34L14.54,12.85L16.81,15.12M20.16,10.81C20.5,11.08 20.75,11.5 20.75,12C20.75,12.5 20.53,12.9 20.18,13.18L17.89,14.5L15.39,12L17.89,9.5L20.16,10.81M6.05,2.66L16.81,8.88L14.54,11.15L6.05,2.66Z"})}),"Google Play"]})]})]}),(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-2 mt-4 pt-4 border-t border-gray-200 dark:border-gray-700",children:[(0,r.jsxs)("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:["\xa9 ",new Date().getFullYear()," Baboon. All rights reserved."]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 text-xs text-gray-500 dark:text-gray-400",children:[r.jsx(d.default,{href:"/termat-kushtet",className:"hover:text-baboon-500 transition-colors",children:e("terms_of_service",{defaultValue:"Kushtet e Sh\xebrbimit"})}),r.jsx("span",{children:"\xb7"}),r.jsx(d.default,{href:"/deklarata-e-privatesise",className:"hover:text-baboon-500 transition-colors",children:e("privacy_policy",{defaultValue:"Politika e Privat\xebsis\xeb"})})]})]})]})]})})}function g({children:e}){return r.jsx("div",{className:"flex-1 flex flex-col min-w-0 overflow-x-hidden pt-[128px] md:pt-[108px]",children:e})}let h=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/AppContext.tsx#AppProvider`);(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/AppContext.tsx#useApp`);let x=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/CartContext.tsx#CartProvider`);(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/CartContext.tsx#useCart`);let p=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/LocationContext.tsx#LocationProvider`);(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/contexts/LocationContext.tsx#useLocation`);let b=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/layout/LocationPicker.tsx#default`),f=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/auth/LoginModal.tsx#default`),y=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/cart/CartDrawer.tsx#default`),v=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/FcmInitializer.tsx#default`);var j=a(58205);let k=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/store/provider.tsx#ReduxProvider`),w=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/Analytics.tsx#default`),N=(0,o.createProxy)(String.raw`/Users/ferlando/Desktop/baboon-nextjs/components/CookieConsent.tsx#default`),C={al:"Baboon Delivery | Restorante, Markete edhe shume te tjera n\xeb 25 minuta",en:"Baboon Delivery | Food, Groceries and more in 25 minutes",it:"Baboon Delivery | Ristoranti, Supermercati e tanto altro in 25 minuti"},S={al:"Porosit ushqimin online nga restorantet me te mira. Dergesa e shpejte ne Tirane, Durres, Elbasan dhe me shume.",en:"Order food online from the best restaurants. Fast delivery in Tirana, Durres, Elbasan and more.",it:"Ordina cibo online dai migliori ristoranti. Consegna veloce a Tirana, Durres, Elbasan e altro."};async function P(){let e=await (0,n.Z)(),t=C[e]||C.al,a=S[e]||S.al;return{title:{default:t,template:"%s | Baboon"},description:a,keywords:["food delivery","porosit ushqim online","restorante","delivery","baboon","porosit online","dergese ushqimi","fast food","pizza delivery","order food online"],metadataBase:new URL("https://baboon.al"),authors:[{name:"Baboon.al",url:"https://baboon.al"}],manifest:"/manifest.json",verification:{google:"hVmg3JlugXDHT-d8Biakljy2c4wWhFsWAb1VnvjreNw"},icons:{icon:"/images/favicon.svg"},openGraph:{type:"website",locale:"al"===e?"sq_AL":"it"===e?"it_IT":"en_US",url:"https://baboon.al",siteName:"Baboon",title:t,description:a,images:[{url:"https://baboon.al/images/baboon-search-logo.jpg",alt:"Baboon Delivery"}]},twitter:{card:"summary_large_image",title:t,description:a,images:["https://baboon.al/images/baboon-search-logo.jpg"]},alternates:{canonical:"https://baboon.al",languages:{"x-default":"https://baboon.al",sq:"https://baboon.al",en:"https://baboon.al",it:"https://baboon.al"}}}}async function _({children:e}){let t=await (0,n.Z)(),a=await (0,i.Z)(),o=(0,j.xj)(t),d=(0,j.Um)();return(0,r.jsxs)("html",{lang:"al"===t?"sq":t,suppressHydrationWarning:!0,children:[(0,r.jsxs)("head",{children:[r.jsx("link",{rel:"preconnect",href:"https://www.googletagmanager.com"}),r.jsx("link",{rel:"preconnect",href:"https://connect.facebook.net"}),r.jsx("link",{rel:"preconnect",href:"https://storage.googleapis.com"}),r.jsx("link",{rel:"dns-prefetch",href:"https://www.google-analytics.com"}),r.jsx("link",{rel:"dns-prefetch",href:"https://www.facebook.com"}),r.jsx("meta",{property:"fb:app_id",content:"177323115943509"}),r.jsx("meta",{name:"theme-color",content:"#FF0043"}),r.jsx("script",{dangerouslySetInnerHTML:{__html:"(function(){try{var t=localStorage.getItem('theme');if(t==='dark'||(t==null&&window.matchMedia('(prefers-color-scheme:dark)').matches)){document.documentElement.classList.add('dark')}else{document.documentElement.classList.remove('dark')}}catch(e){}})()"}}),r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(o)}}),r.jsx("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:JSON.stringify(d)}})]}),(0,r.jsxs)("body",{className:"antialiased bg-gray-50 text-gray-900 dark:bg-[#000000] dark:text-gray-100",children:[r.jsx(s.Z,{messages:a,children:r.jsx(k,{children:r.jsx(h,{children:r.jsx(x,{children:(0,r.jsxs)(p,{children:[r.jsx("div",{className:"flex min-h-screen",children:(0,r.jsxs)(g,{children:[r.jsx(l,{}),r.jsx("main",{className:"flex-1",children:e}),r.jsx(m,{})]})}),r.jsx(b,{}),r.jsx(f,{}),r.jsx(y,{}),r.jsx(v,{})]})})})})}),r.jsx(w,{}),r.jsx(N,{})]})]})}},96560:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>n});var r=a(19510),s=a(57371);function n(){return(0,r.jsxs)("div",{className:"container mx-auto px-4 py-24 text-center",children:[r.jsx("h1",{className:"text-6xl font-bold text-gray-300 mb-4",children:"404"}),r.jsx("h2",{className:"text-2xl font-semibold mb-4",children:"Faqja nuk u gjet"}),r.jsx("p",{className:"text-gray-600 mb-8",children:"Faqja qe po kerkoni nuk ekziston ose eshte zhvendosur."}),r.jsx(s.default,{href:"/",className:"inline-block bg-orange-500 hover:bg-orange-600 text-white font-semibold px-6 py-3 rounded-lg transition-colors",children:"Kthehu ne Kryefaqe"})]})}},69526:(e,t,a)=>{"use strict";a.d(t,{Z:()=>n});var r=a(10442),s=a(71615);let n=(0,r.Z)(async()=>{let e=await (0,s.cookies)(),t=e.get("langCode")?.value||"al",r=["al","en","it"].includes(t)?t:"al";return{locale:r,messages:(await a(87713)(`./${r}.json`)).default}})},58205:(e,t,a)=>{"use strict";function r(e,t,a,r){let n=`https://baboon.al/restorantet/${e.slug}/menu`,i=e.categories?.map(e=>e.categoryName).filter(Boolean)||["Food"],o={"@context":"https://schema.org","@type":"Restaurant",name:e.restaurantName,image:[e.image],url:n,address:{"@type":"PostalAddress",streetAddress:e.address,addressLocality:e.address,postalCode:"1001",addressCountry:"AL"},servesCuisine:1===i.length?i[0]:i,geo:{"@type":"GeoCoordinates",latitude:e.latitude,longitude:e.longitude},areaServed:{"@type":"GeoCircle",geoMidpoint:{"@type":"GeoCoordinates",latitude:e.latitude,longitude:e.longitude},geoRadius:"3000"},priceRange:"$$",acceptsReservations:"False",menu:n,potentialAction:{"@type":"OrderAction",target:{"@type":"EntryPoint",urlTemplate:n,inLanguage:"en"===r?"en":"it"===r?"it":"sq",actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform","https://schema.org/IOSPlatform","https://schema.org/AndroidPlatform"]},deliveryMethod:"https://schema.org/OnSitePickup"}};e.phone&&(o.telephone=e.phone.split(",")[0].trim());let l=e.serviceAvailability;if(l){let e=[];for(let[t,a]of Object.entries({monday:"Monday",tuesday:"Tuesday",wednesday:"Wednesday",thursday:"Thursday",friday:"Friday",saturday:"Saturday",sunday:"Sunday"})){let r=l[t];if(r&&"Mbyllur"!==r){let[t,s]=r.split("-");t&&s&&e.push({"@type":"OpeningHoursSpecification",dayOfWeek:a,opens:t,closes:"00:00"===s&&"00:00"!==t?"23:59":s})}}e.length>0&&(o.openingHoursSpecification=e)}if(e.rating&&e.rating>0){let t=Math.round(10*e.rating)/10;o.aggregateRating={"@type":"AggregateRating",ratingValue:t,reviewCount:e.reviewCount||1,bestRating:10,worstRating:1}}if(t&&t.length>0){let e=function(e){let t=[],a=[];for(let r of e)if(r.menuItems&&0!==r.menuItems.length)for(let e of r.menuItems)e.itemName&&(function(e){if(!e.oldPrice||!e.itemPrice)return!1;let t=Number(e.oldPrice);return Math.abs(t-Number(e.itemPrice))>.01&&t>0}(e)?t.push(e):a.push(e));return a.sort((e,t)=>(t.lastSoldQuantity||0)-(e.lastSoldQuantity||0)),function(e,t){let a=e.length;return 0===a?{offers:[],popular:t.slice(0,10)}:a<=3?{offers:e.slice(0,3),popular:t.slice(0,7)}:{offers:e.slice(0,5),popular:t.slice(0,5)}}(t,a)}(t);o.hasMenu=function(e){let t=[];return e.offers.length>0&&t.push({"@type":"MenuSection",name:"Featured Offers",description:"Special deals available now",hasMenuItem:s(e.offers)}),e.popular.length>0&&t.push({"@type":"MenuSection",name:"Most Popular Dishes",description:"Customer favorites",hasMenuItem:s(e.popular)}),{"@type":"Menu",hasMenuSection:t}}(e)}return e.discount&&(o.makesOffer=[{"@type":"Offer",name:e.discount.discountDescription||"Discount",description:e.discount.discountDescription||"",priceSpecification:{"@type":"DeliveryChargeSpecification",appliesToDeliveryMethod:"https://schema.org/OnSitePickup",price:"0.00",priceCurrency:"ALL"}}]),a&&a.length>0&&(o.review=a.slice(0,20).map(e=>({"@type":"Review",author:{"@type":"Person",name:e.customer?.name||"User"},datePublished:e.registrationtime||void 0,reviewRating:{"@type":"Rating",ratingValue:e.count||5,bestRating:10},reviewBody:e.comment||""}))),o}function s(e){return e.filter(e=>e.itemName).map(e=>({"@type":"MenuItem",name:e.itemName,description:e.itemDescription||e.itemName,image:e.image||"",offers:{"@type":"Offer",price:(e.itemPrice||0).toFixed(2),priceCurrency:"ALL",availability:"https://schema.org/InStock"}}))}function n(e){return{"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((e,t)=>({"@type":"ListItem",position:t+1,item:{"@id":e.url,name:e.name}}))}}function i(e,t="al"){return{"@context":"https://schema.org","@type":"FAQPage",mainEntity:(function(e,t="al"){let a={al:[{question:`Si mund te porosis online nga ${e}?`,answer:`Mund te porosisni online nga ${e} nepermjet Baboon. Vizitoni faqen e ${e}, zgjidhni produktet tuaja te preferuara, shtojini ne shporte dhe perfundoni porosine. Dergesa behet brenda 25-45 minutash.`},{question:`A ka dergese falas ${e}?`,answer:`Kostoja e dergeses nga ${e} varet nga distanca dhe porosia juaj. Kontrolloni faqen e ${e} ne Baboon per te pare koston aktuale te dergeses dhe ofertat e mundshme per dergese falas.`},{question:`Cilat jane oret e hapjes se ${e}?`,answer:`Oret e hapjes se ${e} shfaqen ne faqen e biznesit ne Baboon. Kontrolloni faqen per oraret me te fundit dhe disponueshmerine per porosi online.`},{question:`A mund te paguaj me karte krediti ne ${e}?`,answer:`Po, Baboon ofron pagesa me karte krediti dhe me para ne dore per porosite nga ${e}. Zgjidhni metoden tuaj te preferuar te pageses gjate procesit te porosise.`},{question:`Sa kohe zgjat dergesa nga ${e}?`,answer:`Koha mesatare e dergeses nga ${e} eshte zakonisht 25-45 minuta. Koha aktuale mund te ndryshoje ne varesi te distaces dhe ngarkeses.`}],en:[{question:`How can I order online from ${e}?`,answer:`You can order online from ${e} through Baboon. Visit the ${e} page, select your favorite items, add them to cart and complete your order. Delivery is made within 25-45 minutes.`},{question:`Does ${e} offer free delivery?`,answer:`Delivery cost from ${e} depends on distance and your order. Check the ${e} page on Baboon for current delivery costs and potential free delivery offers.`},{question:`What are ${e}'s opening hours?`,answer:`${e}'s opening hours are displayed on the business page on Baboon. Check the page for the latest hours and availability for online ordering.`},{question:`Can I pay by credit card at ${e}?`,answer:`Yes, Baboon offers credit card and cash payments for orders from ${e}. Choose your preferred payment method during checkout.`},{question:`How long does delivery from ${e} take?`,answer:`Average delivery time from ${e} is typically 25-45 minutes. Actual time may vary depending on distance and demand.`}],it:[{question:`Come posso ordinare online da ${e}?`,answer:`Puoi ordinare online da ${e} tramite Baboon. Visita la pagina di ${e}, seleziona i tuoi prodotti preferiti, aggiungili al carrello e completa l'ordine. La consegna avviene entro 25-45 minuti.`},{question:`${e} offre la consegna gratuita?`,answer:`Il costo di consegna da ${e} dipende dalla distanza e dal tuo ordine. Controlla la pagina di ${e} su Baboon per i costi di consegna attuali e le possibili offerte di consegna gratuita.`},{question:`Quali sono gli orari di apertura di ${e}?`,answer:`Gli orari di apertura di ${e} sono visualizzati sulla pagina del business su Baboon. Controlla la pagina per gli orari pi\xf9 recenti e la disponibilit\xe0 per gli ordini online.`},{question:`Posso pagare con carta di credito da ${e}?`,answer:`S\xec, Baboon offre pagamenti con carta di credito e contanti per gli ordini da ${e}. Scegli il metodo di pagamento preferito durante il checkout.`},{question:`Quanto tempo impiega la consegna da ${e}?`,answer:`Il tempo medio di consegna da ${e} \xe8 tipicamente di 25-45 minuti. Il tempo effettivo pu\xf2 variare in base alla distanza e alla domanda.`}]};return a[t]||a.al})(e,t).map(e=>({"@type":"Question",name:e.question,acceptedAnswer:{"@type":"Answer",text:e.answer}}))}}function o(e="al"){let t={al:"Baboon t\xeb ofron Sh\xebrbim Delivery Online, Kudo, n\xeb kushte t\xeb larta sigurie nga 400 Restorante dhe 50 Kuzhina Nd\xebrkomb\xebtare. Porosit online nga restorantet me te mire ne Tirane, Durres, Vlore dhe me shume.",en:"Baboon offers Online Delivery Service, Everywhere, with high safety standards from 400 Restaurants and 50 International Cuisines. Order online from the best restaurants in Tirana, Durres, Vlora and more.",it:"Baboon offre Servizio di Consegna Online, Ovunque, con elevati standard di sicurezza da 400 Ristoranti e 50 Cucine Internazionali. Ordina online dai migliori ristoranti a Tirana, Durres, Vlora e altro."};return{"@context":"https://schema.org","@type":"MobileApplication",name:"Baboon Delivery",alternateName:["Babon","Babun","Babuni"],description:t[e]||t.al,keywords:"food delivery, porosit ushqim online, porosit ne markete, sherbim delivery, uber eats Albania, bolt food albania",inLanguage:"al"===e?"sq":e,applicationCategory:"ShoppingApplication",applicationSubCategory:"Food Delivery",operatingSystem:["iOS","Android"],offers:{"@type":"Offer",price:"0",priceCurrency:"ALL",description:"Free to download, with cheap delivery prices, typically 20% lower than the competition."},aggregateRating:{"@type":"AggregateRating",ratingValue:"4.6",reviewCount:"12300"},review:[{"@type":"Review",author:{"@type":"Person",name:"becauseiwanto"},datePublished:"2025-02-05",reviewBody:"Terrific app. Easy, user friendly and straightforward. Was able to place an order on the first go!",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"}},{"@type":"Review",author:{"@type":"Person",name:"Hergi K."},datePublished:"2025-07-21",reviewBody:"Really good app for delivery and it also makes it easy to track the order",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"}},{"@type":"Review",author:{"@type":"Person",name:"Miranda K."},datePublished:"2025-09-30",reviewBody:"Best Food Delivery App in Albania. Very helpful if you are new in Tirana, Durres or Vlora.",reviewRating:{"@type":"Rating",ratingValue:"5",bestRating:"5"}}],featureList:["Order Online from Restaurants, Groceries and more.","Payment options: cash and credit card","Discounts and offers in different Restaurants and Groceries","User-friendly interface for easy navigation","Order Live Tracking"],screenshot:["https://storage.googleapis.com/baboon-images/marketing/screenshots/bonus-oferta-baboon-food-delivery.webp","https://storage.googleapis.com/baboon-images/marketing/screenshots/live-tracking-baboon-food-delivery.webp","https://storage.googleapis.com/baboon-images/marketing/screenshots/order-business-categories-baboon-food-delivery.webp","https://storage.googleapis.com/baboon-images/marketing/screenshots/pay-by-card-baboon-food-delivery.webp"],url:"https://baboon.al",downloadUrl:["https://apps.apple.com/us/app/baboon-delivery-food-and-more/id1069121718","https://play.google.com/store/apps/details?id=al.baboon"],sameAs:["https://apps.apple.com/us/app/baboon-delivery-food-and-more/id1069121718","https://play.google.com/store/apps/details?id=al.baboon","https://www.instagram.com/baboon.delivery/","https://www.facebook.com/baboondelivery/","https://www.linkedin.com/company/baboonfood/","https://www.youtube.com/@baboondelivery","https://www.tiktok.com/@baboondelivery","https://www.crunchbase.com/organization/baboon"],contentRating:"Everyone"}}a.d(t,{Iz:()=>c,Pq:()=>r,Um:()=>u,bg:()=>n,d2:()=>i,xj:()=>o,yC:()=>d});let l={restaurants:{type:"FoodEstablishment",description:{al:"Porosit online nga restorantet me te mira ne Shqiperi. Dergese e shpejte nga 800+ restorante ne Tirane, Durres, Vlore dhe me shume.",en:"Order online from the best restaurants in Albania. Fast delivery from 800+ restaurants in Tirana, Durres, Vlora and more.",it:"Ordina online dai migliori ristoranti in Albania. Consegna veloce da 800+ ristoranti a Tirana, Durres, Vlora e altro."}},grocery:{type:"GroceryStore",description:{al:"Porosit online nga marketet dhe supermarketet me te mira. Dergese e shpejte e ushqimeve, pijeve dhe produkteve te perditshme.",en:"Order online from the best grocery stores and supermarkets. Fast delivery of food, drinks and daily essentials.",it:"Ordina online dai migliori supermercati. Consegna veloce di cibo, bevande e prodotti quotidiani."}},"alcohol-tobacco":{type:"Store",description:{al:"Porosit online pije alkoolike, vere, birre dhe me shume me dergese te shpejte ne deren tuaj.",en:"Order alcohol, wine, beer and more online with fast delivery to your door.",it:"Ordina alcolici, vino, birra e altro online con consegna veloce a domicilio."}},markets:{type:"Store",description:{al:"Shfleto marketet online ne Baboon dhe porosi me dergese te shpejte.",en:"Browse markets online on Baboon and order with fast delivery.",it:"Sfoglia i mercati online su Baboon e ordina con consegna veloce."}},"flowers-gifts":{type:"FloristShop",description:{al:"Porosit lule dhe dhurata online me dergese te shpejte. Surprizo te dashurit tuaj me Baboon.",en:"Order flowers and gifts online with fast delivery. Surprise your loved ones with Baboon.",it:"Ordina fiori e regali online con consegna veloce. Sorprendi i tuoi cari con Baboon."}}};function d(e,t="al",a=[]){let r=l[e]||l.restaurants,s=r.description[t]||r.description.al,n={"@context":"https://schema.org","@type":r.type,"@id":`https://baboon.al/${e}#business`,name:`Baboon - ${e.charAt(0).toUpperCase()+e.slice(1).replace(/-/g," ")}`,description:s,image:"https://baboon.al/images/baboon-search-logo.jpg",url:`https://baboon.al/${e}`,telephone:"+35545620050",priceRange:"ALL",address:{"@type":"PostalAddress",addressLocality:"Tiran\xeb",addressRegion:"Tiran\xeb",addressCountry:"AL"},areaServed:[{"@type":"AdministrativeArea",name:"Tiran\xeb"},{"@type":"AdministrativeArea",name:"Durr\xebs"},{"@type":"AdministrativeArea",name:"Vlor\xeb"},{"@type":"AdministrativeArea",name:"Elbasan"}]};"restaurants"===e&&(n.servesCuisine=["Traditional Albanian","Italian","Japanese","Chinese","Fast Food","Pizza","Mediterranean","Sushi","Burger"]);let i=[n];return a.length>0&&i.push({"@context":"https://schema.org","@type":"ItemList",name:s,url:`https://baboon.al/${e}`,numberOfItems:a.length,itemListElement:a.slice(0,20).map((t,a)=>({"@type":"ListItem",position:a+1,item:{"@type":"restaurants"===e?"Restaurant":"LocalBusiness",name:t.restaurantName,image:t.image||t.logo,url:`https://baboon.al/${t.citySlug||"tirana"}/${t.slug}/menu-porosit-online`,address:{"@type":"PostalAddress",streetAddress:t.address,addressCountry:"AL"},...t.rating>0?{aggregateRating:{"@type":"AggregateRating",ratingValue:Math.round(10*t.rating)/10,reviewCount:t.reviewCount||1,bestRating:10,worstRating:1}}:{}}}))}),i}function c(e="al"){let t={al:"Baboon t\xeb ofron Sh\xebrbim Delivery Online, Kudo, n\xeb kushte t\xeb larta sigurie nga 400 Restorante dhe 50 Kuzhina Nd\xebrkomb\xebtare. Porosit online nga restorantet me te mire ne Tirane, Durres, Vlore dhe me shume.",en:"Baboon offers Online Delivery Service, Everywhere, with high safety standards from 400 Restaurants and 50 International Cuisines. Order online from the best restaurants in Tirana, Durres, Vlora and more.",it:"Baboon offre Servizio di Consegna Online, Ovunque, con elevati standard di sicurezza da 400 Ristoranti e 50 Cucine Internazionali. Ordina online dai migliori ristoranti a Tirana, Durres, Vlora e altro."};return{"@context":"https://schema.org","@type":"FoodEstablishment","@id":"https://baboon.al/#foodservice",name:"Baboon",alternateName:["Babun","Babon"],description:t[e]||t.al,image:"https://baboon.al/images/baboon-search-logo.jpg",url:"https://baboon.al/",telephone:"+35545620050",priceRange:"ALL",servesCuisine:["Traditional Albanian","Italian","Japanese","Chinese","Fast Food","Dessert","Pizza","Mediterranean","Sushi","Burger"],address:{"@type":"PostalAddress",streetAddress:"Rruga Sami Frasheri",addressLocality:"Tiran\xeb",addressRegion:"Tiran\xeb",postalCode:"1001",addressCountry:"AL"},openingHoursSpecification:[{"@type":"OpeningHoursSpecification",dayOfWeek:["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],opens:"08:00",closes:"23:00"}],areaServed:[{"@type":"AdministrativeArea",name:"Tiran\xeb"},{"@type":"AdministrativeArea",name:"Durr\xebs"},{"@type":"AdministrativeArea",name:"Elbasan"},{"@type":"AdministrativeArea",name:"Vlor\xeb"},{"@type":"AdministrativeArea",name:"Kor\xe7\xeb"}],makesOffer:{"@type":"Offer",name:"Food Delivery",description:"Fast food delivery from 800+ restaurants",availabilityStarts:"08:00",availabilityEnds:"23:00",priceSpecification:{"@type":"DeliveryChargeSpecification",appliesToDeliveryMethod:"https://schema.org/OnSitePickup",priceCurrency:"ALL"}},potentialAction:{"@type":"OrderAction",target:{"@type":"EntryPoint",urlTemplate:"https://baboon.al",inLanguage:"en"===e?"en":"it"===e?"it":"sq",actionPlatform:["https://schema.org/DesktopWebPlatform","https://schema.org/MobileWebPlatform","https://schema.org/IOSPlatform","https://schema.org/AndroidPlatform"]},deliveryMethod:"https://schema.org/OnSitePickup"},sameAs:["https://www.facebook.com/baboondelivery/","https://www.instagram.com/baboon.delivery/","https://www.linkedin.com/company/baboonfood/","https://www.youtube.com/@baboondelivery","https://www.tiktok.com/@baboondelivery"]}}function u(){return{"@context":"https://schema.org","@type":"Organization",name:"Baboon Delivery",alternateName:"Baboon",url:"https://baboon.al",logo:"https://baboon.al/baboon-logo.svg",sameAs:["https://www.instagram.com/baboon.delivery/","https://www.facebook.com/baboondelivery/","https://www.linkedin.com/company/baboonfood/","https://www.youtube.com/@baboondelivery","https://www.tiktok.com/@baboondelivery"],contactPoint:{"@type":"ContactPoint",contactType:"customer service",availableLanguage:["Albanian","English","Italian"]},areaServed:{"@type":"Country",name:"Albania"}}}},24697:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>s});var r=a(66621);let s=e=>[{type:"image/svg+xml",sizes:"any",url:(0,r.fillMetadataSegment)(".",e.params,"icon.svg")+"?66f58e5af1dd4294"}]},67272:()=>{}};