@restaround/react 1.4.64 → 1.4.66

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{Row as r,classNames as n,Column as a,Text as o,SVGIcon as l,useModalContext as d,IconLink as s,Tooltip as c,Flex as u,UIElementType as m,Modal as _,Button as h,Input as p,InputType as v,OTPInput as g,AlertBox as E,AddressAutocomplete as I,IconButton as y,Container as f,Carousel as b,CarouselItem as T,Chip as A,Loading as P,Avatar as O,TextBanner as D,Description as S,MethodSelection as N,Padding as R,Accordion as C,Link as L,Drawer as k,ModalProvider as M,DropDown as w,DropDownMenuItem as W,Card as U,BarChart as B}from"@sorocraft/ui";import{createContext as z,useContext as V,useState as x,useCallback as F,useMemo as j,useRef as G,useEffect as H,memo as Y}from"react";import{Storage as K,sortNumbers as q,isEmpty as Q,trackEvent as $,checkIsValidEmail as Z,priceFormatter as X,isNumber as J,classNames as ee,isNil as te}from"@sorocraft/js-utils";import{ChevronLeft as ie,Phone as re,Whatsapp as ne,Instagram as ae,Telegram as oe,Tiktok as le,Facebook as de,Wifi as se,Clock as ce,MarkerPin as ue,ChevronUp as me,Plus as _e,List as he,Grid as pe,PlaySquare as ve,Eye as ge,ShoppingBag as Ee,VolumeMax as Ie,VolumeX as ye,Close as fe,Minus as be,Trash as Te,PlayCircle as Ae,Edit as Pe,Delivery as Oe,Check as De,ShieldDollar as Se}from"@sorocraft/ui/icons";var Ne="PublicMenu-module_container__QLN6U",Re="PublicMenu-module_footer__6G3DQ";const Ce="ADD_UPDATE_NOTES",Le="AUTH",ke="ADD_UPDATE_ADDRESS",Me="BRANCH_BUSINESS_HOURS",we="PRODUCT_DETAILS",We=["en","az","nl","et","tr","ru"],Ue=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Be="restaround.co",ze=Be,Ve=[Be,"restaround.az","restaround.ee","restaround.nl"],xe="https://images.restaround.co",Fe=new K("restaround_cst_act","restaround_cst_rft"),je={994:e=>{const t=["50","51","10","55","99","70","77","60"];return new RegExp(`^(${t.join("|")})\\d{7}$`).test(e)?{isValid:!0}:{isValid:!1,error:`Azerbaijani numbers must be 9 digits and start with ${t.join(", ")}`}},31:e=>/^\d{9}$/.test(e)?{isValid:!0}:{isValid:!1,error:"Dutch numbers must be exactly 9 digits"}};function Ge(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const t=e.replace(/\D/g,""),i=t.startsWith("994")?"994":t.startsWith("31")?"31":null;if(!i)return{isValid:!1,error:"Unsupported country code"};const r=t.slice(i.length);return(0,je[i])(r)}const He=(e,t)=>{const i=t||"en";if("localhost:3000"===e)return{url:`http://localhost:3000/${i}`,domain:Be};const r=Ve.includes(e)?e:Be;return{url:`https://${r}/${i}`,domain:r}},Ye=(e,t)=>{const i=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${i}/auth/register?lang=${e}&utm_source=${t}`},Ke=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"",qe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"https://images.restaround.co/no-photo-128.webp",Qe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"https://images.restaround.co/restaround-doodle.webp",$e=z({}),Ze=({children:t,value:i})=>e($e.Provider,{value:i,children:t}),Xe=()=>V($e),Je=()=>{const{hostname:e}=Xe();return e||ze},et=()=>{const{isInDashboard:e}=Xe();return e||!1};function tt(e,t,i,r){return new(i||(i=Promise))(function(n,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function l(e){try{d(r.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,l)}d((r=r.apply(e,t||[])).next())})}var it,rt,nt,at,ot;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(it||(it={})),function(e){e.DRAFT="DRAFT",e.PENDING="PENDING",e.CONFIRMED="CONFIRMED",e.PREPARING="PREPARING",e.READY="READY",e.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",e.DELIVERED="DELIVERED",e.COMPLETED="COMPLETED",e.CANCELLED="CANCELLED",e.FAILED="FAILED"}(rt||(rt={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(nt||(nt={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}(at||(at={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(ot||(ot={}));const lt={orderType:null,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:at.CASH},dt=[ot.CART,ot.DETAILS,ot.COMPLETED];var st;!function(e){e.FIELD_REQUIRED_ERROR="This field is required",e.TABLE_NOT_SELECTED="Please select a table",e.ADDRESS_IS_EMPTY="Please enter an address",e.EMPTY_ITEMS="Please choose product",e.BRANCH_NOT_SELECTED="Please select a branch"}(st||(st={}));const ct=(e,t,i)=>{if(!e)throw new Error("Product ID is required");let r=`${e}`;t&&(r+=`-${t}`);const n=Object.entries(i||{}).map(([e,t])=>{if(!e||!t)return null;const i=Array.isArray(t)?q(t).filter(Boolean).join("-"):`${t}`;return i?`${e}-${i}`:null}).filter(Boolean).join("-");return n&&(r+=`-${n}`),r},ut=e=>{var t;const{price:i,variant:r,addons:n,quantity:a,vat:o}=e||{},l=null!==(t=null==r?void 0:r.price)&&void 0!==t?t:i,d=function(e=[],t=1){return t*e.reduce((e,t)=>{const i=(e=>e.options.reduce((e,t)=>e+t.price,0))(t);return e+i},0)}(n,1),s=l+d,c=l*(o/100),u=s+c;return{totalGross:u*a,totalNet:s*a,totalTax:c*a,itemGrossPrice:u,itemNetPrice:s,itemTax:c}},mt=e=>{switch(e){case"customer":return st.ADDRESS_IS_EMPTY;case"tableId":return st.TABLE_NOT_SELECTED;case"items":return st.EMPTY_ITEMS;case"branchId":return st.BRANCH_NOT_SELECTED;default:return st.FIELD_REQUIRED_ERROR}},_t="https://api.restaround.co/api/v1",ht=(e,t,i)=>tt(void 0,void 0,void 0,function*(){const{accessToken:r}=Fe.getAuthToken(),n=`${_t}/${t}`,a=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:r},credentials:"include",body:JSON.stringify(i)}),o=yield a.json();if(!a.ok)throw o;return o}),pt=(e,t)=>ht("POST",e,t),vt=(e,t)=>ht("PATCH",e,t),gt=e=>ht("GET",e),Et=e=>tt(void 0,void 0,void 0,function*(){return vt("customer",e)}),It=(...e)=>tt(void 0,[...e],void 0,function*(e=null,t={}){try{return $("error",{message:null==e?void 0:e.message}),yield fetch(`${_t}/log`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Object.assign({message:(null==e?void 0:e.message)||JSON.stringify(e)},t))})}catch(e){console.error(e)}}),yt=(e,t)=>{var i;return null===(i=((null==e?void 0:e.days)||[]).find(({day:e})=>e===t))||void 0===i?void 0:i.hours},ft=e=>(e||"").split(":").map(Number),bt=e=>{if(!e)return!1;const t=new Date,[i,r]=ft(e.openAt),[n,a]=ft(e.closeAt),o=new Date(t);o.setHours(i,r,0,0);const l=new Date(t);return l.setHours(n,a,0,0),l<=o&&(t<l?o.setDate(o.getDate()-1):l.setDate(l.getDate()+1)),t>=o&&t<=l},Tt=()=>{const{branches:e}=Xe();return(e||[]).length<=1},At=()=>{const{branches:e,branchId:t}=Xe(),i=Tt();return Q(e)?{}:i?e[0]:e.find(e=>e.id===Number(t))||{}},Pt=()=>{const e=At();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},Ot=()=>{const e=At(),{openingHours:t,deliveryHours:i}=e||{};if(!(null==t?void 0:t.days)||!(null==i?void 0:i.days))return{isOpen:!1,isDelivering:!1};const r=((new Date).getUTCDay()+6)%7,n=yt(t,r),a=yt(i,r);return{isOpen:bt(n),isDelivering:bt(a)}},Dt=()=>{const e=At();return(null==e?void 0:e.settings)||{}},St=()=>{const e=Dt();if(Q(e))return!1;const{deliveryOrderEnabled:t,dineInOrderEnabled:i,pickupOrderEnabled:r}=e;return t||i||r},Nt=()=>{const{branchId:e}=Xe();return e},Rt=()=>{const{onBranchSelect:e}=Xe();return e},Ct=({defaultOrderType:e,defaultPaymentMethod:t,defaultBranchId:i})=>{const r=(()=>{const{tableId:e}=Xe();return e})(),{isOpen:n,isDelivering:a}=Ot(),o=Dt(),l=e||((e,t,i)=>{if(!e)return null;const{deliveryOrderEnabled:r,dineInOrderEnabled:n,pickupOrderEnabled:a}=e;return r&&i?it.DELIVERY:n&&t?it.DINE_IN:a&&t?it.PICK_UP:null})(o,n,a);return{branchId:i,orderType:l,tableId:r?Number(r):void 0,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:t||at.CASH}},Lt=z({order:lt,orderStep:ot.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",errors:{},updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),kt=({children:t,defaultOrderType:i,defaultPaymentMethod:r,defaultBranchId:n,isOrderDefaultOpen:a=!1})=>{const o=Ct({defaultOrderType:i,defaultPaymentMethod:r,defaultBranchId:n}),[l,d]=x({}),[s,c]=x(o),[u,m]=x(ot.CART),[_,h]=x({}),[p,v]=x(a),[g,E]=x(""),[I,y]=x({}),f=F(e=>{c(t=>Object.assign(Object.assign({},t),e)),["branchId","tableId"].forEach(t=>{e[t]&&(null==I?void 0:I[t])&&y(e=>Object.assign(Object.assign({},e),{[t]:null}))})},[I]),b=F(({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:a})=>{if(Q(e)||t<0)return;const{id:o,vat:l=0,variants:d,addons:s,price:c}=e,u=ct(o,i,r);h(e=>{const m=e[u],_=a?((null==m?void 0:m.quantity)||0)+t:t;if(_<=0){const t=e,i=u;t[i];return function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(t,["symbol"==typeof i?i:i+""])}const h=d.find(({id:e})=>e===i),p=((e=[],t={})=>Object.entries(t).map(([t,i])=>{const r=Number(t),n=Array.isArray(i)?i:[i],a=e.find(e=>e.id===r);if(Q(a))return{addonId:r,options:[]};const o=(a.options||[]).filter(e=>n.includes(e.id)).map(e=>({optionId:e.id,price:e.price}));return{addonId:r,options:o}}))(s,r);return Object.assign(Object.assign({},e),{[u]:Object.assign(Object.assign({productId:o,quantity:_,price:c,note:n,vat:l},!Q(h)&&{variant:{variantId:h.id,price:h.price}}),{addons:p})})}),a&&(null==I?void 0:I.items)&&y(e=>Object.assign(Object.assign({},e),{items:null}))},[null==I?void 0:I.items]),T=F(({product:e,quantity:t=1,variantId:i,selectedAddons:r,note:n})=>b({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:!0}),[b]),A=F(({product:e,quantity:t=1,variantId:i,selectedAddons:r,note:n})=>b({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:!1}),[b]),P=F(e=>{if(!e||Q(_))return;const t=Object.entries(_).reduce((t,[i,r])=>(r.productId!==e&&(t[i]=r),t),{});h(t)},[_]),O=F(()=>tt(void 0,void 0,void 0,function*(){try{const{accessToken:e}=Fe.getAuthToken();if(!e)return;const t=yield tt(void 0,void 0,void 0,function*(){return gt("customer")});if(!(null==t?void 0:t.id))throw new Error("SOMETHING_WENT_WRONG");d(t)}catch(e){It(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),D=F((e=!1,t=!0)=>{t&&v(!1),(u===ot.COMPLETED||e)&&(c(o),h({}),m(ot.CART),E(""))},[o,u]),S=F(e=>{y(t=>Object.assign(Object.assign({},t),{[e]:mt(e)}))},[]),N=F(()=>{y({})},[]),R=j(()=>({order:s,orderStep:u,orderItems:_,isOrderOpen:p,customer:l,trackingId:g,errors:I,updateOrder:f,setOrderStep:m,addProduct:T,updateProduct:A,removeAllProductVariants:P,setIsOrderOpen:v,getCustomer:O,resetOrder:D,setTrackingId:E,updateOrderErrors:S,resetErrors:N}),[s,u,_,p,l,g,I,f,T,A,P,O,D,E,S,N]);return e(Lt.Provider,{value:R,children:t})},Mt=()=>V(Lt);var wt,Wt;!function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount",e.DELIVERY_FEE_AMOUNT="deliveryFeeAmount"}(wt||(wt={})),function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(Wt||(Wt={}));const Ut=()=>{const{business:e}=Xe();return e||{}},Bt=()=>{const{currency:e}=Ut();return e||"AZN"},zt=()=>{const{language:e}=Xe();return e||"en"},Vt=()=>{const e=Je(),t=zt();return j(()=>He(e,t),[e,t])},xt=()=>{const{url:e}=Vt(),t=(()=>{const{username:e}=Ut();return e||""})();return j(()=>`${e}/${t}`,[e,t])},Ft=()=>{const{videoId:e}=Xe();return e},jt=()=>{const{videos:e}=Xe();return j(()=>e||[],[e])},Gt=()=>{const e=jt(),t=Ft();return j(()=>t&&e.find(e=>e.productId===Number(t))||{},[e,t])};const Ht=e=>{const t=xt(),i=Nt();let r=t;return i&&(r+=`/${i}`),e&&(r+=`/videos/${e}`),r},Yt=()=>{const e=(()=>{const e=jt();return j(()=>e[0],[e])})(),t=Ht(null==e?void 0:e.productId);return Q(e)?"":t};var Kt="BusinessHeader-module_container__X22c3",qt="BusinessHeader-module_cover__l-1W8",Qt="BusinessHeader-module_content__sjiqO",$t="BusinessHeader-module_logo__DWaaU",Zt="BusinessHeader-module_info__6RQFI",Xt="BusinessHeader-module_name__Ynpex",Jt={container:"Languages-module_container__nJeK1",currentLanguage:"Languages-module_currentLanguage__EFw6Q",options:"Languages-module_options__6jLRm",option:"Languages-module_option__QkVQd",isOpen:"Languages-module_isOpen__eUGbg",flexWide:"Languages-module_flexWide__zQ9jN",slidein:"Languages-module_slidein__C4UHU",fadeInOut:"Languages-module_fadeInOut__U-vhH",heightAnimation:"Languages-module_heightAnimation__gIQkF",fadein:"Languages-module_fadein__vPmsX",floatAnimation:"Languages-module_floatAnimation__L-kPH",bottomSheet:"Languages-module_bottomSheet__-t-q8",slideRightToLeft:"Languages-module_slideRightToLeft__y0l-f",rotation:"Languages-module_rotation__gp8P5",pulse:"Languages-module_pulse__h9hxJ"};const ei=()=>{const[i,a]=x(!1),o=Ut().languages||[],l=zt(),d=(()=>{const{onLanguageSelect:e}=Xe();return e})(),s=o.length>1,c=o.filter(({code:e})=>e!==l)||[],u=e=>`https://images.restaround.co/languages/${e}.svg`;return s?e("div",{className:Jt.container,onClick:()=>a(!i),children:t(r,{alignItems:"center",gap:0,children:[e(r,{alignItems:"center",className:n(Jt,{options:!0,isOpen:i}),children:c.map(({code:t})=>e("img",{src:u(t),className:Jt.option,onClick:()=>null==d?void 0:d(t),alt:t},t))}),e("img",{src:u(l),alt:l,className:Jt.currentLanguage})]})}):null},ti=()=>{const{coverPhoto:i,avatar256:r,name:n}=Ut();return t("div",{className:Kt,children:[e("img",{src:Qe(i),alt:n,className:qt,width:1024,height:400}),e("div",{className:Qt,children:t(a,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:Kt,children:[e("img",{src:qe(r),alt:n,className:$t,width:96,height:96}),e("div",{className:Zt,children:e(o,{variant:"h1",color:"white",className:Xt,align:"center",children:n})})]})}),e(ei,{})]})};var ii="BranchHeader-module_container__Ol56f",ri="BranchHeader-module_cover__DGWZX",ni="BranchHeader-module_content__O8E27",ai="BranchHeader-module_logo__DL7Si",oi="BranchHeader-module_info__Ym-ln",li="BranchHeader-module_name__91VkO",di="BranchHeader-module_address__Y140r",si="BranchHeader-module_addressText__ofVQQ",ci="BackIcon-module_container__uknWc";const ui=({onClick:t,size:i,theme:r})=>{const n=xt(),a=et(),o=Rt();return e("div",{className:ci,onClick:t||(()=>{if(a)return null==o?void 0:o("");"undefined"!=typeof window&&(window.location.href=n)}),children:e(l,{icon:ie,size:i,theme:r})})};var mi="HeaderLinks-module_container__wfIXS",_i="HeaderLinks-module_links__S5qXC",hi="HeaderLinks-module_wifiPassword__j4cgP",pi="HeaderLinks-module_businessHours__qVA-Q",vi="HeaderLinks-module_icon__cQpBK";const gi=()=>{const{setModal:i}=d(),{phone:n,wifiPassword:a,whatsApp:o,telegram:u,openingHours:m,deliveryHours:_}=At(),{instagram:h,tiktok:p,facebook:v}=Ut(),g=!Q(null==m?void 0:m.days)||!Q(null==_?void 0:_.days);return e("div",{className:mi,children:e("div",{className:_i,children:e(r,{gap:2,alignItems:"center",children:t(r,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!n&&e(s,{icon:re,href:`tel:+${n}`,size:"sm",shape:"circle",theme:"light"}),!!o&&e(s,{icon:ne,href:`https://wa.me/${o}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:ae,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!u&&e(s,{icon:oe,href:u,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!p&&e(s,{icon:le,href:p,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!v&&e(s,{icon:de,href:v,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!a&&e(c,{hint:a,children:e("div",{className:hi,children:e(l,{icon:se,size:"sm",className:vi})})}),g&&e("div",{className:pi,onClick:()=>{i({id:Me,params:{openingHours:m,deliveryHours:_}})},children:e(l,{icon:ce,size:"sm",className:vi})})]})})})})},Ei=()=>{const{coverPhoto:i,avatar256:n}=Ut(),d=(()=>{const{business:e}=Xe(),t=At(),i=Tt(),r=(null==e?void 0:e.name)||"Restaround";return i?r:(null==t?void 0:t.name)?`${r} ${t.name}`:r})(),s=At().address||"",c=Tt(),{latitude:_,longitude:h}=Pt(),p=`https://www.google.com/maps/place/${_},${h}`;return t("div",{className:ii,children:[e("img",{src:Qe(i),alt:d,className:ri,width:1024,height:400}),e("div",{className:ni,children:t(a,{justifyContent:c?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!c&&e(ui,{size:"lg",theme:"dark-theme"}),t(u,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(u.Item,{children:e("img",{src:qe(n),alt:d,className:ai,width:96,height:96})}),e(u.Item,{shrink:!0,className:oi,children:t(a,{gap:.5,children:[e(o,{className:li,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:d}),e("a",{className:di,href:p,target:"_blank",rel:"noopener noreferrer",children:t(r,{alignItems:"center",gap:.5,children:[e(l,{icon:ue,color:m.DEFAULT}),e("span",{className:si,children:s})]})})]})})]})]})}),e(ei,{}),e(gi,{})]})},Ii=()=>{const t=At();return Tt()||!Q(t)?e(Ei,{}):e(ti,{})};var yi={},fi={az:{error:{SOMETHING_WRONG:"Xəta baş verdi! Zəhmət olmazsa, yenidən cəhd edin.",FIELD_REQUIRED:"Bu xananı doldurmaq mütləqdir","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azərbaycan nömrələri 9 rəqəmli olur və 50, 51, 10, 55, 99, 70, 77 və ya 60 ilə başlamalıdır","Unsupported country code":"Ölkə kodu düzgün deyil","Invalid OTP":"Təsdiq kodu düzgün deyil",INVALID_OTP:"Təsdiq kodu düzgün deyil",OTP_RATE_LIMIT_EXCEEDED:"Təsdiq kodu göndərmək üçün limiti keçmisiniz. Biraz sonra, yenidən yoxlayın","Invalid Email Address":"Email ünvanı düzgün deyil",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu funksiya mövcud tarif planınıza daxil deyil.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sifariş növü aktiv deyil",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sifariş növü indi aktiv deyil",COUNTRY_REQUIRED:"Ölkə daxil edilməlidir.",CITY_REQUIRED:"Şəhər daxil edilməlidir.",STREET_REQUIRED:"Küçə adı daxil edilməlidir.",STREET_NUMBER_REQUIRED:"Ev nömrəsi daxil edilməlidir.",OUT_OF_DELIVERY_RANGE:"Bu filial sizin ünvana çatdırılma etmir.",NO_ORDER_TYPE:"Zəhmət olmazsa, sifariş növünü seçin."},common:{Save:"Yadda saxla",Cancel:"Ləğv et",Continue:"Davam et"},order:{"View order":"Şifarişi göstər","Remove from order":"Sifarişdən sil","Update order":"Sifarişi yenilə","Add to order":"Sifarişə əlavə et",Add:"Əlavə et","Your order":"Sifarişiniz",Subtotal:"Ümumi","Empty order":"Boş sifariş","You don't have any items in your order":"Sifarişinizdə heç bir məhsul yoxdur","Add items":"Məhsul əlavə et","Add an order note":"Restoran üçün qeyd","Specify any allergies, special requests, or ingredients you want to add or remove":"Hər hansısa allergiyanız, xüsusi istəkləriniz və ya əlavə etmək, çıxarmaq istədiyiniz inqrediyentlər varsa, qeyd edin.","Your Order is Completed!":"Sifarişiniz tamamlandı!","Thank you! We've received your order and it will be delivered shortly.":"Təşəkkür edirik! Sifarişinizi qəbul etdik, qısa zamanda çatdırılacaq.",Delivery:"Çatdırılma","Dine in":"Masaya",Pickup:"Al-apar",Cash:"Nağd","POS Terminal":"POS Terminal","Order summary":"Sifarişdəki məhsullar",Items:"Məhsullar",Tax:"Vergi",Total:"Cəm","Special instructions, allergies, etc.":"Xüsusi istəklər, allergiya və s.","Go to checkout":"Ödənişə keç","Place order":"Sifariş et",Continue:"Davam et","Not available":"Mövcud deyil","In order":"Sifarişdə","Product choices":"Seçimlər","Track order":"Sifarişi izlə","Minimum order amount for delivery is {{amount}}":"Çatdırılma üçün sifarişiniz minimum {{amount}} olmalıdır","This field is required":"Bu xana mütləq doldurulmalıdır","Please select a table":"Zəhmət olmazsa, masanı seçin","Please enter an address":"Zəhmət olmazsa, ünvanı daxil edin","Please choose product":"Zəhmət olmazsa, məhsul seçin",Table:"Masa","Select Table":"Masanı seçin",Card:"Kart ilə","Closed Now":"Hazırda bağlıdır","Delivery Fee":"Çatdırılma","Play video":"Videonu izlə"},customer:{"Unknown address":"Ünvan əlavə edilməyib","No address available":"Ünvan əlavə edilməyib","Update Delivery Address":"Çatdırılma ünvanını dəyişin",Country:"Ölkə",City:"Şəhər","Baker Street":"Nizami küçəsi",Address:"Ünvan","House number":"Ev nömrəsi","Additional number":"Mənzil","Example: Door code is 555":"Nümunə: Qapı kodu 555","Delivery Instructions":"Kuryer üçün təlimatlar",Azerbaijan:"Azərbaycan",Floor:"Mərtəbə","Enter address":"Ünvanı daxil edin"},auth:{"Create an account or log in":"Hesab yarat və ya daxil ol","Phone number":"Mobil nömrə","I don't have an email":"Email ünvanım yoxdur","We sent a confirmation code to {{address}}":"{{address}} üçün təsdiq kodunu göndərdik"},events:{Events:"Hərəkətlər","Scrolled to Category":"Kateqoriyaya sürüşdürdü","Category Selected":"Kateqoriya seçildi","Product Details":"Məhsul detalına baxıldı","Product Added to Order":"Sifarişə əlavə edildi"},pricing:{"Get Started":"İndi başla","Choose Plan":"Planı seçin","Smart QR Menu":"Ağıllı QR Menyu","Link-in-bio":"Bio üçün link","Menu Analytics":"Menyu analitikası","Unlimited Products":"Limitsiz məhsul","Unlimited Categories":"Limitsiz kateqoriya","Product variants":"Məhsul variantları","Product options":"Məhsul əlavələri","Sales reports":"Satış hesabatı","24/7 Support":"24/7 dəstək","Multiple Branches":"Şöbələr","Order Management":"Sifarişlərin idarə edilməsi","Table Management":"Masaların idarə edilməsi","Mobile App for Owners & Staff":"Rəhbərlik və ofisiantlar üçün Mobil tətbiq","Point of Sale (POS)":"POS-kassa","Delivery Management":"Çatdırılmaların idarə edilməsi","Third-Party Delivery Integrations":"Çatdırılma partnyorlarının inteqrasiyası","RestaroundPay with Mobile":"RestaroundPay ilə ödəniş","Event management":"Tədbirlərin idarəsi","Unlimited Users":"Limitsiz istifadəçi","/ month":"/ Ay",monthly:"Aylıq plan",annually:"İllik plan","Flexible Plans for Every Business - Simple Pricing, More Value!":"Hər biznesə uyğun tariflər - Sadə qiymətlər, daha çox dəyər!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Biznesinizə uyğun tarif planını seçin. Aylıq və ya illik abunə olun, uzunmüddətli planlarla daha çox qazanın!",Appetizer:"Lite","Main Course":"Plus","Unlimited Languages":"Limitsiz dil seçimi","30-day money-back guarantee":"30 gün ərzində narazı qalsanız, ödəniş geri qaytarılır.","Limited Time Only":"Məhdud müddətə","/ lifetime":"/ birdəfəlik","Try for free":"Pulsuz yoxla","No credit card needed":"Kart tələb olunmur"},branch:{"WEEKDAY-0":"Bazar ertəsi","WEEKDAY-1":"Çərşənbə axşamı","WEEKDAY-2":"Çərşənbə","WEEKDAY-3":"Cümə axşamı","WEEKDAY-4":"Cümə","WEEKDAY-5":"Şənbə","WEEKDAY-6":"Bazar",Closed:"Bağlıdır","Opening Hours":"İş saatları","Delivery Hours":"Çatdırılma saatları"}},en:{error:{SOMETHING_WRONG:"Something went wrong! Please try again later",FIELD_REQUIRED:"This field is required",INVALID_OTP:"Invalid OTP",OTP_RATE_LIMIT_EXCEEDED:"OTP limit has exceeded. Please try again later",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"This feature is not available for your current plan.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"This order type is not available for this business.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"This order type is not available right now.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required.",OUT_OF_DELIVERY_RANGE:"This branch doesn't deliver to your address.",NO_ORDER_TYPE:"Please select an order type."},common:{},order:{},customer:{},auth:{},events:{},pricing:{},branch:{"WEEKDAY-0":"Monday","WEEKDAY-1":"Tuesday","WEEKDAY-2":"Wednesday","WEEKDAY-3":"Thursday","WEEKDAY-4":"Friday","WEEKDAY-5":"Saturday","WEEKDAY-6":"Sunday"}},ru:{error:{SOMETHING_WRONG:"Что-то пошло не так! Пожалуйста, попробуйте позже",FIELD_REQUIRED:"Это поле обязательно для заполнения","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Азербайджанские номера должны содержать 9 цифр и начинаться с 50, 51, 10, 55, 99, 70, 77 или 60","Unsupported country code":"Неподдерживаемый код страны","Invalid OTP":"Неверный код подтверждения",INVALID_OTP:"Неверный код подтверждения",OTP_RATE_LIMIT_EXCEEDED:"Превышен лимит кодов. Попробуйте позже","Invalid Email Address":"Неверный адрес электронной почты",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Эта функция недоступна в вашем текущем тарифе.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Этот тип заказа недоступен для этого заведения.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Этот тип заказа сейчас недоступен.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен.",OUT_OF_DELIVERY_RANGE:"Этот филиал не доставляет по вашему адресу.",NO_ORDER_TYPE:"Пожалуйста, выберите тип заказа."},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ",Add:"Добавить","Your order":"Ваш заказ","Empty order":"Пустой заказ","You don't have any items in your order":"В вашем заказе нет продуктов","Add items":"Добавить продукты",Subtotal:"Итого",Events:"События","Product choices":"Варианты продукта","In order":"В заказе","Not available":"Не доступен","Specify any allergies, special requests, or ingredients you want to add or remove":"Укажите, если у вас есть аллергия, особые пожелания или ингредиенты, которые вы хотите добавить или убрать.","Thank you! We've received your order and it will be delivered shortly.":"Спасибо! Мы получили ваш заказ и скоро доставим его.","Go to checkout":"Перейти к оплате","Add an order note":"Добавить примечание к заказу","Your Order is Completed!":"Ваш заказ завершен!",Delivery:"Доставка","Dine in":"На месте",Pickup:"Самовывоз",Cash:"Наличные","POS Terminal":"POS-терминал","Order summary":"Обзор заказа",Items:"Продукты",Tax:"Налог",Total:"Итого","Special instructions, allergies, etc.":"Особые инструкции, аллергии и т.д.","Place order":"Оформить заказ",Continue:"Продолжить","Track order":"Отследить заказ","Minimum order amount for delivery is {{amount}}":"Минимальная сумма заказа для доставки — {{amount}}","This field is required":"Это поле обязательно для заполнения","Please select a table":"Пожалуйста, выберите столик","Please enter an address":"Пожалуйста, введите адрес","Please choose product":"Пожалуйста, выберите продукт",Table:"Стол","Select Table":"Выбрать столик",Card:"Картой","Closed Now":"Сейчас закрыто","Delivery Fee":"Доставка","Play video":"Смотреть видео"},customer:{"Unknown address":"Неизвестный адрес","No address available":"Адрес не доступен","Update Delivery Address":"Обновить адрес доставки",Country:"Страна",City:"Город","Baker Street":"Улица Низами",Address:"Адрес","House number":"Номер дома","Additional number":"Квартира","Example: Door code is 555":"Пример: Код двери 555","Delivery Instructions":"Инструкции по доставке",Azerbaijan:"Азербайджан",Floor:"Этаж","Enter address":"Введите адрес"},auth:{"Create an account or log in":"Создайте аккаунт или войдите","Phone number":"Номер телефона","I don't have an email":"У меня нет электронной почты","We sent a confirmation code to {{address}}":"Мы отправили код подтверждения на {{address}}"},events:{Events:"События","Scrolled to Category":"Прокрутил до категории","Category Selected":"Категория выбрана","Product Details":"Детали продукта","Product Added to Order":"Продукт добавлен в заказ"},pricing:{"Get Started":"Начать","Choose Plan":"Выберите план","Smart QR Menu":"Умное меню по QR-коду","Link-in-bio":"Ссылка в био","Menu Analytics":"Аналитика меню","Unlimited Users":"Неограниченные пользователи","Unlimited Products":"Неограниченные продукты","Unlimited Categories":"Неограниченные категории","Product variants":"Варианты продуктов","Product options":"Дополнения к продукту","Sales reports":"Отчеты о продажах","24/7 Support":"24/7 техническая поддержка","Multiple Branches":"Многочисленные филиалы","Table Management":"Управление столами","Order Management":"Управление заказами","Mobile App for Owners & Staff":"Мобильное приложение для владельцев и персонала","Point of Sale (POS)":"POS-касса","Delivery Management":"Управление доставкой","Third-Party Delivery Integrations":"Интеграция со сторонними поставщиками","RestaroundPay with Mobile":"«RestaroundPay» с мобильного","Event management":"Управление мероприятиями","/ month":"/ месяц",monthly:"Ежемесячный план",annually:"Годовой план","Flexible Plans for Every Business - Simple Pricing, More Value!":"Тарифы для любого бизнеса - Простой прайс, больше возможностей!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Выберите тарифный план, который подходит вашему бизнесу. Подписывайтесь помесячно или ежегодно и экономьте больше с долгосрочными планами!","Unlimited Languages":"Неограниченное количество языков","30-day money-back guarantee":"Гарантия возврата денег в течение 30 дней","Limited Time Only":"Только ограниченное время","/ lifetime":"/ разово","Try for free":"Попробуйте бесплатно","No credit card needed":"Кредитная карта не требуется"},branch:{"WEEKDAY-0":"Понедельник","WEEKDAY-1":"Вторник","WEEKDAY-2":"Среда","WEEKDAY-3":"Четверг","WEEKDAY-4":"Пятница","WEEKDAY-5":"Суббота","WEEKDAY-6":"Воскресенье",Closed:"Закрыто","Opening Hours":"Часы работы","Delivery Hours":"Время доставки"}},tr:{error:{SOMETHING_WRONG:"Bir şeyler yanlış gitti! Lütfen daha sonra tekrar deneyin",FIELD_REQUIRED:"Bu alan zorunludur","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azerbaycan numaraları 9 haneli olmalı ve 50, 51, 10, 55, 99, 70, 77 veya 60 ile başlamalıdır","Unsupported country code":"Desteklenmeyen ülke kodu","Invalid OTP":"Geçersiz doğrulama kodu",INVALID_OTP:"Geçersiz doğrulama kodu",OTP_RATE_LIMIT_EXCEEDED:"OTP sınırı aşıldı. Lütfen daha sonra tekrar deneyin","Invalid Email Address":"Geçersiz e-posta adresi",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu özellik mevcut planınızda yer almıyor.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sipariş türü bu işletmede aktif değil.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sipariş türü şu anda aktif değil.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur.",OUT_OF_DELIVERY_RANGE:"Bu şube sizin adrese teslimat yapmıyor.",NO_ORDER_TYPE:"Lütfen bir sipariş türü seçin."},common:{Save:"Kaydet",Cancel:"İptal et",Continue:"Devam et"},order:{"View order":"Siparişi Görüntüle","Remove from order":"Siparişten Kaldır","Update order":"Siparişi Güncelle","Add to order":"Siparişe Ekle",Add:"Ekle","Your order":"Siparişiniz","Empty order":"Boş sipariş","You don't have any items in your order":"Siparişinizde hiç bir ürün yok","Add items":"Ürün ekle",Subtotal:"Toplam",Events:"Olaylar","Product choices":"Seçenekler","In order":"Siparişte","Not available":"Mevcut değil","Specify any allergies, special requests, or ingredients you want to add or remove":"Herhangi bir alerjiniz, özel isteğiniz ya da eklemek veya çıkarmak istediğiniz malzemeler varsa belirtin.","Thank you! We've received your order and it will be delivered shortly.":"Teşekkürler! Siparişinizi aldık, kısa süre içinde teslim edilecek.","Go to checkout":"Ödemeye geç","Add an order note":"Sipariş notu ekle","Your Order is Completed!":"Siparişiniz tamamlandı!",Delivery:"Teslimat","Dine in":"Masaya",Pickup:"Al götür",Cash:"Nakit","POS Terminal":"POS Terminali","Order summary":"Sipariş özeti",Items:"Ürünler",Tax:"Vergi",Total:"Toplam","Special instructions, allergies, etc.":"Özel talimatlar, alerjiler vb.","Place order":"Sipariş ver",Continue:"Devam et","Track order":"Siparişi takip et","Minimum order amount for delivery is {{amount}}":"Teslimat için minimum sipariş tutarı {{amount}} olmalı","This field is required":"Bu alan zorunludur","Please select a table":"Lütfen bir masa seçin","Please enter an address":"Lütfen bir adres girin","Please choose product":"Lütfen bir ürün seçin",Table:"Masa","Select Table":"Masa seçin",Card:"Kart ile","Closed Now":"Şu anda kapalı","Delivery Fee":"Teslimat ücreti","Play video":"Videoyu izle"},customer:{"Unknown address":"Bilinmeyen adres","No address available":"Adres mevcut değil","Update Delivery Address":"Teslimat adresini güncelle",Country:"Ülke",City:"Şehir","Baker Street":"Istiklal Caddesi",Address:"Adres","House number":"Ev numarası","Additional number":"Daire numarası","Example: Door code is 555":"Örnek: Kapı kodu 555","Delivery Instructions":"Teslimat talimatları",Azerbaijan:"Azerbaycan",Floor:"Kat","Enter address":"Adres girin"},auth:{"Create an account or log in":"Hesap oluştur veya giriş yap","Phone number":"Telefon numarası","I don't have an email":"E-posta adresim yok","We sent a confirmation code to {{address}}":"{{address}} için doğrulama kodu gönderdik"},events:{Events:"Etkinlikler","Scrolled to Category":"Kategoriye kaydırıldı","Category Selected":"Kategori seçildi","Product Details":"Ürün Detayları","Product Added to Order":"Ürün siparişe eklendi"},pricing:{"Get Started":"Hemen Başla","Choose Plan":"Planı seçin","Smart QR Menu":"Akıllı QR Menü","Link-in-bio":"Bio için link","Menu Analytics":"Menü Analitiği","Unlimited Users":"Sınırsız kullanıcı","Unlimited Products":"Sınırsız ürün","Unlimited Categories":"Sınırsız kategori","Product variants":"Ürün çeşitleri","Product options":"Ürün seçenekleri","Sales reports":"Satış raporu","24/7 Support":"24/7 Teknik Destek","Multiple Branches":"Şube Yönetimi","Table Management":"Masa Yönetimi","Order Management":"Sipariş Yönetimi","Mobile App for Owners & Staff":"Patron ve Personel için Mobil Uygulama","Point of Sale (POS)":"POS Adisyon Sistemi","Delivery Management":"Paket sipariş yönetimi","Third-Party Delivery Integrations":"Üçüncü Parti Teslimat Entegrasyonları","RestaroundPay with Mobile":"Mobil ile RestaroundPay","Event management":"Etkinlik yönetimi","/ month":"/ Ay",monthly:"Aylık",annually:"Yıllık","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"İşletmenize uygun abonelik planını seçin. Aylık veya yıllık abone olun, uzun vadeli planlarla daha fazla tasarruf edin!","Flexible Plans for Every Business - Simple Pricing, More Value!":"Her işletmeye uygun esnek planlar - Basit fiyatlandırma, daha fazla avantaj!","Unlimited Languages":"Sınırsız dil seçeneği","30-day money-back guarantee":"30 gün içinde memnun kalmazsanız, paranız iade.","Limited Time Only":"Sınırlı süreyle","/ lifetime":"/ tek seferlik","Try for free":"Ücretsiz dene","No credit card needed":"Kredi kartı gerekmez"},branch:{"WEEKDAY-0":"Pazartesi","WEEKDAY-1":"Salı","WEEKDAY-2":"Çarşamba","WEEKDAY-3":"Perşembe","WEEKDAY-4":"Cuma","WEEKDAY-5":"Cumartesi","WEEKDAY-6":"Pazar",Closed:"Kapalı","Opening Hours":"Çalışma saatleri","Delivery Hours":"Teslimat saatleri"}},nl:{error:{SOMETHING_WRONG:"Er is iets misgegaan! Probeer het later opnieuw",FIELD_REQUIRED:"Dit veld is verplicht","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azerbeidzjaanse nummers moeten 9 cijfers bevatten en beginnen met 50, 51, 10, 55, 99, 70, 77 of 60","Unsupported country code":"Niet-ondersteunde landcode","Invalid OTP":"Ongeldige verificatiecode",INVALID_OTP:"Ongeldige verificatiecode",OTP_RATE_LIMIT_EXCEEDED:"Te veel pogingen. Probeer het later opnieuw","Invalid Email Address":"Ongeldig e-mailadres",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Deze functie is niet beschikbaar in je huidige pakket.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Dit type bestelling is niet beschikbaar bij dit bedrijf.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Dit besteltype is op dit moment niet beschikbaar.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht.",OUT_OF_DELIVERY_RANGE:"Deze vestiging bezorgt niet op jouw adres.",NO_ORDER_TYPE:"Selecteer een besteltype."},common:{Save:"Opslaan",Cancel:"Annuleren",Continue:"Doorgaan"},order:{"View order":"Bestelling bekijken","Remove from order":"Uit bestelling verwijderen","Update order":"Bestelling bijwerken","Add to order":"Aan bestelling toevoegen",Add:"Toevoegen","Your order":"Uw bestelling","Empty order":"Lege bestelling","You don't have any items in your order":"U heeft geen items in uw bestelling","Add items":"Items toevoegen",Subtotal:"Totaal",Events:"Gebeurtenissen","Product choices":"Productkeuzes","In order":"In bestelling","Not available":"Niet beschikbaar","Specify any allergies, special requests, or ingredients you want to add or remove":"Geef eventuele allergieën, speciale wensen of ingrediënten die je wilt toevoegen of weglaten aan.","Thank you! We've received your order and it will be delivered shortly.":"Bedankt! We hebben je bestelling ontvangen en bezorgen het zo snel mogelijk.","Go to checkout":"Ga naar afrekenen","Add an order note":"Voeg een bestelopmerking toe","Your Order is Completed!":"Je bestelling is voltooid!",Delivery:"Levering","Dine in":"Ter plaatse",Pickup:"Meenemen",Cash:"Contant","POS Terminal":"POS Terminal","Order summary":"Bestellingsoverzicht",Items:"Items",Tax:"Belasting",Total:"Totaal","Special instructions, allergies, etc.":"Speciale instructies, allergieën, enz.","Place order":"Plaats bestelling",Continue:"Doorgaan","Track order":"Volg je bestelling","Minimum order amount for delivery is {{amount}}":"Minimale bestelbedrag voor bezorging is {{amount}}","This field is required":"Dit veld is verplicht","Please select a table":"Selecteer alstublieft een tafel","Please enter an address":"Vul alstublieft een adres in","Please choose product":"Kies alstublieft een product",Table:"Tafel","Select Table":"Kies tafel",Card:"Met je Betaalpas","Closed Now":"Nu gesloten","Delivery Fee":"Bezorgkosten","Play video":"Bekijk video"},customer:{"Unknown address":"Onbekend adres","No address available":"Geen adres beschikbaar","Update Delivery Address":"Werk het afleveradres bij",Country:"Land",City:"Stad","Baker Street":"Dam straat",Address:"Adres","House number":"Huisnummer","Additional number":"Appartementnummer","Example: Door code is 555":"Voorbeeld: Deurcode is 555","Delivery Instructions":"Leveringsinstructies",Azerbaijan:"Azerbeidzjan",Floor:"Verdieping","Enter address":"Voer adres in"},auth:{"Create an account or log in":"Maak een account aan of log in","Phone number":"Telefoonnummer","I don't have an email":"Ik heb geen e-mailadres","We sent a confirmation code to {{address}}":"We hebben een bevestigingscode gestuurd naar {{address}}"},events:{Events:"Gebeurtenissen","Scrolled to Category":"Gescrld naar categorie","Category Selected":"Categorie geselecteerd","Product Details":"Productdetails","Product Added to Order":"Product aan bestelling toegevoegd"},pricing:{"Get Started":"Start nu","Choose Plan":"Kies een plan","Smart QR Menu":"Slimme QR-menu","Link-in-bio":"Link-in-bio","Menu Analytics":"Menu analyse","Unlimited Products":"Onbeperkte producten","Unlimited Categories":"Onbeperkte categorieën","Unlimited Users":"Onbeperkte gebruikers","Product variants":"Productvarianten","Product options":"Productopties","Sales reports":"Verkooprapporten","24/7 Support":"24/7 ondersteuning","Multiple Branches":"Meerdere vestigingen","Table Management":"Tafelbeheer","Order Management":"Orderbeheer","Mobile App for Owners & Staff":"Mobiele app voor eigenaren en personeel","Point of Sale (POS)":"Kassasysteem (POS)","Delivery Management":"Leveringsbeheer","Third-Party Delivery Integrations":"Integraties van derden","RestaroundPay with Mobile":"RestaroundPay met mobiel","Event management":"Beheer van evenementen","/ month":"/ maand",monthly:"Maandelijks",annually:"Jaarlijks","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Kies een abonnementsplan dat bij jouw bedrijf past. Abonneer je maandelijks of jaarlijks en bespaar meer met een lange termijn plan!","Flexible Plans for Every Business - Simple Pricing, More Value!":"Flexibele abonnementen voor elk bedrijf - Eenvoudige prijzen, meer waarde!","Unlimited Languages":"Onbeperkt aantal talen","30-day money-back guarantee":"30 dagen niet-goed-geld-terug garantie","Limited Time Only":"Beperkte tijd","/ lifetime":"/ eenmalig","Try for free":"Probeer gratis","No credit card needed":"Geen creditcard nodig"},branch:{"WEEKDAY-0":"Maandag","WEEKDAY-1":"Dinsdag","WEEKDAY-2":"Woensdag","WEEKDAY-3":"Donderdag","WEEKDAY-4":"Vrijdag","WEEKDAY-5":"Zaterdag","WEEKDAY-6":"Zondag",Closed:"Gesloten","Opening Hours":"Openingstijden","Delivery Hours":"Bezorgtijden"}},et:{error:{SOMETHING_WRONG:"Midagi läks valesti! Palun proovi hiljem uuesti",FIELD_REQUIRED:"See väli on kohustuslik","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Aserbaidžaani numbrid peavad olema 9-kohalised ja algama 50, 51, 10, 55, 99, 70, 77 või 60-ga","Unsupported country code":"Riigikood ei ole toetatud","Invalid OTP":"Vale kinnituskood",INVALID_OTP:"Vale kinnituskood",OTP_RATE_LIMIT_EXCEEDED:"Kinnituskoodide limiit ületatud. Proovi hiljem uuesti","Invalid Email Address":"Vigane e-posti aadress",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"See funktsioon ei ole sinu praeguse paketiga saadaval.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"See tellimuse tüüp ei ole selles ettevõttes saadaval.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"See tellimuse tüüp ei ole praegu saadaval.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik.",OUT_OF_DELIVERY_RANGE:"See filiaal ei toimeta sellele aadressile.",NO_ORDER_TYPE:"Palun vali tellimuse tüüp."},common:{Save:"Salvesta",Cancel:"Tühista",Continue:"Jätka"},order:{"View order":"Vaata tellimust","Remove from order":"Eemalda tellimusest","Update order":"Uuenda tellimust","Add to order":"Lisa tellimusele",Add:"Lisa","Your order":"Teie tellimus","Empty order":"Tühi tellimus","You don't have any items in your order":"Teie tellimuses pole ühtegi eset","Add items":"Lisa esemeid",Subtotal:"Kokku",Events:"Sündmused","Product choices":"Tootevalikud","In order":"Tellimuses","Not available":"Ei ole saadaval","Specify any allergies, special requests, or ingredients you want to add or remove":"Kui sul on allergiaid, erisoove või soovid mõnda koostisosa lisada või eemaldada, anna sellest teada.","Thank you! We've received your order and it will be delivered shortly.":"Aitäh! Oleme sinu tellimuse kätte saanud ja toome selle peagi kohale.","Go to checkout":"Mine kassasse","Add an order note":"Lisa tellimuse märkus","Your Order is Completed!":"Teie tellimus on lõpetatud!",Delivery:"Kohaletoimetamine","Dine in":"Sööma jäämine",Pickup:"Eemaldamine",Cash:"Sularaha","POS Terminal":"POS terminal","Order summary":"Tellimuse kokkuvõte",Items:"Tooted",Tax:"Maks",Total:"Kokku","Special instructions, allergies, etc.":"Erisoovid, allergiad jne.","Place order":"Esita tellimus",Continue:"Jätka","Track order":"Jälgi tellimust","Minimum order amount for delivery is {{amount}}":"Minimaalne tellimuse summa kohaletoimetamiseks on {{amount}}","This field is required":"See väli on kohustuslik","Please select a table":"Palun vali laud","Please enter an address":"Palun sisesta aadress","Please choose product":"Palun vali toode",Table:"Laud","Select Table":"Vali laud",Card:"Kaardiga","Closed Now":"Praegu suletud","Delivery Fee":"Kohaletoimetamise tasu","Play video":"Vaata videot"},customer:{"Unknown address":"Tundmatu aadress","No address available":"Aadress puudub","Update Delivery Address":"Uuenda kohaletoimetamise aadress",Country:"Riik",City:"Linn","Baker Street":"Nizami tänav",Address:"Aadress","House number":"Majanumber","Additional number":"Korteri number","Example: Door code is 555":"Näide: Uksekood on 555","Delivery Instructions":"Kohaletoimetamise juhised",Azerbaijan:"Aserbaidžaan",Floor:"Põrand","Enter address":"Sisesta aadress"},auth:{"Create an account or log in":"Loo konto või logi sisse","Phone number":"Telefoninumber","I don't have an email":"Mul ei ole e-posti aadressi","We sent a confirmation code to {{address}}":"Saatsime kinnituskoodi aadressile {{address}}"},events:{Events:"Sündmused","Scrolled to Category":"Keriti kategooriasse","Category Selected":"Kategooria valitud","Product Details":"Toote detailid","Product Added to Order":"Toode lisatud tellimusele"},pricing:{"Get Started":"Alustage","Choose Plan":"Vali plaan","Smart QR Menu":"Nutikas QR-menüü","Link-in-bio":"Link-in-bio","Menu Analytics":"Menüü Analüütika","Unlimited Products":"Piiramata tooted","Unlimited Categories":"Piiramata kategooriad","Product variants":"Tootevariandid","Product options":"Toote valikud","Sales reports":"Müügiaruanded","24/7 Support":"24/7 tugi","Multiple Branches":"Mitu filiaali","Table Management":"Tabelite haldamine","Order Management":"Tellimuste haldamine","Mobile App for Owners & Staff":"Mobiilirakendus omanikele ja töötajatele","Point of Sale (POS)":"Müügipunkt (POS)","Delivery Management":"Tarnejuhtimine","Third-Party Delivery Integrations":"Kolmanda osapoole tarneintegratsioonid","RestaroundPay with Mobile":"RestaroundPay koos mobiiliga","Event management":"Sündmuste haldamine","Unlimited Users":"Piiramatu arv kasutajaid","/ month":"/ kuus",monthly:"Igakuine",annually:"Igal aastal","Flexible Plans for Every Business - Simple Pricing, More Value!":"Paindlikud plaanid igale ettevõttele - Lihtne hind, rohkem väärtust!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Vali tellimus, mis sobib sinu ettevõttele. Telli igakuiselt või kord aastas ning säästa rohkem pikaajaliste plaanidega!","Unlimited Languages":"Piiramatu arv keeli","30-day money-back guarantee":"30-päevane raha tagasi garantii","Limited Time Only":"Ainult piiratud ajaks","/ lifetime":"/ eluaegne","Try for free":"Proovi tasuta","No credit card needed":"Krediitkaarti pole vaja"},branch:{"WEEKDAY-0":"Esmaspäev","WEEKDAY-1":"Teisipäev","WEEKDAY-2":"Kolmapäev","WEEKDAY-3":"Neljapäev","WEEKDAY-4":"Reede","WEEKDAY-5":"Laupäev","WEEKDAY-6":"Pühapäev",Closed:"Suletud","Opening Hours":"Lahtiolekuajad","Delivery Hours":"Kohaletoimetamise ajad"}}};const bi=(e="common",t)=>{const i=zt(),r=(null==t?void 0:t.language)||i,{t:n}=((e,t)=>{try{const i=We.includes(e)?e:"en",r=fi[i][t]||{};return{t:(e,t)=>{try{const i=r[e]||e;return t?Object.keys(t).reduce((e,i)=>e.replace(`{{${i}}}`,t[i]),i):i}catch(t){return console.error(t),e}}}}catch(e){return console.error(e),{t:e=>e}}})(r,e);return{t:n}};var Ti={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const Ai=()=>{var e,t;const{customer:i}=Mt();return(null===(e=null==i?void 0:i.addresses)||void 0===e?void 0:e[(null===(t=null==i?void 0:i.addresses)||void 0===t?void 0:t.length)-1])||{}};var Pi,Oi;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(Pi||(Pi={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(Oi||(Oi={}));const Di=e=>{const t={},{countryCode:i,cityName:r,street:n,houseNumber:a}=e||{};return i||(t.countryCode="COUNTRY_REQUIRED"),r||(t.cityName="CITY_REQUIRED"),n||(t.street="STREET_REQUIRED"),a||(t.houseNumber="STREET_NUMBER_REQUIRED"),t},Si=(e,t,i)=>[e,[t,i].filter(Boolean).join("/")].filter(Boolean).join(" "),Ni=()=>{const{orderItems:e,order:t}=Mt(),{deliveryFeeAmount:i}=Dt(),r=Object.values(e||{}).reduce((e,t)=>{const{totalGross:i,totalNet:r,totalTax:n}=ut(t),a=e.totalPriceWithTax+i;return{totalPriceWithTax:a,totalPriceWithoutTax:e.totalPriceWithoutTax+r,totalTax:e.totalTax+n,totalPriceWithTaxAndFees:a}},{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,totalPriceWithTaxAndFees:0});return(null==t?void 0:t.orderType)===it.DELIVERY&&i>0&&(r.totalPriceWithTaxAndFees+=i),r},Ri=(e={})=>{const t=(()=>{const{id:e}=Ut();return e})(),i=At(),{order:r,orderItems:n}=Mt(),{totalPriceWithTax:a,totalPriceWithoutTax:o,totalTax:l,totalPriceWithTaxAndFees:d}=Ni(),s=Ai(),c=(()=>{const{customer:e}=Mt();return null==e?void 0:e.id})(),{deliveryFeeAmount:u}=Dt(),{workingDayId:m,tableId:_,employeeId:h,orderType:p,paymentMethod:v,note:g,vat:E=0}=Object.assign(Object.assign({},r),e);return{branchId:null==i?void 0:i.id,businessId:t,workingDayId:m,tableId:_,customerId:c,customerAddressId:s.id,employeeId:h,orderType:p,totalPriceWithTax:a,totalPriceWithTaxAndFees:d,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:E,paymentMethod:v,note:g,deliveryFee:p===it.DELIVERY?u:void 0}},Ci=()=>{const{orderItems:e}=Mt();return Object.values(e||{}).reduce((e,t)=>e+t.quantity,0)},Li=()=>{const{t:e}=bi("error"),t=Pt(),i=Dt().maxDeliveryDistance,{latitude:r,longitude:n}=Ai(),[a,o]=x(null);return H(()=>{const e=!!r&&!!n,a=!Q(t);tt(void 0,void 0,void 0,function*(){if(!e||!a)return o("INVALID_ADDRESS");try{const e=yield((e,t)=>tt(void 0,void 0,void 0,function*(){const{spherical:i}=yield google.maps.importLibrary("geometry"),r=new google.maps.LatLng(e.latitude,e.longitude),n=new google.maps.LatLng(t.latitude,t.longitude);return i.computeDistanceBetween(r,n)}))(t,{latitude:r,longitude:n});o(!e||e>i?"OUT_OF_DELIVERY_RANGE":null)}catch(e){o("OUT_OF_DELIVERY_RANGE")}})},[r,n,t,i]),a?e(a):null},ki=()=>{const{t:e}=bi("order"),t=zt(),i=Bt(),r=Dt().minDeliveryAmount,{totalPriceWithTax:n}=Ni();if(n<r){return e("Minimum order amount for delivery is {{amount}}",{amount:X(r,i,t)})}return null},Mi=({formErrors:i,onChange:n})=>{const o=Ue.map(({phoneCode:e})=>({label:e,value:e})),l=Je(),d=zt(),{t:s}=bi("auth"),{t:c}=bi("error"),[u,m]=x({countryCode:o[0].value,phoneNumber:""}),{url:_}=He(l,d),h=e=>{var t;const{name:i,value:r}=(null==e?void 0:e.target)||{};if(!i)return;const a=null!==(t=null==r?void 0:r.trim())&&void 0!==t?t:"";if("phoneNumber"===i&&""!==a&&!J(a))return;const o=Object.assign(Object.assign({},u),{[i]:a}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);n(l),m(o)};return t(a,{gap:1,fullWidth:!0,children:[t(r,{fullWidth:!0,alignItems:"flex-start",children:[e(p,{name:"countryCode",options:o,type:v.SELECT,className:Ti.countryCode,value:u.countryCode,onChange:h}),e(p,{name:"phoneNumber",placeholder:s("Phone number"),type:v.TEL,fullWidth:!0,value:u.phoneNumber,onChange:h,errorMessage:c(i.phoneNumber)})]}),e("div",{className:Ti.terms,children:t("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${_}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${_}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})},wi=({address:i,errorMessage:r,onChange:n})=>{const{t:l}=bi("auth"),{t:d}=bi("error");return t(a,{gap:2,children:[e(o,{fullWidth:!0,align:"center",color:"muted",children:l("We sent a confirmation code to {{address}}",{address:i})}),e(g,{onChangeOTP:e=>{queueMicrotask(()=>{n(e)})},errorMessage:r?d(r):void 0,inputMode:"numeric"})]})},Wi=({formErrors:i,onChange:r,onCancel:n})=>{const o=(()=>{const{customer:e}=Mt();return j(()=>null==e?void 0:e.email,[null==e?void 0:e.email])})(),[l,d]=x(o||""),{t:s}=bi("auth"),{t:c}=bi("error"),u=F(e=>{var t,i;const n=null!==(i=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==i?i:"";d(n),r(n)},[r]);return H(()=>{tt(void 0,void 0,void 0,function*(){o&&o!==l&&d(o)})},[o]),t(a,{className:Ti.container,alignItems:"center",gap:0,children:[e(p,{name:"email",type:v.EMAIL,placeholder:"Email",fullWidth:!0,value:l,onChange:u,errorMessage:i.email?c(i.email):void 0}),!l&&e(h,{onClick:n,label:s("I don't have an email"),type:m.DEFAULT})]})};var Ui={};var Bi={},zi="HoursList-module_container__wYX5G",Vi="HoursList-module_title__D7Q8u";const xi=({title:i,days:n})=>{const{t:l}=bi("branch");return Q(n)?null:t(a,{className:zi,gap:.5,fullWidth:!0,children:[i&&e(o,{weight:"medium",className:Vi,children:l(i)}),n.map(({day:i,hours:n})=>{const a=!n,d=a?l("Closed"):`${n.openAt} - ${n.closeAt}`;return t(r,{justifyContent:"space-between",fullWidth:!0,children:[e(o,{size:"sm",whiteSpace:"nowrap",children:l(`WEEKDAY-${i}`)}),e(o,{size:"sm",whiteSpace:"nowrap",color:a?m.DANGER:"normal",children:d})]},i)})]})},Fi=({openingHours:i,deliveryHours:r})=>{const n=(null==i?void 0:i.days)||[],o=(null==r?void 0:r.days)||[],l=(()=>{const e=Dt();return null==e?void 0:e.deliveryOrderEnabled})();return Q(n)?null:t(a,{className:Bi.container,gap:2,children:[e(xi,{days:n}),l&&e(xi,{title:"Delivery Hours",days:o})]})};var ji={container:"ScrollToTop-module_container__fY2Wr",visible:"ScrollToTop-module_visible__4c1xZ",flexWide:"ScrollToTop-module_flexWide__ISFJo",slidein:"ScrollToTop-module_slidein__ciJNw",fadeInOut:"ScrollToTop-module_fadeInOut__TVbp7",heightAnimation:"ScrollToTop-module_heightAnimation__ouHY-",fadein:"ScrollToTop-module_fadein__-3ySu",floatAnimation:"ScrollToTop-module_floatAnimation__6Gg6O",bottomSheet:"ScrollToTop-module_bottomSheet__XjARU",slideRightToLeft:"ScrollToTop-module_slideRightToLeft__YUoyD",rotation:"ScrollToTop-module_rotation__z-fUd",pulse:"ScrollToTop-module_pulse__59P93"};const Gi=({size:t,zIndex:i=100})=>{const[r,n]=x(!1),a=F(()=>{const e=window.scrollY>100;e!==r&&n(e)},[r]);return H(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}),[a]),e("div",{className:ee(ji,{container:!0,visible:r}),style:{zIndex:i},children:e(y,{icon:me,size:t,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var Hi="Branches-module_branches__sOuoV",Yi="Branches-module_container__Ppa6v",Ki={item:"BranchCard-module_item__Uowu3",content:"BranchCard-module_content__tua5H",info:"BranchCard-module_info__GWCyI",name:"BranchCard-module_name__3f4c-",address:"BranchCard-module_address__X2UdI",imageContainer:"BranchCard-module_imageContainer__cZcxc",image:"BranchCard-module_image__Wb44-",notAvailable:"BranchCard-module_notAvailable__hM-C5",noImage:"BranchCard-module_noImage__TnVYT",flexWide:"BranchCard-module_flexWide__Z8Ly-",slidein:"BranchCard-module_slidein__iNE--",fadeInOut:"BranchCard-module_fadeInOut__W8YYr",heightAnimation:"BranchCard-module_heightAnimation__xVD3c",fadein:"BranchCard-module_fadein__u5kBh",floatAnimation:"BranchCard-module_floatAnimation__X2M2D",bottomSheet:"BranchCard-module_bottomSheet__jQn-M",slideRightToLeft:"BranchCard-module_slideRightToLeft__7lAiW",rotation:"BranchCard-module_rotation__bTyhC",pulse:"BranchCard-module_pulse__4w1oB"};const qi=({children:t,id:i})=>{const r=Rt(),n=xt();return r?e("div",{className:Ki.item,onClick:()=>r(i),children:t}):e("a",{href:`${n}/${i}`,className:Ki.item,children:t})},Qi=({branch:i})=>{const{id:n,address:d,coverPhoto:s,name:c}=i||{},u=`${Ut().name} ${c}`;return e(qi,{id:n,children:t("div",{className:ee(Ki,{content:!0,noImage:!s}),children:[s&&e("div",{className:Ki.imageContainer,children:e("img",{src:Qe(s),alt:u,className:Ki.image,width:1024,height:400})}),t(a,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Ki.info,gap:.5,children:[e(o,{variant:"h2",className:Ki.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:u}),t(r,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(l,{icon:ue,color:m.DEFAULT}),e("span",{className:Ki.address,children:d})]})]})]})})},$i=()=>{const t=(()=>{const{branches:e}=Xe();return e||[]})();return e("div",{className:Hi,children:e(f,{className:Yi,children:t.map(t=>e(Qi,{branch:t},t.id))})})};var Zi,Xi,Ji={};!function(e){e.LIST="list",e.GRID="grid"}(Zi||(Zi={})),function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Xi||(Xi={}));const er=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},tr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},ir=(e,t)=>{var i;return(null===(i=((null==e?void 0:e.options)||[]).find(({id:e})=>e===t))||void 0===i?void 0:i.price)||0},rr=(e=0,t=1,i=0)=>e*t*(1+i/100),nr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},ar=(e,t=1)=>{const{price:i=0,vat:r=0}=e||{};return rr(i,t,r)},or=(e,t,i,r=1)=>{const n=ar(e,r);return{totalPrice:n,formattedTotalPrice:X(n,t,i)}},lr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.variants)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.id===t))||{}},dr=(e,t,i)=>{const r=lr(t,e),{vat:n}=t||{},{price:a}=r||{};return rr(a,i,n)},sr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},cr=({product:e,variantId:t,quantity:i=1,selectedAddons:r,noVat:n=!1})=>{if(Q(e))return{price:0,optionsPrice:0,total:0};const a=Object.assign(Object.assign({},e),{vat:n?0:e.vat}),o=((e,t={},i)=>((null==e?void 0:e.addons)||[]).filter(e=>Object.prototype.hasOwnProperty.call(t,e.id)).reduce((e,i)=>{const{id:r,selectType:n}=i;if(n===Xi.SINGLE){const n=t[r];return e+ir(i,n)}return e+(t[r]||[]).reduce((e,t)=>e+ir(i,t),0)},0)*i)(a,r,i),l=t?dr(t,a,i):ar(a,i);return{price:l,optionsPrice:o,total:l+o}},ur=e=>{var t;const{products:i}=Xe();return(null===(t=null==i?void 0:i.find)||void 0===t?void 0:t.call(i,({id:t})=>t===e))||{}},mr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},_r=()=>{const e=xt(),t=Nt();return t?`${e}/${t}`:e},hr="digital_menu",pr=`${hr}_category_select`,vr=`${hr}_category_scroll`,gr=`${hr}_product_details`,Er=`${hr}_product_add_cart`,Ir=`${hr}_product_view_changed`,yr=[pr,vr,gr,Er];var fr="Categories-module_categories__Hh8hl";const br=({categoryProductMap:t=[],language:i,selectedCategoryId:r,skipTracking:n=!1,onSelectCategory:a})=>{const o=G({}),l=G(null),d=F(()=>{var e;const t=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e[r];if(!t||!l.current)return;const i=l.current.clientWidth,n=t.offsetLeft-i/2+t.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})},[r]);return H(()=>{r&&d()},[r,d]),e("div",{className:fr,children:e(b,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(l.current=e.current)},children:(t||[]).map(({id:t,translations:l})=>{const{name:d}=l.find(e=>e.language===i)||{};return e(T,{children:e(A,{onClick:()=>((e,t)=>{e!==r&&(a(e),n||$(pr,{name:t}))})(t,d),type:m.BORDERED_PRIMARY,active:t===r,children:e("div",{ref:e=>{e&&(o.current[t]=e)},children:d})})},t)})})})};var Tr="Products-module_container__bF2LF",Ar="Products-module_view__l857X",Pr="Products-module_products__AoDrY",Or="Products-module_category__Sp7dE",Dr="Products-module_list__LH4v5",Sr={container:"ProductsListItem-module_container__i9tFs",isClickable:"ProductsListItem-module_isClickable__iHHdI",info:"ProductsListItem-module_info__4s4j2",name:"ProductsListItem-module_name__T1gyJ",description:"ProductsListItem-module_description__oL4CH",price:"ProductsListItem-module_price__V1GRM",image:"ProductsListItem-module_image__h6Wbi",notAvailable:"ProductsListItem-module_notAvailable__TeMCr",addToOrder:"ProductsListItem-module_addToOrder__6KqZn",noImage:"ProductsListItem-module_noImage__G4E-a",flexWide:"ProductsListItem-module_flexWide__Ds6LE",slidein:"ProductsListItem-module_slidein__rEzMI",fadeInOut:"ProductsListItem-module_fadeInOut__i1FNq",heightAnimation:"ProductsListItem-module_heightAnimation__2fk7l",fadein:"ProductsListItem-module_fadein__tPTJ6",floatAnimation:"ProductsListItem-module_floatAnimation__vugAV",bottomSheet:"ProductsListItem-module_bottomSheet__-YAdd",slideRightToLeft:"ProductsListItem-module_slideRightToLeft__oXk26",rotation:"ProductsListItem-module_rotation__ZMvMz",pulse:"ProductsListItem-module_pulse__yy4Wc"};const Nr=({product:i,currency:n,language:l,onClick:d})=>{var s,c;const{addProduct:u}=Mt(),{image160:_,volume:h,available:p}=i||{},{name:v,description:g}=j(()=>nr(i,l),[i,l]),{formattedTotalPrice:E}=j(()=>or(i,n,l),[i,n,l]),{t:I}=bi("order"),f=(null===(s=null==i?void 0:i.variants)||void 0===s?void 0:s.length)>0,b=(null===(c=null==i?void 0:i.addons)||void 0===c?void 0:c.length)>0,T=!!_;return t("div",{className:ee(Sr,{container:!0,isClickable:!!d,noImage:!T}),onClick:d,children:[t(r,{justifyContent:"space-between",gap:0,children:[e("div",{className:Sr.info,children:t(a,{gap:.25,children:[e("h3",{className:Sr.name,children:v}),e("p",{className:Sr.description,children:g}),t(r,{className:Sr.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:E}),!!h&&e(o,{color:"muted",children:h})]}),!p&&e(o,{size:"xs",color:"danger",className:Sr.notAvailableText,children:I("Not available")})]})}),T&&e("img",{src:Ke(_),alt:v||"menu",className:ee(Sr,{image:!0,notAvailable:!p}),loading:"lazy",width:160,height:90})]}),p&&e("div",{className:Sr.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(f||b)&&d)return d();u({product:i}),$(Er,{name:v,quantity:1})},icon:_e,type:m.DEFAULT})})]})};var Rr={container:"ProductsGridItem-module_container__DU5KG",content:"ProductsGridItem-module_content__FXs0Y",isClickable:"ProductsGridItem-module_isClickable__8zhwt",info:"ProductsGridItem-module_info__HkBG-",data:"ProductsGridItem-module_data__Z-N1X",name:"ProductsGridItem-module_name__ZrIx3",description:"ProductsGridItem-module_description__-FQPA",price:"ProductsGridItem-module_price__BFu2H",imageContainer:"ProductsGridItem-module_imageContainer__eHS4Z",image:"ProductsGridItem-module_image__alZWL",notAvailable:"ProductsGridItem-module_notAvailable__i4-HA",addToOrder:"ProductsGridItem-module_addToOrder__PhQhg",noImage:"ProductsGridItem-module_noImage__78UHW",volume:"ProductsGridItem-module_volume__oxEAr",notAvailableText:"ProductsGridItem-module_notAvailableText__9G0yj",flexWide:"ProductsGridItem-module_flexWide__qcB5X",slidein:"ProductsGridItem-module_slidein__oKaVb",fadeInOut:"ProductsGridItem-module_fadeInOut__d2zot",heightAnimation:"ProductsGridItem-module_heightAnimation__zgbh9",fadein:"ProductsGridItem-module_fadein__Z067K",floatAnimation:"ProductsGridItem-module_floatAnimation__GXjP-",bottomSheet:"ProductsGridItem-module_bottomSheet__-zrFD",slideRightToLeft:"ProductsGridItem-module_slideRightToLeft__R7hv5",rotation:"ProductsGridItem-module_rotation__npCfA",pulse:"ProductsGridItem-module_pulse__whBaS"};const Cr=({product:i,currency:n,language:l,defaultImage:d="",isDashboard:s=!1,onClick:c,onAddProduct:u})=>{var _,h;const{volume:p,image580:v,image160:g,image1024:E,available:I}=i||{},f=v||E||g||d,{name:b,description:T}=j(()=>nr(i,l),[i,l]),{formattedTotalPrice:A}=j(()=>or(i,n,l),[i,n,l]),{t:P}=bi("order",{language:l}),O=(null===(_=null==i?void 0:i.variants)||void 0===_?void 0:_.length)>0,D=(null===(h=null==i?void 0:i.addons)||void 0===h?void 0:h.length)>0;return e("div",{className:Rr.container,children:t("div",{className:ee(Rr,{content:!0,isClickable:!!c,noImage:!f}),onClick:c,children:[f&&e("div",{className:Rr.imageContainer,children:e("img",{src:Ke(f),alt:b||"menu",className:ee(Rr,{image:!0,notAvailable:!I}),loading:"lazy",width:580,height:326})}),e("div",{className:Rr.info,children:e("div",{className:Rr.data,children:t(a,{gap:.25,children:[e("h3",{className:Rr.name,children:b}),!s&&e("p",{className:Rr.description,children:T}),t(r,{className:Rr.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:A}),!!p&&e(o,{color:"white",className:Rr.volume,children:p})]}),!I&&e(o,{color:"white",size:"xs",className:Rr.notAvailableText,children:P("Not available")})]})})}),I&&e("div",{className:Rr.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(O||D)&&c)return c();u({product:i}),$(Er,{name:b,quantity:1})},icon:_e,type:m.DEFAULT})})]})})},Lr=({product:t,currency:i,language:r,onClick:n})=>{const{addProduct:a}=Mt();return e(Cr,{onAddProduct:a,product:t,currency:i,language:r,onClick:n})};var kr="FloatingOrdersButton-module_container__RYr7V",Mr="FloatingOrdersButton-module_content__2X3P-",wr={container:"OrderStepper-module_container__GVnVU",count:"OrderStepper-module_count__u13tM",actionText:"OrderStepper-module_actionText__CZsVe",totalPrice:"OrderStepper-module_totalPrice__R9Mni",isClickable:"OrderStepper-module_isClickable__M3rWK",isLoading:"OrderStepper-module_isLoading__FkS16",isDisabled:"OrderStepper-module_isDisabled__xipwc",flexWide:"OrderStepper-module_flexWide__oIpQi",slidein:"OrderStepper-module_slidein__P6YJD",fadeInOut:"OrderStepper-module_fadeInOut__OVRav",heightAnimation:"OrderStepper-module_heightAnimation__bDpZh",fadein:"OrderStepper-module_fadein__526L2",floatAnimation:"OrderStepper-module_floatAnimation__rjwmv",bottomSheet:"OrderStepper-module_bottomSheet__777sc",slideRightToLeft:"OrderStepper-module_slideRightToLeft__UjVx6",rotation:"OrderStepper-module_rotation__PedNC",pulse:"OrderStepper-module_pulse__mOlOg"};const Wr=({actionText:i,isLoading:n=!1,isDisabled:a=!1,onClick:o})=>{const{orderStep:l}=Mt(),d=Ci(),{totalPriceWithTax:s,totalPriceWithTaxAndFees:c}=(()=>{const{totalPriceWithTax:e,totalPriceWithoutTax:t,totalTax:i,totalPriceWithTaxAndFees:r}=Ni(),n=zt(),a=Bt();return{totalPriceWithTax:X(e,a,n),totalPriceWithoutTax:X(t,a,n),totalTax:X(i,a,n),totalPriceWithTaxAndFees:X(r,a,n)}})();return t(u,{className:ee(wr,{container:!0,isLoading:n,isClickable:!!o,isDisabled:a}),justifyContent:"space-between",alignItems:"center",onClick:n||a?null:o,children:[e(u.Item,{flex:1,children:t(r,{alignItems:"center",children:[e("div",{className:wr.count,children:d}),e("div",{className:wr.actionText,children:n?e(P,{}):i})]})}),e(u.Item,{className:wr.totalPrice,flex:1,children:l===ot.DETAILS?c:s})]})},Ur=()=>{const{setIsOrderOpen:t}=Mt(),{t:i}=bi("order");return Ci()<=0?null:e("div",{className:kr,children:e("div",{className:Mr,children:e(Wr,{onClick:()=>t(!0),actionText:i("View order")})})})},Br=Y(({categoryProductMap:i=[],currency:n,language:o,productBlocksRef:l,containerRef:s,onCategoryInView:c})=>{const[u,_]=x(Zi.LIST),{setModal:h}=d(),p=Yt(),v=[{icon:he,type:Zi.LIST},{icon:pe,type:Zi.GRID}],g=e=>{const{name:t}=nr(e,o);$(gr,{name:t}),h({id:we,params:{product:e}})};return H(()=>{const e=new IntersectionObserver(e=>{var t;const i=((null===(t=null==s?void 0:s.current)||void 0===t?void 0:t.clientHeight)||1e3)/2;let r=null,n=1/0;e.forEach(e=>{if(e.isIntersecting){const t=e.boundingClientRect,a=t.top+t.height/2,o=Math.abs(a-i);o<n&&(n=o,r=e.target.getAttribute("data-category-id"))}}),r&&c(Number(r))},{threshold:.1});return Object.entries(l.current||{}).forEach(([t,i])=>{i&&(i.setAttribute("data-category-id",t),e.observe(i))}),()=>{e.disconnect()}},[l,s,c]),t("div",{className:Tr,children:[t(r,{className:Ar,alignItems:"center",children:[v.map(({icon:t,type:i})=>e(y,{icon:t,onClick:()=>(e=>{_(e),$(Ir,{name:e})})(i),type:i===u?m.PRIMARY:m.DEFAULT},i)),!Q(p)&&e("a",{href:p,children:e(y,{icon:ve,onClick:()=>{},type:m.DEFAULT})})]}),e(a,{children:(i||[]).map(i=>{const{name:r}=mr(i,o),{id:d,products:s}=i;return t("div",{className:Pr,ref:e=>{e&&(l.current[d]=e)},"data-category-id":d,children:[e("h2",{className:Or,children:r}),e("div",{className:Dr,children:e(a,{gap:0,children:(s||[]).map(t=>u===Zi.GRID?e(Lr,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id):e(Nr,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id))})})]},d)})}),e(Ur,{})]})},(e,t)=>e.categoryProductMap===t.categoryProductMap&&e.currency===t.currency&&e.language===t.language);Br.displayName="Products";const zr=({containerRef:i})=>{var r;const n=(()=>{const{products:e}=Xe();return e||[]})(),a=(()=>{const{categories:e}=Xe();return e||[]})(),o=zt(),l=Bt(),d=((e,t)=>{const i=t.reduce((e,t)=>{if(!t.visible)return e;const i=Number(t.categoryId);return e[i]||(e[i]=[]),e[i].push(t),e},{});return e.map(e=>Object.assign(Object.assign({},e),{products:i[Number(e.id)]||[]})).filter(e=>{var t;return(null===(t=null==e?void 0:e.products)||void 0===t?void 0:t.length)>0})})(a,n),[s,c]=x(null===(r=null==a?void 0:a[0])||void 0===r?void 0:r.id),u=G({}),m=G(!0),_=F(e=>tt(void 0,void 0,void 0,function*(){m.current=!1,c(e),(e=>{var t;const i=null===(t=null==u?void 0:u.current)||void 0===t?void 0:t[e];i&&(setTimeout(()=>{i.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),h=F(e=>{if(!(null==m?void 0:m.current))return;const t=((e,t,i)=>{var r;const n=null===(r=null==t?void 0:t.find)||void 0===r?void 0:r.call(t,({id:t})=>t===e);if(Q(n))return"";const{name:a}=mr(n,i);return a||""})(e,a,o);$(vr,{name:t}),c(e)},[a,o]),p=F(()=>tt(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),t=Number(e.get("category"));if(!t)return;const i=(a||[]).find(({id:e})=>e===t);Q(i)||_(t)}),[a,_]);return H(()=>{p()},[p]),t("div",{className:Ji.container,children:[e(br,{categoryProductMap:d,language:o,selectedCategoryId:s,onSelectCategory:_}),e(Br,{categoryProductMap:d,language:o,currency:l,productBlocksRef:u,containerRef:i,onCategoryInView:h})]})};var Vr="VideoFeed-module_container__6tYYs",xr="VideoFeed-module_videos__6KjGc",Fr="Video-module_container__HT89i",jr="Video-module_videoContainer__GE-7a",Gr="Video-module_video__36hFc",Hr="Video-module_top__SIvSk",Yr="Video-module_actionIcon__F6Ze1",Kr="Video-module_bottom__DNzui",qr="Video-module_actions__cOh-0",Qr="Actions-module_container__K2DUX",$r="Actions-module_action__u-Mvu",Zr="Actions-module_animate__Y2p0y";const Xr=({video:i})=>{var r,n;const{setModal:s}=d(),{addProduct:c,setIsOrderOpen:u}=Mt(),_=G(null),{productId:h,productName:p}=i||{},v=Ci(),g=ur(h),E=(null===(r=null==g?void 0:g.variants)||void 0===r?void 0:r.length)>0,I=(null===(n=null==g?void 0:g.addons)||void 0===n?void 0:n.length)>0,y=F(()=>{s({id:we,params:{product:g}})},[g,s]),f=F(()=>{if(E||I)return y();c({product:g}),$(Er,{name:p,quantity:1})},[c,I,E,y,g,p]),b=[{icon:ge,onClick:y},{icon:_e,onClick:f},{icon:Ee,onClick:()=>u(!0),value:v,ref:_}];return H(()=>{const e=_.current;e&&(e.classList.remove(Zr),e.offsetWidth,e.classList.add(Zr))},[v]),e(a,{className:Qr,fullWidth:!0,gap:.5,children:b.map(({icon:i,onClick:r,value:n,ref:d},s)=>t(a,{alignItems:"center",gap:.375,children:[e("div",{className:$r,onClick:r,ref:d,children:e(l,{icon:i,size:"md",color:m.DEFAULT})}),!te(n)&&e(o,{size:"xs",weight:"bold",color:"white",fullWidth:!0,align:"center",children:n})]},s))})};var Jr={container:"VideoData-module_container__H-DjR",business:"VideoData-module_business__gYhgS",productName:"VideoData-module_productName__vBGba",businessName:"VideoData-module_businessName__refS2",description:"VideoData-module_description__LTbgV",noAvatar:"VideoData-module_noAvatar__ZwPv7",flexWide:"VideoData-module_flexWide__eoJyv",slidein:"VideoData-module_slidein__Rx56q",fadeInOut:"VideoData-module_fadeInOut__7WQqD",heightAnimation:"VideoData-module_heightAnimation__0aEX0",fadein:"VideoData-module_fadein__BB4dW",floatAnimation:"VideoData-module_floatAnimation__sbOmx",bottomSheet:"VideoData-module_bottomSheet__Ag-e1",slideRightToLeft:"VideoData-module_slideRightToLeft__-eS9s",rotation:"VideoData-module_rotation__77Eig",pulse:"VideoData-module_pulse__HMgCB"};const en=({video:i})=>{const[n,l]=x(!1),d=_r();if(Q(i))return null;const{businessAvatar:s,businessName:c,productName:u,productDescription:m,productPrice:_}=i,h=Boolean(s);return t(a,{className:ee(Jr,{container:!0,noAvatar:!h}),gap:.75,fullWidth:!1,children:[t("a",{className:Jr.business,href:d,children:[h&&e(O,{source:Ke(s),size:"sm"}),t(a,{gap:0,children:[e(o,{weight:"medium",color:"white",whiteSpace:"nowrap",className:Jr.productName,children:u}),e(o,{color:"white",whiteSpace:"nowrap",className:Jr.businessName,weight:"light",children:c})]})]}),e(o,{color:"white",className:Jr.price,children:_}),Boolean(m)&&e(r,{onClick:()=>l(e=>!e),children:e(o,{color:"white",size:"sm",whiteSpace:n?"wrap":"nowrap",className:Jr.description,children:m})})]})},tn=({video:i,isActive:n=!1,shouldLoad:o=!1,registerVideo:d})=>{const s=G(null),[c,u]=x(!0),_=_r(),h=(e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"")(null==i?void 0:i.videoUrl),p=F(()=>{if(s.current)return s.current.paused?s.current.play():s.current.pause()},[]),v=F(()=>{p()},[p]),g=F(e=>{if(e.stopPropagation(),!s.current)return;const t=!s.current.muted;s.current.muted=t,u(t)},[]),E=F(()=>{},[]),I=F(()=>{n&&s.current.paused?s.current.play():s.current.paused||s.current.pause()},[n]);return H(()=>{I()},[n,I]),H(()=>{const e=s.current;e&&(o&&!e.src&&(e.src=h,e.load(),I()),!o&&e.src&&(e.pause(),e.removeAttribute("src"),e.load()))},[I,o,h]),Q(i)?null:e("div",{className:Fr,ref:e=>d(i.productId,e),children:t("div",{className:jr,children:[e("video",{crossOrigin:"use-credentials","data-version":"0.3.50",preload:"none",className:Gr,ref:s,onClick:v,playsInline:!0,muted:!0,controlsList:"nodownload",loop:!0,poster:Ke(i.thumbnail)}),t(r,{className:Hr,justifyContent:"space-between",children:[e("div",{className:Yr,onClick:g,children:e(l,{icon:c?Ie:ye,size:"md",color:m.DEFAULT})}),e("a",{className:Yr,onClick:E,href:_,children:e(l,{icon:fe,size:"md",color:m.DEFAULT})})]}),t(r,{className:Kr,alignItems:"flex-end",gap:1,children:[e(en,{video:i}),e(a,{className:qr,justifyContent:"flex-end",fullWidth:!1,fullHeight:!1,children:e(Xr,{video:i})})]})]})})},rn=()=>{const i=Gt(),r=(()=>{const e=Ft(),t=jt();return j(()=>t.filter(t=>t.productId!==Number(e)),[t,e])})(),n=G(null),{activeId:a,register:o}=function(e){const[t,i]=x(null),r=G(new Map);return H(()=>{const t=e.current;if(!t)return;let n;const a=new IntersectionObserver(e=>{const t=e.filter(e=>e.isIntersecting).sort((e,t)=>t.intersectionRatio-e.intersectionRatio)[0];t&&(cancelAnimationFrame(n),n=requestAnimationFrame(()=>{i(e=>{var i,n;const a=null!==(n=null===(i=[...r.current.entries()].find(([,e])=>e===t.target))||void 0===i?void 0:i[0])&&void 0!==n?n:null;return e===a?e:a})}))},{root:t,threshold:[.6,.75,1]});return r.current.forEach(e=>a.observe(e)),()=>{cancelAnimationFrame(n),a.disconnect()}},[e]),{activeId:t,register:(e,t)=>{t&&r.current.set(e,t)}}}(n);return e("div",{className:Vr,children:t("div",{className:xr,tabIndex:0,ref:n,children:[e(tn,{video:i,registerVideo:o,isActive:a===i.productId,shouldLoad:!0}),r.map(t=>e(tn,{video:t,registerVideo:o,isActive:a===t.productId,shouldLoad:a===t.productId},t.productId))]})})};var nn={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",media:"ProductDetails-module_media__Wy8ai",play:"ProductDetails-module_play__-4H6b",image:"ProductDetails-module_image__BlMfl",details:"ProductDetails-module_details__zfnlt",name:"ProductDetails-module_name__ganLM",price:"ProductDetails-module_price__W34k9",volume:"ProductDetails-module_volume__RWG5s",description:"ProductDetails-module_description__HBufi",choices:"ProductDetails-module_choices__4tHaA",close:"ProductDetails-module_close__4cHZ3",addAction:"ProductDetails-module_addAction__o4T5R",actionTitle:"ProductDetails-module_actionTitle__NIJGW"},an={container:"Quantity-module_container__01ySb",quantityAction:"Quantity-module_quantityAction__wRV2F",quantityValue:"Quantity-module_quantityValue__BBpyw",isDisabled:"Quantity-module_isDisabled__crQCf",sm:"Quantity-module_sm__0Hgp2",md:"Quantity-module_md__hu7a8",lg:"Quantity-module_lg__GA4jn",flexWide:"Quantity-module_flexWide__R95Jw",slidein:"Quantity-module_slidein__5yeWf",fadeInOut:"Quantity-module_fadeInOut__cllco",heightAnimation:"Quantity-module_heightAnimation__dhOgA",fadein:"Quantity-module_fadein__Cof2o",floatAnimation:"Quantity-module_floatAnimation__DSqQr",bottomSheet:"Quantity-module_bottomSheet__5-5iY",slideRightToLeft:"Quantity-module_slideRightToLeft__cjDHk",rotation:"Quantity-module_rotation__dn0J8",pulse:"Quantity-module_pulse__6kl4q"};const on=({isDecreaseDisabled:i=!1,quantity:n=1,size:a="md",onIncrease:o,onDecrease:d})=>t(r,{className:ee(an,{container:!0},[an[a]]),justifyContent:"space-between",gap:0,children:[e("div",{className:ee(an,{quantityAction:!0,isDisabled:i}),onClick:d,children:e(l,{icon:be})}),e("div",{className:an.quantityValue,children:n}),e("div",{className:an.quantityAction,onClick:o,children:e(l,{icon:_e})})]});var ln="ProductInOrder-module_container__0N57G",dn="ProductInOrder-module_title__TWjM9";const sn=({productId:i,quantity:n,isInPublicMenu:a=!0,language:o,removeAllProductVariants:l,onModalClose:d})=>{const{setIsOrderOpen:s}=Mt(),{t:c}=bi("order",{language:o});return n<=0?null:t(u,{className:ln,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[t(u.Item,{flex:1,className:dn,children:[c("In order")," (",n,")"]}),e(u.Item,{flex:0,children:t(r,{children:[e(y,{icon:Te,onClick:()=>{l(i)},type:m.DANGER,tooltip:c("Remove from order")}),a&&e(y,{icon:Ee,onClick:()=>{s(!0),d&&d()},type:m.SUCCESS,tooltip:c("View order")})]})})]})};var cn={container:"ProductVariants-module_container__r059N",variantsTitle:"ProductVariants-module_variantsTitle__G3wTr",variant:"ProductVariants-module_variant__Pk6eP",focused:"ProductVariants-module_focused__tdy2R",flexWide:"ProductVariants-module_flexWide__CQO0G",slidein:"ProductVariants-module_slidein__9xYoM",fadeInOut:"ProductVariants-module_fadeInOut__NcGdX",heightAnimation:"ProductVariants-module_heightAnimation__c7ORS",fadein:"ProductVariants-module_fadein__qqdC5",floatAnimation:"ProductVariants-module_floatAnimation__Fy-NX",bottomSheet:"ProductVariants-module_bottomSheet__JVxKH",slideRightToLeft:"ProductVariants-module_slideRightToLeft__lHsqZ",rotation:"ProductVariants-module_rotation__iJPfC",pulse:"ProductVariants-module_pulse__xzh2J"};const un=({product:i,selectedVariant:n,focusedSection:o,language:l,currency:d,onSelectVariant:s})=>{const{t:c}=bi("order",{language:l}),u=G(null),{variants:m}=i||{},_="variant"===o;return H(()=>{_&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[o,_]),t(a,{className:ee(cn,{container:!0,focused:_}),gap:1,fullWidth:!0,children:[e("div",{className:cn.variantsTitle,ref:u,children:c("Product choices")}),(m||[]).map(a=>{const{id:o}=a||{},{formattedTotalPrice:c}=(({variantId:e,currency:t="USD",language:i="en",product:r,quantity:n=1})=>{const a=dr(e,r,n);return{totalPrice:a,formattedTotalPrice:X(a,t,i)}})({variantId:o,language:l,currency:d,product:i}),{title:u}=sr(a,l);return t(r,{justifyContent:"space-between",onClick:()=>s(o),className:cn.variant,children:[e(p,{label:u,name:"variant",onChange:()=>s(o),checked:n===o,type:v.RADIO,size:"small",noMargin:!0}),e("div",{className:cn.variantPrice,children:c})]},o)})]})};var mn={container:"ProductAddons-module_container__DRnT7"};const _n=({product:i,selectedAddons:n,language:l,currency:d,onOptionSelect:s})=>{const{addons:c}=i||{};return e(a,{className:mn.container,gap:1.5,fullWidth:!0,children:(c||[]).map(i=>{const{id:c,options:u,selectType:m}=i||{},{title:_}=er(i,l);return t(a,{children:[e(o,{variant:"bold",children:_}),e(a,{gap:1,fullWidth:!0,children:(u||[]).map(i=>{const{id:a}=i||{},{formattedTotalPrice:o}=(({option:e,currency:t,language:i})=>{const{price:r}=e||{};return{totalPrice:r,formattedTotalPrice:X(r,t||"USD",i||"en")}})({option:i,language:l,currency:d}),{title:u}=tr(i,l),_=m===Xi.SINGLE,h=_?n[c]===a:(n[c]||[]).includes(a);return t(r,{justifyContent:"space-between",className:mn.option,children:[e(p,{label:u,name:`option-${c}`,onChange:()=>s({addonId:c,optionId:a,isSingle:_,isRemove:!_&&h}),checked:h,type:_?v.RADIO:v.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:mn.optionPrice,children:o})]},a)})})]},c)})})},hn=({product:i,language:n,currency:d,selectedVariant:s,focusedSection:c,selectedAddons:u,isDecreaseDisabled:p,quantity:v,actionTitle:g,isInPublicMenu:E,productQuantityInOrderWithAllVariants:I,modalRef:f,videoUrl:b,onClose:T,setSelectedVariant:A,onOptionSelect:P,adjustQuantity:O,onSubmit:D,removeAllProductVariants:S})=>{const{t:N}=bi("order",{language:n}),{name:R,description:C}=j(()=>nr(i,n),[i,n]),{formattedTotalPrice:L}=j(()=>or(i,d,n),[i,d,n]),{formattedTotalPrice:k}=j(()=>(({product:e,variantId:t,quantity:i=1,currency:r,language:n,selectedAddons:a,noVat:o=!1})=>{const{total:l}=cr({product:e,variantId:t,quantity:i,selectedAddons:a,noVat:o});return{totalPrice:l,formattedTotalPrice:X(l,r,n)}})({product:i,quantity:v,language:n,currency:d,variantId:s,selectedAddons:u}),[i,v,n,d,s,u]),M=F(e=>{var t,i;(null===(i=null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.contains)||void 0===i?void 0:i.call(t,null==e?void 0:e.target))||T&&T()},[f,T]);if(Q(i))return null;const{image1024:w,volume:W,variants:U,addons:B,available:z}=i,V=(null==U?void 0:U.length)>0,x=(null==B?void 0:B.length)>0;return e("div",{className:nn.container,onClick:M,children:e(_,{onClose:T,ref:f,noBodyPadding:!0,size:"small",content:t("div",{className:nn.content,children:[t(a,{gap:0,children:[t("div",{className:nn.media,children:[w&&e("img",{src:Ke(w),width:1024,height:400,alt:R||"product",className:nn.image}),Boolean(b)&&t("a",{href:b,className:nn.play,children:[e(l,{icon:Ae,color:m.DEFAULT}),e(o,{color:"white",children:N("Play video")})]})]}),t(a,{className:nn.details,gap:1,children:[e("h2",{className:nn.name,children:R}),t(r,{justifyContent:"space-between",children:[e("div",{className:nn.price,children:L}),e("div",{className:nn.volume,children:W})]}),e("div",{className:nn.description,children:C})]}),(V||x)&&t(a,{gap:0,className:nn.choices,children:[V&&e(un,{product:i,selectedVariant:s,focusedSection:c,language:n,currency:d,onSelectVariant:A}),x&&e(_n,{product:i,selectedAddons:u,language:n,currency:d,onOptionSelect:P})]})]}),e("div",{className:nn.close,children:e(y,{onClick:T,icon:fe})})]}),footer:t(a,{children:[e(sn,{productId:null==i?void 0:i.id,onModalClose:T,isInPublicMenu:E,removeAllProductVariants:S,quantity:I,language:n}),t(r,{className:nn.addToOrder,gap:.5,children:[e(on,{isDecreaseDisabled:p,onDecrease:()=>O(-1),onIncrease:()=>O(1),quantity:v}),e(h,{className:nn.addAction,label:z?t(r,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:nn.actionTitle,children:g}),e("span",{children:k})]}):N("Not available"),onClick:D,size:"xl",fullWidth:!0,disabled:!z,paddingBlock:.5})]})]})})})};var pn="OrderDrawer-module_container__DymQj",vn="OrderDrawer-module_content__khduX",gn="OrderDrawer-module_paymentMethods__9i-sb",En="OrderDrawer-module_footer__8XfD9",In="OrderDrawer-module_noteButton__M8BVx";const yn=({isOrderItemsEmpty:i=!1,orderError:r})=>{const{t:n}=bi("order"),{t:l}=bi("error"),{order:s,orderStep:c,orderItems:u,setOrderStep:_,setIsOrderOpen:p,setTrackingId:v,updateOrderErrors:g,resetErrors:I}=Mt(),{setModal:y}=d(),f=St(),b=(()=>{const{customer:e}=Mt();return e||{}})(),{isOpen:T,isDelivering:A}=Ot(),P=Ri(),[O,S]=x(!1),[N,R]=x(""),C=null==s?void 0:s.note,L=!!C,k=f&&c===ot.CART,M=T||A,w=!!r||!M,W=()=>tt(void 0,void 0,void 0,function*(){try{R(""),S(!0);const e=yield(e=>tt(void 0,void 0,void 0,function*(){return pt("customer/order",e)}))(P);return e.trackingId}catch(e){return R((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{S(!1)}}),U=f&&M?()=>tt(void 0,void 0,void 0,function*(){if(Q(b))return y({id:Le});if(I(),c===ot.DETAILS){if(s.orderType===it.DELIVERY&&Q(null==b?void 0:b.addresses))return g("customer");if(s.orderType===it.DINE_IN&&!(null==s?void 0:s.tableId))return g("tableId");if(Q(u))return g("items");const e=yield W();if(!e)return;v(e)}const e=(dt.findIndex(e=>e===c)||0)+1;if(e>=dt.length)return;const t=dt[e];_(t)}):null;return t(a,{className:En,fullWidth:!0,children:[!!N&&e(E,{message:l(N),type:"error",onClear:()=>R("")}),!!r&&e(D,{text:r,type:m.DANGER,fullWidth:!0}),k&&e(h,{label:L?e(o,{children:s.note}):t(a,{gap:0,children:[e(o,{children:n("Add an order note")}),e(o,{size:"sm",color:"muted",children:n("Special instructions, allergies, etc.")})]}),onClick:()=>{y({id:Ce,params:{note:C}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:In,icon:L?Pe:_e,iconSize:"md"}),i?e(h,{label:n("Add items"),onClick:()=>p(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):c!==ot.COMPLETED?e(Wr,{actionText:n((()=>{if(!f)return"Subtotal";if(!M)return"Closed Now";switch(c){case ot.CART:return"Go to checkout";case ot.DETAILS:return"Place order";default:return"Continue"}})()),onClick:U,isLoading:O,isDisabled:w}):null]})};var fn={},bn="OrderListItem-module_container__Tj4RI",Tn="OrderListItem-module_image__o3PIC",An="OrderListItem-module_data__BLzxw",Pn="OrderListItem-module_name__QEzuZ",On="OrderListItem-module_price__-V2qL",Dn="ProductQuantity-module_quantity__PzTpj";const Sn=({productId:t,variantId:i,min:r=1,size:n="md",selectedAddons:a,isDisabled:o=!1})=>{const l=(({productId:e,variantId:t,selectedAddons:i})=>{const{orderItems:r}=Mt(),n=r[ct(e,t,i)];return(null==n?void 0:n.quantity)||1})({productId:t,variantId:i,selectedAddons:a}),d=ur(t),{updateProduct:s}=Mt(),c=l===r;return o?e("div",{className:Dn,children:l}):e(on,{isDecreaseDisabled:c,onDecrease:()=>s({product:d,quantity:l-1,variantId:i,selectedAddons:a}),onIncrease:()=>s({product:d,quantity:l+1,variantId:i,selectedAddons:a}),quantity:l,size:n})},Nn=({item:r,product:n,language:a})=>e(i,{children:(r.addons||[]).map(({addonId:e,options:i})=>{var r;const l=((e,t)=>((null==e?void 0:e.addons)||[]).find(({id:e})=>e===t)||{})(n,e),d=((null==l?void 0:l.options)||[]).filter(e=>null==i?void 0:i.some(({optionId:t})=>t===e.id));if(Q(l)||Q(d))return null;const s=null===(r=er(l,a))||void 0===r?void 0:r.title,c=d.map(e=>{var t;return null===(t=tr(e,a))||void 0===t?void 0:t.title}).filter(Boolean).join(", ");return s&&c?t(o,{color:"muted",size:"xs",children:[s,": ",c]},e):null})}),Rn=({item:i,isDisabled:n=!1})=>{var l;const{productId:d}=i||{},s=null===(l=null==i?void 0:i.variant)||void 0===l?void 0:l.variantId,c=(e=>{const t={};for(const{addonId:i,options:r=[]}of e.addons||[]){const e=r.map(({optionId:e})=>e);t[i]=1===e.length?e[0]:e}return t})(i),u=ur(d),m=lr(u,s),_=zt(),{image160:h}=u,{title:p}=sr(m,_),{name:v}=j(()=>nr(u,_),[u,_]),{formattedTotalPrice:g}=(e=>{const t=zt(),i=Bt(),{totalGross:r}=ut(e);return{totalPrice:r,formattedTotalPrice:X(r,i,t)}})(i);return t(r,{className:bn,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:Ke(h),alt:v||"menu",className:Tn,loading:"lazy",width:80,height:45}),t("div",{className:An,children:[e("div",{className:Pn,children:v}),t(a,{gap:0,children:[!!p&&e(o,{color:"muted",size:"xs",children:p}),e(Nn,{item:i,product:u,language:_})]}),e("div",{className:On,children:g})]}),e(Sn,{productId:d,variantId:s,selectedAddons:c,size:"sm",min:0,isDisabled:n})]})},Cn=()=>{const{t:i}=bi("order");return t(a,{className:fn.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(o,{variant:"h2",children:i("Empty order")}),e(S,{text:i("You don't have any items in your order")})]})},Ln=({isDisabled:t=!1})=>{const{orderItems:i}=Mt(),r=Q(i);return e("div",{className:fn.container,children:r?e(Cn,{}):e("div",{className:fn.items,children:Object.entries(i||{}).map(([i,r])=>e(Rn,{item:r,isDisabled:t},i))})})},kn=()=>e("div",{className:vn,children:e(Ln,{})});var Mn="CustomerAddress-module_container__TGYRV";const wn=()=>{const{t:t}=bi("customer");return e(o,{color:m.DANGER,children:t("No address available")})},Wn=()=>{const r=Ai(),{t:n}=bi("customer"),{additionalNumber:a,street:l,houseNumber:d,cityName:s,countryCode:c}=r,u=Si(l,d,a),m=([s,c]||[]).filter(Boolean).join(", ");return t(i,{children:[e(o,{children:u||n("Unknown address")}),m&&e(o,{size:"sm",color:"muted",children:m})]})},Un=()=>{const i=Ai(),{setModal:n}=d();return e("div",{className:Mn,onClick:()=>{n({id:ke})},children:t(r,{fullWidth:!0,alignItems:"center",children:[e(l,{icon:ue,size:"md"}),e(a,{gap:0,fullWidth:!0,children:Q(i)?e(wn,{}):e(Wn,{})}),e(l,{icon:Pe,size:"sm"})]})})};var Bn,zn,Vn;!function(e){e.SQUARE="SQUARE",e.CIRCLE="CIRCLE",e.RECTANGLE="RECTANGLE",e.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",e.SINGLE_AT_BAR="SINGLE_AT_BAR",e.OTHER="OTHER"}(Bn||(Bn={})),function(e){e.VACANT="VACANT",e.RESERVED="RESERVED",e.OCCUPIED="OCCUPIED",e.BLOCKED="BLOCKED",e.NEEDS_CLEANING="NEEDS_CLEANING",e.OUT_OF_SERVICE="OUT_OF_SERVICE",e.PENDING_CONFIRMATION="PENDING_CONFIRMATION",e.NO_SHOW="NO_SHOW"}(zn||(zn={})),function(e){e.MAIN_HALL="MAIN_HALL",e.PRIVATE_DINING="PRIVATE_DINING",e.VIP_ROOM="VIP_ROOM",e.BANQUET_HALL="BANQUET_HALL",e.BAR_AREA="BAR_AREA",e.LOUNGE="LOUNGE",e.OPEN_KITCHEN="OPEN_KITCHEN",e.BOOTH_SECTION="BOOTH_SECTION",e.MEZZANINE="MEZZANINE",e.WINE_CELLAR="WINE_CELLAR",e.TERRACE="TERRACE",e.PATIO="PATIO",e.GARDEN="GARDEN",e.COURTYARD="COURTYARD",e.ROOFTOP="ROOFTOP",e.BALCONY="BALCONY",e.SIDEWALK="SIDEWALK",e.POOLSIDE="POOLSIDE",e.SMOKING_AREA="SMOKING_AREA",e.NON_SMOKING="NON_SMOKING",e.FAMILY_SECTION="FAMILY_SECTION",e.KIDS_AREA="KIDS_AREA",e.WAITING_AREA="WAITING_AREA",e.DANCE_FLOOR="DANCE_FLOOR"}(Vn||(Vn={}));var xn={};const Fn=({preDefinedTable:i,tableOptions:n,selectedTableId:l,error:d,disableIfPreDefined:s,language:c,onChange:u})=>{const{t:_}=bi("order",{language:c}),h=!Q(i),g=F(e=>{var t;u(Number(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)||null)},[u]);return t(a,{className:xn.table,fullWidth:!0,gap:.5,children:[e(r,{fullWidth:!0,children:h&&s?e(o,{variant:"bold",children:i.name}):e(p,{name:"tableId",options:n,type:v.SELECT,className:xn.tableInput,value:l,onChange:g,isDisabled:h,fullWidth:!0,noMargin:!0,size:"small",placeholder:_("Select Table")})}),d&&e(o,{color:m.DANGER,children:_(d)})]})},jn=()=>{const t=(()=>{const{tableId:e,tables:t}=Xe();return!e||Q(t)?{}:t.find(t=>Number(t.id)===Number(e))||{}})(),i=(()=>{const{tables:e}=Xe();return e})(),{order:r,updateOrder:n,errors:a}=Mt(),o=zt(),l=i.map(({id:e,name:t})=>({label:t,value:e}));return e(Fn,{onChange:e=>n({tableId:e}),preDefinedTable:t,tableOptions:l,selectedTableId:null==r?void 0:r.tableId,error:null==a?void 0:a.tableId,language:o,disableIfPreDefined:!0})};var Gn="OrderMethods-module_container__KSwfa";const Hn=({orderTypes:i,orderType:n,size:a,onSelect:d})=>{const{t:s}=bi("error"),u=e=>0===e?"right":e+1===i.length?"left":"bottom",m=i.reduce((i,a,d)=>a.isVisible?(i.push((({type:i,icon:a,title:d,isDisabled:m},_)=>({value:i,isDisabled:m,label:e(c,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:u(_),children:t(r,{gap:.5,flexWrap:"nowrap",children:[e(l,{icon:a}),e(o,{color:i!==n||m?"normal":"white",whiteSpace:"nowrap",children:d})]})})}))(a,d)),i):i,[]);return e("div",{className:Gn,children:e(N,{methods:m,onSelect:d,selectedMethod:n,fullWidth:!0,size:a,gap:.5})})};var Yn="OrderPaymentSummary-module_container__HF7-X",Kn="OrderPaymentSummary-module_row__eikWa";const qn=({textSize:i,totalPriceWithoutTax:n=0,totalPriceWithTax:l=0,deliveryFee:d=0,totalTax:s,currency:c,language:u,orderType:m})=>{const{t:_}=bi("order",{language:u}),h=X(n,c,u),p=X(l,c,u),v=X(s,c,u),g=X(d,c,u);return t(a,{className:Yn,fullWidth:!0,gap:0,children:[t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Items")}),e(o,{size:i,children:h})]}),t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Tax")}),e(o,{size:i,children:v})]}),m===it.DELIVERY&&t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Delivery Fee")}),e(o,{size:i,children:g})]}),t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,color:"bold",children:_("Total")}),e(o,{size:i,color:"bold",children:p})]})]})},Qn=()=>{const i=zt(),n=Bt(),{order:{orderType:o,paymentMethod:l},updateOrder:d}=Mt(),{totalPriceWithTaxAndFees:s,totalPriceWithoutTax:c,totalTax:u}=Ni(),{isOpen:m,isDelivering:_}=Ot(),{deliveryOrderEnabled:h,dineInOrderEnabled:g,pickupOrderEnabled:E,deliveryFeeAmount:I}=Dt(),{t:y}=bi("order"),f=[{type:it.DELIVERY,icon:Oe,title:y("Delivery"),isDisabled:!_,isVisible:h},{type:it.DINE_IN,icon:pe,title:y("Dine in"),isDisabled:!m,isVisible:g},{type:it.PICK_UP,icon:Ee,title:y("Pickup"),isDisabled:!m,isVisible:E}],b=[{value:at.CASH,label:y("Cash")},{value:at.CARD,label:y("Card")}];return t(a,{className:vn,gap:1,children:[e(Hn,{orderTypes:f,orderType:o,size:"small",onSelect:e=>d({orderType:e})}),o===it.DELIVERY&&e(Un,{}),o===it.DINE_IN&&e(R,{paddingInline:1,fullWidth:!0,children:e(jn,{})}),e(r,{className:gn,children:b.map(({label:t,value:i})=>e(p,{label:t,name:"paymentMethod",onChange:()=>d({paymentMethod:i}),checked:l===i,type:v.RADIO,size:"small",noMargin:!0},i))}),e(C,{title:y("Order summary"),content:e(Ln,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(qn,{textSize:"sm",totalPriceWithoutTax:c,totalPriceWithTax:s,totalTax:u,language:i,currency:n,deliveryFee:I,orderType:o})]})},$n=()=>{const{t:i}=bi("order"),{trackingId:r}=Mt(),n=zt(),d=Je();return t(a,{className:vn,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(l,{icon:De,size:"xxl",color:m.SUCCESS}),e(R,{paddingInline:2,children:e(o,{variant:"h1",align:"center",children:i("Your Order is Completed!")})}),e(R,{paddingInline:2,children:e(o,{align:"center",children:i("Thank you! We've received your order and it will be delivered shortly.")})}),e(R,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(L,{href:`https://${d}/${n}/order/${r}`,title:i("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},Zn=()=>{const{isOrderOpen:t,orderItems:i}=Mt(),{orderStep:r,setOrderStep:n,resetOrder:a}=Mt(),o=G(null),{t:l}=bi("order"),d=(()=>{const{order:e,orderStep:t}=Mt(),i=Li(),r=ki(),{t:n}=bi("error");return t!==ot.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===it.DELIVERY?r||i:null:n("NO_ORDER_TYPE")})(),s=!!d,c=St()&&(r===ot.CART||s),u=Q(i),m=()=>{a()};return t?e("div",{className:pn,onClick:e=>{var t,i;(null===(i=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.contains)||void 0===i?void 0:i.call(t,null==e?void 0:e.target))||m()},children:e(k,{ref:o,onClose:m,isOpen:t,title:l("Your order"),onBack:r===ot.CART?void 0:()=>{n(ot.CART)},content:(()=>{switch(r){case ot.DETAILS:return e(Qn,{});case ot.COMPLETED:return e($n,{});default:return e(kn,{})}})(),footer:e(yn,{isOrderItemsEmpty:u,orderError:d}),hasLargeFooter:c})}):null},Xn={[Ce]:({params:i})=>{const{modalRef:n,note:a}=i,[o,l]=x(a||""),{setModal:s}=d(),{updateOrder:c}=Mt(),{t:u}=bi("order"),{t:g}=bi("common");return e(_,{ref:n,header:e("div",{children:u("Add an order note")}),content:e("div",{className:yi.container,children:e(p,{type:v.TEXT_AREA,placeholder:u("Specify any allergies, special requests, or ingredients you want to add or remove"),value:o,onChange:e=>{var t;return l(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),footer:t(r,{justifyContent:"flex-end",children:[e(h,{label:g("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(h,{label:g("Save"),onClick:()=>{c({note:o}),s(null)},size:"md"})]})})},[Le]:({params:i})=>{const{t:r}=bi("auth"),{t:n}=bi("error"),{t:o}=bi("common"),{setModal:l}=d(),{setOrderStep:s,getCustomer:c,customer:u}=Mt(),[m,p]=x({phoneNumber:"",otp:"",email:""}),[v,g]=x({}),[I,y]=x(""),[f,b]=x(Pi.PHONE),T=[Pi.PHONE,Pi.OTP,Pi.EMAIL],{modalRef:A}=i,P=()=>{s(ot.DETAILS),l(null)},O=()=>{const e=T.indexOf(f),t=T[e+1];if(t)return b(t);P()},D=F(e=>t=>{p(i=>Object.assign(Object.assign({},i),{[e]:t}))},[]);return e(_,{ref:A,title:r("Create an account or log in"),onClose:()=>l(null),content:t(a,{className:Ti.content,fullWidth:!0,children:[!!I&&e(E,{message:n(I),type:"error",onClear:()=>y(""),inline:!0}),(()=>{switch(f){case Pi.OTP:return e(wi,{address:m.phoneNumber,errorMessage:null==v?void 0:v.otp,onChange:D("otp")});case Pi.EMAIL:return e(Wi,{onChange:D("email"),onCancel:P,formErrors:v});default:return e(Mi,{onChange:D("phoneNumber"),formErrors:v})}})()]}),footer:e(h,{label:o("Continue"),onClick:()=>tt(void 0,void 0,void 0,function*(){y("");try{const t=f===Pi.EMAIL,i=(null==u?void 0:u.email)===m.email,r=!!(null==u?void 0:u.email)&&!m.email;if(t&&(i||r))return O();const n=((e,t)=>{const i={},{phoneNumber:r,email:n,otp:a}=e||{};switch(t){case Pi.PHONE:{const{isValid:e,error:t}=Ge(r);e||(i.phoneNumber=t);break}case Pi.OTP:{const{isValid:e,error:t}=Ge(r);e||(i.phoneNumber=t),a&&6===a.length||(i.otp="Invalid OTP");break}case Pi.EMAIL:n&&Z(n)||(i.email="Invalid Email Address")}return i})(m,f);if(!Q(n))return g(n);switch(g({}),f){case Pi.PHONE:{const t=yield(e=m.phoneNumber,tt(void 0,void 0,void 0,function*(){return pt("customer",{phoneNumber:e})}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");break}case Pi.OTP:{const e=yield((e,t)=>tt(void 0,void 0,void 0,function*(){return pt("otp/verify",{otp:e,phoneNumber:t})}))(m.otp,m.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Fe.saveAuthToken(e);break}case Pi.EMAIL:{const e=yield Et({email:m.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield c(),O()}catch(e){y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:m})}var e}),size:"lg",fullWidth:!0})})},[ke]:({params:i})=>{const r=Ue[0].code,{getCustomer:n}=Mt(),l=zt(),s=At(),{id:c,countryCode:g=r,cityName:y="",street:f="",houseNumber:b="",floor:T,additionalNumber:A="",instructions:P="",longitude:O,latitude:D,postCode:S}=Ai(),N={addressId:c,countryCode:g,cityName:y,street:f,houseNumber:b,additionalNumber:A,instructions:P,floor:T,latitude:D,longitude:O,postCode:S},{modalRef:R}=i,{t:C}=bi("customer"),{t:L}=bi("error"),{t:k}=bi("common"),{setModal:M}=d(),[w,W]=x(N),[U,B]=x({}),[z,V]=x(""),[j,G]=x(!1),H=U.countryCode||U.cityName||U.street||U.houseNumber,Y=Si(N.street,N.houseNumber,void 0),K=e=>{var t,i;const r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.name,n=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.value;W(e=>Object.assign(Object.assign({},e),{[r]:n}))},q=()=>M(null),$=F(e=>{const t=Object.assign(Object.assign({},w),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber,latitude:e.lat,longitude:e.long,postCode:e.postCode}),i=Di(t);W(t),B(i)},[w]);return e(_,{ref:R,title:C("Update Delivery Address"),onClose:q,content:e("div",{className:Ui.content,children:t(a,{fullWidth:!0,children:[!!z&&e(E,{message:L(z),type:"error",onClear:()=>V(""),inline:!0}),t(a,{fullWidth:!0,gap:.5,children:[e(I,{onSelect:$,language:l,origin:{lat:null==s?void 0:s.latitude,lng:null==s?void 0:s.longitude},noMargin:!0,defaultAdressText:Y,placeHolder:C("Enter address"),inputLabel:C("Address")}),H&&e(o,{color:m.DANGER,children:L(H)})]}),t(u,{gap:1,children:[e(u.Item,{flex:6,children:e(p,{name:"floor",label:C("Floor"),placeholder:"7",type:v.TEXT,value:w.floor,onChange:K,errorMessage:L(U.floor)})}),e(u.Item,{flex:6,children:e(p,{name:"additionalNumber",label:C("Additional number"),placeholder:"17",type:v.TEXT,value:w.additionalNumber,onChange:K,errorMessage:L(U.additionalNumber)})})]}),e(p,{name:"instructions",placeholder:C("Example: Door code is 555"),label:C("Delivery Instructions"),type:v.TEXT,fullWidth:!0,value:w.instructions,onChange:K,errorMessage:L(U.instructions)})]})}),footer:e(h,{label:k("Save"),onClick:()=>tt(void 0,void 0,void 0,function*(){V("");try{const e=Di(w);if(!Q(e))return B(e);B({}),G(!0);const t=yield Et({address:w});if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");n(),q()}catch(e){V((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:w})}finally{G(!1)}}),size:"lg",fullWidth:!0,isLoading:j})})},[Me]:({params:t})=>{const{setModal:i}=d(),{t:r}=bi("branch"),{modalRef:n,openingHours:a,deliveryHours:o}=t;return e(_,{ref:n,onClose:()=>i(null),content:e(Fi,{openingHours:a,deliveryHours:o}),title:r("Opening Hours")})},[we]:({params:t})=>{const{product:i={},modalRef:r,closeModal:n}=t,a=zt(),o=Bt(),{addProduct:l,updateProduct:d,removeAllProductVariants:s}=Mt(),[c,u]=x(1),[m,_]=x(!1),[h,p]=x(null),[v,g]=x(null),[E,I]=x({}),{t:y}=bi("order"),f=(({productId:e,variantId:t,selectedAddons:i})=>{var r;const{orderItems:n}=Mt();return Q(n)||!e?0:(null===(r=n[ct(e,t,i)])||void 0===r?void 0:r.quantity)||0})({productId:null==i?void 0:i.id,variantId:h,selectedAddons:E}),b=(e=>{const{orderItems:t}=Mt();return Q(t)||!e?0:Object.values(t).filter(t=>t.productId===e).reduce((e,t)=>e+t.quantity,0)})(null==i?void 0:i.id),{name:T}=j(()=>nr(i,a),[i,a]),A=m?0===c:1===c,P=j(()=>y(m?0===c?"Remove from order":"Update order":"Add"),[m,c]),O=Ht(null==i?void 0:i.id),D=Boolean(i.videoUrl);H(()=>{u(f>0?f+1:1),_(f>0)},[f,i]),H(()=>{p(null),I({})},[i]);const S=F(e=>{g(e),setTimeout(()=>{g(null)},200)},[]),N=F(()=>{var e;if((null===(e=null==i?void 0:i.variants)||void 0===e?void 0:e.length)>0&&!h)return S("variant");m?d({product:i,quantity:c,variantId:h,selectedAddons:E}):(l({product:i,quantity:c,variantId:h,selectedAddons:E}),$(Er,{name:T,quantity:c})),null==n||n()},[l,n,S,m,T,i,c,E,h,d]),R=F(e=>{-1===e&&A||u(t=>Math.max(0,t+e))},[A]),C=F(({addonId:e,optionId:t,isSingle:i,isRemove:r=!1})=>{I(n=>{if(i)return Object.assign(Object.assign({},n),{[e]:t});const a=n[e]||[],o=r?a.filter(e=>e!==t):[...new Set([...a,t])];return Object.assign(Object.assign({},n),{[e]:o})})},[]);return e(hn,{modalRef:r,product:i,language:a,currency:o,selectedVariant:h,focusedSection:v,selectedAddons:E,isDecreaseDisabled:A,quantity:c,actionTitle:P,videoUrl:D?O:void 0,onClose:n,setSelectedVariant:p,onOptionSelect:C,adjustQuantity:R,onSubmit:N,removeAllProductVariants:s,productQuantityInOrderWithAllVariants:b,isInPublicMenu:!0})}},Jn=()=>{const{getCustomer:i}=Mt(),r=G(null),n=et(),a=Nt(),o=Tt()||a,l=Gt(),{url:d,domain:s}=Vt();return H(()=>{n||i()},[i,n]),Q(l)?t("div",{className:Ne,ref:r,children:[e(Ii,{}),o?e(zr,{containerRef:r}):e($i,{}),e(Gi,{size:"md",zIndex:10}),!!s&&e("a",{rel:"noopener noreferrer",target:"_blank",href:d,className:Re,children:s})]}):e(rn,{})},ea=({data:i})=>e(Ze,{value:i||{},children:e(kt,{children:t(M,{modalsMap:Xn,children:[e(Jn,{}),e(Zn,{})]})})});var ta={};const ia=({currentGoal:t,language:i,setGoal:r})=>{const{t:n}=bi("events",{language:i}),a=G({}),o=e=>{switch(e){case vr:return n("Scrolled to Category");case pr:return n("Category Selected");case gr:return n("Product Details");case Er:return n("Product Added to Order");default:return""}},l=F(e=>{var t,i;r(e),null===(i=null===(t=null==a?void 0:a.current)||void 0===t?void 0:t.close)||void 0===i||i.call(t)},[r]);return e(w,{action:o(t),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:a,menu:e("div",{className:ta.toolbarMenu,children:yr.map(t=>e(W,{onClick:()=>l(t),children:o(t)},t))})})},ra=({data:t,isLoading:i=!1,language:r,goal:n,setGoal:a})=>{const{t:o}=bi("events",{language:r});return e(U,{title:o("Events"),toolbar:e(ia,{language:r,currentGoal:n,setGoal:a}),children:i?e(P,{}):e(B,{data:t})})};var na,aa,oa={container:"Pricing-module_container__86ns8",intervals:"Pricing-module_intervals__YOrns",interval:"Pricing-module_interval__perjd",active:"Pricing-module_active__BRQhl",plans:"Pricing-module_plans__hbRn5",plan:"Pricing-module_plan__pGWAl",title:"Pricing-module_title__rMUDX",price:"Pricing-module_price__TKBkb",originalPrice:"Pricing-module_originalPrice__klyhF",discountedPrice:"Pricing-module_discountedPrice__qS7GB",action:"Pricing-module_action__08XLt",benefits:"Pricing-module_benefits__OjGx8",moneyBack:"Pricing-module_moneyBack__iEpmd",benefit:"Pricing-module_benefit__-oBt1",hasRibbon:"Pricing-module_hasRibbon__siI3P",flexWide:"Pricing-module_flexWide__mXSDX",slidein:"Pricing-module_slidein__tTiof",fadeInOut:"Pricing-module_fadeInOut__rYI0L",heightAnimation:"Pricing-module_heightAnimation__WKFZx",fadein:"Pricing-module_fadein__HeFT0",floatAnimation:"Pricing-module_floatAnimation__1VcsO",bottomSheet:"Pricing-module_bottomSheet__v4vTu",slideRightToLeft:"Pricing-module_slideRightToLeft__GpKCA",rotation:"Pricing-module_rotation__2tW8V",pulse:"Pricing-module_pulse__lxgYz"};!function(e){e.APPETIZER="appetizer",e.MAIN_COURSE="mainCourse",e.CHEFS_SPECIAL="chefsSpecial",e.LIFETIME="lifeTime"}(na||(na={})),function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(aa||(aa={}));const la={appetizer:{title:"Appetizer",price:{monthly:9,annually:7}},mainCourse:{title:"Main Course",price:{monthly:19,annually:15}},chefsSpecial:{title:"Chef's Special",price:{monthly:49,annually:39}},lifeTime:{title:"Lifetime",price:{monthly:49,annually:49},ribbonText:"Limited Time Only"}},da=[{title:"Smart QR Menu",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Link-in-bio",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Menu Analytics",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Users",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Products",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Categories",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Languages",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Product variants",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Product options",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Premium Support",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"SEO",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Sales reports",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Table Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Order Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Delivery Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Multiple Branches",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Point of Sale (POS)",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!1},{title:"Mobile App for Owners & Staff",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!1}],sa=({plan:i,language:n,interval:l,currency:d})=>{const{t:s}=bi("pricing",{language:n}),{price:c,discountedPrice:u}=la[i],m=c[l],_=i===na.LIFETIME?"/ lifetime":"/ month";return void 0!==u?t(a,{gap:0,children:[t(r,{children:[e("span",{className:oa.discountedPrice,children:X(u,d,n)}),e("span",{className:oa.originalPrice,children:X(m,d,n)})]}),e(o,{size:"sm",children:s(_)})]}):t(r,{gap:.5,children:[e(o,{size:"xxl",variant:"bold",children:X(m,d,n)}),e(o,{size:"sm",children:s(_)})]})},ca=({currency:i,language:n,isLoading:a=!1,onPlanSelect:o,onIntervalSelect:d})=>{const[s,c]=x("annually"),{t:u}=bi("pricing",{language:n}),_=[na.APPETIZER,na.MAIN_COURSE,na.CHEFS_SPECIAL],p=Boolean(o),v=p?"Choose Plan":"Try for free",g=({children:t,plan:i})=>{const{ribbonText:r}=la[i],l=Boolean(r),d={className:ee(oa,{plan:!0,hasRibbon:l}),"data-ribbon":u(r)};return o?e("div",Object.assign({},d,{onClick:()=>!a&&o(i),children:t})):e("a",Object.assign({},d,{href:Ye(n,`pricing-${i}`),target:"_blank",rel:"noreferrer noopener",children:t}))};return t("div",{className:oa.container,children:[e("div",{className:oa.intervals,children:["annually","monthly"].map(t=>e("div",{className:ee(oa,{interval:!0,active:s===t}),onClick:()=>(e=>{c(e),d&&d(e)})(t),children:u(t)},t))}),e("div",{className:oa.plans,children:_.map(o=>e(g,{plan:o,children:t(U,{children:[e("div",{className:oa.title,children:u(la[o].title)}),e("div",{className:oa.price,children:e(sa,{plan:o,language:n,interval:s,currency:i})}),e("div",{className:oa.action,children:e(h,{label:u(v),fullWidth:!0,size:"xl",type:o===na.MAIN_COURSE?m.PRIMARY:m.BORDERED_PRIMARY,onClick:()=>{},isLoading:a})}),t("div",{className:oa.benefits,children:[!p&&t(r,{className:oa.moneyBack,gap:.5,children:[e(l,{icon:Se,size:"sm",color:m.SUCCESS}),e("span",{children:u("No credit card needed")})]}),da.map(i=>t("div",{className:oa.benefit,children:[e(l,{icon:i[o]?De:be,size:"md"})," ",e("span",{children:u(i.title)})]},i.title))]})]})},o))})]})};var ua={container:"OrderFAB-module_container__YeERy",count:"OrderFAB-module_count__7ZQN5",isVisible:"OrderFAB-module_isVisible__-0j7W",animate:"OrderFAB-module_animate__Wx4O-",pulse:"OrderFAB-module_pulse__yF8uk",flexWide:"OrderFAB-module_flexWide__FfcIV",slidein:"OrderFAB-module_slidein__dniBn",fadeInOut:"OrderFAB-module_fadeInOut__BhXGd",heightAnimation:"OrderFAB-module_heightAnimation__B-TR3",fadein:"OrderFAB-module_fadein__DO09i",floatAnimation:"OrderFAB-module_floatAnimation__gOJf0",bottomSheet:"OrderFAB-module_bottomSheet__NRqrj",slideRightToLeft:"OrderFAB-module_slideRightToLeft__O8uj3",rotation:"OrderFAB-module_rotation__dOOw-"};const ma=({totalCount:i,isVisible:r,onClick:n})=>{const a=G(null),o=G(!1);return H(()=>{if(!o.current)return;const e=a.current;e&&(e.classList.remove(ua.animate),e.offsetWidth,e.classList.add(ua.animate))},[i]),H(()=>{o.current=!0},[]),t("div",{className:ee(ua,{container:!0,isVisible:r}),onClick:n,ref:a,children:[e(l,{icon:Ee,color:m.DEFAULT,size:"md"}),e("div",{className:ua.count,children:i})]})};export{br as Categories,ra as Events,ma as OrderFAB,Hn as OrderMethods,qn as OrderPaymentSummary,kt as OrderProvider,Fn as OrderTableUI,ca as Pricing,hn as ProductDetailsUI,Cr as ProductsGridItem,ea as PublicMenu,on as Quantity,Mt as useOrderContext};
1
+ import{jsx as e,jsxs as t,Fragment as i}from"react/jsx-runtime";import{Row as r,classNames as n,Column as a,Text as o,SVGIcon as l,useModalContext as d,IconLink as s,Tooltip as c,Flex as u,UIElementType as m,Modal as _,Button as h,Input as p,InputType as v,OTPInput as g,AlertBox as E,AddressAutocomplete as I,IconButton as y,Container as f,Carousel as b,CarouselItem as T,Chip as A,Loading as P,Avatar as O,TextBanner as D,Description as S,MethodSelection as N,Padding as R,Accordion as C,Link as L,Drawer as k,ModalProvider as M,DropDown as w,DropDownMenuItem as W,Card as U,BarChart as B}from"@sorocraft/ui";import{createContext as z,useContext as V,useState as x,useCallback as F,useMemo as j,useRef as G,useEffect as H,memo as Y}from"react";import{Storage as K,sortNumbers as q,isEmpty as Q,trackEvent as $,checkIsValidEmail as Z,priceFormatter as X,isNumber as J,classNames as ee,isNil as te}from"@sorocraft/js-utils";import{ChevronLeft as ie,Phone as re,Whatsapp as ne,Instagram as ae,Telegram as oe,Tiktok as le,Facebook as de,Wifi as se,Clock as ce,MarkerPin as ue,ChevronUp as me,Plus as _e,List as he,Grid as pe,PlaySquare as ve,Eye as ge,ShoppingBag as Ee,VolumeX as Ie,VolumeMax as ye,Close as fe,Minus as be,Trash as Te,PlayCircle as Ae,Edit as Pe,Delivery as Oe,Check as De,ShieldDollar as Se}from"@sorocraft/ui/icons";var Ne="PublicMenu-module_container__QLN6U",Re="PublicMenu-module_footer__6G3DQ";const Ce="ADD_UPDATE_NOTES",Le="AUTH",ke="ADD_UPDATE_ADDRESS",Me="BRANCH_BUSINESS_HOURS",we="PRODUCT_DETAILS",We=["en","az","nl","et","tr","ru"],Ue=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Be="restaround.co",ze=Be,Ve=[Be,"restaround.az","restaround.ee","restaround.nl"],xe="https://images.restaround.co",Fe=new K("restaround_cst_act","restaround_cst_rft"),je={994:e=>{const t=["50","51","10","55","99","70","77","60"];return new RegExp(`^(${t.join("|")})\\d{7}$`).test(e)?{isValid:!0}:{isValid:!1,error:`Azerbaijani numbers must be 9 digits and start with ${t.join(", ")}`}},31:e=>/^\d{9}$/.test(e)?{isValid:!0}:{isValid:!1,error:"Dutch numbers must be exactly 9 digits"}};function Ge(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const t=e.replace(/\D/g,""),i=t.startsWith("994")?"994":t.startsWith("31")?"31":null;if(!i)return{isValid:!1,error:"Unsupported country code"};const r=t.slice(i.length);return(0,je[i])(r)}const He=(e,t)=>{const i=t||"en";if("localhost:3000"===e)return{url:`http://localhost:3000/${i}`,domain:Be};const r=Ve.includes(e)?e:Be;return{url:`https://${r}/${i}`,domain:r}},Ye=(e,t)=>{const i=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${i}/auth/register?lang=${e}&utm_source=${t}`},Ke=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"",qe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"https://images.restaround.co/no-photo-128.webp",Qe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"https://images.restaround.co/restaround-doodle.webp",$e=z({}),Ze=({children:t,value:i})=>e($e.Provider,{value:i,children:t}),Xe=()=>V($e),Je=()=>{const{hostname:e}=Xe();return e||ze},et=()=>{const{isInDashboard:e}=Xe();return e||!1};function tt(e,t,i,r){return new(i||(i=Promise))(function(n,a){function o(e){try{d(r.next(e))}catch(e){a(e)}}function l(e){try{d(r.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(o,l)}d((r=r.apply(e,t||[])).next())})}var it,rt,nt,at,ot;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(it||(it={})),function(e){e.DRAFT="DRAFT",e.PENDING="PENDING",e.CONFIRMED="CONFIRMED",e.PREPARING="PREPARING",e.READY="READY",e.OUT_FOR_DELIVERY="OUT_FOR_DELIVERY",e.DELIVERED="DELIVERED",e.COMPLETED="COMPLETED",e.CANCELLED="CANCELLED",e.FAILED="FAILED"}(rt||(rt={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(nt||(nt={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}(at||(at={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(ot||(ot={}));const lt={orderType:null,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:at.CASH},dt=[ot.CART,ot.DETAILS,ot.COMPLETED];var st;!function(e){e.FIELD_REQUIRED_ERROR="This field is required",e.TABLE_NOT_SELECTED="Please select a table",e.ADDRESS_IS_EMPTY="Please enter an address",e.EMPTY_ITEMS="Please choose product",e.BRANCH_NOT_SELECTED="Please select a branch"}(st||(st={}));const ct=(e,t,i)=>{if(!e)throw new Error("Product ID is required");let r=`${e}`;t&&(r+=`-${t}`);const n=Object.entries(i||{}).map(([e,t])=>{if(!e||!t)return null;const i=Array.isArray(t)?q(t).filter(Boolean).join("-"):`${t}`;return i?`${e}-${i}`:null}).filter(Boolean).join("-");return n&&(r+=`-${n}`),r},ut=e=>{var t;const{price:i,variant:r,addons:n,quantity:a,vat:o}=e||{},l=null!==(t=null==r?void 0:r.price)&&void 0!==t?t:i,d=function(e=[],t=1){return t*e.reduce((e,t)=>{const i=(e=>e.options.reduce((e,t)=>e+t.price,0))(t);return e+i},0)}(n,1),s=l+d,c=l*(o/100),u=s+c;return{totalGross:u*a,totalNet:s*a,totalTax:c*a,itemGrossPrice:u,itemNetPrice:s,itemTax:c}},mt=e=>{switch(e){case"customer":return st.ADDRESS_IS_EMPTY;case"tableId":return st.TABLE_NOT_SELECTED;case"items":return st.EMPTY_ITEMS;case"branchId":return st.BRANCH_NOT_SELECTED;default:return st.FIELD_REQUIRED_ERROR}},_t="https://api.restaround.co/api/v1",ht=(e,t,i)=>tt(void 0,void 0,void 0,function*(){const{accessToken:r}=Fe.getAuthToken(),n=`${_t}/${t}`,a=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:r},credentials:"include",body:JSON.stringify(i)}),o=yield a.json();if(!a.ok)throw o;return o}),pt=(e,t)=>ht("POST",e,t),vt=(e,t)=>ht("PATCH",e,t),gt=e=>ht("GET",e),Et=e=>tt(void 0,void 0,void 0,function*(){return vt("customer",e)}),It=(...e)=>tt(void 0,[...e],void 0,function*(e=null,t={}){try{return $("error",{message:null==e?void 0:e.message}),yield fetch(`${_t}/log`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Object.assign({message:(null==e?void 0:e.message)||JSON.stringify(e)},t))})}catch(e){console.error(e)}}),yt=(e,t)=>{var i;return null===(i=((null==e?void 0:e.days)||[]).find(({day:e})=>e===t))||void 0===i?void 0:i.hours},ft=e=>(e||"").split(":").map(Number),bt=e=>{if(!e)return!1;const t=new Date,[i,r]=ft(e.openAt),[n,a]=ft(e.closeAt),o=new Date(t);o.setHours(i,r,0,0);const l=new Date(t);return l.setHours(n,a,0,0),l<=o&&(t<l?o.setDate(o.getDate()-1):l.setDate(l.getDate()+1)),t>=o&&t<=l},Tt=()=>{const{branches:e}=Xe();return(e||[]).length<=1},At=()=>{const{branches:e,branchId:t}=Xe(),i=Tt();return Q(e)?{}:i?e[0]:e.find(e=>e.id===Number(t))||{}},Pt=()=>{const e=At();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},Ot=()=>{const e=At(),{openingHours:t,deliveryHours:i}=e||{};if(!(null==t?void 0:t.days)||!(null==i?void 0:i.days))return{isOpen:!1,isDelivering:!1};const r=((new Date).getUTCDay()+6)%7,n=yt(t,r),a=yt(i,r);return{isOpen:bt(n),isDelivering:bt(a)}},Dt=()=>{const e=At();return(null==e?void 0:e.settings)||{}},St=()=>{const e=Dt();if(Q(e))return!1;const{deliveryOrderEnabled:t,dineInOrderEnabled:i,pickupOrderEnabled:r}=e;return t||i||r},Nt=()=>{const{branchId:e}=Xe();return e},Rt=()=>{const{onBranchSelect:e}=Xe();return e},Ct=({defaultOrderType:e,defaultPaymentMethod:t,defaultBranchId:i})=>{const r=(()=>{const{tableId:e}=Xe();return e})(),{isOpen:n,isDelivering:a}=Ot(),o=Dt(),l=e||((e,t,i)=>{if(!e)return null;const{deliveryOrderEnabled:r,dineInOrderEnabled:n,pickupOrderEnabled:a}=e;return r&&i?it.DELIVERY:n&&t?it.DINE_IN:a&&t?it.PICK_UP:null})(o,n,a);return{branchId:i,orderType:l,tableId:r?Number(r):void 0,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:t||at.CASH}},Lt=z({order:lt,orderStep:ot.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",errors:{},updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),kt=({children:t,defaultOrderType:i,defaultPaymentMethod:r,defaultBranchId:n,isOrderDefaultOpen:a=!1})=>{const o=Ct({defaultOrderType:i,defaultPaymentMethod:r,defaultBranchId:n}),[l,d]=x({}),[s,c]=x(o),[u,m]=x(ot.CART),[_,h]=x({}),[p,v]=x(a),[g,E]=x(""),[I,y]=x({}),f=F(e=>{c(t=>Object.assign(Object.assign({},t),e)),["branchId","tableId"].forEach(t=>{e[t]&&(null==I?void 0:I[t])&&y(e=>Object.assign(Object.assign({},e),{[t]:null}))})},[I]),b=F(({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:a})=>{if(Q(e)||t<0)return;const{id:o,vat:l=0,variants:d,addons:s,price:c}=e,u=ct(o,i,r);h(e=>{const m=e[u],_=a?((null==m?void 0:m.quantity)||0)+t:t;if(_<=0){const t=e,i=u;t[i];return function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(e);n<r.length;n++)t.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(e,r[n])&&(i[r[n]]=e[r[n]])}return i}(t,["symbol"==typeof i?i:i+""])}const h=d.find(({id:e})=>e===i),p=((e=[],t={})=>Object.entries(t).map(([t,i])=>{const r=Number(t),n=Array.isArray(i)?i:[i],a=e.find(e=>e.id===r);if(Q(a))return{addonId:r,options:[]};const o=(a.options||[]).filter(e=>n.includes(e.id)).map(e=>({optionId:e.id,price:e.price}));return{addonId:r,options:o}}))(s,r);return Object.assign(Object.assign({},e),{[u]:Object.assign(Object.assign({productId:o,quantity:_,price:c,note:n,vat:l},!Q(h)&&{variant:{variantId:h.id,price:h.price}}),{addons:p})})}),a&&(null==I?void 0:I.items)&&y(e=>Object.assign(Object.assign({},e),{items:null}))},[null==I?void 0:I.items]),T=F(({product:e,quantity:t=1,variantId:i,selectedAddons:r,note:n})=>b({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:!0}),[b]),A=F(({product:e,quantity:t=1,variantId:i,selectedAddons:r,note:n})=>b({product:e,quantity:t,variantId:i,selectedAddons:r,note:n,isAddOperation:!1}),[b]),P=F(e=>{if(!e||Q(_))return;const t=Object.entries(_).reduce((t,[i,r])=>(r.productId!==e&&(t[i]=r),t),{});h(t)},[_]),O=F(()=>tt(void 0,void 0,void 0,function*(){try{const{accessToken:e}=Fe.getAuthToken();if(!e)return;const t=yield tt(void 0,void 0,void 0,function*(){return gt("customer")});if(!(null==t?void 0:t.id))throw new Error("SOMETHING_WENT_WRONG");d(t)}catch(e){It(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),D=F((e=!1,t=!0)=>{t&&v(!1),(u===ot.COMPLETED||e)&&(c(o),h({}),m(ot.CART),E(""))},[o,u]),S=F(e=>{y(t=>Object.assign(Object.assign({},t),{[e]:mt(e)}))},[]),N=F(()=>{y({})},[]),R=j(()=>({order:s,orderStep:u,orderItems:_,isOrderOpen:p,customer:l,trackingId:g,errors:I,updateOrder:f,setOrderStep:m,addProduct:T,updateProduct:A,removeAllProductVariants:P,setIsOrderOpen:v,getCustomer:O,resetOrder:D,setTrackingId:E,updateOrderErrors:S,resetErrors:N}),[s,u,_,p,l,g,I,f,T,A,P,O,D,E,S,N]);return e(Lt.Provider,{value:R,children:t})},Mt=()=>V(Lt);var wt,Wt;!function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount",e.DELIVERY_FEE_AMOUNT="deliveryFeeAmount"}(wt||(wt={})),function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(Wt||(Wt={}));const Ut=()=>{const{business:e}=Xe();return e||{}},Bt=()=>{const{currency:e}=Ut();return e||"AZN"},zt=()=>{const{language:e}=Xe();return e||"en"},Vt=()=>{const e=Je(),t=zt();return j(()=>He(e,t),[e,t])},xt=()=>{const{url:e}=Vt(),t=(()=>{const{username:e}=Ut();return e||""})();return j(()=>`${e}/${t}`,[e,t])},Ft=()=>{const{videoId:e}=Xe();return e},jt=()=>{const{videos:e}=Xe();return j(()=>e||[],[e])},Gt=()=>{const e=jt(),t=Ft();return j(()=>t&&e.find(e=>e.productId===Number(t))||{},[e,t])};const Ht=e=>{const t=xt(),i=Nt();let r=t;return i&&(r+=`/${i}`),e&&(r+=`/videos/${e}`),r},Yt=()=>{const e=(()=>{const e=jt();return j(()=>e[0],[e])})(),t=Ht(null==e?void 0:e.productId);return Q(e)?"":t};var Kt="BusinessHeader-module_container__X22c3",qt="BusinessHeader-module_cover__l-1W8",Qt="BusinessHeader-module_content__sjiqO",$t="BusinessHeader-module_logo__DWaaU",Zt="BusinessHeader-module_info__6RQFI",Xt="BusinessHeader-module_name__Ynpex",Jt={container:"Languages-module_container__nJeK1",currentLanguage:"Languages-module_currentLanguage__EFw6Q",options:"Languages-module_options__6jLRm",option:"Languages-module_option__QkVQd",isOpen:"Languages-module_isOpen__eUGbg",flexWide:"Languages-module_flexWide__zQ9jN",slidein:"Languages-module_slidein__C4UHU",fadeInOut:"Languages-module_fadeInOut__U-vhH",heightAnimation:"Languages-module_heightAnimation__gIQkF",fadein:"Languages-module_fadein__vPmsX",floatAnimation:"Languages-module_floatAnimation__L-kPH",bottomSheet:"Languages-module_bottomSheet__-t-q8",slideRightToLeft:"Languages-module_slideRightToLeft__y0l-f",rotation:"Languages-module_rotation__gp8P5",pulse:"Languages-module_pulse__h9hxJ"};const ei=()=>{const[i,a]=x(!1),o=Ut().languages||[],l=zt(),d=(()=>{const{onLanguageSelect:e}=Xe();return e})(),s=o.length>1,c=o.filter(({code:e})=>e!==l)||[],u=e=>`https://images.restaround.co/languages/${e}.svg`;return s?e("div",{className:Jt.container,onClick:()=>a(!i),children:t(r,{alignItems:"center",gap:0,children:[e(r,{alignItems:"center",className:n(Jt,{options:!0,isOpen:i}),children:c.map(({code:t})=>e("img",{src:u(t),className:Jt.option,onClick:()=>null==d?void 0:d(t),alt:t},t))}),e("img",{src:u(l),alt:l,className:Jt.currentLanguage})]})}):null},ti=()=>{const{coverPhoto:i,avatar256:r,name:n}=Ut();return t("div",{className:Kt,children:[e("img",{src:Qe(i),alt:n,className:qt,width:1024,height:400}),e("div",{className:Qt,children:t(a,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:Kt,children:[e("img",{src:qe(r),alt:n,className:$t,width:96,height:96}),e("div",{className:Zt,children:e(o,{variant:"h1",color:"white",className:Xt,align:"center",children:n})})]})}),e(ei,{})]})};var ii="BranchHeader-module_container__Ol56f",ri="BranchHeader-module_cover__DGWZX",ni="BranchHeader-module_content__O8E27",ai="BranchHeader-module_logo__DL7Si",oi="BranchHeader-module_info__Ym-ln",li="BranchHeader-module_name__91VkO",di="BranchHeader-module_address__Y140r",si="BranchHeader-module_addressText__ofVQQ",ci="BackIcon-module_container__uknWc";const ui=({onClick:t,size:i,theme:r})=>{const n=xt(),a=et(),o=Rt();return e("div",{className:ci,onClick:t||(()=>{if(a)return null==o?void 0:o("");"undefined"!=typeof window&&(window.location.href=n)}),children:e(l,{icon:ie,size:i,theme:r})})};var mi="HeaderLinks-module_container__wfIXS",_i="HeaderLinks-module_links__S5qXC",hi="HeaderLinks-module_wifiPassword__j4cgP",pi="HeaderLinks-module_businessHours__qVA-Q",vi="HeaderLinks-module_icon__cQpBK";const gi=()=>{const{setModal:i}=d(),{phone:n,wifiPassword:a,whatsApp:o,telegram:u,openingHours:m,deliveryHours:_}=At(),{instagram:h,tiktok:p,facebook:v}=Ut(),g=!Q(null==m?void 0:m.days)||!Q(null==_?void 0:_.days);return e("div",{className:mi,children:e("div",{className:_i,children:e(r,{gap:2,alignItems:"center",children:t(r,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!n&&e(s,{icon:re,href:`tel:+${n}`,size:"sm",shape:"circle",theme:"light"}),!!o&&e(s,{icon:ne,href:`https://wa.me/${o}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:ae,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!u&&e(s,{icon:oe,href:u,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!p&&e(s,{icon:le,href:p,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!v&&e(s,{icon:de,href:v,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!a&&e(c,{hint:a,children:e("div",{className:hi,children:e(l,{icon:se,size:"sm",className:vi})})}),g&&e("div",{className:pi,onClick:()=>{i({id:Me,params:{openingHours:m,deliveryHours:_}})},children:e(l,{icon:ce,size:"sm",className:vi})})]})})})})},Ei=()=>{const{coverPhoto:i,avatar256:n}=Ut(),d=(()=>{const{business:e}=Xe(),t=At(),i=Tt(),r=(null==e?void 0:e.name)||"Restaround";return i?r:(null==t?void 0:t.name)?`${r} ${t.name}`:r})(),s=At().address||"",c=Tt(),{latitude:_,longitude:h}=Pt(),p=`https://www.google.com/maps/place/${_},${h}`;return t("div",{className:ii,children:[e("img",{src:Qe(i),alt:d,className:ri,width:1024,height:400}),e("div",{className:ni,children:t(a,{justifyContent:c?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!c&&e(ui,{size:"lg",theme:"dark-theme"}),t(u,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(u.Item,{children:e("img",{src:qe(n),alt:d,className:ai,width:96,height:96})}),e(u.Item,{shrink:!0,className:oi,children:t(a,{gap:.5,children:[e(o,{className:li,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:d}),e("a",{className:di,href:p,target:"_blank",rel:"noopener noreferrer",children:t(r,{alignItems:"center",gap:.5,children:[e(l,{icon:ue,color:m.DEFAULT}),e("span",{className:si,children:s})]})})]})})]})]})}),e(ei,{}),e(gi,{})]})},Ii=()=>{const t=At();return Tt()||!Q(t)?e(Ei,{}):e(ti,{})};var yi={},fi={az:{error:{SOMETHING_WRONG:"Xəta baş verdi! Zəhmət olmazsa, yenidən cəhd edin.",FIELD_REQUIRED:"Bu xananı doldurmaq mütləqdir","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azərbaycan nömrələri 9 rəqəmli olur və 50, 51, 10, 55, 99, 70, 77 və ya 60 ilə başlamalıdır","Unsupported country code":"Ölkə kodu düzgün deyil","Invalid OTP":"Təsdiq kodu düzgün deyil",INVALID_OTP:"Təsdiq kodu düzgün deyil",OTP_RATE_LIMIT_EXCEEDED:"Təsdiq kodu göndərmək üçün limiti keçmisiniz. Biraz sonra, yenidən yoxlayın","Invalid Email Address":"Email ünvanı düzgün deyil",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu funksiya mövcud tarif planınıza daxil deyil.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sifariş növü aktiv deyil",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sifariş növü indi aktiv deyil",COUNTRY_REQUIRED:"Ölkə daxil edilməlidir.",CITY_REQUIRED:"Şəhər daxil edilməlidir.",STREET_REQUIRED:"Küçə adı daxil edilməlidir.",STREET_NUMBER_REQUIRED:"Ev nömrəsi daxil edilməlidir.",OUT_OF_DELIVERY_RANGE:"Bu filial sizin ünvana çatdırılma etmir.",NO_ORDER_TYPE:"Zəhmət olmazsa, sifariş növünü seçin."},common:{Save:"Yadda saxla",Cancel:"Ləğv et",Continue:"Davam et"},order:{"View order":"Şifarişi göstər","Remove from order":"Sifarişdən sil","Update order":"Sifarişi yenilə","Add to order":"Sifarişə əlavə et",Add:"Əlavə et","Your order":"Sifarişiniz",Subtotal:"Ümumi","Empty order":"Boş sifariş","You don't have any items in your order":"Sifarişinizdə heç bir məhsul yoxdur","Add items":"Məhsul əlavə et","Add an order note":"Restoran üçün qeyd","Specify any allergies, special requests, or ingredients you want to add or remove":"Hər hansısa allergiyanız, xüsusi istəkləriniz və ya əlavə etmək, çıxarmaq istədiyiniz inqrediyentlər varsa, qeyd edin.","Your Order is Completed!":"Sifarişiniz tamamlandı!","Thank you! We've received your order and it will be delivered shortly.":"Təşəkkür edirik! Sifarişinizi qəbul etdik, qısa zamanda çatdırılacaq.",Delivery:"Çatdırılma","Dine in":"Masaya",Pickup:"Al-apar",Cash:"Nağd","POS Terminal":"POS Terminal","Order summary":"Sifarişdəki məhsullar",Items:"Məhsullar",Tax:"Vergi",Total:"Cəm","Special instructions, allergies, etc.":"Xüsusi istəklər, allergiya və s.","Go to checkout":"Ödənişə keç","Place order":"Sifariş et",Continue:"Davam et","Not available":"Mövcud deyil","In order":"Sifarişdə","Product choices":"Seçimlər","Track order":"Sifarişi izlə","Minimum order amount for delivery is {{amount}}":"Çatdırılma üçün sifarişiniz minimum {{amount}} olmalıdır","This field is required":"Bu xana mütləq doldurulmalıdır","Please select a table":"Zəhmət olmazsa, masanı seçin","Please enter an address":"Zəhmət olmazsa, ünvanı daxil edin","Please choose product":"Zəhmət olmazsa, məhsul seçin",Table:"Masa","Select Table":"Masanı seçin",Card:"Kart ilə","Closed Now":"Hazırda bağlıdır","Delivery Fee":"Çatdırılma","Play video":"Videonu izlə"},customer:{"Unknown address":"Ünvan əlavə edilməyib","No address available":"Ünvan əlavə edilməyib","Update Delivery Address":"Çatdırılma ünvanını dəyişin",Country:"Ölkə",City:"Şəhər","Baker Street":"Nizami küçəsi",Address:"Ünvan","House number":"Ev nömrəsi","Additional number":"Mənzil","Example: Door code is 555":"Nümunə: Qapı kodu 555","Delivery Instructions":"Kuryer üçün təlimatlar",Azerbaijan:"Azərbaycan",Floor:"Mərtəbə","Enter address":"Ünvanı daxil edin"},auth:{"Create an account or log in":"Hesab yarat və ya daxil ol","Phone number":"Mobil nömrə","I don't have an email":"Email ünvanım yoxdur","We sent a confirmation code to {{address}}":"{{address}} üçün təsdiq kodunu göndərdik"},events:{Events:"Hərəkətlər","Scrolled to Category":"Kateqoriyaya sürüşdürdü","Category Selected":"Kateqoriya seçildi","Product Details":"Məhsul detalına baxıldı","Product Added to Order":"Sifarişə əlavə edildi"},pricing:{"Get Started":"İndi başla","Choose Plan":"Planı seçin","Smart QR Menu":"Ağıllı QR Menyu","Link-in-bio":"Bio üçün link","Menu Analytics":"Menyu analitikası","Unlimited Products":"Limitsiz məhsul","Unlimited Categories":"Limitsiz kateqoriya","Product variants":"Məhsul variantları","Product options":"Məhsul əlavələri","Sales reports":"Satış hesabatı","24/7 Support":"24/7 dəstək","Multiple Branches":"Şöbələr","Order Management":"Sifarişlərin idarə edilməsi","Table Management":"Masaların idarə edilməsi","Mobile App for Owners & Staff":"Rəhbərlik və ofisiantlar üçün Mobil tətbiq","Point of Sale (POS)":"POS-kassa","Delivery Management":"Çatdırılmaların idarə edilməsi","Third-Party Delivery Integrations":"Çatdırılma partnyorlarının inteqrasiyası","RestaroundPay with Mobile":"RestaroundPay ilə ödəniş","Event management":"Tədbirlərin idarəsi","Unlimited Users":"Limitsiz istifadəçi","/ month":"/ Ay",monthly:"Aylıq plan",annually:"İllik plan","Flexible Plans for Every Business - Simple Pricing, More Value!":"Hər biznesə uyğun tariflər - Sadə qiymətlər, daha çox dəyər!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Biznesinizə uyğun tarif planını seçin. Aylıq və ya illik abunə olun, uzunmüddətli planlarla daha çox qazanın!",Appetizer:"Lite","Main Course":"Plus","Unlimited Languages":"Limitsiz dil seçimi","30-day money-back guarantee":"30 gün ərzində narazı qalsanız, ödəniş geri qaytarılır.","Limited Time Only":"Məhdud müddətə","/ lifetime":"/ birdəfəlik","Try for free":"Pulsuz yoxla","No credit card needed":"Kart tələb olunmur"},branch:{"WEEKDAY-0":"Bazar ertəsi","WEEKDAY-1":"Çərşənbə axşamı","WEEKDAY-2":"Çərşənbə","WEEKDAY-3":"Cümə axşamı","WEEKDAY-4":"Cümə","WEEKDAY-5":"Şənbə","WEEKDAY-6":"Bazar",Closed:"Bağlıdır","Opening Hours":"İş saatları","Delivery Hours":"Çatdırılma saatları"}},en:{error:{SOMETHING_WRONG:"Something went wrong! Please try again later",FIELD_REQUIRED:"This field is required",INVALID_OTP:"Invalid OTP",OTP_RATE_LIMIT_EXCEEDED:"OTP limit has exceeded. Please try again later",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"This feature is not available for your current plan.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"This order type is not available for this business.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"This order type is not available right now.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required.",OUT_OF_DELIVERY_RANGE:"This branch doesn't deliver to your address.",NO_ORDER_TYPE:"Please select an order type."},common:{},order:{},customer:{},auth:{},events:{},pricing:{},branch:{"WEEKDAY-0":"Monday","WEEKDAY-1":"Tuesday","WEEKDAY-2":"Wednesday","WEEKDAY-3":"Thursday","WEEKDAY-4":"Friday","WEEKDAY-5":"Saturday","WEEKDAY-6":"Sunday"}},ru:{error:{SOMETHING_WRONG:"Что-то пошло не так! Пожалуйста, попробуйте позже",FIELD_REQUIRED:"Это поле обязательно для заполнения","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Азербайджанские номера должны содержать 9 цифр и начинаться с 50, 51, 10, 55, 99, 70, 77 или 60","Unsupported country code":"Неподдерживаемый код страны","Invalid OTP":"Неверный код подтверждения",INVALID_OTP:"Неверный код подтверждения",OTP_RATE_LIMIT_EXCEEDED:"Превышен лимит кодов. Попробуйте позже","Invalid Email Address":"Неверный адрес электронной почты",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Эта функция недоступна в вашем текущем тарифе.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Этот тип заказа недоступен для этого заведения.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Этот тип заказа сейчас недоступен.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен.",OUT_OF_DELIVERY_RANGE:"Этот филиал не доставляет по вашему адресу.",NO_ORDER_TYPE:"Пожалуйста, выберите тип заказа."},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ",Add:"Добавить","Your order":"Ваш заказ","Empty order":"Пустой заказ","You don't have any items in your order":"В вашем заказе нет продуктов","Add items":"Добавить продукты",Subtotal:"Итого",Events:"События","Product choices":"Варианты продукта","In order":"В заказе","Not available":"Не доступен","Specify any allergies, special requests, or ingredients you want to add or remove":"Укажите, если у вас есть аллергия, особые пожелания или ингредиенты, которые вы хотите добавить или убрать.","Thank you! We've received your order and it will be delivered shortly.":"Спасибо! Мы получили ваш заказ и скоро доставим его.","Go to checkout":"Перейти к оплате","Add an order note":"Добавить примечание к заказу","Your Order is Completed!":"Ваш заказ завершен!",Delivery:"Доставка","Dine in":"На месте",Pickup:"Самовывоз",Cash:"Наличные","POS Terminal":"POS-терминал","Order summary":"Обзор заказа",Items:"Продукты",Tax:"Налог",Total:"Итого","Special instructions, allergies, etc.":"Особые инструкции, аллергии и т.д.","Place order":"Оформить заказ",Continue:"Продолжить","Track order":"Отследить заказ","Minimum order amount for delivery is {{amount}}":"Минимальная сумма заказа для доставки — {{amount}}","This field is required":"Это поле обязательно для заполнения","Please select a table":"Пожалуйста, выберите столик","Please enter an address":"Пожалуйста, введите адрес","Please choose product":"Пожалуйста, выберите продукт",Table:"Стол","Select Table":"Выбрать столик",Card:"Картой","Closed Now":"Сейчас закрыто","Delivery Fee":"Доставка","Play video":"Смотреть видео"},customer:{"Unknown address":"Неизвестный адрес","No address available":"Адрес не доступен","Update Delivery Address":"Обновить адрес доставки",Country:"Страна",City:"Город","Baker Street":"Улица Низами",Address:"Адрес","House number":"Номер дома","Additional number":"Квартира","Example: Door code is 555":"Пример: Код двери 555","Delivery Instructions":"Инструкции по доставке",Azerbaijan:"Азербайджан",Floor:"Этаж","Enter address":"Введите адрес"},auth:{"Create an account or log in":"Создайте аккаунт или войдите","Phone number":"Номер телефона","I don't have an email":"У меня нет электронной почты","We sent a confirmation code to {{address}}":"Мы отправили код подтверждения на {{address}}"},events:{Events:"События","Scrolled to Category":"Прокрутил до категории","Category Selected":"Категория выбрана","Product Details":"Детали продукта","Product Added to Order":"Продукт добавлен в заказ"},pricing:{"Get Started":"Начать","Choose Plan":"Выберите план","Smart QR Menu":"Умное меню по QR-коду","Link-in-bio":"Ссылка в био","Menu Analytics":"Аналитика меню","Unlimited Users":"Неограниченные пользователи","Unlimited Products":"Неограниченные продукты","Unlimited Categories":"Неограниченные категории","Product variants":"Варианты продуктов","Product options":"Дополнения к продукту","Sales reports":"Отчеты о продажах","24/7 Support":"24/7 техническая поддержка","Multiple Branches":"Многочисленные филиалы","Table Management":"Управление столами","Order Management":"Управление заказами","Mobile App for Owners & Staff":"Мобильное приложение для владельцев и персонала","Point of Sale (POS)":"POS-касса","Delivery Management":"Управление доставкой","Third-Party Delivery Integrations":"Интеграция со сторонними поставщиками","RestaroundPay with Mobile":"«RestaroundPay» с мобильного","Event management":"Управление мероприятиями","/ month":"/ месяц",monthly:"Ежемесячный план",annually:"Годовой план","Flexible Plans for Every Business - Simple Pricing, More Value!":"Тарифы для любого бизнеса - Простой прайс, больше возможностей!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Выберите тарифный план, который подходит вашему бизнесу. Подписывайтесь помесячно или ежегодно и экономьте больше с долгосрочными планами!","Unlimited Languages":"Неограниченное количество языков","30-day money-back guarantee":"Гарантия возврата денег в течение 30 дней","Limited Time Only":"Только ограниченное время","/ lifetime":"/ разово","Try for free":"Попробуйте бесплатно","No credit card needed":"Кредитная карта не требуется"},branch:{"WEEKDAY-0":"Понедельник","WEEKDAY-1":"Вторник","WEEKDAY-2":"Среда","WEEKDAY-3":"Четверг","WEEKDAY-4":"Пятница","WEEKDAY-5":"Суббота","WEEKDAY-6":"Воскресенье",Closed:"Закрыто","Opening Hours":"Часы работы","Delivery Hours":"Время доставки"}},tr:{error:{SOMETHING_WRONG:"Bir şeyler yanlış gitti! Lütfen daha sonra tekrar deneyin",FIELD_REQUIRED:"Bu alan zorunludur","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azerbaycan numaraları 9 haneli olmalı ve 50, 51, 10, 55, 99, 70, 77 veya 60 ile başlamalıdır","Unsupported country code":"Desteklenmeyen ülke kodu","Invalid OTP":"Geçersiz doğrulama kodu",INVALID_OTP:"Geçersiz doğrulama kodu",OTP_RATE_LIMIT_EXCEEDED:"OTP sınırı aşıldı. Lütfen daha sonra tekrar deneyin","Invalid Email Address":"Geçersiz e-posta adresi",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu özellik mevcut planınızda yer almıyor.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sipariş türü bu işletmede aktif değil.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sipariş türü şu anda aktif değil.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur.",OUT_OF_DELIVERY_RANGE:"Bu şube sizin adrese teslimat yapmıyor.",NO_ORDER_TYPE:"Lütfen bir sipariş türü seçin."},common:{Save:"Kaydet",Cancel:"İptal et",Continue:"Devam et"},order:{"View order":"Siparişi Görüntüle","Remove from order":"Siparişten Kaldır","Update order":"Siparişi Güncelle","Add to order":"Siparişe Ekle",Add:"Ekle","Your order":"Siparişiniz","Empty order":"Boş sipariş","You don't have any items in your order":"Siparişinizde hiç bir ürün yok","Add items":"Ürün ekle",Subtotal:"Toplam",Events:"Olaylar","Product choices":"Seçenekler","In order":"Siparişte","Not available":"Mevcut değil","Specify any allergies, special requests, or ingredients you want to add or remove":"Herhangi bir alerjiniz, özel isteğiniz ya da eklemek veya çıkarmak istediğiniz malzemeler varsa belirtin.","Thank you! We've received your order and it will be delivered shortly.":"Teşekkürler! Siparişinizi aldık, kısa süre içinde teslim edilecek.","Go to checkout":"Ödemeye geç","Add an order note":"Sipariş notu ekle","Your Order is Completed!":"Siparişiniz tamamlandı!",Delivery:"Teslimat","Dine in":"Masaya",Pickup:"Al götür",Cash:"Nakit","POS Terminal":"POS Terminali","Order summary":"Sipariş özeti",Items:"Ürünler",Tax:"Vergi",Total:"Toplam","Special instructions, allergies, etc.":"Özel talimatlar, alerjiler vb.","Place order":"Sipariş ver",Continue:"Devam et","Track order":"Siparişi takip et","Minimum order amount for delivery is {{amount}}":"Teslimat için minimum sipariş tutarı {{amount}} olmalı","This field is required":"Bu alan zorunludur","Please select a table":"Lütfen bir masa seçin","Please enter an address":"Lütfen bir adres girin","Please choose product":"Lütfen bir ürün seçin",Table:"Masa","Select Table":"Masa seçin",Card:"Kart ile","Closed Now":"Şu anda kapalı","Delivery Fee":"Teslimat ücreti","Play video":"Videoyu izle"},customer:{"Unknown address":"Bilinmeyen adres","No address available":"Adres mevcut değil","Update Delivery Address":"Teslimat adresini güncelle",Country:"Ülke",City:"Şehir","Baker Street":"Istiklal Caddesi",Address:"Adres","House number":"Ev numarası","Additional number":"Daire numarası","Example: Door code is 555":"Örnek: Kapı kodu 555","Delivery Instructions":"Teslimat talimatları",Azerbaijan:"Azerbaycan",Floor:"Kat","Enter address":"Adres girin"},auth:{"Create an account or log in":"Hesap oluştur veya giriş yap","Phone number":"Telefon numarası","I don't have an email":"E-posta adresim yok","We sent a confirmation code to {{address}}":"{{address}} için doğrulama kodu gönderdik"},events:{Events:"Etkinlikler","Scrolled to Category":"Kategoriye kaydırıldı","Category Selected":"Kategori seçildi","Product Details":"Ürün Detayları","Product Added to Order":"Ürün siparişe eklendi"},pricing:{"Get Started":"Hemen Başla","Choose Plan":"Planı seçin","Smart QR Menu":"Akıllı QR Menü","Link-in-bio":"Bio için link","Menu Analytics":"Menü Analitiği","Unlimited Users":"Sınırsız kullanıcı","Unlimited Products":"Sınırsız ürün","Unlimited Categories":"Sınırsız kategori","Product variants":"Ürün çeşitleri","Product options":"Ürün seçenekleri","Sales reports":"Satış raporu","24/7 Support":"24/7 Teknik Destek","Multiple Branches":"Şube Yönetimi","Table Management":"Masa Yönetimi","Order Management":"Sipariş Yönetimi","Mobile App for Owners & Staff":"Patron ve Personel için Mobil Uygulama","Point of Sale (POS)":"POS Adisyon Sistemi","Delivery Management":"Paket sipariş yönetimi","Third-Party Delivery Integrations":"Üçüncü Parti Teslimat Entegrasyonları","RestaroundPay with Mobile":"Mobil ile RestaroundPay","Event management":"Etkinlik yönetimi","/ month":"/ Ay",monthly:"Aylık",annually:"Yıllık","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"İşletmenize uygun abonelik planını seçin. Aylık veya yıllık abone olun, uzun vadeli planlarla daha fazla tasarruf edin!","Flexible Plans for Every Business - Simple Pricing, More Value!":"Her işletmeye uygun esnek planlar - Basit fiyatlandırma, daha fazla avantaj!","Unlimited Languages":"Sınırsız dil seçeneği","30-day money-back guarantee":"30 gün içinde memnun kalmazsanız, paranız iade.","Limited Time Only":"Sınırlı süreyle","/ lifetime":"/ tek seferlik","Try for free":"Ücretsiz dene","No credit card needed":"Kredi kartı gerekmez"},branch:{"WEEKDAY-0":"Pazartesi","WEEKDAY-1":"Salı","WEEKDAY-2":"Çarşamba","WEEKDAY-3":"Perşembe","WEEKDAY-4":"Cuma","WEEKDAY-5":"Cumartesi","WEEKDAY-6":"Pazar",Closed:"Kapalı","Opening Hours":"Çalışma saatleri","Delivery Hours":"Teslimat saatleri"}},nl:{error:{SOMETHING_WRONG:"Er is iets misgegaan! Probeer het later opnieuw",FIELD_REQUIRED:"Dit veld is verplicht","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Azerbeidzjaanse nummers moeten 9 cijfers bevatten en beginnen met 50, 51, 10, 55, 99, 70, 77 of 60","Unsupported country code":"Niet-ondersteunde landcode","Invalid OTP":"Ongeldige verificatiecode",INVALID_OTP:"Ongeldige verificatiecode",OTP_RATE_LIMIT_EXCEEDED:"Te veel pogingen. Probeer het later opnieuw","Invalid Email Address":"Ongeldig e-mailadres",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Deze functie is niet beschikbaar in je huidige pakket.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Dit type bestelling is niet beschikbaar bij dit bedrijf.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Dit besteltype is op dit moment niet beschikbaar.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht.",OUT_OF_DELIVERY_RANGE:"Deze vestiging bezorgt niet op jouw adres.",NO_ORDER_TYPE:"Selecteer een besteltype."},common:{Save:"Opslaan",Cancel:"Annuleren",Continue:"Doorgaan"},order:{"View order":"Bestelling bekijken","Remove from order":"Uit bestelling verwijderen","Update order":"Bestelling bijwerken","Add to order":"Aan bestelling toevoegen",Add:"Toevoegen","Your order":"Uw bestelling","Empty order":"Lege bestelling","You don't have any items in your order":"U heeft geen items in uw bestelling","Add items":"Items toevoegen",Subtotal:"Totaal",Events:"Gebeurtenissen","Product choices":"Productkeuzes","In order":"In bestelling","Not available":"Niet beschikbaar","Specify any allergies, special requests, or ingredients you want to add or remove":"Geef eventuele allergieën, speciale wensen of ingrediënten die je wilt toevoegen of weglaten aan.","Thank you! We've received your order and it will be delivered shortly.":"Bedankt! We hebben je bestelling ontvangen en bezorgen het zo snel mogelijk.","Go to checkout":"Ga naar afrekenen","Add an order note":"Voeg een bestelopmerking toe","Your Order is Completed!":"Je bestelling is voltooid!",Delivery:"Levering","Dine in":"Ter plaatse",Pickup:"Meenemen",Cash:"Contant","POS Terminal":"POS Terminal","Order summary":"Bestellingsoverzicht",Items:"Items",Tax:"Belasting",Total:"Totaal","Special instructions, allergies, etc.":"Speciale instructies, allergieën, enz.","Place order":"Plaats bestelling",Continue:"Doorgaan","Track order":"Volg je bestelling","Minimum order amount for delivery is {{amount}}":"Minimale bestelbedrag voor bezorging is {{amount}}","This field is required":"Dit veld is verplicht","Please select a table":"Selecteer alstublieft een tafel","Please enter an address":"Vul alstublieft een adres in","Please choose product":"Kies alstublieft een product",Table:"Tafel","Select Table":"Kies tafel",Card:"Met je Betaalpas","Closed Now":"Nu gesloten","Delivery Fee":"Bezorgkosten","Play video":"Bekijk video"},customer:{"Unknown address":"Onbekend adres","No address available":"Geen adres beschikbaar","Update Delivery Address":"Werk het afleveradres bij",Country:"Land",City:"Stad","Baker Street":"Dam straat",Address:"Adres","House number":"Huisnummer","Additional number":"Appartementnummer","Example: Door code is 555":"Voorbeeld: Deurcode is 555","Delivery Instructions":"Leveringsinstructies",Azerbaijan:"Azerbeidzjan",Floor:"Verdieping","Enter address":"Voer adres in"},auth:{"Create an account or log in":"Maak een account aan of log in","Phone number":"Telefoonnummer","I don't have an email":"Ik heb geen e-mailadres","We sent a confirmation code to {{address}}":"We hebben een bevestigingscode gestuurd naar {{address}}"},events:{Events:"Gebeurtenissen","Scrolled to Category":"Gescrld naar categorie","Category Selected":"Categorie geselecteerd","Product Details":"Productdetails","Product Added to Order":"Product aan bestelling toegevoegd"},pricing:{"Get Started":"Start nu","Choose Plan":"Kies een plan","Smart QR Menu":"Slimme QR-menu","Link-in-bio":"Link-in-bio","Menu Analytics":"Menu analyse","Unlimited Products":"Onbeperkte producten","Unlimited Categories":"Onbeperkte categorieën","Unlimited Users":"Onbeperkte gebruikers","Product variants":"Productvarianten","Product options":"Productopties","Sales reports":"Verkooprapporten","24/7 Support":"24/7 ondersteuning","Multiple Branches":"Meerdere vestigingen","Table Management":"Tafelbeheer","Order Management":"Orderbeheer","Mobile App for Owners & Staff":"Mobiele app voor eigenaren en personeel","Point of Sale (POS)":"Kassasysteem (POS)","Delivery Management":"Leveringsbeheer","Third-Party Delivery Integrations":"Integraties van derden","RestaroundPay with Mobile":"RestaroundPay met mobiel","Event management":"Beheer van evenementen","/ month":"/ maand",monthly:"Maandelijks",annually:"Jaarlijks","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Kies een abonnementsplan dat bij jouw bedrijf past. Abonneer je maandelijks of jaarlijks en bespaar meer met een lange termijn plan!","Flexible Plans for Every Business - Simple Pricing, More Value!":"Flexibele abonnementen voor elk bedrijf - Eenvoudige prijzen, meer waarde!","Unlimited Languages":"Onbeperkt aantal talen","30-day money-back guarantee":"30 dagen niet-goed-geld-terug garantie","Limited Time Only":"Beperkte tijd","/ lifetime":"/ eenmalig","Try for free":"Probeer gratis","No credit card needed":"Geen creditcard nodig"},branch:{"WEEKDAY-0":"Maandag","WEEKDAY-1":"Dinsdag","WEEKDAY-2":"Woensdag","WEEKDAY-3":"Donderdag","WEEKDAY-4":"Vrijdag","WEEKDAY-5":"Zaterdag","WEEKDAY-6":"Zondag",Closed:"Gesloten","Opening Hours":"Openingstijden","Delivery Hours":"Bezorgtijden"}},et:{error:{SOMETHING_WRONG:"Midagi läks valesti! Palun proovi hiljem uuesti",FIELD_REQUIRED:"See väli on kohustuslik","Azerbaijani numbers must be 9 digits and start with 50, 51, 10, 55, 99, 70, 77, 60":"Aserbaidžaani numbrid peavad olema 9-kohalised ja algama 50, 51, 10, 55, 99, 70, 77 või 60-ga","Unsupported country code":"Riigikood ei ole toetatud","Invalid OTP":"Vale kinnituskood",INVALID_OTP:"Vale kinnituskood",OTP_RATE_LIMIT_EXCEEDED:"Kinnituskoodide limiit ületatud. Proovi hiljem uuesti","Invalid Email Address":"Vigane e-posti aadress",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"See funktsioon ei ole sinu praeguse paketiga saadaval.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"See tellimuse tüüp ei ole selles ettevõttes saadaval.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"See tellimuse tüüp ei ole praegu saadaval.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik.",OUT_OF_DELIVERY_RANGE:"See filiaal ei toimeta sellele aadressile.",NO_ORDER_TYPE:"Palun vali tellimuse tüüp."},common:{Save:"Salvesta",Cancel:"Tühista",Continue:"Jätka"},order:{"View order":"Vaata tellimust","Remove from order":"Eemalda tellimusest","Update order":"Uuenda tellimust","Add to order":"Lisa tellimusele",Add:"Lisa","Your order":"Teie tellimus","Empty order":"Tühi tellimus","You don't have any items in your order":"Teie tellimuses pole ühtegi eset","Add items":"Lisa esemeid",Subtotal:"Kokku",Events:"Sündmused","Product choices":"Tootevalikud","In order":"Tellimuses","Not available":"Ei ole saadaval","Specify any allergies, special requests, or ingredients you want to add or remove":"Kui sul on allergiaid, erisoove või soovid mõnda koostisosa lisada või eemaldada, anna sellest teada.","Thank you! We've received your order and it will be delivered shortly.":"Aitäh! Oleme sinu tellimuse kätte saanud ja toome selle peagi kohale.","Go to checkout":"Mine kassasse","Add an order note":"Lisa tellimuse märkus","Your Order is Completed!":"Teie tellimus on lõpetatud!",Delivery:"Kohaletoimetamine","Dine in":"Sööma jäämine",Pickup:"Eemaldamine",Cash:"Sularaha","POS Terminal":"POS terminal","Order summary":"Tellimuse kokkuvõte",Items:"Tooted",Tax:"Maks",Total:"Kokku","Special instructions, allergies, etc.":"Erisoovid, allergiad jne.","Place order":"Esita tellimus",Continue:"Jätka","Track order":"Jälgi tellimust","Minimum order amount for delivery is {{amount}}":"Minimaalne tellimuse summa kohaletoimetamiseks on {{amount}}","This field is required":"See väli on kohustuslik","Please select a table":"Palun vali laud","Please enter an address":"Palun sisesta aadress","Please choose product":"Palun vali toode",Table:"Laud","Select Table":"Vali laud",Card:"Kaardiga","Closed Now":"Praegu suletud","Delivery Fee":"Kohaletoimetamise tasu","Play video":"Vaata videot"},customer:{"Unknown address":"Tundmatu aadress","No address available":"Aadress puudub","Update Delivery Address":"Uuenda kohaletoimetamise aadress",Country:"Riik",City:"Linn","Baker Street":"Nizami tänav",Address:"Aadress","House number":"Majanumber","Additional number":"Korteri number","Example: Door code is 555":"Näide: Uksekood on 555","Delivery Instructions":"Kohaletoimetamise juhised",Azerbaijan:"Aserbaidžaan",Floor:"Põrand","Enter address":"Sisesta aadress"},auth:{"Create an account or log in":"Loo konto või logi sisse","Phone number":"Telefoninumber","I don't have an email":"Mul ei ole e-posti aadressi","We sent a confirmation code to {{address}}":"Saatsime kinnituskoodi aadressile {{address}}"},events:{Events:"Sündmused","Scrolled to Category":"Keriti kategooriasse","Category Selected":"Kategooria valitud","Product Details":"Toote detailid","Product Added to Order":"Toode lisatud tellimusele"},pricing:{"Get Started":"Alustage","Choose Plan":"Vali plaan","Smart QR Menu":"Nutikas QR-menüü","Link-in-bio":"Link-in-bio","Menu Analytics":"Menüü Analüütika","Unlimited Products":"Piiramata tooted","Unlimited Categories":"Piiramata kategooriad","Product variants":"Tootevariandid","Product options":"Toote valikud","Sales reports":"Müügiaruanded","24/7 Support":"24/7 tugi","Multiple Branches":"Mitu filiaali","Table Management":"Tabelite haldamine","Order Management":"Tellimuste haldamine","Mobile App for Owners & Staff":"Mobiilirakendus omanikele ja töötajatele","Point of Sale (POS)":"Müügipunkt (POS)","Delivery Management":"Tarnejuhtimine","Third-Party Delivery Integrations":"Kolmanda osapoole tarneintegratsioonid","RestaroundPay with Mobile":"RestaroundPay koos mobiiliga","Event management":"Sündmuste haldamine","Unlimited Users":"Piiramatu arv kasutajaid","/ month":"/ kuus",monthly:"Igakuine",annually:"Igal aastal","Flexible Plans for Every Business - Simple Pricing, More Value!":"Paindlikud plaanid igale ettevõttele - Lihtne hind, rohkem väärtust!","Choose a pricing plan that fits your business. Subscribe monthly or annually and save more with long-term plans!":"Vali tellimus, mis sobib sinu ettevõttele. Telli igakuiselt või kord aastas ning säästa rohkem pikaajaliste plaanidega!","Unlimited Languages":"Piiramatu arv keeli","30-day money-back guarantee":"30-päevane raha tagasi garantii","Limited Time Only":"Ainult piiratud ajaks","/ lifetime":"/ eluaegne","Try for free":"Proovi tasuta","No credit card needed":"Krediitkaarti pole vaja"},branch:{"WEEKDAY-0":"Esmaspäev","WEEKDAY-1":"Teisipäev","WEEKDAY-2":"Kolmapäev","WEEKDAY-3":"Neljapäev","WEEKDAY-4":"Reede","WEEKDAY-5":"Laupäev","WEEKDAY-6":"Pühapäev",Closed:"Suletud","Opening Hours":"Lahtiolekuajad","Delivery Hours":"Kohaletoimetamise ajad"}}};const bi=(e="common",t)=>{const i=zt(),r=(null==t?void 0:t.language)||i,{t:n}=((e,t)=>{try{const i=We.includes(e)?e:"en",r=fi[i][t]||{};return{t:(e,t)=>{try{const i=r[e]||e;return t?Object.keys(t).reduce((e,i)=>e.replace(`{{${i}}}`,t[i]),i):i}catch(t){return console.error(t),e}}}}catch(e){return console.error(e),{t:e=>e}}})(r,e);return{t:n}};var Ti={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const Ai=()=>{var e,t;const{customer:i}=Mt();return(null===(e=null==i?void 0:i.addresses)||void 0===e?void 0:e[(null===(t=null==i?void 0:i.addresses)||void 0===t?void 0:t.length)-1])||{}};var Pi,Oi;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(Pi||(Pi={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(Oi||(Oi={}));const Di=e=>{const t={},{countryCode:i,cityName:r,street:n,houseNumber:a}=e||{};return i||(t.countryCode="COUNTRY_REQUIRED"),r||(t.cityName="CITY_REQUIRED"),n||(t.street="STREET_REQUIRED"),a||(t.houseNumber="STREET_NUMBER_REQUIRED"),t},Si=(e,t,i)=>[e,[t,i].filter(Boolean).join("/")].filter(Boolean).join(" "),Ni=()=>{const{orderItems:e,order:t}=Mt(),{deliveryFeeAmount:i}=Dt(),r=Object.values(e||{}).reduce((e,t)=>{const{totalGross:i,totalNet:r,totalTax:n}=ut(t),a=e.totalPriceWithTax+i;return{totalPriceWithTax:a,totalPriceWithoutTax:e.totalPriceWithoutTax+r,totalTax:e.totalTax+n,totalPriceWithTaxAndFees:a}},{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,totalPriceWithTaxAndFees:0});return(null==t?void 0:t.orderType)===it.DELIVERY&&i>0&&(r.totalPriceWithTaxAndFees+=i),r},Ri=(e={})=>{const t=(()=>{const{id:e}=Ut();return e})(),i=At(),{order:r,orderItems:n}=Mt(),{totalPriceWithTax:a,totalPriceWithoutTax:o,totalTax:l,totalPriceWithTaxAndFees:d}=Ni(),s=Ai(),c=(()=>{const{customer:e}=Mt();return null==e?void 0:e.id})(),{deliveryFeeAmount:u}=Dt(),{workingDayId:m,tableId:_,employeeId:h,orderType:p,paymentMethod:v,note:g,vat:E=0}=Object.assign(Object.assign({},r),e);return{branchId:null==i?void 0:i.id,businessId:t,workingDayId:m,tableId:_,customerId:c,customerAddressId:s.id,employeeId:h,orderType:p,totalPriceWithTax:a,totalPriceWithTaxAndFees:d,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:E,paymentMethod:v,note:g,deliveryFee:p===it.DELIVERY?u:void 0}},Ci=()=>{const{orderItems:e}=Mt();return Object.values(e||{}).reduce((e,t)=>e+t.quantity,0)},Li=()=>{const{t:e}=bi("error"),t=Pt(),i=Dt().maxDeliveryDistance,{latitude:r,longitude:n}=Ai(),[a,o]=x(null);return H(()=>{const e=!!r&&!!n,a=!Q(t);tt(void 0,void 0,void 0,function*(){if(!e||!a)return o("INVALID_ADDRESS");try{const e=yield((e,t)=>tt(void 0,void 0,void 0,function*(){const{spherical:i}=yield google.maps.importLibrary("geometry"),r=new google.maps.LatLng(e.latitude,e.longitude),n=new google.maps.LatLng(t.latitude,t.longitude);return i.computeDistanceBetween(r,n)}))(t,{latitude:r,longitude:n});o(!e||e>i?"OUT_OF_DELIVERY_RANGE":null)}catch(e){o("OUT_OF_DELIVERY_RANGE")}})},[r,n,t,i]),a?e(a):null},ki=()=>{const{t:e}=bi("order"),t=zt(),i=Bt(),r=Dt().minDeliveryAmount,{totalPriceWithTax:n}=Ni();if(n<r){return e("Minimum order amount for delivery is {{amount}}",{amount:X(r,i,t)})}return null},Mi=({formErrors:i,onChange:n})=>{const o=Ue.map(({phoneCode:e})=>({label:e,value:e})),l=Je(),d=zt(),{t:s}=bi("auth"),{t:c}=bi("error"),[u,m]=x({countryCode:o[0].value,phoneNumber:""}),{url:_}=He(l,d),h=e=>{var t;const{name:i,value:r}=(null==e?void 0:e.target)||{};if(!i)return;const a=null!==(t=null==r?void 0:r.trim())&&void 0!==t?t:"";if("phoneNumber"===i&&""!==a&&!J(a))return;const o=Object.assign(Object.assign({},u),{[i]:a}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);n(l),m(o)};return t(a,{gap:1,fullWidth:!0,children:[t(r,{fullWidth:!0,alignItems:"flex-start",children:[e(p,{name:"countryCode",options:o,type:v.SELECT,className:Ti.countryCode,value:u.countryCode,onChange:h}),e(p,{name:"phoneNumber",placeholder:s("Phone number"),type:v.TEL,fullWidth:!0,value:u.phoneNumber,onChange:h,errorMessage:c(i.phoneNumber)})]}),e("div",{className:Ti.terms,children:t("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${_}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${_}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})},wi=({address:i,errorMessage:r,onChange:n})=>{const{t:l}=bi("auth"),{t:d}=bi("error");return t(a,{gap:2,children:[e(o,{fullWidth:!0,align:"center",color:"muted",children:l("We sent a confirmation code to {{address}}",{address:i})}),e(g,{onChangeOTP:e=>{queueMicrotask(()=>{n(e)})},errorMessage:r?d(r):void 0,inputMode:"numeric"})]})},Wi=({formErrors:i,onChange:r,onCancel:n})=>{const o=(()=>{const{customer:e}=Mt();return j(()=>null==e?void 0:e.email,[null==e?void 0:e.email])})(),[l,d]=x(o||""),{t:s}=bi("auth"),{t:c}=bi("error"),u=F(e=>{var t,i;const n=null!==(i=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==i?i:"";d(n),r(n)},[r]);return H(()=>{tt(void 0,void 0,void 0,function*(){o&&o!==l&&d(o)})},[o]),t(a,{className:Ti.container,alignItems:"center",gap:0,children:[e(p,{name:"email",type:v.EMAIL,placeholder:"Email",fullWidth:!0,value:l,onChange:u,errorMessage:i.email?c(i.email):void 0}),!l&&e(h,{onClick:n,label:s("I don't have an email"),type:m.DEFAULT})]})};var Ui={};var Bi={},zi="HoursList-module_container__wYX5G",Vi="HoursList-module_title__D7Q8u";const xi=({title:i,days:n})=>{const{t:l}=bi("branch");return Q(n)?null:t(a,{className:zi,gap:.5,fullWidth:!0,children:[i&&e(o,{weight:"medium",className:Vi,children:l(i)}),n.map(({day:i,hours:n})=>{const a=!n,d=a?l("Closed"):`${n.openAt} - ${n.closeAt}`;return t(r,{justifyContent:"space-between",fullWidth:!0,children:[e(o,{size:"sm",whiteSpace:"nowrap",children:l(`WEEKDAY-${i}`)}),e(o,{size:"sm",whiteSpace:"nowrap",color:a?m.DANGER:"normal",children:d})]},i)})]})},Fi=({openingHours:i,deliveryHours:r})=>{const n=(null==i?void 0:i.days)||[],o=(null==r?void 0:r.days)||[],l=(()=>{const e=Dt();return null==e?void 0:e.deliveryOrderEnabled})();return Q(n)?null:t(a,{className:Bi.container,gap:2,children:[e(xi,{days:n}),l&&e(xi,{title:"Delivery Hours",days:o})]})};var ji={container:"ScrollToTop-module_container__fY2Wr",visible:"ScrollToTop-module_visible__4c1xZ",flexWide:"ScrollToTop-module_flexWide__ISFJo",slidein:"ScrollToTop-module_slidein__ciJNw",fadeInOut:"ScrollToTop-module_fadeInOut__TVbp7",heightAnimation:"ScrollToTop-module_heightAnimation__ouHY-",fadein:"ScrollToTop-module_fadein__-3ySu",floatAnimation:"ScrollToTop-module_floatAnimation__6Gg6O",bottomSheet:"ScrollToTop-module_bottomSheet__XjARU",slideRightToLeft:"ScrollToTop-module_slideRightToLeft__YUoyD",rotation:"ScrollToTop-module_rotation__z-fUd",pulse:"ScrollToTop-module_pulse__59P93"};const Gi=({size:t,zIndex:i=100})=>{const[r,n]=x(!1),a=F(()=>{const e=window.scrollY>100;e!==r&&n(e)},[r]);return H(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}),[a]),e("div",{className:ee(ji,{container:!0,visible:r}),style:{zIndex:i},children:e(y,{icon:me,size:t,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var Hi="Branches-module_branches__sOuoV",Yi="Branches-module_container__Ppa6v",Ki={item:"BranchCard-module_item__Uowu3",content:"BranchCard-module_content__tua5H",info:"BranchCard-module_info__GWCyI",name:"BranchCard-module_name__3f4c-",address:"BranchCard-module_address__X2UdI",imageContainer:"BranchCard-module_imageContainer__cZcxc",image:"BranchCard-module_image__Wb44-",notAvailable:"BranchCard-module_notAvailable__hM-C5",noImage:"BranchCard-module_noImage__TnVYT",flexWide:"BranchCard-module_flexWide__Z8Ly-",slidein:"BranchCard-module_slidein__iNE--",fadeInOut:"BranchCard-module_fadeInOut__W8YYr",heightAnimation:"BranchCard-module_heightAnimation__xVD3c",fadein:"BranchCard-module_fadein__u5kBh",floatAnimation:"BranchCard-module_floatAnimation__X2M2D",bottomSheet:"BranchCard-module_bottomSheet__jQn-M",slideRightToLeft:"BranchCard-module_slideRightToLeft__7lAiW",rotation:"BranchCard-module_rotation__bTyhC",pulse:"BranchCard-module_pulse__4w1oB"};const qi=({children:t,id:i})=>{const r=Rt(),n=xt();return r?e("div",{className:Ki.item,onClick:()=>r(i),children:t}):e("a",{href:`${n}/${i}`,className:Ki.item,children:t})},Qi=({branch:i})=>{const{id:n,address:d,coverPhoto:s,name:c}=i||{},u=`${Ut().name} ${c}`;return e(qi,{id:n,children:t("div",{className:ee(Ki,{content:!0,noImage:!s}),children:[s&&e("div",{className:Ki.imageContainer,children:e("img",{src:Qe(s),alt:u,className:Ki.image,width:1024,height:400})}),t(a,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Ki.info,gap:.5,children:[e(o,{variant:"h2",className:Ki.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:u}),t(r,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(l,{icon:ue,color:m.DEFAULT}),e("span",{className:Ki.address,children:d})]})]})]})})},$i=()=>{const t=(()=>{const{branches:e}=Xe();return e||[]})();return e("div",{className:Hi,children:e(f,{className:Yi,children:t.map(t=>e(Qi,{branch:t},t.id))})})};var Zi,Xi,Ji={};!function(e){e.LIST="list",e.GRID="grid"}(Zi||(Zi={})),function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Xi||(Xi={}));const er=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},tr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},ir=(e,t)=>{var i;return(null===(i=((null==e?void 0:e.options)||[]).find(({id:e})=>e===t))||void 0===i?void 0:i.price)||0},rr=(e=0,t=1,i=0)=>e*t*(1+i/100),nr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},ar=(e,t=1)=>{const{price:i=0,vat:r=0}=e||{};return rr(i,t,r)},or=(e,t,i,r=1)=>{const n=ar(e,r);return{totalPrice:n,formattedTotalPrice:X(n,t,i)}},lr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.variants)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.id===t))||{}},dr=(e,t,i)=>{const r=lr(t,e),{vat:n}=t||{},{price:a}=r||{};return rr(a,i,n)},sr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},cr=({product:e,variantId:t,quantity:i=1,selectedAddons:r,noVat:n=!1})=>{if(Q(e))return{price:0,optionsPrice:0,total:0};const a=Object.assign(Object.assign({},e),{vat:n?0:e.vat}),o=((e,t={},i)=>((null==e?void 0:e.addons)||[]).filter(e=>Object.prototype.hasOwnProperty.call(t,e.id)).reduce((e,i)=>{const{id:r,selectType:n}=i;if(n===Xi.SINGLE){const n=t[r];return e+ir(i,n)}return e+(t[r]||[]).reduce((e,t)=>e+ir(i,t),0)},0)*i)(a,r,i),l=t?dr(t,a,i):ar(a,i);return{price:l,optionsPrice:o,total:l+o}},ur=e=>{var t;const{products:i}=Xe();return(null===(t=null==i?void 0:i.find)||void 0===t?void 0:t.call(i,({id:t})=>t===e))||{}},mr=(e,t)=>{var i,r;return(null===(r=null===(i=null==e?void 0:e.translations)||void 0===i?void 0:i.find)||void 0===r?void 0:r.call(i,e=>e.language===t))||{}},_r=()=>{const e=xt(),t=Nt();return t?`${e}/${t}`:e},hr="digital_menu",pr=`${hr}_category_select`,vr=`${hr}_category_scroll`,gr=`${hr}_product_details`,Er=`${hr}_product_add_cart`,Ir=`${hr}_product_view_changed`,yr=[pr,vr,gr,Er];var fr="Categories-module_categories__Hh8hl";const br=({categoryProductMap:t=[],language:i,selectedCategoryId:r,skipTracking:n=!1,onSelectCategory:a})=>{const o=G({}),l=G(null),d=F(()=>{var e;const t=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e[r];if(!t||!l.current)return;const i=l.current.clientWidth,n=t.offsetLeft-i/2+t.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})},[r]);return H(()=>{r&&d()},[r,d]),e("div",{className:fr,children:e(b,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(l.current=e.current)},children:(t||[]).map(({id:t,translations:l})=>{const{name:d}=l.find(e=>e.language===i)||{};return e(T,{children:e(A,{onClick:()=>((e,t)=>{e!==r&&(a(e),n||$(pr,{name:t}))})(t,d),type:m.BORDERED_PRIMARY,active:t===r,children:e("div",{ref:e=>{e&&(o.current[t]=e)},children:d})})},t)})})})};var Tr="Products-module_container__bF2LF",Ar="Products-module_view__l857X",Pr="Products-module_products__AoDrY",Or="Products-module_category__Sp7dE",Dr="Products-module_list__LH4v5",Sr={container:"ProductsListItem-module_container__i9tFs",isClickable:"ProductsListItem-module_isClickable__iHHdI",info:"ProductsListItem-module_info__4s4j2",name:"ProductsListItem-module_name__T1gyJ",description:"ProductsListItem-module_description__oL4CH",price:"ProductsListItem-module_price__V1GRM",image:"ProductsListItem-module_image__h6Wbi",notAvailable:"ProductsListItem-module_notAvailable__TeMCr",addToOrder:"ProductsListItem-module_addToOrder__6KqZn",noImage:"ProductsListItem-module_noImage__G4E-a",flexWide:"ProductsListItem-module_flexWide__Ds6LE",slidein:"ProductsListItem-module_slidein__rEzMI",fadeInOut:"ProductsListItem-module_fadeInOut__i1FNq",heightAnimation:"ProductsListItem-module_heightAnimation__2fk7l",fadein:"ProductsListItem-module_fadein__tPTJ6",floatAnimation:"ProductsListItem-module_floatAnimation__vugAV",bottomSheet:"ProductsListItem-module_bottomSheet__-YAdd",slideRightToLeft:"ProductsListItem-module_slideRightToLeft__oXk26",rotation:"ProductsListItem-module_rotation__ZMvMz",pulse:"ProductsListItem-module_pulse__yy4Wc"};const Nr=({product:i,currency:n,language:l,onClick:d})=>{var s,c;const{addProduct:u}=Mt(),{image160:_,volume:h,available:p}=i||{},{name:v,description:g}=j(()=>nr(i,l),[i,l]),{formattedTotalPrice:E}=j(()=>or(i,n,l),[i,n,l]),{t:I}=bi("order"),f=(null===(s=null==i?void 0:i.variants)||void 0===s?void 0:s.length)>0,b=(null===(c=null==i?void 0:i.addons)||void 0===c?void 0:c.length)>0,T=!!_;return t("div",{className:ee(Sr,{container:!0,isClickable:!!d,noImage:!T}),onClick:d,children:[t(r,{justifyContent:"space-between",gap:0,children:[e("div",{className:Sr.info,children:t(a,{gap:.25,children:[e("h3",{className:Sr.name,children:v}),e("p",{className:Sr.description,children:g}),t(r,{className:Sr.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:E}),!!h&&e(o,{color:"muted",children:h})]}),!p&&e(o,{size:"xs",color:"danger",className:Sr.notAvailableText,children:I("Not available")})]})}),T&&e("img",{src:Ke(_),alt:v||"menu",className:ee(Sr,{image:!0,notAvailable:!p}),loading:"lazy",width:160,height:90})]}),p&&e("div",{className:Sr.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(f||b)&&d)return d();u({product:i}),$(Er,{name:v,quantity:1})},icon:_e,type:m.DEFAULT})})]})};var Rr={container:"ProductsGridItem-module_container__DU5KG",content:"ProductsGridItem-module_content__FXs0Y",isClickable:"ProductsGridItem-module_isClickable__8zhwt",info:"ProductsGridItem-module_info__HkBG-",data:"ProductsGridItem-module_data__Z-N1X",name:"ProductsGridItem-module_name__ZrIx3",description:"ProductsGridItem-module_description__-FQPA",price:"ProductsGridItem-module_price__BFu2H",imageContainer:"ProductsGridItem-module_imageContainer__eHS4Z",image:"ProductsGridItem-module_image__alZWL",notAvailable:"ProductsGridItem-module_notAvailable__i4-HA",addToOrder:"ProductsGridItem-module_addToOrder__PhQhg",noImage:"ProductsGridItem-module_noImage__78UHW",volume:"ProductsGridItem-module_volume__oxEAr",notAvailableText:"ProductsGridItem-module_notAvailableText__9G0yj",flexWide:"ProductsGridItem-module_flexWide__qcB5X",slidein:"ProductsGridItem-module_slidein__oKaVb",fadeInOut:"ProductsGridItem-module_fadeInOut__d2zot",heightAnimation:"ProductsGridItem-module_heightAnimation__zgbh9",fadein:"ProductsGridItem-module_fadein__Z067K",floatAnimation:"ProductsGridItem-module_floatAnimation__GXjP-",bottomSheet:"ProductsGridItem-module_bottomSheet__-zrFD",slideRightToLeft:"ProductsGridItem-module_slideRightToLeft__R7hv5",rotation:"ProductsGridItem-module_rotation__npCfA",pulse:"ProductsGridItem-module_pulse__whBaS"};const Cr=({product:i,currency:n,language:l,defaultImage:d="",isDashboard:s=!1,onClick:c,onAddProduct:u})=>{var _,h;const{volume:p,image580:v,image160:g,image1024:E,available:I}=i||{},f=v||E||g||d,{name:b,description:T}=j(()=>nr(i,l),[i,l]),{formattedTotalPrice:A}=j(()=>or(i,n,l),[i,n,l]),{t:P}=bi("order",{language:l}),O=(null===(_=null==i?void 0:i.variants)||void 0===_?void 0:_.length)>0,D=(null===(h=null==i?void 0:i.addons)||void 0===h?void 0:h.length)>0;return e("div",{className:Rr.container,children:t("div",{className:ee(Rr,{content:!0,isClickable:!!c,noImage:!f}),onClick:c,children:[f&&e("div",{className:Rr.imageContainer,children:e("img",{src:Ke(f),alt:b||"menu",className:ee(Rr,{image:!0,notAvailable:!I}),loading:"lazy",width:580,height:326})}),e("div",{className:Rr.info,children:e("div",{className:Rr.data,children:t(a,{gap:.25,children:[e("h3",{className:Rr.name,children:b}),!s&&e("p",{className:Rr.description,children:T}),t(r,{className:Rr.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:A}),!!p&&e(o,{color:"white",className:Rr.volume,children:p})]}),!I&&e(o,{color:"white",size:"xs",className:Rr.notAvailableText,children:P("Not available")})]})})}),I&&e("div",{className:Rr.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(O||D)&&c)return c();u({product:i}),$(Er,{name:b,quantity:1})},icon:_e,type:m.DEFAULT})})]})})},Lr=({product:t,currency:i,language:r,onClick:n})=>{const{addProduct:a}=Mt();return e(Cr,{onAddProduct:a,product:t,currency:i,language:r,onClick:n})};var kr="FloatingOrdersButton-module_container__RYr7V",Mr="FloatingOrdersButton-module_content__2X3P-",wr={container:"OrderStepper-module_container__GVnVU",count:"OrderStepper-module_count__u13tM",actionText:"OrderStepper-module_actionText__CZsVe",totalPrice:"OrderStepper-module_totalPrice__R9Mni",isClickable:"OrderStepper-module_isClickable__M3rWK",isLoading:"OrderStepper-module_isLoading__FkS16",isDisabled:"OrderStepper-module_isDisabled__xipwc",flexWide:"OrderStepper-module_flexWide__oIpQi",slidein:"OrderStepper-module_slidein__P6YJD",fadeInOut:"OrderStepper-module_fadeInOut__OVRav",heightAnimation:"OrderStepper-module_heightAnimation__bDpZh",fadein:"OrderStepper-module_fadein__526L2",floatAnimation:"OrderStepper-module_floatAnimation__rjwmv",bottomSheet:"OrderStepper-module_bottomSheet__777sc",slideRightToLeft:"OrderStepper-module_slideRightToLeft__UjVx6",rotation:"OrderStepper-module_rotation__PedNC",pulse:"OrderStepper-module_pulse__mOlOg"};const Wr=({actionText:i,isLoading:n=!1,isDisabled:a=!1,onClick:o})=>{const{orderStep:l}=Mt(),d=Ci(),{totalPriceWithTax:s,totalPriceWithTaxAndFees:c}=(()=>{const{totalPriceWithTax:e,totalPriceWithoutTax:t,totalTax:i,totalPriceWithTaxAndFees:r}=Ni(),n=zt(),a=Bt();return{totalPriceWithTax:X(e,a,n),totalPriceWithoutTax:X(t,a,n),totalTax:X(i,a,n),totalPriceWithTaxAndFees:X(r,a,n)}})();return t(u,{className:ee(wr,{container:!0,isLoading:n,isClickable:!!o,isDisabled:a}),justifyContent:"space-between",alignItems:"center",onClick:n||a?null:o,children:[e(u.Item,{flex:1,children:t(r,{alignItems:"center",children:[e("div",{className:wr.count,children:d}),e("div",{className:wr.actionText,children:n?e(P,{}):i})]})}),e(u.Item,{className:wr.totalPrice,flex:1,children:l===ot.DETAILS?c:s})]})},Ur=()=>{const{setIsOrderOpen:t}=Mt(),{t:i}=bi("order");return Ci()<=0?null:e("div",{className:kr,children:e("div",{className:Mr,children:e(Wr,{onClick:()=>t(!0),actionText:i("View order")})})})},Br=Y(({categoryProductMap:i=[],currency:n,language:o,productBlocksRef:l,containerRef:s,onCategoryInView:c})=>{const[u,_]=x(Zi.LIST),{setModal:h}=d(),p=Yt(),v=[{icon:he,type:Zi.LIST},{icon:pe,type:Zi.GRID}],g=e=>{const{name:t}=nr(e,o);$(gr,{name:t}),h({id:we,params:{product:e}})};return H(()=>{const e=new IntersectionObserver(e=>{var t;const i=((null===(t=null==s?void 0:s.current)||void 0===t?void 0:t.clientHeight)||1e3)/2;let r=null,n=1/0;e.forEach(e=>{if(e.isIntersecting){const t=e.boundingClientRect,a=t.top+t.height/2,o=Math.abs(a-i);o<n&&(n=o,r=e.target.getAttribute("data-category-id"))}}),r&&c(Number(r))},{threshold:.1});return Object.entries(l.current||{}).forEach(([t,i])=>{i&&(i.setAttribute("data-category-id",t),e.observe(i))}),()=>{e.disconnect()}},[l,s,c]),t("div",{className:Tr,children:[t(r,{className:Ar,alignItems:"center",children:[v.map(({icon:t,type:i})=>e(y,{icon:t,onClick:()=>(e=>{_(e),$(Ir,{name:e})})(i),type:i===u?m.PRIMARY:m.DEFAULT},i)),!Q(p)&&e("a",{href:p,children:e(y,{icon:ve,onClick:()=>{},type:m.DEFAULT})})]}),e(a,{children:(i||[]).map(i=>{const{name:r}=mr(i,o),{id:d,products:s}=i;return t("div",{className:Pr,ref:e=>{e&&(l.current[d]=e)},"data-category-id":d,children:[e("h2",{className:Or,children:r}),e("div",{className:Dr,children:e(a,{gap:0,children:(s||[]).map(t=>u===Zi.GRID?e(Lr,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id):e(Nr,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id))})})]},d)})}),e(Ur,{})]})},(e,t)=>e.categoryProductMap===t.categoryProductMap&&e.currency===t.currency&&e.language===t.language);Br.displayName="Products";const zr=({containerRef:i})=>{var r;const n=(()=>{const{products:e}=Xe();return e||[]})(),a=(()=>{const{categories:e}=Xe();return e||[]})(),o=zt(),l=Bt(),d=((e,t)=>{const i=t.reduce((e,t)=>{if(!t.visible)return e;const i=Number(t.categoryId);return e[i]||(e[i]=[]),e[i].push(t),e},{});return e.map(e=>Object.assign(Object.assign({},e),{products:i[Number(e.id)]||[]})).filter(e=>{var t;return(null===(t=null==e?void 0:e.products)||void 0===t?void 0:t.length)>0})})(a,n),[s,c]=x(null===(r=null==a?void 0:a[0])||void 0===r?void 0:r.id),u=G({}),m=G(!0),_=F(e=>tt(void 0,void 0,void 0,function*(){m.current=!1,c(e),(e=>{var t;const i=null===(t=null==u?void 0:u.current)||void 0===t?void 0:t[e];i&&(setTimeout(()=>{i.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),h=F(e=>{if(!(null==m?void 0:m.current))return;const t=((e,t,i)=>{var r;const n=null===(r=null==t?void 0:t.find)||void 0===r?void 0:r.call(t,({id:t})=>t===e);if(Q(n))return"";const{name:a}=mr(n,i);return a||""})(e,a,o);$(vr,{name:t}),c(e)},[a,o]),p=F(()=>tt(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),t=Number(e.get("category"));if(!t)return;const i=(a||[]).find(({id:e})=>e===t);Q(i)||_(t)}),[a,_]);return H(()=>{p()},[p]),t("div",{className:Ji.container,children:[e(br,{categoryProductMap:d,language:o,selectedCategoryId:s,onSelectCategory:_}),e(Br,{categoryProductMap:d,language:o,currency:l,productBlocksRef:u,containerRef:i,onCategoryInView:h})]})};var Vr="VideoFeed-module_container__6tYYs",xr="VideoFeed-module_videos__6KjGc",Fr="Video-module_container__HT89i",jr="Video-module_videoContainer__GE-7a",Gr="Video-module_video__36hFc",Hr="Video-module_top__SIvSk",Yr="Video-module_actionIcon__F6Ze1",Kr="Video-module_bottom__DNzui",qr="Video-module_actions__cOh-0",Qr="Actions-module_container__K2DUX",$r="Actions-module_action__u-Mvu",Zr="Actions-module_animate__Y2p0y";const Xr=({video:i})=>{var r,n;const{setModal:s}=d(),{addProduct:c,setIsOrderOpen:u}=Mt(),_=G(null),{productId:h,productName:p}=i||{},v=Ci(),g=ur(h),E=(null===(r=null==g?void 0:g.variants)||void 0===r?void 0:r.length)>0,I=(null===(n=null==g?void 0:g.addons)||void 0===n?void 0:n.length)>0,y=F(()=>{s({id:we,params:{product:g}})},[g,s]),f=F(()=>{if(E||I)return y();c({product:g}),$(Er,{name:p,quantity:1})},[c,I,E,y,g,p]),b=[{icon:ge,onClick:y},{icon:_e,onClick:f},{icon:Ee,onClick:()=>u(!0),value:v,ref:_}];return H(()=>{const e=_.current;e&&(e.classList.remove(Zr),e.offsetWidth,e.classList.add(Zr))},[v]),e(a,{className:Qr,fullWidth:!0,gap:.5,children:b.map(({icon:i,onClick:r,value:n,ref:d},s)=>t(a,{alignItems:"center",gap:.375,children:[e("div",{className:$r,onClick:r,ref:d,children:e(l,{icon:i,size:"md",color:m.DEFAULT})}),!te(n)&&e(o,{size:"xs",weight:"bold",color:"white",fullWidth:!0,align:"center",children:n})]},s))})};var Jr={container:"VideoData-module_container__H-DjR",business:"VideoData-module_business__gYhgS",productName:"VideoData-module_productName__vBGba",businessName:"VideoData-module_businessName__refS2",description:"VideoData-module_description__LTbgV",noAvatar:"VideoData-module_noAvatar__ZwPv7",flexWide:"VideoData-module_flexWide__eoJyv",slidein:"VideoData-module_slidein__Rx56q",fadeInOut:"VideoData-module_fadeInOut__7WQqD",heightAnimation:"VideoData-module_heightAnimation__0aEX0",fadein:"VideoData-module_fadein__BB4dW",floatAnimation:"VideoData-module_floatAnimation__sbOmx",bottomSheet:"VideoData-module_bottomSheet__Ag-e1",slideRightToLeft:"VideoData-module_slideRightToLeft__-eS9s",rotation:"VideoData-module_rotation__77Eig",pulse:"VideoData-module_pulse__HMgCB"};const en=({video:i})=>{const[n,l]=x(!1),d=_r();if(Q(i))return null;const{businessAvatar:s,businessName:c,productName:u,productDescription:m,productPrice:_}=i,h=Boolean(s);return t(a,{className:ee(Jr,{container:!0,noAvatar:!h}),gap:.75,fullWidth:!1,children:[t("a",{className:Jr.business,href:d,children:[h&&e(O,{source:Ke(s),size:"sm"}),t(a,{gap:0,children:[e(o,{weight:"medium",color:"white",whiteSpace:"nowrap",className:Jr.productName,children:u}),e(o,{color:"white",whiteSpace:"nowrap",className:Jr.businessName,weight:"light",children:c})]})]}),e(o,{color:"white",className:Jr.price,children:_}),Boolean(m)&&e(r,{onClick:()=>l(e=>!e),children:e(o,{color:"white",size:"sm",whiteSpace:n?"wrap":"nowrap",className:Jr.description,children:m})})]})},tn=({video:i,isActive:n=!1,shouldLoad:o=!1,registerVideo:d})=>{const s=G(null),[c,u]=x(!0),_=G(!1),h=_r(),p=(e=>e?e.includes("base64")||e.startsWith("https://")?e:`${xe}/${e}`:"")(null==i?void 0:i.videoUrl),v=F(()=>{var e;const t=s.current;t&&(t.paused?null===(e=t.play())||void 0===e||e.catch(()=>{}):t.pause())},[]),g=F(()=>{_.current=!0},[]);return H(()=>{var e;const t=s.current;t&&(o&&!t.src&&(t.muted=!0,t.playsInline=!0,t.src=p,t.load()),o&&n&&(null===(e=t.play())||void 0===e||e.catch(()=>{})),n||t.paused||t.pause(),!o&&t.src&&(t.pause(),t.removeAttribute("src"),t.load()))},[o,n,p]),Q(i)?null:e("div",{className:Fr,ref:e=>d(i.productId,e),children:t("div",{className:jr,children:[e("video",{ref:s,className:Gr,muted:!0,autoPlay:!0,playsInline:!0,preload:"none",loop:!0,controlsList:"nodownload nofullscreen noplaybackrate",controls:!1,disablePictureInPicture:!0,poster:Ke(i.thumbnail),onClick:v,onPlay:g}),t(r,{className:Hr,justifyContent:"space-between",children:[e("div",{className:Yr,onClick:e=>{e.stopPropagation(),s.current&&_.current&&(s.current.muted=!s.current.muted,u(s.current.muted))},children:e(l,{icon:c?Ie:ye,size:"md",color:m.DEFAULT})}),e("a",{className:Yr,href:h,children:e(l,{icon:fe,size:"md",color:m.DEFAULT})})]}),t(r,{className:Kr,alignItems:"flex-end",gap:1,children:[e(en,{video:i}),e(a,{className:qr,justifyContent:"flex-end",fullWidth:!1,fullHeight:!1,children:e(Xr,{video:i})})]})]})})},rn=()=>{const i=Gt(),r=(()=>{const e=Ft(),t=jt();return j(()=>t.filter(t=>t.productId!==Number(e)),[t,e])})(),n=G(null),{activeId:a,register:o}=function(e){const[t,i]=x(null),r=G(new Map);return H(()=>{const t=e.current;if(!t)return;let n;const a=new IntersectionObserver(e=>{const t=e.filter(e=>e.isIntersecting).sort((e,t)=>t.intersectionRatio-e.intersectionRatio)[0];t&&(cancelAnimationFrame(n),n=requestAnimationFrame(()=>{i(e=>{var i,n;const a=null!==(n=null===(i=[...r.current.entries()].find(([,e])=>e===t.target))||void 0===i?void 0:i[0])&&void 0!==n?n:null;return e===a?e:a})}))},{root:t,threshold:[.6,.75,1]});return r.current.forEach(e=>a.observe(e)),()=>{cancelAnimationFrame(n),a.disconnect()}},[e]),{activeId:t,register:(e,t)=>{t&&r.current.set(e,t)}}}(n);return e("div",{className:Vr,children:t("div",{className:xr,tabIndex:0,ref:n,children:[e(tn,{video:i,registerVideo:o,isActive:a===i.productId,shouldLoad:!0}),r.map(t=>e(tn,{video:t,registerVideo:o,isActive:a===t.productId,shouldLoad:a===t.productId},t.productId))]})})};var nn={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",media:"ProductDetails-module_media__Wy8ai",play:"ProductDetails-module_play__-4H6b",image:"ProductDetails-module_image__BlMfl",details:"ProductDetails-module_details__zfnlt",name:"ProductDetails-module_name__ganLM",price:"ProductDetails-module_price__W34k9",volume:"ProductDetails-module_volume__RWG5s",description:"ProductDetails-module_description__HBufi",choices:"ProductDetails-module_choices__4tHaA",close:"ProductDetails-module_close__4cHZ3",addAction:"ProductDetails-module_addAction__o4T5R",actionTitle:"ProductDetails-module_actionTitle__NIJGW"},an={container:"Quantity-module_container__01ySb",quantityAction:"Quantity-module_quantityAction__wRV2F",quantityValue:"Quantity-module_quantityValue__BBpyw",isDisabled:"Quantity-module_isDisabled__crQCf",sm:"Quantity-module_sm__0Hgp2",md:"Quantity-module_md__hu7a8",lg:"Quantity-module_lg__GA4jn",flexWide:"Quantity-module_flexWide__R95Jw",slidein:"Quantity-module_slidein__5yeWf",fadeInOut:"Quantity-module_fadeInOut__cllco",heightAnimation:"Quantity-module_heightAnimation__dhOgA",fadein:"Quantity-module_fadein__Cof2o",floatAnimation:"Quantity-module_floatAnimation__DSqQr",bottomSheet:"Quantity-module_bottomSheet__5-5iY",slideRightToLeft:"Quantity-module_slideRightToLeft__cjDHk",rotation:"Quantity-module_rotation__dn0J8",pulse:"Quantity-module_pulse__6kl4q"};const on=({isDecreaseDisabled:i=!1,quantity:n=1,size:a="md",onIncrease:o,onDecrease:d})=>t(r,{className:ee(an,{container:!0},[an[a]]),justifyContent:"space-between",gap:0,children:[e("div",{className:ee(an,{quantityAction:!0,isDisabled:i}),onClick:d,children:e(l,{icon:be})}),e("div",{className:an.quantityValue,children:n}),e("div",{className:an.quantityAction,onClick:o,children:e(l,{icon:_e})})]});var ln="ProductInOrder-module_container__0N57G",dn="ProductInOrder-module_title__TWjM9";const sn=({productId:i,quantity:n,isInPublicMenu:a=!0,language:o,removeAllProductVariants:l,onModalClose:d})=>{const{setIsOrderOpen:s}=Mt(),{t:c}=bi("order",{language:o});return n<=0?null:t(u,{className:ln,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[t(u.Item,{flex:1,className:dn,children:[c("In order")," (",n,")"]}),e(u.Item,{flex:0,children:t(r,{children:[e(y,{icon:Te,onClick:()=>{l(i)},type:m.DANGER,tooltip:c("Remove from order")}),a&&e(y,{icon:Ee,onClick:()=>{s(!0),d&&d()},type:m.SUCCESS,tooltip:c("View order")})]})})]})};var cn={container:"ProductVariants-module_container__r059N",variantsTitle:"ProductVariants-module_variantsTitle__G3wTr",variant:"ProductVariants-module_variant__Pk6eP",focused:"ProductVariants-module_focused__tdy2R",flexWide:"ProductVariants-module_flexWide__CQO0G",slidein:"ProductVariants-module_slidein__9xYoM",fadeInOut:"ProductVariants-module_fadeInOut__NcGdX",heightAnimation:"ProductVariants-module_heightAnimation__c7ORS",fadein:"ProductVariants-module_fadein__qqdC5",floatAnimation:"ProductVariants-module_floatAnimation__Fy-NX",bottomSheet:"ProductVariants-module_bottomSheet__JVxKH",slideRightToLeft:"ProductVariants-module_slideRightToLeft__lHsqZ",rotation:"ProductVariants-module_rotation__iJPfC",pulse:"ProductVariants-module_pulse__xzh2J"};const un=({product:i,selectedVariant:n,focusedSection:o,language:l,currency:d,onSelectVariant:s})=>{const{t:c}=bi("order",{language:l}),u=G(null),{variants:m}=i||{},_="variant"===o;return H(()=>{_&&u.current&&u.current.scrollIntoView({behavior:"smooth"})},[o,_]),t(a,{className:ee(cn,{container:!0,focused:_}),gap:1,fullWidth:!0,children:[e("div",{className:cn.variantsTitle,ref:u,children:c("Product choices")}),(m||[]).map(a=>{const{id:o}=a||{},{formattedTotalPrice:c}=(({variantId:e,currency:t="USD",language:i="en",product:r,quantity:n=1})=>{const a=dr(e,r,n);return{totalPrice:a,formattedTotalPrice:X(a,t,i)}})({variantId:o,language:l,currency:d,product:i}),{title:u}=sr(a,l);return t(r,{justifyContent:"space-between",onClick:()=>s(o),className:cn.variant,children:[e(p,{label:u,name:"variant",onChange:()=>s(o),checked:n===o,type:v.RADIO,size:"small",noMargin:!0}),e("div",{className:cn.variantPrice,children:c})]},o)})]})};var mn={container:"ProductAddons-module_container__DRnT7"};const _n=({product:i,selectedAddons:n,language:l,currency:d,onOptionSelect:s})=>{const{addons:c}=i||{};return e(a,{className:mn.container,gap:1.5,fullWidth:!0,children:(c||[]).map(i=>{const{id:c,options:u,selectType:m}=i||{},{title:_}=er(i,l);return t(a,{children:[e(o,{variant:"bold",children:_}),e(a,{gap:1,fullWidth:!0,children:(u||[]).map(i=>{const{id:a}=i||{},{formattedTotalPrice:o}=(({option:e,currency:t,language:i})=>{const{price:r}=e||{};return{totalPrice:r,formattedTotalPrice:X(r,t||"USD",i||"en")}})({option:i,language:l,currency:d}),{title:u}=tr(i,l),_=m===Xi.SINGLE,h=_?n[c]===a:(n[c]||[]).includes(a);return t(r,{justifyContent:"space-between",className:mn.option,children:[e(p,{label:u,name:`option-${c}`,onChange:()=>s({addonId:c,optionId:a,isSingle:_,isRemove:!_&&h}),checked:h,type:_?v.RADIO:v.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:mn.optionPrice,children:o})]},a)})})]},c)})})},hn=({product:i,language:n,currency:d,selectedVariant:s,focusedSection:c,selectedAddons:u,isDecreaseDisabled:p,quantity:v,actionTitle:g,isInPublicMenu:E,productQuantityInOrderWithAllVariants:I,modalRef:f,videoUrl:b,onClose:T,setSelectedVariant:A,onOptionSelect:P,adjustQuantity:O,onSubmit:D,removeAllProductVariants:S})=>{const{t:N}=bi("order",{language:n}),{name:R,description:C}=j(()=>nr(i,n),[i,n]),{formattedTotalPrice:L}=j(()=>or(i,d,n),[i,d,n]),{formattedTotalPrice:k}=j(()=>(({product:e,variantId:t,quantity:i=1,currency:r,language:n,selectedAddons:a,noVat:o=!1})=>{const{total:l}=cr({product:e,variantId:t,quantity:i,selectedAddons:a,noVat:o});return{totalPrice:l,formattedTotalPrice:X(l,r,n)}})({product:i,quantity:v,language:n,currency:d,variantId:s,selectedAddons:u}),[i,v,n,d,s,u]),M=F(e=>{var t,i;(null===(i=null===(t=null==f?void 0:f.current)||void 0===t?void 0:t.contains)||void 0===i?void 0:i.call(t,null==e?void 0:e.target))||T&&T()},[f,T]);if(Q(i))return null;const{image1024:w,volume:W,variants:U,addons:B,available:z}=i,V=(null==U?void 0:U.length)>0,x=(null==B?void 0:B.length)>0;return e("div",{className:nn.container,onClick:M,children:e(_,{onClose:T,ref:f,noBodyPadding:!0,size:"small",content:t("div",{className:nn.content,children:[t(a,{gap:0,children:[t("div",{className:nn.media,children:[w&&e("img",{src:Ke(w),width:1024,height:400,alt:R||"product",className:nn.image}),Boolean(b)&&t("a",{href:b,className:nn.play,children:[e(l,{icon:Ae,color:m.DEFAULT}),e(o,{color:"white",children:N("Play video")})]})]}),t(a,{className:nn.details,gap:1,children:[e("h2",{className:nn.name,children:R}),t(r,{justifyContent:"space-between",children:[e("div",{className:nn.price,children:L}),e("div",{className:nn.volume,children:W})]}),e("div",{className:nn.description,children:C})]}),(V||x)&&t(a,{gap:0,className:nn.choices,children:[V&&e(un,{product:i,selectedVariant:s,focusedSection:c,language:n,currency:d,onSelectVariant:A}),x&&e(_n,{product:i,selectedAddons:u,language:n,currency:d,onOptionSelect:P})]})]}),e("div",{className:nn.close,children:e(y,{onClick:T,icon:fe})})]}),footer:t(a,{children:[e(sn,{productId:null==i?void 0:i.id,onModalClose:T,isInPublicMenu:E,removeAllProductVariants:S,quantity:I,language:n}),t(r,{className:nn.addToOrder,gap:.5,children:[e(on,{isDecreaseDisabled:p,onDecrease:()=>O(-1),onIncrease:()=>O(1),quantity:v}),e(h,{className:nn.addAction,label:z?t(r,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:nn.actionTitle,children:g}),e("span",{children:k})]}):N("Not available"),onClick:D,size:"xl",fullWidth:!0,disabled:!z,paddingBlock:.5})]})]})})})};var pn="OrderDrawer-module_container__DymQj",vn="OrderDrawer-module_content__khduX",gn="OrderDrawer-module_paymentMethods__9i-sb",En="OrderDrawer-module_footer__8XfD9",In="OrderDrawer-module_noteButton__M8BVx";const yn=({isOrderItemsEmpty:i=!1,orderError:r})=>{const{t:n}=bi("order"),{t:l}=bi("error"),{order:s,orderStep:c,orderItems:u,setOrderStep:_,setIsOrderOpen:p,setTrackingId:v,updateOrderErrors:g,resetErrors:I}=Mt(),{setModal:y}=d(),f=St(),b=(()=>{const{customer:e}=Mt();return e||{}})(),{isOpen:T,isDelivering:A}=Ot(),P=Ri(),[O,S]=x(!1),[N,R]=x(""),C=null==s?void 0:s.note,L=!!C,k=f&&c===ot.CART,M=T||A,w=!!r||!M,W=()=>tt(void 0,void 0,void 0,function*(){try{R(""),S(!0);const e=yield(e=>tt(void 0,void 0,void 0,function*(){return pt("customer/order",e)}))(P);return e.trackingId}catch(e){return R((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{S(!1)}}),U=f&&M?()=>tt(void 0,void 0,void 0,function*(){if(Q(b))return y({id:Le});if(I(),c===ot.DETAILS){if(s.orderType===it.DELIVERY&&Q(null==b?void 0:b.addresses))return g("customer");if(s.orderType===it.DINE_IN&&!(null==s?void 0:s.tableId))return g("tableId");if(Q(u))return g("items");const e=yield W();if(!e)return;v(e)}const e=(dt.findIndex(e=>e===c)||0)+1;if(e>=dt.length)return;const t=dt[e];_(t)}):null;return t(a,{className:En,fullWidth:!0,children:[!!N&&e(E,{message:l(N),type:"error",onClear:()=>R("")}),!!r&&e(D,{text:r,type:m.DANGER,fullWidth:!0}),k&&e(h,{label:L?e(o,{children:s.note}):t(a,{gap:0,children:[e(o,{children:n("Add an order note")}),e(o,{size:"sm",color:"muted",children:n("Special instructions, allergies, etc.")})]}),onClick:()=>{y({id:Ce,params:{note:C}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:In,icon:L?Pe:_e,iconSize:"md"}),i?e(h,{label:n("Add items"),onClick:()=>p(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):c!==ot.COMPLETED?e(Wr,{actionText:n((()=>{if(!f)return"Subtotal";if(!M)return"Closed Now";switch(c){case ot.CART:return"Go to checkout";case ot.DETAILS:return"Place order";default:return"Continue"}})()),onClick:U,isLoading:O,isDisabled:w}):null]})};var fn={},bn="OrderListItem-module_container__Tj4RI",Tn="OrderListItem-module_image__o3PIC",An="OrderListItem-module_data__BLzxw",Pn="OrderListItem-module_name__QEzuZ",On="OrderListItem-module_price__-V2qL",Dn="ProductQuantity-module_quantity__PzTpj";const Sn=({productId:t,variantId:i,min:r=1,size:n="md",selectedAddons:a,isDisabled:o=!1})=>{const l=(({productId:e,variantId:t,selectedAddons:i})=>{const{orderItems:r}=Mt(),n=r[ct(e,t,i)];return(null==n?void 0:n.quantity)||1})({productId:t,variantId:i,selectedAddons:a}),d=ur(t),{updateProduct:s}=Mt(),c=l===r;return o?e("div",{className:Dn,children:l}):e(on,{isDecreaseDisabled:c,onDecrease:()=>s({product:d,quantity:l-1,variantId:i,selectedAddons:a}),onIncrease:()=>s({product:d,quantity:l+1,variantId:i,selectedAddons:a}),quantity:l,size:n})},Nn=({item:r,product:n,language:a})=>e(i,{children:(r.addons||[]).map(({addonId:e,options:i})=>{var r;const l=((e,t)=>((null==e?void 0:e.addons)||[]).find(({id:e})=>e===t)||{})(n,e),d=((null==l?void 0:l.options)||[]).filter(e=>null==i?void 0:i.some(({optionId:t})=>t===e.id));if(Q(l)||Q(d))return null;const s=null===(r=er(l,a))||void 0===r?void 0:r.title,c=d.map(e=>{var t;return null===(t=tr(e,a))||void 0===t?void 0:t.title}).filter(Boolean).join(", ");return s&&c?t(o,{color:"muted",size:"xs",children:[s,": ",c]},e):null})}),Rn=({item:i,isDisabled:n=!1})=>{var l;const{productId:d}=i||{},s=null===(l=null==i?void 0:i.variant)||void 0===l?void 0:l.variantId,c=(e=>{const t={};for(const{addonId:i,options:r=[]}of e.addons||[]){const e=r.map(({optionId:e})=>e);t[i]=1===e.length?e[0]:e}return t})(i),u=ur(d),m=lr(u,s),_=zt(),{image160:h}=u,{title:p}=sr(m,_),{name:v}=j(()=>nr(u,_),[u,_]),{formattedTotalPrice:g}=(e=>{const t=zt(),i=Bt(),{totalGross:r}=ut(e);return{totalPrice:r,formattedTotalPrice:X(r,i,t)}})(i);return t(r,{className:bn,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:Ke(h),alt:v||"menu",className:Tn,loading:"lazy",width:80,height:45}),t("div",{className:An,children:[e("div",{className:Pn,children:v}),t(a,{gap:0,children:[!!p&&e(o,{color:"muted",size:"xs",children:p}),e(Nn,{item:i,product:u,language:_})]}),e("div",{className:On,children:g})]}),e(Sn,{productId:d,variantId:s,selectedAddons:c,size:"sm",min:0,isDisabled:n})]})},Cn=()=>{const{t:i}=bi("order");return t(a,{className:fn.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(o,{variant:"h2",children:i("Empty order")}),e(S,{text:i("You don't have any items in your order")})]})},Ln=({isDisabled:t=!1})=>{const{orderItems:i}=Mt(),r=Q(i);return e("div",{className:fn.container,children:r?e(Cn,{}):e("div",{className:fn.items,children:Object.entries(i||{}).map(([i,r])=>e(Rn,{item:r,isDisabled:t},i))})})},kn=()=>e("div",{className:vn,children:e(Ln,{})});var Mn="CustomerAddress-module_container__TGYRV";const wn=()=>{const{t:t}=bi("customer");return e(o,{color:m.DANGER,children:t("No address available")})},Wn=()=>{const r=Ai(),{t:n}=bi("customer"),{additionalNumber:a,street:l,houseNumber:d,cityName:s,countryCode:c}=r,u=Si(l,d,a),m=([s,c]||[]).filter(Boolean).join(", ");return t(i,{children:[e(o,{children:u||n("Unknown address")}),m&&e(o,{size:"sm",color:"muted",children:m})]})},Un=()=>{const i=Ai(),{setModal:n}=d();return e("div",{className:Mn,onClick:()=>{n({id:ke})},children:t(r,{fullWidth:!0,alignItems:"center",children:[e(l,{icon:ue,size:"md"}),e(a,{gap:0,fullWidth:!0,children:Q(i)?e(wn,{}):e(Wn,{})}),e(l,{icon:Pe,size:"sm"})]})})};var Bn,zn,Vn;!function(e){e.SQUARE="SQUARE",e.CIRCLE="CIRCLE",e.RECTANGLE="RECTANGLE",e.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",e.SINGLE_AT_BAR="SINGLE_AT_BAR",e.OTHER="OTHER"}(Bn||(Bn={})),function(e){e.VACANT="VACANT",e.RESERVED="RESERVED",e.OCCUPIED="OCCUPIED",e.BLOCKED="BLOCKED",e.NEEDS_CLEANING="NEEDS_CLEANING",e.OUT_OF_SERVICE="OUT_OF_SERVICE",e.PENDING_CONFIRMATION="PENDING_CONFIRMATION",e.NO_SHOW="NO_SHOW"}(zn||(zn={})),function(e){e.MAIN_HALL="MAIN_HALL",e.PRIVATE_DINING="PRIVATE_DINING",e.VIP_ROOM="VIP_ROOM",e.BANQUET_HALL="BANQUET_HALL",e.BAR_AREA="BAR_AREA",e.LOUNGE="LOUNGE",e.OPEN_KITCHEN="OPEN_KITCHEN",e.BOOTH_SECTION="BOOTH_SECTION",e.MEZZANINE="MEZZANINE",e.WINE_CELLAR="WINE_CELLAR",e.TERRACE="TERRACE",e.PATIO="PATIO",e.GARDEN="GARDEN",e.COURTYARD="COURTYARD",e.ROOFTOP="ROOFTOP",e.BALCONY="BALCONY",e.SIDEWALK="SIDEWALK",e.POOLSIDE="POOLSIDE",e.SMOKING_AREA="SMOKING_AREA",e.NON_SMOKING="NON_SMOKING",e.FAMILY_SECTION="FAMILY_SECTION",e.KIDS_AREA="KIDS_AREA",e.WAITING_AREA="WAITING_AREA",e.DANCE_FLOOR="DANCE_FLOOR"}(Vn||(Vn={}));var xn={};const Fn=({preDefinedTable:i,tableOptions:n,selectedTableId:l,error:d,disableIfPreDefined:s,language:c,onChange:u})=>{const{t:_}=bi("order",{language:c}),h=!Q(i),g=F(e=>{var t;u(Number(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)||null)},[u]);return t(a,{className:xn.table,fullWidth:!0,gap:.5,children:[e(r,{fullWidth:!0,children:h&&s?e(o,{variant:"bold",children:i.name}):e(p,{name:"tableId",options:n,type:v.SELECT,className:xn.tableInput,value:l,onChange:g,isDisabled:h,fullWidth:!0,noMargin:!0,size:"small",placeholder:_("Select Table")})}),d&&e(o,{color:m.DANGER,children:_(d)})]})},jn=()=>{const t=(()=>{const{tableId:e,tables:t}=Xe();return!e||Q(t)?{}:t.find(t=>Number(t.id)===Number(e))||{}})(),i=(()=>{const{tables:e}=Xe();return e})(),{order:r,updateOrder:n,errors:a}=Mt(),o=zt(),l=i.map(({id:e,name:t})=>({label:t,value:e}));return e(Fn,{onChange:e=>n({tableId:e}),preDefinedTable:t,tableOptions:l,selectedTableId:null==r?void 0:r.tableId,error:null==a?void 0:a.tableId,language:o,disableIfPreDefined:!0})};var Gn="OrderMethods-module_container__KSwfa";const Hn=({orderTypes:i,orderType:n,size:a,onSelect:d})=>{const{t:s}=bi("error"),u=e=>0===e?"right":e+1===i.length?"left":"bottom",m=i.reduce((i,a,d)=>a.isVisible?(i.push((({type:i,icon:a,title:d,isDisabled:m},_)=>({value:i,isDisabled:m,label:e(c,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:u(_),children:t(r,{gap:.5,flexWrap:"nowrap",children:[e(l,{icon:a}),e(o,{color:i!==n||m?"normal":"white",whiteSpace:"nowrap",children:d})]})})}))(a,d)),i):i,[]);return e("div",{className:Gn,children:e(N,{methods:m,onSelect:d,selectedMethod:n,fullWidth:!0,size:a,gap:.5})})};var Yn="OrderPaymentSummary-module_container__HF7-X",Kn="OrderPaymentSummary-module_row__eikWa";const qn=({textSize:i,totalPriceWithoutTax:n=0,totalPriceWithTax:l=0,deliveryFee:d=0,totalTax:s,currency:c,language:u,orderType:m})=>{const{t:_}=bi("order",{language:u}),h=X(n,c,u),p=X(l,c,u),v=X(s,c,u),g=X(d,c,u);return t(a,{className:Yn,fullWidth:!0,gap:0,children:[t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Items")}),e(o,{size:i,children:h})]}),t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Tax")}),e(o,{size:i,children:v})]}),m===it.DELIVERY&&t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,children:_("Delivery Fee")}),e(o,{size:i,children:g})]}),t(r,{justifyContent:"space-between",className:Kn,children:[e(o,{size:i,color:"bold",children:_("Total")}),e(o,{size:i,color:"bold",children:p})]})]})},Qn=()=>{const i=zt(),n=Bt(),{order:{orderType:o,paymentMethod:l},updateOrder:d}=Mt(),{totalPriceWithTaxAndFees:s,totalPriceWithoutTax:c,totalTax:u}=Ni(),{isOpen:m,isDelivering:_}=Ot(),{deliveryOrderEnabled:h,dineInOrderEnabled:g,pickupOrderEnabled:E,deliveryFeeAmount:I}=Dt(),{t:y}=bi("order"),f=[{type:it.DELIVERY,icon:Oe,title:y("Delivery"),isDisabled:!_,isVisible:h},{type:it.DINE_IN,icon:pe,title:y("Dine in"),isDisabled:!m,isVisible:g},{type:it.PICK_UP,icon:Ee,title:y("Pickup"),isDisabled:!m,isVisible:E}],b=[{value:at.CASH,label:y("Cash")},{value:at.CARD,label:y("Card")}];return t(a,{className:vn,gap:1,children:[e(Hn,{orderTypes:f,orderType:o,size:"small",onSelect:e=>d({orderType:e})}),o===it.DELIVERY&&e(Un,{}),o===it.DINE_IN&&e(R,{paddingInline:1,fullWidth:!0,children:e(jn,{})}),e(r,{className:gn,children:b.map(({label:t,value:i})=>e(p,{label:t,name:"paymentMethod",onChange:()=>d({paymentMethod:i}),checked:l===i,type:v.RADIO,size:"small",noMargin:!0},i))}),e(C,{title:y("Order summary"),content:e(Ln,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(qn,{textSize:"sm",totalPriceWithoutTax:c,totalPriceWithTax:s,totalTax:u,language:i,currency:n,deliveryFee:I,orderType:o})]})},$n=()=>{const{t:i}=bi("order"),{trackingId:r}=Mt(),n=zt(),d=Je();return t(a,{className:vn,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(l,{icon:De,size:"xxl",color:m.SUCCESS}),e(R,{paddingInline:2,children:e(o,{variant:"h1",align:"center",children:i("Your Order is Completed!")})}),e(R,{paddingInline:2,children:e(o,{align:"center",children:i("Thank you! We've received your order and it will be delivered shortly.")})}),e(R,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(L,{href:`https://${d}/${n}/order/${r}`,title:i("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},Zn=()=>{const{isOrderOpen:t,orderItems:i}=Mt(),{orderStep:r,setOrderStep:n,resetOrder:a}=Mt(),o=G(null),{t:l}=bi("order"),d=(()=>{const{order:e,orderStep:t}=Mt(),i=Li(),r=ki(),{t:n}=bi("error");return t!==ot.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===it.DELIVERY?r||i:null:n("NO_ORDER_TYPE")})(),s=!!d,c=St()&&(r===ot.CART||s),u=Q(i),m=()=>{a()};return t?e("div",{className:pn,onClick:e=>{var t,i;(null===(i=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.contains)||void 0===i?void 0:i.call(t,null==e?void 0:e.target))||m()},children:e(k,{ref:o,onClose:m,isOpen:t,title:l("Your order"),onBack:r===ot.CART?void 0:()=>{n(ot.CART)},content:(()=>{switch(r){case ot.DETAILS:return e(Qn,{});case ot.COMPLETED:return e($n,{});default:return e(kn,{})}})(),footer:e(yn,{isOrderItemsEmpty:u,orderError:d}),hasLargeFooter:c})}):null},Xn={[Ce]:({params:i})=>{const{modalRef:n,note:a}=i,[o,l]=x(a||""),{setModal:s}=d(),{updateOrder:c}=Mt(),{t:u}=bi("order"),{t:g}=bi("common");return e(_,{ref:n,header:e("div",{children:u("Add an order note")}),content:e("div",{className:yi.container,children:e(p,{type:v.TEXT_AREA,placeholder:u("Specify any allergies, special requests, or ingredients you want to add or remove"),value:o,onChange:e=>{var t;return l(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)}})}),footer:t(r,{justifyContent:"flex-end",children:[e(h,{label:g("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(h,{label:g("Save"),onClick:()=>{c({note:o}),s(null)},size:"md"})]})})},[Le]:({params:i})=>{const{t:r}=bi("auth"),{t:n}=bi("error"),{t:o}=bi("common"),{setModal:l}=d(),{setOrderStep:s,getCustomer:c,customer:u}=Mt(),[m,p]=x({phoneNumber:"",otp:"",email:""}),[v,g]=x({}),[I,y]=x(""),[f,b]=x(Pi.PHONE),T=[Pi.PHONE,Pi.OTP,Pi.EMAIL],{modalRef:A}=i,P=()=>{s(ot.DETAILS),l(null)},O=()=>{const e=T.indexOf(f),t=T[e+1];if(t)return b(t);P()},D=F(e=>t=>{p(i=>Object.assign(Object.assign({},i),{[e]:t}))},[]);return e(_,{ref:A,title:r("Create an account or log in"),onClose:()=>l(null),content:t(a,{className:Ti.content,fullWidth:!0,children:[!!I&&e(E,{message:n(I),type:"error",onClear:()=>y(""),inline:!0}),(()=>{switch(f){case Pi.OTP:return e(wi,{address:m.phoneNumber,errorMessage:null==v?void 0:v.otp,onChange:D("otp")});case Pi.EMAIL:return e(Wi,{onChange:D("email"),onCancel:P,formErrors:v});default:return e(Mi,{onChange:D("phoneNumber"),formErrors:v})}})()]}),footer:e(h,{label:o("Continue"),onClick:()=>tt(void 0,void 0,void 0,function*(){y("");try{const t=f===Pi.EMAIL,i=(null==u?void 0:u.email)===m.email,r=!!(null==u?void 0:u.email)&&!m.email;if(t&&(i||r))return O();const n=((e,t)=>{const i={},{phoneNumber:r,email:n,otp:a}=e||{};switch(t){case Pi.PHONE:{const{isValid:e,error:t}=Ge(r);e||(i.phoneNumber=t);break}case Pi.OTP:{const{isValid:e,error:t}=Ge(r);e||(i.phoneNumber=t),a&&6===a.length||(i.otp="Invalid OTP");break}case Pi.EMAIL:n&&Z(n)||(i.email="Invalid Email Address")}return i})(m,f);if(!Q(n))return g(n);switch(g({}),f){case Pi.PHONE:{const t=yield(e=m.phoneNumber,tt(void 0,void 0,void 0,function*(){return pt("customer",{phoneNumber:e})}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");break}case Pi.OTP:{const e=yield((e,t)=>tt(void 0,void 0,void 0,function*(){return pt("otp/verify",{otp:e,phoneNumber:t})}))(m.otp,m.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Fe.saveAuthToken(e);break}case Pi.EMAIL:{const e=yield Et({email:m.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield c(),O()}catch(e){y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:m})}var e}),size:"lg",fullWidth:!0})})},[ke]:({params:i})=>{const r=Ue[0].code,{getCustomer:n}=Mt(),l=zt(),s=At(),{id:c,countryCode:g=r,cityName:y="",street:f="",houseNumber:b="",floor:T,additionalNumber:A="",instructions:P="",longitude:O,latitude:D,postCode:S}=Ai(),N={addressId:c,countryCode:g,cityName:y,street:f,houseNumber:b,additionalNumber:A,instructions:P,floor:T,latitude:D,longitude:O,postCode:S},{modalRef:R}=i,{t:C}=bi("customer"),{t:L}=bi("error"),{t:k}=bi("common"),{setModal:M}=d(),[w,W]=x(N),[U,B]=x({}),[z,V]=x(""),[j,G]=x(!1),H=U.countryCode||U.cityName||U.street||U.houseNumber,Y=Si(N.street,N.houseNumber,void 0),K=e=>{var t,i;const r=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.name,n=null===(i=null==e?void 0:e.target)||void 0===i?void 0:i.value;W(e=>Object.assign(Object.assign({},e),{[r]:n}))},q=()=>M(null),$=F(e=>{const t=Object.assign(Object.assign({},w),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber,latitude:e.lat,longitude:e.long,postCode:e.postCode}),i=Di(t);W(t),B(i)},[w]);return e(_,{ref:R,title:C("Update Delivery Address"),onClose:q,content:e("div",{className:Ui.content,children:t(a,{fullWidth:!0,children:[!!z&&e(E,{message:L(z),type:"error",onClear:()=>V(""),inline:!0}),t(a,{fullWidth:!0,gap:.5,children:[e(I,{onSelect:$,language:l,origin:{lat:null==s?void 0:s.latitude,lng:null==s?void 0:s.longitude},noMargin:!0,defaultAdressText:Y,placeHolder:C("Enter address"),inputLabel:C("Address")}),H&&e(o,{color:m.DANGER,children:L(H)})]}),t(u,{gap:1,children:[e(u.Item,{flex:6,children:e(p,{name:"floor",label:C("Floor"),placeholder:"7",type:v.TEXT,value:w.floor,onChange:K,errorMessage:L(U.floor)})}),e(u.Item,{flex:6,children:e(p,{name:"additionalNumber",label:C("Additional number"),placeholder:"17",type:v.TEXT,value:w.additionalNumber,onChange:K,errorMessage:L(U.additionalNumber)})})]}),e(p,{name:"instructions",placeholder:C("Example: Door code is 555"),label:C("Delivery Instructions"),type:v.TEXT,fullWidth:!0,value:w.instructions,onChange:K,errorMessage:L(U.instructions)})]})}),footer:e(h,{label:k("Save"),onClick:()=>tt(void 0,void 0,void 0,function*(){V("");try{const e=Di(w);if(!Q(e))return B(e);B({}),G(!0);const t=yield Et({address:w});if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");n(),q()}catch(e){V((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),It(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:w})}finally{G(!1)}}),size:"lg",fullWidth:!0,isLoading:j})})},[Me]:({params:t})=>{const{setModal:i}=d(),{t:r}=bi("branch"),{modalRef:n,openingHours:a,deliveryHours:o}=t;return e(_,{ref:n,onClose:()=>i(null),content:e(Fi,{openingHours:a,deliveryHours:o}),title:r("Opening Hours")})},[we]:({params:t})=>{const{product:i={},modalRef:r,closeModal:n}=t,a=zt(),o=Bt(),{addProduct:l,updateProduct:d,removeAllProductVariants:s}=Mt(),[c,u]=x(1),[m,_]=x(!1),[h,p]=x(null),[v,g]=x(null),[E,I]=x({}),{t:y}=bi("order"),f=(({productId:e,variantId:t,selectedAddons:i})=>{var r;const{orderItems:n}=Mt();return Q(n)||!e?0:(null===(r=n[ct(e,t,i)])||void 0===r?void 0:r.quantity)||0})({productId:null==i?void 0:i.id,variantId:h,selectedAddons:E}),b=(e=>{const{orderItems:t}=Mt();return Q(t)||!e?0:Object.values(t).filter(t=>t.productId===e).reduce((e,t)=>e+t.quantity,0)})(null==i?void 0:i.id),{name:T}=j(()=>nr(i,a),[i,a]),A=m?0===c:1===c,P=j(()=>y(m?0===c?"Remove from order":"Update order":"Add"),[m,c]),O=Ht(null==i?void 0:i.id),D=Boolean(i.videoUrl);H(()=>{u(f>0?f+1:1),_(f>0)},[f,i]),H(()=>{p(null),I({})},[i]);const S=F(e=>{g(e),setTimeout(()=>{g(null)},200)},[]),N=F(()=>{var e;if((null===(e=null==i?void 0:i.variants)||void 0===e?void 0:e.length)>0&&!h)return S("variant");m?d({product:i,quantity:c,variantId:h,selectedAddons:E}):(l({product:i,quantity:c,variantId:h,selectedAddons:E}),$(Er,{name:T,quantity:c})),null==n||n()},[l,n,S,m,T,i,c,E,h,d]),R=F(e=>{-1===e&&A||u(t=>Math.max(0,t+e))},[A]),C=F(({addonId:e,optionId:t,isSingle:i,isRemove:r=!1})=>{I(n=>{if(i)return Object.assign(Object.assign({},n),{[e]:t});const a=n[e]||[],o=r?a.filter(e=>e!==t):[...new Set([...a,t])];return Object.assign(Object.assign({},n),{[e]:o})})},[]);return e(hn,{modalRef:r,product:i,language:a,currency:o,selectedVariant:h,focusedSection:v,selectedAddons:E,isDecreaseDisabled:A,quantity:c,actionTitle:P,videoUrl:D?O:void 0,onClose:n,setSelectedVariant:p,onOptionSelect:C,adjustQuantity:R,onSubmit:N,removeAllProductVariants:s,productQuantityInOrderWithAllVariants:b,isInPublicMenu:!0})}},Jn=()=>{const{getCustomer:i}=Mt(),r=G(null),n=et(),a=Nt(),o=Tt()||a,l=Gt(),{url:d,domain:s}=Vt();return H(()=>{n||i()},[i,n]),Q(l)?t("div",{className:Ne,ref:r,children:[e(Ii,{}),o?e(zr,{containerRef:r}):e($i,{}),e(Gi,{size:"md",zIndex:10}),!!s&&e("a",{rel:"noopener noreferrer",target:"_blank",href:d,className:Re,children:s})]}):e(rn,{})},ea=({data:i})=>e(Ze,{value:i||{},children:e(kt,{children:t(M,{modalsMap:Xn,children:[e(Jn,{}),e(Zn,{})]})})});var ta={};const ia=({currentGoal:t,language:i,setGoal:r})=>{const{t:n}=bi("events",{language:i}),a=G({}),o=e=>{switch(e){case vr:return n("Scrolled to Category");case pr:return n("Category Selected");case gr:return n("Product Details");case Er:return n("Product Added to Order");default:return""}},l=F(e=>{var t,i;r(e),null===(i=null===(t=null==a?void 0:a.current)||void 0===t?void 0:t.close)||void 0===i||i.call(t)},[r]);return e(w,{action:o(t),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:a,menu:e("div",{className:ta.toolbarMenu,children:yr.map(t=>e(W,{onClick:()=>l(t),children:o(t)},t))})})},ra=({data:t,isLoading:i=!1,language:r,goal:n,setGoal:a})=>{const{t:o}=bi("events",{language:r});return e(U,{title:o("Events"),toolbar:e(ia,{language:r,currentGoal:n,setGoal:a}),children:i?e(P,{}):e(B,{data:t})})};var na,aa,oa={container:"Pricing-module_container__86ns8",intervals:"Pricing-module_intervals__YOrns",interval:"Pricing-module_interval__perjd",active:"Pricing-module_active__BRQhl",plans:"Pricing-module_plans__hbRn5",plan:"Pricing-module_plan__pGWAl",title:"Pricing-module_title__rMUDX",price:"Pricing-module_price__TKBkb",originalPrice:"Pricing-module_originalPrice__klyhF",discountedPrice:"Pricing-module_discountedPrice__qS7GB",action:"Pricing-module_action__08XLt",benefits:"Pricing-module_benefits__OjGx8",moneyBack:"Pricing-module_moneyBack__iEpmd",benefit:"Pricing-module_benefit__-oBt1",hasRibbon:"Pricing-module_hasRibbon__siI3P",flexWide:"Pricing-module_flexWide__mXSDX",slidein:"Pricing-module_slidein__tTiof",fadeInOut:"Pricing-module_fadeInOut__rYI0L",heightAnimation:"Pricing-module_heightAnimation__WKFZx",fadein:"Pricing-module_fadein__HeFT0",floatAnimation:"Pricing-module_floatAnimation__1VcsO",bottomSheet:"Pricing-module_bottomSheet__v4vTu",slideRightToLeft:"Pricing-module_slideRightToLeft__GpKCA",rotation:"Pricing-module_rotation__2tW8V",pulse:"Pricing-module_pulse__lxgYz"};!function(e){e.APPETIZER="appetizer",e.MAIN_COURSE="mainCourse",e.CHEFS_SPECIAL="chefsSpecial",e.LIFETIME="lifeTime"}(na||(na={})),function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(aa||(aa={}));const la={appetizer:{title:"Appetizer",price:{monthly:9,annually:7}},mainCourse:{title:"Main Course",price:{monthly:19,annually:15}},chefsSpecial:{title:"Chef's Special",price:{monthly:49,annually:39}},lifeTime:{title:"Lifetime",price:{monthly:49,annually:49},ribbonText:"Limited Time Only"}},da=[{title:"Smart QR Menu",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Link-in-bio",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Menu Analytics",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Users",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Products",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Categories",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Unlimited Languages",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Product variants",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Product options",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Premium Support",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"SEO",[na.APPETIZER]:!0,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Sales reports",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Table Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Order Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Delivery Management",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!0,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Multiple Branches",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!0},{title:"Point of Sale (POS)",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!1},{title:"Mobile App for Owners & Staff",[na.APPETIZER]:!1,[na.MAIN_COURSE]:!1,[na.CHEFS_SPECIAL]:!0,[na.LIFETIME]:!1}],sa=({plan:i,language:n,interval:l,currency:d})=>{const{t:s}=bi("pricing",{language:n}),{price:c,discountedPrice:u}=la[i],m=c[l],_=i===na.LIFETIME?"/ lifetime":"/ month";return void 0!==u?t(a,{gap:0,children:[t(r,{children:[e("span",{className:oa.discountedPrice,children:X(u,d,n)}),e("span",{className:oa.originalPrice,children:X(m,d,n)})]}),e(o,{size:"sm",children:s(_)})]}):t(r,{gap:.5,children:[e(o,{size:"xxl",variant:"bold",children:X(m,d,n)}),e(o,{size:"sm",children:s(_)})]})},ca=({currency:i,language:n,isLoading:a=!1,onPlanSelect:o,onIntervalSelect:d})=>{const[s,c]=x("annually"),{t:u}=bi("pricing",{language:n}),_=[na.APPETIZER,na.MAIN_COURSE,na.CHEFS_SPECIAL],p=Boolean(o),v=p?"Choose Plan":"Try for free",g=({children:t,plan:i})=>{const{ribbonText:r}=la[i],l=Boolean(r),d={className:ee(oa,{plan:!0,hasRibbon:l}),"data-ribbon":u(r)};return o?e("div",Object.assign({},d,{onClick:()=>!a&&o(i),children:t})):e("a",Object.assign({},d,{href:Ye(n,`pricing-${i}`),target:"_blank",rel:"noreferrer noopener",children:t}))};return t("div",{className:oa.container,children:[e("div",{className:oa.intervals,children:["annually","monthly"].map(t=>e("div",{className:ee(oa,{interval:!0,active:s===t}),onClick:()=>(e=>{c(e),d&&d(e)})(t),children:u(t)},t))}),e("div",{className:oa.plans,children:_.map(o=>e(g,{plan:o,children:t(U,{children:[e("div",{className:oa.title,children:u(la[o].title)}),e("div",{className:oa.price,children:e(sa,{plan:o,language:n,interval:s,currency:i})}),e("div",{className:oa.action,children:e(h,{label:u(v),fullWidth:!0,size:"xl",type:o===na.MAIN_COURSE?m.PRIMARY:m.BORDERED_PRIMARY,onClick:()=>{},isLoading:a})}),t("div",{className:oa.benefits,children:[!p&&t(r,{className:oa.moneyBack,gap:.5,children:[e(l,{icon:Se,size:"sm",color:m.SUCCESS}),e("span",{children:u("No credit card needed")})]}),da.map(i=>t("div",{className:oa.benefit,children:[e(l,{icon:i[o]?De:be,size:"md"})," ",e("span",{children:u(i.title)})]},i.title))]})]})},o))})]})};var ua={container:"OrderFAB-module_container__YeERy",count:"OrderFAB-module_count__7ZQN5",isVisible:"OrderFAB-module_isVisible__-0j7W",animate:"OrderFAB-module_animate__Wx4O-",pulse:"OrderFAB-module_pulse__yF8uk",flexWide:"OrderFAB-module_flexWide__FfcIV",slidein:"OrderFAB-module_slidein__dniBn",fadeInOut:"OrderFAB-module_fadeInOut__BhXGd",heightAnimation:"OrderFAB-module_heightAnimation__B-TR3",fadein:"OrderFAB-module_fadein__DO09i",floatAnimation:"OrderFAB-module_floatAnimation__gOJf0",bottomSheet:"OrderFAB-module_bottomSheet__NRqrj",slideRightToLeft:"OrderFAB-module_slideRightToLeft__O8uj3",rotation:"OrderFAB-module_rotation__dOOw-"};const ma=({totalCount:i,isVisible:r,onClick:n})=>{const a=G(null),o=G(!1);return H(()=>{if(!o.current)return;const e=a.current;e&&(e.classList.remove(ua.animate),e.offsetWidth,e.classList.add(ua.animate))},[i]),H(()=>{o.current=!0},[]),t("div",{className:ee(ua,{container:!0,isVisible:r}),onClick:n,ref:a,children:[e(l,{icon:Ee,color:m.DEFAULT,size:"md"}),e("div",{className:ua.count,children:i})]})};export{br as Categories,ra as Events,ma as OrderFAB,Hn as OrderMethods,qn as OrderPaymentSummary,kt as OrderProvider,Fn as OrderTableUI,ca as Pricing,hn as ProductDetailsUI,Cr as ProductsGridItem,ea as PublicMenu,on as Quantity,Mt as useOrderContext};
2
2
  //# sourceMappingURL=index.esm.js.map