@restaround/react 1.4.46 → 1.4.48

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 r}from"react/jsx-runtime";import{Row as i,classNames as n,Column as a,Text as o,SVGIcon as l,useModalContext as d,IconLink as s,Tooltip as u,Flex as c,UIElementType as m,Modal as _,Button as h,Input as E,InputType as g,OTPInput as p,AlertBox as v,AddressAutocomplete as I,IconButton as y,Container as f,Carousel as T,CarouselItem as b,Chip as A,Loading as P,TextBanner as O,Description as S,MethodSelection as D,Padding as R,Accordion as N,Link as C,Drawer as L,ModalProvider as k,DropDown as M,DropDownMenuItem as W,Card as U,BarChart as w}from"@sorocraft/ui";import{createContext as B,useContext as z,useMemo as x,useState as F,useCallback as j,useEffect as G,useRef as V,memo as Y}from"react";import{Storage as H,sortNumbers as K,isEmpty as q,trackEvent as Q,checkIsValidEmail as $,priceFormatter as Z,isNumber as X,classNames as J}from"@sorocraft/js-utils";import{ChevronLeft as ee,Phone as te,Whatsapp as re,Instagram as ie,Telegram as ne,Tiktok as ae,Facebook as oe,Wifi as le,Clock as de,MarkerPin as se,ChevronUp as ue,Plus as ce,Minus as me,Trash as _e,ShoppingBag as he,Close as Ee,Edit as ge,Delivery as pe,Grid as ve,Check as Ie,List as ye,ShieldDollar as fe}from"@sorocraft/ui/icons";var Te="PublicMenu-module_container__QLN6U",be="PublicMenu-module_footer__6G3DQ";const Ae="ADD_UPDATE_NOTES",Pe="AUTH",Oe="ADD_UPDATE_ADDRESS",Se="BRANCH_BUSINESS_HOURS",De=["en","az","nl","et","tr","ru"],Re=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Ne="restaround.co",Ce=Ne,Le=[Ne,"restaround.az","restaround.ee","restaround.nl"],ke="https://images.restaround.co",Me=new H("restaround_cst_act","restaround_cst_rft"),We={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 Ue(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const t=e.replace(/\D/g,""),r=t.startsWith("994")?"994":t.startsWith("31")?"31":null;if(!r)return{isValid:!1,error:"Unsupported country code"};const i=t.slice(r.length);return(0,We[r])(i)}const we=(e,t)=>{const r=Le.includes(e)?e:Ne;return{url:`https://${r}/${t||"en"}`,domain:r}},Be=(e,t)=>{const r=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${r}/auth/register?lang=${e}&utm_source=${t}`},ze=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"",xe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"https://images.restaround.co/no-photo-128.webp",Fe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"https://images.restaround.co/restaround-doodle.webp",je=B({}),Ge=({children:t,value:r})=>e(je.Provider,{value:r,children:t}),Ve=()=>z(je),Ye=()=>{const{hostname:e}=Ve();return e||Ce};function He(e,t,r,i){return new(r||(r=Promise))(function(n,a){function o(e){try{d(i.next(e))}catch(e){a(e)}}function l(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,l)}d((i=i.apply(e,t||[])).next())})}var Ke,qe,Qe,$e,Ze;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(Ke||(Ke={})),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"}(qe||(qe={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(Qe||(Qe={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}($e||($e={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(Ze||(Ze={}));const Xe={orderType:null,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:$e.CASH},Je=[Ze.CART,Ze.DETAILS,Ze.COMPLETED];var et;!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"}(et||(et={}));const tt=(e,t,r)=>{if(!e)throw new Error("Product ID is required");let i=`${e}`;t&&(i+=`-${t}`);const n=Object.entries(r||{}).map(([e,t])=>{if(!e||!t)return null;const r=Array.isArray(t)?K(t).filter(Boolean).join("-"):`${t}`;return r?`${e}-${r}`:null}).filter(Boolean).join("-");return n&&(i+=`-${n}`),i},rt=e=>{var t;const{price:r,variant:i,addons:n,quantity:a,vat:o}=e||{},l=null!==(t=null==i?void 0:i.price)&&void 0!==t?t:r,d=function(e=[],t=1){return t*e.reduce((e,t)=>{const r=(e=>e.options.reduce((e,t)=>e+t.price,0))(t);return e+r},0)}(n,1),s=l+d,u=l*(o/100),c=s+u;return{totalGross:c*a,totalNet:s*a,totalTax:u*a,itemGrossPrice:c,itemNetPrice:s,itemTax:u}},it=e=>{switch(e){case"customer":return et.ADDRESS_IS_EMPTY;case"tableId":return et.TABLE_NOT_SELECTED;case"items":return et.EMPTY_ITEMS;case"branchId":return et.BRANCH_NOT_SELECTED;default:return et.FIELD_REQUIRED_ERROR}},nt="https://api.restaround.co/api/v1",at=(e,t,r)=>He(void 0,void 0,void 0,function*(){const{accessToken:i}=Me.getAuthToken(),n=`${nt}/${t}`,a=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:i},credentials:"include",body:JSON.stringify(r)}),o=yield a.json();if(!a.ok)throw o;return o}),ot=(e,t)=>at("POST",e,t),lt=(e,t)=>at("PATCH",e,t),dt=e=>at("GET",e),st=e=>He(void 0,void 0,void 0,function*(){return lt("customer",e)}),ut=(...e)=>He(void 0,[...e],void 0,function*(e=null,t={}){try{return Q("error",{message:null==e?void 0:e.message}),yield fetch(`${nt}/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)}}),ct=(e,t)=>{var r;return null===(r=((null==e?void 0:e.days)||[]).find(({day:e})=>e===t))||void 0===r?void 0:r.hours},mt=e=>(e||"").split(":").map(Number),_t=e=>{if(!e)return!1;const t=new Date,[r,i]=mt(e.openAt),[n,a]=mt(e.closeAt),o=new Date(t);o.setHours(r,i,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},ht=()=>{const{branches:e}=Ve();return(e||[]).length<=1},Et=()=>{const{branches:e,branchId:t}=Ve(),r=ht();return q(e)?{}:r?e[0]:e.find(e=>e.id===Number(t))||{}},gt=()=>{const e=Et();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},pt=()=>{const e=Et(),{openingHours:t,deliveryHours:r}=e||{};if(!(null==t?void 0:t.days)||!(null==r?void 0:r.days))return{isOpen:!1,isDelivering:!1};const i=((new Date).getUTCDay()+6)%7,n=ct(t,i),a=ct(r,i);return{isOpen:_t(n),isDelivering:_t(a)}},vt=()=>{const e=Et();return(null==e?void 0:e.settings)||{}},It=()=>{const e=vt();if(q(e))return!1;const{deliveryOrderEnabled:t,dineInOrderEnabled:r,pickupOrderEnabled:i}=e;return t||r||i},yt=({defaultOrderType:e,defaultPaymentMethod:t,defaultBranchId:r})=>{const i=(()=>{const{tableId:e}=Ve();return e})(),{isOpen:n,isDelivering:a}=pt(),o=vt(),l=e||((e,t,r)=>{if(!e)return null;const{deliveryOrderEnabled:i,dineInOrderEnabled:n,pickupOrderEnabled:a}=e;return i&&r?Ke.DELIVERY:n&&t?Ke.DINE_IN:a&&t?Ke.PICK_UP:null})(o,n,a);return{branchId:r,orderType:l,tableId:i?Number(i):void 0,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:t||$e.CASH}},ft=B({order:Xe,orderStep:Ze.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",errors:{},updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),Tt=({children:t,defaultOrderType:r,defaultPaymentMethod:i,defaultBranchId:n,isOrderDefaultOpen:a=!1})=>{const o=yt({defaultOrderType:r,defaultPaymentMethod:i,defaultBranchId:n}),[l,d]=F({}),[s,u]=F(o),[c,m]=F(Ze.CART),[_,h]=F({}),[E,g]=F(a),[p,v]=F(""),[I,y]=F({}),f=j(e=>{u(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]),T=j(({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:a})=>{if(q(e)||t<0)return;const{id:o,vat:l=0,variants:d,addons:s,price:u}=e,c=tt(o,r,i);h(e=>{const m=e[c],_=a?((null==m?void 0:m.quantity)||0)+t:t;if(_<=0){const t=e,r=c;t[r];return function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r}(t,["symbol"==typeof r?r:r+""])}const h=d.find(({id:e})=>e===r),E=((e=[],t={})=>Object.entries(t).map(([t,r])=>{const i=Number(t),n=Array.isArray(r)?r:[r],a=e.find(e=>e.id===i);if(q(a))return{addonId:i,options:[]};const o=(a.options||[]).filter(e=>n.includes(e.id)).map(e=>({optionId:e.id,price:e.price}));return{addonId:i,options:o}}))(s,i);return Object.assign(Object.assign({},e),{[c]:Object.assign(Object.assign({productId:o,quantity:_,price:u,note:n,vat:l},!q(h)&&{variant:{variantId:h.id,price:h.price}}),{addons:E})})}),a&&(null==I?void 0:I.items)&&y(e=>Object.assign(Object.assign({},e),{items:null}))},[null==I?void 0:I.items]),b=j(({product:e,quantity:t=1,variantId:r,selectedAddons:i,note:n})=>T({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:!0}),[T]),A=j(({product:e,quantity:t=1,variantId:r,selectedAddons:i,note:n})=>T({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:!1}),[T]),P=j(e=>{if(!e||q(_))return;const t=Object.entries(_).reduce((t,[r,i])=>(i.productId!==e&&(t[r]=i),t),{});h(t)},[_]),O=j(()=>He(void 0,void 0,void 0,function*(){try{const{accessToken:e}=Me.getAuthToken();if(!e)return;const t=yield He(void 0,void 0,void 0,function*(){return dt("customer")});if(!(null==t?void 0:t.id))throw new Error("SOMETHING_WENT_WRONG");d(t)}catch(e){ut(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),S=j((e=!1,t=!0)=>{t&&g(!1),(c===Ze.COMPLETED||e)&&(u(o),h({}),m(Ze.CART),v(""))},[o,c]),D=j(e=>{y(t=>Object.assign(Object.assign({},t),{[e]:it(e)}))},[]),R=j(()=>{y({})},[]),N=x(()=>({order:s,orderStep:c,orderItems:_,isOrderOpen:E,customer:l,trackingId:p,errors:I,updateOrder:f,setOrderStep:m,addProduct:b,updateProduct:A,removeAllProductVariants:P,setIsOrderOpen:g,getCustomer:O,resetOrder:S,setTrackingId:v,updateOrderErrors:D,resetErrors:R}),[s,c,_,E,l,p,I,f,b,A,P,O,S,v,D,R]);return e(ft.Provider,{value:N,children:t})},bt=()=>z(ft);var At,Pt;!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"}(At||(At={})),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"}(Pt||(Pt={}));const Ot=()=>{const{business:e}=Ve();return e||{}},St=()=>{const{currency:e}=Ot();return e||"AZN"},Dt=()=>{const{language:e}=Ve();return e||"en"};var Rt="BusinessHeader-module_container__X22c3",Nt="BusinessHeader-module_cover__l-1W8",Ct="BusinessHeader-module_content__sjiqO",Lt="BusinessHeader-module_logo__DWaaU",kt="BusinessHeader-module_info__6RQFI",Mt="BusinessHeader-module_name__Ynpex",Wt={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 Ut=()=>{const[r,a]=F(!1),o=Ot().languages||[],l=Dt(),d=(()=>{const{onLanguageSelect:e}=Ve();return e})(),s=o.length>1,u=o.filter(({code:e})=>e!==l)||[],c=e=>`https://images.restaround.co/languages/${e}.svg`;return s?e("div",{className:Wt.container,onClick:()=>a(!r),children:t(i,{alignItems:"center",gap:0,children:[e(i,{alignItems:"center",className:n(Wt,{options:!0,isOpen:r}),children:u.map(({code:t})=>e("img",{src:c(t),className:Wt.option,onClick:()=>null==d?void 0:d(t),alt:t},t))}),e("img",{src:c(l),alt:l,className:Wt.currentLanguage})]})}):null},wt=()=>{const{coverPhoto:r,avatar256:i,name:n}=Ot();return t("div",{className:Rt,children:[e("img",{src:Fe(r),alt:n,className:Nt,width:1024,height:400}),e("div",{className:Ct,children:t(a,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:Rt,children:[e("img",{src:xe(i),alt:n,className:Lt,width:96,height:96}),e("div",{className:kt,children:e(o,{variant:"h1",color:"white",className:Mt,align:"center",children:n})})]})}),e(Ut,{})]})};var Bt="BranchHeader-module_container__Ol56f",zt="BranchHeader-module_cover__DGWZX",xt="BranchHeader-module_content__O8E27",Ft="BranchHeader-module_logo__DL7Si",jt="BranchHeader-module_info__Ym-ln",Gt="BranchHeader-module_name__91VkO",Vt="BranchHeader-module_address__Y140r",Yt="BranchHeader-module_addressText__ofVQQ",Ht="BackIcon-module_container__uknWc";const Kt=({onClick:t,size:r,theme:i})=>{const n=Dt(),a=(()=>{const{username:e}=Ot();return e||""})();return e("div",{className:Ht,onClick:t||(()=>{var e,t;if("undefined"!=typeof window)return a?void(window.location.pathname=`/${n}/${a}`):null===(t=null===(e=window.history)||void 0===e?void 0:e.back)||void 0===t?void 0:t.call(e)}),children:e(l,{icon:ee,size:r,theme:i})})};var qt="HeaderLinks-module_container__wfIXS",Qt="HeaderLinks-module_links__S5qXC",$t="HeaderLinks-module_wifiPassword__j4cgP",Zt="HeaderLinks-module_businessHours__qVA-Q",Xt="HeaderLinks-module_icon__cQpBK";const Jt=()=>{const{setModal:r}=d(),{phone:n,wifiPassword:a,whatsApp:o,telegram:c,openingHours:m,deliveryHours:_}=Et(),{instagram:h,tiktok:E,facebook:g}=Ot(),p=!q(null==m?void 0:m.days)||!q(null==_?void 0:_.days);return e("div",{className:qt,children:e("div",{className:Qt,children:e(i,{gap:2,alignItems:"center",children:t(i,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!n&&e(s,{icon:te,href:`tel:+${n}`,size:"sm",shape:"circle",theme:"light"}),!!o&&e(s,{icon:re,href:`https://wa.me/${o}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:ie,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!c&&e(s,{icon:ne,href:c,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!E&&e(s,{icon:ae,href:E,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!g&&e(s,{icon:oe,href:g,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!a&&e(u,{hint:a,children:e("div",{className:$t,children:e(l,{icon:le,size:"sm",className:Xt})})}),p&&e("div",{className:Zt,onClick:()=>{r({id:Se,params:{openingHours:m,deliveryHours:_}})},children:e(l,{icon:de,size:"sm",className:Xt})})]})})})})},er=()=>{const{coverPhoto:r,avatar256:n}=Ot(),d=(()=>{const{business:e}=Ve(),t=Et(),r=ht(),i=(null==e?void 0:e.name)||"Restaround";return r?i:(null==t?void 0:t.name)?`${i} ${t.name}`:i})(),s=Et().address||"",u=ht(),{latitude:_,longitude:h}=gt(),E=`https://www.google.com/maps/place/${_},${h}`;return t("div",{className:Bt,children:[e("img",{src:Fe(r),alt:d,className:zt,width:1024,height:400}),e("div",{className:xt,children:t(a,{justifyContent:u?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!u&&e(Kt,{size:"lg",theme:"dark-theme"}),t(c,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(c.Item,{children:e("img",{src:xe(n),alt:d,className:Ft,width:96,height:96})}),e(c.Item,{shrink:!0,className:jt,children:t(a,{gap:.5,children:[e(o,{className:Gt,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:d}),e("a",{className:Vt,href:E,target:"_blank",rel:"noopener noreferrer",children:t(i,{alignItems:"center",gap:.5,children:[e(l,{icon:se,color:m.DEFAULT}),e("span",{className:Yt,children:s})]})})]})})]})]})}),e(Ut,{}),e(Jt,{})]})},tr=()=>{const t=Et();return ht()||!q(t)?e(er,{}):e(wt,{})};var rr={},ir={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"},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":"Доставка"},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"},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"},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"},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 nr=(e="common",t)=>{const r=Dt(),i=(null==t?void 0:t.language)||r,{t:n}=((e,t)=>{try{const r=De.includes(e)?e:"en",i=ir[r][t]||{};return{t:(e,t)=>{try{const r=i[e]||e;return t?Object.keys(t).reduce((e,r)=>e.replace(`{{${r}}}`,t[r]),r):r}catch(t){return console.error(t),e}}}}catch(e){return console.error(e),{t:e=>e}}})(i,e);return{t:n}};var ar={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const or=()=>{var e,t;const{customer:r}=bt();return(null===(e=null==r?void 0:r.addresses)||void 0===e?void 0:e[(null===(t=null==r?void 0:r.addresses)||void 0===t?void 0:t.length)-1])||{}};var lr,dr;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(lr||(lr={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(dr||(dr={}));const sr=e=>{const t={},{countryCode:r,cityName:i,street:n,houseNumber:a}=e||{};return r||(t.countryCode="COUNTRY_REQUIRED"),i||(t.cityName="CITY_REQUIRED"),n||(t.street="STREET_REQUIRED"),a||(t.houseNumber="STREET_NUMBER_REQUIRED"),t},ur=(e,t,r)=>[e,[t,r].filter(Boolean).join("/")].filter(Boolean).join(" "),cr=()=>{const{orderItems:e,order:t}=bt(),{deliveryFeeAmount:r}=vt(),i=Object.values(e||{}).reduce((e,t)=>{const{totalGross:r,totalNet:i,totalTax:n}=rt(t),a=e.totalPriceWithTax+r;return{totalPriceWithTax:a,totalPriceWithoutTax:e.totalPriceWithoutTax+i,totalTax:e.totalTax+n,totalPriceWithTaxAndFees:a}},{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,totalPriceWithTaxAndFees:0});return(null==t?void 0:t.orderType)===Ke.DELIVERY&&r>0&&(i.totalPriceWithTaxAndFees+=r),i},mr=(e={})=>{const t=(()=>{const{id:e}=Ot();return e})(),r=Et(),{order:i,orderItems:n}=bt(),{totalPriceWithTax:a,totalPriceWithoutTax:o,totalTax:l,totalPriceWithTaxAndFees:d}=cr(),s=or(),u=(()=>{const{customer:e}=bt();return null==e?void 0:e.id})(),{deliveryFeeAmount:c}=vt(),{workingDayId:m,tableId:_,employeeId:h,orderType:E,paymentMethod:g,note:p,vat:v=0}=Object.assign(Object.assign({},i),e);return{branchId:null==r?void 0:r.id,businessId:t,workingDayId:m,tableId:_,customerId:u,customerAddressId:s.id,employeeId:h,orderType:E,totalPriceWithTax:a,totalPriceWithTaxAndFees:d,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:v,paymentMethod:g,note:p,deliveryFee:E===Ke.DELIVERY?c:void 0}},_r=()=>{const{orderItems:e}=bt();return Object.values(e||{}).reduce((e,t)=>e+t.quantity,0)},hr=()=>{const{t:e}=nr("error"),t=gt(),r=vt().maxDeliveryDistance,{latitude:i,longitude:n}=or(),[a,o]=F(null);return G(()=>{const e=!!i&&!!n,a=!q(t);He(void 0,void 0,void 0,function*(){if(!e||!a)return o("INVALID_ADDRESS");try{const e=yield((e,t)=>He(void 0,void 0,void 0,function*(){const{spherical:r}=yield google.maps.importLibrary("geometry"),i=new google.maps.LatLng(e.latitude,e.longitude),n=new google.maps.LatLng(t.latitude,t.longitude);return r.computeDistanceBetween(i,n)}))(t,{latitude:i,longitude:n});o(!e||e>r?"OUT_OF_DELIVERY_RANGE":null)}catch(e){o("OUT_OF_DELIVERY_RANGE")}})},[i,n,t,r]),a?e(a):null},Er=()=>{const{t:e}=nr("order"),t=Dt(),r=St(),i=vt().minDeliveryAmount,{totalPriceWithTax:n}=cr();if(n<i){return e("Minimum order amount for delivery is {{amount}}",{amount:Z(i,r,t)})}return null},gr=({formErrors:r,onChange:n})=>{const o=Re.map(({phoneCode:e})=>({label:e,value:e})),l=Ye(),d=Dt(),{t:s}=nr("auth"),{t:u}=nr("error"),[c,m]=F({countryCode:o[0].value,phoneNumber:""}),{url:_}=we(l,d),h=e=>{var t;const{name:r,value:i}=(null==e?void 0:e.target)||{};if(!r)return;const a=null!==(t=null==i?void 0:i.trim())&&void 0!==t?t:"";if("phoneNumber"===r&&""!==a&&!X(a))return;const o=Object.assign(Object.assign({},c),{[r]:a}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);n(l),m(o)};return t(a,{gap:1,fullWidth:!0,children:[t(i,{fullWidth:!0,alignItems:"flex-start",children:[e(E,{name:"countryCode",options:o,type:g.SELECT,className:ar.countryCode,value:c.countryCode,onChange:h}),e(E,{name:"phoneNumber",placeholder:s("Phone number"),type:g.TEL,fullWidth:!0,value:c.phoneNumber,onChange:h,errorMessage:u(r.phoneNumber)})]}),e("div",{className:ar.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"})]})})]})},pr=({address:r,errorMessage:i,onChange:n})=>{const{t:l}=nr("auth"),{t:d}=nr("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:r})}),e(p,{onChangeOTP:e=>{queueMicrotask(()=>{n(e)})},errorMessage:i?d(i):void 0,inputMode:"numeric"})]})},vr=({formErrors:r,onChange:i,onCancel:n})=>{const o=(()=>{const{customer:e}=bt();return x(()=>null==e?void 0:e.email,[null==e?void 0:e.email])})(),[l,d]=F(o||""),{t:s}=nr("auth"),{t:u}=nr("error"),c=j(e=>{var t,r;const n=null!==(r=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:"";d(n),i(n)},[i]);return G(()=>{He(void 0,void 0,void 0,function*(){o&&o!==l&&d(o)})},[o]),t(a,{className:ar.container,alignItems:"center",gap:0,children:[e(E,{name:"email",type:g.EMAIL,placeholder:"Email",fullWidth:!0,value:l,onChange:c,errorMessage:r.email?u(r.email):void 0}),!l&&e(h,{onClick:n,label:s("I don't have an email"),type:m.DEFAULT})]})};var Ir={};var yr={},fr="HoursList-module_container__wYX5G",Tr="HoursList-module_title__D7Q8u";const br=({title:r,days:n})=>{const{t:l}=nr("branch");return q(n)?null:t(a,{className:fr,gap:.5,fullWidth:!0,children:[r&&e(o,{weight:"medium",className:Tr,children:l(r)}),n.map(({day:r,hours:n})=>{const a=!n,d=a?l("Closed"):`${n.openAt} - ${n.closeAt}`;return t(i,{justifyContent:"space-between",fullWidth:!0,children:[e(o,{size:"sm",whiteSpace:"nowrap",children:l(`WEEKDAY-${r}`)}),e(o,{size:"sm",whiteSpace:"nowrap",color:a?m.DANGER:"normal",children:d})]},r)})]})},Ar=({openingHours:r,deliveryHours:i})=>{const n=(null==r?void 0:r.days)||[],o=(null==i?void 0:i.days)||[],l=(()=>{const e=vt();return null==e?void 0:e.deliveryOrderEnabled})();return q(n)?null:t(a,{className:yr.container,gap:2,children:[e(br,{days:n}),l&&e(br,{title:"Delivery Hours",days:o})]})};var Pr={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 Or=({size:t,zIndex:r=100})=>{const[i,n]=F(!1),a=j(()=>{const e=window.scrollY>100;e!==i&&n(e)},[i]);return G(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}),[a]),e("div",{className:J(Pr,{container:!0,visible:i}),style:{zIndex:r},children:e(y,{icon:ue,size:t,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var Sr="Branches-module_branches__sOuoV",Dr="Branches-module_container__Ppa6v",Rr={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 Nr=({children:t,id:r})=>{const i=(()=>{const e=Ve().rootPath||"";return x(()=>{var t;return(null===(t=null==e?void 0:e.endsWith)||void 0===t?void 0:t.call(e,"/"))?e.slice(0,-1):e},[e])})(),n=(()=>{const{onBranchSelect:e}=Ve();return e})();return n?e("div",{className:Rr.item,onClick:()=>n(r),children:t}):e("a",{href:`${i}/${r}`,className:Rr.item,children:t})},Cr=({branch:r})=>{const{id:n,address:d,coverPhoto:s,name:u}=r||{},c=`${Ot().name} ${u}`;return e(Nr,{id:n,children:t("div",{className:J(Rr,{content:!0,noImage:!s}),children:[s&&e("div",{className:Rr.imageContainer,children:e("img",{src:Fe(s),alt:c,className:Rr.image,width:1024,height:400})}),t(a,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Rr.info,gap:.5,children:[e(o,{variant:"h2",className:Rr.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:c}),t(i,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(l,{icon:se,color:m.DEFAULT}),e("span",{className:Rr.address,children:d})]})]})]})})},Lr=()=>{const t=(()=>{const{branches:e}=Ve();return e||[]})();return e("div",{className:Sr,children:e(f,{className:Dr,children:t.map(t=>e(Cr,{branch:t},t.id))})})};var kr,Mr,Wr={};!function(e){e.LIST="list",e.GRID="grid"}(kr||(kr={})),function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Mr||(Mr={}));const Ur=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},wr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Br=(e,t)=>{var r;return(null===(r=((null==e?void 0:e.options)||[]).find(({id:e})=>e===t))||void 0===r?void 0:r.price)||0},zr=(e=0,t=1,r=0)=>e*t*(1+r/100),xr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Fr=(e,t=1)=>{const{price:r=0,vat:i=0}=e||{};return zr(r,t,i)},jr=(e,t,r,i=1)=>{const n=Fr(e,i);return{totalPrice:n,formattedTotalPrice:Z(n,t,r)}},Gr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.variants)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.id===t))||{}},Vr=(e,t,r)=>{const i=Gr(t,e),{vat:n}=t||{},{price:a}=i||{};return zr(a,r,n)},Yr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Hr=({product:e,variantId:t,quantity:r=1,selectedAddons:i,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={},r)=>((null==e?void 0:e.addons)||[]).filter(e=>Object.prototype.hasOwnProperty.call(t,e.id)).reduce((e,r)=>{const{id:i,selectType:n}=r;if(n===Mr.SINGLE){const n=t[i];return e+Br(r,n)}return e+(t[i]||[]).reduce((e,t)=>e+Br(r,t),0)},0)*r)(a,i,r),l=t?Vr(t,a,r):Fr(a,r);return{price:l,optionsPrice:o,total:l+o}},Kr=e=>{var t;const{products:r}=Ve();return(null===(t=null==r?void 0:r.find)||void 0===t?void 0:t.call(r,({id:t})=>t===e))||{}},qr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Qr="digital_menu",$r=`${Qr}_category_select`,Zr=`${Qr}_category_scroll`,Xr=`${Qr}_product_details`,Jr=`${Qr}_product_add_cart`,ei=`${Qr}_product_view_changed`,ti=[$r,Zr,Xr,Jr];var ri="Categories-module_categories__Hh8hl";const ii=({categoryProductMap:t=[],language:r,selectedCategoryId:i,skipTracking:n=!1,onSelectCategory:a})=>{const o=V({}),l=V(null),d=j(()=>{var e;const t=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e[i];if(!t||!l.current)return;const r=l.current.clientWidth,n=t.offsetLeft-r/2+t.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})},[i]);return G(()=>{i&&d()},[i,d]),e("div",{className:ri,children:e(T,{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===r)||{};return e(b,{children:e(A,{onClick:()=>((e,t)=>{e!==i&&(a(e),n||Q($r,{name:t}))})(t,d),type:m.BORDERED_PRIMARY,active:t===i,children:e("div",{ref:e=>{e&&(o.current[t]=e)},children:d})})},t)})})})};var ni="Products-module_container__bF2LF",ai="Products-module_view__l857X",oi="Products-module_products__AoDrY",li="Products-module_category__Sp7dE",di="Products-module_list__LH4v5",si={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 ui=({product:r,currency:n,language:l,onClick:d})=>{var s,u;const{addProduct:c}=bt(),{image160:_,volume:h,available:E}=r||{},{name:g,description:p}=x(()=>xr(r,l),[r,l]),{formattedTotalPrice:v}=x(()=>jr(r,n,l),[r,n,l]),{t:I}=nr("order"),f=(null===(s=null==r?void 0:r.variants)||void 0===s?void 0:s.length)>0,T=(null===(u=null==r?void 0:r.addons)||void 0===u?void 0:u.length)>0,b=!!_;return t("div",{className:J(si,{container:!0,isClickable:!!d,noImage:!b}),onClick:d,children:[t(i,{justifyContent:"space-between",gap:0,children:[e("div",{className:si.info,children:t(a,{gap:.25,children:[e("h3",{className:si.name,children:g}),e("p",{className:si.description,children:p}),t(i,{className:si.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:v}),!!h&&e(o,{color:"muted",children:h})]}),!E&&e(o,{size:"xs",color:"danger",className:si.notAvailableText,children:I("Not available")})]})}),b&&e("img",{src:ze(_),alt:g||"menu",className:J(si,{image:!0,notAvailable:!E}),loading:"lazy",width:160,height:90})]}),E&&e("div",{className:si.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(f||T)&&d)return d();c({product:r}),Q(Jr,{name:g,quantity:1})},icon:ce,type:m.DEFAULT})})]})};var ci={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 mi=({product:r,currency:n,language:l,defaultImage:d="",isDashboard:s=!1,onClick:u,onAddProduct:c})=>{var _,h;const{volume:E,image580:g,image160:p,image1024:v,available:I}=r||{},f=g||v||p||d,{name:T,description:b}=x(()=>xr(r,l),[r,l]),{formattedTotalPrice:A}=x(()=>jr(r,n,l),[r,n,l]),{t:P}=nr("order",{language:l}),O=(null===(_=null==r?void 0:r.variants)||void 0===_?void 0:_.length)>0,S=(null===(h=null==r?void 0:r.addons)||void 0===h?void 0:h.length)>0;return e("div",{className:ci.container,children:t("div",{className:J(ci,{content:!0,isClickable:!!u,noImage:!f}),onClick:u,children:[f&&e("div",{className:ci.imageContainer,children:e("img",{src:ze(f),alt:T||"menu",className:J(ci,{image:!0,notAvailable:!I}),loading:"lazy",width:580,height:326})}),e("div",{className:ci.info,children:e("div",{className:ci.data,children:t(a,{gap:.25,children:[e("h3",{className:ci.name,children:T}),!s&&e("p",{className:ci.description,children:b}),t(i,{className:ci.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:A}),!!E&&e(o,{color:"white",className:ci.volume,children:E})]}),!I&&e(o,{color:"white",size:"xs",className:ci.notAvailableText,children:P("Not available")})]})})}),I&&e("div",{className:ci.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(O||S)&&u)return u();c({product:r}),Q(Jr,{name:T,quantity:1})},icon:ce,type:m.DEFAULT})})]})})},_i=({product:t,currency:r,language:i,onClick:n})=>{const{addProduct:a}=bt();return e(mi,{onAddProduct:a,product:t,currency:r,language:i,onClick:n})};var hi={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",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"},Ei={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 gi=({isDecreaseDisabled:r=!1,quantity:n=1,size:a="md",onIncrease:o,onDecrease:d})=>t(i,{className:J(Ei,{container:!0},[Ei[a]]),justifyContent:"space-between",gap:0,children:[e("div",{className:J(Ei,{quantityAction:!0,isDisabled:r}),onClick:d,children:e(l,{icon:me})}),e("div",{className:Ei.quantityValue,children:n}),e("div",{className:Ei.quantityAction,onClick:o,children:e(l,{icon:ce})})]});var pi="ProductInOrder-module_container__0N57G",vi="ProductInOrder-module_title__TWjM9";const Ii=({productId:r,quantity:n,isInPublicMenu:a=!0,language:o,removeAllProductVariants:l,onModalClose:d})=>{const{setIsOrderOpen:s}=bt(),{t:u}=nr("order",{language:o});return n<=0?null:t(c,{className:pi,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[t(c.Item,{flex:1,className:vi,children:[u("In order")," (",n,")"]}),e(c.Item,{flex:0,children:t(i,{children:[e(y,{icon:_e,onClick:()=>{l(r)},type:m.DANGER,tooltip:u("Remove from order")}),a&&e(y,{icon:he,onClick:()=>{s(!0),d&&d()},type:m.SUCCESS,tooltip:u("View order")})]})})]})};var yi={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 fi=({product:r,selectedVariant:n,focusedSection:o,language:l,currency:d,onSelectVariant:s})=>{const{t:u}=nr("order",{language:l}),c=V(null),{variants:m}=r||{},_="variant"===o;return G(()=>{_&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[o,_]),t(a,{className:J(yi,{container:!0,focused:_}),gap:1,fullWidth:!0,children:[e("div",{className:yi.variantsTitle,ref:c,children:u("Product choices")}),(m||[]).map(a=>{const{id:o}=a||{},{formattedTotalPrice:u}=(({variantId:e,currency:t="USD",language:r="en",product:i,quantity:n=1})=>{const a=Vr(e,i,n);return{totalPrice:a,formattedTotalPrice:Z(a,t,r)}})({variantId:o,language:l,currency:d,product:r}),{title:c}=Yr(a,l);return t(i,{justifyContent:"space-between",onClick:()=>s(o),className:yi.variant,children:[e(E,{label:c,name:"variant",onChange:()=>s(o),checked:n===o,type:g.RADIO,size:"small",noMargin:!0}),e("div",{className:yi.variantPrice,children:u})]},o)})]})};var Ti={container:"ProductAddons-module_container__DRnT7"};const bi=({product:r,selectedAddons:n,language:l,currency:d,onOptionSelect:s})=>{const{addons:u}=r||{};return e(a,{className:Ti.container,gap:1.5,fullWidth:!0,children:(u||[]).map(r=>{const{id:u,options:c,selectType:m}=r||{},{title:_}=Ur(r,l);return t(a,{children:[e(o,{variant:"bold",children:_}),e(a,{gap:1,fullWidth:!0,children:(c||[]).map(r=>{const{id:a}=r||{},{formattedTotalPrice:o}=(({option:e,currency:t,language:r})=>{const{price:i}=e||{};return{totalPrice:i,formattedTotalPrice:Z(i,t||"USD",r||"en")}})({option:r,language:l,currency:d}),{title:c}=wr(r,l),_=m===Mr.SINGLE,h=_?n[u]===a:(n[u]||[]).includes(a);return t(i,{justifyContent:"space-between",className:Ti.option,children:[e(E,{label:c,name:`option-${u}`,onChange:()=>s({addonId:u,optionId:a,isSingle:_,isRemove:!_&&h}),checked:h,type:_?g.RADIO:g.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:Ti.optionPrice,children:o})]},a)})})]},u)})})},Ai=({product:r,language:n,currency:o,selectedVariant:l,focusedSection:d,selectedAddons:s,isDecreaseDisabled:u,quantity:c,actionTitle:m,isInPublicMenu:E,productQuantityInOrderWithAllVariants:g,onClose:p,setSelectedVariant:v,onOptionSelect:I,adjustQuantity:f,onSubmit:T,removeAllProductVariants:b})=>{const A=V(null),{t:P}=nr("order",{language:n}),{name:O,description:S}=x(()=>xr(r,n),[r,n]),{formattedTotalPrice:D}=x(()=>jr(r,o,n),[r,o,n]),{formattedTotalPrice:R}=x(()=>(({product:e,variantId:t,quantity:r=1,currency:i,language:n,selectedAddons:a,noVat:o=!1})=>{const{total:l}=Hr({product:e,variantId:t,quantity:r,selectedAddons:a,noVat:o});return{totalPrice:l,formattedTotalPrice:Z(l,i,n)}})({product:r,quantity:c,language:n,currency:o,variantId:l,selectedAddons:s}),[r,c,n,o,l,s]),N=j(e=>{var t,r;(null===(r=null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,null==e?void 0:e.target))||p&&p()},[p]);if(q(r))return null;const{image1024:C,volume:L,variants:k,addons:M,available:W}=r,U=(null==k?void 0:k.length)>0,w=(null==M?void 0:M.length)>0;return e("div",{className:hi.container,onClick:N,children:e(_,{onClose:p,ref:A,noBodyPadding:!0,size:"small",content:t("div",{className:hi.content,children:[t(a,{gap:0,children:[C&&e("img",{src:ze(C),width:1024,height:400,alt:O||"product",className:hi.image}),t(a,{className:hi.details,gap:1,children:[e("h2",{className:hi.name,children:O}),t(i,{justifyContent:"space-between",children:[e("div",{className:hi.price,children:D}),e("div",{className:hi.volume,children:L})]}),e("div",{className:hi.description,children:S})]}),(U||w)&&t(a,{gap:0,className:hi.choices,children:[U&&e(fi,{product:r,selectedVariant:l,focusedSection:d,language:n,currency:o,onSelectVariant:v}),w&&e(bi,{product:r,selectedAddons:s,language:n,currency:o,onOptionSelect:I})]})]}),e("div",{className:hi.close,children:e(y,{onClick:p,icon:Ee})})]}),footer:t(a,{children:[e(Ii,{productId:null==r?void 0:r.id,onModalClose:p,isInPublicMenu:E,removeAllProductVariants:b,quantity:g,language:n}),t(i,{className:hi.addToOrder,gap:.5,children:[e(gi,{isDecreaseDisabled:u,onDecrease:()=>f(-1),onIncrease:()=>f(1),quantity:c}),e(h,{className:hi.addAction,label:W?t(i,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:hi.actionTitle,children:m}),e("span",{children:R})]}):P("Not available"),onClick:T,size:"xl",fullWidth:!0,disabled:!W,paddingBlock:.5})]})]})})})},Pi=({product:t,onClose:r})=>{const i=Dt(),n=St(),{addProduct:a,updateProduct:o,removeAllProductVariants:l}=bt(),[d,s]=F(1),[u,c]=F(!1),[m,_]=F(null),[h,E]=F(null),[g,p]=F({}),{t:v}=nr("order"),I=(({productId:e,variantId:t,selectedAddons:r})=>{var i;const{orderItems:n}=bt();return q(n)||!e?0:(null===(i=n[tt(e,t,r)])||void 0===i?void 0:i.quantity)||0})({productId:null==t?void 0:t.id,variantId:m,selectedAddons:g}),y=(e=>{const{orderItems:t}=bt();return q(t)||!e?0:Object.values(t).filter(t=>t.productId===e).reduce((e,t)=>e+t.quantity,0)})(null==t?void 0:t.id),{name:f}=x(()=>xr(t,i),[t,i]),T=u?0===d:1===d,b=x(()=>v(u?0===d?"Remove from order":"Update order":"Add"),[u,d]);G(()=>{s(I>0?I+1:1),c(I>0)},[I,t]),G(()=>{_(null),p({})},[t]);const A=j(e=>{-1===e&&T||s(t=>Math.max(0,t+e))},[T]);return e(Ai,{product:t,language:i,currency:n,selectedVariant:m,focusedSection:h,selectedAddons:g,isDecreaseDisabled:T,quantity:d,actionTitle:b,onClose:r,setSelectedVariant:_,onOptionSelect:({addonId:e,optionId:t,isSingle:r,isRemove:i=!1})=>{p(n=>{if(r)return Object.assign(Object.assign({},n),{[e]:t});const a=n[e]||[],o=i?a.filter(e=>e!==t):[...new Set([...a,t])];return Object.assign(Object.assign({},n),{[e]:o})})},adjustQuantity:A,onSubmit:()=>{var e;if((null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!m)return E("variant"),void setTimeout(()=>{E(null)},200);u?o({product:t,quantity:d,variantId:m,selectedAddons:g}):(a({product:t,quantity:d,variantId:m,selectedAddons:g}),Q(Jr,{name:f,quantity:d})),r&&r()},removeAllProductVariants:l,productQuantityInOrderWithAllVariants:y,isInPublicMenu:!0})};var Oi="FloatingOrdersButton-module_container__RYr7V",Si="FloatingOrdersButton-module_content__2X3P-",Di={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 Ri=({actionText:r,isLoading:n=!1,isDisabled:a=!1,onClick:o})=>{const{orderStep:l}=bt(),d=_r(),{totalPriceWithTax:s,totalPriceWithTaxAndFees:u}=(()=>{const{totalPriceWithTax:e,totalPriceWithoutTax:t,totalTax:r,totalPriceWithTaxAndFees:i}=cr(),n=Dt(),a=St();return{totalPriceWithTax:Z(e,a,n),totalPriceWithoutTax:Z(t,a,n),totalTax:Z(r,a,n),totalPriceWithTaxAndFees:Z(i,a,n)}})();return t(c,{className:J(Di,{container:!0,isLoading:n,isClickable:!!o,isDisabled:a}),justifyContent:"space-between",alignItems:"center",onClick:n||a?null:o,children:[e(c.Item,{flex:1,children:t(i,{alignItems:"center",children:[e("div",{className:Di.count,children:d}),e("div",{className:Di.actionText,children:n?e(P,{}):r})]})}),e(c.Item,{className:Di.totalPrice,flex:1,children:l===Ze.DETAILS?u:s})]})},Ni=()=>{const{setIsOrderOpen:t}=bt(),{t:r}=nr("order");return _r()<=0?null:e("div",{className:Oi,children:e("div",{className:Si,children:e(Ri,{onClick:()=>t(!0),actionText:r("View order")})})})};var Ci="OrderDrawer-module_container__DymQj",Li="OrderDrawer-module_content__khduX",ki="OrderDrawer-module_paymentMethods__9i-sb",Mi="OrderDrawer-module_footer__8XfD9",Wi="OrderDrawer-module_noteButton__M8BVx";const Ui=({isOrderItemsEmpty:r=!1,orderError:i})=>{const{t:n}=nr("order"),{t:l}=nr("error"),{order:s,orderStep:u,orderItems:c,setOrderStep:_,setIsOrderOpen:E,setTrackingId:g,updateOrderErrors:p,resetErrors:I}=bt(),{setModal:y}=d(),f=It(),T=(()=>{const{customer:e}=bt();return e||{}})(),{isOpen:b,isDelivering:A}=pt(),P=mr(),[S,D]=F(!1),[R,N]=F(""),C=null==s?void 0:s.note,L=!!C,k=f&&u===Ze.CART,M=b||A,W=!!i||!M,U=()=>He(void 0,void 0,void 0,function*(){try{N(""),D(!0);const e=yield(e=>He(void 0,void 0,void 0,function*(){return ot("customer/order",e)}))(P);return e.trackingId}catch(e){return N((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{D(!1)}}),w=f&&M?()=>He(void 0,void 0,void 0,function*(){if(q(T))return y({id:Pe});if(I(),u===Ze.DETAILS){if(s.orderType===Ke.DELIVERY&&q(null==T?void 0:T.addresses))return p("customer");if(s.orderType===Ke.DINE_IN&&!(null==s?void 0:s.tableId))return p("tableId");if(q(c))return p("items");const e=yield U();if(!e)return;g(e)}const e=(Je.findIndex(e=>e===u)||0)+1;if(e>=Je.length)return;const t=Je[e];_(t)}):null;return t(a,{className:Mi,fullWidth:!0,children:[!!R&&e(v,{message:l(R),type:"error",onClear:()=>N("")}),!!i&&e(O,{text:i,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:Ae,params:{note:C}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:Wi,icon:L?ge:ce,iconSize:"md"}),r?e(h,{label:n("Add items"),onClick:()=>E(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):u!==Ze.COMPLETED?e(Ri,{actionText:n((()=>{if(!f)return"Subtotal";if(!M)return"Closed Now";switch(u){case Ze.CART:return"Go to checkout";case Ze.DETAILS:return"Place order";default:return"Continue"}})()),onClick:w,isLoading:S,isDisabled:W}):null]})};var wi={},Bi="OrderListItem-module_container__Tj4RI",zi="OrderListItem-module_image__o3PIC",xi="OrderListItem-module_data__BLzxw",Fi="OrderListItem-module_name__QEzuZ",ji="OrderListItem-module_price__-V2qL",Gi="ProductQuantity-module_quantity__PzTpj";const Vi=({productId:t,variantId:r,min:i=1,size:n="md",selectedAddons:a,isDisabled:o=!1})=>{const l=(({productId:e,variantId:t,selectedAddons:r})=>{const{orderItems:i}=bt(),n=i[tt(e,t,r)];return(null==n?void 0:n.quantity)||1})({productId:t,variantId:r,selectedAddons:a}),d=Kr(t),{updateProduct:s}=bt(),u=l===i;return o?e("div",{className:Gi,children:l}):e(gi,{isDecreaseDisabled:u,onDecrease:()=>s({product:d,quantity:l-1,variantId:r,selectedAddons:a}),onIncrease:()=>s({product:d,quantity:l+1,variantId:r,selectedAddons:a}),quantity:l,size:n})},Yi=({item:i,product:n,language:a})=>e(r,{children:(i.addons||[]).map(({addonId:e,options:r})=>{var i;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==r?void 0:r.some(({optionId:t})=>t===e.id));if(q(l)||q(d))return null;const s=null===(i=Ur(l,a))||void 0===i?void 0:i.title,u=d.map(e=>{var t;return null===(t=wr(e,a))||void 0===t?void 0:t.title}).filter(Boolean).join(", ");return s&&u?t(o,{color:"muted",size:"xs",children:[s,": ",u]},e):null})}),Hi=({item:r,isDisabled:n=!1})=>{var l;const{productId:d}=r||{},s=null===(l=null==r?void 0:r.variant)||void 0===l?void 0:l.variantId,u=(e=>{const t={};for(const{addonId:r,options:i=[]}of e.addons||[]){const e=i.map(({optionId:e})=>e);t[r]=1===e.length?e[0]:e}return t})(r),c=Kr(d),m=Gr(c,s),_=Dt(),{image160:h}=c,{title:E}=Yr(m,_),{name:g}=x(()=>xr(c,_),[c,_]),{formattedTotalPrice:p}=(e=>{const t=Dt(),r=St(),{totalGross:i}=rt(e);return{totalPrice:i,formattedTotalPrice:Z(i,r,t)}})(r);return t(i,{className:Bi,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:ze(h),alt:g||"menu",className:zi,loading:"lazy",width:80,height:45}),t("div",{className:xi,children:[e("div",{className:Fi,children:g}),t(a,{gap:0,children:[!!E&&e(o,{color:"muted",size:"xs",children:E}),e(Yi,{item:r,product:c,language:_})]}),e("div",{className:ji,children:p})]}),e(Vi,{productId:d,variantId:s,selectedAddons:u,size:"sm",min:0,isDisabled:n})]})},Ki=()=>{const{t:r}=nr("order");return t(a,{className:wi.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(o,{variant:"h2",children:r("Empty order")}),e(S,{text:r("You don't have any items in your order")})]})},qi=({isDisabled:t=!1})=>{const{orderItems:r}=bt(),i=q(r);return e("div",{className:wi.container,children:i?e(Ki,{}):e("div",{className:wi.items,children:Object.entries(r||{}).map(([r,i])=>e(Hi,{item:i,isDisabled:t},r))})})},Qi=()=>e("div",{className:Li,children:e(qi,{})});var $i="CustomerAddress-module_container__TGYRV";const Zi=()=>{const{t:t}=nr("customer");return e(o,{color:m.DANGER,children:t("No address available")})},Xi=()=>{const i=or(),{t:n}=nr("customer"),{additionalNumber:a,street:l,houseNumber:d,cityName:s,countryCode:u}=i,c=ur(l,d,a),m=([s,u]||[]).filter(Boolean).join(", ");return t(r,{children:[e(o,{children:c||n("Unknown address")}),m&&e(o,{size:"sm",color:"muted",children:m})]})},Ji=()=>{const r=or(),{setModal:n}=d();return e("div",{className:$i,onClick:()=>{n({id:Oe})},children:t(i,{fullWidth:!0,alignItems:"center",children:[e(l,{icon:se,size:"md"}),e(a,{gap:0,fullWidth:!0,children:q(r)?e(Zi,{}):e(Xi,{})}),e(l,{icon:ge,size:"sm"})]})})};var en,tn,rn;!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"}(en||(en={})),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"}(tn||(tn={})),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"}(rn||(rn={}));var nn={};const an=({preDefinedTable:r,tableOptions:n,selectedTableId:l,error:d,disableIfPreDefined:s,language:u,onChange:c})=>{const{t:_}=nr("order",{language:u}),h=!q(r),p=j(e=>{var t;c(Number(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)||null)},[c]);return t(a,{className:nn.table,fullWidth:!0,gap:.5,children:[e(i,{fullWidth:!0,children:h&&s?e(o,{variant:"bold",children:r.name}):e(E,{name:"tableId",options:n,type:g.SELECT,className:nn.tableInput,value:l,onChange:p,isDisabled:h,fullWidth:!0,noMargin:!0,size:"small",placeholder:_("Select Table")})}),d&&e(o,{color:m.DANGER,children:_(d)})]})},on=()=>{const t=(()=>{const{tableId:e,tables:t}=Ve();return!e||q(t)?{}:t.find(t=>Number(t.id)===Number(e))||{}})(),r=(()=>{const{tables:e}=Ve();return e})(),{order:i,updateOrder:n,errors:a}=bt(),o=Dt(),l=r.map(({id:e,name:t})=>({label:t,value:e}));return e(an,{onChange:e=>n({tableId:e}),preDefinedTable:t,tableOptions:l,selectedTableId:null==i?void 0:i.tableId,error:null==a?void 0:a.tableId,language:o,disableIfPreDefined:!0})};var ln="OrderMethods-module_container__KSwfa";const dn=({orderTypes:r,orderType:n,size:a,onSelect:d})=>{const{t:s}=nr("error"),c=e=>0===e?"right":e+1===r.length?"left":"bottom",m=r.reduce((r,a,d)=>a.isVisible?(r.push((({type:r,icon:a,title:d,isDisabled:m},_)=>({value:r,isDisabled:m,label:e(u,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:c(_),children:t(i,{gap:.5,flexWrap:"nowrap",children:[e(l,{icon:a}),e(o,{color:r!==n||m?"normal":"white",whiteSpace:"nowrap",children:d})]})})}))(a,d)),r):r,[]);return e("div",{className:ln,children:e(D,{methods:m,onSelect:d,selectedMethod:n,fullWidth:!0,size:a,gap:.5})})};var sn="OrderPaymentSummary-module_container__HF7-X",un="OrderPaymentSummary-module_row__eikWa";const cn=({textSize:r,totalPriceWithoutTax:n=0,totalPriceWithTax:l=0,deliveryFee:d=0,totalTax:s,currency:u,language:c,orderType:m})=>{const{t:_}=nr("order",{language:c}),h=Z(n,u,c),E=Z(l,u,c),g=Z(s,u,c),p=Z(d,u,c);return t(a,{className:sn,fullWidth:!0,gap:0,children:[t(i,{justifyContent:"space-between",className:un,children:[e(o,{size:r,children:_("Items")}),e(o,{size:r,children:h})]}),t(i,{justifyContent:"space-between",className:un,children:[e(o,{size:r,children:_("Tax")}),e(o,{size:r,children:g})]}),m===Ke.DELIVERY&&t(i,{justifyContent:"space-between",className:un,children:[e(o,{size:r,children:_("Delivery Fee")}),e(o,{size:r,children:p})]}),t(i,{justifyContent:"space-between",className:un,children:[e(o,{size:r,color:"bold",children:_("Total")}),e(o,{size:r,color:"bold",children:E})]})]})},mn=()=>{const r=Dt(),n=St(),{order:{orderType:o,paymentMethod:l},updateOrder:d}=bt(),{totalPriceWithTaxAndFees:s,totalPriceWithoutTax:u,totalTax:c}=cr(),{isOpen:m,isDelivering:_}=pt(),{deliveryOrderEnabled:h,dineInOrderEnabled:p,pickupOrderEnabled:v,deliveryFeeAmount:I}=vt(),{t:y}=nr("order"),f=[{type:Ke.DELIVERY,icon:pe,title:y("Delivery"),isDisabled:!_,isVisible:h},{type:Ke.DINE_IN,icon:ve,title:y("Dine in"),isDisabled:!m,isVisible:p},{type:Ke.PICK_UP,icon:he,title:y("Pickup"),isDisabled:!m,isVisible:v}],T=[{value:$e.CASH,label:y("Cash")},{value:$e.CARD,label:y("Card")}];return t(a,{className:Li,gap:1,children:[e(dn,{orderTypes:f,orderType:o,size:"small",onSelect:e=>d({orderType:e})}),o===Ke.DELIVERY&&e(Ji,{}),o===Ke.DINE_IN&&e(R,{paddingInline:1,fullWidth:!0,children:e(on,{})}),e(i,{className:ki,children:T.map(({label:t,value:r})=>e(E,{label:t,name:"paymentMethod",onChange:()=>d({paymentMethod:r}),checked:l===r,type:g.RADIO,size:"small",noMargin:!0},r))}),e(N,{title:y("Order summary"),content:e(qi,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(cn,{textSize:"sm",totalPriceWithoutTax:u,totalPriceWithTax:s,totalTax:c,language:r,currency:n,deliveryFee:I,orderType:o})]})},_n=()=>{const{t:r}=nr("order"),{trackingId:i}=bt(),n=Dt(),d=Ye();return t(a,{className:Li,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(l,{icon:Ie,size:"xxl",color:m.SUCCESS}),e(R,{paddingInline:2,children:e(o,{variant:"h1",align:"center",children:r("Your Order is Completed!")})}),e(R,{paddingInline:2,children:e(o,{align:"center",children:r("Thank you! We've received your order and it will be delivered shortly.")})}),e(R,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(C,{href:`https://${d}/${n}/order/${i}`,title:r("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},hn=()=>{const{isOrderOpen:t,orderItems:r}=bt(),{orderStep:i,setOrderStep:n,resetOrder:a}=bt(),o=V(null),{t:l}=nr("order"),d=(()=>{const{order:e,orderStep:t}=bt(),r=hr(),i=Er(),{t:n}=nr("error");return t!==Ze.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===Ke.DELIVERY?i||r:null:n("NO_ORDER_TYPE")})(),s=!!d,u=It()&&(i===Ze.CART||s),c=q(r),m=()=>{a()};return t?e("div",{className:Ci,onClick:e=>{var t,r;(null===(r=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,null==e?void 0:e.target))||m()},children:e(L,{ref:o,onClose:m,isOpen:t,title:l("Your order"),onBack:i===Ze.CART?void 0:()=>{n(Ze.CART)},content:(()=>{switch(i){case Ze.DETAILS:return e(mn,{});case Ze.COMPLETED:return e(_n,{});default:return e(Qi,{})}})(),footer:e(Ui,{isOrderItemsEmpty:c,orderError:d}),hasLargeFooter:u})}):null},En=Y(({categoryProductMap:r=[],currency:n,language:o,productBlocksRef:l,containerRef:d,onCategoryInView:s})=>{const[u,c]=F(null),[_,h]=F(kr.LIST),E=[{icon:ye,type:kr.LIST},{icon:ve,type:kr.GRID}],g=e=>{const{name:t}=xr(e,o);Q(Xr,{name:t}),c(e)};return G(()=>{const e=new IntersectionObserver(e=>{var t;const r=((null===(t=null==d?void 0:d.current)||void 0===t?void 0:t.clientHeight)||1e3)/2;let i=null,n=1/0;e.forEach(e=>{if(e.isIntersecting){const t=e.boundingClientRect,a=t.top+t.height/2,o=Math.abs(a-r);o<n&&(n=o,i=e.target.getAttribute("data-category-id"))}}),i&&s(Number(i))},{threshold:.1});return Object.entries(l.current||{}).forEach(([t,r])=>{r&&(r.setAttribute("data-category-id",t),e.observe(r))}),()=>{e.disconnect()}},[l,d,s]),t("div",{className:ni,children:[e(i,{className:ai,alignItems:"center",children:E.map(({icon:t,type:r})=>e(y,{icon:t,onClick:()=>(e=>{h(e),Q(ei,{name:e})})(r),type:r===_?m.PRIMARY:m.DEFAULT},r))}),e(a,{children:(r||[]).map(r=>{const{name:i}=qr(r,o),{id:d,products:s}=r;return t("div",{className:oi,ref:e=>{e&&(l.current[d]=e)},"data-category-id":d,children:[e("h2",{className:li,children:i}),e("div",{className:di,children:e(a,{gap:0,children:(s||[]).map(t=>_===kr.GRID?e(_i,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id):e(ui,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id))})})]},d)})}),e(Pi,{product:u,onClose:()=>c(null)}),e(Ni,{}),e(hn,{})]})},(e,t)=>e.categoryProductMap===t.categoryProductMap&&e.currency===t.currency&&e.language===t.language);En.displayName="Products";const gn=({containerRef:r})=>{var i;const n=(()=>{const{products:e}=Ve();return e||[]})(),a=(()=>{const{categories:e}=Ve();return e||[]})(),o=Dt(),l=St(),d=((e,t)=>{const r=t.reduce((e,t)=>{if(!t.visible)return e;const r=Number(t.categoryId);return e[r]||(e[r]=[]),e[r].push(t),e},{});return e.map(e=>Object.assign(Object.assign({},e),{products:r[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,u]=F(null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.id),c=V({}),m=V(!0),_=j(e=>He(void 0,void 0,void 0,function*(){m.current=!1,u(e),(e=>{var t;const r=null===(t=null==c?void 0:c.current)||void 0===t?void 0:t[e];r&&(setTimeout(()=>{r.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),h=j(e=>{if(!(null==m?void 0:m.current))return;const t=((e,t,r)=>{var i;const n=null===(i=null==t?void 0:t.find)||void 0===i?void 0:i.call(t,({id:t})=>t===e);if(q(n))return"";const{name:a}=qr(n,r);return a})(e,a,o);Q(Zr,{name:t}),u(e)},[a,o]),E=j(()=>He(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 r=(a||[]).find(({id:e})=>e===t);q(r)||_(t)}),[a,_]);return G(()=>{E()},[E]),t("div",{className:Wr.container,children:[e(ii,{categoryProductMap:d,language:o,selectedCategoryId:s,onSelectCategory:_}),e(En,{categoryProductMap:d,language:o,currency:l,productBlocksRef:c,containerRef:r,onCategoryInView:h})]})},pn={[Ae]:({params:r})=>{const{modalRef:n,note:a}=r,[o,l]=F(a||""),{setModal:s}=d(),{updateOrder:u}=bt(),{t:c}=nr("order"),{t:p}=nr("common");return e(_,{ref:n,header:e("div",{children:c("Add an order note")}),content:e("div",{className:rr.container,children:e(E,{type:g.TEXT_AREA,placeholder:c("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(i,{justifyContent:"flex-end",children:[e(h,{label:p("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(h,{label:p("Save"),onClick:()=>{u({note:o}),s(null)},size:"md"})]})})},[Pe]:({params:r})=>{const{t:i}=nr("auth"),{t:n}=nr("error"),{t:o}=nr("common"),{setModal:l}=d(),{setOrderStep:s,getCustomer:u,customer:c}=bt(),[m,E]=F({phoneNumber:"",otp:"",email:""}),[g,p]=F({}),[I,y]=F(""),[f,T]=F(lr.PHONE),b=[lr.PHONE,lr.OTP,lr.EMAIL],{modalRef:A}=r,P=()=>{s(Ze.DETAILS),l(null)},O=()=>{const e=b.indexOf(f),t=b[e+1];if(t)return T(t);P()},S=j(e=>t=>{E(r=>Object.assign(Object.assign({},r),{[e]:t}))},[]);return e(_,{ref:A,title:i("Create an account or log in"),onClose:()=>l(null),content:t(a,{className:ar.content,fullWidth:!0,children:[!!I&&e(v,{message:n(I),type:"error",onClear:()=>y(""),inline:!0}),(()=>{switch(f){case lr.OTP:return e(pr,{address:m.phoneNumber,errorMessage:null==g?void 0:g.otp,onChange:S("otp")});case lr.EMAIL:return e(vr,{onChange:S("email"),onCancel:P,formErrors:g});default:return e(gr,{onChange:S("phoneNumber"),formErrors:g})}})()]}),footer:e(h,{label:o("Continue"),onClick:()=>He(void 0,void 0,void 0,function*(){y("");try{const t=f===lr.EMAIL,r=(null==c?void 0:c.email)===m.email,i=!!(null==c?void 0:c.email)&&!m.email;if(t&&(r||i))return O();const n=((e,t)=>{const r={},{phoneNumber:i,email:n,otp:a}=e||{};switch(t){case lr.PHONE:{const{isValid:e,error:t}=Ue(i);e||(r.phoneNumber=t);break}case lr.OTP:{const{isValid:e,error:t}=Ue(i);e||(r.phoneNumber=t),a&&6===a.length||(r.otp="Invalid OTP");break}case lr.EMAIL:n&&$(n)||(r.email="Invalid Email Address")}return r})(m,f);if(!q(n))return p(n);switch(p({}),f){case lr.PHONE:{const t=yield(e=m.phoneNumber,He(void 0,void 0,void 0,function*(){return ot("customer",{phoneNumber:e})}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");break}case lr.OTP:{const e=yield((e,t)=>He(void 0,void 0,void 0,function*(){return ot("otp/verify",{otp:e,phoneNumber:t})}))(m.otp,m.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Me.saveAuthToken(e);break}case lr.EMAIL:{const e=yield st({email:m.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield u(),O()}catch(e){y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:m})}var e}),size:"lg",fullWidth:!0})})},[Oe]:({params:r})=>{const i=Re[0].code,{getCustomer:n}=bt(),l=Dt(),s=Et(),{id:u,countryCode:p=i,cityName:y="",street:f="",houseNumber:T="",floor:b,additionalNumber:A="",instructions:P="",longitude:O,latitude:S,postCode:D}=or(),R={addressId:u,countryCode:p,cityName:y,street:f,houseNumber:T,additionalNumber:A,instructions:P,floor:b,latitude:S,longitude:O,postCode:D},{modalRef:N}=r,{t:C}=nr("customer"),{t:L}=nr("error"),{t:k}=nr("common"),{setModal:M}=d(),[W,U]=F(R),[w,B]=F({}),[z,x]=F(""),[G,V]=F(!1),Y=w.countryCode||w.cityName||w.street||w.houseNumber,H=ur(R.street,R.houseNumber,void 0),K=e=>{var t,r;const i=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.name,n=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value;U(e=>Object.assign(Object.assign({},e),{[i]:n}))},Q=()=>M(null),$=j(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}),r=sr(t);U(t),B(r)},[W]);return e(_,{ref:N,title:C("Update Delivery Address"),onClose:Q,content:e("div",{className:Ir.content,children:t(a,{fullWidth:!0,children:[!!z&&e(v,{message:L(z),type:"error",onClear:()=>x(""),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:H,placeHolder:C("Enter address"),inputLabel:C("Address")}),Y&&e(o,{color:m.DANGER,children:L(Y)})]}),t(c,{gap:1,children:[e(c.Item,{flex:6,children:e(E,{name:"floor",label:C("Floor"),placeholder:"7",type:g.TEXT,value:W.floor,onChange:K,errorMessage:L(w.floor)})}),e(c.Item,{flex:6,children:e(E,{name:"additionalNumber",label:C("Additional number"),placeholder:"17",type:g.TEXT,value:W.additionalNumber,onChange:K,errorMessage:L(w.additionalNumber)})})]}),e(E,{name:"instructions",placeholder:C("Example: Door code is 555"),label:C("Delivery Instructions"),type:g.TEXT,fullWidth:!0,value:W.instructions,onChange:K,errorMessage:L(w.instructions)})]})}),footer:e(h,{label:k("Save"),onClick:()=>He(void 0,void 0,void 0,function*(){x("");try{const e=sr(W);if(!q(e))return B(e);B({}),V(!0);const t=yield st({address:W});if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");n(),Q()}catch(e){x((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:W})}finally{V(!1)}}),size:"lg",fullWidth:!0,isLoading:G})})},[Se]:({params:t})=>{const{setModal:r}=d(),{t:i}=nr("branch"),{modalRef:n,openingHours:a,deliveryHours:o}=t;return e(_,{ref:n,onClose:()=>r(null),content:e(Ar,{openingHours:a,deliveryHours:o}),title:i("Opening Hours")})}},vn=()=>{const{getCustomer:r}=bt(),i=Dt(),n=Ye(),a=(()=>{const{isInDashboard:e}=Ve();return e||!1})(),o=V(null),l=(()=>{const{branchId:e}=Ve();return e})(),d=ht()||l,{url:s,domain:u}=we(n,i);return G(()=>{a||r()},[r,a]),t("div",{className:Te,ref:o,children:[e(tr,{}),d?e(gn,{containerRef:o}):e(Lr,{}),e(Or,{size:"md",zIndex:10}),e("a",{rel:"noopener noreferrer",target:"_blank",href:s,className:be,children:u})]})},In=({data:t})=>e(Ge,{value:t||{},children:e(Tt,{children:e(k,{modalsMap:pn,children:e(vn,{})})})});var yn={};const fn=({currentGoal:t,language:r,setGoal:i})=>{const{t:n}=nr("events",{language:r}),a=V({}),o=e=>{switch(e){case Zr:return n("Scrolled to Category");case $r:return n("Category Selected");case Xr:return n("Product Details");case Jr:return n("Product Added to Order");default:return""}},l=j(e=>{var t,r;i(e),null===(r=null===(t=null==a?void 0:a.current)||void 0===t?void 0:t.close)||void 0===r||r.call(t)},[i]);return e(M,{action:o(t),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:a,menu:e("div",{className:yn.toolbarMenu,children:ti.map(t=>e(W,{onClick:()=>l(t),children:o(t)},t))})})},Tn=({data:t,isLoading:r=!1,language:i,goal:n,setGoal:a})=>{const{t:o}=nr("events",{language:i});return e(U,{title:o("Events"),toolbar:e(fn,{language:i,currentGoal:n,setGoal:a}),children:r?e(P,{}):e(w,{data:t})})};var bn,An,Pn={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"}(bn||(bn={})),function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(An||(An={}));const On={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"}},Sn=[{title:"Smart QR Menu",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Link-in-bio",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Menu Analytics",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Unlimited Users",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Unlimited Products",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Unlimited Categories",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Unlimited Languages",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Product variants",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Product options",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Premium Support",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"SEO",[bn.APPETIZER]:!0,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Sales reports",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Table Management",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Order Management",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Delivery Management",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!0,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Multiple Branches",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!1,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!0},{title:"Point of Sale (POS)",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!1,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!1},{title:"Mobile App for Owners & Staff",[bn.APPETIZER]:!1,[bn.MAIN_COURSE]:!1,[bn.CHEFS_SPECIAL]:!0,[bn.LIFETIME]:!1}],Dn=({plan:r,language:n,interval:l,currency:d})=>{const{t:s}=nr("pricing",{language:n}),{price:u,discountedPrice:c}=On[r],m=u[l],_=r===bn.LIFETIME?"/ lifetime":"/ month";return void 0!==c?t(a,{gap:0,children:[t(i,{children:[e("span",{className:Pn.discountedPrice,children:Z(c,d,n)}),e("span",{className:Pn.originalPrice,children:Z(m,d,n)})]}),e(o,{size:"sm",children:s(_)})]}):t(i,{gap:.5,children:[e(o,{size:"xxl",variant:"bold",children:Z(m,d,n)}),e(o,{size:"sm",children:s(_)})]})},Rn=({currency:r,language:n,isLoading:a=!1,onPlanSelect:o,onIntervalSelect:d})=>{const[s,u]=F("annually"),{t:c}=nr("pricing",{language:n}),_=[bn.APPETIZER,bn.MAIN_COURSE,bn.CHEFS_SPECIAL],E=Boolean(o),g=E?"Choose Plan":"Try for free",p=({children:t,plan:r})=>{const{ribbonText:i}=On[r],l=Boolean(i),d={className:J(Pn,{plan:!0,hasRibbon:l}),"data-ribbon":c(i)};return o?e("div",Object.assign({},d,{onClick:()=>!a&&o(r),children:t})):e("a",Object.assign({},d,{href:Be(n,`pricing-${r}`),target:"_blank",rel:"noreferrer noopener",children:t}))};return t("div",{className:Pn.container,children:[e("div",{className:Pn.intervals,children:["annually","monthly"].map(t=>e("div",{className:J(Pn,{interval:!0,active:s===t}),onClick:()=>(e=>{u(e),d&&d(e)})(t),children:c(t)},t))}),e("div",{className:Pn.plans,children:_.map(o=>e(p,{plan:o,children:t(U,{children:[e("div",{className:Pn.title,children:c(On[o].title)}),e("div",{className:Pn.price,children:e(Dn,{plan:o,language:n,interval:s,currency:r})}),e("div",{className:Pn.action,children:e(h,{label:c(g),fullWidth:!0,size:"xl",type:o===bn.MAIN_COURSE?m.PRIMARY:m.BORDERED_PRIMARY,onClick:()=>{},isLoading:a})}),t("div",{className:Pn.benefits,children:[!E&&t(i,{className:Pn.moneyBack,gap:.5,children:[e(l,{icon:fe,size:"sm",color:m.SUCCESS}),e("span",{children:c("No credit card needed")})]}),Sn.map(r=>t("div",{className:Pn.benefit,children:[e(l,{icon:r[o]?Ie:me,size:"md"})," ",e("span",{children:c(r.title)})]},r.title))]})]})},o))})]})};var Nn={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 Cn=({totalCount:r,isVisible:i,onClick:n})=>{const a=V(null),o=V(!1);return G(()=>{if(!o.current)return;const e=a.current;e&&(e.classList.remove(Nn.animate),e.offsetWidth,e.classList.add(Nn.animate))},[r]),G(()=>{o.current=!0},[]),t("div",{className:J(Nn,{container:!0,isVisible:i}),onClick:n,ref:a,children:[e(l,{icon:he,color:m.DEFAULT,size:"md"}),e("div",{className:Nn.count,children:r})]})};export{ii as Categories,Tn as Events,Cn as OrderFAB,dn as OrderMethods,cn as OrderPaymentSummary,Tt as OrderProvider,an as OrderTableUI,Rn as Pricing,Ai as ProductDetailsUI,mi as ProductsGridItem,In as PublicMenu,gi as Quantity,bt as useOrderContext};
1
+ import{jsx as e,jsxs as t,Fragment as r}from"react/jsx-runtime";import{Row as i,classNames as n,Column as a,Text as o,SVGIcon as l,useModalContext as d,IconLink as s,Tooltip as u,Flex as c,UIElementType as m,Modal as _,Button as h,Input as E,InputType as g,OTPInput as p,AlertBox as v,AddressAutocomplete as I,IconButton as y,Container as f,Carousel as T,CarouselItem as b,Chip as A,Loading as P,TextBanner as O,Description as S,MethodSelection as D,Padding as R,Accordion as N,Link as C,Drawer as L,ModalProvider as k,DropDown as M,DropDownMenuItem as W,Card as U,BarChart as w}from"@sorocraft/ui";import{createContext as B,useContext as z,useMemo as x,useState as F,useCallback as j,useEffect as G,useRef as V,memo as Y}from"react";import{Storage as H,sortNumbers as K,isEmpty as q,trackEvent as Q,checkIsValidEmail as $,priceFormatter as Z,isNumber as X,classNames as J}from"@sorocraft/js-utils";import{ChevronLeft as ee,Phone as te,Whatsapp as re,Instagram as ie,Telegram as ne,Tiktok as ae,Facebook as oe,Wifi as le,Clock as de,MarkerPin as se,ChevronUp as ue,Plus as ce,Minus as me,Trash as _e,ShoppingBag as he,Close as Ee,Edit as ge,Delivery as pe,Grid as ve,Check as Ie,List as ye,ShieldDollar as fe}from"@sorocraft/ui/icons";var Te="PublicMenu-module_container__QLN6U",be="PublicMenu-module_footer__6G3DQ";const Ae="ADD_UPDATE_NOTES",Pe="AUTH",Oe="ADD_UPDATE_ADDRESS",Se="BRANCH_BUSINESS_HOURS",De=["en","az","nl","et","tr","ru"],Re=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Ne="restaround.co",Ce=Ne,Le=[Ne,"restaround.az","restaround.ee","restaround.nl"],ke="https://images.restaround.co",Me=new H("restaround_cst_act","restaround_cst_rft"),We={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 Ue(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const t=e.replace(/\D/g,""),r=t.startsWith("994")?"994":t.startsWith("31")?"31":null;if(!r)return{isValid:!1,error:"Unsupported country code"};const i=t.slice(r.length);return(0,We[r])(i)}const we=(e,t)=>{const r=Le.includes(e)?e:Ne;return{url:`https://${r}/${t||"en"}`,domain:r}},Be=(e,t)=>{const r=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${r}/auth/register?lang=${e}&utm_source=${t}`},ze=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"",xe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"https://images.restaround.co/no-photo-128.webp",Fe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${ke}/${e}`:"https://images.restaround.co/restaround-doodle.webp",je=B({}),Ge=({children:t,value:r})=>e(je.Provider,{value:r,children:t}),Ve=()=>z(je),Ye=()=>{const{hostname:e}=Ve();return e||Ce},He=()=>{const{isInDashboard:e}=Ve();return e||!1};function Ke(e,t,r,i){return new(r||(r=Promise))(function(n,a){function o(e){try{d(i.next(e))}catch(e){a(e)}}function l(e){try{d(i.throw(e))}catch(e){a(e)}}function d(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r(function(e){e(t)})).then(o,l)}d((i=i.apply(e,t||[])).next())})}var qe,Qe,$e,Ze,Xe;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(qe||(qe={})),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"}(Qe||(Qe={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}($e||($e={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}(Ze||(Ze={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(Xe||(Xe={}));const Je={orderType:null,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:Ze.CASH},et=[Xe.CART,Xe.DETAILS,Xe.COMPLETED];var tt;!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"}(tt||(tt={}));const rt=(e,t,r)=>{if(!e)throw new Error("Product ID is required");let i=`${e}`;t&&(i+=`-${t}`);const n=Object.entries(r||{}).map(([e,t])=>{if(!e||!t)return null;const r=Array.isArray(t)?K(t).filter(Boolean).join("-"):`${t}`;return r?`${e}-${r}`:null}).filter(Boolean).join("-");return n&&(i+=`-${n}`),i},it=e=>{var t;const{price:r,variant:i,addons:n,quantity:a,vat:o}=e||{},l=null!==(t=null==i?void 0:i.price)&&void 0!==t?t:r,d=function(e=[],t=1){return t*e.reduce((e,t)=>{const r=(e=>e.options.reduce((e,t)=>e+t.price,0))(t);return e+r},0)}(n,1),s=l+d,u=l*(o/100),c=s+u;return{totalGross:c*a,totalNet:s*a,totalTax:u*a,itemGrossPrice:c,itemNetPrice:s,itemTax:u}},nt=e=>{switch(e){case"customer":return tt.ADDRESS_IS_EMPTY;case"tableId":return tt.TABLE_NOT_SELECTED;case"items":return tt.EMPTY_ITEMS;case"branchId":return tt.BRANCH_NOT_SELECTED;default:return tt.FIELD_REQUIRED_ERROR}},at="https://api.restaround.co/api/v1",ot=(e,t,r)=>Ke(void 0,void 0,void 0,function*(){const{accessToken:i}=Me.getAuthToken(),n=`${at}/${t}`,a=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:i},credentials:"include",body:JSON.stringify(r)}),o=yield a.json();if(!a.ok)throw o;return o}),lt=(e,t)=>ot("POST",e,t),dt=(e,t)=>ot("PATCH",e,t),st=e=>ot("GET",e),ut=e=>Ke(void 0,void 0,void 0,function*(){return dt("customer",e)}),ct=(...e)=>Ke(void 0,[...e],void 0,function*(e=null,t={}){try{return Q("error",{message:null==e?void 0:e.message}),yield fetch(`${at}/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)}}),mt=(e,t)=>{var r;return null===(r=((null==e?void 0:e.days)||[]).find(({day:e})=>e===t))||void 0===r?void 0:r.hours},_t=e=>(e||"").split(":").map(Number),ht=e=>{if(!e)return!1;const t=new Date,[r,i]=_t(e.openAt),[n,a]=_t(e.closeAt),o=new Date(t);o.setHours(r,i,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},Et=()=>{const{branches:e}=Ve();return(e||[]).length<=1},gt=()=>{const{branches:e,branchId:t}=Ve(),r=Et();return q(e)?{}:r?e[0]:e.find(e=>e.id===Number(t))||{}},pt=()=>{const e=gt();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},vt=()=>{const e=gt(),{openingHours:t,deliveryHours:r}=e||{};if(!(null==t?void 0:t.days)||!(null==r?void 0:r.days))return{isOpen:!1,isDelivering:!1};const i=((new Date).getUTCDay()+6)%7,n=mt(t,i),a=mt(r,i);return{isOpen:ht(n),isDelivering:ht(a)}},It=()=>{const e=gt();return(null==e?void 0:e.settings)||{}},yt=()=>{const e=It();if(q(e))return!1;const{deliveryOrderEnabled:t,dineInOrderEnabled:r,pickupOrderEnabled:i}=e;return t||r||i},ft=()=>{const{onBranchSelect:e}=Ve();return e},Tt=({defaultOrderType:e,defaultPaymentMethod:t,defaultBranchId:r})=>{const i=(()=>{const{tableId:e}=Ve();return e})(),{isOpen:n,isDelivering:a}=vt(),o=It(),l=e||((e,t,r)=>{if(!e)return null;const{deliveryOrderEnabled:i,dineInOrderEnabled:n,pickupOrderEnabled:a}=e;return i&&r?qe.DELIVERY:n&&t?qe.DINE_IN:a&&t?qe.PICK_UP:null})(o,n,a);return{branchId:r,orderType:l,tableId:i?Number(i):void 0,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:t||Ze.CASH}},bt=B({order:Je,orderStep:Xe.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",errors:{},updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),At=({children:t,defaultOrderType:r,defaultPaymentMethod:i,defaultBranchId:n,isOrderDefaultOpen:a=!1})=>{const o=Tt({defaultOrderType:r,defaultPaymentMethod:i,defaultBranchId:n}),[l,d]=F({}),[s,u]=F(o),[c,m]=F(Xe.CART),[_,h]=F({}),[E,g]=F(a),[p,v]=F(""),[I,y]=F({}),f=j(e=>{u(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]),T=j(({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:a})=>{if(q(e)||t<0)return;const{id:o,vat:l=0,variants:d,addons:s,price:u}=e,c=rt(o,r,i);h(e=>{const m=e[c],_=a?((null==m?void 0:m.quantity)||0)+t:t;if(_<=0){const t=e,r=c;t[r];return function(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(r[i[n]]=e[i[n]])}return r}(t,["symbol"==typeof r?r:r+""])}const h=d.find(({id:e})=>e===r),E=((e=[],t={})=>Object.entries(t).map(([t,r])=>{const i=Number(t),n=Array.isArray(r)?r:[r],a=e.find(e=>e.id===i);if(q(a))return{addonId:i,options:[]};const o=(a.options||[]).filter(e=>n.includes(e.id)).map(e=>({optionId:e.id,price:e.price}));return{addonId:i,options:o}}))(s,i);return Object.assign(Object.assign({},e),{[c]:Object.assign(Object.assign({productId:o,quantity:_,price:u,note:n,vat:l},!q(h)&&{variant:{variantId:h.id,price:h.price}}),{addons:E})})}),a&&(null==I?void 0:I.items)&&y(e=>Object.assign(Object.assign({},e),{items:null}))},[null==I?void 0:I.items]),b=j(({product:e,quantity:t=1,variantId:r,selectedAddons:i,note:n})=>T({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:!0}),[T]),A=j(({product:e,quantity:t=1,variantId:r,selectedAddons:i,note:n})=>T({product:e,quantity:t,variantId:r,selectedAddons:i,note:n,isAddOperation:!1}),[T]),P=j(e=>{if(!e||q(_))return;const t=Object.entries(_).reduce((t,[r,i])=>(i.productId!==e&&(t[r]=i),t),{});h(t)},[_]),O=j(()=>Ke(void 0,void 0,void 0,function*(){try{const{accessToken:e}=Me.getAuthToken();if(!e)return;const t=yield Ke(void 0,void 0,void 0,function*(){return st("customer")});if(!(null==t?void 0:t.id))throw new Error("SOMETHING_WENT_WRONG");d(t)}catch(e){ct(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),S=j((e=!1,t=!0)=>{t&&g(!1),(c===Xe.COMPLETED||e)&&(u(o),h({}),m(Xe.CART),v(""))},[o,c]),D=j(e=>{y(t=>Object.assign(Object.assign({},t),{[e]:nt(e)}))},[]),R=j(()=>{y({})},[]),N=x(()=>({order:s,orderStep:c,orderItems:_,isOrderOpen:E,customer:l,trackingId:p,errors:I,updateOrder:f,setOrderStep:m,addProduct:b,updateProduct:A,removeAllProductVariants:P,setIsOrderOpen:g,getCustomer:O,resetOrder:S,setTrackingId:v,updateOrderErrors:D,resetErrors:R}),[s,c,_,E,l,p,I,f,b,A,P,O,S,v,D,R]);return e(bt.Provider,{value:N,children:t})},Pt=()=>z(bt);var Ot,St;!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"}(Ot||(Ot={})),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"}(St||(St={}));const Dt=()=>{const{business:e}=Ve();return e||{}},Rt=()=>{const{currency:e}=Dt();return e||"AZN"},Nt=()=>{const{language:e}=Ve();return e||"en"};var Ct="BusinessHeader-module_container__X22c3",Lt="BusinessHeader-module_cover__l-1W8",kt="BusinessHeader-module_content__sjiqO",Mt="BusinessHeader-module_logo__DWaaU",Wt="BusinessHeader-module_info__6RQFI",Ut="BusinessHeader-module_name__Ynpex",wt={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 Bt=()=>{const[r,a]=F(!1),o=Dt().languages||[],l=Nt(),d=(()=>{const{onLanguageSelect:e}=Ve();return e})(),s=o.length>1,u=o.filter(({code:e})=>e!==l)||[],c=e=>`https://images.restaround.co/languages/${e}.svg`;return s?e("div",{className:wt.container,onClick:()=>a(!r),children:t(i,{alignItems:"center",gap:0,children:[e(i,{alignItems:"center",className:n(wt,{options:!0,isOpen:r}),children:u.map(({code:t})=>e("img",{src:c(t),className:wt.option,onClick:()=>null==d?void 0:d(t),alt:t},t))}),e("img",{src:c(l),alt:l,className:wt.currentLanguage})]})}):null},zt=()=>{const{coverPhoto:r,avatar256:i,name:n}=Dt();return t("div",{className:Ct,children:[e("img",{src:Fe(r),alt:n,className:Lt,width:1024,height:400}),e("div",{className:kt,children:t(a,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:Ct,children:[e("img",{src:xe(i),alt:n,className:Mt,width:96,height:96}),e("div",{className:Wt,children:e(o,{variant:"h1",color:"white",className:Ut,align:"center",children:n})})]})}),e(Bt,{})]})};var xt="BranchHeader-module_container__Ol56f",Ft="BranchHeader-module_cover__DGWZX",jt="BranchHeader-module_content__O8E27",Gt="BranchHeader-module_logo__DL7Si",Vt="BranchHeader-module_info__Ym-ln",Yt="BranchHeader-module_name__91VkO",Ht="BranchHeader-module_address__Y140r",Kt="BranchHeader-module_addressText__ofVQQ",qt="BackIcon-module_container__uknWc";const Qt=({onClick:t,size:r,theme:i})=>{const n=Nt(),a=(()=>{const{username:e}=Dt();return e||""})(),o=He(),d=ft();return e("div",{className:qt,onClick:t||(()=>{var e,t;return o?null==d?void 0:d(""):"undefined"!=typeof window?a?void(window.location.pathname=`/${n}/${a}`):null===(t=null===(e=window.history)||void 0===e?void 0:e.back)||void 0===t?void 0:t.call(e):void 0}),children:e(l,{icon:ee,size:r,theme:i})})};var $t="HeaderLinks-module_container__wfIXS",Zt="HeaderLinks-module_links__S5qXC",Xt="HeaderLinks-module_wifiPassword__j4cgP",Jt="HeaderLinks-module_businessHours__qVA-Q",er="HeaderLinks-module_icon__cQpBK";const tr=()=>{const{setModal:r}=d(),{phone:n,wifiPassword:a,whatsApp:o,telegram:c,openingHours:m,deliveryHours:_}=gt(),{instagram:h,tiktok:E,facebook:g}=Dt(),p=!q(null==m?void 0:m.days)||!q(null==_?void 0:_.days);return e("div",{className:$t,children:e("div",{className:Zt,children:e(i,{gap:2,alignItems:"center",children:t(i,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!n&&e(s,{icon:te,href:`tel:+${n}`,size:"sm",shape:"circle",theme:"light"}),!!o&&e(s,{icon:re,href:`https://wa.me/${o}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:ie,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!c&&e(s,{icon:ne,href:c,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!E&&e(s,{icon:ae,href:E,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!g&&e(s,{icon:oe,href:g,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!a&&e(u,{hint:a,children:e("div",{className:Xt,children:e(l,{icon:le,size:"sm",className:er})})}),p&&e("div",{className:Jt,onClick:()=>{r({id:Se,params:{openingHours:m,deliveryHours:_}})},children:e(l,{icon:de,size:"sm",className:er})})]})})})})},rr=()=>{const{coverPhoto:r,avatar256:n}=Dt(),d=(()=>{const{business:e}=Ve(),t=gt(),r=Et(),i=(null==e?void 0:e.name)||"Restaround";return r?i:(null==t?void 0:t.name)?`${i} ${t.name}`:i})(),s=gt().address||"",u=Et(),{latitude:_,longitude:h}=pt(),E=`https://www.google.com/maps/place/${_},${h}`;return t("div",{className:xt,children:[e("img",{src:Fe(r),alt:d,className:Ft,width:1024,height:400}),e("div",{className:jt,children:t(a,{justifyContent:u?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!u&&e(Qt,{size:"lg",theme:"dark-theme"}),t(c,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(c.Item,{children:e("img",{src:xe(n),alt:d,className:Gt,width:96,height:96})}),e(c.Item,{shrink:!0,className:Vt,children:t(a,{gap:.5,children:[e(o,{className:Yt,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:d}),e("a",{className:Ht,href:E,target:"_blank",rel:"noopener noreferrer",children:t(i,{alignItems:"center",gap:.5,children:[e(l,{icon:se,color:m.DEFAULT}),e("span",{className:Kt,children:s})]})})]})})]})]})}),e(Bt,{}),e(tr,{})]})},ir=()=>{const t=gt();return Et()||!q(t)?e(rr,{}):e(zt,{})};var nr={},ar={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"},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":"Доставка"},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"},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"},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"},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 or=(e="common",t)=>{const r=Nt(),i=(null==t?void 0:t.language)||r,{t:n}=((e,t)=>{try{const r=De.includes(e)?e:"en",i=ar[r][t]||{};return{t:(e,t)=>{try{const r=i[e]||e;return t?Object.keys(t).reduce((e,r)=>e.replace(`{{${r}}}`,t[r]),r):r}catch(t){return console.error(t),e}}}}catch(e){return console.error(e),{t:e=>e}}})(i,e);return{t:n}};var lr={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const dr=()=>{var e,t;const{customer:r}=Pt();return(null===(e=null==r?void 0:r.addresses)||void 0===e?void 0:e[(null===(t=null==r?void 0:r.addresses)||void 0===t?void 0:t.length)-1])||{}};var sr,ur;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(sr||(sr={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(ur||(ur={}));const cr=e=>{const t={},{countryCode:r,cityName:i,street:n,houseNumber:a}=e||{};return r||(t.countryCode="COUNTRY_REQUIRED"),i||(t.cityName="CITY_REQUIRED"),n||(t.street="STREET_REQUIRED"),a||(t.houseNumber="STREET_NUMBER_REQUIRED"),t},mr=(e,t,r)=>[e,[t,r].filter(Boolean).join("/")].filter(Boolean).join(" "),_r=()=>{const{orderItems:e,order:t}=Pt(),{deliveryFeeAmount:r}=It(),i=Object.values(e||{}).reduce((e,t)=>{const{totalGross:r,totalNet:i,totalTax:n}=it(t),a=e.totalPriceWithTax+r;return{totalPriceWithTax:a,totalPriceWithoutTax:e.totalPriceWithoutTax+i,totalTax:e.totalTax+n,totalPriceWithTaxAndFees:a}},{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,totalPriceWithTaxAndFees:0});return(null==t?void 0:t.orderType)===qe.DELIVERY&&r>0&&(i.totalPriceWithTaxAndFees+=r),i},hr=(e={})=>{const t=(()=>{const{id:e}=Dt();return e})(),r=gt(),{order:i,orderItems:n}=Pt(),{totalPriceWithTax:a,totalPriceWithoutTax:o,totalTax:l,totalPriceWithTaxAndFees:d}=_r(),s=dr(),u=(()=>{const{customer:e}=Pt();return null==e?void 0:e.id})(),{deliveryFeeAmount:c}=It(),{workingDayId:m,tableId:_,employeeId:h,orderType:E,paymentMethod:g,note:p,vat:v=0}=Object.assign(Object.assign({},i),e);return{branchId:null==r?void 0:r.id,businessId:t,workingDayId:m,tableId:_,customerId:u,customerAddressId:s.id,employeeId:h,orderType:E,totalPriceWithTax:a,totalPriceWithTaxAndFees:d,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:v,paymentMethod:g,note:p,deliveryFee:E===qe.DELIVERY?c:void 0}},Er=()=>{const{orderItems:e}=Pt();return Object.values(e||{}).reduce((e,t)=>e+t.quantity,0)},gr=()=>{const{t:e}=or("error"),t=pt(),r=It().maxDeliveryDistance,{latitude:i,longitude:n}=dr(),[a,o]=F(null);return G(()=>{const e=!!i&&!!n,a=!q(t);Ke(void 0,void 0,void 0,function*(){if(!e||!a)return o("INVALID_ADDRESS");try{const e=yield((e,t)=>Ke(void 0,void 0,void 0,function*(){const{spherical:r}=yield google.maps.importLibrary("geometry"),i=new google.maps.LatLng(e.latitude,e.longitude),n=new google.maps.LatLng(t.latitude,t.longitude);return r.computeDistanceBetween(i,n)}))(t,{latitude:i,longitude:n});o(!e||e>r?"OUT_OF_DELIVERY_RANGE":null)}catch(e){o("OUT_OF_DELIVERY_RANGE")}})},[i,n,t,r]),a?e(a):null},pr=()=>{const{t:e}=or("order"),t=Nt(),r=Rt(),i=It().minDeliveryAmount,{totalPriceWithTax:n}=_r();if(n<i){return e("Minimum order amount for delivery is {{amount}}",{amount:Z(i,r,t)})}return null},vr=({formErrors:r,onChange:n})=>{const o=Re.map(({phoneCode:e})=>({label:e,value:e})),l=Ye(),d=Nt(),{t:s}=or("auth"),{t:u}=or("error"),[c,m]=F({countryCode:o[0].value,phoneNumber:""}),{url:_}=we(l,d),h=e=>{var t;const{name:r,value:i}=(null==e?void 0:e.target)||{};if(!r)return;const a=null!==(t=null==i?void 0:i.trim())&&void 0!==t?t:"";if("phoneNumber"===r&&""!==a&&!X(a))return;const o=Object.assign(Object.assign({},c),{[r]:a}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);n(l),m(o)};return t(a,{gap:1,fullWidth:!0,children:[t(i,{fullWidth:!0,alignItems:"flex-start",children:[e(E,{name:"countryCode",options:o,type:g.SELECT,className:lr.countryCode,value:c.countryCode,onChange:h}),e(E,{name:"phoneNumber",placeholder:s("Phone number"),type:g.TEL,fullWidth:!0,value:c.phoneNumber,onChange:h,errorMessage:u(r.phoneNumber)})]}),e("div",{className:lr.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"})]})})]})},Ir=({address:r,errorMessage:i,onChange:n})=>{const{t:l}=or("auth"),{t:d}=or("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:r})}),e(p,{onChangeOTP:e=>{queueMicrotask(()=>{n(e)})},errorMessage:i?d(i):void 0,inputMode:"numeric"})]})},yr=({formErrors:r,onChange:i,onCancel:n})=>{const o=(()=>{const{customer:e}=Pt();return x(()=>null==e?void 0:e.email,[null==e?void 0:e.email])})(),[l,d]=F(o||""),{t:s}=or("auth"),{t:u}=or("error"),c=j(e=>{var t,r;const n=null!==(r=null===(t=e.target)||void 0===t?void 0:t.value)&&void 0!==r?r:"";d(n),i(n)},[i]);return G(()=>{Ke(void 0,void 0,void 0,function*(){o&&o!==l&&d(o)})},[o]),t(a,{className:lr.container,alignItems:"center",gap:0,children:[e(E,{name:"email",type:g.EMAIL,placeholder:"Email",fullWidth:!0,value:l,onChange:c,errorMessage:r.email?u(r.email):void 0}),!l&&e(h,{onClick:n,label:s("I don't have an email"),type:m.DEFAULT})]})};var fr={};var Tr={},br="HoursList-module_container__wYX5G",Ar="HoursList-module_title__D7Q8u";const Pr=({title:r,days:n})=>{const{t:l}=or("branch");return q(n)?null:t(a,{className:br,gap:.5,fullWidth:!0,children:[r&&e(o,{weight:"medium",className:Ar,children:l(r)}),n.map(({day:r,hours:n})=>{const a=!n,d=a?l("Closed"):`${n.openAt} - ${n.closeAt}`;return t(i,{justifyContent:"space-between",fullWidth:!0,children:[e(o,{size:"sm",whiteSpace:"nowrap",children:l(`WEEKDAY-${r}`)}),e(o,{size:"sm",whiteSpace:"nowrap",color:a?m.DANGER:"normal",children:d})]},r)})]})},Or=({openingHours:r,deliveryHours:i})=>{const n=(null==r?void 0:r.days)||[],o=(null==i?void 0:i.days)||[],l=(()=>{const e=It();return null==e?void 0:e.deliveryOrderEnabled})();return q(n)?null:t(a,{className:Tr.container,gap:2,children:[e(Pr,{days:n}),l&&e(Pr,{title:"Delivery Hours",days:o})]})};var Sr={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 Dr=({size:t,zIndex:r=100})=>{const[i,n]=F(!1),a=j(()=>{const e=window.scrollY>100;e!==i&&n(e)},[i]);return G(()=>(window.addEventListener("scroll",a),()=>{window.removeEventListener("scroll",a)}),[a]),e("div",{className:J(Sr,{container:!0,visible:i}),style:{zIndex:r},children:e(y,{icon:ue,size:t,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var Rr="Branches-module_branches__sOuoV",Nr="Branches-module_container__Ppa6v",Cr={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 Lr=({children:t,id:r})=>{const i=(()=>{const e=Ve().rootPath||"";return x(()=>{var t;return(null===(t=null==e?void 0:e.endsWith)||void 0===t?void 0:t.call(e,"/"))?e.slice(0,-1):e},[e])})(),n=ft();return n?e("div",{className:Cr.item,onClick:()=>n(r),children:t}):e("a",{href:`${i}/${r}`,className:Cr.item,children:t})},kr=({branch:r})=>{const{id:n,address:d,coverPhoto:s,name:u}=r||{},c=`${Dt().name} ${u}`;return e(Lr,{id:n,children:t("div",{className:J(Cr,{content:!0,noImage:!s}),children:[s&&e("div",{className:Cr.imageContainer,children:e("img",{src:Fe(s),alt:c,className:Cr.image,width:1024,height:400})}),t(a,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Cr.info,gap:.5,children:[e(o,{variant:"h2",className:Cr.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:c}),t(i,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(l,{icon:se,color:m.DEFAULT}),e("span",{className:Cr.address,children:d})]})]})]})})},Mr=()=>{const t=(()=>{const{branches:e}=Ve();return e||[]})();return e("div",{className:Rr,children:e(f,{className:Nr,children:t.map(t=>e(kr,{branch:t},t.id))})})};var Wr,Ur,wr={};!function(e){e.LIST="list",e.GRID="grid"}(Wr||(Wr={})),function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Ur||(Ur={}));const Br=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},zr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},xr=(e,t)=>{var r;return(null===(r=((null==e?void 0:e.options)||[]).find(({id:e})=>e===t))||void 0===r?void 0:r.price)||0},Fr=(e=0,t=1,r=0)=>e*t*(1+r/100),jr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Gr=(e,t=1)=>{const{price:r=0,vat:i=0}=e||{};return Fr(r,t,i)},Vr=(e,t,r,i=1)=>{const n=Gr(e,i);return{totalPrice:n,formattedTotalPrice:Z(n,t,r)}},Yr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.variants)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.id===t))||{}},Hr=(e,t,r)=>{const i=Yr(t,e),{vat:n}=t||{},{price:a}=i||{};return Fr(a,r,n)},Kr=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},qr=({product:e,variantId:t,quantity:r=1,selectedAddons:i,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={},r)=>((null==e?void 0:e.addons)||[]).filter(e=>Object.prototype.hasOwnProperty.call(t,e.id)).reduce((e,r)=>{const{id:i,selectType:n}=r;if(n===Ur.SINGLE){const n=t[i];return e+xr(r,n)}return e+(t[i]||[]).reduce((e,t)=>e+xr(r,t),0)},0)*r)(a,i,r),l=t?Hr(t,a,r):Gr(a,r);return{price:l,optionsPrice:o,total:l+o}},Qr=e=>{var t;const{products:r}=Ve();return(null===(t=null==r?void 0:r.find)||void 0===t?void 0:t.call(r,({id:t})=>t===e))||{}},$r=(e,t)=>{var r,i;return(null===(i=null===(r=null==e?void 0:e.translations)||void 0===r?void 0:r.find)||void 0===i?void 0:i.call(r,e=>e.language===t))||{}},Zr="digital_menu",Xr=`${Zr}_category_select`,Jr=`${Zr}_category_scroll`,ei=`${Zr}_product_details`,ti=`${Zr}_product_add_cart`,ri=`${Zr}_product_view_changed`,ii=[Xr,Jr,ei,ti];var ni="Categories-module_categories__Hh8hl";const ai=({categoryProductMap:t=[],language:r,selectedCategoryId:i,skipTracking:n=!1,onSelectCategory:a})=>{const o=V({}),l=V(null),d=j(()=>{var e;const t=null===(e=null==o?void 0:o.current)||void 0===e?void 0:e[i];if(!t||!l.current)return;const r=l.current.clientWidth,n=t.offsetLeft-r/2+t.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})},[i]);return G(()=>{i&&d()},[i,d]),e("div",{className:ni,children:e(T,{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===r)||{};return e(b,{children:e(A,{onClick:()=>((e,t)=>{e!==i&&(a(e),n||Q(Xr,{name:t}))})(t,d),type:m.BORDERED_PRIMARY,active:t===i,children:e("div",{ref:e=>{e&&(o.current[t]=e)},children:d})})},t)})})})};var oi="Products-module_container__bF2LF",li="Products-module_view__l857X",di="Products-module_products__AoDrY",si="Products-module_category__Sp7dE",ui="Products-module_list__LH4v5",ci={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 mi=({product:r,currency:n,language:l,onClick:d})=>{var s,u;const{addProduct:c}=Pt(),{image160:_,volume:h,available:E}=r||{},{name:g,description:p}=x(()=>jr(r,l),[r,l]),{formattedTotalPrice:v}=x(()=>Vr(r,n,l),[r,n,l]),{t:I}=or("order"),f=(null===(s=null==r?void 0:r.variants)||void 0===s?void 0:s.length)>0,T=(null===(u=null==r?void 0:r.addons)||void 0===u?void 0:u.length)>0,b=!!_;return t("div",{className:J(ci,{container:!0,isClickable:!!d,noImage:!b}),onClick:d,children:[t(i,{justifyContent:"space-between",gap:0,children:[e("div",{className:ci.info,children:t(a,{gap:.25,children:[e("h3",{className:ci.name,children:g}),e("p",{className:ci.description,children:p}),t(i,{className:ci.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:v}),!!h&&e(o,{color:"muted",children:h})]}),!E&&e(o,{size:"xs",color:"danger",className:ci.notAvailableText,children:I("Not available")})]})}),b&&e("img",{src:ze(_),alt:g||"menu",className:J(ci,{image:!0,notAvailable:!E}),loading:"lazy",width:160,height:90})]}),E&&e("div",{className:ci.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(f||T)&&d)return d();c({product:r}),Q(ti,{name:g,quantity:1})},icon:ce,type:m.DEFAULT})})]})};var _i={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 hi=({product:r,currency:n,language:l,defaultImage:d="",isDashboard:s=!1,onClick:u,onAddProduct:c})=>{var _,h;const{volume:E,image580:g,image160:p,image1024:v,available:I}=r||{},f=g||v||p||d,{name:T,description:b}=x(()=>jr(r,l),[r,l]),{formattedTotalPrice:A}=x(()=>Vr(r,n,l),[r,n,l]),{t:P}=or("order",{language:l}),O=(null===(_=null==r?void 0:r.variants)||void 0===_?void 0:_.length)>0,S=(null===(h=null==r?void 0:r.addons)||void 0===h?void 0:h.length)>0;return e("div",{className:_i.container,children:t("div",{className:J(_i,{content:!0,isClickable:!!u,noImage:!f}),onClick:u,children:[f&&e("div",{className:_i.imageContainer,children:e("img",{src:ze(f),alt:T||"menu",className:J(_i,{image:!0,notAvailable:!I}),loading:"lazy",width:580,height:326})}),e("div",{className:_i.info,children:e("div",{className:_i.data,children:t(a,{gap:.25,children:[e("h3",{className:_i.name,children:T}),!s&&e("p",{className:_i.description,children:b}),t(i,{className:_i.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:A}),!!E&&e(o,{color:"white",className:_i.volume,children:E})]}),!I&&e(o,{color:"white",size:"xs",className:_i.notAvailableText,children:P("Not available")})]})})}),I&&e("div",{className:_i.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(O||S)&&u)return u();c({product:r}),Q(ti,{name:T,quantity:1})},icon:ce,type:m.DEFAULT})})]})})},Ei=({product:t,currency:r,language:i,onClick:n})=>{const{addProduct:a}=Pt();return e(hi,{onAddProduct:a,product:t,currency:r,language:i,onClick:n})};var gi={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",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"},pi={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 vi=({isDecreaseDisabled:r=!1,quantity:n=1,size:a="md",onIncrease:o,onDecrease:d})=>t(i,{className:J(pi,{container:!0},[pi[a]]),justifyContent:"space-between",gap:0,children:[e("div",{className:J(pi,{quantityAction:!0,isDisabled:r}),onClick:d,children:e(l,{icon:me})}),e("div",{className:pi.quantityValue,children:n}),e("div",{className:pi.quantityAction,onClick:o,children:e(l,{icon:ce})})]});var Ii="ProductInOrder-module_container__0N57G",yi="ProductInOrder-module_title__TWjM9";const fi=({productId:r,quantity:n,isInPublicMenu:a=!0,language:o,removeAllProductVariants:l,onModalClose:d})=>{const{setIsOrderOpen:s}=Pt(),{t:u}=or("order",{language:o});return n<=0?null:t(c,{className:Ii,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[t(c.Item,{flex:1,className:yi,children:[u("In order")," (",n,")"]}),e(c.Item,{flex:0,children:t(i,{children:[e(y,{icon:_e,onClick:()=>{l(r)},type:m.DANGER,tooltip:u("Remove from order")}),a&&e(y,{icon:he,onClick:()=>{s(!0),d&&d()},type:m.SUCCESS,tooltip:u("View order")})]})})]})};var Ti={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 bi=({product:r,selectedVariant:n,focusedSection:o,language:l,currency:d,onSelectVariant:s})=>{const{t:u}=or("order",{language:l}),c=V(null),{variants:m}=r||{},_="variant"===o;return G(()=>{_&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[o,_]),t(a,{className:J(Ti,{container:!0,focused:_}),gap:1,fullWidth:!0,children:[e("div",{className:Ti.variantsTitle,ref:c,children:u("Product choices")}),(m||[]).map(a=>{const{id:o}=a||{},{formattedTotalPrice:u}=(({variantId:e,currency:t="USD",language:r="en",product:i,quantity:n=1})=>{const a=Hr(e,i,n);return{totalPrice:a,formattedTotalPrice:Z(a,t,r)}})({variantId:o,language:l,currency:d,product:r}),{title:c}=Kr(a,l);return t(i,{justifyContent:"space-between",onClick:()=>s(o),className:Ti.variant,children:[e(E,{label:c,name:"variant",onChange:()=>s(o),checked:n===o,type:g.RADIO,size:"small",noMargin:!0}),e("div",{className:Ti.variantPrice,children:u})]},o)})]})};var Ai={container:"ProductAddons-module_container__DRnT7"};const Pi=({product:r,selectedAddons:n,language:l,currency:d,onOptionSelect:s})=>{const{addons:u}=r||{};return e(a,{className:Ai.container,gap:1.5,fullWidth:!0,children:(u||[]).map(r=>{const{id:u,options:c,selectType:m}=r||{},{title:_}=Br(r,l);return t(a,{children:[e(o,{variant:"bold",children:_}),e(a,{gap:1,fullWidth:!0,children:(c||[]).map(r=>{const{id:a}=r||{},{formattedTotalPrice:o}=(({option:e,currency:t,language:r})=>{const{price:i}=e||{};return{totalPrice:i,formattedTotalPrice:Z(i,t||"USD",r||"en")}})({option:r,language:l,currency:d}),{title:c}=zr(r,l),_=m===Ur.SINGLE,h=_?n[u]===a:(n[u]||[]).includes(a);return t(i,{justifyContent:"space-between",className:Ai.option,children:[e(E,{label:c,name:`option-${u}`,onChange:()=>s({addonId:u,optionId:a,isSingle:_,isRemove:!_&&h}),checked:h,type:_?g.RADIO:g.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:Ai.optionPrice,children:o})]},a)})})]},u)})})},Oi=({product:r,language:n,currency:o,selectedVariant:l,focusedSection:d,selectedAddons:s,isDecreaseDisabled:u,quantity:c,actionTitle:m,isInPublicMenu:E,productQuantityInOrderWithAllVariants:g,onClose:p,setSelectedVariant:v,onOptionSelect:I,adjustQuantity:f,onSubmit:T,removeAllProductVariants:b})=>{const A=V(null),{t:P}=or("order",{language:n}),{name:O,description:S}=x(()=>jr(r,n),[r,n]),{formattedTotalPrice:D}=x(()=>Vr(r,o,n),[r,o,n]),{formattedTotalPrice:R}=x(()=>(({product:e,variantId:t,quantity:r=1,currency:i,language:n,selectedAddons:a,noVat:o=!1})=>{const{total:l}=qr({product:e,variantId:t,quantity:r,selectedAddons:a,noVat:o});return{totalPrice:l,formattedTotalPrice:Z(l,i,n)}})({product:r,quantity:c,language:n,currency:o,variantId:l,selectedAddons:s}),[r,c,n,o,l,s]),N=j(e=>{var t,r;(null===(r=null===(t=null==A?void 0:A.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,null==e?void 0:e.target))||p&&p()},[p]);if(q(r))return null;const{image1024:C,volume:L,variants:k,addons:M,available:W}=r,U=(null==k?void 0:k.length)>0,w=(null==M?void 0:M.length)>0;return e("div",{className:gi.container,onClick:N,children:e(_,{onClose:p,ref:A,noBodyPadding:!0,size:"small",content:t("div",{className:gi.content,children:[t(a,{gap:0,children:[C&&e("img",{src:ze(C),width:1024,height:400,alt:O||"product",className:gi.image}),t(a,{className:gi.details,gap:1,children:[e("h2",{className:gi.name,children:O}),t(i,{justifyContent:"space-between",children:[e("div",{className:gi.price,children:D}),e("div",{className:gi.volume,children:L})]}),e("div",{className:gi.description,children:S})]}),(U||w)&&t(a,{gap:0,className:gi.choices,children:[U&&e(bi,{product:r,selectedVariant:l,focusedSection:d,language:n,currency:o,onSelectVariant:v}),w&&e(Pi,{product:r,selectedAddons:s,language:n,currency:o,onOptionSelect:I})]})]}),e("div",{className:gi.close,children:e(y,{onClick:p,icon:Ee})})]}),footer:t(a,{children:[e(fi,{productId:null==r?void 0:r.id,onModalClose:p,isInPublicMenu:E,removeAllProductVariants:b,quantity:g,language:n}),t(i,{className:gi.addToOrder,gap:.5,children:[e(vi,{isDecreaseDisabled:u,onDecrease:()=>f(-1),onIncrease:()=>f(1),quantity:c}),e(h,{className:gi.addAction,label:W?t(i,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:gi.actionTitle,children:m}),e("span",{children:R})]}):P("Not available"),onClick:T,size:"xl",fullWidth:!0,disabled:!W,paddingBlock:.5})]})]})})})},Si=({product:t,onClose:r})=>{const i=Nt(),n=Rt(),{addProduct:a,updateProduct:o,removeAllProductVariants:l}=Pt(),[d,s]=F(1),[u,c]=F(!1),[m,_]=F(null),[h,E]=F(null),[g,p]=F({}),{t:v}=or("order"),I=(({productId:e,variantId:t,selectedAddons:r})=>{var i;const{orderItems:n}=Pt();return q(n)||!e?0:(null===(i=n[rt(e,t,r)])||void 0===i?void 0:i.quantity)||0})({productId:null==t?void 0:t.id,variantId:m,selectedAddons:g}),y=(e=>{const{orderItems:t}=Pt();return q(t)||!e?0:Object.values(t).filter(t=>t.productId===e).reduce((e,t)=>e+t.quantity,0)})(null==t?void 0:t.id),{name:f}=x(()=>jr(t,i),[t,i]),T=u?0===d:1===d,b=x(()=>v(u?0===d?"Remove from order":"Update order":"Add"),[u,d]);G(()=>{s(I>0?I+1:1),c(I>0)},[I,t]),G(()=>{_(null),p({})},[t]);const A=j(e=>{-1===e&&T||s(t=>Math.max(0,t+e))},[T]);return e(Oi,{product:t,language:i,currency:n,selectedVariant:m,focusedSection:h,selectedAddons:g,isDecreaseDisabled:T,quantity:d,actionTitle:b,onClose:r,setSelectedVariant:_,onOptionSelect:({addonId:e,optionId:t,isSingle:r,isRemove:i=!1})=>{p(n=>{if(r)return Object.assign(Object.assign({},n),{[e]:t});const a=n[e]||[],o=i?a.filter(e=>e!==t):[...new Set([...a,t])];return Object.assign(Object.assign({},n),{[e]:o})})},adjustQuantity:A,onSubmit:()=>{var e;if((null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!m)return E("variant"),void setTimeout(()=>{E(null)},200);u?o({product:t,quantity:d,variantId:m,selectedAddons:g}):(a({product:t,quantity:d,variantId:m,selectedAddons:g}),Q(ti,{name:f,quantity:d})),r&&r()},removeAllProductVariants:l,productQuantityInOrderWithAllVariants:y,isInPublicMenu:!0})};var Di="FloatingOrdersButton-module_container__RYr7V",Ri="FloatingOrdersButton-module_content__2X3P-",Ni={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 Ci=({actionText:r,isLoading:n=!1,isDisabled:a=!1,onClick:o})=>{const{orderStep:l}=Pt(),d=Er(),{totalPriceWithTax:s,totalPriceWithTaxAndFees:u}=(()=>{const{totalPriceWithTax:e,totalPriceWithoutTax:t,totalTax:r,totalPriceWithTaxAndFees:i}=_r(),n=Nt(),a=Rt();return{totalPriceWithTax:Z(e,a,n),totalPriceWithoutTax:Z(t,a,n),totalTax:Z(r,a,n),totalPriceWithTaxAndFees:Z(i,a,n)}})();return t(c,{className:J(Ni,{container:!0,isLoading:n,isClickable:!!o,isDisabled:a}),justifyContent:"space-between",alignItems:"center",onClick:n||a?null:o,children:[e(c.Item,{flex:1,children:t(i,{alignItems:"center",children:[e("div",{className:Ni.count,children:d}),e("div",{className:Ni.actionText,children:n?e(P,{}):r})]})}),e(c.Item,{className:Ni.totalPrice,flex:1,children:l===Xe.DETAILS?u:s})]})},Li=()=>{const{setIsOrderOpen:t}=Pt(),{t:r}=or("order");return Er()<=0?null:e("div",{className:Di,children:e("div",{className:Ri,children:e(Ci,{onClick:()=>t(!0),actionText:r("View order")})})})};var ki="OrderDrawer-module_container__DymQj",Mi="OrderDrawer-module_content__khduX",Wi="OrderDrawer-module_paymentMethods__9i-sb",Ui="OrderDrawer-module_footer__8XfD9",wi="OrderDrawer-module_noteButton__M8BVx";const Bi=({isOrderItemsEmpty:r=!1,orderError:i})=>{const{t:n}=or("order"),{t:l}=or("error"),{order:s,orderStep:u,orderItems:c,setOrderStep:_,setIsOrderOpen:E,setTrackingId:g,updateOrderErrors:p,resetErrors:I}=Pt(),{setModal:y}=d(),f=yt(),T=(()=>{const{customer:e}=Pt();return e||{}})(),{isOpen:b,isDelivering:A}=vt(),P=hr(),[S,D]=F(!1),[R,N]=F(""),C=null==s?void 0:s.note,L=!!C,k=f&&u===Xe.CART,M=b||A,W=!!i||!M,U=()=>Ke(void 0,void 0,void 0,function*(){try{N(""),D(!0);const e=yield(e=>Ke(void 0,void 0,void 0,function*(){return lt("customer/order",e)}))(P);return e.trackingId}catch(e){return N((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ct(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{D(!1)}}),w=f&&M?()=>Ke(void 0,void 0,void 0,function*(){if(q(T))return y({id:Pe});if(I(),u===Xe.DETAILS){if(s.orderType===qe.DELIVERY&&q(null==T?void 0:T.addresses))return p("customer");if(s.orderType===qe.DINE_IN&&!(null==s?void 0:s.tableId))return p("tableId");if(q(c))return p("items");const e=yield U();if(!e)return;g(e)}const e=(et.findIndex(e=>e===u)||0)+1;if(e>=et.length)return;const t=et[e];_(t)}):null;return t(a,{className:Ui,fullWidth:!0,children:[!!R&&e(v,{message:l(R),type:"error",onClear:()=>N("")}),!!i&&e(O,{text:i,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:Ae,params:{note:C}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:wi,icon:L?ge:ce,iconSize:"md"}),r?e(h,{label:n("Add items"),onClick:()=>E(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):u!==Xe.COMPLETED?e(Ci,{actionText:n((()=>{if(!f)return"Subtotal";if(!M)return"Closed Now";switch(u){case Xe.CART:return"Go to checkout";case Xe.DETAILS:return"Place order";default:return"Continue"}})()),onClick:w,isLoading:S,isDisabled:W}):null]})};var zi={},xi="OrderListItem-module_container__Tj4RI",Fi="OrderListItem-module_image__o3PIC",ji="OrderListItem-module_data__BLzxw",Gi="OrderListItem-module_name__QEzuZ",Vi="OrderListItem-module_price__-V2qL",Yi="ProductQuantity-module_quantity__PzTpj";const Hi=({productId:t,variantId:r,min:i=1,size:n="md",selectedAddons:a,isDisabled:o=!1})=>{const l=(({productId:e,variantId:t,selectedAddons:r})=>{const{orderItems:i}=Pt(),n=i[rt(e,t,r)];return(null==n?void 0:n.quantity)||1})({productId:t,variantId:r,selectedAddons:a}),d=Qr(t),{updateProduct:s}=Pt(),u=l===i;return o?e("div",{className:Yi,children:l}):e(vi,{isDecreaseDisabled:u,onDecrease:()=>s({product:d,quantity:l-1,variantId:r,selectedAddons:a}),onIncrease:()=>s({product:d,quantity:l+1,variantId:r,selectedAddons:a}),quantity:l,size:n})},Ki=({item:i,product:n,language:a})=>e(r,{children:(i.addons||[]).map(({addonId:e,options:r})=>{var i;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==r?void 0:r.some(({optionId:t})=>t===e.id));if(q(l)||q(d))return null;const s=null===(i=Br(l,a))||void 0===i?void 0:i.title,u=d.map(e=>{var t;return null===(t=zr(e,a))||void 0===t?void 0:t.title}).filter(Boolean).join(", ");return s&&u?t(o,{color:"muted",size:"xs",children:[s,": ",u]},e):null})}),qi=({item:r,isDisabled:n=!1})=>{var l;const{productId:d}=r||{},s=null===(l=null==r?void 0:r.variant)||void 0===l?void 0:l.variantId,u=(e=>{const t={};for(const{addonId:r,options:i=[]}of e.addons||[]){const e=i.map(({optionId:e})=>e);t[r]=1===e.length?e[0]:e}return t})(r),c=Qr(d),m=Yr(c,s),_=Nt(),{image160:h}=c,{title:E}=Kr(m,_),{name:g}=x(()=>jr(c,_),[c,_]),{formattedTotalPrice:p}=(e=>{const t=Nt(),r=Rt(),{totalGross:i}=it(e);return{totalPrice:i,formattedTotalPrice:Z(i,r,t)}})(r);return t(i,{className:xi,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:ze(h),alt:g||"menu",className:Fi,loading:"lazy",width:80,height:45}),t("div",{className:ji,children:[e("div",{className:Gi,children:g}),t(a,{gap:0,children:[!!E&&e(o,{color:"muted",size:"xs",children:E}),e(Ki,{item:r,product:c,language:_})]}),e("div",{className:Vi,children:p})]}),e(Hi,{productId:d,variantId:s,selectedAddons:u,size:"sm",min:0,isDisabled:n})]})},Qi=()=>{const{t:r}=or("order");return t(a,{className:zi.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(o,{variant:"h2",children:r("Empty order")}),e(S,{text:r("You don't have any items in your order")})]})},$i=({isDisabled:t=!1})=>{const{orderItems:r}=Pt(),i=q(r);return e("div",{className:zi.container,children:i?e(Qi,{}):e("div",{className:zi.items,children:Object.entries(r||{}).map(([r,i])=>e(qi,{item:i,isDisabled:t},r))})})},Zi=()=>e("div",{className:Mi,children:e($i,{})});var Xi="CustomerAddress-module_container__TGYRV";const Ji=()=>{const{t:t}=or("customer");return e(o,{color:m.DANGER,children:t("No address available")})},en=()=>{const i=dr(),{t:n}=or("customer"),{additionalNumber:a,street:l,houseNumber:d,cityName:s,countryCode:u}=i,c=mr(l,d,a),m=([s,u]||[]).filter(Boolean).join(", ");return t(r,{children:[e(o,{children:c||n("Unknown address")}),m&&e(o,{size:"sm",color:"muted",children:m})]})},tn=()=>{const r=dr(),{setModal:n}=d();return e("div",{className:Xi,onClick:()=>{n({id:Oe})},children:t(i,{fullWidth:!0,alignItems:"center",children:[e(l,{icon:se,size:"md"}),e(a,{gap:0,fullWidth:!0,children:q(r)?e(Ji,{}):e(en,{})}),e(l,{icon:ge,size:"sm"})]})})};var rn,nn,an;!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"}(rn||(rn={})),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"}(nn||(nn={})),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"}(an||(an={}));var on={};const ln=({preDefinedTable:r,tableOptions:n,selectedTableId:l,error:d,disableIfPreDefined:s,language:u,onChange:c})=>{const{t:_}=or("order",{language:u}),h=!q(r),p=j(e=>{var t;c(Number(null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)||null)},[c]);return t(a,{className:on.table,fullWidth:!0,gap:.5,children:[e(i,{fullWidth:!0,children:h&&s?e(o,{variant:"bold",children:r.name}):e(E,{name:"tableId",options:n,type:g.SELECT,className:on.tableInput,value:l,onChange:p,isDisabled:h,fullWidth:!0,noMargin:!0,size:"small",placeholder:_("Select Table")})}),d&&e(o,{color:m.DANGER,children:_(d)})]})},dn=()=>{const t=(()=>{const{tableId:e,tables:t}=Ve();return!e||q(t)?{}:t.find(t=>Number(t.id)===Number(e))||{}})(),r=(()=>{const{tables:e}=Ve();return e})(),{order:i,updateOrder:n,errors:a}=Pt(),o=Nt(),l=r.map(({id:e,name:t})=>({label:t,value:e}));return e(ln,{onChange:e=>n({tableId:e}),preDefinedTable:t,tableOptions:l,selectedTableId:null==i?void 0:i.tableId,error:null==a?void 0:a.tableId,language:o,disableIfPreDefined:!0})};var sn="OrderMethods-module_container__KSwfa";const un=({orderTypes:r,orderType:n,size:a,onSelect:d})=>{const{t:s}=or("error"),c=e=>0===e?"right":e+1===r.length?"left":"bottom",m=r.reduce((r,a,d)=>a.isVisible?(r.push((({type:r,icon:a,title:d,isDisabled:m},_)=>({value:r,isDisabled:m,label:e(u,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:c(_),children:t(i,{gap:.5,flexWrap:"nowrap",children:[e(l,{icon:a}),e(o,{color:r!==n||m?"normal":"white",whiteSpace:"nowrap",children:d})]})})}))(a,d)),r):r,[]);return e("div",{className:sn,children:e(D,{methods:m,onSelect:d,selectedMethod:n,fullWidth:!0,size:a,gap:.5})})};var cn="OrderPaymentSummary-module_container__HF7-X",mn="OrderPaymentSummary-module_row__eikWa";const _n=({textSize:r,totalPriceWithoutTax:n=0,totalPriceWithTax:l=0,deliveryFee:d=0,totalTax:s,currency:u,language:c,orderType:m})=>{const{t:_}=or("order",{language:c}),h=Z(n,u,c),E=Z(l,u,c),g=Z(s,u,c),p=Z(d,u,c);return t(a,{className:cn,fullWidth:!0,gap:0,children:[t(i,{justifyContent:"space-between",className:mn,children:[e(o,{size:r,children:_("Items")}),e(o,{size:r,children:h})]}),t(i,{justifyContent:"space-between",className:mn,children:[e(o,{size:r,children:_("Tax")}),e(o,{size:r,children:g})]}),m===qe.DELIVERY&&t(i,{justifyContent:"space-between",className:mn,children:[e(o,{size:r,children:_("Delivery Fee")}),e(o,{size:r,children:p})]}),t(i,{justifyContent:"space-between",className:mn,children:[e(o,{size:r,color:"bold",children:_("Total")}),e(o,{size:r,color:"bold",children:E})]})]})},hn=()=>{const r=Nt(),n=Rt(),{order:{orderType:o,paymentMethod:l},updateOrder:d}=Pt(),{totalPriceWithTaxAndFees:s,totalPriceWithoutTax:u,totalTax:c}=_r(),{isOpen:m,isDelivering:_}=vt(),{deliveryOrderEnabled:h,dineInOrderEnabled:p,pickupOrderEnabled:v,deliveryFeeAmount:I}=It(),{t:y}=or("order"),f=[{type:qe.DELIVERY,icon:pe,title:y("Delivery"),isDisabled:!_,isVisible:h},{type:qe.DINE_IN,icon:ve,title:y("Dine in"),isDisabled:!m,isVisible:p},{type:qe.PICK_UP,icon:he,title:y("Pickup"),isDisabled:!m,isVisible:v}],T=[{value:Ze.CASH,label:y("Cash")},{value:Ze.CARD,label:y("Card")}];return t(a,{className:Mi,gap:1,children:[e(un,{orderTypes:f,orderType:o,size:"small",onSelect:e=>d({orderType:e})}),o===qe.DELIVERY&&e(tn,{}),o===qe.DINE_IN&&e(R,{paddingInline:1,fullWidth:!0,children:e(dn,{})}),e(i,{className:Wi,children:T.map(({label:t,value:r})=>e(E,{label:t,name:"paymentMethod",onChange:()=>d({paymentMethod:r}),checked:l===r,type:g.RADIO,size:"small",noMargin:!0},r))}),e(N,{title:y("Order summary"),content:e($i,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(_n,{textSize:"sm",totalPriceWithoutTax:u,totalPriceWithTax:s,totalTax:c,language:r,currency:n,deliveryFee:I,orderType:o})]})},En=()=>{const{t:r}=or("order"),{trackingId:i}=Pt(),n=Nt(),d=Ye();return t(a,{className:Mi,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(l,{icon:Ie,size:"xxl",color:m.SUCCESS}),e(R,{paddingInline:2,children:e(o,{variant:"h1",align:"center",children:r("Your Order is Completed!")})}),e(R,{paddingInline:2,children:e(o,{align:"center",children:r("Thank you! We've received your order and it will be delivered shortly.")})}),e(R,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(C,{href:`https://${d}/${n}/order/${i}`,title:r("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},gn=()=>{const{isOrderOpen:t,orderItems:r}=Pt(),{orderStep:i,setOrderStep:n,resetOrder:a}=Pt(),o=V(null),{t:l}=or("order"),d=(()=>{const{order:e,orderStep:t}=Pt(),r=gr(),i=pr(),{t:n}=or("error");return t!==Xe.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===qe.DELIVERY?i||r:null:n("NO_ORDER_TYPE")})(),s=!!d,u=yt()&&(i===Xe.CART||s),c=q(r),m=()=>{a()};return t?e("div",{className:ki,onClick:e=>{var t,r;(null===(r=null===(t=null==o?void 0:o.current)||void 0===t?void 0:t.contains)||void 0===r?void 0:r.call(t,null==e?void 0:e.target))||m()},children:e(L,{ref:o,onClose:m,isOpen:t,title:l("Your order"),onBack:i===Xe.CART?void 0:()=>{n(Xe.CART)},content:(()=>{switch(i){case Xe.DETAILS:return e(hn,{});case Xe.COMPLETED:return e(En,{});default:return e(Zi,{})}})(),footer:e(Bi,{isOrderItemsEmpty:c,orderError:d}),hasLargeFooter:u})}):null},pn=Y(({categoryProductMap:r=[],currency:n,language:o,productBlocksRef:l,containerRef:d,onCategoryInView:s})=>{const[u,c]=F(null),[_,h]=F(Wr.LIST),E=[{icon:ye,type:Wr.LIST},{icon:ve,type:Wr.GRID}],g=e=>{const{name:t}=jr(e,o);Q(ei,{name:t}),c(e)};return G(()=>{const e=new IntersectionObserver(e=>{var t;const r=((null===(t=null==d?void 0:d.current)||void 0===t?void 0:t.clientHeight)||1e3)/2;let i=null,n=1/0;e.forEach(e=>{if(e.isIntersecting){const t=e.boundingClientRect,a=t.top+t.height/2,o=Math.abs(a-r);o<n&&(n=o,i=e.target.getAttribute("data-category-id"))}}),i&&s(Number(i))},{threshold:.1});return Object.entries(l.current||{}).forEach(([t,r])=>{r&&(r.setAttribute("data-category-id",t),e.observe(r))}),()=>{e.disconnect()}},[l,d,s]),t("div",{className:oi,children:[e(i,{className:li,alignItems:"center",children:E.map(({icon:t,type:r})=>e(y,{icon:t,onClick:()=>(e=>{h(e),Q(ri,{name:e})})(r),type:r===_?m.PRIMARY:m.DEFAULT},r))}),e(a,{children:(r||[]).map(r=>{const{name:i}=$r(r,o),{id:d,products:s}=r;return t("div",{className:di,ref:e=>{e&&(l.current[d]=e)},"data-category-id":d,children:[e("h2",{className:si,children:i}),e("div",{className:ui,children:e(a,{gap:0,children:(s||[]).map(t=>_===Wr.GRID?e(Ei,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id):e(mi,{product:t,currency:n,language:o,onClick:()=>g(t)},t.id))})})]},d)})}),e(Si,{product:u,onClose:()=>c(null)}),e(Li,{}),e(gn,{})]})},(e,t)=>e.categoryProductMap===t.categoryProductMap&&e.currency===t.currency&&e.language===t.language);pn.displayName="Products";const vn=({containerRef:r})=>{var i;const n=(()=>{const{products:e}=Ve();return e||[]})(),a=(()=>{const{categories:e}=Ve();return e||[]})(),o=Nt(),l=Rt(),d=((e,t)=>{const r=t.reduce((e,t)=>{if(!t.visible)return e;const r=Number(t.categoryId);return e[r]||(e[r]=[]),e[r].push(t),e},{});return e.map(e=>Object.assign(Object.assign({},e),{products:r[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,u]=F(null===(i=null==a?void 0:a[0])||void 0===i?void 0:i.id),c=V({}),m=V(!0),_=j(e=>Ke(void 0,void 0,void 0,function*(){m.current=!1,u(e),(e=>{var t;const r=null===(t=null==c?void 0:c.current)||void 0===t?void 0:t[e];r&&(setTimeout(()=>{r.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),h=j(e=>{if(!(null==m?void 0:m.current))return;const t=((e,t,r)=>{var i;const n=null===(i=null==t?void 0:t.find)||void 0===i?void 0:i.call(t,({id:t})=>t===e);if(q(n))return"";const{name:a}=$r(n,r);return a||""})(e,a,o);Q(Jr,{name:t}),u(e)},[a,o]),E=j(()=>Ke(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 r=(a||[]).find(({id:e})=>e===t);q(r)||_(t)}),[a,_]);return G(()=>{E()},[E]),t("div",{className:wr.container,children:[e(ai,{categoryProductMap:d,language:o,selectedCategoryId:s,onSelectCategory:_}),e(pn,{categoryProductMap:d,language:o,currency:l,productBlocksRef:c,containerRef:r,onCategoryInView:h})]})},In={[Ae]:({params:r})=>{const{modalRef:n,note:a}=r,[o,l]=F(a||""),{setModal:s}=d(),{updateOrder:u}=Pt(),{t:c}=or("order"),{t:p}=or("common");return e(_,{ref:n,header:e("div",{children:c("Add an order note")}),content:e("div",{className:nr.container,children:e(E,{type:g.TEXT_AREA,placeholder:c("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(i,{justifyContent:"flex-end",children:[e(h,{label:p("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(h,{label:p("Save"),onClick:()=>{u({note:o}),s(null)},size:"md"})]})})},[Pe]:({params:r})=>{const{t:i}=or("auth"),{t:n}=or("error"),{t:o}=or("common"),{setModal:l}=d(),{setOrderStep:s,getCustomer:u,customer:c}=Pt(),[m,E]=F({phoneNumber:"",otp:"",email:""}),[g,p]=F({}),[I,y]=F(""),[f,T]=F(sr.PHONE),b=[sr.PHONE,sr.OTP,sr.EMAIL],{modalRef:A}=r,P=()=>{s(Xe.DETAILS),l(null)},O=()=>{const e=b.indexOf(f),t=b[e+1];if(t)return T(t);P()},S=j(e=>t=>{E(r=>Object.assign(Object.assign({},r),{[e]:t}))},[]);return e(_,{ref:A,title:i("Create an account or log in"),onClose:()=>l(null),content:t(a,{className:lr.content,fullWidth:!0,children:[!!I&&e(v,{message:n(I),type:"error",onClear:()=>y(""),inline:!0}),(()=>{switch(f){case sr.OTP:return e(Ir,{address:m.phoneNumber,errorMessage:null==g?void 0:g.otp,onChange:S("otp")});case sr.EMAIL:return e(yr,{onChange:S("email"),onCancel:P,formErrors:g});default:return e(vr,{onChange:S("phoneNumber"),formErrors:g})}})()]}),footer:e(h,{label:o("Continue"),onClick:()=>Ke(void 0,void 0,void 0,function*(){y("");try{const t=f===sr.EMAIL,r=(null==c?void 0:c.email)===m.email,i=!!(null==c?void 0:c.email)&&!m.email;if(t&&(r||i))return O();const n=((e,t)=>{const r={},{phoneNumber:i,email:n,otp:a}=e||{};switch(t){case sr.PHONE:{const{isValid:e,error:t}=Ue(i);e||(r.phoneNumber=t);break}case sr.OTP:{const{isValid:e,error:t}=Ue(i);e||(r.phoneNumber=t),a&&6===a.length||(r.otp="Invalid OTP");break}case sr.EMAIL:n&&$(n)||(r.email="Invalid Email Address")}return r})(m,f);if(!q(n))return p(n);switch(p({}),f){case sr.PHONE:{const t=yield(e=m.phoneNumber,Ke(void 0,void 0,void 0,function*(){return lt("customer",{phoneNumber:e})}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");break}case sr.OTP:{const e=yield((e,t)=>Ke(void 0,void 0,void 0,function*(){return lt("otp/verify",{otp:e,phoneNumber:t})}))(m.otp,m.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Me.saveAuthToken(e);break}case sr.EMAIL:{const e=yield ut({email:m.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield u(),O()}catch(e){y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ct(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:m})}var e}),size:"lg",fullWidth:!0})})},[Oe]:({params:r})=>{const i=Re[0].code,{getCustomer:n}=Pt(),l=Nt(),s=gt(),{id:u,countryCode:p=i,cityName:y="",street:f="",houseNumber:T="",floor:b,additionalNumber:A="",instructions:P="",longitude:O,latitude:S,postCode:D}=dr(),R={addressId:u,countryCode:p,cityName:y,street:f,houseNumber:T,additionalNumber:A,instructions:P,floor:b,latitude:S,longitude:O,postCode:D},{modalRef:N}=r,{t:C}=or("customer"),{t:L}=or("error"),{t:k}=or("common"),{setModal:M}=d(),[W,U]=F(R),[w,B]=F({}),[z,x]=F(""),[G,V]=F(!1),Y=w.countryCode||w.cityName||w.street||w.houseNumber,H=mr(R.street,R.houseNumber,void 0),K=e=>{var t,r;const i=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.name,n=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value;U(e=>Object.assign(Object.assign({},e),{[i]:n}))},Q=()=>M(null),$=j(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}),r=cr(t);U(t),B(r)},[W]);return e(_,{ref:N,title:C("Update Delivery Address"),onClose:Q,content:e("div",{className:fr.content,children:t(a,{fullWidth:!0,children:[!!z&&e(v,{message:L(z),type:"error",onClear:()=>x(""),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:H,placeHolder:C("Enter address"),inputLabel:C("Address")}),Y&&e(o,{color:m.DANGER,children:L(Y)})]}),t(c,{gap:1,children:[e(c.Item,{flex:6,children:e(E,{name:"floor",label:C("Floor"),placeholder:"7",type:g.TEXT,value:W.floor,onChange:K,errorMessage:L(w.floor)})}),e(c.Item,{flex:6,children:e(E,{name:"additionalNumber",label:C("Additional number"),placeholder:"17",type:g.TEXT,value:W.additionalNumber,onChange:K,errorMessage:L(w.additionalNumber)})})]}),e(E,{name:"instructions",placeholder:C("Example: Door code is 555"),label:C("Delivery Instructions"),type:g.TEXT,fullWidth:!0,value:W.instructions,onChange:K,errorMessage:L(w.instructions)})]})}),footer:e(h,{label:k("Save"),onClick:()=>Ke(void 0,void 0,void 0,function*(){x("");try{const e=cr(W);if(!q(e))return B(e);B({}),V(!0);const t=yield ut({address:W});if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");n(),Q()}catch(e){x((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ct(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:W})}finally{V(!1)}}),size:"lg",fullWidth:!0,isLoading:G})})},[Se]:({params:t})=>{const{setModal:r}=d(),{t:i}=or("branch"),{modalRef:n,openingHours:a,deliveryHours:o}=t;return e(_,{ref:n,onClose:()=>r(null),content:e(Or,{openingHours:a,deliveryHours:o}),title:i("Opening Hours")})}},yn=()=>{const{getCustomer:r}=Pt(),i=Nt(),n=Ye(),a=He(),o=V(null),l=(()=>{const{branchId:e}=Ve();return e})(),d=Et()||l,{url:s,domain:u}=we(n,i);return G(()=>{a||r()},[r,a]),t("div",{className:Te,ref:o,children:[e(ir,{}),d?e(vn,{containerRef:o}):e(Mr,{}),e(Dr,{size:"md",zIndex:10}),e("a",{rel:"noopener noreferrer",target:"_blank",href:s,className:be,children:u})]})},fn=({data:t})=>e(Ge,{value:t||{},children:e(At,{children:e(k,{modalsMap:In,children:e(yn,{})})})});var Tn={};const bn=({currentGoal:t,language:r,setGoal:i})=>{const{t:n}=or("events",{language:r}),a=V({}),o=e=>{switch(e){case Jr:return n("Scrolled to Category");case Xr:return n("Category Selected");case ei:return n("Product Details");case ti:return n("Product Added to Order");default:return""}},l=j(e=>{var t,r;i(e),null===(r=null===(t=null==a?void 0:a.current)||void 0===t?void 0:t.close)||void 0===r||r.call(t)},[i]);return e(M,{action:o(t),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:a,menu:e("div",{className:Tn.toolbarMenu,children:ii.map(t=>e(W,{onClick:()=>l(t),children:o(t)},t))})})},An=({data:t,isLoading:r=!1,language:i,goal:n,setGoal:a})=>{const{t:o}=or("events",{language:i});return e(U,{title:o("Events"),toolbar:e(bn,{language:i,currentGoal:n,setGoal:a}),children:r?e(P,{}):e(w,{data:t})})};var Pn,On,Sn={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"}(Pn||(Pn={})),function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(On||(On={}));const Dn={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"}},Rn=[{title:"Smart QR Menu",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Link-in-bio",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Menu Analytics",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Unlimited Users",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Unlimited Products",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Unlimited Categories",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Unlimited Languages",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Product variants",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Product options",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Premium Support",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"SEO",[Pn.APPETIZER]:!0,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Sales reports",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Table Management",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Order Management",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Delivery Management",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!0,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Multiple Branches",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!1,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!0},{title:"Point of Sale (POS)",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!1,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!1},{title:"Mobile App for Owners & Staff",[Pn.APPETIZER]:!1,[Pn.MAIN_COURSE]:!1,[Pn.CHEFS_SPECIAL]:!0,[Pn.LIFETIME]:!1}],Nn=({plan:r,language:n,interval:l,currency:d})=>{const{t:s}=or("pricing",{language:n}),{price:u,discountedPrice:c}=Dn[r],m=u[l],_=r===Pn.LIFETIME?"/ lifetime":"/ month";return void 0!==c?t(a,{gap:0,children:[t(i,{children:[e("span",{className:Sn.discountedPrice,children:Z(c,d,n)}),e("span",{className:Sn.originalPrice,children:Z(m,d,n)})]}),e(o,{size:"sm",children:s(_)})]}):t(i,{gap:.5,children:[e(o,{size:"xxl",variant:"bold",children:Z(m,d,n)}),e(o,{size:"sm",children:s(_)})]})},Cn=({currency:r,language:n,isLoading:a=!1,onPlanSelect:o,onIntervalSelect:d})=>{const[s,u]=F("annually"),{t:c}=or("pricing",{language:n}),_=[Pn.APPETIZER,Pn.MAIN_COURSE,Pn.CHEFS_SPECIAL],E=Boolean(o),g=E?"Choose Plan":"Try for free",p=({children:t,plan:r})=>{const{ribbonText:i}=Dn[r],l=Boolean(i),d={className:J(Sn,{plan:!0,hasRibbon:l}),"data-ribbon":c(i)};return o?e("div",Object.assign({},d,{onClick:()=>!a&&o(r),children:t})):e("a",Object.assign({},d,{href:Be(n,`pricing-${r}`),target:"_blank",rel:"noreferrer noopener",children:t}))};return t("div",{className:Sn.container,children:[e("div",{className:Sn.intervals,children:["annually","monthly"].map(t=>e("div",{className:J(Sn,{interval:!0,active:s===t}),onClick:()=>(e=>{u(e),d&&d(e)})(t),children:c(t)},t))}),e("div",{className:Sn.plans,children:_.map(o=>e(p,{plan:o,children:t(U,{children:[e("div",{className:Sn.title,children:c(Dn[o].title)}),e("div",{className:Sn.price,children:e(Nn,{plan:o,language:n,interval:s,currency:r})}),e("div",{className:Sn.action,children:e(h,{label:c(g),fullWidth:!0,size:"xl",type:o===Pn.MAIN_COURSE?m.PRIMARY:m.BORDERED_PRIMARY,onClick:()=>{},isLoading:a})}),t("div",{className:Sn.benefits,children:[!E&&t(i,{className:Sn.moneyBack,gap:.5,children:[e(l,{icon:fe,size:"sm",color:m.SUCCESS}),e("span",{children:c("No credit card needed")})]}),Rn.map(r=>t("div",{className:Sn.benefit,children:[e(l,{icon:r[o]?Ie:me,size:"md"})," ",e("span",{children:c(r.title)})]},r.title))]})]})},o))})]})};var Ln={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 kn=({totalCount:r,isVisible:i,onClick:n})=>{const a=V(null),o=V(!1);return G(()=>{if(!o.current)return;const e=a.current;e&&(e.classList.remove(Ln.animate),e.offsetWidth,e.classList.add(Ln.animate))},[r]),G(()=>{o.current=!0},[]),t("div",{className:J(Ln,{container:!0,isVisible:i}),onClick:n,ref:a,children:[e(l,{icon:he,color:m.DEFAULT,size:"md"}),e("div",{className:Ln.count,children:r})]})};export{ai as Categories,An as Events,kn as OrderFAB,un as OrderMethods,_n as OrderPaymentSummary,At as OrderProvider,ln as OrderTableUI,Cn as Pricing,Oi as ProductDetailsUI,hi as ProductsGridItem,fn as PublicMenu,vi as Quantity,Pt as useOrderContext};
2
2
  //# sourceMappingURL=index.esm.js.map