@restaround/react 1.3.11 → 1.3.13
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 +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/models/index.esm.js +1 -1
- package/dist/models/index.esm.js.map +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/index.js.map +1 -1
- package/dist/models/modules/business/models.d.ts +7 -0
- package/dist/modules/business/models.d.ts +7 -0
- package/dist/utils/modules/business/models.d.ts +7 -0
- package/package.json +9 -9
package/dist/index.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a,Fragment as t}from"react/jsx-runtime";import{isEmpty as i,Storage as n,sortNumbers as r,trackEvent as o,priceFormatter as l,classNames as d,getQueryParam as s,checkIsValidEmail as c,isNumber as u}from"@sorocraft/js-utils";import{Row as m,classNames as h,IconLink as g,Tooltip as v,SVGIcon as p,Column as _,Flex as y,UIElementType as b,Carousel as f,CarouselItem as E,Chip as I,Text as S,IconButton as P,Input as A,InputType as T,Modal as k,Button as O,Loading as C,useModalContext as N,AlertBox as R,Description as D,MethodSelection as L,Accordion as M,Padding as z,Link as G,Drawer as U,Container as j,Card as w,OTPInput as x,ListItem as B,ModalProvider as W,DropDown as H,DropDownMenuItem as V,BarChart as Q}from"@sorocraft/ui";import{createContext as q,useContext as F,useMemo as Y,useState as K,useCallback as Z,useRef as X,useEffect as $,memo as J}from"react";import{Phone as ee,Whatsapp as ae,Instagram as te,Telegram as ie,Tiktok as ne,Facebook as re,Wifi as oe,MarkerPin as le,Plus as de,Minus as se,Trash as ce,ShoppingBag as ue,Close as me,Edit as he,Delivery as ge,Grid as ve,Check as pe,List as _e,MarkerPinSimple as ye}from"@sorocraft/ui/icons";function be(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]])}return t}function fe(e,a,t,i){return new(t||(t=Promise))((function(n,r){function o(e){try{d(i.next(e))}catch(e){r(e)}}function l(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var a;e.done?n(e.value):(a=e.value,a instanceof t?a:new t((function(e){e(a)}))).then(o,l)}d((i=i.apply(e,a||[])).next())}))}function Ee(e){var a="function"==typeof Symbol&&Symbol.iterator,t=a&&e[a],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,t=e[Symbol.asyncIterator];return t?t.call(e):(e=Ee(e),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){(function(e,a,t,i){Promise.resolve(i).then((function(a){e({value:a,done:t})}),a)})(i,n,(a=e[t](a)).done,a.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var Se="PublicMenu-module_container__QLN6U",Pe="PublicMenu-module_categories__Iy6NC",Ae="PublicMenu-module_footer__6G3DQ";const Te="https://images.restaround.co",ke=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"",Oe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"https://images.restaround.co/no-photo-128.webp",Ce=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"https://images.restaround.co/restaround-doodle.webp",Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Re=(e,a,t)=>Ne.charAt(e>>2)+Ne.charAt((3&e)<<4|a>>4)+Ne.charAt((15&a)<<2|t>>6)+Ne.charAt(63&t),De="restaround.co",Le=[De,"restaround.az","restaround.ee","restaround.nl"],Me=(e,a)=>{const t=Le.includes(e)?e:De;return{url:`https://${t}/${a||"en"}`,domain:t}},ze=(e,a)=>{const t=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${t}/auth/register?lang=${e}&utm_source=${a}`},Ge="ADD_UPDATE_NOTES",Ue="AUTH",je="ADD_UPDATE_ADDRESS",we=["en","az","nl","et","tr","ru"],xe=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Be={AZ:["Baku","Nakhchivan","Ganja","Sumgayit","Shaki","Lenkoran","Guba","Gabala","Ismayilli","Shamakhi","Shusha","Khankendi"]},We=q({}),He=({children:a,value:t})=>{const n=Y((()=>{if(i(t))return{};const e=t.branches||[],a=e.length<=1?e[0]||{}:e.find((e=>e.id===Number(t.branchId)))||{};return Object.assign(Object.assign({},t),{currency:t.currency||"AZN",language:t.language||"en",selectedBranch:a})}),[t]);return e(We.Provider,{value:n,children:a})},Ve=()=>F(We),Qe="digital_menu",qe=`${Qe}_category_select`,Fe=`${Qe}_category_scroll`,Ye=`${Qe}_product_details`,Ke=`${Qe}_product_add_cart`,Ze=`${Qe}_product_view_changed`,Xe=[qe,Fe,Ye,Ke],$e=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Je=new n("restaround_cst_act","restaround_cst_rft"),ea={994:e=>{const a=["50","51","10","55","99","70","77","60"];return new RegExp(`^(${a.join("|")})\\d{7}$`).test(e)?{isValid:!0}:{isValid:!1,error:`Azerbaijani numbers must be 9 digits and start with ${a.join(", ")}`}},31:e=>/^\d{9}$/.test(e)?{isValid:!0}:{isValid:!1,error:"Dutch numbers must be exactly 9 digits"}};function aa(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const a=e.replace(/\D/g,""),t=a.startsWith("994")?"994":a.startsWith("31")?"31":null;if(!t)return{isValid:!1,error:"Unsupported country code"};const i=a.slice(t.length);return(0,ea[t])(i)}var ta,ia,na,ra,oa;!function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(ta||(ta={})),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"}(ia||(ia={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(na||(na={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}(ra||(ra={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(oa||(oa={}));const la=(e,a,t)=>{if(!e)throw new Error("Product ID is required");let i=`${e}`;a&&(i+=`-${a}`);const n=Object.entries(t||{}).map((([e,a])=>{if(!e||!a)return null;const t=Array.isArray(a)?r(a).filter(Boolean).join("-"):`${a}`;return t?`${e}-${t}`:null})).filter(Boolean).join("-");return n&&(i+=`-${n}`),i},da=e=>{var a;const{price:t,variant:i,addons:n,quantity:r,vat:o}=e||{},l=null!==(a=null==i?void 0:i.price)&&void 0!==a?a:t,d=function(e=[],a=1){return a*e.reduce(((e,a)=>{const t=(e=>e.options.reduce(((e,a)=>e+a.price),0))(a);return e+t}),0)}(n,1),s=l+d,c=l*(o/100),u=s+c;return{totalGross:u*r,totalNet:s*r,totalTax:c*r,itemGrossPrice:u,itemNetPrice:s,itemTax:c}},sa={orderType:ta.DELIVERY,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:ra.CASH},ca=[oa.CART,oa.DETAILS,oa.COMPLETED],ua="https://api.restaround.co/api/v1",ma=(e,a,t)=>fe(void 0,void 0,void 0,(function*(){const{accessToken:i}=Je.getAuthToken(),n=`${ua}/${a}`,r=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:i},credentials:"include",body:JSON.stringify(t)}),o=yield r.json();if(!r.ok)throw o;return o})),ha=(e,a)=>ma("POST",e,a),ga=(e,a)=>ma("PATCH",e,a),va=e=>ma("GET",e),pa=e=>fe(void 0,void 0,void 0,(function*(){return ga("customer",e)})),_a=(...e)=>fe(void 0,[...e],void 0,(function*(e=null,a={}){try{return o("error",{message:null==e?void 0:e.message}),yield fetch(`${ua}/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)},a))})}catch(e){console.error(e)}})),ya=q({order:sa,orderStep:oa.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{}}),ba=({children:a})=>{const[t,n]=K({}),[r,o]=K(sa),[l,d]=K(oa.CART),[s,c]=K({}),[u,m]=K(!1),[h,g]=K(""),v=Z((e=>{o((a=>Object.assign(Object.assign({},a),e)))}),[]),p=Z((({product:e,quantity:a,variantId:t,selectedAddons:n,note:r,isAddOperation:o})=>{if(i(e)||a<0)return;const{id:l,vat:d=0,variants:s,addons:u,price:m}=e,h=la(l,t,n);c((e=>{const c=e[h],g=o?((null==c?void 0:c.quantity)||0)+a:a;if(g<=0){const a=e,t=h;a[t];return be(a,["symbol"==typeof t?t:t+""])}const v=s.find((({id:e})=>e===t)),p=((e=[],a={})=>Object.entries(a).map((([a,t])=>{const n=Number(a),r=Array.isArray(t)?t:[t],o=e.find((e=>e.id===n));if(i(o))return{addonId:n,options:[]};const l=(o.options||[]).filter((e=>r.includes(e.id))).map((e=>({optionId:e.id,price:e.price})));return{addonId:n,options:l}})))(u,n);return Object.assign(Object.assign({},e),{[h]:Object.assign(Object.assign({productId:l,quantity:g,price:m,note:r,vat:d},!i(v)&&{variant:{variantId:v.id,price:v.price}}),{addons:p})})}))}),[]),_=Z((({product:e,quantity:a=1,variantId:t,selectedAddons:i,note:n})=>p({product:e,quantity:a,variantId:t,selectedAddons:i,note:n,isAddOperation:!0})),[p]),y=Z((({product:e,quantity:a=1,variantId:t,selectedAddons:i,note:n})=>p({product:e,quantity:a,variantId:t,selectedAddons:i,note:n,isAddOperation:!1})),[p]),b=Z((e=>{if(!e||i(s))return;const a=Object.entries(s).reduce(((a,[t,i])=>(i.productId!==e&&(a[t]=i),a)),{});c(a)}),[s]),f=Z((()=>fe(void 0,void 0,void 0,(function*(){try{const{accessToken:e}=Je.getAuthToken();if(!e)return;const a=yield fe(void 0,void 0,void 0,(function*(){return va("customer")}));if(!(null==a?void 0:a.id))throw new Error("SOMETHING_WENT_WRONG");n(a)}catch(e){_a(e,{file:"src/store/order.tsx",method:"getCustomer"})}}))),[]),E=Z((()=>{m(!1),l===oa.COMPLETED&&(o(sa),c({}),d(oa.CART),g(""))}),[l]),I=Y((()=>({order:r,orderStep:l,orderItems:s,isOrderOpen:u,customer:t,trackingId:h,updateOrder:v,setOrderStep:d,addProduct:_,updateProduct:y,removeAllProductVariants:b,setIsOrderOpen:m,getCustomer:f,resetOrder:E,setTrackingId:g})),[r,l,s,u,t,h,v,_,y,b,f,E,g]);return e(ya.Provider,{value:I,children:a})},fa=()=>F(ya);var Ea="Header-module_container__tenlF",Ia="Header-module_cover__BAWZK",Sa="Header-module_content__Gx4Al",Pa="Header-module_logo__4MTCm",Aa="Header-module_info__IchYA",Ta="Header-module_name__30wyw",ka="Header-module_address__WOxXc",Oa="Header-module_addressText__lUszI",Ca="Header-module_social__AoP0z",Na="Header-module_links__EeQxg",Ra="Header-module_wifiPassword__VWBTa",Da="Header-module_wifiPasswordIcon__Ukn3D";const La=a=>{const{priority:t,blurDataURL:i,quality:n,placeholder:r,fetchPriority:o}=a,l=be(a,["priority","blurDataURL","quality","placeholder","fetchPriority"]),{imageTag:d}=Ve()||{};if(d){return e(d,Object.assign({},a,{quality:a.quality||100,placeholder:"blur",blurDataURL:(s=235,c=59,u=90,`data:image/gif;base64,R0lGODlhAQABAPAA${Re(0,s,c)+Re(u,255,255)}/yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==`)}))}var s,c,u;return e("img",Object.assign({},l))};var Ma={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"};const za=()=>{var t;const{language:i,languages:n,onLanguageSelect:r}=Ve(),[o,l]=K(!1),d=(null==n?void 0:n.length)>1,s=(null===(t=null==n?void 0:n.filter)||void 0===t?void 0:t.call(n,(({code:e})=>e!==i)))||[],c=e=>`https://images.restaround.co/languages/${e}.svg`;return d?e("div",{className:Ma.container,onClick:()=>l(!o),children:a(m,{alignItems:"center",gap:0,children:[e(m,{alignItems:"center",className:h(Ma,{options:!0,isOpen:o}),children:s.map((({code:a})=>e("img",{src:c(a),className:Ma.option,onClick:()=>(e=>{r&&r(e)})(a),alt:a},a)))}),e("img",{src:c(i),alt:i||"",className:Ma.currentLanguage})]})}):null},Ga=({branch:t,coverImage:n,logoImage:r,name:o,instagram:l,facebook:d,whatsapp:s,telegram:c,tiktok:u})=>{const{address:h,latitude:f,longitude:E,phone:I,wifiPassword:S}=t||{},P=i(t),A=`https://www.google.com/maps/place/${f},${E}`;return a("div",{className:Ea,children:[e(La,{src:n,alt:o,className:Ia,width:1024,height:400,priority:!0,sizes:"100vw",fetchPriority:"high",loading:"eager"}),e("div",{className:Sa,children:e(P?()=>a(_,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(La,{src:r,alt:o,className:Pa,width:96,height:96}),e("div",{className:Aa,children:e("h1",{className:Ta,children:o})})]}):()=>a(y,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(y.Item,{children:e(La,{src:r,alt:o,className:Pa,width:96,height:96})}),e(y.Item,{shrink:!0,className:Aa,children:a(_,{gap:.25,children:[e("h1",{className:Ta,children:o}),e("a",{className:ka,href:A,target:"_blank",rel:"noopener noreferrer",children:a(m,{alignItems:"center",gap:.5,children:[e(p,{icon:le,color:b.DEFAULT}),e("span",{className:Oa,children:h})]})})]})})]}),{})}),e(za,{}),!P&&e("div",{className:Ca,children:e("div",{className:Na,children:e(m,{gap:2,alignItems:"center",children:a(m,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!I&&e(g,{icon:ee,href:`tel:+${I}`,size:"sm",shape:"circle",theme:"light"}),!!s&&e(g,{icon:ae,href:`https://wa.me/${s}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!l&&e(g,{icon:te,href:l,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!c&&e(g,{icon:ie,href:c,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!u&&e(g,{icon:ne,href:u,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!d&&e(g,{icon:re,href:d,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!S&&e(v,{hint:S,children:e("div",{className:Ra,children:e(p,{icon:oe,size:"sm",className:Da})})})]})})})})]})},Ua=({categoryProductMap:a=[],language:t,selectedCategoryId:i,onSelectCategory:n})=>{const r=X({}),l=X(null),d=Z((()=>{var e;const a=null===(e=null==r?void 0:r.current)||void 0===e?void 0:e[i];if(!a||!l.current)return;const t=l.current.clientWidth,n=a.offsetLeft-t/2+a.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})}),[i]);return $((()=>{i&&d()}),[i,d]),e("div",{className:Pe,children:e(f,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(l.current=e.current)},children:(a||[]).map((({id:a,translations:l})=>{const{name:d}=l.find((e=>e.language===t))||{};return e(E,{children:e(I,{onClick:()=>((e,a)=>{e!==i&&(o(qe,{name:a}),n(e))})(a,d),type:b.BORDERED_PRIMARY,active:a===i,children:e("div",{ref:e=>{e&&(r.current[a]=e)},children:d})})},a)}))})})};var ja,wa="Products-module_container__bF2LF",xa="Products-module_view__l857X",Ba="Products-module_products__AoDrY",Wa="Products-module_category__Sp7dE",Ha="Products-module_list__LH4v5";!function(e){e.LIST="list",e.GRID="grid"}(ja||(ja={}));const Va=(e=0,a=1,t=0)=>e*a*(1+t/100);var Qa;!function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Qa||(Qa={}));const qa=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Fa=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Ya=(e,a)=>{var t;return(null===(t=((null==e?void 0:e.options)||[]).find((({id:e})=>e===a)))||void 0===t?void 0:t.price)||0},Ka=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Za=(e,a=1)=>{const{price:t=0,vat:i=0}=e||{};return Va(t,a,i)},Xa=(e,a,t,i=1)=>{const n=Za(e,i);return{totalPrice:n,formattedTotalPrice:l(n,a,t)}},$a=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.variants)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.id===a)))||{}},Ja=(e,a,t)=>{const i=$a(a,e),{vat:n}=a||{},{price:r}=i||{};return Va(r,t,n)},et=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},at=({product:e,variantId:a,quantity:t=1,selectedAddons:n,noVat:r=!1})=>{if(i(e))return{price:0,optionsPrice:0,total:0};const o=Object.assign(Object.assign({},e),{vat:r?0:e.vat}),l=((e,a={},t)=>((null==e?void 0:e.addons)||[]).filter((e=>Object.prototype.hasOwnProperty.call(a,e.id))).reduce(((e,t)=>{const{id:i,selectType:n}=t;if(n===Qa.SINGLE){const n=a[i];return e+Ya(t,n)}return e+(a[i]||[]).reduce(((e,a)=>e+Ya(t,a)),0)}),0)*t)(o,n,t),d=a?Ja(a,o,t):Za(o,t);return{price:d,optionsPrice:l,total:d+l}};var tt,it,nt,rt,ot,lt;!function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(tt||(tt={})),function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(it||(it={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(nt||(nt={})),function(e){e.ORDER="feature_order"}(rt||(rt={})),function(e){e.ALPHA="ALPHA",e.BETA="BETA",e.ALL="ALL"}(ot||(ot={})),function(e){e.APPETIZER="appetizer",e.MAIN_COURSE="mainCourse",e.CHEFS_SPECIAL="chefsSpecial"}(lt||(lt={}));var dt={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"},st={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ü bu müəssisə üçün 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."},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","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ə"},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",Baku:"Bakı",Ganja:"Gəncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi",Nakhchivan:"Naxçıvan"},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"}},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.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required."},common:{},order:{},customer:{},auth:{},events:{},pricing:{}},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:"Этот тип заказа недоступен для этого заведения.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен."},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ","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":"Отследить заказ"},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:"Азербайджан",Baku:"Баку",Ganja:"Гянджа",Sumgayit:"Сумгаит",Mingachevir:"Мингечевир",Shirvan:"Ширван",Naftalan:"Нафталан",Shaki:"Шеки",Lenkoran:"Лянкяран",Yevlakh:"Евлах",Shamkir:"Шамкир",Guba:"Губа",Gusar:"Гусар",Gabala:"Габала",Tartar:"Тертер",Aghjabadi:"Аджикабеди",Aghdam:"Агдам",Aghdash:"Агдаш",Astara:"Астара",Balakan:"Балакен",Barda:"Барда",Beylagan:"Бейляган",Bilasuvar:"Биласуар",Jalilabad:"ДжалилАбада",Dashkasan:"Дашкесен",Fuzuli:"Фузули",Gedebey:"Гедабей",Goranboy:"Горанбой",Goychay:"Гёйчай",Hajigabul:"Хаджигабуль",Imishli:"Имешли",Ismayilli:"Исмаиллы",Kurdamir:"Курдемир",Lerik:"Лерик",Masalli:"Масалли",Neftchala:"Нефтчала",Oghuz:"Огуз",Gakh:"Гах",Gazakh:"Газах",Gobustan:"Гобустан",Saatly:"Саатлы",Sabirabad:"Сабирабад",Salyan:"Сальян",Samukh:"Самух",Siyezen:"Сиезен",Shabran:"Шабран",Shamakhi:"Шамахи",Tovuz:"Товуз",Ujar:"Уджар",Khachmaz:"Хачмаз",Khizi:"Хызы",Khojaly:"Ходжалы",Khojavend:"Ходжавенд",Yardimli:"Ярдэмли",Zagatala:"Загатала",Zardab:"Зердаб",Zangilan:"Зенгилан",Shusha:"Шуша",Lachin:"Лачин",Kalbajar:"Калбаджар",Khankendi:"Ханкенди",Nakhchivan:"Нахчыван"},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":"Неограниченное количество языков"}},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.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur."},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","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"},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",Baku:"Bakü",Ganja:"Gence",Sumgayit:"Sumgayit",Mingachevir:"Mingeçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şeki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Guba",Gusar:"Qusar",Gabala:"Gabala",Tartar:"Tartar",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi",Nakhchivan:"Nahçıvan"},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"}},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.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht."},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","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":"In het restaurant",Pickup:"Afhalen",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"},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",Baku:"Baku",Ganja:"Gäncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi"},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"}},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.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik."},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","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"},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",Baku:"Baku",Ganja:"Gäncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi"},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"}}};const ct=(e="common",a)=>{const{language:t}=Ve(),i=(null==a?void 0:a.language)||t,{t:n}=((e,a)=>{try{const t=we.includes(e)?e:"en",i=st[t][a]||{};return{t:(e,a)=>{try{const t=i[e]||e;return a?Object.keys(a).reduce(((e,t)=>e.replace(`{{${t}}}`,a[t])),t):t}catch(a){return console.error(a),e}}}}catch(e){return console.error(e),{t:e=>e}}})(i,e);return{t:n}},ut=({product:t,currency:i,language:n,onClick:r})=>{var l,s;const{addProduct:c}=fa(),{image160:u,volume:h,available:g}=t||{},{name:v,description:p}=Y((()=>Ka(t,n)),[t,n]),{formattedTotalPrice:y}=Y((()=>Xa(t,i,n)),[t,i,n]),{t:f}=ct("order"),E=(null===(l=null==t?void 0:t.variants)||void 0===l?void 0:l.length)>0,I=(null===(s=null==t?void 0:t.addons)||void 0===s?void 0:s.length)>0,A=!!u;return a("div",{className:d(dt,{container:!0,isClickable:!!r,noImage:!A}),onClick:r,children:[a(m,{justifyContent:"space-between",gap:0,children:[e("div",{className:dt.info,children:a(_,{gap:.25,children:[e("h3",{className:dt.name,children:v}),e("p",{className:dt.description,children:p}),a(m,{className:dt.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:y}),!!h&&e(S,{color:"muted",children:h})]}),!g&&e(S,{size:"xs",color:"danger",className:dt.notAvailableText,children:f("Not available")})]})}),A&&e(La,{src:ke(u),alt:v||"menu",className:d(dt,{image:!0,notAvailable:!g}),loading:"lazy",width:160,height:90})]}),g&&e("div",{className:dt.addToOrder,children:e(P,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(E||I)&&r)return r();c({product:t}),o(Ke,{name:v,quantity:1})},icon:de,type:b.DEFAULT})})]})};var mt={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",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"};const ht=({product:t,currency:i,language:n,onClick:r})=>{var l,s;const{addProduct:c}=fa(),{volume:u,image580:h,image160:g,image1024:v,available:p}=t||{},y=h||v||g,{name:f,description:E}=Y((()=>Ka(t,n)),[t,n]),{formattedTotalPrice:I}=Y((()=>Xa(t,i,n)),[t,i,n]),{t:A}=ct("order"),T=(null===(l=null==t?void 0:t.variants)||void 0===l?void 0:l.length)>0,k=(null===(s=null==t?void 0:t.addons)||void 0===s?void 0:s.length)>0;return e("div",{className:mt.container,children:a("div",{className:d(mt,{content:!0,isClickable:!!r,noImage:!y}),onClick:r,children:[y&&e("div",{className:mt.imageContainer,children:e(La,{src:ke(y),alt:f||"menu",className:d(mt,{image:!0,notAvailable:!p}),loading:"lazy",width:580,height:326})}),e("div",{className:mt.info,children:e("div",{className:mt.data,children:a(_,{gap:.25,children:[e("h3",{className:mt.name,children:f}),e("p",{className:mt.description,children:E}),a(m,{className:mt.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:I}),!!u&&e(S,{color:"white",className:mt.volume,children:u})]}),!p&&e(S,{color:"white",size:"xs",className:mt.notAvailableText,children:A("Not available")})]})})}),p&&e("div",{className:mt.addToOrder,children:e(P,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(T||k)&&r)return r();c({product:t}),o(Ke,{name:f,quantity:1})},icon:de,type:b.DEFAULT})})]})})};var gt={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"};const vt=()=>{var e,a;const{customer:t}=fa();return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(a=null==t?void 0:t.addresses)||void 0===a?void 0:a.length)-1])||{}},pt={[ot.ALPHA]:[rt.ORDER],[ot.BETA]:[],[ot.ALL]:[]},_t=(e={})=>{const{selectedBranch:a,businessId:t}=Ve(),{order:i,orderItems:n}=fa(),{totalPriceWithTax:r,totalPriceWithoutTax:o,totalTax:l}=(()=>{const{orderItems:e}=fa();return Object.values(e||{}).reduce(((e,a)=>{const{totalGross:t,totalNet:i,totalTax:n}=da(a);return{totalPriceWithTax:e.totalPriceWithTax+t,totalPriceWithoutTax:e.totalPriceWithoutTax+i,totalTax:e.totalTax+n}}),{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0})})(),d=vt(),s=(()=>{const{customer:e}=fa();return null==e?void 0:e.id})(),{workingDayId:c,tableId:u,employeeId:m,orderType:h,paymentMethod:g,note:v,vat:p=0}=Object.assign(Object.assign({},i),e);return{branchId:null==a?void 0:a.id,businessId:t,workingDayId:c,tableId:u,customerId:s,customerAddressId:d.id,employeeId:m,orderType:h,totalPriceWithTax:r,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:p,paymentMethod:g,note:v}},yt=()=>{const{orderItems:e}=fa();return Object.values(e||{}).reduce(((e,a)=>e+a.quantity),0)},bt=()=>{const{businessSettings:e}=Ve();return!!(e=>{var a,t;const{businessSegment:i=ot.ALL}=Ve();return"1"===s(e)||(null===(t=null===(a=pt[i])||void 0===a?void 0:a.includes)||void 0===t?void 0:t.call(a,e))})(rt.ORDER)&&Object.values(e).some((e=>!!e))};var ft={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"};const Et=({isDecreaseDisabled:t=!1,quantity:i=1,size:n="md",onIncrease:r,onDecrease:o})=>a(m,{className:d(ft,{container:!0},[ft[n]]),justifyContent:"space-between",gap:0,children:[e("div",{className:d(ft,{quantityAction:!0,isDisabled:t}),onClick:o,children:e(p,{icon:se})}),e("div",{className:ft.quantityValue,children:i}),e("div",{className:ft.quantityAction,onClick:r,children:e(p,{icon:de})})]});var It="ProductInOrder-module_container__0N57G",St="ProductInOrder-module_title__TWjM9";const Pt=({productId:t,onModalClose:n})=>{const{removeAllProductVariants:r,setIsOrderOpen:o}=fa(),{t:l}=ct("order"),d=(e=>{const{orderItems:a}=fa();return i(a)||!e?0:Object.values(a).filter((a=>a.productId===e)).reduce(((e,a)=>e+a.quantity),0)})(t);return d<=0?null:a(y,{className:It,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[a(y.Item,{flex:1,className:St,children:[l("In order")," (",d,")"]}),e(y.Item,{flex:0,children:a(m,{children:[e(P,{icon:ce,onClick:()=>{r(t)},type:b.DANGER,tooltip:l("Remove from order")}),e(P,{icon:ue,onClick:()=>{o(!0),n&&n()},type:b.SUCCESS,tooltip:l("View order")})]})})]})};var At={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"};const Tt=({product:t,selectedVariant:i,focusedSection:n,onSelectVariant:r})=>{const{language:o,currency:s}=Ve(),{t:c}=ct("order"),u=X(null),{variants:h}=t||{},g="variant"===n;return $((()=>{g&&u.current&&u.current.scrollIntoView({behavior:"smooth"})}),[n,g]),a(_,{className:d(At,{container:!0,focused:g}),gap:1,fullWidth:!0,children:[e("div",{className:At.variantsTitle,ref:u,children:c("Product choices")}),(h||[]).map((n=>{const{id:d}=n||{},{formattedTotalPrice:c}=(({variantId:e,currency:a="USD",language:t="en",product:i,quantity:n=1})=>{const r=Ja(e,i,n);return{totalPrice:r,formattedTotalPrice:l(r,a,t)}})({variantId:d,language:o,currency:s,product:t}),{title:u}=et(n,o);return a(m,{justifyContent:"space-between",onClick:()=>r(d),className:At.variant,children:[e(A,{label:u,name:"variant",onChange:()=>r(d),checked:i===d,type:T.RADIO,size:"small",noMargin:!0}),e("div",{className:At.variantPrice,children:c})]},d)}))]})};var kt={container:"ProductAddons-module_container__DRnT7"};const Ot=({product:t,selectedAddons:i,onOptionSelect:n})=>{const{language:r,currency:o}=Ve(),{addons:d}=t||{};return e(_,{className:kt.container,gap:1.5,fullWidth:!0,children:(d||[]).map((t=>{const{id:d,options:s,selectType:c}=t||{},{title:u}=qa(t,r);return a(_,{children:[e(S,{variant:"bold",children:u}),e(_,{gap:1,fullWidth:!0,children:(s||[]).map((t=>{const{id:s}=t||{},{formattedTotalPrice:u}=(({option:e,currency:a="USD",language:t="en"})=>{const{price:i}=e||{};return{totalPrice:i,formattedTotalPrice:l(i,a,t)}})({option:t,language:r,currency:o}),{title:h}=Fa(t,r),g=c===Qa.SINGLE,v=g?i[d]===s:(i[d]||[]).includes(s);return a(m,{justifyContent:"space-between",className:kt.option,children:[e(A,{label:h,name:`option-${d}`,onChange:()=>n({addonId:d,optionId:s,isSingle:g,isRemove:!g&&v}),checked:v,type:g?T.RADIO:T.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:kt.optionPrice,children:u})]},s)}))})]},d)}))})},Ct=({product:t,onClose:n})=>{const{language:r,currency:d}=Ve(),{addProduct:s,updateProduct:c}=fa(),[u,h]=K(1),[g,v]=K(!1),[p,y]=K(null),[b,f]=K(null),[E,I]=K({}),S=X(null),{t:A}=ct("order"),T=(({productId:e,variantId:a,selectedAddons:t})=>{var n;const{orderItems:r}=fa();return i(r)||!e?0:(null===(n=r[la(e,a,t)])||void 0===n?void 0:n.quantity)||0})({productId:null==t?void 0:t.id,variantId:p,selectedAddons:E}),{name:C,description:N}=Y((()=>Ka(t,r)),[t,r]),{formattedTotalPrice:R}=Y((()=>Xa(t,d,r)),[t,d,r]),{formattedTotalPrice:D}=Y((()=>(({product:e,variantId:a,quantity:t=1,currency:i,language:n,selectedAddons:r,noVat:o=!1})=>{const{total:d}=at({product:e,variantId:a,quantity:t,selectedAddons:r,noVat:o});return{totalPrice:d,formattedTotalPrice:l(d,i,n)}})({product:t,quantity:u,language:r,currency:d,variantId:p,selectedAddons:E})),[t,u,r,d,p,E]),L=g?0===u:1===u,M=Y((()=>A(g?0===u?"Remove from order":"Update order":"Add to order")),[g,u]);$((()=>{h(T>0?T+1:1),v(T>0)}),[T,t]),$((()=>{y(null),I({})}),[t]);const z=e=>{-1===e&&L||h((a=>Math.max(0,a+e)))};if(i(t))return null;const{image1024:G,volume:U,variants:j,addons:w,available:x}=t,B=(null==j?void 0:j.length)>0,W=(null==w?void 0:w.length)>0;return e("div",{className:gt.container,onClick:e=>{var a,t;(null===(t=null===(a=null==S?void 0:S.current)||void 0===a?void 0:a.contains)||void 0===t?void 0:t.call(a,null==e?void 0:e.target))||n&&n()},children:e(k,{onClose:n,ref:S,noBodyPadding:!0,size:"small",content:a("div",{className:gt.content,children:[a(_,{gap:0,children:[G&&e(La,{src:ke(G),width:1024,height:400,alt:C||"product",className:gt.image}),a(_,{className:gt.details,gap:1,children:[e("h2",{className:gt.name,children:C}),a(m,{justifyContent:"space-between",children:[e("div",{className:gt.price,children:R}),e("div",{className:gt.volume,children:U})]}),e("div",{className:gt.description,children:N})]}),(B||W)&&a(_,{gap:0,className:gt.choices,children:[B&&e(Tt,{product:t,selectedVariant:p,focusedSection:b,onSelectVariant:y}),W&&e(Ot,{product:t,selectedAddons:E,onOptionSelect:({addonId:e,optionId:a,isSingle:t,isRemove:i=!1})=>{I((n=>{if(t)return Object.assign(Object.assign({},n),{[e]:a});const r=n[e]||[],o=i?r.filter((e=>e!==a)):[...new Set([...r,a])];return Object.assign(Object.assign({},n),{[e]:o})}))}})]})]}),e("div",{className:gt.close,children:e(P,{onClick:n,icon:me})})]}),footer:a(_,{children:[e(Pt,{productId:null==t?void 0:t.id,onModalClose:n}),a(m,{className:gt.addToOrder,gap:.5,children:[e(Et,{isDecreaseDisabled:L,onDecrease:()=>z(-1),onIncrease:()=>z(1),quantity:u}),e(O,{className:gt.addAction,label:x?a(m,{fullWidth:!0,justifyContent:"space-between",children:[e("span",{className:gt.actionTitle,children:M}),e("span",{children:D})]}):A("Not available"),onClick:()=>{var e;if((null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!p)return f("variant"),void setTimeout((()=>{f(null)}),200);g?c({product:t,quantity:u,variantId:p,selectedAddons:E}):(s({product:t,quantity:u,variantId:p,selectedAddons:E}),o(Ke,{name:C,quantity:u})),n&&n()},size:"xl",fullWidth:!0,disabled:!x})]})]})})})};var Nt="FloatingOrdersButton-module_container__RYr7V",Rt="FloatingOrdersButton-module_content__2X3P-",Dt={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",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"};const Lt=({actionText:t,isLoading:i=!1,onClick:n})=>{const r=yt(),{formattedTotalPrice:o}=(()=>{const{orderItems:e}=fa(),{currency:a,language:t}=Ve(),i=Object.values(e||{}).reduce(((e,a)=>{const{totalGross:t}=da(a);return e+t}),0);return{totalPrice:i,formattedTotalPrice:l(i,a,t)}})();return a(y,{className:d(Dt,{container:!0,isLoading:i,isClickable:!!n}),justifyContent:"space-between",alignItems:"center",onClick:i?null:n,children:[e(y.Item,{flex:1,children:a(m,{alignItems:"center",children:[e("div",{className:Dt.count,children:r}),e("div",{className:Dt.actionText,children:i?e(C,{}):t})]})}),e(y.Item,{className:Dt.totalPrice,flex:1,children:o})]})},Mt=()=>{const{setIsOrderOpen:a}=fa(),{t:t}=ct("order");return yt()<=0?null:e("div",{className:Nt,children:e("div",{className:Rt,children:e(Lt,{onClick:()=>a(!0),actionText:t("View order")})})})};var zt="OrderDrawer-module_container__DymQj",Gt="OrderDrawer-module_content__khduX",Ut="OrderDrawer-module_paymentMethods__9i-sb",jt="OrderDrawer-module_transactionDetails__xzWgY",wt="OrderDrawer-module_footer__8XfD9",xt="OrderDrawer-module_noteButton__M8BVx";const Bt=e=>{const a={},{countryCode:t,cityName:i,street:n,houseNumber:r}=e||{};return t||(a.countryCode="COUNTRY_REQUIRED"),i||(a.cityName="CITY_REQUIRED"),n||(a.street="STREET_REQUIRED"),r||(a.houseNumber="STREET_NUMBER_REQUIRED"),a},Wt=(e,a,t)=>[e,[a,t].filter(Boolean).join("/")].filter(Boolean).join(" "),Ht=({isOrderItemsEmpty:t=!1})=>{const{t:n}=ct("order"),{t:r}=ct("error"),{setIsOrderOpen:o,setTrackingId:l}=fa(),{setModal:d}=N(),{order:s,orderStep:c,orderItems:u,setOrderStep:m}=fa(),h=bt(),g=(()=>{const{customer:e}=fa();return e||{}})(),v=_t(),[p,y]=K(!1),[f,E]=K(""),I=null==s?void 0:s.note,P=!!I,A=h&&c===oa.CART,T=()=>fe(void 0,void 0,void 0,(function*(){try{E(""),y(!0);const e=yield(e=>fe(void 0,void 0,void 0,(function*(){return ha("customer/order",e)})))(v);return e.trackingId}catch(e){return E((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{y(!1)}}));return a(_,{className:wt,fullWidth:!0,children:[!!f&&e(R,{message:r(f),type:"error",onClear:()=>E("")}),A&&e(O,{label:P?e(S,{children:s.note}):a(_,{gap:0,children:[e(S,{children:n("Add an order note")}),e(S,{size:"sm",color:"muted",children:n("Special instructions, allergies, etc.")})]}),onClick:()=>{d({id:Ge,params:{note:I}})},size:"xxxl",fullWidth:!0,type:b.LIGHT,className:xt,icon:P?he:de,iconSize:"md"}),t?e(O,{label:n("Add items"),onClick:()=>o(!1),type:b.PRIMARY,size:"xl",fullWidth:!0}):c!==oa.COMPLETED?e(Lt,{actionText:n((()=>{if(!h)return"Subtotal";switch(c){case oa.CART:return"Go to checkout";case oa.DETAILS:return"Place order";default:return"Continue"}})()),onClick:h?()=>fe(void 0,void 0,void 0,(function*(){if(i(g))return d({id:Ue});if(c===oa.DETAILS){if(s.orderType===ta.DELIVERY&&i(null==g?void 0:g.addresses))return;if(i(u))return;const e=yield T();if(!e)return;l(e)}const e=(ca.findIndex((e=>e===c))||0)+1;if(e>=ca.length)return;const a=ca[e];m(a)})):null,isLoading:p}):null]})};var Vt={},Qt="OrderListItem-module_container__Tj4RI",qt="OrderListItem-module_image__o3PIC",Ft="OrderListItem-module_data__BLzxw",Yt="OrderListItem-module_name__QEzuZ",Kt="OrderListItem-module_price__-V2qL";const Zt=e=>{var a;const{products:t}=Ve();return(null===(a=null==t?void 0:t.find)||void 0===a?void 0:a.call(t,(({id:a})=>a===e)))||{}};var Xt="ProductQuantity-module_quantity__PzTpj";const $t=({productId:a,variantId:t,min:i=1,size:n="md",selectedAddons:r,isDisabled:o=!1})=>{const l=(({productId:e,variantId:a,selectedAddons:t})=>{const{orderItems:i}=fa(),n=i[la(e,a,t)];return(null==n?void 0:n.quantity)||1})({productId:a,variantId:t,selectedAddons:r}),d=Zt(a),{updateProduct:s}=fa(),c=l===i;return o?e("div",{className:Xt,children:l}):e(Et,{isDecreaseDisabled:c,onDecrease:()=>s({product:d,quantity:l-1,variantId:t,selectedAddons:r}),onIncrease:()=>s({product:d,quantity:l+1,variantId:t,selectedAddons:r}),quantity:l,size:n})},Jt=({item:n,product:r,language:o})=>e(t,{children:(n.addons||[]).map((({addonId:e,options:t})=>{var n;const l=((e,a)=>((null==e?void 0:e.addons)||[]).find((({id:e})=>e===a))||{})(r,e),d=((null==l?void 0:l.options)||[]).filter((e=>null==t?void 0:t.some((({optionId:a})=>a===e.id))));if(i(l)||i(d))return null;const s=null===(n=qa(l,o))||void 0===n?void 0:n.title,c=d.map((e=>{var a;return null===(a=Fa(e,o))||void 0===a?void 0:a.title})).filter(Boolean).join(", ");return s&&c?a(S,{color:"muted",size:"xs",children:[s,": ",c]},e):null}))}),ei=({item:t,isDisabled:i=!1})=>{var n;const{productId:r}=t||{},o=null===(n=null==t?void 0:t.variant)||void 0===n?void 0:n.variantId,d=(e=>{const a={};for(const{addonId:t,options:i=[]}of e.addons||[]){const e=i.map((({optionId:e})=>e));a[t]=1===e.length?e[0]:e}return a})(t),s=Zt(r),c=$a(s,o),{language:u}=Ve(),{image160:h}=s,{title:g}=et(c,u),{name:v}=Y((()=>Ka(s,u)),[s,u]),{formattedTotalPrice:p}=(e=>{const{language:a,currency:t}=Ve(),{totalGross:i}=da(e);return{totalPrice:i,formattedTotalPrice:l(i,t,a)}})(t);return a(m,{className:Qt,gap:1,alignItems:"flex-start",children:[h&&e(La,{src:ke(h),alt:v||"menu",className:qt,loading:"lazy",width:80,height:45}),a("div",{className:Ft,children:[e("div",{className:Yt,children:v}),a(_,{gap:0,children:[!!g&&e(S,{color:"muted",size:"xs",children:g}),e(Jt,{item:t,product:s,language:u})]}),e("div",{className:Kt,children:p})]}),e($t,{productId:r,variantId:o,selectedAddons:d,size:"sm",min:0,isDisabled:i})]})},ai=()=>{const{t:t}=ct("order");return a(_,{className:Vt.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(S,{variant:"h2",children:t("Empty order")}),e(D,{text:t("You don't have any items in your order")})]})},ti=({isDisabled:a=!1})=>{const{orderItems:t}=fa(),n=i(t);return e("div",{className:Vt.container,children:n?e(ai,{}):e("div",{className:Vt.items,children:Object.entries(t||{}).map((([t,i])=>e(ei,{item:i,isDisabled:a},t)))})})},ii=()=>e("div",{className:Gt,children:e(ti,{})});var ni="CustomerAddress-module_container__TGYRV";const ri=()=>{const n=vt(),{setModal:r}=N(),{t:o}=ct("customer"),{additionalNumber:l,street:d,houseNumber:s,cityName:c,countryCode:u}=n,h=Wt(d,s,l),g=([c,u]||[]).filter(Boolean).join(", ");return e("div",{className:ni,onClick:()=>{r({id:je})},children:a(m,{fullWidth:!0,alignItems:"center",children:[e(p,{icon:le,size:"md"}),e(_,{gap:0,fullWidth:!0,children:i(n)?e((()=>e(S,{color:b.DANGER,children:o("No address available")})),{}):e((()=>a(t,{children:[e(S,{children:h||o("Unknown address")}),g&&e(S,{size:"sm",color:"muted",children:g})]})),{})}),e(p,{icon:he,size:"sm"})]})})},oi=()=>{const{language:t,currency:i,businessSettings:n}=Ve(),{order:{orderType:r,paymentMethod:o},updateOrder:d}=fa(),{totalPriceWithTax:s,totalPriceWithoutTax:c,totalTax:u}=_t(),{t:h}=ct("order"),{t:g}=ct("error"),y=[{type:ta.DELIVERY,icon:ge,title:h("Delivery"),isDisabled:!(null==n?void 0:n.deliveryOrderEnabled)},{type:ta.DINE_IN,icon:ve,title:h("Dine in"),isDisabled:!(null==n?void 0:n.dineInOrderEnabled)},{type:ta.PICK_UP,icon:ue,title:h("Pickup"),isDisabled:!(null==n?void 0:n.pickupOrderEnabled)}],b=[{value:ra.CASH,label:h("Cash")},{value:ra.TERMINAL,label:h("POS Terminal")}],f=y.map((({type:t,icon:i,title:n,isDisabled:o})=>({value:t,isDisabled:o,label:e(v,{hint:o?g("ORDER_TYPE_DISABLED_FOR_BUSINESS"):null,children:a(m,{gap:.5,flexWrap:"nowrap",children:[e(p,{icon:i}),e(S,{color:t!==r||o?"normal":"white",whiteSpace:"nowrap",children:n})]})})}))),E="sm",I=l(c,i,t),P=l(s,i,t),k=l(u,i,t);return a(_,{className:Gt,gap:2,children:[e(L,{methods:f,onSelect:e=>d({orderType:e}),selectedMethod:r,fullWidth:!0}),r===ta.DELIVERY&&e(ri,{}),e(m,{className:Ut,children:b.map((({label:a,value:t})=>e(A,{label:a,name:"paymentMethod",onChange:()=>d({paymentMethod:t}),checked:o===t,type:T.RADIO,size:"small",noMargin:!0},t)))}),e(M,{title:h("Order summary"),content:e(ti,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1}),a(_,{className:jt,children:[a(m,{justifyContent:"space-between",children:[e(S,{size:E,children:h("Items")}),e(S,{size:E,children:I})]}),a(m,{justifyContent:"space-between",children:[e(S,{size:E,children:h("Tax")}),e(S,{size:E,children:k})]}),a(m,{justifyContent:"space-between",children:[e(S,{size:E,color:"bold",children:h("Total")}),e(S,{size:E,color:"bold",children:P})]})]})]})},li=()=>{const{t:t}=ct("order"),{trackingId:i}=fa(),{hostname:n,language:r}=Ve();return a(_,{className:Gt,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(p,{icon:pe,size:"xxl",color:b.SUCCESS}),e(z,{paddingInline:2,children:e(S,{variant:"h1",align:"center",children:t("Your Order is Completed!")})}),e(z,{paddingInline:2,children:e(S,{align:"center",children:t("Thank you! We've received your order and it will be delivered shortly.")})}),e(z,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(G,{href:`https://${n}/${r}/order/${i}`,title:t("Track order"),type:b.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},di=()=>{const{isOrderOpen:a,orderItems:t}=fa(),{orderStep:n,setOrderStep:r,resetOrder:o}=fa(),l=X(null),{t:d}=ct("order"),s=bt()&&n===oa.CART,c=i(t),u=()=>{o()};return a?e("div",{className:zt,onClick:e=>{var a,t;(null===(t=null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.contains)||void 0===t?void 0:t.call(a,null==e?void 0:e.target))||u()},children:e(U,{ref:l,onClose:u,isOpen:a,title:d("Your order"),onBack:n===oa.CART?void 0:()=>{r(oa.CART)},content:(()=>{switch(n){case oa.DETAILS:return e(oi,{});case oa.COMPLETED:return e(li,{});default:return e(ii,{})}})(),footer:e(Ht,{isOrderItemsEmpty:c}),hasLargeFooter:s})}):null},si=J((({categoryProductMap:t=[],currency:i,language:n,productBlocksRef:r,containerRef:l,onCategoryInView:d})=>{const[s,c]=K(null),[u,h]=K(ja.LIST),g=[{icon:_e,type:ja.LIST},{icon:ve,type:ja.GRID}],v=e=>{const{name:a}=Ka(e,n);o(Ye,{name:a}),c(e)};return $((()=>{const e=new IntersectionObserver((e=>{var a;const t=((null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.clientHeight)||1e3)/2;let i=null,n=1/0;e.forEach((e=>{if(e.isIntersecting){const a=e.boundingClientRect,r=a.top+a.height/2,o=Math.abs(r-t);o<n&&(n=o,i=e.target.getAttribute("data-category-id"))}})),i&&d(Number(i))}),{threshold:.1});return Object.entries(r.current||{}).forEach((([a,t])=>{t&&(t.setAttribute("data-category-id",a),e.observe(t))})),()=>{e.disconnect()}}),[r,l,d]),a("div",{className:wa,children:[e(m,{className:xa,alignItems:"center",children:g.map((({icon:a,type:t})=>e(P,{icon:a,onClick:()=>(e=>{h(e),o(Ze,{name:e})})(t),type:t===u?b.PRIMARY:b.DEFAULT},t)))}),e(_,{children:(t||[]).map((t=>{const{name:o}=$e(t,n),{id:l,products:d}=t;return a("div",{className:Ba,ref:e=>{e&&(r.current[l]=e)},"data-category-id":l,children:[e("h2",{className:Wa,children:o}),e("div",{className:Ha,children:e(_,{gap:0,children:(d||[]).map((a=>u===ja.GRID?e(ht,{product:a,currency:i,language:n,onClick:()=>v(a)},a.id):e(ut,{product:a,currency:i,language:n,onClick:()=>v(a)},a.id)))})})]},l)}))}),e(Ct,{product:s,onClose:()=>c(null)}),e(Mt,{}),e(di,{})]})}),((e,a)=>e.categoryProductMap===a.categoryProductMap&&e.currency===a.currency&&e.language===a.language));si.displayName="Products";var ci="Branches-module_branches__sOuoV",ui="Branches-module_list__vYoT2",mi="Branches-module_name__K0Z-4";const hi=({branches:a=[],rootPath:t="",onBranchSelect:i})=>{const n=({children:a,id:n})=>i?e("div",{onClick:()=>i(n),children:a}):e("a",{href:`${t}/${n}`,children:a});return e("div",{className:ci,children:e(j,{className:ui,children:a.map((({id:a,name:t})=>e(n,{id:a,children:e(w,{noBottomMargin:!0,children:e(y,{justifyContent:"center",alignItems:"center",fullHeight:!0,children:e("h2",{className:mi,children:t})})})},a)))})})};var gi={};var vi={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const pi=({formErrors:t,onChange:i})=>{const n=xe.map((({phoneCode:e})=>({label:e,value:e}))),{hostname:r,language:o}=Ve(),{t:l}=ct("auth"),{t:d}=ct("error"),[s,c]=K({countryCode:n[0].value,phoneNumber:""}),{url:h}=Me(r,o),g=e=>{var a;const{name:t,value:n}=(null==e?void 0:e.target)||{};if(!t)return;const r=null!==(a=null==n?void 0:n.trim())&&void 0!==a?a:"";if("phoneNumber"===t&&!u(Number(r)))return;const o=Object.assign(Object.assign({},s),{[t]:r}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);i(l),c(o)};return a(_,{gap:1,fullWidth:!0,children:[a(m,{fullWidth:!0,alignItems:"flex-start",children:[e(A,{name:"countryCode",options:n,type:T.SELECT,className:vi.countryCode,value:s.countryCode,onChange:g}),e(A,{name:"phoneNumber",placeholder:l("Phone number"),type:T.TEL,fullWidth:!0,value:s.phoneNumber,onChange:g,errorMessage:d(t.phoneNumber)})]}),e("div",{className:vi.terms,children:a("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${h}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${h}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})},_i=({address:t,formErrors:i,onChange:n})=>{const{t:r}=ct("auth"),{t:o}=ct("error");return a(_,{gap:2,children:[e(S,{fullWidth:!0,align:"center",color:"muted",children:r("We sent a confirmation code to {{address}}",{address:t})}),e(x,{onChangeOTP:n,errorMessage:o(i.otp)})]})},yi=({formErrors:t,onChange:i,onCancel:n})=>{var r;const{customer:o}=fa(),[l,d]=K((null==o?void 0:o.email)||""),{t:s}=ct("auth"),{t:c}=ct("error"),u=null!==(r=null==o?void 0:o.email)&&void 0!==r?r:"";return $((()=>{u&&d(u)}),[u]),a(_,{className:vi.container,alignItems:"center",gap:0,children:[e(A,{name:"email",placeholder:"Email",type:T.EMAIL,fullWidth:!0,value:l,onChange:e=>{var a;const t=(null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value)||"";d(t),i(t)},errorMessage:c(t.email)}),!l&&e(O,{onClick:n,label:s("I don't have an email"),type:b.DEFAULT})]})};var bi={},fi="AddressAutocomplete-module_container__05nzV",Ei="AddressAutocomplete-module_suggestions__9-5Y2";const Ii=e=>{const a={};return(e||[]).forEach((e=>{e.types.includes("street_number")?a.houseNumber=e.longText:e.types.includes("route")?a.street=e.longText:e.types.includes("locality")||e.types.includes("postal_town")?a.cityName=e.longText:e.types.includes("country")?a.countryCode=e.shortText:e.types.includes("postal_code")&&(a.postCode=e.longText)})),a},Si=J((({placeHolder:t,inputLabel:i,language:n="en",origin:r,noMargin:o=!1,defaultAdressText:l="",onSelect:d})=>{const[s,c]=K(l),[u,m]=K([]),[h,g]=K(!0),v=X(l),p=Z((()=>fe(void 0,void 0,void 0,(function*(){try{const{AutocompleteSessionToken:e,AutocompleteSuggestion:a}=yield google.maps.importLibrary("places"),t=new e,i={input:s,origin:r,language:n,sessionToken:t},{suggestions:o}=yield a.fetchAutocompleteSuggestions(i),l=yield(e=>fe(void 0,void 0,void 0,(function*(){var a,t,i,n,r,o,l,d,s;const c=[];try{for(a=!0,t=Ie(e);!(n=(i=yield t.next()).done);a=!0){l=i.value,a=!1;const e=l.placePrediction,t=e.toPlace();yield t.fetchFields({fields:["location","addressComponents"]});const n=Ii(t.addressComponents);c.push(Object.assign(Object.assign({},n),{text:e.text.toString(),title:e.mainText.text.toString(),subtitle:null===(s=null===(d=e.secondaryText)||void 0===d?void 0:d.text)||void 0===s?void 0:s.toString(),long:t.location.lng(),lat:t.location.lat(),placeId:e.placeId.toString(),distanceMeters:e.distanceMeters}))}}catch(e){r={error:e}}finally{try{a||n||!(o=t.return)||(yield o.call(t))}finally{if(r)throw r.error}}return c})))(o);m(l)}catch(e){console.error(e),m([])}}))),[s,n,r]);$((()=>{var e,a,t;if(!(null==s?void 0:s.trim())||!(null===(t=null===(a=null===(e=window.google)||void 0===e?void 0:e.maps)||void 0===a?void 0:a.places)||void 0===t?void 0:t.AutocompleteSuggestion)||v.current===s)return;const i=setTimeout((()=>{v.current=s,p()}),300);return()=>clearTimeout(i)}),[p,s]);return a("div",{className:fi,children:[e(A,{value:s,onChange:e=>{var a;const t=null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value;g(!0),c(t)},placeholder:t||"Enter address",label:i,fullWidth:!0,noMargin:o}),u.length>0&&h&&e(_,{fullWidth:!0,gap:0,className:Ei,children:u.map((a=>{const{title:t,subtitle:i,placeId:n}=a;return e(B,{onClick:()=>(e=>{c(e.text),m([]),g(!1),d(e)})(a),title:t,subtitle:i,isFullWidth:!0,icon:ye},n)}))})]})}),((e,a)=>e.defaultAdressText===a.defaultAdressText&&e.inputLabel===a.inputLabel&&e.language===a.language&&e.noMargin===a.noMargin&&e.onSelect===a.onSelect&&e.origin===a.origin&&e.placeHolder===a.placeHolder));Si.displayName="AddressAutocomplete";const Pi={[Ge]:({params:t})=>{const{modalRef:i,note:n}=t,[r,o]=K(n||""),{setModal:l}=N(),{updateOrder:d}=fa(),{t:s}=ct("order"),{t:c}=ct("common");return e(k,{ref:i,header:e("div",{children:s("Add an order note")}),content:e("div",{className:gi.container,children:e(A,{type:T.TEXT_AREA,placeholder:s("Specify any allergies, special requests, or ingredients you want to add or remove"),value:r,onChange:e=>{var a;return o(null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value)}})}),footer:a(m,{justifyContent:"flex-end",children:[e(O,{label:c("Cancel"),onClick:()=>l(null),type:b.DEFAULT,size:"md"}),e(O,{label:c("Save"),onClick:()=>{d({note:r}),l(null)},size:"md"})]})})},[Ue]:({params:t})=>{const[n,r]=K({phoneNumber:"",otp:"",email:""}),[o,l]=K({}),[d,s]=K(""),{t:u}=ct("auth"),{t:m}=ct("error"),{t:h}=ct("common"),[g,v]=K(it.PHONE),{setModal:p}=N(),{setOrderStep:y,getCustomer:b,customer:f}=fa(),E=[it.PHONE,it.OTP,it.EMAIL],{modalRef:I}=t,S=()=>{y(oa.DETAILS),p(null)},P=()=>{const e=(E.findIndex((e=>e===g))||0)+1;if(e>=E.length)return S();const a=E[e];v(a)},A=Z((e=>a=>{r((t=>Object.assign(Object.assign({},t),{[e]:a})))}),[]);return e(k,{ref:I,title:u("Create an account or log in"),onClose:()=>{p(null)},content:a(_,{className:vi.content,fullWidth:!0,children:[!!d&&e(R,{message:m(d),type:"error",onClear:()=>s(""),inline:!0}),(()=>{switch(g){case it.OTP:return e(_i,{address:n.phoneNumber,onChange:A("otp"),formErrors:o});case it.EMAIL:return e(yi,{onChange:A("email"),onCancel:S,formErrors:o});default:return e(pi,{onChange:A("phoneNumber"),formErrors:o})}})()]}),footer:e(O,{label:h("Continue"),onClick:()=>fe(void 0,void 0,void 0,(function*(){s("");try{const a=g===it.EMAIL,t=(null==f?void 0:f.email)===n.email,r=!!(null==f?void 0:f.email)&&!n.email;if(a&&(t||r))return P();const o=((e,a)=>{const t={},{phoneNumber:i,email:n,otp:r}=e||{};switch(a){case it.PHONE:{const{isValid:e,error:a}=aa(i);e||(t.phoneNumber=a);break}case it.OTP:{const{isValid:e,error:a}=aa(i);e||(t.phoneNumber=a),r&&6===r.length||(t.otp="Invalid OTP");break}case it.EMAIL:n&&c(n)||(t.email="Invalid Email Address")}return t})(n,g);if(!i(o))return l(o);switch(l({}),g){case it.PHONE:{const a=yield(e=n.phoneNumber,fe(void 0,void 0,void 0,(function*(){return ha("customer",{phoneNumber:e})})));if(200!==(null==a?void 0:a.status))throw new Error("SOMETHING_WRONG");break}case it.OTP:{const e=yield((e,a)=>fe(void 0,void 0,void 0,(function*(){return ha("otp/verify",{otp:e,phoneNumber:a})})))(n.otp,n.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Je.saveAuthToken(e);break}case it.EMAIL:{const e=yield pa({email:n.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield b(),P()}catch(e){s((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:n})}var e})),size:"lg",fullWidth:!0})})},[je]:({params:t})=>{const n=xe[0].code,r=Be[n][0],{getCustomer:o}=fa(),{language:l,selectedBranch:d}=Ve(),{id:s,countryCode:c=n,cityName:u=r,street:m="",houseNumber:h="",floor:g,additionalNumber:v="",instructions:p="",longitude:f,latitude:E,postCode:I}=vt(),P={addressId:s,countryCode:c,cityName:u,street:m,houseNumber:h,additionalNumber:v,instructions:p,floor:g,latitude:E,longitude:f,postCode:I},{modalRef:C}=t,{t:D}=ct("customer"),{t:L}=ct("error"),{t:M}=ct("common"),{setModal:z}=N(),[G,U]=K(P),[j,w]=K({}),[x,B]=K(""),[W,H]=K(!1),V=j.countryCode||j.cityName||j.street||j.houseNumber,Q=Wt(P.street,P.houseNumber,void 0),q=e=>{var a,t;const i=null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.name,n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value;U((e=>Object.assign(Object.assign({},e),{[i]:n})))},F=()=>z(null),Y=Z((e=>{const a=Object.assign(Object.assign({},G),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber,latitude:e.lat,longitude:e.long,postCode:e.postCode}),t=Bt(a);U(a),w(t)}),[G]);return e(k,{ref:C,title:D("Update Delivery Address"),onClose:F,content:e("div",{className:bi.content,children:a(_,{fullWidth:!0,children:[!!x&&e(R,{message:L(x),type:"error",onClear:()=>B(""),inline:!0}),a(_,{fullWidth:!0,gap:.5,children:[e(Si,{onSelect:Y,language:l,origin:{lat:null==d?void 0:d.latitude,lng:null==d?void 0:d.longitude},noMargin:!0,defaultAdressText:Q}),V&&e(S,{color:b.DANGER,children:L(V)})]}),a(y,{gap:1,children:[e(y.Item,{flex:6,children:e(A,{name:"floor",label:D("Floor"),placeholder:"7",type:T.TEXT,value:G.floor,onChange:q,errorMessage:L(j.floor)})}),e(y.Item,{flex:6,children:e(A,{name:"additionalNumber",label:D("Additional number"),placeholder:"17",type:T.TEXT,value:G.additionalNumber,onChange:q,errorMessage:L(j.additionalNumber)})})]}),e(A,{name:"instructions",placeholder:D("Example: Door code is 555"),label:D("Delivery Instructions"),type:T.TEXT,fullWidth:!0,value:G.instructions,onChange:q,errorMessage:L(j.instructions)})]})}),footer:e(O,{label:M("Save"),onClick:()=>fe(void 0,void 0,void 0,(function*(){B("");try{const e=Bt(G);if(!i(e))return w(e);w({}),H(!0);const a=yield pa({address:G});if(200!==(null==a?void 0:a.status))throw new Error("SOMETHING_WRONG");o(),F()}catch(e){B((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:G})}finally{H(!1)}})),size:"lg",fullWidth:!0,isLoading:W})})}},Ai=()=>{var n;const{getCustomer:r}=fa(),{name:l,coverImage:d,logoImage:s,branches:c=[],branchId:u,selectedBranch:m,language:h,categories:g,products:v,currency:p,instagram:_,facebook:y,whatsapp:b,telegram:f,tiktok:E,rootPath:I,hostname:S,onBranchSelect:P}=Ve(),A=c.length<=1,T=((e,a)=>{const t=a.reduce(((e,a)=>{if(!a.visible)return e;const t=Number(a.categoryId);return e[t]||(e[t]=[]),e[t].push(a),e}),{});return e.map((e=>Object.assign(Object.assign({},e),{products:t[Number(e.id)]||[]}))).filter((e=>{var a;return(null===(a=null==e?void 0:e.products)||void 0===a?void 0:a.length)>0}))})(g,v),k=A||!(null==m?void 0:m.name)?l:(null==m?void 0:m.name)||"",[O,C]=K(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.id),N=X({}),R=X(null),D=X(!0),{url:L,domain:M}=Me(S,h),z=Z((e=>fe(void 0,void 0,void 0,(function*(){D.current=!1,C(e),(e=>{var a;const t=null===(a=null==N?void 0:N.current)||void 0===a?void 0:a[e];t&&(setTimeout((()=>{t.scrollIntoView({behavior:"smooth",block:"start"})}),100),setTimeout((()=>{D.current=!0}),1e3))})(e)}))),[]),G=Z((e=>{if(!(null==D?void 0:D.current))return;const a=((e,a,t)=>{var n;const r=null===(n=null==a?void 0:a.find)||void 0===n?void 0:n.call(a,(({id:a})=>a===e));if(i(r))return"";const{name:o}=$e(r,t);return o})(e,g,h);o(Fe,{name:a}),C(e)}),[g,h]),U=Z((()=>{if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),a=Number(e.get("category"));if(!a)return;const t=(g||[]).find((({id:e})=>e===a));i(t)||z(a)}),[g,z]);return $((()=>{U()}),[U]),$((()=>{r()}),[r]),a("div",{className:Se,ref:R,children:[e(Ga,{branch:m,name:k,coverImage:Ce(d),logoImage:Oe(s),instagram:_,facebook:y,whatsapp:b,telegram:f,tiktok:E}),A||u?a(t,{children:[e(Ua,{categoryProductMap:T,language:h,selectedCategoryId:O,onSelectCategory:z}),e(si,{currency:p,language:h,productBlocksRef:N,containerRef:R,categoryProductMap:T,onCategoryInView:G})]}):e(hi,{branches:c,onBranchSelect:P,rootPath:I}),!!S&&e("a",{rel:"noopener noreferrer",target:"_blank",href:L,className:Ae,children:M})]})},Ti=({data:a})=>e(He,{value:a,children:e(ba,{children:e(W,{modalsMap:Pi,children:e(Ai,{})})})});var ki={};const Oi=({currentGoal:a,language:t,setGoal:i})=>{const{t:n}=ct("events",{language:t}),r=X({}),o=e=>{switch(e){case Fe:return n("Scrolled to Category");case qe:return n("Category Selected");case Ye:return n("Product Details");case Ke:return n("Product Added to Order");default:return""}},l=Z((e=>{var a,t;i(e),null===(t=null===(a=null==r?void 0:r.current)||void 0===a?void 0:a.close)||void 0===t||t.call(a)}),[i]);return e(H,{action:o(a),actionSize:"large",type:b.BORDERED_PRIMARY,closeRef:r,menu:e("div",{className:ki.toolbarMenu,children:Xe.map((a=>e(V,{onClick:()=>l(a),children:o(a)},a)))})})},Ci=({data:a,isLoading:t=!1,language:i,goal:n,setGoal:r})=>{const{t:o}=ct("events",{language:i});return e(w,{title:o("Events"),toolbar:e(Oi,{language:i,currentGoal:n,setGoal:r}),children:t?e(C,{}):e(Q,{data:a})})};var Ni={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",benefit:"Pricing-module_benefit__-oBt1",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"};const Ri={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}}},Di=[{title:"Smart QR Menu",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Link-in-bio",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Menu Analytics",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Unlimited Users",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Unlimited Products",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Unlimited Categories",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Unlimited Languages",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Product variants",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Product options",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"24/7 Support",[lt.APPETIZER]:!0,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Sales reports",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Multiple Branches",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Table Management",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Order Management",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Delivery Management",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!0,[lt.CHEFS_SPECIAL]:!0},{title:"Mobile App for Owners & Staff",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!1,[lt.CHEFS_SPECIAL]:!0},{title:"Point of Sale (POS)",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!1,[lt.CHEFS_SPECIAL]:!0},{title:"Third-Party Delivery Integrations",[lt.APPETIZER]:!1,[lt.MAIN_COURSE]:!1,[lt.CHEFS_SPECIAL]:!0}],Li=({plan:t,language:i,interval:n,currency:r})=>{const{t:o}=ct("pricing",{language:i}),{price:d,discountedPrice:s}=Ri[t],c=d[n];return void 0!==s?a(_,{gap:0,children:[a(m,{children:[e("span",{className:Ni.discountedPrice,children:l(s,r,i)}),e("span",{className:Ni.originalPrice,children:l(c,r,i)})]}),e(S,{size:"sm",children:o("/ month")})]}):a(m,{gap:.5,children:[e(S,{size:"xxl",variant:"bold",children:l(c,r,i)}),e(S,{size:"sm",children:o("/ month")})]})},Mi=({currency:t,language:i,isLoading:n=!1,onPlanSelect:r,onIntervalSelect:o})=>{const[l,s]=K("annually"),{t:c}=ct("pricing",{language:i}),u=[lt.APPETIZER,lt.MAIN_COURSE],m=r?"Choose Plan":"Get Started",h=({children:a,plan:t})=>r?e("div",{className:Ni.plan,onClick:()=>{n||r(t)},children:a}):e("a",{className:Ni.plan,href:ze(i,`pricing-${t}`),target:"_blank",rel:"noreferrer noopener",children:a});return a("div",{className:Ni.container,children:[e("div",{className:Ni.intervals,children:["annually","monthly"].map((a=>e("div",{className:d(Ni,{interval:!0,active:l===a}),onClick:()=>(e=>{s(e),o&&o(e)})(a),children:c(a)},a)))}),e("div",{className:Ni.plans,children:u.map((r=>e(h,{plan:r,children:a(w,{children:[e("div",{className:Ni.title,children:c(Ri[r].title)}),e("div",{className:Ni.price,children:e(Li,{plan:r,language:i,interval:l,currency:t})}),e("div",{className:Ni.action,children:e(O,{label:c(m),fullWidth:!0,size:"xl",type:r===lt.MAIN_COURSE?b.PRIMARY:b.BORDERED_PRIMARY,onClick:()=>{},isLoading:n})}),e("div",{className:Ni.benefits,children:Di.map((t=>a("div",{className:Ni.benefit,children:[e(p,{icon:t[r]?pe:se,size:"md"})," ",e("span",{children:c(t.title)})]},t.title)))})]})},r)))})]})};export{Ci as Events,Mi as Pricing,Ti as PublicMenu};
|
|
1
|
+
import{jsx as e,jsxs as a,Fragment as t}from"react/jsx-runtime";import{isEmpty as i,Storage as n,sortNumbers as r,trackEvent as o,priceFormatter as l,classNames as d,getQueryParam as s,checkIsValidEmail as c,isNumber as u}from"@sorocraft/js-utils";import{Row as m,classNames as h,IconLink as g,Tooltip as v,SVGIcon as p,Column as _,Flex as y,UIElementType as b,Carousel as E,CarouselItem as f,Chip as I,Text as S,IconButton as P,Input as A,InputType as T,Modal as k,Button as O,Loading as C,useModalContext as N,AlertBox as R,Description as D,MethodSelection as L,Accordion as M,Padding as z,Link as G,Drawer as U,Container as j,Card as w,OTPInput as x,ListItem as B,ModalProvider as W,DropDown as H,DropDownMenuItem as V,BarChart as Q}from"@sorocraft/ui";import{createContext as q,useContext as F,useMemo as Y,useState as K,useCallback as Z,useRef as X,useEffect as $,memo as J}from"react";import{Phone as ee,Whatsapp as ae,Instagram as te,Telegram as ie,Tiktok as ne,Facebook as re,Wifi as oe,MarkerPin as le,Plus as de,Minus as se,Trash as ce,ShoppingBag as ue,Close as me,Edit as he,Delivery as ge,Grid as ve,Check as pe,List as _e,MarkerPinSimple as ye}from"@sorocraft/ui/icons";function be(e,a){var t={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&a.indexOf(i)<0&&(t[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)a.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(t[i[n]]=e[i[n]])}return t}function Ee(e,a,t,i){return new(t||(t=Promise))((function(n,r){function o(e){try{d(i.next(e))}catch(e){r(e)}}function l(e){try{d(i.throw(e))}catch(e){r(e)}}function d(e){var a;e.done?n(e.value):(a=e.value,a instanceof t?a:new t((function(e){e(a)}))).then(o,l)}d((i=i.apply(e,a||[])).next())}))}function fe(e){var a="function"==typeof Symbol&&Symbol.iterator,t=a&&e[a],i=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ie(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a,t=e[Symbol.asyncIterator];return t?t.call(e):(e=fe(e),a={},i("next"),i("throw"),i("return"),a[Symbol.asyncIterator]=function(){return this},a);function i(t){a[t]=e[t]&&function(a){return new Promise((function(i,n){(function(e,a,t,i){Promise.resolve(i).then((function(a){e({value:a,done:t})}),a)})(i,n,(a=e[t](a)).done,a.value)}))}}}"function"==typeof SuppressedError&&SuppressedError;var Se="PublicMenu-module_container__QLN6U",Pe="PublicMenu-module_categories__Iy6NC",Ae="PublicMenu-module_footer__6G3DQ";const Te="https://images.restaround.co",ke=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"",Oe=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"https://images.restaround.co/no-photo-128.webp",Ce=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${Te}/${e}`:"https://images.restaround.co/restaround-doodle.webp",Ne="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Re=(e,a,t)=>Ne.charAt(e>>2)+Ne.charAt((3&e)<<4|a>>4)+Ne.charAt((15&a)<<2|t>>6)+Ne.charAt(63&t),De="restaround.co",Le=[De,"restaround.az","restaround.ee","restaround.nl"],Me=(e,a)=>{const t=Le.includes(e)?e:De;return{url:`https://${t}/${a||"en"}`,domain:t}},ze=(e,a)=>{const t=(e=>"az"===e?"az":"co")(e);return`https://app.restaround.${t}/auth/register?lang=${e}&utm_source=${a}`},Ge="ADD_UPDATE_NOTES",Ue="AUTH",je="ADD_UPDATE_ADDRESS",we=["en","az","nl","et","tr","ru"],xe=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],Be={AZ:["Baku","Nakhchivan","Ganja","Sumgayit","Shaki","Lenkoran","Guba","Gabala","Ismayilli","Shamakhi","Shusha","Khankendi"]},We=q({}),He=({children:a,value:t})=>{const n=Y((()=>{if(i(t))return{};const e=t.branches||[],a=e.length<=1?e[0]||{}:e.find((e=>e.id===Number(t.branchId)))||{};return Object.assign(Object.assign({},t),{currency:t.currency||"AZN",language:t.language||"en",selectedBranch:a})}),[t]);return e(We.Provider,{value:n,children:a})},Ve=()=>F(We),Qe="digital_menu",qe=`${Qe}_category_select`,Fe=`${Qe}_category_scroll`,Ye=`${Qe}_product_details`,Ke=`${Qe}_product_add_cart`,Ze=`${Qe}_product_view_changed`,Xe=[qe,Fe,Ye,Ke],$e=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Je=new n("restaround_cst_act","restaround_cst_rft"),ea={994:e=>{const a=["50","51","10","55","99","70","77","60"];return new RegExp(`^(${a.join("|")})\\d{7}$`).test(e)?{isValid:!0}:{isValid:!1,error:`Azerbaijani numbers must be 9 digits and start with ${a.join(", ")}`}},31:e=>/^\d{9}$/.test(e)?{isValid:!0}:{isValid:!1,error:"Dutch numbers must be exactly 9 digits"}};function aa(e){if(!e)return{isValid:!1,error:"FIELD_REQUIRED"};const a=e.replace(/\D/g,""),t=a.startsWith("994")?"994":a.startsWith("31")?"31":null;if(!t)return{isValid:!1,error:"Unsupported country code"};const i=a.slice(t.length);return(0,ea[t])(i)}var ta,ia,na,ra,oa;!function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(ta||(ta={})),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"}(ia||(ia={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(na||(na={})),function(e){e.CASH="CASH",e.CARD="CARD",e.WALLET="WALLET",e.TERMINAL="TERMINAL"}(ra||(ra={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(oa||(oa={}));const la=(e,a,t)=>{if(!e)throw new Error("Product ID is required");let i=`${e}`;a&&(i+=`-${a}`);const n=Object.entries(t||{}).map((([e,a])=>{if(!e||!a)return null;const t=Array.isArray(a)?r(a).filter(Boolean).join("-"):`${a}`;return t?`${e}-${t}`:null})).filter(Boolean).join("-");return n&&(i+=`-${n}`),i},da=e=>{var a;const{price:t,variant:i,addons:n,quantity:r,vat:o}=e||{},l=null!==(a=null==i?void 0:i.price)&&void 0!==a?a:t,d=function(e=[],a=1){return a*e.reduce(((e,a)=>{const t=(e=>e.options.reduce(((e,a)=>e+a.price),0))(a);return e+t}),0)}(n,1),s=l+d,c=l*(o/100),u=s+c;return{totalGross:u*r,totalNet:s*r,totalTax:c*r,itemGrossPrice:u,itemNetPrice:s,itemTax:c}},sa={orderType:ta.DELIVERY,totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0,vat:0,paymentMethod:ra.CASH},ca=[oa.CART,oa.DETAILS,oa.COMPLETED],ua="https://api.restaround.co/api/v1",ma=(e,a,t)=>Ee(void 0,void 0,void 0,(function*(){const{accessToken:i}=Je.getAuthToken(),n=`${ua}/${a}`,r=yield fetch(n,{method:e,headers:{"Content-Type":"application/json",Authorization:i},credentials:"include",body:JSON.stringify(t)}),o=yield r.json();if(!r.ok)throw o;return o})),ha=(e,a)=>ma("POST",e,a),ga=(e,a)=>ma("PATCH",e,a),va=e=>ma("GET",e),pa=e=>Ee(void 0,void 0,void 0,(function*(){return ga("customer",e)})),_a=(...e)=>Ee(void 0,[...e],void 0,(function*(e=null,a={}){try{return o("error",{message:null==e?void 0:e.message}),yield fetch(`${ua}/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)},a))})}catch(e){console.error(e)}})),ya=q({order:sa,orderStep:oa.CART,orderItems:{},isOrderOpen:!1,customer:{},trackingId:"",updateOrder:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{}}),ba=({children:a})=>{const[t,n]=K({}),[r,o]=K(sa),[l,d]=K(oa.CART),[s,c]=K({}),[u,m]=K(!1),[h,g]=K(""),v=Z((e=>{o((a=>Object.assign(Object.assign({},a),e)))}),[]),p=Z((({product:e,quantity:a,variantId:t,selectedAddons:n,note:r,isAddOperation:o})=>{if(i(e)||a<0)return;const{id:l,vat:d=0,variants:s,addons:u,price:m}=e,h=la(l,t,n);c((e=>{const c=e[h],g=o?((null==c?void 0:c.quantity)||0)+a:a;if(g<=0){const a=e,t=h;a[t];return be(a,["symbol"==typeof t?t:t+""])}const v=s.find((({id:e})=>e===t)),p=((e=[],a={})=>Object.entries(a).map((([a,t])=>{const n=Number(a),r=Array.isArray(t)?t:[t],o=e.find((e=>e.id===n));if(i(o))return{addonId:n,options:[]};const l=(o.options||[]).filter((e=>r.includes(e.id))).map((e=>({optionId:e.id,price:e.price})));return{addonId:n,options:l}})))(u,n);return Object.assign(Object.assign({},e),{[h]:Object.assign(Object.assign({productId:l,quantity:g,price:m,note:r,vat:d},!i(v)&&{variant:{variantId:v.id,price:v.price}}),{addons:p})})}))}),[]),_=Z((({product:e,quantity:a=1,variantId:t,selectedAddons:i,note:n})=>p({product:e,quantity:a,variantId:t,selectedAddons:i,note:n,isAddOperation:!0})),[p]),y=Z((({product:e,quantity:a=1,variantId:t,selectedAddons:i,note:n})=>p({product:e,quantity:a,variantId:t,selectedAddons:i,note:n,isAddOperation:!1})),[p]),b=Z((e=>{if(!e||i(s))return;const a=Object.entries(s).reduce(((a,[t,i])=>(i.productId!==e&&(a[t]=i),a)),{});c(a)}),[s]),E=Z((()=>Ee(void 0,void 0,void 0,(function*(){try{const{accessToken:e}=Je.getAuthToken();if(!e)return;const a=yield Ee(void 0,void 0,void 0,(function*(){return va("customer")}));if(!(null==a?void 0:a.id))throw new Error("SOMETHING_WENT_WRONG");n(a)}catch(e){_a(e,{file:"src/store/order.tsx",method:"getCustomer"})}}))),[]),f=Z((()=>{m(!1),l===oa.COMPLETED&&(o(sa),c({}),d(oa.CART),g(""))}),[l]),I=Y((()=>({order:r,orderStep:l,orderItems:s,isOrderOpen:u,customer:t,trackingId:h,updateOrder:v,setOrderStep:d,addProduct:_,updateProduct:y,removeAllProductVariants:b,setIsOrderOpen:m,getCustomer:E,resetOrder:f,setTrackingId:g})),[r,l,s,u,t,h,v,_,y,b,E,f,g]);return e(ya.Provider,{value:I,children:a})},Ea=()=>F(ya);var fa="Header-module_container__tenlF",Ia="Header-module_cover__BAWZK",Sa="Header-module_content__Gx4Al",Pa="Header-module_logo__4MTCm",Aa="Header-module_info__IchYA",Ta="Header-module_name__30wyw",ka="Header-module_address__WOxXc",Oa="Header-module_addressText__lUszI",Ca="Header-module_social__AoP0z",Na="Header-module_links__EeQxg",Ra="Header-module_wifiPassword__VWBTa",Da="Header-module_wifiPasswordIcon__Ukn3D";const La=a=>{const{priority:t,blurDataURL:i,quality:n,placeholder:r,fetchPriority:o}=a,l=be(a,["priority","blurDataURL","quality","placeholder","fetchPriority"]),{imageTag:d}=Ve()||{};if(d){return e(d,Object.assign({},a,{quality:a.quality||100,placeholder:"blur",blurDataURL:(s=235,c=59,u=90,`data:image/gif;base64,R0lGODlhAQABAPAA${Re(0,s,c)+Re(u,255,255)}/yH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==`)}))}var s,c,u;return e("img",Object.assign({},l))};var Ma={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"};const za=()=>{var t;const{language:i,languages:n,onLanguageSelect:r}=Ve(),[o,l]=K(!1),d=(null==n?void 0:n.length)>1,s=(null===(t=null==n?void 0:n.filter)||void 0===t?void 0:t.call(n,(({code:e})=>e!==i)))||[],c=e=>`https://images.restaround.co/languages/${e}.svg`;return d?e("div",{className:Ma.container,onClick:()=>l(!o),children:a(m,{alignItems:"center",gap:0,children:[e(m,{alignItems:"center",className:h(Ma,{options:!0,isOpen:o}),children:s.map((({code:a})=>e("img",{src:c(a),className:Ma.option,onClick:()=>(e=>{r&&r(e)})(a),alt:a},a)))}),e("img",{src:c(i),alt:i||"",className:Ma.currentLanguage})]})}):null},Ga=({branch:t,coverImage:n,logoImage:r,name:o,instagram:l,facebook:d,whatsapp:s,telegram:c,tiktok:u})=>{const{address:h,latitude:E,longitude:f,phone:I,wifiPassword:S}=t||{},P=i(t),A=`https://www.google.com/maps/place/${E},${f}`;return a("div",{className:fa,children:[e(La,{src:n,alt:o,className:Ia,width:1024,height:400,priority:!0,sizes:"100vw",fetchPriority:"high",loading:"eager"}),e("div",{className:Sa,children:e(P?()=>a(_,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(La,{src:r,alt:o,className:Pa,width:96,height:96}),e("div",{className:Aa,children:e("h1",{className:Ta,children:o})})]}):()=>a(y,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(y.Item,{children:e(La,{src:r,alt:o,className:Pa,width:96,height:96})}),e(y.Item,{shrink:!0,className:Aa,children:a(_,{gap:.25,children:[e("h1",{className:Ta,children:o}),e("a",{className:ka,href:A,target:"_blank",rel:"noopener noreferrer",children:a(m,{alignItems:"center",gap:.5,children:[e(p,{icon:le,color:b.DEFAULT}),e("span",{className:Oa,children:h})]})})]})})]}),{})}),e(za,{}),!P&&e("div",{className:Ca,children:e("div",{className:Na,children:e(m,{gap:2,alignItems:"center",children:a(m,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!I&&e(g,{icon:ee,href:`tel:+${I}`,size:"sm",shape:"circle",theme:"light"}),!!s&&e(g,{icon:ae,href:`https://wa.me/${s}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!l&&e(g,{icon:te,href:l,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!c&&e(g,{icon:ie,href:c,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!u&&e(g,{icon:ne,href:u,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!d&&e(g,{icon:re,href:d,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!S&&e(v,{hint:S,children:e("div",{className:Ra,children:e(p,{icon:oe,size:"sm",className:Da})})})]})})})})]})},Ua=({categoryProductMap:a=[],language:t,selectedCategoryId:i,onSelectCategory:n})=>{const r=X({}),l=X(null),d=Z((()=>{var e;const a=null===(e=null==r?void 0:r.current)||void 0===e?void 0:e[i];if(!a||!l.current)return;const t=l.current.clientWidth,n=a.offsetLeft-t/2+a.offsetWidth/2;l.current.scrollTo({left:n,behavior:"smooth"})}),[i]);return $((()=>{i&&d()}),[i,d]),e("div",{className:Pe,children:e(E,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(l.current=e.current)},children:(a||[]).map((({id:a,translations:l})=>{const{name:d}=l.find((e=>e.language===t))||{};return e(f,{children:e(I,{onClick:()=>((e,a)=>{e!==i&&(o(qe,{name:a}),n(e))})(a,d),type:b.BORDERED_PRIMARY,active:a===i,children:e("div",{ref:e=>{e&&(r.current[a]=e)},children:d})})},a)}))})})};var ja,wa="Products-module_container__bF2LF",xa="Products-module_view__l857X",Ba="Products-module_products__AoDrY",Wa="Products-module_category__Sp7dE",Ha="Products-module_list__LH4v5";!function(e){e.LIST="list",e.GRID="grid"}(ja||(ja={}));const Va=(e=0,a=1,t=0)=>e*a*(1+t/100);var Qa;!function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Qa||(Qa={}));const qa=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Fa=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Ya=(e,a)=>{var t;return(null===(t=((null==e?void 0:e.options)||[]).find((({id:e})=>e===a)))||void 0===t?void 0:t.price)||0},Ka=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},Za=(e,a=1)=>{const{price:t=0,vat:i=0}=e||{};return Va(t,a,i)},Xa=(e,a,t,i=1)=>{const n=Za(e,i);return{totalPrice:n,formattedTotalPrice:l(n,a,t)}},$a=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.variants)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.id===a)))||{}},Ja=(e,a,t)=>{const i=$a(a,e),{vat:n}=a||{},{price:r}=i||{};return Va(r,t,n)},et=(e,a)=>{var t,i;return(null===(i=null===(t=null==e?void 0:e.translations)||void 0===t?void 0:t.find)||void 0===i?void 0:i.call(t,(e=>e.language===a)))||{}},at=({product:e,variantId:a,quantity:t=1,selectedAddons:n,noVat:r=!1})=>{if(i(e))return{price:0,optionsPrice:0,total:0};const o=Object.assign(Object.assign({},e),{vat:r?0:e.vat}),l=((e,a={},t)=>((null==e?void 0:e.addons)||[]).filter((e=>Object.prototype.hasOwnProperty.call(a,e.id))).reduce(((e,t)=>{const{id:i,selectType:n}=t;if(n===Qa.SINGLE){const n=a[i];return e+Ya(t,n)}return e+(a[i]||[]).reduce(((e,a)=>e+Ya(t,a)),0)}),0)*t)(o,n,t),d=a?Ja(a,o,t):Za(o,t);return{price:d,optionsPrice:l,total:d+l}};var tt,it,nt,rt,ot,lt,dt;!function(e){e.ACTIVE="ACTIVE",e.EXPIRED="EXPIRED",e.CANCELLED="CANCELLED"}(tt||(tt={})),function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled"}(it||(it={})),function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(nt||(nt={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(rt||(rt={})),function(e){e.ORDER="feature_order"}(ot||(ot={})),function(e){e.ALPHA="ALPHA",e.BETA="BETA",e.ALL="ALL"}(lt||(lt={})),function(e){e.APPETIZER="appetizer",e.MAIN_COURSE="mainCourse",e.CHEFS_SPECIAL="chefsSpecial"}(dt||(dt={}));var st={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"},ct={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",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."},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","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ə"},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",Baku:"Bakı",Ganja:"Gəncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi",Nakhchivan:"Naxçıvan"},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"}},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.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required."},common:{},order:{},customer:{},auth:{},events:{},pricing:{}},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:"Этот тип заказа недоступен для этого заведения.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен."},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ","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":"Отследить заказ"},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:"Азербайджан",Baku:"Баку",Ganja:"Гянджа",Sumgayit:"Сумгаит",Mingachevir:"Мингечевир",Shirvan:"Ширван",Naftalan:"Нафталан",Shaki:"Шеки",Lenkoran:"Лянкяран",Yevlakh:"Евлах",Shamkir:"Шамкир",Guba:"Губа",Gusar:"Гусар",Gabala:"Габала",Tartar:"Тертер",Aghjabadi:"Аджикабеди",Aghdam:"Агдам",Aghdash:"Агдаш",Astara:"Астара",Balakan:"Балакен",Barda:"Барда",Beylagan:"Бейляган",Bilasuvar:"Биласуар",Jalilabad:"ДжалилАбада",Dashkasan:"Дашкесен",Fuzuli:"Фузули",Gedebey:"Гедабей",Goranboy:"Горанбой",Goychay:"Гёйчай",Hajigabul:"Хаджигабуль",Imishli:"Имешли",Ismayilli:"Исмаиллы",Kurdamir:"Курдемир",Lerik:"Лерик",Masalli:"Масалли",Neftchala:"Нефтчала",Oghuz:"Огуз",Gakh:"Гах",Gazakh:"Газах",Gobustan:"Гобустан",Saatly:"Саатлы",Sabirabad:"Сабирабад",Salyan:"Сальян",Samukh:"Самух",Siyezen:"Сиезен",Shabran:"Шабран",Shamakhi:"Шамахи",Tovuz:"Товуз",Ujar:"Уджар",Khachmaz:"Хачмаз",Khizi:"Хызы",Khojaly:"Ходжалы",Khojavend:"Ходжавенд",Yardimli:"Ярдэмли",Zagatala:"Загатала",Zardab:"Зердаб",Zangilan:"Зенгилан",Shusha:"Шуша",Lachin:"Лачин",Kalbajar:"Калбаджар",Khankendi:"Ханкенди",Nakhchivan:"Нахчыван"},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":"Неограниченное количество языков"}},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.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur."},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","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"},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",Baku:"Bakü",Ganja:"Gence",Sumgayit:"Sumgayit",Mingachevir:"Mingeçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şeki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Guba",Gusar:"Qusar",Gabala:"Gabala",Tartar:"Tartar",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi",Nakhchivan:"Nahçıvan"},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"}},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.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht."},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","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":"In het restaurant",Pickup:"Afhalen",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"},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",Baku:"Baku",Ganja:"Gäncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi"},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"}},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.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik."},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","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"},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",Baku:"Baku",Ganja:"Gäncə",Sumgayit:"Sumqayıt",Mingachevir:"Mingəçevir",Shirvan:"Şirvan",Naftalan:"Naftalan",Shaki:"Şəki",Lenkoran:"Lənkəran",Yevlakh:"Yevlax",Shamkir:"Şəmkir",Guba:"Quba",Gusar:"Qusar",Gabala:"Qəbələ",Tartar:"Tərtər",Aghjabadi:"Ağcabədi",Aghdam:"Ağdam",Aghdash:"Ağdaş",Astara:"Astara",Balakan:"Balakən",Barda:"Bərdə",Beylagan:"Beyləqan",Bilasuvar:"Biləsuvar",Jalilabad:"Cəlilabad",Dashkasan:"Daşkəsən",Fuzuli:"Füzuli",Gedebey:"Gədəbəy",Goranboy:"Goranboy",Goychay:"Göyçay",Hajigabul:"Hacıqabul",Imishli:"İmişli",Ismayilli:"İsmayıllı",Kurdamir:"Kürdəmir",Lerik:"Lerik",Masalli:"Masallı",Neftchala:"Neftçala",Oghuz:"Oğuz",Gakh:"Qax",Gazakh:"Qazax",Gobustan:"Qobustan",Saatly:"Saatlı",Sabirabad:"Sabirabad",Salyan:"Salyan",Samukh:"Samux",Siyezen:"Siyəzən",Shabran:"Şabran",Shamakhi:"Şamaxı",Tovuz:"Tovuz",Ujar:"Ucar",Khachmaz:"Xaçmaz",Khizi:"Xızı",Khojaly:"Xocalı",Khojavend:"Xocavənd",Yardimli:"Yardımlı",Zagatala:"Zaqatala",Zardab:"Zərdab",Zangilan:"Zəngilan",Shusha:"Şuşa",Lachin:"Laçın",Kalbajar:"Kəlbəcər",Khankendi:"Xankəndi"},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"}}};const ut=(e="common",a)=>{const{language:t}=Ve(),i=(null==a?void 0:a.language)||t,{t:n}=((e,a)=>{try{const t=we.includes(e)?e:"en",i=ct[t][a]||{};return{t:(e,a)=>{try{const t=i[e]||e;return a?Object.keys(a).reduce(((e,t)=>e.replace(`{{${t}}}`,a[t])),t):t}catch(a){return console.error(a),e}}}}catch(e){return console.error(e),{t:e=>e}}})(i,e);return{t:n}},mt=({product:t,currency:i,language:n,onClick:r})=>{var l,s;const{addProduct:c}=Ea(),{image160:u,volume:h,available:g}=t||{},{name:v,description:p}=Y((()=>Ka(t,n)),[t,n]),{formattedTotalPrice:y}=Y((()=>Xa(t,i,n)),[t,i,n]),{t:E}=ut("order"),f=(null===(l=null==t?void 0:t.variants)||void 0===l?void 0:l.length)>0,I=(null===(s=null==t?void 0:t.addons)||void 0===s?void 0:s.length)>0,A=!!u;return a("div",{className:d(st,{container:!0,isClickable:!!r,noImage:!A}),onClick:r,children:[a(m,{justifyContent:"space-between",gap:0,children:[e("div",{className:st.info,children:a(_,{gap:.25,children:[e("h3",{className:st.name,children:v}),e("p",{className:st.description,children:p}),a(m,{className:st.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:y}),!!h&&e(S,{color:"muted",children:h})]}),!g&&e(S,{size:"xs",color:"danger",className:st.notAvailableText,children:E("Not available")})]})}),A&&e(La,{src:ke(u),alt:v||"menu",className:d(st,{image:!0,notAvailable:!g}),loading:"lazy",width:160,height:90})]}),g&&e("div",{className:st.addToOrder,children:e(P,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(f||I)&&r)return r();c({product:t}),o(Ke,{name:v,quantity:1})},icon:de,type:b.DEFAULT})})]})};var ht={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",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"};const gt=({product:t,currency:i,language:n,onClick:r})=>{var l,s;const{addProduct:c}=Ea(),{volume:u,image580:h,image160:g,image1024:v,available:p}=t||{},y=h||v||g,{name:E,description:f}=Y((()=>Ka(t,n)),[t,n]),{formattedTotalPrice:I}=Y((()=>Xa(t,i,n)),[t,i,n]),{t:A}=ut("order"),T=(null===(l=null==t?void 0:t.variants)||void 0===l?void 0:l.length)>0,k=(null===(s=null==t?void 0:t.addons)||void 0===s?void 0:s.length)>0;return e("div",{className:ht.container,children:a("div",{className:d(ht,{content:!0,isClickable:!!r,noImage:!y}),onClick:r,children:[y&&e("div",{className:ht.imageContainer,children:e(La,{src:ke(y),alt:E||"menu",className:d(ht,{image:!0,notAvailable:!p}),loading:"lazy",width:580,height:326})}),e("div",{className:ht.info,children:e("div",{className:ht.data,children:a(_,{gap:.25,children:[e("h3",{className:ht.name,children:E}),e("p",{className:ht.description,children:f}),a(m,{className:ht.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:I}),!!u&&e(S,{color:"white",className:ht.volume,children:u})]}),!p&&e(S,{color:"white",size:"xs",className:ht.notAvailableText,children:A("Not available")})]})})}),p&&e("div",{className:ht.addToOrder,children:e(P,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),(T||k)&&r)return r();c({product:t}),o(Ke,{name:E,quantity:1})},icon:de,type:b.DEFAULT})})]})})};var vt={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"};const pt=()=>{var e,a;const{customer:t}=Ea();return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(a=null==t?void 0:t.addresses)||void 0===a?void 0:a.length)-1])||{}},_t={[lt.ALPHA]:[ot.ORDER],[lt.BETA]:[],[lt.ALL]:[]},yt=(e={})=>{const{selectedBranch:a,businessId:t}=Ve(),{order:i,orderItems:n}=Ea(),{totalPriceWithTax:r,totalPriceWithoutTax:o,totalTax:l}=(()=>{const{orderItems:e}=Ea();return Object.values(e||{}).reduce(((e,a)=>{const{totalGross:t,totalNet:i,totalTax:n}=da(a);return{totalPriceWithTax:e.totalPriceWithTax+t,totalPriceWithoutTax:e.totalPriceWithoutTax+i,totalTax:e.totalTax+n}}),{totalPriceWithTax:0,totalPriceWithoutTax:0,totalTax:0})})(),d=pt(),s=(()=>{const{customer:e}=Ea();return null==e?void 0:e.id})(),{workingDayId:c,tableId:u,employeeId:m,orderType:h,paymentMethod:g,note:v,vat:p=0}=Object.assign(Object.assign({},i),e);return{branchId:null==a?void 0:a.id,businessId:t,workingDayId:c,tableId:u,customerId:s,customerAddressId:d.id,employeeId:m,orderType:h,totalPriceWithTax:r,totalPriceWithoutTax:o,totalTax:l,items:Object.values(n||{}),vat:p,paymentMethod:g,note:v}},bt=()=>{const{orderItems:e}=Ea();return Object.values(e||{}).reduce(((e,a)=>e+a.quantity),0)},Et=()=>{const{businessSettings:e}=Ve();return!!(e=>{var a,t;const{businessSegment:i=lt.ALL}=Ve();return"1"===s(e)||(null===(t=null===(a=_t[i])||void 0===a?void 0:a.includes)||void 0===t?void 0:t.call(a,e))})(ot.ORDER)&&Object.values(e).some((e=>!!e))};var ft={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"};const It=({isDecreaseDisabled:t=!1,quantity:i=1,size:n="md",onIncrease:r,onDecrease:o})=>a(m,{className:d(ft,{container:!0},[ft[n]]),justifyContent:"space-between",gap:0,children:[e("div",{className:d(ft,{quantityAction:!0,isDisabled:t}),onClick:o,children:e(p,{icon:se})}),e("div",{className:ft.quantityValue,children:i}),e("div",{className:ft.quantityAction,onClick:r,children:e(p,{icon:de})})]});var St="ProductInOrder-module_container__0N57G",Pt="ProductInOrder-module_title__TWjM9";const At=({productId:t,onModalClose:n})=>{const{removeAllProductVariants:r,setIsOrderOpen:o}=Ea(),{t:l}=ut("order"),d=(e=>{const{orderItems:a}=Ea();return i(a)||!e?0:Object.values(a).filter((a=>a.productId===e)).reduce(((e,a)=>e+a.quantity),0)})(t);return d<=0?null:a(y,{className:St,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[a(y.Item,{flex:1,className:Pt,children:[l("In order")," (",d,")"]}),e(y.Item,{flex:0,children:a(m,{children:[e(P,{icon:ce,onClick:()=>{r(t)},type:b.DANGER,tooltip:l("Remove from order")}),e(P,{icon:ue,onClick:()=>{o(!0),n&&n()},type:b.SUCCESS,tooltip:l("View order")})]})})]})};var Tt={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"};const kt=({product:t,selectedVariant:i,focusedSection:n,onSelectVariant:r})=>{const{language:o,currency:s}=Ve(),{t:c}=ut("order"),u=X(null),{variants:h}=t||{},g="variant"===n;return $((()=>{g&&u.current&&u.current.scrollIntoView({behavior:"smooth"})}),[n,g]),a(_,{className:d(Tt,{container:!0,focused:g}),gap:1,fullWidth:!0,children:[e("div",{className:Tt.variantsTitle,ref:u,children:c("Product choices")}),(h||[]).map((n=>{const{id:d}=n||{},{formattedTotalPrice:c}=(({variantId:e,currency:a="USD",language:t="en",product:i,quantity:n=1})=>{const r=Ja(e,i,n);return{totalPrice:r,formattedTotalPrice:l(r,a,t)}})({variantId:d,language:o,currency:s,product:t}),{title:u}=et(n,o);return a(m,{justifyContent:"space-between",onClick:()=>r(d),className:Tt.variant,children:[e(A,{label:u,name:"variant",onChange:()=>r(d),checked:i===d,type:T.RADIO,size:"small",noMargin:!0}),e("div",{className:Tt.variantPrice,children:c})]},d)}))]})};var Ot={container:"ProductAddons-module_container__DRnT7"};const Ct=({product:t,selectedAddons:i,onOptionSelect:n})=>{const{language:r,currency:o}=Ve(),{addons:d}=t||{};return e(_,{className:Ot.container,gap:1.5,fullWidth:!0,children:(d||[]).map((t=>{const{id:d,options:s,selectType:c}=t||{},{title:u}=qa(t,r);return a(_,{children:[e(S,{variant:"bold",children:u}),e(_,{gap:1,fullWidth:!0,children:(s||[]).map((t=>{const{id:s}=t||{},{formattedTotalPrice:u}=(({option:e,currency:a="USD",language:t="en"})=>{const{price:i}=e||{};return{totalPrice:i,formattedTotalPrice:l(i,a,t)}})({option:t,language:r,currency:o}),{title:h}=Fa(t,r),g=c===Qa.SINGLE,v=g?i[d]===s:(i[d]||[]).includes(s);return a(m,{justifyContent:"space-between",className:Ot.option,children:[e(A,{label:h,name:`option-${d}`,onChange:()=>n({addonId:d,optionId:s,isSingle:g,isRemove:!g&&v}),checked:v,type:g?T.RADIO:T.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:Ot.optionPrice,children:u})]},s)}))})]},d)}))})},Nt=({product:t,onClose:n})=>{const{language:r,currency:d}=Ve(),{addProduct:s,updateProduct:c}=Ea(),[u,h]=K(1),[g,v]=K(!1),[p,y]=K(null),[b,E]=K(null),[f,I]=K({}),S=X(null),{t:A}=ut("order"),T=(({productId:e,variantId:a,selectedAddons:t})=>{var n;const{orderItems:r}=Ea();return i(r)||!e?0:(null===(n=r[la(e,a,t)])||void 0===n?void 0:n.quantity)||0})({productId:null==t?void 0:t.id,variantId:p,selectedAddons:f}),{name:C,description:N}=Y((()=>Ka(t,r)),[t,r]),{formattedTotalPrice:R}=Y((()=>Xa(t,d,r)),[t,d,r]),{formattedTotalPrice:D}=Y((()=>(({product:e,variantId:a,quantity:t=1,currency:i,language:n,selectedAddons:r,noVat:o=!1})=>{const{total:d}=at({product:e,variantId:a,quantity:t,selectedAddons:r,noVat:o});return{totalPrice:d,formattedTotalPrice:l(d,i,n)}})({product:t,quantity:u,language:r,currency:d,variantId:p,selectedAddons:f})),[t,u,r,d,p,f]),L=g?0===u:1===u,M=Y((()=>A(g?0===u?"Remove from order":"Update order":"Add to order")),[g,u]);$((()=>{h(T>0?T+1:1),v(T>0)}),[T,t]),$((()=>{y(null),I({})}),[t]);const z=e=>{-1===e&&L||h((a=>Math.max(0,a+e)))};if(i(t))return null;const{image1024:G,volume:U,variants:j,addons:w,available:x}=t,B=(null==j?void 0:j.length)>0,W=(null==w?void 0:w.length)>0;return e("div",{className:vt.container,onClick:e=>{var a,t;(null===(t=null===(a=null==S?void 0:S.current)||void 0===a?void 0:a.contains)||void 0===t?void 0:t.call(a,null==e?void 0:e.target))||n&&n()},children:e(k,{onClose:n,ref:S,noBodyPadding:!0,size:"small",content:a("div",{className:vt.content,children:[a(_,{gap:0,children:[G&&e(La,{src:ke(G),width:1024,height:400,alt:C||"product",className:vt.image}),a(_,{className:vt.details,gap:1,children:[e("h2",{className:vt.name,children:C}),a(m,{justifyContent:"space-between",children:[e("div",{className:vt.price,children:R}),e("div",{className:vt.volume,children:U})]}),e("div",{className:vt.description,children:N})]}),(B||W)&&a(_,{gap:0,className:vt.choices,children:[B&&e(kt,{product:t,selectedVariant:p,focusedSection:b,onSelectVariant:y}),W&&e(Ct,{product:t,selectedAddons:f,onOptionSelect:({addonId:e,optionId:a,isSingle:t,isRemove:i=!1})=>{I((n=>{if(t)return Object.assign(Object.assign({},n),{[e]:a});const r=n[e]||[],o=i?r.filter((e=>e!==a)):[...new Set([...r,a])];return Object.assign(Object.assign({},n),{[e]:o})}))}})]})]}),e("div",{className:vt.close,children:e(P,{onClick:n,icon:me})})]}),footer:a(_,{children:[e(At,{productId:null==t?void 0:t.id,onModalClose:n}),a(m,{className:vt.addToOrder,gap:.5,children:[e(It,{isDecreaseDisabled:L,onDecrease:()=>z(-1),onIncrease:()=>z(1),quantity:u}),e(O,{className:vt.addAction,label:x?a(m,{fullWidth:!0,justifyContent:"space-between",children:[e("span",{className:vt.actionTitle,children:M}),e("span",{children:D})]}):A("Not available"),onClick:()=>{var e;if((null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!p)return E("variant"),void setTimeout((()=>{E(null)}),200);g?c({product:t,quantity:u,variantId:p,selectedAddons:f}):(s({product:t,quantity:u,variantId:p,selectedAddons:f}),o(Ke,{name:C,quantity:u})),n&&n()},size:"xl",fullWidth:!0,disabled:!x})]})]})})})};var Rt="FloatingOrdersButton-module_container__RYr7V",Dt="FloatingOrdersButton-module_content__2X3P-",Lt={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",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"};const Mt=({actionText:t,isLoading:i=!1,onClick:n})=>{const r=bt(),{formattedTotalPrice:o}=(()=>{const{orderItems:e}=Ea(),{currency:a,language:t}=Ve(),i=Object.values(e||{}).reduce(((e,a)=>{const{totalGross:t}=da(a);return e+t}),0);return{totalPrice:i,formattedTotalPrice:l(i,a,t)}})();return a(y,{className:d(Lt,{container:!0,isLoading:i,isClickable:!!n}),justifyContent:"space-between",alignItems:"center",onClick:i?null:n,children:[e(y.Item,{flex:1,children:a(m,{alignItems:"center",children:[e("div",{className:Lt.count,children:r}),e("div",{className:Lt.actionText,children:i?e(C,{}):t})]})}),e(y.Item,{className:Lt.totalPrice,flex:1,children:o})]})},zt=()=>{const{setIsOrderOpen:a}=Ea(),{t:t}=ut("order");return bt()<=0?null:e("div",{className:Rt,children:e("div",{className:Dt,children:e(Mt,{onClick:()=>a(!0),actionText:t("View order")})})})};var Gt="OrderDrawer-module_container__DymQj",Ut="OrderDrawer-module_content__khduX",jt="OrderDrawer-module_paymentMethods__9i-sb",wt="OrderDrawer-module_transactionDetails__xzWgY",xt="OrderDrawer-module_footer__8XfD9",Bt="OrderDrawer-module_noteButton__M8BVx";const Wt=e=>{const a={},{countryCode:t,cityName:i,street:n,houseNumber:r}=e||{};return t||(a.countryCode="COUNTRY_REQUIRED"),i||(a.cityName="CITY_REQUIRED"),n||(a.street="STREET_REQUIRED"),r||(a.houseNumber="STREET_NUMBER_REQUIRED"),a},Ht=(e,a,t)=>[e,[a,t].filter(Boolean).join("/")].filter(Boolean).join(" "),Vt=({isOrderItemsEmpty:t=!1})=>{const{t:n}=ut("order"),{t:r}=ut("error"),{setIsOrderOpen:o,setTrackingId:l}=Ea(),{setModal:d}=N(),{order:s,orderStep:c,orderItems:u,setOrderStep:m}=Ea(),h=Et(),g=(()=>{const{customer:e}=Ea();return e||{}})(),v=yt(),[p,y]=K(!1),[E,f]=K(""),I=null==s?void 0:s.note,P=!!I,A=h&&c===oa.CART,T=()=>Ee(void 0,void 0,void 0,(function*(){try{f(""),y(!0);const e=yield(e=>Ee(void 0,void 0,void 0,(function*(){return ha("customer/order",e)})))(v);return e.trackingId}catch(e){return f((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{y(!1)}}));return a(_,{className:xt,fullWidth:!0,children:[!!E&&e(R,{message:r(E),type:"error",onClear:()=>f("")}),A&&e(O,{label:P?e(S,{children:s.note}):a(_,{gap:0,children:[e(S,{children:n("Add an order note")}),e(S,{size:"sm",color:"muted",children:n("Special instructions, allergies, etc.")})]}),onClick:()=>{d({id:Ge,params:{note:I}})},size:"xxxl",fullWidth:!0,type:b.LIGHT,className:Bt,icon:P?he:de,iconSize:"md"}),t?e(O,{label:n("Add items"),onClick:()=>o(!1),type:b.PRIMARY,size:"xl",fullWidth:!0}):c!==oa.COMPLETED?e(Mt,{actionText:n((()=>{if(!h)return"Subtotal";switch(c){case oa.CART:return"Go to checkout";case oa.DETAILS:return"Place order";default:return"Continue"}})()),onClick:h?()=>Ee(void 0,void 0,void 0,(function*(){if(i(g))return d({id:Ue});if(c===oa.DETAILS){if(s.orderType===ta.DELIVERY&&i(null==g?void 0:g.addresses))return;if(i(u))return;const e=yield T();if(!e)return;l(e)}const e=(ca.findIndex((e=>e===c))||0)+1;if(e>=ca.length)return;const a=ca[e];m(a)})):null,isLoading:p}):null]})};var Qt={},qt="OrderListItem-module_container__Tj4RI",Ft="OrderListItem-module_image__o3PIC",Yt="OrderListItem-module_data__BLzxw",Kt="OrderListItem-module_name__QEzuZ",Zt="OrderListItem-module_price__-V2qL";const Xt=e=>{var a;const{products:t}=Ve();return(null===(a=null==t?void 0:t.find)||void 0===a?void 0:a.call(t,(({id:a})=>a===e)))||{}};var $t="ProductQuantity-module_quantity__PzTpj";const Jt=({productId:a,variantId:t,min:i=1,size:n="md",selectedAddons:r,isDisabled:o=!1})=>{const l=(({productId:e,variantId:a,selectedAddons:t})=>{const{orderItems:i}=Ea(),n=i[la(e,a,t)];return(null==n?void 0:n.quantity)||1})({productId:a,variantId:t,selectedAddons:r}),d=Xt(a),{updateProduct:s}=Ea(),c=l===i;return o?e("div",{className:$t,children:l}):e(It,{isDecreaseDisabled:c,onDecrease:()=>s({product:d,quantity:l-1,variantId:t,selectedAddons:r}),onIncrease:()=>s({product:d,quantity:l+1,variantId:t,selectedAddons:r}),quantity:l,size:n})},ei=({item:n,product:r,language:o})=>e(t,{children:(n.addons||[]).map((({addonId:e,options:t})=>{var n;const l=((e,a)=>((null==e?void 0:e.addons)||[]).find((({id:e})=>e===a))||{})(r,e),d=((null==l?void 0:l.options)||[]).filter((e=>null==t?void 0:t.some((({optionId:a})=>a===e.id))));if(i(l)||i(d))return null;const s=null===(n=qa(l,o))||void 0===n?void 0:n.title,c=d.map((e=>{var a;return null===(a=Fa(e,o))||void 0===a?void 0:a.title})).filter(Boolean).join(", ");return s&&c?a(S,{color:"muted",size:"xs",children:[s,": ",c]},e):null}))}),ai=({item:t,isDisabled:i=!1})=>{var n;const{productId:r}=t||{},o=null===(n=null==t?void 0:t.variant)||void 0===n?void 0:n.variantId,d=(e=>{const a={};for(const{addonId:t,options:i=[]}of e.addons||[]){const e=i.map((({optionId:e})=>e));a[t]=1===e.length?e[0]:e}return a})(t),s=Xt(r),c=$a(s,o),{language:u}=Ve(),{image160:h}=s,{title:g}=et(c,u),{name:v}=Y((()=>Ka(s,u)),[s,u]),{formattedTotalPrice:p}=(e=>{const{language:a,currency:t}=Ve(),{totalGross:i}=da(e);return{totalPrice:i,formattedTotalPrice:l(i,t,a)}})(t);return a(m,{className:qt,gap:1,alignItems:"flex-start",children:[h&&e(La,{src:ke(h),alt:v||"menu",className:Ft,loading:"lazy",width:80,height:45}),a("div",{className:Yt,children:[e("div",{className:Kt,children:v}),a(_,{gap:0,children:[!!g&&e(S,{color:"muted",size:"xs",children:g}),e(ei,{item:t,product:s,language:u})]}),e("div",{className:Zt,children:p})]}),e(Jt,{productId:r,variantId:o,selectedAddons:d,size:"sm",min:0,isDisabled:i})]})},ti=()=>{const{t:t}=ut("order");return a(_,{className:Qt.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(S,{variant:"h2",children:t("Empty order")}),e(D,{text:t("You don't have any items in your order")})]})},ii=({isDisabled:a=!1})=>{const{orderItems:t}=Ea(),n=i(t);return e("div",{className:Qt.container,children:n?e(ti,{}):e("div",{className:Qt.items,children:Object.entries(t||{}).map((([t,i])=>e(ai,{item:i,isDisabled:a},t)))})})},ni=()=>e("div",{className:Ut,children:e(ii,{})});var ri="CustomerAddress-module_container__TGYRV";const oi=()=>{const n=pt(),{setModal:r}=N(),{t:o}=ut("customer"),{additionalNumber:l,street:d,houseNumber:s,cityName:c,countryCode:u}=n,h=Ht(d,s,l),g=([c,u]||[]).filter(Boolean).join(", ");return e("div",{className:ri,onClick:()=>{r({id:je})},children:a(m,{fullWidth:!0,alignItems:"center",children:[e(p,{icon:le,size:"md"}),e(_,{gap:0,fullWidth:!0,children:i(n)?e((()=>e(S,{color:b.DANGER,children:o("No address available")})),{}):e((()=>a(t,{children:[e(S,{children:h||o("Unknown address")}),g&&e(S,{size:"sm",color:"muted",children:g})]})),{})}),e(p,{icon:he,size:"sm"})]})})},li=()=>{const{language:t,currency:i,businessSettings:n}=Ve(),{order:{orderType:r,paymentMethod:o},updateOrder:d}=Ea(),{totalPriceWithTax:s,totalPriceWithoutTax:c,totalTax:u}=yt(),{t:h}=ut("order"),{t:g}=ut("error"),y=[{type:ta.DELIVERY,icon:ge,title:h("Delivery"),isDisabled:!(null==n?void 0:n.deliveryOrderEnabled)},{type:ta.DINE_IN,icon:ve,title:h("Dine in"),isDisabled:!(null==n?void 0:n.dineInOrderEnabled)},{type:ta.PICK_UP,icon:ue,title:h("Pickup"),isDisabled:!(null==n?void 0:n.pickupOrderEnabled)}],b=[{value:ra.CASH,label:h("Cash")},{value:ra.TERMINAL,label:h("POS Terminal")}],E=y.map((({type:t,icon:i,title:n,isDisabled:o})=>({value:t,isDisabled:o,label:e(v,{hint:o?g("ORDER_TYPE_DISABLED_FOR_BUSINESS"):null,children:a(m,{gap:.5,flexWrap:"nowrap",children:[e(p,{icon:i}),e(S,{color:t!==r||o?"normal":"white",whiteSpace:"nowrap",children:n})]})})}))),f="sm",I=l(c,i,t),P=l(s,i,t),k=l(u,i,t);return a(_,{className:Ut,gap:2,children:[e(L,{methods:E,onSelect:e=>d({orderType:e}),selectedMethod:r,fullWidth:!0}),r===ta.DELIVERY&&e(oi,{}),e(m,{className:jt,children:b.map((({label:a,value:t})=>e(A,{label:a,name:"paymentMethod",onChange:()=>d({paymentMethod:t}),checked:o===t,type:T.RADIO,size:"small",noMargin:!0},t)))}),e(M,{title:h("Order summary"),content:e(ii,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1}),a(_,{className:wt,children:[a(m,{justifyContent:"space-between",children:[e(S,{size:f,children:h("Items")}),e(S,{size:f,children:I})]}),a(m,{justifyContent:"space-between",children:[e(S,{size:f,children:h("Tax")}),e(S,{size:f,children:k})]}),a(m,{justifyContent:"space-between",children:[e(S,{size:f,color:"bold",children:h("Total")}),e(S,{size:f,color:"bold",children:P})]})]})]})},di=()=>{const{t:t}=ut("order"),{trackingId:i}=Ea(),{hostname:n,language:r}=Ve();return a(_,{className:Ut,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(p,{icon:pe,size:"xxl",color:b.SUCCESS}),e(z,{paddingInline:2,children:e(S,{variant:"h1",align:"center",children:t("Your Order is Completed!")})}),e(z,{paddingInline:2,children:e(S,{align:"center",children:t("Thank you! We've received your order and it will be delivered shortly.")})}),e(z,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(G,{href:`https://${n}/${r}/order/${i}`,title:t("Track order"),type:b.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},si=()=>{const{isOrderOpen:a,orderItems:t}=Ea(),{orderStep:n,setOrderStep:r,resetOrder:o}=Ea(),l=X(null),{t:d}=ut("order"),s=Et()&&n===oa.CART,c=i(t),u=()=>{o()};return a?e("div",{className:Gt,onClick:e=>{var a,t;(null===(t=null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.contains)||void 0===t?void 0:t.call(a,null==e?void 0:e.target))||u()},children:e(U,{ref:l,onClose:u,isOpen:a,title:d("Your order"),onBack:n===oa.CART?void 0:()=>{r(oa.CART)},content:(()=>{switch(n){case oa.DETAILS:return e(li,{});case oa.COMPLETED:return e(di,{});default:return e(ni,{})}})(),footer:e(Vt,{isOrderItemsEmpty:c}),hasLargeFooter:s})}):null},ci=J((({categoryProductMap:t=[],currency:i,language:n,productBlocksRef:r,containerRef:l,onCategoryInView:d})=>{const[s,c]=K(null),[u,h]=K(ja.LIST),g=[{icon:_e,type:ja.LIST},{icon:ve,type:ja.GRID}],v=e=>{const{name:a}=Ka(e,n);o(Ye,{name:a}),c(e)};return $((()=>{const e=new IntersectionObserver((e=>{var a;const t=((null===(a=null==l?void 0:l.current)||void 0===a?void 0:a.clientHeight)||1e3)/2;let i=null,n=1/0;e.forEach((e=>{if(e.isIntersecting){const a=e.boundingClientRect,r=a.top+a.height/2,o=Math.abs(r-t);o<n&&(n=o,i=e.target.getAttribute("data-category-id"))}})),i&&d(Number(i))}),{threshold:.1});return Object.entries(r.current||{}).forEach((([a,t])=>{t&&(t.setAttribute("data-category-id",a),e.observe(t))})),()=>{e.disconnect()}}),[r,l,d]),a("div",{className:wa,children:[e(m,{className:xa,alignItems:"center",children:g.map((({icon:a,type:t})=>e(P,{icon:a,onClick:()=>(e=>{h(e),o(Ze,{name:e})})(t),type:t===u?b.PRIMARY:b.DEFAULT},t)))}),e(_,{children:(t||[]).map((t=>{const{name:o}=$e(t,n),{id:l,products:d}=t;return a("div",{className:Ba,ref:e=>{e&&(r.current[l]=e)},"data-category-id":l,children:[e("h2",{className:Wa,children:o}),e("div",{className:Ha,children:e(_,{gap:0,children:(d||[]).map((a=>u===ja.GRID?e(gt,{product:a,currency:i,language:n,onClick:()=>v(a)},a.id):e(mt,{product:a,currency:i,language:n,onClick:()=>v(a)},a.id)))})})]},l)}))}),e(Nt,{product:s,onClose:()=>c(null)}),e(zt,{}),e(si,{})]})}),((e,a)=>e.categoryProductMap===a.categoryProductMap&&e.currency===a.currency&&e.language===a.language));ci.displayName="Products";var ui="Branches-module_branches__sOuoV",mi="Branches-module_list__vYoT2",hi="Branches-module_name__K0Z-4";const gi=({branches:a=[],rootPath:t="",onBranchSelect:i})=>{const n=({children:a,id:n})=>i?e("div",{onClick:()=>i(n),children:a}):e("a",{href:`${t}/${n}`,children:a});return e("div",{className:ui,children:e(j,{className:mi,children:a.map((({id:a,name:t})=>e(n,{id:a,children:e(w,{noBottomMargin:!0,children:e(y,{justifyContent:"center",alignItems:"center",fullHeight:!0,children:e("h2",{className:hi,children:t})})})},a)))})})};var vi={};var pi={content:"Auth-module_content__1ATBc",countryCode:"Auth-module_countryCode__zLFy4",terms:"Auth-module_terms__OH3th"};const _i=({formErrors:t,onChange:i})=>{const n=xe.map((({phoneCode:e})=>({label:e,value:e}))),{hostname:r,language:o}=Ve(),{t:l}=ut("auth"),{t:d}=ut("error"),[s,c]=K({countryCode:n[0].value,phoneNumber:""}),{url:h}=Me(r,o),g=e=>{var a;const{name:t,value:n}=(null==e?void 0:e.target)||{};if(!t)return;const r=null!==(a=null==n?void 0:n.trim())&&void 0!==a?a:"";if("phoneNumber"===t&&""!==r&&!u(r))return;const o=Object.assign(Object.assign({},s),{[t]:r}),l=(e=>`${e.countryCode}${e.phoneNumber}`.replaceAll("+",""))(o);i(l),c(o)};return a(_,{gap:1,fullWidth:!0,children:[a(m,{fullWidth:!0,alignItems:"flex-start",children:[e(A,{name:"countryCode",options:n,type:T.SELECT,className:pi.countryCode,value:s.countryCode,onChange:g}),e(A,{name:"phoneNumber",placeholder:l("Phone number"),type:T.TEL,fullWidth:!0,value:s.phoneNumber,onChange:g,errorMessage:d(t.phoneNumber)})]}),e("div",{className:pi.terms,children:a("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${h}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${h}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})},yi=({address:t,formErrors:i,onChange:n})=>{const{t:r}=ut("auth"),{t:o}=ut("error");return a(_,{gap:2,children:[e(S,{fullWidth:!0,align:"center",color:"muted",children:r("We sent a confirmation code to {{address}}",{address:t})}),e(x,{onChangeOTP:n,errorMessage:o(i.otp),inputMode:"numeric"})]})},bi=({formErrors:t,onChange:i,onCancel:n})=>{var r;const{customer:o}=Ea(),[l,d]=K((null==o?void 0:o.email)||""),{t:s}=ut("auth"),{t:c}=ut("error"),u=null!==(r=null==o?void 0:o.email)&&void 0!==r?r:"";return $((()=>{u&&d(u)}),[u]),a(_,{className:pi.container,alignItems:"center",gap:0,children:[e(A,{name:"email",placeholder:"Email",type:T.EMAIL,fullWidth:!0,value:l,onChange:e=>{var a;const t=(null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value)||"";d(t),i(t)},errorMessage:c(t.email)}),!l&&e(O,{onClick:n,label:s("I don't have an email"),type:b.DEFAULT})]})};var Ei={},fi="AddressAutocomplete-module_container__05nzV",Ii="AddressAutocomplete-module_suggestions__9-5Y2";const Si=e=>{const a={};return(e||[]).forEach((e=>{e.types.includes("street_number")?a.houseNumber=e.longText:e.types.includes("route")?a.street=e.longText:e.types.includes("locality")||e.types.includes("postal_town")?a.cityName=e.longText:e.types.includes("country")?a.countryCode=e.shortText:e.types.includes("postal_code")&&(a.postCode=e.longText)})),a},Pi=J((({placeHolder:t,inputLabel:i,language:n="en",origin:r,noMargin:o=!1,defaultAdressText:l="",onSelect:d})=>{const[s,c]=K(l),[u,m]=K([]),[h,g]=K(!0),v=X(l),p=Z((()=>Ee(void 0,void 0,void 0,(function*(){try{const{AutocompleteSessionToken:e,AutocompleteSuggestion:a}=yield google.maps.importLibrary("places"),t=new e,i={input:s,origin:r,language:n,sessionToken:t},{suggestions:o}=yield a.fetchAutocompleteSuggestions(i),l=yield(e=>Ee(void 0,void 0,void 0,(function*(){var a,t,i,n,r,o,l,d,s;const c=[];try{for(a=!0,t=Ie(e);!(n=(i=yield t.next()).done);a=!0){l=i.value,a=!1;const e=l.placePrediction,t=e.toPlace();yield t.fetchFields({fields:["location","addressComponents"]});const n=Si(t.addressComponents);c.push(Object.assign(Object.assign({},n),{text:e.text.toString(),title:e.mainText.text.toString(),subtitle:null===(s=null===(d=e.secondaryText)||void 0===d?void 0:d.text)||void 0===s?void 0:s.toString(),long:t.location.lng(),lat:t.location.lat(),placeId:e.placeId.toString(),distanceMeters:e.distanceMeters}))}}catch(e){r={error:e}}finally{try{a||n||!(o=t.return)||(yield o.call(t))}finally{if(r)throw r.error}}return c})))(o);m(l)}catch(e){console.error(e),m([])}}))),[s,n,r]);$((()=>{var e,a,t;if(!(null==s?void 0:s.trim())||!(null===(t=null===(a=null===(e=window.google)||void 0===e?void 0:e.maps)||void 0===a?void 0:a.places)||void 0===t?void 0:t.AutocompleteSuggestion)||v.current===s)return;const i=setTimeout((()=>{v.current=s,p()}),300);return()=>clearTimeout(i)}),[p,s]);return a("div",{className:fi,children:[e(A,{value:s,onChange:e=>{var a;const t=null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value;g(!0),c(t)},placeholder:t||"Enter address",label:i,fullWidth:!0,noMargin:o}),u.length>0&&h&&e(_,{fullWidth:!0,gap:0,className:Ii,children:u.map((a=>{const{title:t,subtitle:i,placeId:n}=a;return e(B,{onClick:()=>(e=>{c(e.text),m([]),g(!1),d(e)})(a),title:t,subtitle:i,isFullWidth:!0,icon:ye},n)}))})]})}),((e,a)=>e.defaultAdressText===a.defaultAdressText&&e.inputLabel===a.inputLabel&&e.language===a.language&&e.noMargin===a.noMargin&&e.onSelect===a.onSelect&&e.origin===a.origin&&e.placeHolder===a.placeHolder));Pi.displayName="AddressAutocomplete";const Ai={[Ge]:({params:t})=>{const{modalRef:i,note:n}=t,[r,o]=K(n||""),{setModal:l}=N(),{updateOrder:d}=Ea(),{t:s}=ut("order"),{t:c}=ut("common");return e(k,{ref:i,header:e("div",{children:s("Add an order note")}),content:e("div",{className:vi.container,children:e(A,{type:T.TEXT_AREA,placeholder:s("Specify any allergies, special requests, or ingredients you want to add or remove"),value:r,onChange:e=>{var a;return o(null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.value)}})}),footer:a(m,{justifyContent:"flex-end",children:[e(O,{label:c("Cancel"),onClick:()=>l(null),type:b.DEFAULT,size:"md"}),e(O,{label:c("Save"),onClick:()=>{d({note:r}),l(null)},size:"md"})]})})},[Ue]:({params:t})=>{const[n,r]=K({phoneNumber:"",otp:"",email:""}),[o,l]=K({}),[d,s]=K(""),{t:u}=ut("auth"),{t:m}=ut("error"),{t:h}=ut("common"),[g,v]=K(nt.PHONE),{setModal:p}=N(),{setOrderStep:y,getCustomer:b,customer:E}=Ea(),f=[nt.PHONE,nt.OTP,nt.EMAIL],{modalRef:I}=t,S=()=>{y(oa.DETAILS),p(null)},P=()=>{const e=(f.findIndex((e=>e===g))||0)+1;if(e>=f.length)return S();const a=f[e];v(a)},A=Z((e=>a=>{r((t=>Object.assign(Object.assign({},t),{[e]:a})))}),[]);return e(k,{ref:I,title:u("Create an account or log in"),onClose:()=>{p(null)},content:a(_,{className:pi.content,fullWidth:!0,children:[!!d&&e(R,{message:m(d),type:"error",onClear:()=>s(""),inline:!0}),(()=>{switch(g){case nt.OTP:return e(yi,{address:n.phoneNumber,onChange:A("otp"),formErrors:o});case nt.EMAIL:return e(bi,{onChange:A("email"),onCancel:S,formErrors:o});default:return e(_i,{onChange:A("phoneNumber"),formErrors:o})}})()]}),footer:e(O,{label:h("Continue"),onClick:()=>Ee(void 0,void 0,void 0,(function*(){s("");try{const a=g===nt.EMAIL,t=(null==E?void 0:E.email)===n.email,r=!!(null==E?void 0:E.email)&&!n.email;if(a&&(t||r))return P();const o=((e,a)=>{const t={},{phoneNumber:i,email:n,otp:r}=e||{};switch(a){case nt.PHONE:{const{isValid:e,error:a}=aa(i);e||(t.phoneNumber=a);break}case nt.OTP:{const{isValid:e,error:a}=aa(i);e||(t.phoneNumber=a),r&&6===r.length||(t.otp="Invalid OTP");break}case nt.EMAIL:n&&c(n)||(t.email="Invalid Email Address")}return t})(n,g);if(!i(o))return l(o);switch(l({}),g){case nt.PHONE:{const a=yield(e=n.phoneNumber,Ee(void 0,void 0,void 0,(function*(){return ha("customer",{phoneNumber:e})})));if(200!==(null==a?void 0:a.status))throw new Error("SOMETHING_WRONG");break}case nt.OTP:{const e=yield((e,a)=>Ee(void 0,void 0,void 0,(function*(){return ha("otp/verify",{otp:e,phoneNumber:a})})))(n.otp,n.phoneNumber);if(!(null==e?void 0:e.accessToken))throw new Error("SOMETHING_WRONG");Je.saveAuthToken(e);break}case nt.EMAIL:{const e=yield pa({email:n.email});if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield b(),P()}catch(e){s((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:n})}var e})),size:"lg",fullWidth:!0})})},[je]:({params:t})=>{const n=xe[0].code,r=Be[n][0],{getCustomer:o}=Ea(),{language:l,selectedBranch:d}=Ve(),{id:s,countryCode:c=n,cityName:u=r,street:m="",houseNumber:h="",floor:g,additionalNumber:v="",instructions:p="",longitude:E,latitude:f,postCode:I}=pt(),P={addressId:s,countryCode:c,cityName:u,street:m,houseNumber:h,additionalNumber:v,instructions:p,floor:g,latitude:f,longitude:E,postCode:I},{modalRef:C}=t,{t:D}=ut("customer"),{t:L}=ut("error"),{t:M}=ut("common"),{setModal:z}=N(),[G,U]=K(P),[j,w]=K({}),[x,B]=K(""),[W,H]=K(!1),V=j.countryCode||j.cityName||j.street||j.houseNumber,Q=Ht(P.street,P.houseNumber,void 0),q=e=>{var a,t;const i=null===(a=null==e?void 0:e.target)||void 0===a?void 0:a.name,n=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value;U((e=>Object.assign(Object.assign({},e),{[i]:n})))},F=()=>z(null),Y=Z((e=>{const a=Object.assign(Object.assign({},G),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber,latitude:e.lat,longitude:e.long,postCode:e.postCode}),t=Wt(a);U(a),w(t)}),[G]);return e(k,{ref:C,title:D("Update Delivery Address"),onClose:F,content:e("div",{className:Ei.content,children:a(_,{fullWidth:!0,children:[!!x&&e(R,{message:L(x),type:"error",onClear:()=>B(""),inline:!0}),a(_,{fullWidth:!0,gap:.5,children:[e(Pi,{onSelect:Y,language:l,origin:{lat:null==d?void 0:d.latitude,lng:null==d?void 0:d.longitude},noMargin:!0,defaultAdressText:Q}),V&&e(S,{color:b.DANGER,children:L(V)})]}),a(y,{gap:1,children:[e(y.Item,{flex:6,children:e(A,{name:"floor",label:D("Floor"),placeholder:"7",type:T.TEXT,value:G.floor,onChange:q,errorMessage:L(j.floor)})}),e(y.Item,{flex:6,children:e(A,{name:"additionalNumber",label:D("Additional number"),placeholder:"17",type:T.TEXT,value:G.additionalNumber,onChange:q,errorMessage:L(j.additionalNumber)})})]}),e(A,{name:"instructions",placeholder:D("Example: Door code is 555"),label:D("Delivery Instructions"),type:T.TEXT,fullWidth:!0,value:G.instructions,onChange:q,errorMessage:L(j.instructions)})]})}),footer:e(O,{label:M("Save"),onClick:()=>Ee(void 0,void 0,void 0,(function*(){B("");try{const e=Wt(G);if(!i(e))return w(e);w({}),H(!0);const a=yield pa({address:G});if(200!==(null==a?void 0:a.status))throw new Error("SOMETHING_WRONG");o(),F()}catch(e){B((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),_a(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:G})}finally{H(!1)}})),size:"lg",fullWidth:!0,isLoading:W})})}},Ti=()=>{var n;const{getCustomer:r}=Ea(),{name:l,coverImage:d,logoImage:s,branches:c=[],branchId:u,selectedBranch:m,language:h,categories:g,products:v,currency:p,instagram:_,facebook:y,whatsapp:b,telegram:E,tiktok:f,rootPath:I,hostname:S,onBranchSelect:P}=Ve(),A=c.length<=1,T=((e,a)=>{const t=a.reduce(((e,a)=>{if(!a.visible)return e;const t=Number(a.categoryId);return e[t]||(e[t]=[]),e[t].push(a),e}),{});return e.map((e=>Object.assign(Object.assign({},e),{products:t[Number(e.id)]||[]}))).filter((e=>{var a;return(null===(a=null==e?void 0:e.products)||void 0===a?void 0:a.length)>0}))})(g,v),k=A||!(null==m?void 0:m.name)?l:(null==m?void 0:m.name)||"",[O,C]=K(null===(n=null==g?void 0:g[0])||void 0===n?void 0:n.id),N=X({}),R=X(null),D=X(!0),{url:L,domain:M}=Me(S,h),z=Z((e=>Ee(void 0,void 0,void 0,(function*(){D.current=!1,C(e),(e=>{var a;const t=null===(a=null==N?void 0:N.current)||void 0===a?void 0:a[e];t&&(setTimeout((()=>{t.scrollIntoView({behavior:"smooth",block:"start"})}),100),setTimeout((()=>{D.current=!0}),1e3))})(e)}))),[]),G=Z((e=>{if(!(null==D?void 0:D.current))return;const a=((e,a,t)=>{var n;const r=null===(n=null==a?void 0:a.find)||void 0===n?void 0:n.call(a,(({id:a})=>a===e));if(i(r))return"";const{name:o}=$e(r,t);return o})(e,g,h);o(Fe,{name:a}),C(e)}),[g,h]),U=Z((()=>{if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),a=Number(e.get("category"));if(!a)return;const t=(g||[]).find((({id:e})=>e===a));i(t)||z(a)}),[g,z]);return $((()=>{U()}),[U]),$((()=>{r()}),[r]),a("div",{className:Se,ref:R,children:[e(Ga,{branch:m,name:k,coverImage:Ce(d),logoImage:Oe(s),instagram:_,facebook:y,whatsapp:b,telegram:E,tiktok:f}),A||u?a(t,{children:[e(Ua,{categoryProductMap:T,language:h,selectedCategoryId:O,onSelectCategory:z}),e(ci,{currency:p,language:h,productBlocksRef:N,containerRef:R,categoryProductMap:T,onCategoryInView:G})]}):e(gi,{branches:c,onBranchSelect:P,rootPath:I}),!!S&&e("a",{rel:"noopener noreferrer",target:"_blank",href:L,className:Ae,children:M})]})},ki=({data:a})=>e(He,{value:a,children:e(ba,{children:e(W,{modalsMap:Ai,children:e(Ti,{})})})});var Oi={};const Ci=({currentGoal:a,language:t,setGoal:i})=>{const{t:n}=ut("events",{language:t}),r=X({}),o=e=>{switch(e){case Fe:return n("Scrolled to Category");case qe:return n("Category Selected");case Ye:return n("Product Details");case Ke:return n("Product Added to Order");default:return""}},l=Z((e=>{var a,t;i(e),null===(t=null===(a=null==r?void 0:r.current)||void 0===a?void 0:a.close)||void 0===t||t.call(a)}),[i]);return e(H,{action:o(a),actionSize:"large",type:b.BORDERED_PRIMARY,closeRef:r,menu:e("div",{className:Oi.toolbarMenu,children:Xe.map((a=>e(V,{onClick:()=>l(a),children:o(a)},a)))})})},Ni=({data:a,isLoading:t=!1,language:i,goal:n,setGoal:r})=>{const{t:o}=ut("events",{language:i});return e(w,{title:o("Events"),toolbar:e(Ci,{language:i,currentGoal:n,setGoal:r}),children:t?e(C,{}):e(Q,{data:a})})};var Ri={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",benefit:"Pricing-module_benefit__-oBt1",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"};const Di={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}}},Li=[{title:"Smart QR Menu",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Link-in-bio",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Menu Analytics",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Unlimited Users",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Unlimited Products",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Unlimited Categories",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Unlimited Languages",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Product variants",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Product options",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"24/7 Support",[dt.APPETIZER]:!0,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Sales reports",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Multiple Branches",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Table Management",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Order Management",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Delivery Management",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!0,[dt.CHEFS_SPECIAL]:!0},{title:"Mobile App for Owners & Staff",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!1,[dt.CHEFS_SPECIAL]:!0},{title:"Point of Sale (POS)",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!1,[dt.CHEFS_SPECIAL]:!0},{title:"Third-Party Delivery Integrations",[dt.APPETIZER]:!1,[dt.MAIN_COURSE]:!1,[dt.CHEFS_SPECIAL]:!0}],Mi=({plan:t,language:i,interval:n,currency:r})=>{const{t:o}=ut("pricing",{language:i}),{price:d,discountedPrice:s}=Di[t],c=d[n];return void 0!==s?a(_,{gap:0,children:[a(m,{children:[e("span",{className:Ri.discountedPrice,children:l(s,r,i)}),e("span",{className:Ri.originalPrice,children:l(c,r,i)})]}),e(S,{size:"sm",children:o("/ month")})]}):a(m,{gap:.5,children:[e(S,{size:"xxl",variant:"bold",children:l(c,r,i)}),e(S,{size:"sm",children:o("/ month")})]})},zi=({currency:t,language:i,isLoading:n=!1,onPlanSelect:r,onIntervalSelect:o})=>{const[l,s]=K("annually"),{t:c}=ut("pricing",{language:i}),u=[dt.APPETIZER,dt.MAIN_COURSE],m=r?"Choose Plan":"Get Started",h=({children:a,plan:t})=>r?e("div",{className:Ri.plan,onClick:()=>{n||r(t)},children:a}):e("a",{className:Ri.plan,href:ze(i,`pricing-${t}`),target:"_blank",rel:"noreferrer noopener",children:a});return a("div",{className:Ri.container,children:[e("div",{className:Ri.intervals,children:["annually","monthly"].map((a=>e("div",{className:d(Ri,{interval:!0,active:l===a}),onClick:()=>(e=>{s(e),o&&o(e)})(a),children:c(a)},a)))}),e("div",{className:Ri.plans,children:u.map((r=>e(h,{plan:r,children:a(w,{children:[e("div",{className:Ri.title,children:c(Di[r].title)}),e("div",{className:Ri.price,children:e(Mi,{plan:r,language:i,interval:l,currency:t})}),e("div",{className:Ri.action,children:e(O,{label:c(m),fullWidth:!0,size:"xl",type:r===dt.MAIN_COURSE?b.PRIMARY:b.BORDERED_PRIMARY,onClick:()=>{},isLoading:n})}),e("div",{className:Ri.benefits,children:Li.map((t=>a("div",{className:Ri.benefit,children:[e(p,{icon:t[r]?pe:se,size:"md"})," ",e("span",{children:c(t.title)})]},t.title)))})]})},r)))})]})};export{Ni as Events,zi as Pricing,ki as PublicMenu};
|
|
2
2
|
//# sourceMappingURL=index.esm.js.map
|