@tabres/react 1.0.56 → 1.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import{Row as o,classNames as a,Column as n,Text as i,SVGIcon as d,useModalContext as l,IconLink as s,Tooltip as u,Flex as c,UIElementType as m,Modal as p,Button as _,Input as h,InputType as v,OTPInput as E,AlertBox as g,AddressAutocomplete as I,IconButton as y,Container as T,Carousel as b,CarouselItem as f,Chip as D,Avatar as A,Numpad as O,Loading as N,TextBanner as R,Description as C,Accordion as P,MethodSelection as S,Padding as k,Link as L,Drawer as M,ModalProvider as w,DropDown as z,DropDownMenuItem as j,Card as U,BarChart as W}from"@sorocraft/ui";import{createContext as B,useContext as V,useMemo as Y,useState as x,useCallback as F,useRef as H,useEffect as G,memo as K,useId as Q}from"react";import{Storage as q,isEmpty as Z,priceFormatter as X,sortNumbers as $,HttpClient as J,trackEvent as ee,checkIsValidEmail as re,classNames as te,isNil as oe}from"@sorocraft/js-utils";import{ChevronLeft as ae,Phone as ne,Whatsapp as ie,Instagram as de,Telegram as le,Tiktok as se,Facebook as ue,MessageHeartSquare as ce,Wifi as me,Clock as pe,MarkerPin as _e,ChevronUp as he,AlertCircle as ve,Plus as Ee,List as ge,Grid as Ie,PlaySquare as ye,ShoppingBag as Te,Eye as be,VolumeX as fe,VolumeMax as De,Close as Ae,Play as Oe,Minus as Ne,Trash as Re,PlayCircle as Ce,Edit as Pe,ReceiptCheck as Se,QrCode as ke,MobilePhone as Le,Building07 as Me,CreditCard as we,BankNote as ze,DotsHorizontal as je,ChevronDown as Ue,Check as We,Delivery as Be}from"@sorocraft/ui/icons";var Ve="PublicMenu-module_container__QLN6U",Ye="PublicMenu-module_footer__6G3DQ",xe="PublicMenu-module_headerText__hKbnP",Fe="PublicMenu-module_footerText__a4g0i";const He="ADD_UPDATE_NOTES",Ge="AUTH",Ke="ADD_UPDATE_ADDRESS",Qe="BRANCH_BUSINESS_HOURS",qe="PRODUCT_DETAILS",Ze=["en","az","nl","et","tr","ru","pl","pt","hr"],Xe=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],$e="tabres.com",Je=$e,er="https://images.tabres.com",rr=new q("tabres_cst_act","tabres_cst_rft"),tr=(e,r)=>{const t=r||"en";return"localhost:3000"===e?{url:`http://localhost:3000/${t}`,domain:$e}:{url:`https://${$e}/${t}`,domain:$e}},or=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${er}/${e}`:"",ar=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${er}/${e}`:"https://images.tabres.com/no-photo-128.webp",nr=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${er}/${e}`:"https://images.tabres.com/tabres-doodle.webp",ir=(e,r)=>{const t=parseInt(e.replace("#",""),16),o=(t>>16&255)/255,a=(t>>8&255)/255,n=(255&t)/255,i=Math.max(o,a,n),d=Math.min(o,a,n),l=(i+d)/2;let s=0,u=0;if(i!==d){const e=i-d;switch(u=l>.5?e/(2-i-d):e/(i+d),i){case o:s=(a-n)/e+(a<n?6:0);break;case a:s=(n-o)/e+2;break;case n:s=(o-a)/e+4}s/=6}const c=Math.max(0,Math.min(1,l+r/100)),m=(e,r,t)=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e);let p=c,_=c,h=c;if(0!==u){const e=c<.5?c*(1+u):c+u-c*u,r=2*c-e;p=m(r,e,s+1/3),_=m(r,e,s),h=m(r,e,s-1/3)}const v=e=>Math.round(255*e).toString(16).padStart(2,"0");return`#${v(p)}${v(_)}${v(h)}`},dr=()=>{const{hostname:e}=cr();return e||Je},lr=()=>{const{isInDashboard:e}=cr();return e||!1},sr=B({}),ur=({children:r,value:t})=>{var o,a,n,i,d,l,s,u,c,m,p,_,h,v,E,g,I,y,T,b;return e(sr.Provider,{value:t,children:e("div",{style:{"--sorocraft-color-primary":null===(o=t.menuDesign)||void 0===o?void 0:o.primaryColor,"--sorocraft-color-primary-light":(null===(a=t.menuDesign)||void 0===a?void 0:a.primaryColor)&&ir(t.menuDesign.primaryColor,37.5),"--sorocraft-color-primary-active":(null===(n=t.menuDesign)||void 0===n?void 0:n.primaryColor)&&ir(t.menuDesign.primaryColor,-7.5),"--tabres-menu-category-background-color":null===(i=t.menuDesign)||void 0===i?void 0:i.categoryBackgroundColor,"--tabres-menu-category-text-color":null===(d=t.menuDesign)||void 0===d?void 0:d.categoryTextColor,"--tabres-menu-product-card-background-color":null===(l=t.menuDesign)||void 0===l?void 0:l.productCardBackgroundColor,"--tabres-menu-product-card-text-color":null===(s=t.menuDesign)||void 0===s?void 0:s.productCardTextColor,"--tabres-menu-product-card-description-text-color":null===(u=t.menuDesign)||void 0===u?void 0:u.productCardDescriptionTextColor,"--tabres-menu-product-card-volume-text-color":null===(c=t.menuDesign)||void 0===c?void 0:c.productCardVolumeTextColor,"--tabres-menu-product-card-price-text-color":null===(m=t.menuDesign)||void 0===m?void 0:m.productCardPriceTextColor,"--tabres-menu-product-card-block-padding":null===(p=t.menuDesign)||void 0===p?void 0:p.productCardBlockPadding,"--tabres-menu-category-title-font-size":null===(_=t.menuDesign)||void 0===_?void 0:_.categoryTitleFontSize,"--tabres-menu-product-name-font-size":null===(h=t.menuDesign)||void 0===h?void 0:h.productNameFontSize,"--tabres-menu-product-price-font-size":null===(v=t.menuDesign)||void 0===v?void 0:v.productPriceFontSize,"--tabres-menu-distance-between-category-title-and-products":null===(E=t.menuDesign)||void 0===E?void 0:E.distanceBetweenCategoryTitleAndProducts,"--tabres-menu-product-description-font-size":null===(g=t.menuDesign)||void 0===g?void 0:g.productDescriptionFontSize,"--tabres-menu-product-volume-font-size":null===(I=t.menuDesign)||void 0===I?void 0:I.productVolumeFontSize,"--tabres-menu-product-separator-color":null===(y=t.menuDesign)||void 0===y?void 0:y.productSeparatorColor,"--tabres-menu-page-background-color":null===(T=t.menuDesign)||void 0===T?void 0:T.menuPageBackgroundColor,"--tabres-menu-page-text-color":null===(b=t.menuDesign)||void 0===b?void 0:b.menuPageTextColor},children:r})})},cr=()=>V(sr),mr="en",pr=()=>{const{business:e}=cr();return e||{}},_r=()=>{const{id:e}=pr();return e},hr=()=>{const{language:e}=cr();return e||mr},vr=()=>{const e=dr(),r=hr();return Y(()=>tr(e,r),[e,r])},Er=()=>{const{url:e}=vr(),r=(()=>{const{username:e}=pr();return e||""})();return Y(()=>`${e}/${r}`,[e,r])};var gr,Ir,yr,Tr,br;!function(e){e.FIXED="FIXED",e.DISTANCE="DISTANCE"}(gr||(gr={})),function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount",e.DELIVERY_FEE_AMOUNT="deliveryFeeAmount",e.DELIVERY_FEE_TYPE="deliveryFeeType",e.DELIVERY_FEE_TIERS="deliveryFeeTiers",e.SERVICE_CHARGE_ENABLED="serviceChargeEnabled",e.SERVICE_CHARGE_PERCENTAGE="serviceChargePercentage",e.ADD_TO_ORDER_ENABLED="addToOrderEnabled",e.GUEST_ORDER_ENABLED="guestOrderEnabled",e.PRIMARY_PAYMENT_METHODS="primaryPaymentMethods",e.SECONDARY_PAYMENT_METHODS="secondaryPaymentMethods"}(Ir||(Ir={})),function(e){e.PERCENTAGE="percentage",e.FIXED_AMOUNT="fixed"}(yr||(yr={})),function(e){e.ENTIRE_MENU="entire_menu",e.CLASS="class"}(Tr||(Tr={})),function(e){e.DELIVERY="delivery",e.TAKEAWAY="takeaway",e.DINE_IN="dine_in",e.ALL="ALL"}(br||(br={}));const fr=(e,r)=>{var t;return null===(t=((null==e?void 0:e.days)||[]).find(({day:e})=>e===r))||void 0===t?void 0:t.hours},Dr=e=>(e||"").split(":").map(Number),Ar=e=>{if(!e)return!1;const r=new Date,[t,o]=Dr(e.openAt),[a,n]=Dr(e.closeAt),i=new Date(r);i.setHours(t,o,0,0);const d=new Date(r);return d.setHours(a,n,0,0),d<=i&&(r<=d?i.setDate(i.getDate()-1):d.setDate(d.getDate()+1)),r>=i&&r<=d},Or=(e,r)=>"number"==typeof e&&"number"==typeof r&&(Math.abs(e)<=90&&Math.abs(r)<=180),Nr=e=>e*Math.PI/180,Rr=()=>{const{branches:e}=cr();return(e||[]).length<=1},Cr=()=>{const{branches:e,branchId:r}=cr(),t=Rr();return Z(e)?{}:t?e[0]:e.find(e=>e.id===Number(r))||{}},Pr=()=>Cr().currency||"EUR",Sr=()=>{const e=Cr();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},kr=()=>{const e=Cr(),{openingHours:r,deliveryHours:t}=e||{};if(!(null==r?void 0:r.days)||!(null==t?void 0:t.days))return{isOpen:!1,isDelivering:!1};const o=((new Date).getUTCDay()+6)%7,a=fr(r,o),n=fr(t,o);return{isOpen:Ar(a),isDelivering:Ar(n)}},Lr=()=>{const e=Cr();return(null==e?void 0:e.settings)||{}},Mr=()=>{const e=Lr();if(Z(e))return!1;const{deliveryOrderEnabled:r,dineInOrderEnabled:t,pickupOrderEnabled:o}=e;return r||t||o},wr=()=>{const{branchId:e}=cr();return e},zr=()=>{const{onBranchSelect:e}=cr();return e},jr=(e,r)=>e?r&&e[r]?e[r]:e[mr]?e[mr]:Object.values(e).find(Boolean)||"":"",Ur=(e,r)=>{if(!e)return{};const t={};for(const o of((e,r)=>{const t=r&&r!==mr?[r,mr]:[mr];return[...t,...Object.keys(e).filter(e=>!t.includes(e))]})(e,r)){const r=e[o];if(r)for(const e of Object.keys(r))!t[e]&&r[e]&&(t[e]=r[e])}return t},Wr=()=>{const e=Er(),r=wr();return r?`${e}/${r}`:e};function Br(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t}function Vr(e,r,t,o){return new(t||(t=Promise))(function(a,n){function i(e){try{l(o.next(e))}catch(e){n(e)}}function d(e){try{l(o.throw(e))}catch(e){n(e)}}function l(e){var r;e.done?a(e.value):(r=e.value,r instanceof t?r:new t(function(e){e(r)})).then(i,d)}l((o=o.apply(e,r||[])).next())})}var Yr,xr,Fr,Hr,Gr;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(Yr||(Yr={})),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"}(xr||(xr={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(Fr||(Fr={})),function(e){e.CASH="CASH",e.CARD="CARD",e.BANK_TRANSFER="BANK_TRANSFER",e.MOBILE="MOBILE",e.QR="QR",e.VOUCHER="VOUCHER",e.COMP="COMP",e.MIXED="MIXED"}(Hr||(Hr={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(Gr||(Gr={}));const Kr={orderType:null,preferredPaymentMethod:Hr.CASH},Qr=[Gr.CART,Gr.DETAILS,Gr.COMPLETED],qr=[Hr.CASH,Hr.CARD,Hr.BANK_TRANSFER,Hr.MOBILE,Hr.QR,Hr.VOUCHER],Zr=[Hr.CASH,Hr.CARD];qr.filter(e=>!Zr.includes(e));const Xr=[10,15,20],$r={data:null,isLoading:!1,error:null};var Jr;!function(e){e.FIELD_REQUIRED_ERROR="This field is required",e.TABLE_NOT_SELECTED="Please select a table",e.ADDRESS_IS_EMPTY="Please enter an address",e.EMPTY_ITEMS="Please choose product",e.BRANCH_NOT_SELECTED="Please select a branch"}(Jr||(Jr={}));const et=e=>{var r,t;const{price:o,variant:a,addons:n,quantity:i}=e||{},d=null!==(t=null!==(r=null==a?void 0:a.price)&&void 0!==r?r:o)&&void 0!==t?t:0,l=(n||[]).reduce((e,r)=>e+((null==r?void 0:r.options)||[]).reduce((e,r)=>{var t;return e+(null!==(t=null==r?void 0:r.price)&&void 0!==t?t:0)},0),0);return(d+l)*(null!=i?i:1)},rt=(e,r,t)=>{if(!e)throw new Error("Product ID is required");let o=`${e}`;r&&(o+=`-${r}`);const a=Object.entries(t||{}).map(([e,r])=>{if(!e||!r)return null;const t=Array.isArray(r)?$(r).filter(Boolean).join("-"):`${r}`;return t?`${e}-${t}`:null}).filter(Boolean).join("-");return a&&(o+=`-${a}`),o},tt=e=>{const r=(e||[]).map(e=>String(e||"").trim().toUpperCase()).filter(e=>qr.includes(e));return[...new Set(r)]},ot=e=>{switch(e){case"customer":return Jr.ADDRESS_IS_EMPTY;case"tableId":return Jr.TABLE_NOT_SELECTED;case"items":return Jr.EMPTY_ITEMS;case"branchId":return Jr.BRANCH_NOT_SELECTED;default:return Jr.FIELD_REQUIRED_ERROR}},at="https://api.tabres.com/api/v2",nt=new J({baseURL:at,headers:{"Content-Type":"application/json"},credentials:"include"});nt.onRequest(e=>{const{accessToken:r=""}=rr.getAuthToken();return e.headers.Authorization=r,e}),nt.onResponse(e=>Vr(void 0,void 0,void 0,function*(){return yield e.json().catch(()=>null)}));const it=(...e)=>Vr(void 0,[...e],void 0,function*(e=null,r={}){try{return ee("error",{message:null==e?void 0:e.message}),yield fetch(`${at}/log/client`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Object.assign({message:(null==e?void 0:e.message)||JSON.stringify(e)},r))})}catch(e){console.error(e)}}),dt=({defaultOrderType:e,defaultPaymentMethod:r,defaultBranchId:t})=>{const o=(()=>{const{tableId:e}=cr();return e})(),{isOpen:a,isDelivering:n}=kr(),i=Lr(),d=e||((e,r,t)=>{if(!e)return null;const{deliveryOrderEnabled:o,dineInOrderEnabled:a,pickupOrderEnabled:n}=e;return o&&t?Yr.DELIVERY:a&&r?Yr.DINE_IN:n&&r?Yr.PICK_UP:null})(i,a,n);return{branchId:t,orderType:d,tableId:o?Number(o):void 0,preferredPaymentMethod:r||Hr.CASH}},lt=B({order:Kr,orderStep:Gr.CART,orderItems:{},isOrderOpen:!1,customer:{},guestContact:{},trackingId:"",errors:{},updateOrder:()=>{},updateGuestContact:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),st=({children:r,defaultOrderType:t,defaultPaymentMethod:o,defaultBranchId:a,isOrderDefaultOpen:n=!1})=>{const i=dt({defaultOrderType:t,defaultPaymentMethod:o,defaultBranchId:a}),[d,l]=x({}),[s,u]=x({}),[c,m]=x(i),[p,_]=x(Gr.CART),[h,v]=x({}),[E,g]=x(n),[I,y]=x(""),[T,b]=x({}),f=F(e=>{m(r=>Object.assign(Object.assign({},r),e)),["branchId","tableId"].forEach(r=>{e[r]&&b(e=>(null==e?void 0:e[r])?Object.assign(Object.assign({},e),{[r]:null}):e)})},[]),D=F(e=>{u(r=>Object.assign(Object.assign({},r),e))},[]),A=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a,isAddOperation:n})=>{if(Z(e))return;const{id:i,variants:d,addons:l,price:s,listingPrice:u,sellUnitType:c}=e,m=null!=u?u:s,p=rt(i,t,o);v(e=>{var s;const u=e[p],_=parseFloat((n?((null==u?void 0:u.quantity)||0)+r:r).toFixed(3));if(_<=0){const r=e,t=p;r[t];return Br(r,["symbol"==typeof t?t:t+""])}const h=d.find(({id:e})=>e===t),v=((e=[],r={})=>Object.entries(r).map(([r,t])=>{const o=Number(r),a=Array.isArray(t)?t:[t],n=e.find(e=>e.id===o);if(Z(n))return{addonId:o,options:[]};const i=(n.options||[]).filter(e=>a.includes(e.id)).map(e=>{var r;return{optionId:e.id,price:null!==(r=e.listingPrice)&&void 0!==r?r:e.price}});return{addonId:o,options:i}}))(l,o);return Object.assign(Object.assign({},e),{[p]:Object.assign(Object.assign({productId:i,quantity:_,price:m,note:a},!Z(h)&&{variant:{variantId:h.id,price:null!==(s=h.listingPrice)&&void 0!==s?s:h.price}}),{addons:v,sellUnitType:c})})}),n&&b(e=>(null==e?void 0:e.items)?Object.assign(Object.assign({},e),{items:null}):e)},[]),O=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a})=>A({product:e,quantity:r,variantId:t,selectedAddons:o,note:a,isAddOperation:!0}),[A]),N=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a})=>A({product:e,quantity:r,variantId:t,selectedAddons:o,note:a,isAddOperation:!1}),[A]),R=F(e=>{e&&v(r=>{if(Z(r))return r;return Object.entries(r).reduce((r,[t,o])=>(o.productId!==e&&(r[t]=o),r),{})})},[]),C=F(()=>Vr(void 0,void 0,void 0,function*(){try{const{accessToken:e}=rr.getAuthToken();if(!e)return;const r=yield Vr(void 0,void 0,void 0,function*(){return nt.get("/customer")});if(!(null==r?void 0:r.id))throw new Error("SOMETHING_WENT_WRONG");l(r)}catch(e){it(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),P=F((e=!1,r=!0)=>{r&&g(!1),(p===Gr.COMPLETED||e)&&(m(i),v({}),u({}),_(Gr.CART),y(""))},[i,p]),S=F(e=>{b(r=>Object.assign(Object.assign({},r),{[e]:ot(e)}))},[]),k=F(()=>{b({})},[]),L=Y(()=>({order:c,orderStep:p,orderItems:h,isOrderOpen:E,customer:d,guestContact:s,trackingId:I,errors:T,updateOrder:f,updateGuestContact:D,setOrderStep:_,addProduct:O,updateProduct:N,removeAllProductVariants:R,setIsOrderOpen:g,getCustomer:C,resetOrder:P,setTrackingId:y,updateOrderErrors:S,resetErrors:k}),[c,p,h,E,d,s,I,T,f,D,O,N,R,C,P,y,S,k]);return e(lt.Provider,{value:L,children:r})},ut=()=>V(lt);var ct;!function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(ct||(ct={}));const mt=()=>{const{videoId:e}=cr();return e},pt=()=>{const{videos:e}=cr();return Y(()=>e||[],[e])},_t=()=>{const e=pt(),r=mt();return Y(()=>r&&e.find(e=>e.productId===Number(r))||{},[e,r])};const ht=e=>{const r=Er(),t=wr();let o=r;return t&&(o+=`/${t}`),e&&(o+=`/videos/${e}`),o},vt=()=>{const e=(()=>{const e=pt();return Y(()=>e[0],[e])})(),r=ht(null==e?void 0:e.productId);return Z(e)?"":r};var Et="BusinessHeader-module_container__X22c3",gt="BusinessHeader-module_cover__l-1W8",It="BusinessHeader-module_content__sjiqO",yt="BusinessHeader-module_logo__DWaaU",Tt="BusinessHeader-module_info__6RQFI",bt="BusinessHeader-module_name__Ynpex",ft={container:"Languages-module_container__nJeK1",currentLanguage:"Languages-module_currentLanguage__EFw6Q",options:"Languages-module_options__6jLRm",option:"Languages-module_option__QkVQd",isOpen:"Languages-module_isOpen__eUGbg",flexWide:"Languages-module_flexWide__zQ9jN",slidein:"Languages-module_slidein__C4UHU",fadeInOut:"Languages-module_fadeInOut__U-vhH",heightAnimation:"Languages-module_heightAnimation__gIQkF",fadein:"Languages-module_fadein__vPmsX",floatAnimation:"Languages-module_floatAnimation__L-kPH",bottomSheet:"Languages-module_bottomSheet__-t-q8",slideRightToLeft:"Languages-module_slideRightToLeft__y0l-f",rotation:"Languages-module_rotation__gp8P5",pulse:"Languages-module_pulse__h9hxJ"};const Dt=()=>{const[t,n]=x(!1),i=pr().languages||[],d=hr(),l=(()=>{const{onLanguageSelect:e}=cr();return e})(),s=i.length>1,u=i.filter(({code:e})=>e!==d)||[],c=e=>`https://images.tabres.com/languages/${e}.svg`;return s?e("div",{className:ft.container,onClick:()=>n(!t),children:r(o,{alignItems:"center",gap:0,children:[e(o,{alignItems:"center",className:a(ft,{options:!0,isOpen:t}),children:u.map(({code:r})=>e("img",{src:c(r),className:ft.option,onClick:()=>null==l?void 0:l(r),alt:r},r))}),e("img",{src:c(d),alt:d,className:ft.currentLanguage})]})}):null},At=()=>{const{coverPhoto:t,avatar256:o,name:a}=pr();return r("div",{className:Et,children:[e("img",{src:nr(t),alt:a,className:gt,width:1024,height:400}),e("div",{className:It,children:r(n,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:Et,children:[e("img",{src:ar(o),alt:a,className:yt,width:96,height:96}),e("div",{className:Tt,children:e(i,{variant:"h1",color:"white",className:bt,align:"center",children:a})})]})}),e(Dt,{})]})};var Ot="BranchHeader-module_container__Ol56f",Nt="BranchHeader-module_cover__DGWZX",Rt="BranchHeader-module_content__O8E27",Ct="BranchHeader-module_logo__DL7Si",Pt="BranchHeader-module_info__Ym-ln",St="BranchHeader-module_name__91VkO",kt="BranchHeader-module_address__Y140r",Lt="BranchHeader-module_addressText__ofVQQ",Mt="BackIcon-module_container__uknWc";const wt=({onClick:r,size:t,theme:o})=>{const a=Er(),n=lr(),i=zr();return e("div",{className:Mt,onClick:r||(()=>{if(n)return null==i?void 0:i("");"undefined"!=typeof window&&(window.location.href=a)}),children:e(d,{icon:ae,size:t,theme:o})})};var zt="HeaderLinks-module_container__wfIXS",jt="HeaderLinks-module_links__S5qXC",Ut="HeaderLinks-module_wifiPassword__j4cgP",Wt="HeaderLinks-module_businessHours__qVA-Q",Bt="HeaderLinks-module_icon__cQpBK",Vt={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","Unsupported country code":"Ölkə kodu düzgün deyil","Invalid OTP":"Təsdiq kodu düzgün deyil",INVALID_OTP:"Təsdiq kodu düzgün deyil",OTP_RATE_LIMIT_EXCEEDED:"Təsdiq kodu göndərmək üçün limiti keçmisiniz. Biraz sonra, yenidən yoxlayın","Invalid Email Address":"Email ünvanı düzgün deyil",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu funksiya mövcud tarif planınıza daxil deyil.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sifariş növü aktiv deyil",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sifariş növü indi aktiv deyil",COUNTRY_REQUIRED:"Ölkə daxil edilməlidir.",CITY_REQUIRED:"Şəhər daxil edilməlidir.",STREET_REQUIRED:"Küçə adı daxil edilməlidir.",STREET_NUMBER_REQUIRED:"Ev nömrəsi daxil edilməlidir.",OUT_OF_DELIVERY_RANGE:"Bu filial sizin ünvana çatdırılma etmir.",DELIVERY_DISTANCE_NOT_COVERED:"Bu filial sizin ünvana çatdırılma etmir.",NO_ORDER_TYPE:"Zəhmət olmazsa, sifariş növünü seçin.",INVALID_ADDRESS:"Ünvan düzgün deyil"},common:{Save:"Yadda saxla",Cancel:"Ləğv et",Continue:"Davam et"},order:{"View order":"Şifarişi göstər","Remove from order":"Sifarişdən sil","Update order":"Sifarişi yenilə","Add to order":"Sifarişə əlavə et",Add:"Əlavə et","Your order":"Sifarişiniz",Subtotal:"Ümumi","Empty order":"Boş sifariş","You don't have any items in your order":"Sifarişinizdə heç bir məhsul yoxdur","Add items":"Məhsul əlavə et","Add an order note":"Restoran üçün qeyd","Specify any allergies, special requests, or ingredients you want to add or remove":"Hər hansısa allergiyanız, xüsusi istəkləriniz və ya əlavə etmək, çıxarmaq istədiyiniz inqrediyentlər varsa, qeyd edin.","Your Order is Completed!":"Sifarişiniz tamamlandı!","Thank you! We've received your order and it will be delivered shortly.":"Təşəkkür edirik! Sifarişinizi qəbul etdik, qısa zamanda çatdırılacaq.",Delivery:"Çatdırılma","Dine in":"Masaya",Pickup:"Al-apar",Cash:"Nağd","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.","Place order":"Sifariş et",Continue:"Davam et","Not available":"Mövcud deyil","In order":"Sifarişdə","Product choices":"Seçimlər","Track order":"Sifarişi izlə","Minimum order amount for delivery is {{amount}}":"Çatdırılma üçün sifarişiniz minimum {{amount}} olmalıdır","This field is required":"Bu xana mütləq doldurulmalıdır","Please select a table":"Zəhmət olmazsa, masanı seçin","Please enter an address":"Zəhmət olmazsa, ünvanı daxil edin","Please choose product":"Zəhmət olmazsa, məhsul seçin",Table:"Masa","Select Table":"Masanı seçin",Card:"Kart ilə","Payment method":"Ödəniş üsulu","More methods":"Digər üsullar","Bank transfer":"Bank köçürməsi","Mobile pay":"Mobil ödəniş","QR code":"QR kod",Voucher:"Vauçer","Closed Now":"Hazırda bağlıdır","Delivery Fee":"Çatdırılma","Play video":"Videonu izlə"," / kg":" / kq"," / l":" / l",Discount:"Endirim","Discount ({{rate}}%)":"Endirim ({{rate}}%)","Service Fee ({{rate}}%)":"Servis haqqı ({{rate}}%)","Add a tip":"Bəxşiş əlavə et",None:"Yoxdur",Custom:"Fərdi",Tip:"Bəxşiş","Total with tip":"Bəxşişlə cəm","Enter tip amount":"Bəxşiş məbləğini daxil edin","Contains allergens":"Tərkibindəki allergenlər"},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",Floor:"Mərtəbə","Enter address":"Ünvanı daxil edin","House No.":"Ev nömrəsi","Your details":"Məlumatlarınız","Full name":"Ad və soyad","Your name":"Adınız","Phone number":"Mobil nömrə",Email:"E-poçt"},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"},branch:{"WEEKDAY-0":"Bazar ertəsi","WEEKDAY-1":"Çərşənbə axşamı","WEEKDAY-2":"Çərşənbə","WEEKDAY-3":"Cümə axşamı","WEEKDAY-4":"Cümə","WEEKDAY-5":"Şənbə","WEEKDAY-6":"Bazar",Closed:"Bağlıdır","Opening Hours":"İş saatları","Delivery Hours":"Çatdırılma saatları",Feedback:"Rəy bildir"}},en:{error:{SOMETHING_WRONG:"Something went wrong! Please try again later",FIELD_REQUIRED:"This field is required",INVALID_OTP:"Invalid OTP",OTP_RATE_LIMIT_EXCEEDED:"OTP limit has exceeded. Please try again later",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"This feature is not available for your current plan.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"This order type is not available for this business.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"This order type is not available right now.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required.",OUT_OF_DELIVERY_RANGE:"This branch doesn't deliver to your address.",DELIVERY_DISTANCE_NOT_COVERED:"This branch doesn't deliver to your address.",NO_ORDER_TYPE:"Please select an order type.",INVALID_ADDRESS:"Invalid address"},common:{},order:{},customer:{},auth:{},events:{},branch:{"WEEKDAY-0":"Monday","WEEKDAY-1":"Tuesday","WEEKDAY-2":"Wednesday","WEEKDAY-3":"Thursday","WEEKDAY-4":"Friday","WEEKDAY-5":"Saturday","WEEKDAY-6":"Sunday"}},es:{auth:{"Create an account or log in":"Crear una cuenta o iniciar sesión","Phone number":"Número de teléfono","I don't have an email":"No tengo correo electrónico","We sent a confirmation code to {{address}}":"Hemos enviado un código de confirmación a {{address}}"},branch:{"WEEKDAY-0":"Lunes","WEEKDAY-1":"Martes","WEEKDAY-2":"Miércoles","WEEKDAY-3":"Jueves","WEEKDAY-4":"Viernes","WEEKDAY-5":"Sábado","WEEKDAY-6":"Domingo",Closed:"Cerrado","Opening Hours":"Horarios de apertura","Delivery Hours":"Horarios de entrega",Feedback:"Comentarios"},common:{Save:"Guardar",Cancel:"Cancelar",Continue:"Continuar"},customer:{"Unknown address":"Dirección desconocida","No address available":"Sin dirección disponible","Update Delivery Address":"Actualizar dirección de entrega",Country:"País",City:"Ciudad","Baker Street":"Calle Baker",Address:"Dirección","House number":"Número de casa","Additional number":"Número adicional","Example: Door code is 555":"Ejemplo: El código de la puerta es 555","Delivery Instructions":"Instrucciones de entrega",Floor:"Planta","Enter address":"Introducir dirección","House No.":"Nº de casa","Your details":"Tus datos","Full name":"Nombre completo","Your name":"Tu nombre","Phone number":"Número de teléfono",Email:"Correo electrónico"},error:{SOMETHING_WRONG:"¡Algo salió mal! Por favor, inténtalo de nuevo más tarde.",FIELD_REQUIRED:"Este campo es obligatorio","Unsupported country code":"Código de país no soportado","Invalid OTP":"Código de confirmación inválido",INVALID_OTP:"Código de confirmación inválido",OTP_RATE_LIMIT_EXCEEDED:"Has superado el límite de códigos. Por favor, inténtalo de nuevo más tarde.","Invalid Email Address":"Dirección de correo electrónico no válida",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Esta función no está disponible en tu plan actual.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Este tipo de pedido no está disponible para este negocio.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Este tipo de pedido no está disponible en este momento.",COUNTRY_REQUIRED:"El país es obligatorio.",CITY_REQUIRED:"La ciudad es obligatoria.",STREET_REQUIRED:"La calle es obligatoria.",STREET_NUMBER_REQUIRED:"El número de calle es obligatorio.",OUT_OF_DELIVERY_RANGE:"Este establecimiento no realiza entregas en tu dirección.",DELIVERY_DISTANCE_NOT_COVERED:"Este establecimiento no realiza entregas en tu dirección.",NO_ORDER_TYPE:"Por favor, selecciona un tipo de pedido.",INVALID_ADDRESS:"Dirección no válida"},events:{Events:"Eventos","Scrolled to Category":"Desplazado a la categoría","Category Selected":"Categoría seleccionada","Product Details":"Detalles del producto","Product Added to Order":"Producto añadido al pedido"},order:{"View order":"Ver pedido","Remove from order":"Eliminar del pedido","Update order":"Actualizar pedido","Add to order":"Añadir al pedido",Add:"Añadir","Your order":"Tu pedido",Subtotal:"Subtotal","Empty order":"Pedido vacío","You don't have any items in your order":"No tienes ningún artículo en tu pedido","Add items":"Añadir artículos","Add an order note":"Añadir nota al pedido","Specify any allergies, special requests, or ingredients you want to add or remove":"Indica cualquier alergia, petición especial o ingrediente que quieras añadir o quitar","Your Order is Completed!":"¡Tu pedido se ha completado!","Thank you! We've received your order and it will be delivered shortly.":"¡Gracias! Hemos recibido tu pedido y será entregado en breve.",Delivery:"Entrega","Dine in":"Para tomar aquí",Pickup:"Para recoger",Cash:"Efectivo","Order summary":"Resumen del pedido",Items:"Artículos",Tax:"Impuestos",Total:"Total","Special instructions, allergies, etc.":"Instrucciones especiales, alergias, etc.","Place order":"Realizar pedido",Continue:"Continuar","Not available":"No disponible","In order":"En el pedido","Product choices":"Opciones de producto","Track order":"Seguimiento del pedido","Minimum order amount for delivery is {{amount}}":"El importe mínimo de pedido para entrega es {{amount}}","This field is required":"Este campo es obligatorio","Please select a table":"Por favor, selecciona una mesa","Please enter an address":"Por favor, introduce una dirección","Please choose product":"Por favor, elige un producto",Table:"Mesa","Select Table":"Seleccionar mesa",Card:"Tarjeta","Payment method":"Método de pago","More methods":"Más métodos","Bank transfer":"Transferencia bancaria","Mobile pay":"Pago móvil","QR code":"Código QR",Voucher:"Vale","Closed Now":"Cerrado ahora","Delivery Fee":"Gastos de envío","Play video":"Reproducir vídeo"," / kg":" / kg"," / l":" / l",Discount:"Descuento","Discount ({{rate}}%)":"Descuento ({{rate}}%)",Events:"Eventos","Service Fee ({{rate}}%)":"Cargo por servicio ({{rate}}%)","Add a tip":"Añadir propina",None:"Ninguna",Custom:"Otro",Tip:"Propina","Total with tip":"Total con propina","Enter tip amount":"Introduce el importe de la propina","Contains allergens":"Contiene alérgenos"}},ru:{error:{SOMETHING_WRONG:"Что-то пошло не так! Пожалуйста, попробуйте позже",FIELD_REQUIRED:"Это поле обязательно для заполнения","Unsupported country code":"Неподдерживаемый код страны","Invalid OTP":"Неверный код подтверждения",INVALID_OTP:"Неверный код подтверждения",OTP_RATE_LIMIT_EXCEEDED:"Превышен лимит кодов. Попробуйте позже","Invalid Email Address":"Неверный адрес электронной почты",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Эта функция недоступна в вашем текущем тарифе.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Этот тип заказа недоступен для этого заведения.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Этот тип заказа сейчас недоступен.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен.",OUT_OF_DELIVERY_RANGE:"Этот филиал не доставляет по вашему адресу.",DELIVERY_DISTANCE_NOT_COVERED:"Этот филиал не доставляет по вашему адресу.",NO_ORDER_TYPE:"Пожалуйста, выберите тип заказа.",INVALID_ADDRESS:"Неверный адрес"},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ",Add:"Добавить","Your order":"Ваш заказ","Empty order":"Пустой заказ","You don't have any items in your order":"В вашем заказе нет продуктов","Add items":"Добавить продукты",Subtotal:"Итого",Events:"События","Product choices":"Варианты продукта","In order":"В заказе","Not available":"Не доступен","Specify any allergies, special requests, or ingredients you want to add or remove":"Укажите, если у вас есть аллергия, особые пожелания или ингредиенты, которые вы хотите добавить или убрать.","Thank you! We've received your order and it will be delivered shortly.":"Спасибо! Мы получили ваш заказ и скоро доставим его.","Add an order note":"Добавить примечание к заказу","Your Order is Completed!":"Ваш заказ завершен!",Delivery:"Доставка","Dine in":"На месте",Pickup:"Самовывоз",Cash:"Наличные","Order summary":"Обзор заказа",Items:"Продукты",Tax:"Налог",Total:"Итого","Special instructions, allergies, etc.":"Особые инструкции, аллергии и т.д.","Place order":"Оформить заказ",Continue:"Продолжить","Track order":"Отследить заказ","Minimum order amount for delivery is {{amount}}":"Минимальная сумма заказа для доставки — {{amount}}","This field is required":"Это поле обязательно для заполнения","Please select a table":"Пожалуйста, выберите столик","Please enter an address":"Пожалуйста, введите адрес","Please choose product":"Пожалуйста, выберите продукт",Table:"Стол","Select Table":"Выбрать столик",Card:"Картой","Payment method":"Способ оплаты","More methods":"Другие способы","Bank transfer":"Банковский перевод","Mobile pay":"Мобильная оплата","QR code":"QR-код",Voucher:"Ваучер","Closed Now":"Сейчас закрыто","Delivery Fee":"Доставка","Play video":"Смотреть видео",Discount:"Скидка","Discount ({{rate}}%)":"Скидка ({{rate}}%)","Service Fee ({{rate}}%)":"Сервисный сбор ({{rate}}%)","Add a tip":"Добавить чаевые",None:"Без чаевых",Custom:"Другое",Tip:"Чаевые","Total with tip":"Итого с чаевыми","Enter tip amount":"Введите сумму чаевых","Contains allergens":"Содержит аллергены"},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":"Инструкции по доставке",Floor:"Этаж","Enter address":"Введите адрес","House No.":"Дом №","Your details":"Ваши данные","Full name":"Имя и фамилия","Your name":"Ваше имя","Phone number":"Номер телефона",Email:"Эл. почта"},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":"Продукт добавлен в заказ"},branch:{"WEEKDAY-0":"Понедельник","WEEKDAY-1":"Вторник","WEEKDAY-2":"Среда","WEEKDAY-3":"Четверг","WEEKDAY-4":"Пятница","WEEKDAY-5":"Суббота","WEEKDAY-6":"Воскресенье",Closed:"Закрыто","Opening Hours":"Часы работы","Delivery Hours":"Время доставки"}},tr:{error:{SOMETHING_WRONG:"Bir şeyler yanlış gitti! Lütfen daha sonra tekrar deneyin",FIELD_REQUIRED:"Bu alan zorunludur","Unsupported country code":"Desteklenmeyen ülke kodu","Invalid OTP":"Geçersiz doğrulama kodu",INVALID_OTP:"Geçersiz doğrulama kodu",OTP_RATE_LIMIT_EXCEEDED:"OTP sınırı aşıldı. Lütfen daha sonra tekrar deneyin","Invalid Email Address":"Geçersiz e-posta adresi",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu özellik mevcut planınızda yer almıyor.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sipariş türü bu işletmede aktif değil.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sipariş türü şu anda aktif değil.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur.",OUT_OF_DELIVERY_RANGE:"Bu şube sizin adrese teslimat yapmıyor.",DELIVERY_DISTANCE_NOT_COVERED:"Bu şube sizin adrese teslimat yapmıyor.",NO_ORDER_TYPE:"Lütfen bir sipariş türü seçin.",INVALID_ADDRESS:"Geçersiz adres"},common:{Save:"Kaydet",Cancel:"İptal et",Continue:"Devam et"},order:{"View order":"Siparişi Görüntüle","Remove from order":"Siparişten Kaldır","Update order":"Siparişi Güncelle","Add to order":"Siparişe Ekle",Add:"Ekle","Your order":"Siparişiniz","Empty order":"Boş sipariş","You don't have any items in your order":"Siparişinizde hiç bir ürün yok","Add items":"Ürün ekle",Subtotal:"Toplam",Events:"Olaylar","Product choices":"Seçenekler","In order":"Siparişte","Not available":"Mevcut değil","Specify any allergies, special requests, or ingredients you want to add or remove":"Herhangi bir alerjiniz, özel isteğiniz ya da eklemek veya çıkarmak istediğiniz malzemeler varsa belirtin.","Thank you! We've received your order and it will be delivered shortly.":"Teşekkürler! Siparişinizi aldık, kısa süre içinde teslim edilecek.","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","Order summary":"Sipariş özeti",Items:"Ürünler",Tax:"Vergi",Total:"Toplam","Special instructions, allergies, etc.":"Özel talimatlar, alerjiler vb.","Place order":"Sipariş ver",Continue:"Devam et","Track order":"Siparişi takip et","Minimum order amount for delivery is {{amount}}":"Teslimat için minimum sipariş tutarı {{amount}} olmalı","This field is required":"Bu alan zorunludur","Please select a table":"Lütfen bir masa seçin","Please enter an address":"Lütfen bir adres girin","Please choose product":"Lütfen bir ürün seçin",Table:"Masa","Select Table":"Masa seçin",Card:"Kart ile","Payment method":"Ödeme yöntemi","More methods":"Diğer yöntemler","Bank transfer":"Banka havalesi","Mobile pay":"Mobil ödeme","QR code":"QR kod",Voucher:"Kupon","Closed Now":"Şu anda kapalı","Delivery Fee":"Teslimat ücreti","Play video":"Videoyu izle",Discount:"İndirim","Discount ({{rate}}%)":"İndirim ({{rate}}%)","Service Fee ({{rate}}%)":"Servis Ücreti ({{rate}}%)","Add a tip":"Bahşiş ekle",None:"Yok",Custom:"Özel",Tip:"Bahşiş","Total with tip":"Bahşişle toplam","Enter tip amount":"Bahşiş tutarını girin","Contains allergens":"Alerjen içerir"},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ı",Floor:"Kat","Enter address":"Adres girin","House No.":"Ev No.","Your details":"Bilgileriniz","Full name":"Ad soyad","Your name":"Adınız","Phone number":"Telefon numarası",Email:"E-posta"},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"},branch:{"WEEKDAY-0":"Pazartesi","WEEKDAY-1":"Salı","WEEKDAY-2":"Çarşamba","WEEKDAY-3":"Perşembe","WEEKDAY-4":"Cuma","WEEKDAY-5":"Cumartesi","WEEKDAY-6":"Pazar",Closed:"Kapalı","Opening Hours":"Çalışma saatleri","Delivery Hours":"Teslimat saatleri"}},nl:{error:{SOMETHING_WRONG:"Er is iets misgegaan! Probeer het later opnieuw",FIELD_REQUIRED:"Dit veld is verplicht","Unsupported country code":"Niet-ondersteunde landcode","Invalid OTP":"Ongeldige verificatiecode",INVALID_OTP:"Ongeldige verificatiecode",OTP_RATE_LIMIT_EXCEEDED:"Te veel pogingen. Probeer het later opnieuw","Invalid Email Address":"Ongeldig e-mailadres",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Deze functie is niet beschikbaar in je huidige pakket.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Dit type bestelling is niet beschikbaar bij dit bedrijf.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Dit besteltype is op dit moment niet beschikbaar.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht.",OUT_OF_DELIVERY_RANGE:"Deze vestiging bezorgt niet op jouw adres.",DELIVERY_DISTANCE_NOT_COVERED:"Deze vestiging bezorgt niet op jouw adres.",NO_ORDER_TYPE:"Selecteer een besteltype.",INVALID_ADDRESS:"Ongeldig adres"},common:{Save:"Opslaan",Cancel:"Annuleren",Continue:"Doorgaan"},order:{"View order":"Bestelling bekijken","Remove from order":"Uit bestelling verwijderen","Update order":"Bestelling bijwerken","Add to order":"Aan bestelling toevoegen",Add:"Toevoegen","Your order":"Uw bestelling","Empty order":"Lege bestelling","You don't have any items in your order":"U heeft geen items in uw bestelling","Add items":"Items toevoegen",Subtotal:"Totaal",Events:"Gebeurtenissen","Product choices":"Productkeuzes","In order":"In bestelling","Not available":"Niet beschikbaar","Specify any allergies, special requests, or ingredients you want to add or remove":"Geef eventuele allergieën, speciale wensen of ingrediënten die je wilt toevoegen of weglaten aan.","Thank you! We've received your order and it will be delivered shortly.":"Bedankt! We hebben je bestelling ontvangen en bezorgen het zo snel mogelijk.","Add an order note":"Voeg een bestelopmerking toe","Your Order is Completed!":"Je bestelling is voltooid!",Delivery:"Levering","Dine in":"Ter plaatse",Pickup:"Meenemen",Cash:"Contant","Order summary":"Bestellingsoverzicht",Items:"Items",Tax:"Belasting",Total:"Totaal","Special instructions, allergies, etc.":"Speciale instructies, allergieën, enz.","Place order":"Plaats bestelling",Continue:"Doorgaan","Track order":"Volg je bestelling","Minimum order amount for delivery is {{amount}}":"Minimale bestelbedrag voor bezorging is {{amount}}","This field is required":"Dit veld is verplicht","Please select a table":"Selecteer alstublieft een tafel","Please enter an address":"Vul alstublieft een adres in","Please choose product":"Kies alstublieft een product",Table:"Tafel","Select Table":"Kies tafel",Card:"Met je Betaalpas","Payment method":"Betaalmethode","More methods":"Meer methodes","Bank transfer":"Bankoverschrijving","Mobile pay":"Mobiel betalen","QR code":"QR-code",Voucher:"Voucher","Closed Now":"Nu gesloten","Delivery Fee":"Bezorgkosten","Play video":"Bekijk video",Discount:"Korting","Discount ({{rate}}%)":"Korting ({{rate}}%)","Service Fee ({{rate}}%)":"Servicekosten ({{rate}}%)","Add a tip":"Fooi toevoegen",None:"Geen",Custom:"Anders",Tip:"Fooi","Total with tip":"Totaal met fooi","Enter tip amount":"Voer fooibedrag in","Contains allergens":"Bevat allergenen"},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",Floor:"Verdieping","Enter address":"Voer adres in","House No.":"Huis nr.","Your details":"Uw gegevens","Full name":"Volledige naam","Your name":"Uw naam","Phone number":"Telefoonnummer",Email:"E-mail"},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"},branch:{"WEEKDAY-0":"Maandag","WEEKDAY-1":"Dinsdag","WEEKDAY-2":"Woensdag","WEEKDAY-3":"Donderdag","WEEKDAY-4":"Vrijdag","WEEKDAY-5":"Zaterdag","WEEKDAY-6":"Zondag",Closed:"Gesloten","Opening Hours":"Openingstijden","Delivery Hours":"Bezorgtijden"}},et:{error:{SOMETHING_WRONG:"Midagi läks valesti! Palun proovi hiljem uuesti",FIELD_REQUIRED:"See väli on kohustuslik","Unsupported country code":"Riigikood ei ole toetatud","Invalid OTP":"Vale kinnituskood",INVALID_OTP:"Vale kinnituskood",OTP_RATE_LIMIT_EXCEEDED:"Kinnituskoodide limiit ületatud. Proovi hiljem uuesti","Invalid Email Address":"Vigane e-posti aadress",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"See funktsioon ei ole sinu praeguse paketiga saadaval.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"See tellimuse tüüp ei ole selles ettevõttes saadaval.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"See tellimuse tüüp ei ole praegu saadaval.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik.",OUT_OF_DELIVERY_RANGE:"See filiaal ei toimeta sellele aadressile.",DELIVERY_DISTANCE_NOT_COVERED:"See filiaal ei toimeta sellele aadressile.",NO_ORDER_TYPE:"Palun vali tellimuse tüüp.",INVALID_ADDRESS:"Vigane aadress"},common:{Save:"Salvesta",Cancel:"Tühista",Continue:"Jätka"},order:{"View order":"Vaata tellimust","Remove from order":"Eemalda tellimusest","Update order":"Uuenda tellimust","Add to order":"Lisa tellimusele",Add:"Lisa","Your order":"Teie tellimus","Empty order":"Tühi tellimus","You don't have any items in your order":"Teie tellimuses pole ühtegi eset","Add items":"Lisa esemeid",Subtotal:"Kokku",Events:"Sündmused","Product choices":"Tootevalikud","In order":"Tellimuses","Not available":"Ei ole saadaval","Specify any allergies, special requests, or ingredients you want to add or remove":"Kui sul on allergiaid, erisoove või soovid mõnda koostisosa lisada või eemaldada, anna sellest teada.","Thank you! We've received your order and it will be delivered shortly.":"Aitäh! Oleme sinu tellimuse kätte saanud ja toome selle peagi kohale.","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","Order summary":"Tellimuse kokkuvõte",Items:"Tooted",Tax:"Maks",Total:"Kokku","Special instructions, allergies, etc.":"Erisoovid, allergiad jne.","Place order":"Esita tellimus",Continue:"Jätka","Track order":"Jälgi tellimust","Minimum order amount for delivery is {{amount}}":"Minimaalne tellimuse summa kohaletoimetamiseks on {{amount}}","This field is required":"See väli on kohustuslik","Please select a table":"Palun vali laud","Please enter an address":"Palun sisesta aadress","Please choose product":"Palun vali toode",Table:"Laud","Select Table":"Vali laud",Card:"Kaardiga","Payment method":"Makseviis","More methods":"Rohkem viise","Bank transfer":"Pangaülekanne","Mobile pay":"Mobiilimakse","QR code":"QR-kood",Voucher:"Vautšer","Closed Now":"Praegu suletud","Delivery Fee":"Kohaletoimetamise tasu","Play video":"Vaata videot",Discount:"Allahindlus","Discount ({{rate}}%)":"Allahindlus ({{rate}}%)","Service Fee ({{rate}}%)":"Teenustasu ({{rate}}%)","Add a tip":"Lisa jootraha",None:"Puudub",Custom:"Muu",Tip:"Jootraha","Total with tip":"Kokku koos jootrahaga","Enter tip amount":"Sisesta jootraha summa","Contains allergens":"Sisaldab allergeene"},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",Floor:"Põrand","Enter address":"Sisesta aadress","House No.":"Maja nr.","Your details":"Your details","Full name":"Full name","Your name":"Your name","Phone number":"Phone number",Email:"Email"},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"},branch:{"WEEKDAY-0":"Esmaspäev","WEEKDAY-1":"Teisipäev","WEEKDAY-2":"Kolmapäev","WEEKDAY-3":"Neljapäev","WEEKDAY-4":"Reede","WEEKDAY-5":"Laupäev","WEEKDAY-6":"Pühapäev",Closed:"Suletud","Opening Hours":"Lahtiolekuajad","Delivery Hours":"Kohaletoimetamise ajad"}},pl:{error:{SOMETHING_WRONG:"Coś poszło nie tak! Spróbuj ponownie później.",FIELD_REQUIRED:"To pole jest wymagane","Unsupported country code":"Nieobsługiwany numer kierunkowy","Invalid OTP":"Nieprawidłowy kod weryfikacyjny",INVALID_OTP:"Nieprawidłowy kod weryfikacyjny",OTP_RATE_LIMIT_EXCEEDED:"Przekroczono limit kodów. Spróbuj ponownie za chwilę.","Invalid Email Address":"Nieprawidłowy adres e-mail",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Ta funkcja nie jest dostępna w Twoim obecnym planie.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Ten typ zamówienia nie jest dostępny w tym lokalu.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Ten typ zamówienia jest teraz niedostępny.",COUNTRY_REQUIRED:"Kraj jest wymagany.",CITY_REQUIRED:"Miasto jest wymagane.",STREET_REQUIRED:"Ulica jest wymagana.",STREET_NUMBER_REQUIRED:"Numer domu jest wymagany.",OUT_OF_DELIVERY_RANGE:"Ten lokal nie dostarcza pod Twój adres.",DELIVERY_DISTANCE_NOT_COVERED:"Ten lokal nie dostarcza pod Twój adres.",NO_ORDER_TYPE:"Wybierz typ zamówienia.",INVALID_ADDRESS:"Nieprawidłowy adres"},common:{Save:"Zapisz",Cancel:"Anuluj",Continue:"Dalej"},order:{"View order":"Zobacz zamówienie","Remove from order":"Usuń z zamówienia","Update order":"Zmień zamówienie","Add to order":"Dodaj do zamówienia",Add:"Dodaj","Your order":"Twoje zamówienie",Subtotal:"Suma","Empty order":"Puste zamówienie","You don't have any items in your order":"Nie masz jeszcze nic w zamówieniu","Add items":"Dodaj produkty","Add an order note":"Notatka dla restauracji","Specify any allergies, special requests, or ingredients you want to add or remove":"Napisz o alergiach, specjalnych prośbach lub składnikach, które chcesz dodać albo usunąć.","Your Order is Completed!":"Zamówienie przyjęte!","Thank you! We've received your order and it will be delivered shortly.":"Dziękujemy! Otrzymaliśmy Twoje zamówienie i niedługo je dostarczymy.",Delivery:"Dostawa","Dine in":"Na miejscu",Pickup:"Na wynos",Cash:"Gotówka","Order summary":"Podsumowanie zamówienia",Items:"Produkty",Tax:"Podatek",Total:"Razem","Special instructions, allergies, etc.":"Uwagi, alergie itp.","Place order":"Złóż zamówienie",Continue:"Dalej","Not available":"Niedostępne","In order":"W zamówieniu","Product choices":"Opcje","Track order":"Śledź zamówienie","Minimum order amount for delivery is {{amount}}":"Minimalna kwota zamówienia na dostawę to {{amount}}","This field is required":"To pole jest wymagane","Please select a table":"Wybierz stolik","Please enter an address":"Podaj adres","Please choose product":"Wybierz produkt",Table:"Stolik","Select Table":"Wybierz stolik",Card:"Kartą","Payment method":"Metoda płatności","More methods":"Więcej metod","Bank transfer":"Przelew bankowy","Mobile pay":"Płatność mobilna","QR code":"Kod QR",Voucher:"Voucher","Closed Now":"Teraz zamknięte","Delivery Fee":"Koszt dostawy","Play video":"Odtwórz wideo"," / kg":" / kg"," / l":" / l",Discount:"Rabat","Discount ({{rate}}%)":"Rabat ({{rate}}%)","Service Fee ({{rate}}%)":"Opłata serwisowa ({{rate}}%)","Add a tip":"Dodaj napiwek",None:"Brak",Custom:"Inna",Tip:"Napiwek","Total with tip":"Razem z napiwkiem","Enter tip amount":"Wpisz kwotę napiwku","Contains allergens":"Zawiera alergeny"},customer:{"Unknown address":"Adres nie został podany","No address available":"Brak adresu","Update Delivery Address":"Zmień adres dostawy",Country:"Kraj",City:"Miasto","Baker Street":"ul. Marszałkowska",Address:"Adres","House number":"Numer domu","Additional number":"Numer mieszkania","Example: Door code is 555":"Np. kod do drzwi: 555","Delivery Instructions":"Wskazówki dla kuriera",Floor:"Piętro","Enter address":"Wpisz adres","House No.":"Nr domu","Your details":"Twoje dane","Full name":"Imię i nazwisko","Your name":"Twoje imię","Phone number":"Numer telefonu",Email:"E-mail"},auth:{"Create an account or log in":"Załóż konto lub zaloguj się","Phone number":"Numer telefonu","I don't have an email":"Nie mam adresu e-mail","We sent a confirmation code to {{address}}":"Wysłaliśmy kod potwierdzający na {{address}}"},events:{Events:"Aktywność","Scrolled to Category":"Przewinięto do kategorii","Category Selected":"Wybrano kategorię","Product Details":"Szczegóły produktu","Product Added to Order":"Dodano do zamówienia"},branch:{"WEEKDAY-0":"Poniedziałek","WEEKDAY-1":"Wtorek","WEEKDAY-2":"Środa","WEEKDAY-3":"Czwartek","WEEKDAY-4":"Piątek","WEEKDAY-5":"Sobota","WEEKDAY-6":"Niedziela",Closed:"Zamknięte","Opening Hours":"Godziny otwarcia","Delivery Hours":"Godziny dostawy",Feedback:"Zostaw opinię"}},pt:{error:{SOMETHING_WRONG:"Algo correu mal! Por favor, tente novamente mais tarde.",FIELD_REQUIRED:"Este campo é obrigatório","Unsupported country code":"Código de país não suportado","Invalid OTP":"Código de confirmação inválido",INVALID_OTP:"Código de confirmação inválido",OTP_RATE_LIMIT_EXCEEDED:"Excedeu o limite de códigos. Por favor, tente novamente mais tarde.","Invalid Email Address":"Endereço de e-mail inválido",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Esta funcionalidade não está disponível no seu plano.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Este tipo de pedido não está disponível para este estabelecimento.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Este tipo de pedido não está disponível de momento.",COUNTRY_REQUIRED:"O país é obrigatório.",CITY_REQUIRED:"A cidade é obrigatória.",STREET_REQUIRED:"A rua é obrigatória.",STREET_NUMBER_REQUIRED:"O número da porta é obrigatório.",OUT_OF_DELIVERY_RANGE:"Este estabelecimento não faz entregas para a sua morada.",DELIVERY_DISTANCE_NOT_COVERED:"Este estabelecimento não faz entregas para a sua morada.",NO_ORDER_TYPE:"Por favor, selecione um tipo de pedido.",INVALID_ADDRESS:"Morada inválida"},common:{Save:"Guardar",Cancel:"Cancelar",Continue:"Continuar"},order:{"View order":"Ver pedido","Remove from order":"Remover do pedido","Update order":"Atualizar pedido","Add to order":"Adicionar ao pedido",Add:"Adicionar","Your order":"O seu pedido",Subtotal:"Subtotal","Empty order":"Pedido vazio","You don't have any items in your order":"Ainda não tem itens no seu pedido","Add items":"Adicionar itens","Add an order note":"Adicionar nota ao pedido","Specify any allergies, special requests, or ingredients you want to add or remove":"Indique alergias, pedidos especiais ou ingredientes que queira adicionar ou retirar.","Your Order is Completed!":"O seu pedido está concluído!","Thank you! We've received your order and it will be delivered shortly.":"Obrigado! Recebemos o seu pedido e será entregue em breve.",Delivery:"Entrega","Dine in":"No local",Pickup:"Takeaway",Cash:"Dinheiro","Order summary":"Resumo do pedido",Items:"Itens",Tax:"Impostos",Total:"Total","Special instructions, allergies, etc.":"Instruções especiais, alergias, etc.","Place order":"Confirmar pedido",Continue:"Continuar","Not available":"Indisponível","In order":"No pedido","Product choices":"Opções do produto","Track order":"Acompanhar pedido","Minimum order amount for delivery is {{amount}}":"O valor mínimo para entrega é {{amount}}","This field is required":"Este campo é obrigatório","Please select a table":"Por favor, selecione uma mesa","Please enter an address":"Por favor, introduza uma morada","Please choose product":"Por favor, escolha o produto",Table:"Mesa","Select Table":"Selecionar mesa",Card:"Cartão","Payment method":"Método de pagamento","More methods":"Mais métodos","Bank transfer":"Transferência bancária","Mobile pay":"Pagamento móvel","QR code":"Código QR",Voucher:"Voucher","Closed Now":"Fechado agora","Delivery Fee":"Taxa de entrega","Play video":"Ver vídeo"," / kg":" / kg"," / l":" / l",Discount:"Desconto","Discount ({{rate}}%)":"Desconto ({{rate}}%)","Service Fee ({{rate}}%)":"Taxa de serviço ({{rate}}%)","Add a tip":"Adicionar gorjeta",None:"Nenhuma",Custom:"Outro",Tip:"Gorjeta","Total with tip":"Total com gorjeta","Enter tip amount":"Insira o valor da gorjeta","Contains allergens":"Contém alérgenos"},customer:{"Unknown address":"Endereço não definido","No address available":"Sem endereço disponível","Update Delivery Address":"Atualizar endereço de entrega",Country:"País",City:"Cidade","Baker Street":"Rua da Liberdade",Address:"Morada","House number":"Número da porta","Additional number":"Andar / Apartamento","Example: Door code is 555":"Exemplo: Código da porta é 555","Delivery Instructions":"Instruções de entrega",Floor:"Piso","Enter address":"Introduzir morada","House No.":"Nº da porta","Your details":"Os seus dados","Full name":"Nome completo","Your name":"O seu nome","Phone number":"Número de telemóvel",Email:"E-mail"},auth:{"Create an account or log in":"Crie a sua conta ou entre","Phone number":"Número de telemóvel","I don't have an email":"Não tenho e-mail","We sent a confirmation code to {{address}}":"Enviámos um código de confirmação para {{address}}"},events:{Events:"Eventos","Scrolled to Category":"Navegou até à categoria","Category Selected":"Categoria selecionada","Product Details":"Detalhes do produto","Product Added to Order":"Produto adicionado ao pedido"},branch:{"WEEKDAY-0":"Segunda-feira","WEEKDAY-1":"Terça-feira","WEEKDAY-2":"Quarta-feira","WEEKDAY-3":"Quinta-feira","WEEKDAY-4":"Sexta-feira","WEEKDAY-5":"Sábado","WEEKDAY-6":"Domingo",Closed:"Fechado","Opening Hours":"Horário de funcionamento","Delivery Hours":"Horário de entrega",Feedback:"Dar opinião"}},hr:{error:{SOMETHING_WRONG:"Nešto je pošlo po zlu! Molimo pokušajte ponovno.",FIELD_REQUIRED:"Ovo polje je obavezno","Unsupported country code":"Nepodržani pozivni broj zemlje","Invalid OTP":"Nevažeći kod",INVALID_OTP:"Nevažeći kod",OTP_RATE_LIMIT_EXCEEDED:"Previše pokušaja. Molimo pričekajte malo i pokušajte ponovno.","Invalid Email Address":"Nevažeća adresa epošte",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Ova značajka nije dostupna u vašem planu.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Ova vrsta narudžbe trenutno nije omogućena.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Ova vrsta narudžbe trenutno nije dostupna.",COUNTRY_REQUIRED:"Država je obavezna.",CITY_REQUIRED:"Grad je obavezan.",STREET_REQUIRED:"Ulica je obavezna.",STREET_NUMBER_REQUIRED:"Kućni broj je obavezan.",OUT_OF_DELIVERY_RANGE:"Nažalost, nismo u mogućnosti dostaviti na vašu adresu.",DELIVERY_DISTANCE_NOT_COVERED:"Nažalost, nismo u mogućnosti dostaviti na vašu adresu.",NO_ORDER_TYPE:"Molimo odaberite vrstu narudžbe.",INVALID_ADDRESS:"Nevažeća adresa"},common:{Save:"Spremi",Cancel:"Odustani",Continue:"Nastavi"},order:{"View order":"Pregled narudžbe","Remove from order":"Ukloni iz narudžbe","Update order":"Ažuriraj narudžbu","Add to order":"Dodaj u narudžbu",Add:"Dodaj","Your order":"Vaša narudžba",Subtotal:"Međuzbroj","Empty order":"Prazna narudžba","You don't have any items in your order":"Vaša narudžba je prazna","Add items":"Dodajte stavke","Add an order note":"Dodaj napomenu","Specify any allergies, special requests, or ingredients you want to add or remove":"Navedite alergije, posebne želje ili sastojke koje želite dodati ili izbaciti","Your Order is Completed!":"Vaša narudžba je dovršena!","Thank you! We've received your order and it will be delivered shortly.":"Hvala vam! Primili smo vašu narudžbu i bit će vam dostavljena uskoro.",Delivery:"Dostava","Dine in":"Za stolom",Pickup:"Preuzimanje",Cash:"Gotovina","Order summary":"Sažetak narudžbe",Items:"Stavke",Tax:"Porez",Total:"Ukupno","Special instructions, allergies, etc.":"Posebne upute, alergije itd.","Place order":"Naruči",Continue:"Nastavi","Not available":"Nije dostupno","In order":"U narudžbi","Product choices":"Opcije proizvoda","Track order":"Prati narudžbu","Minimum order amount for delivery is {{amount}}":"Minimalni iznos za dostavu je {{amount}}","This field is required":"Ovo polje je obavezno","Please select a table":"Molimo odaberite stol","Please enter an address":"Molimo unesite adresu","Please choose product":"Molimo odaberite proizvod",Table:"Stol","Select Table":"Odaberi stol",Card:"Kartica","Payment method":"Način plaćanja","More methods":"Više načina","Bank transfer":"Bankovni prijenos","Mobile pay":"Mobilno plaćanje","QR code":"QR kod",Voucher:"Vaučer","Closed Now":"Trenutno zatvoreno","Delivery Fee":"Naknada za dostavu","Play video":"Pogledaj video"," / kg":" / kg"," / l":" / l",Discount:"Popust","Discount ({{rate}}%)":"Popust ({{rate}}%)","Service Fee ({{rate}}%)":"Naknada za uslugu ({{rate}}%)","Add a tip":"Dodaj napojnicu",None:"Nema",Custom:"Drugo",Tip:"Napojnica","Total with tip":"Ukupno s napojnicom","Enter tip amount":"Unesite iznos napojnice","Contains allergens":"Sadrži alergene"},customer:{"Unknown address":"Nepoznata adresa","No address available":"Adresa nije dostupna","Update Delivery Address":"Ažurirajte adresu dostave",Country:"Država",City:"Grad","Baker Street":"Ulica",Address:"Adresa","House number":"Kućni broj","Additional number":"Dodatni broj / Stan","Example: Door code is 555":"Primjer: Kod za vrata je 555","Delivery Instructions":"Upute za dostavu",Floor:"Kat","Enter address":"Unesite adresu","House No.":"Kućni br.","Your details":"Vaši podaci","Full name":"Ime i prezime","Your name":"Vaše ime","Phone number":"Broj telefona",Email:"E-pošta"},auth:{"Create an account or log in":"Izradite račun ili se prijavite","Phone number":"Broj telefona","I don't have an email":"Nemam e-poštu","We sent a confirmation code to {{address}}":"Poslali smo potvrdni kod na {{address}}"},events:{Events:"Događaji","Scrolled to Category":"Pomaknuto do kategorije","Category Selected":"Odabrana kategorija","Product Details":"Detalji proizvoda","Product Added to Order":"Proizvod dodan u narudžbu"},branch:{"WEEKDAY-0":"Ponedjeljak","WEEKDAY-1":"Utorak","WEEKDAY-2":"Srijeda","WEEKDAY-3":"Četvrtak","WEEKDAY-4":"Petak","WEEKDAY-5":"Subota","WEEKDAY-6":"Nedjelja",Closed:"Zatvoreno","Opening Hours":"Radno vrijeme","Delivery Hours":"Vrijeme dostave",Feedback:"Povratne informacije"}}};const Yt=(e="common",r)=>{const t=hr(),o=(null==r?void 0:r.language)||t,{t:a}=((e,r)=>{try{const t=Ze.includes(e)?e:mr,o=Vt[t][r]||{},a=(e,r)=>{try{const t=o[e]||e;return r?Object.keys(r).reduce((e,t)=>e.replace(`{{${t}}}`,r[t]),t):t}catch(r){return console.error(r),e}};return{t:a}}catch(e){return console.error(e),{t:e=>e}}})(o,e);return{t:a}},xt=()=>{const{setModal:t}=l(),{t:a}=Yt("branch"),{phone:n,wifiPassword:i,whatsApp:c,telegram:m,openingHours:p,deliveryHours:_}=Cr(),{instagram:h,tiktok:v,facebook:E,username:g}=pr(),I=!Z(null==p?void 0:p.days)||!Z(null==_?void 0:_.days),y="dgkmenu"===g;return e("div",{className:zt,children:e("div",{className:jt,children:e(o,{gap:2,alignItems:"center",children:r(o,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!n&&e(s,{icon:ne,href:`tel:+${n}`,size:"sm",shape:"circle",theme:"light"}),!!c&&e(s,{icon:ie,href:`https://wa.me/${c}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:de,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!m&&e(s,{icon:le,href:m,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!v&&e(s,{icon:se,href:v,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!E&&e(s,{icon:ue,href:E,size:"sm",shape:"circle",theme:"light",target:"_blank"}),y&&e(u,{hint:a("Feedback"),children:e(s,{icon:ce,href:"https://docs.google.com/forms/d/1c9YQQzHgfnZn72nMKqXf0lzxzhPPGMR1FdWKk0YLbps/viewform",size:"sm",shape:"circle",theme:"light",target:"_blank"})}),!!i&&e(u,{hint:i,children:e("div",{className:Ut,children:e(d,{icon:me,size:"sm",className:Bt})})}),I&&e("div",{className:Wt,onClick:()=>{t({id:Qe,params:{openingHours:p,deliveryHours:_}})},children:e(d,{icon:pe,size:"sm",className:Bt})})]})})})})},Ft=()=>{const{coverPhoto:t,avatar256:a}=pr(),l=(()=>{const{business:e}=cr(),r=Cr(),t=Rr(),o=(null==e?void 0:e.name)||"Tabres";return t?o:(null==r?void 0:r.name)?`${o} ${r.name}`:o})(),s=Cr().address||"",u=Rr(),{latitude:p,longitude:_}=Sr(),h=`https://www.google.com/maps/place/${p},${_}`;return r("div",{className:Ot,children:[e("img",{src:nr(t),alt:l,className:Nt,width:1024,height:400}),e("div",{className:Rt,children:r(n,{justifyContent:u?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!u&&e(wt,{size:"lg",theme:"dark-theme"}),r(c,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(c.Item,{children:e("img",{src:ar(a),alt:l,className:Ct,width:96,height:96})}),e(c.Item,{shrink:!0,className:Pt,children:r(n,{gap:.5,children:[e(i,{className:St,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:l}),e("a",{className:kt,href:h,target:"_blank",rel:"noopener noreferrer",children:r(o,{alignItems:"center",gap:.5,children:[e(d,{icon:_e,color:m.DEFAULT}),e("span",{className:Lt,children:s})]})})]})})]})]})}),e(Dt,{}),e(xt,{})]})},Ht=()=>{const r=Cr();return Rr()||!Z(r)?e(Ft,{}):e(At,{})};var Gt={};var Kt={content:"Auth-module_content__1ATBc",terms:"Auth-module_terms__OH3th"};const Qt=()=>{const{customer:e}=ut();return e||{}},qt=()=>{var e,r;const{customer:t,guestContact:o}=ut();if(!Z(t)){return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(r=null==t?void 0:t.addresses)||void 0===r?void 0:r.length)-1])||{}}const{countryCode:a,cityName:n,street:i,houseNumber:d,additionalNumber:l,instructions:s,floor:u,latitude:c,longitude:m,postCode:p}=o||{},_={countryCode:a,cityName:n,street:i,houseNumber:d,additionalNumber:l,instructions:s,floor:u,latitude:c,longitude:m,postCode:p};return Object.values(_).some(e=>null!=e&&""!==e)?_:{}};var Zt,Xt;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(Zt||(Zt={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(Xt||(Xt={}));const $t=e=>{const r={},{countryCode:t,cityName:o,street:a,houseNumber:n}=e||{};return t||(r.countryCode="COUNTRY_REQUIRED"),o||(r.cityName="CITY_REQUIRED"),a||(r.street="STREET_REQUIRED"),n||(r.houseNumber="STREET_NUMBER_REQUIRED"),r},Jt=(e,r,t)=>[e,[r,t].filter(Boolean).join("/")].filter(Boolean).join(" ");var eo,ro,to;!function(e){e.GLUTEN="GLUTEN",e.CRUSTACEANS="CRUSTACEANS",e.EGGS="EGGS",e.FISH="FISH",e.PEANUTS="PEANUTS",e.SOY="SOY",e.MILK="MILK",e.TREE_NUTS="TREE_NUTS",e.CELERY="CELERY",e.MUSTARD="MUSTARD",e.SESAME="SESAME",e.SULPHITES="SULPHITES",e.LUPIN="LUPIN",e.MOLLUSCS="MOLLUSCS",e.BUCKWHEAT="BUCKWHEAT"}(eo||(eo={})),function(e){e.LIST="list",e.GRID="grid"}(ro||(ro={})),function(e){e.PIECE="PIECE",e.WEIGHT="WEIGHT",e.VOLUME="VOLUME"}(to||(to={}));const oo=()=>(e=>{const r=tt(null==e?void 0:e.primaryPaymentMethods),t=tt(null==e?void 0:e.secondaryPaymentMethods),o=Z(r)?Zr:r,a=(Z(t)?qr:t).filter(e=>!o.includes(e));return{primary:o,secondary:a}})(Lr()),ao=()=>{const{orderItems:e}=ut();return Object.values(e||{}).reduce((e,r)=>e+et(r),0)},no=()=>{const{orderItems:e}=ut();return Object.values(e||{}).map(({productId:e,quantity:r,variant:t,addons:o,note:a,sellUnitType:n})=>({productId:e,quantity:r,variant:t,addons:o,note:a,sellUnitType:n}))},io=(e={})=>{const r=_r(),t=Cr(),o=hr(),{order:a}=ut(),n=no(),i=(()=>{var e,r;const{customer:t}=ut();return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(r=null==t?void 0:t.addresses)||void 0===r?void 0:r.length)-1])||{}})(),d=(()=>{const{customer:e}=ut();return null==e?void 0:e.id})(),{workingDayId:l,tableId:s,employeeId:u,orderType:c,preferredPaymentMethod:m,preferredTipAmount:p,note:_}=Object.assign(Object.assign({},a),e);return{branchId:null==t?void 0:t.id,businessId:r,workingDayId:l,tableId:s,customerId:d,customerAddressId:i.id,employeeId:u,orderType:c,language:o,items:n,preferredPaymentMethod:m,preferredTipAmount:p,note:_}},lo=()=>{const e=Qt(),r=Lr();return Z(e)&&!!(null==r?void 0:r.guestOrderEnabled)},so=(e={})=>{const r=_r(),t=Cr(),o=hr(),{order:a,guestContact:n}=ut(),i=no(),{workingDayId:d,tableId:l,orderType:s,preferredPaymentMethod:u,preferredTipAmount:c,note:m}=Object.assign(Object.assign({},a),e),p=(e=>{if(Z(e))return;const r=Object.entries(e).filter(([,e])=>null!=e&&""!==e);if(0===r.length)return;const t=Object.fromEntries(r),{latitude:o,longitude:a,floor:n}=t,i=Br(t,["latitude","longitude","floor"]);return Object.assign(Object.assign(Object.assign(Object.assign({},i),null!=n?{floor:Number(n)}:{}),null!=o?{latitude:`${o}`}:{}),null!=a?{longitude:`${a}`}:{})})(n);return Object.assign({branchId:null==t?void 0:t.id,businessId:r,workingDayId:d,tableId:l,orderType:s,language:o,items:i,preferredPaymentMethod:u,preferredTipAmount:c,note:m},p?{contact:p}:{})},uo=()=>{const{orderItems:e}=ut();return Object.values(e||{}).reduce((e,r)=>e+(r.sellUnitType===to.WEIGHT||r.sellUnitType===to.VOLUME?1:r.quantity),0)},co=()=>{const e=Sr(),{latitude:r,longitude:t}=qt();return((e,r)=>{if(!Or(null==e?void 0:e.latitude,null==e?void 0:e.longitude))return null;if(!Or(null==r?void 0:r.latitude,null==r?void 0:r.longitude))return null;const t=Math.sin(Nr(r.latitude-e.latitude)/2),o=Math.sin(Nr(r.longitude-e.longitude)/2),a=t*t+Math.cos(Nr(e.latitude))*Math.cos(Nr(r.latitude))*o*o;return 12742*Math.asin(Math.min(1,Math.sqrt(a)))})(e,{latitude:r,longitude:t})},mo=()=>((e,r)=>{const t=Math.max(0,(null==e?void 0:e.deliveryFeeAmount)||0);if((null==e?void 0:e.deliveryFeeType)!==gr.DISTANCE||"number"!=typeof r||!Number.isFinite(r))return t;const o=((e,r)=>{const t=[...e||[]].sort((e,r)=>e.upToDistance-r.upToDistance);if(0===t.length)return null;const o=t.find(e=>r<=e.upToDistance);return o?o.fee:t[t.length-1].fee})(e.deliveryFeeTiers,r);return null===o?t:o})(Lr(),co()),po=()=>{const{t:e}=Yt("error"),r=Sr(),t=Lr().maxDeliveryDistance,{latitude:o,longitude:a}=qt(),[n,i]=x(null);return G(()=>{const e=!!o&&!!a,n=!Z(r);Vr(void 0,void 0,void 0,function*(){if(!e||!n)return i("INVALID_ADDRESS");try{const e=yield((e,r)=>Vr(void 0,void 0,void 0,function*(){const{spherical:t}=yield google.maps.importLibrary("geometry"),o=new google.maps.LatLng(e.latitude,e.longitude),a=new google.maps.LatLng(r.latitude,r.longitude);return t.computeDistanceBetween(o,a)}))(r,{latitude:o,longitude:a});i(!e||e>t?"OUT_OF_DELIVERY_RANGE":null)}catch(e){i("OUT_OF_DELIVERY_RANGE")}})},[o,a,r,t]),n?e(n):null},_o=()=>{const{t:e}=Yt("order"),r=hr(),t=Pr(),o=Lr().minDeliveryAmount;if(ao()<o){return e("Minimum order amount for delivery is {{amount}}",{amount:X(o,t,r)})}return null},ho=(e,r)=>nt.post("/customer/order/calculate",e,{signal:r}),vo=(e,r)=>nt.post("/order/public/calculate",e,{signal:r}),Eo=({address:t,errorMessage:o,onChange:a})=>{const{t:d}=Yt("auth"),{t:l}=Yt("error");return r(n,{gap:2,children:[e(i,{fullWidth:!0,align:"center",color:"muted",children:d("We sent a confirmation code to {{address}}",{address:t})}),e(E,{onChangeOTP:e=>{var r;const t=null===(r=null==e?void 0:e.toUpperCase)||void 0===r?void 0:r.call(e);queueMicrotask(()=>{a(t)})},errorMessage:o?l(o):void 0,inputMode:"text"})]})},go=({formErrors:t,onChange:o})=>{const[a,i]=x(""),{t:d}=Yt("error"),l=dr(),s=hr(),{url:u}=tr(l,s),c=F(e=>{var r,t;const a=null!==(t=null===(r=e.target)||void 0===r?void 0:r.value)&&void 0!==t?t:"";i(a),o(a)},[o]);return r(n,{className:Kt.container,alignItems:"center",gap:0,children:[e(h,{name:"email",type:v.EMAIL,placeholder:"Email",fullWidth:!0,value:a,onChange:c,errorMessage:t.email?d(t.email):void 0}),e("div",{className:Kt.terms,children:r("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${u}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${u}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})};var Io={};var yo={},To="HoursList-module_container__wYX5G",bo="HoursList-module_title__D7Q8u";const fo=({title:t,days:a})=>{const{t:d}=Yt("branch");return Z(a)?null:r(n,{className:To,gap:.5,fullWidth:!0,children:[t&&e(i,{weight:"medium",className:bo,children:d(t)}),a.map(({day:t,hours:a})=>{const n=!a,l=n?d("Closed"):`${a.openAt} - ${a.closeAt}`;return r(o,{justifyContent:"space-between",fullWidth:!0,children:[e(i,{size:"sm",whiteSpace:"nowrap",children:d(`WEEKDAY-${t}`)}),e(i,{size:"sm",whiteSpace:"nowrap",color:n?m.DANGER:"normal",children:l})]},t)})]})},Do=({openingHours:t,deliveryHours:o})=>{const a=(null==t?void 0:t.days)||[],i=(null==o?void 0:o.days)||[],d=(()=>{const e=Lr();return null==e?void 0:e.deliveryOrderEnabled})();return Z(a)?null:r(n,{className:yo.container,gap:2,children:[e(fo,{days:a}),d&&e(fo,{title:"Delivery Hours",days:i})]})};var Ao={container:"ScrollToTop-module_container__fY2Wr",visible:"ScrollToTop-module_visible__4c1xZ",flexWide:"ScrollToTop-module_flexWide__ISFJo",slidein:"ScrollToTop-module_slidein__ciJNw",fadeInOut:"ScrollToTop-module_fadeInOut__TVbp7",heightAnimation:"ScrollToTop-module_heightAnimation__ouHY-",fadein:"ScrollToTop-module_fadein__-3ySu",floatAnimation:"ScrollToTop-module_floatAnimation__6Gg6O",bottomSheet:"ScrollToTop-module_bottomSheet__XjARU",slideRightToLeft:"ScrollToTop-module_slideRightToLeft__YUoyD",rotation:"ScrollToTop-module_rotation__z-fUd",pulse:"ScrollToTop-module_pulse__59P93"};const Oo=({size:r,zIndex:t=100})=>{const[o,a]=x(!1),n=F(()=>{const e=window.scrollY>100;e!==o&&a(e)},[o]);return G(()=>(window.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n)}),[n]),e("div",{className:te(Ao,{container:!0,visible:o}),style:{zIndex:t},children:e(y,{icon:he,size:r,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var No="Branches-module_branches__sOuoV",Ro="Branches-module_container__Ppa6v",Co={item:"BranchCard-module_item__Uowu3",content:"BranchCard-module_content__tua5H",info:"BranchCard-module_info__GWCyI",name:"BranchCard-module_name__3f4c-",address:"BranchCard-module_address__X2UdI",imageContainer:"BranchCard-module_imageContainer__cZcxc",image:"BranchCard-module_image__Wb44-",notAvailable:"BranchCard-module_notAvailable__hM-C5",noImage:"BranchCard-module_noImage__TnVYT",flexWide:"BranchCard-module_flexWide__Z8Ly-",slidein:"BranchCard-module_slidein__iNE--",fadeInOut:"BranchCard-module_fadeInOut__W8YYr",heightAnimation:"BranchCard-module_heightAnimation__xVD3c",fadein:"BranchCard-module_fadein__u5kBh",floatAnimation:"BranchCard-module_floatAnimation__X2M2D",bottomSheet:"BranchCard-module_bottomSheet__jQn-M",slideRightToLeft:"BranchCard-module_slideRightToLeft__7lAiW",rotation:"BranchCard-module_rotation__bTyhC",pulse:"BranchCard-module_pulse__4w1oB"};const Po=({children:r,id:t})=>{const o=zr(),a=Er();return o?e("div",{className:Co.item,onClick:()=>o(t),children:r}):e("a",{href:`${a}/${t}`,className:Co.item,children:r})},So=({branch:t})=>{const{id:a,address:l,coverPhoto:s,name:u}=t||{},c=`${pr().name} ${u}`;return e(Po,{id:a,children:r("div",{className:te(Co,{content:!0,noImage:!s}),children:[s&&e("div",{className:Co.imageContainer,children:e("img",{src:nr(s),alt:c,className:Co.image,width:1024,height:400})}),r(n,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Co.info,gap:.5,children:[e(i,{variant:"h2",className:Co.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:c}),r(o,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(d,{icon:_e,color:m.DEFAULT}),e("span",{className:Co.address,children:l})]})]})]})})},ko=()=>{const r=(()=>{const{branches:e}=cr();return e||[]})();return e("div",{className:No,children:e(T,{className:Ro,children:r.map(r=>e(So,{branch:r},r.id))})})};var Lo="MenuContent-module_container__XpKka";const Mo=e=>{var r,t;return null!==(t=null!==(r=null==e?void 0:e.listingPrice)&&void 0!==r?r:null==e?void 0:e.price)&&void 0!==t?t:0},wo=(e,r,t)=>{const o=Mo(e);return X(o,r,t)};var zo;!function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(zo||(zo={}));const jo=({product:e,quantity:r,language:t,currency:o,variantId:a,selectedAddons:n})=>{if(!e||0===Object.keys(e).length)return X(0,o,t);const i=a?(e.variants||[]).find(({id:e})=>e===a):void 0,d=Mo(a?i:e),l=((e,r={})=>{let t=0;for(const o of(null==e?void 0:e.addons)||[]){const{id:e,selectType:a,options:n}=o;if(!Object.prototype.hasOwnProperty.call(r,e))continue;const i=r[e],d=a===zo.SINGLE?[i]:i||[];for(const e of d){const r=(n||[]).find(({id:r})=>r===e);r&&(t+=Mo(r))}}return t})(e,n);return X((d+l)*r,o,t)},Uo=(e,r)=>Ur(null==e?void 0:e.translations,r),Wo=(e,r)=>jr(null==e?void 0:e.title,r),Bo=(e,r,t)=>jr(e,t)||(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase().replace(/_/g," "))(r),Vo=(e,r)=>((null==e?void 0:e.allergenDetails)||[]).map(({code:e,translations:t})=>({code:e,label:Bo(t,e,r)})),Yo=e=>{var r;const{products:t}=cr();return(null===(r=null==t?void 0:t.find)||void 0===r?void 0:r.call(t,({id:r})=>r===e))||{}},xo=(e,r)=>jr(null==e?void 0:e.name,r),Fo="digital_menu",Ho=`${Fo}_category_select`,Go=`${Fo}_category_scroll`,Ko=`${Fo}_product_details`,Qo=`${Fo}_product_add_cart`,qo=`${Fo}_product_view_changed`,Zo=[Ho,Go,Ko,Qo];var Xo="Categories-module_categories__Hh8hl";const $o=({categoryProductMap:r=[],language:t,selectedCategoryId:o,skipTracking:a=!1,onSelectCategory:n})=>{const i=H({}),d=H(null),l=F(()=>{var e;const r=null===(e=null==i?void 0:i.current)||void 0===e?void 0:e[o];if(!r||!d.current)return;const t=d.current.clientWidth,a=r.offsetLeft-t/2+r.offsetWidth/2;d.current.scrollTo({left:a,behavior:"smooth"})},[o]);return G(()=>{o&&l()},[o,l]),e("div",{className:Xo,children:e(b,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(d.current=e.current)},paddingInline:1,children:(r||[]).map(r=>{const{id:d}=r,l=xo(r,t);return e(f,{children:e(D,{onClick:()=>((e,r)=>{e!==o&&(n(e),a||ee(Ho,{name:r}))})(d,l),type:m.BORDERED_PRIMARY,active:d===o,children:e("div",{ref:e=>{e&&(i.current[d]=e)},children:l})})},d)})})})};var Jo="Products-module_container__bF2LF",ea="Products-module_view__l857X",ra="Products-module_products__AoDrY",ta="Products-module_category__Sp7dE",oa="Products-module_list__LH4v5",aa="Products-module_gridLayout__AoOrI",na="Products-module_listLayout__JrHRR",ia={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",volume:"ProductsListItem-module_volume__rcwdd",allergens:"ProductsListItem-module_allergens__J1NED",image:"ProductsListItem-module_image__h6Wbi",notAvailable:"ProductsListItem-module_notAvailable__TeMCr",addToOrder:"ProductsListItem-module_addToOrder__6KqZn",noImage:"ProductsListItem-module_noImage__G4E-a",flexWide:"ProductsListItem-module_flexWide__Ds6LE",slidein:"ProductsListItem-module_slidein__rEzMI",fadeInOut:"ProductsListItem-module_fadeInOut__i1FNq",heightAnimation:"ProductsListItem-module_heightAnimation__2fk7l",fadein:"ProductsListItem-module_fadein__tPTJ6",floatAnimation:"ProductsListItem-module_floatAnimation__vugAV",bottomSheet:"ProductsListItem-module_bottomSheet__-YAdd",slideRightToLeft:"ProductsListItem-module_slideRightToLeft__oXk26",rotation:"ProductsListItem-module_rotation__ZMvMz",pulse:"ProductsListItem-module_pulse__yy4Wc"},da="AllergenIcons-module_icon__mTSLB";const la={[eo.GLUTEN]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 22v-4"}),e("path",{d:"M12 18.5c-2.6-.4-4.4-2.4-4.5-5 2.6.4 4.4 2.4 4.5 5Z"}),e("path",{d:"M12 18.5c2.6-.4 4.4-2.4 4.5-5-2.6.4-4.4 2.4-4.5 5Z"}),e("path",{d:"M12 14c-2.6-.4-4.4-2.4-4.5-5 2.6.4 4.4 2.4 4.5 5Z"}),e("path",{d:"M12 14c2.6-.4 4.4-2.4 4.5-5-2.6.4-4.4 2.4-4.5 5Z"}),e("path",{d:"M12 11c-1.5-1.7-1.5-5.3 0-7 1.5 1.7 1.5 5.3 0 7Z"})]})),[eo.CRUSTACEANS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M17.5 5.5C10 6 4.5 11 5.5 16.5c.6 3.2 3.5 4.5 6.5 4.5C10 18 10 14 12.5 11c1.5-1.8 3.2-3.5 5-5.5Z"}),e("path",{d:"M17.5 5.5c1.4-1.8 2.9-2.4 4.4-2.4"}),e("path",{d:"M19 7.6c1.3-.8 2.7-.8 3.6-.3"}),e("path",{d:"M12 21l3 1.4M12 21l3.2-1"}),e("path",{d:"M15.9 8.8a.85.85 0 1 1-1.7 0 .85.85 0 0 1 1.7 0Z"})]})),[eo.EGGS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 3.5c4.7 0 8.5 3.4 8.5 7.5 0 2-1.5 3-1.5 4.5 0 2.5-2 4-4.5 4-2 0-2.5 1-4.5 1-3.5 0-6.5-2.5-6.5-5.5 0-1.5-1-2.5-1-4 0-4.1 4.8-7.5 9.5-7.5Z"}),e("path",{d:"M15.5 11a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]})),[eo.FISH]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M21 12c-2.4 3.3-5.4 5-8 5s-5.6-1.7-8-5c2.4-3.3 5.4-5 8-5s5.6 1.7 8 5Z"}),e("path",{d:"M5 12 2 8.5v7L5 12Z"}),e("path",{d:"M18.4 10.5a.9.9 0 1 1-1.8 0 .9.9 0 0 1 1.8 0Z"}),e("path",{d:"M15.5 8.2c-1.2 2.2-1.2 5.4 0 7.6"})]})),[eo.PEANUTS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 2.5c2.6 0 4.7 2.1 4.7 4.7 0 1.5-.7 2.2-1.4 3-.7.8-.8 1.4-.1 2.2 1.2 1.4 2.3 2.6 2.3 4.6 0 3-2.5 5.5-5.5 5.5S6.5 20 6.5 17c0-2 1.1-3.2 2.3-4.6.7-.8.6-1.4-.1-2.2-.7-.8-1.4-1.5-1.4-3C7.3 4.6 9.4 2.5 12 2.5Z"}),e("path",{d:"M9.6 6.5c1.6-.7 3.2-.7 4.8 0"}),e("path",{d:"M8.8 17.2c2.1-1 4.3-1 6.4 0"})]})),[eo.SOY]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M5 19C5 12 12 5 19 5c0 7-7 14-14 14Z"}),e("path",{d:"M10.4 15.5a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"}),e("path",{d:"M13.9 12a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"}),e("path",{d:"M17.4 8.5a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"})]})),[eo.MILK]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M6 21V10h12v11z"}),e("path",{d:"M6 10 9.5 5h5L18 10"}),e("path",{d:"M9.5 5V3.2h5V5"})]})),[eo.TREE_NUTS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M6.5 5.5h11a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z"}),e("path",{d:"M6.8 9.5c0 5 2.3 10.5 5.2 10.5s5.2-5.5 5.2-10.5"}),e("path",{d:"M12 5.5V3"})]})),[eo.CELERY]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 21c-1-4-2.5-6.5-4.5-9"}),e("path",{d:"M12 21V11"}),e("path",{d:"M12 21c1-4 2.5-6.5 4.5-9"}),e("path",{d:"M8.5 17.5c2.5 1 4.5 1 7 0"}),e("path",{d:"M7.5 12c-2.2-.5-3.5-2.6-3-4.8 2.2.5 3.5 2.6 3 4.8Z"}),e("path",{d:"M12 11c-1.4-1.5-1.4-4.2 0-5.7 1.4 1.5 1.4 4.2 0 5.7Z"}),e("path",{d:"M16.5 12c2.2-.5 3.5-2.6 3-4.8-2.2.5-3.5 2.6-3 4.8Z"})]})),[eo.MUSTARD]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M8 21v-9c0-1.8.8-2.8 1.7-3.5l.3-.3V6h4v2.2l.3.3c.9.7 1.7 1.7 1.7 3.5v9z"}),e("path",{d:"M10.5 6V3.8h3V6"}),e("path",{d:"M8 14.5h8"})]})),[eo.SESAME]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{transform:"translate(7 8) rotate(-25)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(13.5 6.5) rotate(20)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(17.5 11.5) rotate(-15)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(9 14.5) rotate(30)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(15.5 17.5) rotate(-20)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"})]})),[eo.SULPHITES]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M9.5 3v5.5L5 17.5a1.8 1.8 0 0 0 1.7 2.5h10.6a1.8 1.8 0 0 0 1.7-2.5L14.5 8.5V3Z"}),e("path",{d:"M8.5 3h7"}),e("path",{d:"M7.2 14h9.6"}),e("path",{d:"M10.3 16.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"}),e("path",{d:"M14.6 17.6a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"})]})),[eo.LUPIN]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 3c2.4 3 3.8 7.2 3.8 11 0 1.3-1.7 2-3.8 2s-3.8-.7-3.8-2c0-3.8 1.4-8 3.8-11Z"}),e("path",{d:"M9.6 9.5h4.8"}),e("path",{d:"M8.9 12.5h6.2"}),e("path",{d:"M12 21v-5"}),e("path",{d:"M12 18.5 8.8 17M12 18.5 15.2 17"})]})),[eo.MOLLUSCS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 20.5 4 12.2A8 8 0 0 1 20 12.2Z"}),e("path",{d:"M12 20.5 6.34 6.54"}),e("path",{d:"M12 20.5V4.2"}),e("path",{d:"M12 20.5 17.66 6.54"})]})),[eo.BUCKWHEAT]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M3.5 13.4h17a8.5 6.6 0 0 1-17 0Z"}),e("path",{d:"M12 6.4 15.4 13.4H8.6z"}),e("path",{d:"M7.3 9.3 10.1 13.4H4.5z"}),e("path",{d:"M16.7 9.3 19.5 13.4h-5.6z"})]}))},sa=e=>la[e]||ve,ua=({product:r,language:t,withTooltip:a=!1,size:n="sm",className:i})=>{const l=hr(),s=t||l,c=Y(()=>Vo(r,s),[r,s]);return c.length?e(o,{className:i,gap:.5,flexWrap:"wrap",children:c.map(({code:r,label:t})=>{const o=e("span",{className:da,role:"img","aria-label":t,children:e(d,{icon:sa(r),size:n})});return a?e(u,{hint:t,children:o},r):e("span",{children:o},r)})}):null},ca=({product:t,currency:a,language:d,onClick:l})=>{const{addProduct:s}=ut(),{image160:u,volume:c,available:p,sellUnitType:_,variants:h,addons:v}=t||{},{name:E,description:g}=Y(()=>Uo(t,d),[t,d]),I=Y(()=>wo(t,a,d),[t,a,d]),{t:T}=Yt("order"),{addToOrderEnabled:b}=Lr(),f=b&&p,D=(null==h?void 0:h.length)>0,A=(null==v?void 0:v.length)>0,O=_===to.WEIGHT||_===to.VOLUME||D||A,N=!!u;return r("div",{className:te(ia,{container:!0,isClickable:!!l,noImage:!N}),onClick:l,children:[r(o,{justifyContent:"space-between",gap:0,children:[e("div",{className:ia.info,children:r(n,{gap:.25,children:[e("h3",{className:ia.name,children:E}),e("p",{className:ia.description,children:g}),r(o,{className:ia.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:I}),!!c&&e("div",{className:ia.volume,children:c})]}),e(ua,{product:t,language:d,className:ia.allergens}),!p&&e(i,{size:"xs",color:"danger",className:ia.notAvailableText,children:T("Not available")})]})}),N&&e("img",{src:or(u),alt:E||"menu",className:te(ia,{image:!0,notAvailable:!p}),loading:"lazy",width:160,height:90})]}),f&&e("div",{className:ia.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),O&&l)return l();s({product:t}),ee(Qo,{name:E,quantity:1})},icon:Ee,type:m.DEFAULT})})]})};var ma={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",allergens:"ProductsGridItem-module_allergens__qoK25",imageContainer:"ProductsGridItem-module_imageContainer__eHS4Z",image:"ProductsGridItem-module_image__alZWL",notAvailable:"ProductsGridItem-module_notAvailable__i4-HA",addToOrder:"ProductsGridItem-module_addToOrder__PhQhg",noImage:"ProductsGridItem-module_noImage__78UHW",volume:"ProductsGridItem-module_volume__oxEAr",notAvailableText:"ProductsGridItem-module_notAvailableText__9G0yj",hasBackgroundColor:"ProductsGridItem-module_hasBackgroundColor__PnUA1",isDashboard:"ProductsGridItem-module_isDashboard__n-zKw",flexWide:"ProductsGridItem-module_flexWide__qcB5X",slidein:"ProductsGridItem-module_slidein__oKaVb",fadeInOut:"ProductsGridItem-module_fadeInOut__d2zot",heightAnimation:"ProductsGridItem-module_heightAnimation__zgbh9",fadein:"ProductsGridItem-module_fadein__Z067K",floatAnimation:"ProductsGridItem-module_floatAnimation__GXjP-",bottomSheet:"ProductsGridItem-module_bottomSheet__-zrFD",slideRightToLeft:"ProductsGridItem-module_slideRightToLeft__R7hv5",rotation:"ProductsGridItem-module_rotation__npCfA",pulse:"ProductsGridItem-module_pulse__whBaS"};const pa=({product:t,currency:a,language:d,defaultImage:l="",isDashboard:s=!1,backgroundColor:u,onClick:c,onAddProduct:p})=>{const{volume:_,image580:h,image160:v,image1024:E,available:g,sellUnitType:I,variants:T,addons:b}=t||{},f=h||E||v||l,{name:D,description:A}=Y(()=>Uo(t,d),[t,d]),O=Y(()=>wo(t,a,d),[t,a,d]),{t:N}=Yt("order",{language:d}),{addToOrderEnabled:R}=Lr(),C=R&&g,P=(null==T?void 0:T.length)>0,S=(null==b?void 0:b.length)>0,k=I===to.WEIGHT||I===to.VOLUME||P||S;return e("div",{className:ma.container,children:r("div",{className:te(ma,{content:!0,isClickable:!!c,noImage:!f,hasBackgroundColor:!f&&Boolean(u),isDashboard:s}),onClick:c,style:{backgroundColor:u},children:[f&&e("div",{className:ma.imageContainer,children:e("img",{src:or(f),alt:D||"menu",className:te(ma,{image:!0,notAvailable:!g}),loading:"lazy",width:580,height:326})}),e("div",{className:ma.info,children:e("div",{className:ma.data,children:r(n,{gap:.25,children:[e("h3",{className:ma.name,children:D}),!s&&e("p",{className:ma.description,children:A}),r(o,{className:ma.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:O}),!!_&&e(i,{color:"white",className:ma.volume,children:_})]}),e(ua,{product:t,language:d,className:ma.allergens}),!g&&e(i,{color:"white",size:"xs",className:ma.notAvailableText,children:N("Not available")})]})})}),C&&e("div",{className:ma.addToOrder,children:e(y,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),k&&c)return c();p({product:t}),ee(Qo,{name:D,quantity:1})},icon:Ee,type:m.DEFAULT})})]})})},_a=({product:r,currency:t,language:o,onClick:a})=>{const{addProduct:n}=ut();return e(pa,{onAddProduct:n,product:r,currency:t,language:o,onClick:a})},ha=e=>!!((null==e?void 0:e.image580)||(null==e?void 0:e.image1024)||(null==e?void 0:e.image160)),va=K(({categoryProductMap:t=[],currency:a,language:i,productBlocksRef:d,containerRef:s,onCategoryInView:u})=>{const[c,p]=x(ro.LIST),{setModal:_}=l(),h=vt(),v=Y(()=>(t||[]).some(e=>(e.products||[]).some(ha)),[t]),E=v?c:ro.LIST,g=[{icon:ge,type:ro.LIST},{icon:Ie,type:ro.GRID}],I=e=>{const{name:r}=Uo(e,i);ee(Ko,{name:r}),_({id:qe,params:{product:e}})};return G(()=>{const e=new IntersectionObserver(e=>{var r;const t=((null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.clientHeight)||1e3)/2;let o=null,a=1/0;e.forEach(e=>{if(e.isIntersecting){const r=e.boundingClientRect,n=r.top+r.height/2,i=Math.abs(n-t);i<a&&(a=i,o=e.target.getAttribute("data-category-id"))}}),o&&u(Number(o))},{threshold:.1});return Object.entries(d.current||{}).forEach(([r,t])=>{t&&(t.setAttribute("data-category-id",r),e.observe(t))}),()=>{e.disconnect()}},[d,s,u]),r("div",{className:Jo,children:[r(o,{className:ea,alignItems:"center",children:[v&&g.map(({icon:r,type:t})=>e(y,{icon:r,onClick:()=>(e=>{p(e),ee(qo,{name:e})})(t),type:t===c?m.PRIMARY:m.DEFAULT},t)),!Z(h)&&e("a",{href:h,children:e(y,{icon:ye,onClick:()=>{},type:m.DEFAULT})})]}),e(n,{gap:0,children:(t||[]).map(t=>{const o=xo(t,i),{id:l,products:s}=t;return r("div",{className:ra,ref:e=>{e&&(d.current[l]=e)},"data-category-id":l,children:[e("h2",{className:ta,children:o}),e("div",{className:oa,children:e(n,{gap:0,className:E===ro.GRID?aa:na,children:(s||[]).map(r=>E===ro.GRID&&ha(r)?e(_a,{product:r,currency:a,language:i,onClick:()=>I(r)},r.id):e(ca,{product:r,currency:a,language:i,onClick:()=>I(r)},r.id))})})]},l)})})]})},(e,r)=>e.categoryProductMap===r.categoryProductMap&&e.currency===r.currency&&e.language===r.language);va.displayName="Products";var Ea={container:"OrderFAB-module_container__YeERy",count:"OrderFAB-module_count__7ZQN5",isVisible:"OrderFAB-module_isVisible__-0j7W",animate:"OrderFAB-module_animate__Wx4O-",pulse:"OrderFAB-module_pulse__yF8uk",isInPublicMenu:"OrderFAB-module_isInPublicMenu__qwIrS",flexWide:"OrderFAB-module_flexWide__FfcIV",slidein:"OrderFAB-module_slidein__dniBn",fadeInOut:"OrderFAB-module_fadeInOut__BhXGd",heightAnimation:"OrderFAB-module_heightAnimation__B-TR3",fadein:"OrderFAB-module_fadein__DO09i",floatAnimation:"OrderFAB-module_floatAnimation__gOJf0",bottomSheet:"OrderFAB-module_bottomSheet__NRqrj",slideRightToLeft:"OrderFAB-module_slideRightToLeft__O8uj3",rotation:"OrderFAB-module_rotation__dOOw-"};const ga=({totalCount:t,isVisible:o,onClick:a,isInPublicMenu:n=!1})=>{const i=H(null),l=H(!1),s=t%1==0?t:t.toFixed(2);return G(()=>{if(!l.current)return;const e=i.current;e&&(e.classList.remove(Ea.animate),e.offsetWidth,e.classList.add(Ea.animate))},[t]),G(()=>{l.current=!0},[]),r("div",{className:te(Ea,{container:!0,isVisible:o,isInPublicMenu:n}),onClick:a,ref:i,children:[e(d,{icon:Te,color:m.DEFAULT,size:"md"}),e("div",{className:Ea.count,children:s})]})},Ia=({alwaysVisible:r=!1,isInPublicMenu:t=!1})=>{const o=uo(),{setIsOrderOpen:a,isOrderOpen:n}=ut();return o<=0&&!r?null:e(ga,{totalCount:o,isVisible:!n,onClick:()=>a(!n),isInPublicMenu:t})},ya=({containerRef:t})=>{var o;const a=(()=>{const{products:e}=cr();return e||[]})(),n=(()=>{const{categories:e}=cr();return e||[]})(),i=hr(),d=Pr(),l=((e,r)=>{const t=r.reduce((e,r)=>{if(!r.visible)return e;const t=Number(r.categoryId);return e[t]||(e[t]=[]),e[t].push(r),e},{});return e.map(e=>Object.assign(Object.assign({},e),{products:t[Number(e.id)]||[]})).filter(e=>{var r;return(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.length)>0})})(n,a),[s,u]=x(null===(o=null==n?void 0:n[0])||void 0===o?void 0:o.id),c=H({}),m=H(!0),p=F(e=>Vr(void 0,void 0,void 0,function*(){m.current=!1,u(e),(e=>{var r;const t=null===(r=null==c?void 0:c.current)||void 0===r?void 0:r[e];t&&(setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),_=F(e=>{if(!(null==m?void 0:m.current))return;const r=((e,r,t)=>{var o;const a=null===(o=null==r?void 0:r.find)||void 0===o?void 0:o.call(r,({id:r})=>r===e);return Z(a)?"":xo(a,t)})(e,n,i);ee(Go,{name:r}),u(e)},[n,i]),h=F(()=>Vr(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),r=Number(e.get("category"));if(!r)return;const t=(n||[]).find(({id:e})=>e===r);Z(t)||p(r)}),[n,p]);return G(()=>{h()},[h]),r("div",{className:Lo,children:[e($o,{categoryProductMap:l,language:i,selectedCategoryId:s,onSelectCategory:p}),e(va,{categoryProductMap:l,language:i,currency:d,productBlocksRef:c,containerRef:t,onCategoryInView:_}),e(Ia,{isInPublicMenu:!0})]})};var Ta="VideoFeed-module_container__6tYYs",ba="VideoFeed-module_videos__6KjGc",fa="Video-module_container__HT89i",Da="Video-module_videoContainer__GE-7a",Aa="Video-module_video__36hFc",Oa="Video-module_top__SIvSk",Na="Video-module_actionIcon__F6Ze1",Ra="Video-module_play__XCToT",Ca="Video-module_bottom__DNzui",Pa="Video-module_actions__cOh-0",Sa="Actions-module_container__K2DUX",ka="Actions-module_action__u-Mvu",La="Actions-module_animate__Y2p0y";const Ma=({video:t})=>{const{setModal:o}=l(),{addProduct:a,setIsOrderOpen:s}=ut(),u=H(null),{productId:c,productName:p}=t||{},_=uo(),h=Yo(c),{addToOrderEnabled:v}=Lr(),{sellUnitType:E,variants:g,addons:I,available:y}=h,T=(null==g?void 0:g.length)>0,b=(null==I?void 0:I.length)>0,f=E===to.WEIGHT||E===to.VOLUME||T||b,D=v&&y,A=F(()=>{o({id:qe,params:{product:h}})},[h,o]),O=F(()=>{if(f)return A();a({product:h}),ee(Qo,{name:p,quantity:1})},[a,A,h,p,f]),N=[{icon:be,onClick:A},...D?[{icon:Ee,onClick:O}]:[],{icon:Te,onClick:()=>s(!0),value:_,ref:u}];return G(()=>{const e=u.current;e&&(e.classList.remove(La),e.offsetWidth,e.classList.add(La))},[_]),e(n,{className:Sa,fullWidth:!0,gap:.5,children:N.map(({icon:t,onClick:o,value:a,ref:l},s)=>r(n,{alignItems:"center",gap:.375,children:[e("div",{className:ka,onClick:o,ref:l,children:e(d,{icon:t,size:"md",color:m.DEFAULT})}),!oe(a)&&e(i,{size:"xs",weight:"bold",color:"white",fullWidth:!0,align:"center",children:a})]},s))})};var wa={container:"VideoData-module_container__H-DjR",business:"VideoData-module_business__gYhgS",productName:"VideoData-module_productName__vBGba",businessName:"VideoData-module_businessName__refS2",description:"VideoData-module_description__LTbgV",noAvatar:"VideoData-module_noAvatar__ZwPv7",flexWide:"VideoData-module_flexWide__eoJyv",slidein:"VideoData-module_slidein__Rx56q",fadeInOut:"VideoData-module_fadeInOut__7WQqD",heightAnimation:"VideoData-module_heightAnimation__0aEX0",fadein:"VideoData-module_fadein__BB4dW",floatAnimation:"VideoData-module_floatAnimation__sbOmx",bottomSheet:"VideoData-module_bottomSheet__Ag-e1",slideRightToLeft:"VideoData-module_slideRightToLeft__-eS9s",rotation:"VideoData-module_rotation__77Eig",pulse:"VideoData-module_pulse__HMgCB"};const za=({video:t})=>{const[a,d]=x(!1),l=Wr();if(Z(t))return null;const{businessAvatar:s,businessName:u,productName:c,productDescription:m,productPrice:p}=t,_=Boolean(s);return r(n,{className:te(wa,{container:!0,noAvatar:!_}),gap:.75,fullWidth:!1,children:[r("a",{className:wa.business,href:l,children:[_&&e(A,{source:or(s),size:"sm"}),r(n,{gap:0,children:[e(i,{weight:"medium",color:"white",whiteSpace:"nowrap",className:wa.productName,children:c}),e(i,{color:"white",whiteSpace:"nowrap",className:wa.businessName,weight:"light",children:u})]})]}),e(i,{color:"white",className:wa.price,children:p}),Boolean(m)&&e(o,{onClick:()=>d(e=>!e),children:e(i,{color:"white",size:"sm",whiteSpace:a?"wrap":"nowrap",className:wa.description,children:m})})]})},ja=({video:t,isActive:a=!1,shouldLoad:i=!1,isMuted:l=!0,registerVideo:s,setIsMuted:u})=>{const[c,p]=x(!0),_=H(null),h=H(!1),v=Wr(),E=(e=>e?e.includes("base64")||e.startsWith("https://")?e:`https://videos.tabres.com/${e}`:"")(null==t?void 0:t.videoUrl),g=F(()=>{var e;const r=_.current;r&&(r.paused?null===(e=r.play())||void 0===e||e.catch(()=>{}):r.pause(),p(r.paused))},[]),I=F(()=>{h.current=!0},[]);return G(()=>{var e;const r=_.current;r&&(i&&!r.src&&(r.muted=!0,r.playsInline=!0,r.src=E,r.load()),i&&a&&(null===(e=r.play())||void 0===e||e.catch(()=>{})),a||r.paused||r.pause(),!i&&r.src&&(r.pause(),r.removeAttribute("src"),r.load()),p(r.paused))},[i,a,E]),G(()=>{_.current&&!c&&_.current.muted!==l&&(_.current.muted=l)},[l,c]),Z(t)?null:e("div",{className:fa,ref:e=>s(t.productId,e),children:r("div",{className:Da,children:[e("video",{ref:_,className:Aa,muted:!0,autoPlay:!0,playsInline:!0,preload:"none",loop:!0,controlsList:"nodownload nofullscreen noplaybackrate",controls:!1,disablePictureInPicture:!0,poster:or(t.thumbnail),onClick:g,onPlay:I}),r(o,{className:Oa,justifyContent:"space-between",children:[e("div",{className:Na,onClick:e=>{e.stopPropagation(),_.current&&h.current&&(_.current.muted=!_.current.muted,u(_.current.muted))},"data-testid":"mute-button",children:e(d,{icon:l?fe:De,size:"md",color:m.DEFAULT})}),e("a",{className:Na,href:v,children:e(d,{icon:Ae,size:"md",color:m.DEFAULT})})]}),c&&e("div",{className:Ra,children:e(d,{icon:Oe,size:"xxxl",color:m.DEFAULT})}),r(o,{className:Ca,alignItems:"flex-end",gap:1,children:[e(za,{video:t}),e(n,{className:Pa,justifyContent:"flex-end",fullWidth:!1,fullHeight:!1,children:e(Ma,{video:t})})]})]})})},Ua=()=>{const[t,o]=x(!0),a=_t(),n=(()=>{const e=mt(),r=pt();return Y(()=>r.filter(r=>r.productId!==Number(e)),[r,e])})(),i=H(null),{activeId:d,register:l}=function(e){const[r,t]=x(null),o=H(new Map);return G(()=>{const r=e.current;if(!r)return;let a;const n=new IntersectionObserver(e=>{const r=e.filter(e=>e.isIntersecting).sort((e,r)=>r.intersectionRatio-e.intersectionRatio)[0];r&&(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{t(e=>{var t,a;const n=null!==(a=null===(t=[...o.current.entries()].find(([,e])=>e===r.target))||void 0===t?void 0:t[0])&&void 0!==a?a:null;return e===n?e:n})}))},{root:r,threshold:[.6,.75,1]});return o.current.forEach(e=>n.observe(e)),()=>{cancelAnimationFrame(a),n.disconnect()}},[e]),{activeId:r,register:(e,r)=>{r&&o.current.set(e,r)}}}(i);return e("div",{className:Ta,children:r("div",{className:ba,tabIndex:0,ref:i,children:[e(ja,{video:a,registerVideo:l,isActive:d===a.productId,shouldLoad:!0,setIsMuted:o,isMuted:t}),n.map(r=>e(ja,{video:r,registerVideo:l,isActive:d===r.productId,shouldLoad:d===r.productId,setIsMuted:o,isMuted:t},r.productId))]})})};var Wa={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",media:"ProductDetails-module_media__Wy8ai",play:"ProductDetails-module_play__-4H6b",image:"ProductDetails-module_image__BlMfl",details:"ProductDetails-module_details__zfnlt",name:"ProductDetails-module_name__ganLM",price:"ProductDetails-module_price__W34k9",volume:"ProductDetails-module_volume__RWG5s",description:"ProductDetails-module_description__HBufi",allergens:"ProductDetails-module_allergens__rW3Fh",allergensTitle:"ProductDetails-module_allergensTitle__C2hxm",choices:"ProductDetails-module_choices__4tHaA",close:"ProductDetails-module_close__4cHZ3",stickyBottom:"ProductDetails-module_stickyBottom__17IWN",addAction:"ProductDetails-module_addAction__o4T5R",actionTitle:"ProductDetails-module_actionTitle__NIJGW"},Ba={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",focused:"Quantity-module_focused__Vfnh5",flexWide:"Quantity-module_flexWide__R95Jw",slidein:"Quantity-module_slidein__5yeWf",fadeInOut:"Quantity-module_fadeInOut__cllco",heightAnimation:"Quantity-module_heightAnimation__dhOgA",fadein:"Quantity-module_fadein__Cof2o",floatAnimation:"Quantity-module_floatAnimation__DSqQr",bottomSheet:"Quantity-module_bottomSheet__5-5iY",slideRightToLeft:"Quantity-module_slideRightToLeft__cjDHk",rotation:"Quantity-module_rotation__dn0J8",pulse:"Quantity-module_pulse__6kl4q"};const Va=({isDecreaseDisabled:t=!1,quantity:a=1,size:n="md",focusedSection:i,onIncrease:l,onDecrease:s})=>r(o,{className:te(Ba,{container:!0,focused:"quantity"===i},[Ba[n]]),justifyContent:"space-between",gap:0,children:[e("div",{className:te(Ba,{quantityAction:!0,isDisabled:t}),onClick:s,children:e(d,{icon:Ne})}),e("div",{className:Ba.quantityValue,children:a}),e("div",{className:Ba.quantityAction,onClick:l,children:e(d,{icon:Ee})})]});var Ya="ProductInOrder-module_container__0N57G",xa="ProductInOrder-module_title__TWjM9";const Fa=({productId:t,quantity:a,isInPublicMenu:n=!0,language:i,removeAllProductVariants:d,onModalClose:l})=>{const{setIsOrderOpen:s}=ut(),{t:u}=Yt("order",{language:i});return a<=0?null:r(c,{className:Ya,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[r(c.Item,{flex:1,className:xa,children:[u("In order")," (",a,")"]}),e(c.Item,{flex:0,children:r(o,{children:[e(y,{icon:Re,onClick:()=>{d(t)},type:m.DANGER,tooltip:u("Remove from order")}),n&&e(y,{icon:Te,onClick:()=>{s(!0),l&&l()},type:m.SUCCESS,tooltip:u("View order")})]})})]})};var Ha={container:"ProductVariants-module_container__r059N",variantsTitle:"ProductVariants-module_variantsTitle__G3wTr",variant:"ProductVariants-module_variant__Pk6eP",focused:"ProductVariants-module_focused__tdy2R",flexWide:"ProductVariants-module_flexWide__CQO0G",slidein:"ProductVariants-module_slidein__9xYoM",fadeInOut:"ProductVariants-module_fadeInOut__NcGdX",heightAnimation:"ProductVariants-module_heightAnimation__c7ORS",fadein:"ProductVariants-module_fadein__qqdC5",floatAnimation:"ProductVariants-module_floatAnimation__Fy-NX",bottomSheet:"ProductVariants-module_bottomSheet__JVxKH",slideRightToLeft:"ProductVariants-module_slideRightToLeft__lHsqZ",rotation:"ProductVariants-module_rotation__iJPfC",pulse:"ProductVariants-module_pulse__xzh2J"};const Ga=({product:t,selectedVariant:a,focusedSection:i,language:d,currency:l,onSelectVariant:s})=>{const{t:u}=Yt("order",{language:d}),c=H(null),{variants:m}=t||{},p="variant"===i;return G(()=>{p&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[i,p]),r(n,{className:te(Ha,{container:!0,focused:p}),gap:1,fullWidth:!0,children:[e("div",{className:Ha.variantsTitle,ref:c,children:u("Product choices")}),(m||[]).map(t=>{const{id:n}=t||{},i=Wo(t,d),u=((e,r,t)=>{const o=Mo(e);return X(o,r,t)})(t,l,d);return r(o,{justifyContent:"space-between",onClick:()=>s(n),className:Ha.variant,children:[e(h,{label:i,name:"variant",onChange:()=>s(n),checked:a===n,type:v.RADIO,size:"small",noMargin:!0}),e("div",{className:Ha.variantPrice,children:u})]},n)})]})};var Ka={container:"ProductAddons-module_container__DRnT7"};const Qa=(e,r)=>jr(null==e?void 0:e.title,r),qa=({product:t,selectedAddons:a,language:d,currency:l,onOptionSelect:s})=>{const{addons:u}=t||{};return e(n,{className:Ka.container,gap:1.5,fullWidth:!0,children:(u||[]).map(t=>{const{id:u,options:c,selectType:m}=t||{},p=Qa(t,d);return r(n,{children:[e(i,{variant:"bold",children:p}),e(n,{gap:1,fullWidth:!0,children:(c||[]).map(t=>{const{id:n}=t||{},i=((e,r,t)=>{const o=Mo(e);return X(o,r,t)})(t,l,d),c=Qa(t,d),p=m===zo.SINGLE,_=p?a[u]===n:(a[u]||[]).includes(n);return r(o,{justifyContent:"space-between",className:Ka.option,children:[e(h,{label:c,name:`option-${u}`,onChange:()=>s({addonId:u,optionId:n,isSingle:p,isRemove:!p&&_}),checked:_,type:p?v.RADIO:v.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:Ka.optionPrice,children:i})]},n)})})]},u)})})},Za=({product:t,language:a,currency:l,selectedVariant:s,focusedSection:u,selectedAddons:c,isDecreaseDisabled:h,quantity:v,actionTitle:E,isInPublicMenu:g,productQuantityInOrderWithAllVariants:I,modalRef:T,videoUrl:b,addToOrderEnabled:f=!0,onClose:D,setSelectedVariant:A,onOptionSelect:N,adjustQuantity:R,onSubmit:C,removeAllProductVariants:P,onQuantityChange:S})=>{const{t:k}=Yt("order",{language:a}),{name:L,description:M}=Y(()=>Uo(t,a),[t,a]),w=Y(()=>wo(t,l,a),[t,l,a]),z=Y(()=>(e=>{switch(e){case to.WEIGHT:return" / kg";case to.VOLUME:return" / l";default:return""}})(null==t?void 0:t.sellUnitType),[t]),j=Y(()=>jo({product:t,quantity:v,language:a,currency:l,variantId:s,selectedAddons:c}),[t,v,a,l,s,c]),U=Y(()=>(e=>{switch(e){case to.WEIGHT:return{"50gr":.05,"100gr":.1,"150gr":.15,"200gr":.2,"250gr":.25,"300gr":.3,"350gr":.35,"400gr":.4,"450gr":.45,"500gr":.5,"600gr":.6,"700gr":.7,"750gr":.75,"800gr":.8,"850gr":.85,"900gr":.9,"950gr":.95,"1kg":1,"2kg":2,"5kg":5,"10kg":10,"20kg":20};case to.VOLUME:return{"50ml":.05,"100ml":.1,"150ml":.15,"200ml":.2,"250ml":.25,"300ml":.3,"350ml":.35,"400ml":.4,"450ml":.45,"500ml":.5,"600ml":.6,"700ml":.7,"750ml":.75,"800ml":.8,"850ml":.85,"900ml":.9,"950ml":.95,"1l":1,"2l":2,"5l":5,"10l":10,"20l":20};default:return{}}})(null==t?void 0:t.sellUnitType),[t]),W=F(e=>{var r,t;(null===(t=null===(r=null==T?void 0:T.current)||void 0===r?void 0:r.contains)||void 0===t?void 0:t.call(r,null==e?void 0:e.target))||D&&D()},[T,D]);if(Z(t))return null;const{image1024:B,volume:V,variants:x,addons:H,available:G,sellUnitType:K}=t,Q=(null==x?void 0:x.length)>0,q=(null==H?void 0:H.length)>0,X=Vo(t).length>0,$=K===to.WEIGHT||K===to.VOLUME;return e("div",{className:Wa.container,onClick:W,children:e(p,{onClose:D,ref:T,noBodyPadding:!0,size:"small",content:r("div",{className:Wa.content,children:[r(n,{gap:0,children:[r("div",{className:Wa.media,children:[B&&e("img",{src:or(B),width:1024,height:400,alt:L||"product",className:Wa.image}),Boolean(b)&&r("a",{href:b,className:Wa.play,children:[e(d,{icon:Ce,color:m.DEFAULT}),e(i,{color:"white",children:k("Play video")})]})]}),r(n,{className:Wa.details,gap:1,children:[e("h2",{className:Wa.name,children:L}),r(o,{justifyContent:"space-between",children:[r("div",{className:Wa.price,children:[w,Boolean(z)&&k(z)]}),e("div",{className:Wa.volume,children:V})]}),e("div",{className:Wa.description,children:M}),X&&r(n,{gap:.5,className:Wa.allergens,children:[e(i,{size:"xs",className:Wa.allergensTitle,children:k("Contains allergens")}),e(ua,{product:t,language:a,size:"md",withTooltip:!0})]})]}),(Q||q)&&r(n,{gap:0,className:Wa.choices,children:[Q&&e(Ga,{product:t,selectedVariant:s,focusedSection:u,language:a,currency:l,onSelectVariant:A}),q&&e(qa,{product:t,selectedAddons:c,language:a,currency:l,onOptionSelect:N})]}),r(n,{gap:0,fullWidth:!0,className:Wa.stickyBottom,children:[$&&e(O,{onChange:S,value:v,shortcuts:U}),e(Fa,{productId:null==t?void 0:t.id,onModalClose:D,isInPublicMenu:g,removeAllProductVariants:P,quantity:I,language:a})]})]}),e("div",{className:Wa.close,children:e(y,{onClick:D,icon:Ae})})]}),footer:f?r(o,{className:Wa.addToOrder,gap:.5,children:[e(Va,{focusedSection:u,isDecreaseDisabled:h,onDecrease:()=>R(-1),onIncrease:()=>R(1),quantity:v}),e(_,{className:Wa.addAction,label:G?r(o,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:Wa.actionTitle,children:E}),e("span",{children:j})]}):k("Not available"),onClick:C,size:"xl",fullWidth:!0,disabled:!G,paddingBlock:.5})]}):null})})};var Xa="OrderDrawer-module_container__DymQj",$a="OrderDrawer-module_content__khduX",Ja="OrderDrawer-module_footer__8XfD9",en="OrderDrawer-module_noteButton__M8BVx",rn={container:"OrderStepper-module_container__GVnVU",count:"OrderStepper-module_count__u13tM",actionText:"OrderStepper-module_actionText__CZsVe",totalPrice:"OrderStepper-module_totalPrice__R9Mni",isClickable:"OrderStepper-module_isClickable__M3rWK",isLoading:"OrderStepper-module_isLoading__FkS16",isDisabled:"OrderStepper-module_isDisabled__xipwc",inDetails:"OrderStepper-module_inDetails__VdC2G",flexWide:"OrderStepper-module_flexWide__oIpQi",slidein:"OrderStepper-module_slidein__P6YJD",fadeInOut:"OrderStepper-module_fadeInOut__OVRav",heightAnimation:"OrderStepper-module_heightAnimation__bDpZh",fadein:"OrderStepper-module_fadein__526L2",floatAnimation:"OrderStepper-module_floatAnimation__rjwmv",bottomSheet:"OrderStepper-module_bottomSheet__777sc",slideRightToLeft:"OrderStepper-module_slideRightToLeft__UjVx6",rotation:"OrderStepper-module_rotation__PedNC",pulse:"OrderStepper-module_pulse__mOlOg"};const tn=({actionText:t,isLoading:a=!1,isDisabled:n=!1,onClick:i})=>{const{orderStep:d}=ut(),l=uo(),s=(()=>{const e=ao(),r=hr(),t=Pr();return X(e,t,r)})(),u=d===Gr.DETAILS;return r(c,{className:te(rn,{container:!0,isLoading:a,isClickable:!!i,isDisabled:n,inDetails:u}),justifyContent:"space-between",alignItems:"center",onClick:a||n?null:i,children:[e(c.Item,{flex:1,children:r(o,{alignItems:"center",children:[e("div",{className:rn.count,children:l}),e("div",{className:rn.actionText,children:a?e(N,{}):t})]})}),!u&&e(c.Item,{className:rn.totalPrice,flex:1,children:s})]})},on=({isOrderItemsEmpty:t=!1,orderError:o})=>{const{t:a}=Yt("order"),{t:d}=Yt("error"),{order:s,orderStep:u,orderItems:c,guestContact:p,setOrderStep:h,setIsOrderOpen:v,setTrackingId:E,updateOrderErrors:I,resetErrors:y}=ut(),{setModal:T}=l(),b=Mr(),f=Qt(),D=lo(),{isOpen:A,isDelivering:O}=kr(),N=io(),C=so(),[P,S]=x(!1),[k,L]=x(""),M=null==s?void 0:s.note,w=!!M,z=b&&u===Gr.CART,j=A||O,U=!!o||!j,W=()=>Vr(void 0,void 0,void 0,function*(){try{L(""),S(!0);const e=D?yield(e=>Vr(void 0,void 0,void 0,function*(){return nt.post("/order/public",e)}))(C):yield(e=>Vr(void 0,void 0,void 0,function*(){return nt.post("/customer/order",e)}))(N);return e.trackingId}catch(e){return L((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),it(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{S(!1)}}),B=b&&j?()=>Vr(void 0,void 0,void 0,function*(){if(Z(f)&&!D)return T({id:Ge});if(y(),u===Gr.DETAILS){if(s.orderType===Yr.DELIVERY){const e=!!(null==p?void 0:p.street)||!!(null==p?void 0:p.latitude)&&!!(null==p?void 0:p.longitude);if(!(D?e:!Z(null==f?void 0:f.addresses)))return I("customer")}if(s.orderType===Yr.DINE_IN&&!(null==s?void 0:s.tableId))return I("tableId");if(Z(c))return I("items");const e=yield W();if(!e)return;E(e)}const e=(Qr.findIndex(e=>e===u)||0)+1;if(e>=Qr.length)return;const r=Qr[e];h(r)}):null;return r(n,{className:Ja,fullWidth:!0,children:[!!k&&e(g,{message:d(k),type:"error",onClear:()=>L("")}),!!o&&e(R,{text:o,type:m.DANGER,fullWidth:!0}),z&&e(_,{label:w?e(i,{children:s.note}):r(n,{gap:0,children:[e(i,{children:a("Add an order note")}),e(i,{size:"sm",color:"muted",children:a("Special instructions, allergies, etc.")})]}),onClick:()=>{T({id:He,params:{note:M}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:en,icon:w?Pe:Ee,iconSize:"md"}),t?e(_,{label:a("Add items"),onClick:()=>v(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):u!==Gr.COMPLETED?e(tn,{actionText:a((()=>{if(!b)return"Subtotal";if(!j)return"Closed Now";switch(u){case Gr.CART:return"Continue";case Gr.DETAILS:return"Place order";default:return"Continue"}})()),onClick:B,isLoading:P,isDisabled:U}):null]})};var an={},nn="OrderListItem-module_container__Tj4RI",dn="OrderListItem-module_image__o3PIC",ln="OrderListItem-module_data__BLzxw",sn="OrderListItem-module_name__QEzuZ",un="OrderListItem-module_price__-V2qL",cn="ProductQuantity-module_quantity__PzTpj";const mn=({productId:r,variantId:t,min:o=1,size:a="md",selectedAddons:n,isDisabled:i=!1})=>{const d=(({productId:e,variantId:r,selectedAddons:t})=>{const{orderItems:o}=ut(),a=o[rt(e,r,t)];return(null==a?void 0:a.quantity)||1})({productId:r,variantId:t,selectedAddons:n}),l=Yo(r),{updateProduct:s}=ut(),u=d===o;return i?e("div",{className:cn,children:d}):e(Va,{isDecreaseDisabled:u,onDecrease:()=>s({product:l,quantity:d-1,variantId:t,selectedAddons:n}),onIncrease:()=>s({product:l,quantity:d+1,variantId:t,selectedAddons:n}),quantity:d,size:a})},pn=({item:o,product:a,language:n})=>e(t,{children:(o.addons||[]).map(({addonId:e,options:t})=>{const o=((e,r)=>((null==e?void 0:e.addons)||[]).find(({id:e})=>e===r)||{})(a,e),d=((null==o?void 0:o.options)||[]).filter(e=>null==t?void 0:t.some(({optionId:r})=>r===e.id));if(Z(o)||Z(d))return null;const l=Qa(o,n),s=d.map(e=>Qa(e,n)).filter(Boolean).join(", ");return l&&s?r(i,{color:"muted",size:"xs",children:[l,": ",s]},e):null})}),_n=({item:t,isDisabled:a=!1})=>{var d;const{productId:l}=t||{},s=null===(d=null==t?void 0:t.variant)||void 0===d?void 0:d.variantId,u=(e=>{const r={};for(const{addonId:t,options:o=[]}of e.addons||[]){const e=o.map(({optionId:e})=>e);r[t]=1===e.length?e[0]:e}return r})(t),c=Yo(l),m=((e,r)=>{var t,o;return(null===(o=null===(t=null==e?void 0:e.variants)||void 0===t?void 0:t.find)||void 0===o?void 0:o.call(t,e=>e.id===r))||{}})(c,s),p=hr(),_=Pr(),{image160:h}=c,v=Wo(m,p),{name:E}=Y(()=>Uo(c,p),[c,p]),g=Y(()=>((e,r,t)=>{const o=et(e);return X(o,r,t)})(t,_,p),[t,_,p]);return r(o,{className:nn,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:or(h),alt:E||"menu",className:dn,loading:"lazy",width:80,height:45}),r("div",{className:ln,children:[e("div",{className:sn,children:E}),r(n,{gap:0,children:[!!v&&e(i,{color:"muted",size:"xs",children:v}),e(pn,{item:t,product:c,language:p})]}),e("div",{className:un,children:g})]}),e(mn,{productId:l,variantId:s,selectedAddons:u,size:"sm",min:0,isDisabled:a})]})},hn=()=>{const{t:t}=Yt("order");return r(n,{className:an.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(i,{variant:"h2",children:t("Empty order")}),e(C,{text:t("You don't have any items in your order")})]})},vn=({isDisabled:r=!1})=>{const{orderItems:t}=ut(),o=Z(t);return e("div",{className:an.container,children:o?e(hn,{}):e("div",{className:an.items,children:Object.entries(t||{}).map(([t,o])=>e(_n,{item:o,isDisabled:r},t))})})},En=()=>e("div",{className:$a,children:e(vn,{})}),gn=B($r),In=({children:r})=>{const{order:t,orderItems:o}=ut(),a=Cr(),n=_r(),i=lo(),d=qt(),l=null==a?void 0:a.id,s=null==t?void 0:t.orderType,u=s===Yr.DELIVERY&&Or(null==d?void 0:d.latitude,null==d?void 0:d.longitude),c=u?d.latitude:void 0,m=u?d.longitude:void 0,[p,_]=x($r);return G(()=>{const e=(e=>Object.entries(e||{}).map(([e,r])=>{var t;return Object.assign(Object.assign({orderItemsId:e,productId:r.productId,quantity:r.quantity},(null===(t=r.variant)||void 0===t?void 0:t.variantId)?{variant:{variantId:r.variant.variantId}}:{}),r.addons&&r.addons.length>0?{addons:r.addons.map(e=>({addonId:e.addonId,options:(e.options||[]).map(e=>({optionId:e.optionId}))}))}:{})}))(o);if(!n||!l||!s||0===e.length)return void _(e=>e===$r?e:$r);const r=new AbortController;return _({data:null,isLoading:!0,error:null}),Vr(void 0,void 0,void 0,function*(){try{const t=i?vo:ho,o=yield t(Object.assign({businessId:n,branchId:l,orderType:s,items:e},u?{latitude:c,longitude:m}:{}),r.signal);if(r.signal.aborted)return;if(!(e=>{if(!e||"object"!=typeof e)return!1;const r=e;return"number"==typeof r.totalPriceWithoutTax&&"number"==typeof r.totalPriceWithTax&&"number"==typeof r.totalPriceWithTaxAndFees&&"number"==typeof r.totalTax&&"number"==typeof r.deliveryFee&&"number"==typeof r.serviceFee&&Array.isArray(r.items)&&Array.isArray(r.taxes)})(o))return void _({data:null,isLoading:!1,error:"We couldn't refresh order totals. Please try again."});_({data:o,isLoading:!1,error:null})}catch(e){if(r.signal.aborted)return;if("AbortError"===(null==e?void 0:e.name))return;_({data:null,isLoading:!1,error:"We couldn't refresh order totals. Please try again."})}}),()=>{r.abort()}},[null==t?void 0:t.orderType,c,m]),e(gn.Provider,{value:p,children:r})},yn=()=>V(gn);var Tn="CustomerAddress-module_container__TGYRV";const bn=()=>{const{t:r}=Yt("customer");return e(i,{color:m.DANGER,children:r("No address available")})},fn=()=>{const o=qt(),{t:a}=Yt("customer"),{additionalNumber:n,street:d,houseNumber:l,cityName:s,countryCode:u}=o,c=Jt(d,l,n),m=([s,u]||[]).filter(Boolean).join(", ");return r(t,{children:[e(i,{children:c||a("Unknown address")}),m&&e(i,{size:"sm",color:"muted",children:m})]})},Dn=()=>{const t=qt(),{setModal:a}=l();return e("div",{className:Tn,onClick:()=>{a({id:Ke})},children:r(o,{fullWidth:!0,alignItems:"center",children:[e(d,{icon:_e,size:"md"}),e(n,{gap:0,fullWidth:!0,children:Z(t)?e(bn,{}):e(fn,{})}),e(d,{icon:Pe,size:"sm"})]})})};var An="UnregisteredContact-module_container__BK5Ck";const On=()=>{var t,o,a;const{t:i}=Yt("customer"),{guestContact:d,updateGuestContact:l}=ut(),s=e=>{var r,t,o;const a=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.name;a&&l({[a]:null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:""})};return e(P,{title:i("Your details"),content:r(n,{className:An,gap:1,fullWidth:!0,children:[e(h,{name:"fullName",label:i("Full name"),placeholder:i("Your name"),type:v.TEXT,fullWidth:!0,value:null!==(t=null==d?void 0:d.fullName)&&void 0!==t?t:"",onChange:s,noMargin:!0}),e(h,{name:"phoneNumber",label:i("Phone number"),placeholder:"31 123 456 789",type:v.TEL,fullWidth:!0,value:null!==(o=null==d?void 0:d.phoneNumber)&&void 0!==o?o:"",onChange:s,noMargin:!0}),e(h,{name:"email",label:i("Email"),placeholder:"name@example.com",type:v.EMAIL,fullWidth:!0,value:null!==(a=null==d?void 0:d.email)&&void 0!==a?a:"",onChange:s,noMargin:!0})]}),isDefaultOpen:!0,fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"})};var Nn,Rn,Cn;!function(e){e.SQUARE="SQUARE",e.CIRCLE="CIRCLE",e.RECTANGLE="RECTANGLE",e.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",e.SINGLE_AT_BAR="SINGLE_AT_BAR",e.OTHER="OTHER"}(Nn||(Nn={})),function(e){e.VACANT="VACANT",e.RESERVED="RESERVED",e.OCCUPIED="OCCUPIED",e.BLOCKED="BLOCKED",e.NEEDS_CLEANING="NEEDS_CLEANING",e.OUT_OF_SERVICE="OUT_OF_SERVICE",e.PENDING_CONFIRMATION="PENDING_CONFIRMATION",e.NO_SHOW="NO_SHOW"}(Rn||(Rn={})),function(e){e.MAIN_HALL="MAIN_HALL",e.PRIVATE_DINING="PRIVATE_DINING",e.VIP_ROOM="VIP_ROOM",e.BANQUET_HALL="BANQUET_HALL",e.BAR_AREA="BAR_AREA",e.LOUNGE="LOUNGE",e.OPEN_KITCHEN="OPEN_KITCHEN",e.BOOTH_SECTION="BOOTH_SECTION",e.MEZZANINE="MEZZANINE",e.WINE_CELLAR="WINE_CELLAR",e.TERRACE="TERRACE",e.PATIO="PATIO",e.GARDEN="GARDEN",e.COURTYARD="COURTYARD",e.ROOFTOP="ROOFTOP",e.BALCONY="BALCONY",e.SIDEWALK="SIDEWALK",e.POOLSIDE="POOLSIDE",e.SMOKING_AREA="SMOKING_AREA",e.NON_SMOKING="NON_SMOKING",e.FAMILY_SECTION="FAMILY_SECTION",e.KIDS_AREA="KIDS_AREA",e.WAITING_AREA="WAITING_AREA",e.DANCE_FLOOR="DANCE_FLOOR"}(Cn||(Cn={}));var Pn={};const Sn=({preDefinedTable:t,tableOptions:a,selectedTableId:d,error:l,disableIfPreDefined:s,language:u,onChange:c})=>{const{t:p}=Yt("order",{language:u}),_=!Z(t),E=F(e=>{var r;c(Number(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)||null)},[c]);return r(n,{className:Pn.table,fullWidth:!0,gap:.5,children:[e(o,{fullWidth:!0,children:_&&s?e(i,{variant:"bold",children:t.name}):e(h,{name:"tableId",options:a,type:v.SELECT,className:Pn.tableInput,value:d,onChange:E,isDisabled:_,fullWidth:!0,noMargin:!0,size:"medium",placeholder:p("Select Table")})}),l&&e(i,{color:m.DANGER,children:p(l)})]})},kn=()=>{const r=(()=>{const{tableId:e,tables:r}=cr();return!e||Z(r)?{}:r.find(r=>Number(r.id)===Number(e))||{}})(),t=(()=>{const{tables:e}=cr();return e})(),{order:o,updateOrder:a,errors:n}=ut(),i=hr(),d=t.map(({id:e,name:r})=>({label:r,value:e}));return e(Sn,{onChange:e=>a({tableId:e}),preDefinedTable:r,tableOptions:d,selectedTableId:null==o?void 0:o.tableId,error:null==n?void 0:n.tableId,language:i,disableIfPreDefined:!0})};var Ln="OrderMethods-module_container__KSwfa";const Mn=({orderTypes:t,orderType:a,size:n,onSelect:l})=>{const{t:s}=Yt("error"),c=e=>0===e?"right":e+1===t.length?"left":"bottom",m=t.reduce((t,n,l)=>n.isVisible?(t.push((({type:t,icon:n,title:l,isDisabled:m},p)=>({value:t,isDisabled:m,label:e(u,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:c(p),children:r(o,{gap:.5,flexWrap:"nowrap",children:[e(d,{icon:n}),e(i,{color:t!==a||m?"normal":"white",whiteSpace:"nowrap",children:l})]})})}))(n,l)),t):t,[]);return e("div",{className:Ln,children:e(S,{methods:m,onSelect:l,selectedMethod:a,fullWidth:!0,size:n,gap:.5})})};var wn="OrderPaymentSummary-module_container__HF7-X",zn="OrderPaymentSummary-module_row__eikWa";const jn=({textSize:a,totalPriceWithoutTax:d=0,totalPriceWithTaxAndFees:l=0,deliveryFee:s=0,serviceFee:u=0,serviceFeePercentage:c=0,serviceFeeEnabled:m=!1,totalTax:p,discountAmount:_=0,discountType:h,discountRate:v,tipAmount:E=0,itemsCount:g,currency:I,language:y,orderType:T})=>{const{t:b}=Yt("order",{language:y}),f=E>0,D=e=>X(e,I,y);return r(n,{className:wn,fullWidth:!0,gap:0,children:[r(o,{justifyContent:"space-between",className:zn,children:[r(i,{size:a,children:[b("Items"),g?` (${g})`:""]}),e(i,{size:a,children:D(d)})]}),T===Yr.DELIVERY&&r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,children:b("Delivery Fee")}),e(i,{size:a,children:D(s)})]}),m&&r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,children:b("Service Fee ({{rate}}%)",{rate:String(c)})}),e(i,{size:a,children:D(u)})]}),r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,children:b("Tax")}),e(i,{size:a,children:D(p)})]}),r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,color:"bold",children:b("Total")}),e(i,{size:a,color:"bold",children:D(l)})]}),_>0&&r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,color:"muted",children:"PERCENTAGE"===h?b("Discount ({{rate}}%)",{rate:String(v)}):b("Discount")}),r(i,{size:a,weight:"medium",color:"success",children:["-",D(_)]})]}),f&&r(t,{children:[r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,children:b("Tip")}),e(i,{size:a,children:D(E)})]}),r(o,{justifyContent:"space-between",className:zn,children:[e(i,{size:a,color:"bold",children:b("Total with tip")}),e(i,{size:a,color:"bold",children:D(l+E)})]})]})]})};var Un={container:"OrderPaymentMethods-module_container__7G3--",group:"OrderPaymentMethods-module_group__mTv8u",grid:"OrderPaymentMethods-module_grid__kclES",panel:"OrderPaymentMethods-module_panel__Y2JW0",reveal:"OrderPaymentMethods-module_reveal__ZzGxT",method:"OrderPaymentMethods-module_method__nYLhX",label:"OrderPaymentMethods-module_label__b89Vz",check:"OrderPaymentMethods-module_check__qFVf7",chevron:"OrderPaymentMethods-module_chevron__I04iT",up:"OrderPaymentMethods-module_up__aFieM",toggle:"OrderPaymentMethods-module_toggle__NdAeL",active:"OrderPaymentMethods-module_active__gteSo",flexWide:"OrderPaymentMethods-module_flexWide__kLWQh",slidein:"OrderPaymentMethods-module_slidein__oQYp3",fadeInOut:"OrderPaymentMethods-module_fadeInOut__AEAhg",heightAnimation:"OrderPaymentMethods-module_heightAnimation__llDY0",fadein:"OrderPaymentMethods-module_fadein__XZyUq",floatAnimation:"OrderPaymentMethods-module_floatAnimation__M-Jmf",bottomSheet:"OrderPaymentMethods-module_bottomSheet__UsJYR",slideRightToLeft:"OrderPaymentMethods-module_slideRightToLeft__0reI-",rotation:"OrderPaymentMethods-module_rotation__EntOW",pulse:"OrderPaymentMethods-module_pulse__sT4lv"};const Wn={[Hr.CASH]:{icon:ze,label:"Cash"},[Hr.CARD]:{icon:we,label:"Card"},[Hr.BANK_TRANSFER]:{icon:Me,label:"Bank transfer"},[Hr.MOBILE]:{icon:Le,label:"Mobile pay"},[Hr.QR]:{icon:ke,label:"QR code"},[Hr.VOUCHER]:{icon:Se,label:"Voucher"}},Bn={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},Vn=()=>{const{t:o}=Yt("order"),{order:{preferredPaymentMethod:a},updateOrder:l}=ut(),{primary:s,secondary:u}=oo(),c=Q(),p=H([]),_=H(null),h=H(!1),v=u.find(e=>e===a),E=!Z(u),[g,I]=x(()=>!!v),y=[...s,...u],T=g?y:s,b=!T.some(e=>e===a),f=y.some(e=>e===a),D=y[0];G(()=>{f||l({preferredPaymentMethod:D})},[f,D,l]),G(()=>{var e,r;g&&h.current&&(h.current=!1,null===(r=null===(e=_.current)||void 0===e?void 0:e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest",behavior:"smooth"}))},[g]);const A=e=>l({preferredPaymentMethod:e}),O=t=>{const{icon:n,label:l}=Wn[t],s=t===a,u=T.indexOf(t);return r("button",{type:"button",role:"radio","aria-checked":s,tabIndex:s||b&&0===u?0:-1,ref:e=>{p.current[u]=e},className:te(Un,{method:!0,active:s}),onClick:()=>A(t),onKeyDown:e=>((e,r)=>{var t;const o=Bn[e.key];if(!o)return;e.preventDefault();const a=(T.indexOf(r)+o+T.length)%T.length;A(T[a]),null===(t=p.current[a])||void 0===t||t.focus()})(e,t),children:[e(d,{icon:n,size:"md",color:s?m.PRIMARY:void 0}),e(i,{className:Un.label,size:"sm",weight:s?"bold":"regular",noMargin:!0,children:o(l)}),e("span",{className:Un.check,"aria-hidden":"true",children:e(d,{icon:We,size:"xs",color:m.PRIMARY})})]},t)},N=!g&&v?Wn[v]:void 0;return r(n,{className:Un.container,gap:.75,fullWidth:!0,children:[e(i,{variant:"bold",children:o("Payment method")}),r("div",{className:Un.group,role:"radiogroup","aria-label":o("Payment method"),children:[e("div",{className:Un.grid,children:s.map(O)}),E&&r(t,{children:[r("button",{type:"button","aria-expanded":g,"aria-controls":c,className:te(Un,{method:!0,toggle:!0,active:!!N}),onClick:()=>{h.current=!g,I(!g)},children:[e(d,{icon:N?N.icon:je,size:"md",color:N?m.PRIMARY:void 0}),e(i,{className:Un.label,size:"sm",weight:N?"bold":"regular",noMargin:!0,children:o(N?N.label:"More methods")}),e("span",{className:te(Un,{chevron:!0,up:g}),"aria-hidden":"true",children:e(d,{icon:Ue,size:"xs"})})]}),g&&e("div",{id:c,ref:_,className:te(Un,{grid:!0,panel:!0}),children:u.map(O)})]})]})]})};var Yn={container:"OrderTip-module_container__f3u6M",chips:"OrderTip-module_chips__sXYAo",chip:"OrderTip-module_chip__HbyTW",active:"OrderTip-module_active__I1zfx",flexWide:"OrderTip-module_flexWide__NkP9O",slidein:"OrderTip-module_slidein__QRTgf",fadeInOut:"OrderTip-module_fadeInOut__vS323",heightAnimation:"OrderTip-module_heightAnimation__z4xBb",fadein:"OrderTip-module_fadein__Gq-aQ",floatAnimation:"OrderTip-module_floatAnimation__k1pnw",bottomSheet:"OrderTip-module_bottomSheet__fY1Mx",slideRightToLeft:"OrderTip-module_slideRightToLeft__9p69l",rotation:"OrderTip-module_rotation__LlI3s",pulse:"OrderTip-module_pulse__EyuLX"};const xn=()=>{var t;const{t:a}=Yt("order"),{order:{preferredTipAmount:d},updateOrder:l}=ut(),{data:s}=yn(),u=null!==(t=null==s?void 0:s.totalPriceWithoutTax)&&void 0!==t?t:0,[c,m]=x(()=>d?"custom":"none"),[p,_]=x(()=>null!=d?d:"");G(()=>{let e=0;var r,t;"custom"===c?e=Math.max(0,parseFloat(p)||0):"number"==typeof c&&(t=c,e=!(r=u)||r<=0||!t||t<=0?0:Math.round(r*t)/100);const o=e>0?(e=>e.toFixed(2))(e):void 0;o!==d&&l({preferredTipAmount:o})},[c,p,u,l]);const E=[{key:"none",label:a("None"),mode:"none"},...Xr.map(e=>({key:`${e}`,label:`${e}%`,mode:e})),{key:"custom",label:a("Custom"),mode:"custom"}];return r(n,{className:Yn.container,gap:.75,fullWidth:!0,children:[e(i,{variant:"bold",children:a("Add a tip")}),e(o,{className:Yn.chips,gap:.5,fullWidth:!0,children:E.map(r=>e(o,{fullWidth:!1,justifyContent:"center",alignItems:"center",className:te(Yn,{chip:!0,active:c===r.mode}),onClick:()=>{m(r.mode),"none"===r.mode&&_("")},children:e(i,{size:"sm",children:r.label})},r.key))}),"custom"===c&&e(h,{name:"customTip",type:v.NUMBER_WITH_STEPS,placeholder:a("Enter tip amount"),value:p,onChange:e=>{var r,t;_(null!==(t=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)&&void 0!==t?t:"")},min:0,step:.5,autoFocus:!0,fullWidth:!0,noMargin:!0})]})},Fn=()=>{var t,o,a,i,d,l;const s=hr(),u=Pr(),{order:{orderType:c,preferredTipAmount:m},updateOrder:p}=ut(),{data:_}=yn(),{isOpen:h,isDelivering:v}=kr(),{deliveryOrderEnabled:E,dineInOrderEnabled:g,pickupOrderEnabled:I,serviceChargePercentage:y,serviceChargeEnabled:T}=Lr(),b=mo(),f=lo(),D=uo(),{t:A}=Yt("order"),O=[{type:Yr.DELIVERY,icon:Be,title:A("Delivery"),isDisabled:!v,isVisible:E},{type:Yr.DINE_IN,icon:Ie,title:A("Dine in"),isDisabled:!h,isVisible:g},{type:Yr.PICK_UP,icon:Te,title:A("Pickup"),isDisabled:!h,isVisible:I}];return r(n,{className:$a,gap:1,children:[e(Mn,{orderTypes:O,orderType:c,size:"medium",onSelect:e=>p({orderType:e})}),f&&e(On,{}),c===Yr.DELIVERY&&e(Dn,{}),c===Yr.DINE_IN&&e(k,{paddingInline:1,fullWidth:!0,children:e(kn,{})}),e(P,{title:A("Order summary"),content:e(vn,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(xn,{}),e(jn,{textSize:"sm",totalPriceWithoutTax:null!==(t=null==_?void 0:_.totalPriceWithoutTax)&&void 0!==t?t:0,totalPriceWithTax:null!==(o=null==_?void 0:_.totalPriceWithTax)&&void 0!==o?o:0,totalPriceWithTaxAndFees:null!==(a=null==_?void 0:_.totalPriceWithTaxAndFees)&&void 0!==a?a:0,totalTax:null!==(i=null==_?void 0:_.totalTax)&&void 0!==i?i:0,deliveryFee:null!==(d=null==_?void 0:_.deliveryFee)&&void 0!==d?d:b,serviceFee:null!==(l=null==_?void 0:_.serviceFee)&&void 0!==l?l:0,serviceFeePercentage:null!=y?y:0,serviceFeeEnabled:T,tipAmount:m?parseFloat(m):0,itemsCount:D,language:s,currency:u,orderType:c}),e(Vn,{})]})},Hn=()=>e(In,{children:e(Fn,{})}),Gn=()=>{const{t:t}=Yt("order"),{trackingId:o}=ut(),a=hr(),l=dr();return r(n,{className:$a,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(d,{icon:We,size:"xxl",color:m.SUCCESS}),e(k,{paddingInline:2,children:e(i,{variant:"h1",align:"center",children:t("Your Order is Completed!")})}),e(k,{paddingInline:2,children:e(i,{align:"center",children:t("Thank you! We've received your order and it will be delivered shortly.")})}),e(k,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(L,{href:`https://${l}/${a}/order/${o}`,title:t("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},Kn=()=>{const{isOrderOpen:r,orderItems:t}=ut(),{orderStep:o,setOrderStep:a,resetOrder:n}=ut(),i=H(null),{t:d}=Yt("order"),l=(()=>{const{order:e,orderStep:r}=ut(),t=po(),o=_o(),{t:a}=Yt("error");return r!==Gr.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===Yr.DELIVERY?o||t:null:a("NO_ORDER_TYPE")})(),s=!!l,u=Mr()&&(o===Gr.CART||s),c=Z(t),m=()=>{n()};return r?e("div",{className:Xa,onClick:e=>{var r,t;(null===(t=null===(r=null==i?void 0:i.current)||void 0===r?void 0:r.contains)||void 0===t?void 0:t.call(r,null==e?void 0:e.target))||m()},children:e(M,{ref:i,onClose:m,isOpen:r,title:d("Your order"),onBack:o===Gr.CART?void 0:()=>{a(Gr.CART)},content:(()=>{switch(o){case Gr.DETAILS:return e(Hn,{});case Gr.COMPLETED:return e(Gn,{});default:return e(En,{})}})(),footer:e(on,{isOrderItemsEmpty:c,orderError:l}),hasLargeFooter:u})}):null},Qn={[He]:({params:t})=>{const{modalRef:a,note:n}=t,[i,d]=x(n||""),{setModal:s}=l(),{updateOrder:u}=ut(),{t:c}=Yt("order"),{t:E}=Yt("common");return e(p,{ref:a,header:e("div",{children:c("Add an order note")}),content:e("div",{className:Gt.container,children:e(h,{type:v.TEXT_AREA,placeholder:c("Specify any allergies, special requests, or ingredients you want to add or remove"),value:i,onChange:e=>{var r;return d(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)}})}),footer:r(o,{justifyContent:"flex-end",children:[e(_,{label:E("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(_,{label:E("Save"),onClick:()=>{u({note:i}),s(null)},size:"md"})]})})},[Ge]:({params:t})=>{const{t:o}=Yt("auth"),{t:a}=Yt("error"),{t:i}=Yt("common"),{setModal:d}=l(),{setOrderStep:s,getCustomer:u}=ut(),[c,m]=x({otp:"",email:""}),[h,v]=x({}),[E,I]=x(""),[y,T]=x(Zt.EMAIL),b=[Zt.EMAIL,Zt.OTP],{modalRef:f}=t,D=()=>{const e=b.indexOf(y),r=b[e+1];if(r)return T(r);s(Gr.DETAILS),d(null)},A=F(e=>r=>{m(t=>Object.assign(Object.assign({},t),{[e]:r}))},[]);return e(p,{ref:f,title:o("Create an account or log in"),onClose:()=>d(null),content:r(n,{className:Kt.content,fullWidth:!0,children:[!!E&&e(g,{message:a(E),type:"error",onClear:()=>I(""),inline:!0}),y===Zt.OTP?e(Eo,{address:c.email,errorMessage:null==h?void 0:h.otp,onChange:A("otp")}):e(go,{onChange:A("email"),formErrors:h})]}),footer:e(_,{label:i("Continue"),onClick:()=>Vr(void 0,void 0,void 0,function*(){I("");try{const t=((e,r)=>{const t={},{email:o,otp:a}=e||{};switch(r){case Zt.OTP:o&&re(o)||(t.email="Invalid Email Address"),a&&6===a.length||(t.otp="Invalid OTP");break;case Zt.EMAIL:o&&re(o)||(t.email="Invalid Email Address")}return t})(c,y);if(!Z(t))return v(t);switch(v({}),y){case Zt.OTP:{const t=yield(e=c.otp,r=c.email,Vr(void 0,void 0,void 0,function*(){return nt.post("/otp/verify",{otp:e,email:r})}));if(!(null==t?void 0:t.accessToken))throw new Error("SOMETHING_WRONG");rr.saveAuthToken(t);break}case Zt.EMAIL:{const e=yield(e=>Vr(void 0,void 0,void 0,function*(){return nt.post("/customer",{email:e})}))(c.email);if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield u(),D()}catch(e){I((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),it(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:c})}var e,r}),size:"lg",fullWidth:!0})})},[Ke]:({params:t})=>{const o=Xe[0].code,{getCustomer:a,updateGuestContact:d}=ut(),s=lo(),u=hr(),E=Cr(),{id:y,countryCode:T=o,cityName:b="",street:f="",houseNumber:D="",floor:A,additionalNumber:O="",instructions:N="",longitude:R,latitude:C,postCode:P}=qt(),S={addressId:y,countryCode:T,cityName:b,street:f,houseNumber:D,additionalNumber:O,instructions:N,floor:A,latitude:C,longitude:R,postCode:P},{modalRef:k}=t,{t:L}=Yt("customer"),{t:M}=Yt("error"),{t:w}=Yt("common"),{setModal:z}=l(),[j,U]=x(S),[W,B]=x({}),[V,Y]=x(""),[H,G]=x(!1),[K,Q]=x(!1),[q,X]=x(!1),$=W.countryCode||!q&&W.cityName||W.street,J=Jt(S.street,S.houseNumber,void 0),ee=e=>{var r,t;const o=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.name,a=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value;U(e=>{const r=Object.assign(Object.assign({},e),{[o]:a}),t=$t(r);return B(t),r})},re=()=>z(null),te=F(e=>{const r=Object.assign(Object.assign({},j),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber||"",latitude:e.lat,longitude:e.long,postCode:e.postCode}),t=$t(r);U(r),B(t),Q(!e.houseNumber),X(!e.cityName)},[j]);return e(p,{ref:k,title:L("Update Delivery Address"),onClose:re,content:e("div",{className:Io.content,children:r(n,{fullWidth:!0,children:[!!V&&e(g,{message:M(V),type:"error",onClear:()=>Y(""),inline:!0}),r(n,{fullWidth:!0,gap:.5,children:[e(I,{onSelect:te,language:u,origin:{lat:null==E?void 0:E.latitude,lng:null==E?void 0:E.longitude},noMargin:!0,defaultAdressText:J,placeHolder:L("Enter address"),inputLabel:L("Address")}),$&&e(i,{color:m.DANGER,children:M($)})]}),q&&e(h,{name:"cityName",label:L("City"),placeholder:"Amsterdam",type:v.TEXT,fullWidth:!0,value:j.cityName,onChange:ee,errorMessage:M(W.cityName)}),r(c,{gap:1,children:[K&&e(c.Item,{flex:6,children:e(h,{name:"houseNumber",label:L("House No."),placeholder:"221B",type:v.TEXT,value:j.houseNumber,onChange:ee,errorMessage:M(W.houseNumber)})}),e(c.Item,{flex:6,children:e(h,{name:"floor",label:L("Floor"),placeholder:"7",type:v.TEXT,value:j.floor,onChange:ee,errorMessage:M(W.floor)})}),e(c.Item,{flex:6,children:e(h,{name:"additionalNumber",label:L("Additional number"),placeholder:"17",type:v.TEXT,value:j.additionalNumber,onChange:ee,errorMessage:M(W.additionalNumber)})})]}),e(h,{name:"instructions",placeholder:L("Example: Door code is 555"),label:L("Delivery Instructions"),type:v.TEXT,fullWidth:!0,value:j.instructions,onChange:ee,errorMessage:M(W.instructions)})]})}),footer:e(_,{label:w("Save"),onClick:()=>Vr(void 0,void 0,void 0,function*(){Y("");try{const r=$t(j);if(!Z(r))return B(r);if(B({}),s)return d({countryCode:j.countryCode,cityName:j.cityName,street:j.street,houseNumber:j.houseNumber,additionalNumber:j.additionalNumber,instructions:j.instructions,floor:j.floor?Number(j.floor):void 0,latitude:j.latitude,longitude:j.longitude,postCode:j.postCode}),void re();G(!0);const t=yield(e={address:j},Vr(void 0,void 0,void 0,function*(){return nt.patch("/customer",e)}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");a(),re()}catch(e){Y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),it(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:j})}finally{G(!1)}var e}),size:"lg",fullWidth:!0,isLoading:H})})},[Qe]:({params:r})=>{const{setModal:t}=l(),{t:o}=Yt("branch"),{modalRef:a,openingHours:n,deliveryHours:i}=r;return e(p,{ref:a,onClose:()=>t(null),content:e(Do,{openingHours:n,deliveryHours:i}),title:o("Opening Hours")})},[qe]:({params:r})=>{const{product:t={},modalRef:o,closeModal:a}=r,n=(null==t?void 0:t.sellUnitType)===to.WEIGHT||(null==t?void 0:t.sellUnitType)===to.VOLUME?0:1,i=hr(),d=Pr(),{addToOrderEnabled:l}=Lr(),{addProduct:s,updateProduct:u,removeAllProductVariants:c}=ut(),[m,p]=x(n),[_,h]=x(!1),[v,E]=x(null),[g,I]=x(null),[y,T]=x({}),{t:b}=Yt("order"),f=(({productId:e,variantId:r,selectedAddons:t})=>{var o;const{orderItems:a}=ut();return Z(a)||!e?0:(null===(o=a[rt(e,r,t)])||void 0===o?void 0:o.quantity)||0})({productId:null==t?void 0:t.id,variantId:v,selectedAddons:y}),D=(e=>{const{orderItems:r}=ut();return Z(r)||!e?0:Object.values(r).filter(r=>r.productId===e).reduce((e,r)=>e+r.quantity,0)})(null==t?void 0:t.id),{name:A}=Y(()=>Uo(t,i),[t,i]),O=_?0===m:1===m,N=Y(()=>b(_?0===m?"Remove from order":"Update order":"Add"),[_,m]),R=ht(null==t?void 0:t.id),C=Boolean(t.videoUrl);G(()=>{Vr(void 0,void 0,void 0,function*(){p(f>0?f+1:n),h(f>0)})},[f,t,n]),G(()=>{Vr(void 0,void 0,void 0,function*(){E(null),T({})})},[t]);const P=F(e=>{I(e),setTimeout(()=>{I(null)},200)},[]),S=F(()=>{var e;return(null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!v?P("variant"):m<=0?P("quantity"):(_?u({product:t,quantity:m,variantId:v,selectedAddons:y}):(s({product:t,quantity:m,variantId:v,selectedAddons:y}),ee(Qo,{name:A,quantity:m})),void(null==a||a()))},[s,a,P,_,A,t,m,y,v,u]),k=F(e=>{-1===e&&O||p(r=>Math.max(0,r+e))},[O]),L=F(({addonId:e,optionId:r,isSingle:t,isRemove:o=!1})=>{T(a=>{if(t)return Object.assign(Object.assign({},a),{[e]:r});const n=a[e]||[],i=o?n.filter(e=>e!==r):[...new Set([...n,r])];return Object.assign(Object.assign({},a),{[e]:i})})},[]);return e(Za,{modalRef:o,product:t,language:i,currency:d,selectedVariant:v,focusedSection:g,selectedAddons:y,isDecreaseDisabled:O,quantity:m,actionTitle:N,videoUrl:C?R:void 0,addToOrderEnabled:l,onClose:a,setSelectedVariant:E,onOptionSelect:L,adjustQuantity:k,onSubmit:S,removeAllProductVariants:c,productQuantityInOrderWithAllVariants:D,onQuantityChange:e=>p(e),isInPublicMenu:!0})}},qn=()=>{const{getCustomer:t}=ut(),o=H(null),a=lr(),n=wr(),d=Rr()||n,l=_t(),{url:s,domain:u}=vr(),{headerText:c,footerText:m}=(()=>{const e=hr(),{menuDesign:r}=cr();return{headerText:jr(null==r?void 0:r.headerText,e)||null,footerText:jr(null==r?void 0:r.footerText,e)||null}})();return G(()=>{a||t()},[t,a]),Z(l)?r("div",{className:Ve,ref:o,children:[e(Ht,{}),d&&c&&e(i,{fullWidth:!0,align:"center",className:xe,children:c}),d?e(ya,{containerRef:o}):e(ko,{}),e(Oo,{size:"md",zIndex:10}),d&&m&&e(i,{fullWidth:!0,align:"center",className:Fe,children:m}),!!u&&e("a",{rel:"noopener noreferrer",target:"_blank",href:s,className:Ye,children:u})]}):e(Ua,{})},Zn=({data:t})=>e(ur,{value:t||{},children:e(st,{children:r(w,{modalsMap:Qn,children:[e(qn,{}),e(Kn,{})]})})});var Xn={};const $n=({currentGoal:r,language:t,setGoal:o})=>{const{t:a}=Yt("events",{language:t}),n=H({}),i=e=>{switch(e){case Go:return a("Scrolled to Category");case Ho:return a("Category Selected");case Ko:return a("Product Details");case Qo:return a("Product Added to Order");default:return""}},d=F(e=>{var r,t;o(e),null===(t=null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.close)||void 0===t||t.call(r)},[o]);return e(z,{action:i(r),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:n,menu:e("div",{className:Xn.toolbarMenu,children:Zo.map(r=>e(j,{onClick:()=>d(r),children:i(r)},r))})})},Jn=({data:r,isLoading:t=!1,language:o,goal:a,setGoal:n})=>{const{t:i}=Yt("events",{language:o});return e(U,{title:i("Events"),toolbar:e($n,{language:o,currentGoal:a,setGoal:n}),children:t?e(N,{}):e(W,{data:r})})};export{ua as AllergenIcons,$o as Categories,Jn as Events,ga as OrderFAB,Mn as OrderMethods,jn as OrderPaymentSummary,st as OrderProvider,Sn as OrderTableUI,Za as ProductDetailsUI,pa as ProductsGridItem,Zn as PublicMenu,Va as Quantity,ut as useOrderContext};
1
+ import{jsx as e,jsxs as r,Fragment as t}from"react/jsx-runtime";import{Row as o,classNames as a,Column as i,Text as n,SVGIcon as d,useModalContext as l,IconLink as s,Tooltip as u,Flex as c,UIElementType as m,Modal as _,Button as p,Input as h,InputType as v,OTPInput as g,AlertBox as E,AddressAutocomplete as y,IconButton as b,Container as I,Carousel as T,CarouselItem as f,Chip as D,Avatar as A,Numpad as O,Loading as N,TextBanner as R,Description as C,Accordion as P,MethodSelection as S,Padding as k,Link as L,Drawer as M,ModalProvider as w,DropDown as z,DropDownMenuItem as j,Card as U,BarChart as W}from"@sorocraft/ui";import{createContext as B,useContext as V,useMemo as Y,useState as x,useCallback as F,useRef as H,useEffect as G,memo as K,useId as Q}from"react";import{isEmpty as q,Storage as Z,priceFormatter as X,sortNumbers as $,HttpClient as J,trackEvent as ee,checkIsValidEmail as re,classNames as te,isNil as oe}from"@sorocraft/js-utils";import{ChevronLeft as ae,Phone as ie,Whatsapp as ne,Instagram as de,Telegram as le,Tiktok as se,Facebook as ue,MessageHeartSquare as ce,Wifi as me,Clock as _e,MarkerPin as pe,ChevronUp as he,AlertCircle as ve,Plus as ge,List as Ee,Grid as ye,PlaySquare as be,ShoppingBag as Ie,Eye as Te,VolumeX as fe,VolumeMax as De,Close as Ae,Play as Oe,Minus as Ne,Trash as Re,PlayCircle as Ce,Edit as Pe,ReceiptCheck as Se,QrCode as ke,MobilePhone as Le,Building07 as Me,CreditCard as we,BankNote as ze,DotsHorizontal as je,ChevronDown as Ue,Check as We,Delivery as Be}from"@sorocraft/ui/icons";var Ve="PublicMenu-module_container__QLN6U",Ye="PublicMenu-module_footer__6G3DQ",xe="PublicMenu-module_headerText__hKbnP",Fe="PublicMenu-module_footerText__a4g0i";const He="en",Ge=(e,r)=>e?r&&e[r]?e[r]:e[He]?e[He]:Object.values(e).find(Boolean)||"":"",Ke=(e,r)=>{if(!e)return{};const t={};for(const o of((e,r)=>{const t=r&&r!==He?[r,He]:[He];return[...t,...Object.keys(e).filter(e=>!t.includes(e))]})(e,r)){const r=e[o];if(r)for(const e of Object.keys(r))!t[e]&&r[e]&&(t[e]=r[e])}return t},Qe=(e,r)=>Ge(null==e?void 0:e.name,r),qe=e=>Number(null==e?void 0:e.parentId)>0,Ze=(e,r)=>{var t;if(!qe(e))return;const o=null===(t=null==r?void 0:r.find)||void 0===t?void 0:t.call(r,({id:r})=>Number(r)===Number(e.parentId));return q(o)||Number(o.id)===Number(e.id)||qe(o)?void 0:o},Xe=e=>{var r;return(null===(r=null==e?void 0:e.products)||void 0===r?void 0:r.length)>0},$e="ADD_UPDATE_NOTES",Je="AUTH",er="ADD_UPDATE_ADDRESS",rr="BRANCH_BUSINESS_HOURS",tr="PRODUCT_DETAILS",or=["en","az","nl","et","tr","ru","pl","pt","hr"],ar=[{name:"Azerbaijan",code:"AZ",phoneCode:"+994"}],ir="tabres.com",nr=ir,dr="https://images.tabres.com",lr=new Z("tabres_cst_act","tabres_cst_rft"),sr=(e,r)=>{const t=r||"en";return"localhost:3000"===e?{url:`http://localhost:3000/${t}`,domain:ir}:{url:`https://${ir}/${t}`,domain:ir}},ur=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${dr}/${e}`:"",cr=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${dr}/${e}`:"https://images.tabres.com/no-photo-128.webp",mr=e=>e?e.includes("base64")||e.startsWith("https://")?e:`${dr}/${e}`:"https://images.tabres.com/tabres-doodle.webp",_r=(e,r)=>{const t=parseInt(e.replace("#",""),16),o=(t>>16&255)/255,a=(t>>8&255)/255,i=(255&t)/255,n=Math.max(o,a,i),d=Math.min(o,a,i),l=(n+d)/2;let s=0,u=0;if(n!==d){const e=n-d;switch(u=l>.5?e/(2-n-d):e/(n+d),n){case o:s=(a-i)/e+(a<i?6:0);break;case a:s=(i-o)/e+2;break;case i:s=(o-a)/e+4}s/=6}const c=Math.max(0,Math.min(1,l+r/100)),m=(e,r,t)=>(t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+6*(r-e)*t:t<.5?r:t<2/3?e+(r-e)*(2/3-t)*6:e);let _=c,p=c,h=c;if(0!==u){const e=c<.5?c*(1+u):c+u-c*u,r=2*c-e;_=m(r,e,s+1/3),p=m(r,e,s),h=m(r,e,s-1/3)}const v=e=>Math.round(255*e).toString(16).padStart(2,"0");return`#${v(_)}${v(p)}${v(h)}`},pr=()=>{const{hostname:e}=Er();return e||nr},hr=()=>{const{isInDashboard:e}=Er();return e||!1},vr=B({}),gr=({children:r,value:t})=>{var o,a,i,n,d,l,s,u,c,m,_,p,h,v,g,E,y,b,I,T;return e(vr.Provider,{value:t,children:e("div",{style:{"--sorocraft-color-primary":null===(o=t.menuDesign)||void 0===o?void 0:o.primaryColor,"--sorocraft-color-primary-light":(null===(a=t.menuDesign)||void 0===a?void 0:a.primaryColor)&&_r(t.menuDesign.primaryColor,37.5),"--sorocraft-color-primary-active":(null===(i=t.menuDesign)||void 0===i?void 0:i.primaryColor)&&_r(t.menuDesign.primaryColor,-7.5),"--tabres-menu-category-background-color":null===(n=t.menuDesign)||void 0===n?void 0:n.categoryBackgroundColor,"--tabres-menu-category-text-color":null===(d=t.menuDesign)||void 0===d?void 0:d.categoryTextColor,"--tabres-menu-product-card-background-color":null===(l=t.menuDesign)||void 0===l?void 0:l.productCardBackgroundColor,"--tabres-menu-product-card-text-color":null===(s=t.menuDesign)||void 0===s?void 0:s.productCardTextColor,"--tabres-menu-product-card-description-text-color":null===(u=t.menuDesign)||void 0===u?void 0:u.productCardDescriptionTextColor,"--tabres-menu-product-card-volume-text-color":null===(c=t.menuDesign)||void 0===c?void 0:c.productCardVolumeTextColor,"--tabres-menu-product-card-price-text-color":null===(m=t.menuDesign)||void 0===m?void 0:m.productCardPriceTextColor,"--tabres-menu-product-card-block-padding":null===(_=t.menuDesign)||void 0===_?void 0:_.productCardBlockPadding,"--tabres-menu-category-title-font-size":null===(p=t.menuDesign)||void 0===p?void 0:p.categoryTitleFontSize,"--tabres-menu-product-name-font-size":null===(h=t.menuDesign)||void 0===h?void 0:h.productNameFontSize,"--tabres-menu-product-price-font-size":null===(v=t.menuDesign)||void 0===v?void 0:v.productPriceFontSize,"--tabres-menu-distance-between-category-title-and-products":null===(g=t.menuDesign)||void 0===g?void 0:g.distanceBetweenCategoryTitleAndProducts,"--tabres-menu-product-description-font-size":null===(E=t.menuDesign)||void 0===E?void 0:E.productDescriptionFontSize,"--tabres-menu-product-volume-font-size":null===(y=t.menuDesign)||void 0===y?void 0:y.productVolumeFontSize,"--tabres-menu-product-separator-color":null===(b=t.menuDesign)||void 0===b?void 0:b.productSeparatorColor,"--tabres-menu-page-background-color":null===(I=t.menuDesign)||void 0===I?void 0:I.menuPageBackgroundColor,"--tabres-menu-page-text-color":null===(T=t.menuDesign)||void 0===T?void 0:T.menuPageTextColor},children:r})})},Er=()=>V(vr),yr=()=>{const{business:e}=Er();return e||{}},br=()=>{const{id:e}=yr();return e},Ir=()=>{const{language:e}=Er();return e||He},Tr=()=>{const e=pr(),r=Ir();return Y(()=>sr(e,r),[e,r])},fr=()=>{const{url:e}=Tr(),r=(()=>{const{username:e}=yr();return e||""})();return Y(()=>`${e}/${r}`,[e,r])};var Dr,Ar,Or,Nr,Rr;!function(e){e.FIXED="FIXED",e.DISTANCE="DISTANCE"}(Dr||(Dr={})),function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount",e.DELIVERY_FEE_AMOUNT="deliveryFeeAmount",e.DELIVERY_FEE_TYPE="deliveryFeeType",e.DELIVERY_FEE_TIERS="deliveryFeeTiers",e.SERVICE_CHARGE_ENABLED="serviceChargeEnabled",e.SERVICE_CHARGE_PERCENTAGE="serviceChargePercentage",e.ADD_TO_ORDER_ENABLED="addToOrderEnabled",e.GUEST_ORDER_ENABLED="guestOrderEnabled",e.PRIMARY_PAYMENT_METHODS="primaryPaymentMethods",e.SECONDARY_PAYMENT_METHODS="secondaryPaymentMethods"}(Ar||(Ar={})),function(e){e.PERCENTAGE="percentage",e.FIXED_AMOUNT="fixed"}(Or||(Or={})),function(e){e.ENTIRE_MENU="entire_menu",e.CLASS="class"}(Nr||(Nr={})),function(e){e.DELIVERY="delivery",e.TAKEAWAY="takeaway",e.DINE_IN="dine_in",e.ALL="ALL"}(Rr||(Rr={}));const Cr=(e,r)=>{var t;return null===(t=((null==e?void 0:e.days)||[]).find(({day:e})=>e===r))||void 0===t?void 0:t.hours},Pr=e=>(e||"").split(":").map(Number),Sr=e=>{if(!e)return!1;const r=new Date,[t,o]=Pr(e.openAt),[a,i]=Pr(e.closeAt),n=new Date(r);n.setHours(t,o,0,0);const d=new Date(r);return d.setHours(a,i,0,0),d<=n&&(r<=d?n.setDate(n.getDate()-1):d.setDate(d.getDate()+1)),r>=n&&r<=d},kr=(e,r)=>"number"==typeof e&&"number"==typeof r&&(Math.abs(e)<=90&&Math.abs(r)<=180),Lr=e=>e*Math.PI/180,Mr=()=>{const{branches:e}=Er();return(e||[]).length<=1},wr=()=>{const{branches:e,branchId:r}=Er(),t=Mr();return q(e)?{}:t?e[0]:e.find(e=>e.id===Number(r))||{}},zr=()=>wr().currency||"EUR",jr=()=>{const e=wr();return{latitude:null==e?void 0:e.latitude,longitude:null==e?void 0:e.longitude}},Ur=()=>{const e=wr(),{openingHours:r,deliveryHours:t}=e||{};if(!(null==r?void 0:r.days)||!(null==t?void 0:t.days))return{isOpen:!1,isDelivering:!1};const o=((new Date).getUTCDay()+6)%7,a=Cr(r,o),i=Cr(t,o);return{isOpen:Sr(a),isDelivering:Sr(i)}},Wr=()=>{const e=wr();return(null==e?void 0:e.settings)||{}},Br=()=>{const e=Wr();if(q(e))return!1;const{deliveryOrderEnabled:r,dineInOrderEnabled:t,pickupOrderEnabled:o}=e;return r||t||o},Vr=()=>{const{branchId:e}=Er();return e},Yr=()=>{const{onBranchSelect:e}=Er();return e},xr=()=>{const e=fr(),r=Vr();return r?`${e}/${r}`:e};function Fr(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(e);a<o.length;a++)r.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(t[o[a]]=e[o[a]])}return t}function Hr(e,r,t,o){return new(t||(t=Promise))(function(a,i){function n(e){try{l(o.next(e))}catch(e){i(e)}}function d(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var r;e.done?a(e.value):(r=e.value,r instanceof t?r:new t(function(e){e(r)})).then(n,d)}l((o=o.apply(e,r||[])).next())})}var Gr,Kr,Qr,qr,Zr;"function"==typeof SuppressedError&&SuppressedError,function(e){e.DINE_IN="DINE_IN",e.PICK_UP="PICK_UP",e.DELIVERY="DELIVERY"}(Gr||(Gr={})),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"}(Kr||(Kr={})),function(e){e.PENDING="PENDING",e.PREPARING="PREPARING",e.READY="READY",e.SERVED="SERVED"}(Qr||(Qr={})),function(e){e.CASH="CASH",e.CARD="CARD",e.BANK_TRANSFER="BANK_TRANSFER",e.MOBILE="MOBILE",e.QR="QR",e.VOUCHER="VOUCHER",e.COMP="COMP",e.MIXED="MIXED"}(qr||(qr={})),function(e){e.CART="CART",e.DETAILS="DETAILS",e.COMPLETED="COMPLETED"}(Zr||(Zr={}));const Xr={orderType:null,preferredPaymentMethod:qr.CASH},$r=[Zr.CART,Zr.DETAILS,Zr.COMPLETED],Jr=[qr.CASH,qr.CARD,qr.BANK_TRANSFER,qr.MOBILE,qr.QR,qr.VOUCHER],et=[qr.CASH,qr.CARD];Jr.filter(e=>!et.includes(e));const rt=[10,15,20],tt={data:null,isLoading:!1,error:null};var ot;!function(e){e.FIELD_REQUIRED_ERROR="This field is required",e.TABLE_NOT_SELECTED="Please select a table",e.ADDRESS_IS_EMPTY="Please enter an address",e.EMPTY_ITEMS="Please choose product",e.BRANCH_NOT_SELECTED="Please select a branch"}(ot||(ot={}));const at=e=>{var r,t;const{price:o,variant:a,addons:i,quantity:n}=e||{},d=null!==(t=null!==(r=null==a?void 0:a.price)&&void 0!==r?r:o)&&void 0!==t?t:0,l=(i||[]).reduce((e,r)=>e+((null==r?void 0:r.options)||[]).reduce((e,r)=>{var t;return e+(null!==(t=null==r?void 0:r.price)&&void 0!==t?t:0)},0),0);return(d+l)*(null!=n?n:1)},it=(e,r,t)=>{if(!e)throw new Error("Product ID is required");let o=`${e}`;r&&(o+=`-${r}`);const a=Object.entries(t||{}).map(([e,r])=>{if(!e||!r)return null;const t=Array.isArray(r)?$(r).filter(Boolean).join("-"):`${r}`;return t?`${e}-${t}`:null}).filter(Boolean).join("-");return a&&(o+=`-${a}`),o},nt=e=>{const r=(e||[]).map(e=>String(e||"").trim().toUpperCase()).filter(e=>Jr.includes(e));return[...new Set(r)]},dt=e=>{switch(e){case"customer":return ot.ADDRESS_IS_EMPTY;case"tableId":return ot.TABLE_NOT_SELECTED;case"items":return ot.EMPTY_ITEMS;case"branchId":return ot.BRANCH_NOT_SELECTED;default:return ot.FIELD_REQUIRED_ERROR}},lt="https://api.tabres.com/api/v2",st=new J({baseURL:lt,headers:{"Content-Type":"application/json"},credentials:"include"});st.onRequest(e=>{const{accessToken:r=""}=lr.getAuthToken();return e.headers.Authorization=r,e}),st.onResponse(e=>Hr(void 0,void 0,void 0,function*(){return yield e.json().catch(()=>null)}));const ut=(...e)=>Hr(void 0,[...e],void 0,function*(e=null,r={}){try{return ee("error",{message:null==e?void 0:e.message}),yield fetch(`${lt}/log/client`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(Object.assign({message:(null==e?void 0:e.message)||JSON.stringify(e)},r))})}catch(e){console.error(e)}}),ct=({defaultOrderType:e,defaultPaymentMethod:r,defaultBranchId:t})=>{const o=(()=>{const{tableId:e}=Er();return e})(),{isOpen:a,isDelivering:i}=Ur(),n=Wr(),d=e||((e,r,t)=>{if(!e)return null;const{deliveryOrderEnabled:o,dineInOrderEnabled:a,pickupOrderEnabled:i}=e;return o&&t?Gr.DELIVERY:a&&r?Gr.DINE_IN:i&&r?Gr.PICK_UP:null})(n,a,i);return{branchId:t,orderType:d,tableId:o?Number(o):void 0,preferredPaymentMethod:r||qr.CASH}},mt=B({order:Xr,orderStep:Zr.CART,orderItems:{},isOrderOpen:!1,customer:{},guestContact:{},trackingId:"",errors:{},updateOrder:()=>{},updateGuestContact:()=>{},setOrderStep:()=>{},addProduct:()=>{},updateProduct:()=>{},removeAllProductVariants:()=>{},setIsOrderOpen:()=>{},getCustomer:()=>{},resetOrder:()=>{},setTrackingId:()=>{},updateOrderErrors:()=>{},resetErrors:()=>{}}),_t=({children:r,defaultOrderType:t,defaultPaymentMethod:o,defaultBranchId:a,isOrderDefaultOpen:i=!1})=>{const n=ct({defaultOrderType:t,defaultPaymentMethod:o,defaultBranchId:a}),[d,l]=x({}),[s,u]=x({}),[c,m]=x(n),[_,p]=x(Zr.CART),[h,v]=x({}),[g,E]=x(i),[y,b]=x(""),[I,T]=x({}),f=F(e=>{m(r=>Object.assign(Object.assign({},r),e)),["branchId","tableId"].forEach(r=>{e[r]&&T(e=>(null==e?void 0:e[r])?Object.assign(Object.assign({},e),{[r]:null}):e)})},[]),D=F(e=>{u(r=>Object.assign(Object.assign({},r),e))},[]),A=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a,isAddOperation:i})=>{if(q(e))return;const{id:n,variants:d,addons:l,price:s,listingPrice:u,sellUnitType:c}=e,m=null!=u?u:s,_=it(n,t,o);v(e=>{var s;const u=e[_],p=parseFloat((i?((null==u?void 0:u.quantity)||0)+r:r).toFixed(3));if(p<=0){const r=e,t=_;r[t];return Fr(r,["symbol"==typeof t?t:t+""])}const h=d.find(({id:e})=>e===t),v=((e=[],r={})=>Object.entries(r).map(([r,t])=>{const o=Number(r),a=Array.isArray(t)?t:[t],i=e.find(e=>e.id===o);if(q(i))return{addonId:o,options:[]};const n=(i.options||[]).filter(e=>a.includes(e.id)).map(e=>{var r;return{optionId:e.id,price:null!==(r=e.listingPrice)&&void 0!==r?r:e.price}});return{addonId:o,options:n}}))(l,o);return Object.assign(Object.assign({},e),{[_]:Object.assign(Object.assign({productId:n,quantity:p,price:m,note:a},!q(h)&&{variant:{variantId:h.id,price:null!==(s=h.listingPrice)&&void 0!==s?s:h.price}}),{addons:v,sellUnitType:c})})}),i&&T(e=>(null==e?void 0:e.items)?Object.assign(Object.assign({},e),{items:null}):e)},[]),O=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a})=>A({product:e,quantity:r,variantId:t,selectedAddons:o,note:a,isAddOperation:!0}),[A]),N=F(({product:e,quantity:r=1,variantId:t,selectedAddons:o,note:a})=>A({product:e,quantity:r,variantId:t,selectedAddons:o,note:a,isAddOperation:!1}),[A]),R=F(e=>{e&&v(r=>{if(q(r))return r;return Object.entries(r).reduce((r,[t,o])=>(o.productId!==e&&(r[t]=o),r),{})})},[]),C=F(()=>Hr(void 0,void 0,void 0,function*(){try{const{accessToken:e}=lr.getAuthToken();if(!e)return;const r=yield Hr(void 0,void 0,void 0,function*(){return st.get("/customer")});if(!(null==r?void 0:r.id))throw new Error("SOMETHING_WENT_WRONG");l(r)}catch(e){ut(e,{file:"src/store/order.tsx",method:"getCustomer"})}}),[]),P=F((e=!1,r=!0)=>{r&&E(!1),(_===Zr.COMPLETED||e)&&(m(n),v({}),u({}),p(Zr.CART),b(""))},[n,_]),S=F(e=>{T(r=>Object.assign(Object.assign({},r),{[e]:dt(e)}))},[]),k=F(()=>{T({})},[]),L=Y(()=>({order:c,orderStep:_,orderItems:h,isOrderOpen:g,customer:d,guestContact:s,trackingId:y,errors:I,updateOrder:f,updateGuestContact:D,setOrderStep:p,addProduct:O,updateProduct:N,removeAllProductVariants:R,setIsOrderOpen:E,getCustomer:C,resetOrder:P,setTrackingId:b,updateOrderErrors:S,resetErrors:k}),[c,_,h,g,d,s,y,I,f,D,O,N,R,C,P,b,S,k]);return e(mt.Provider,{value:L,children:r})},pt=()=>V(mt);var ht;!function(e){e.MAX_DELIVERY_DISTANCE="maxDeliveryDistance",e.DELIVERY_ORDER_ENABLED="deliveryOrderEnabled",e.PICKUP_ORDER_ENABLED="pickupOrderEnabled",e.DINE_IN_ORDER_ENABLED="dineInOrderEnabled",e.MIN_DELIVERY_AMOUNT="minDeliveryAmount"}(ht||(ht={}));const vt=()=>{const{videoId:e}=Er();return e},gt=()=>{const{videos:e}=Er();return Y(()=>e||[],[e])},Et=()=>{const e=gt(),r=vt();return Y(()=>r&&e.find(e=>e.productId===Number(r))||{},[e,r])};const yt=e=>{const r=fr(),t=Vr();let o=r;return t&&(o+=`/${t}`),e&&(o+=`/videos/${e}`),o},bt=()=>{const e=(()=>{const e=gt();return Y(()=>e[0],[e])})(),r=yt(null==e?void 0:e.productId);return q(e)?"":r};var It="BusinessHeader-module_container__X22c3",Tt="BusinessHeader-module_cover__l-1W8",ft="BusinessHeader-module_content__sjiqO",Dt="BusinessHeader-module_logo__DWaaU",At="BusinessHeader-module_info__6RQFI",Ot="BusinessHeader-module_name__Ynpex",Nt={container:"Languages-module_container__nJeK1",currentLanguage:"Languages-module_currentLanguage__EFw6Q",options:"Languages-module_options__6jLRm",option:"Languages-module_option__QkVQd",isOpen:"Languages-module_isOpen__eUGbg",flexWide:"Languages-module_flexWide__zQ9jN",slidein:"Languages-module_slidein__C4UHU",fadeInOut:"Languages-module_fadeInOut__U-vhH",heightAnimation:"Languages-module_heightAnimation__gIQkF",fadein:"Languages-module_fadein__vPmsX",floatAnimation:"Languages-module_floatAnimation__L-kPH",bottomSheet:"Languages-module_bottomSheet__-t-q8",slideRightToLeft:"Languages-module_slideRightToLeft__y0l-f",rotation:"Languages-module_rotation__gp8P5",pulse:"Languages-module_pulse__h9hxJ"};const Rt=()=>{const[t,i]=x(!1),n=yr().languages||[],d=Ir(),l=(()=>{const{onLanguageSelect:e}=Er();return e})(),s=n.length>1,u=n.filter(({code:e})=>e!==d)||[],c=e=>`https://images.tabres.com/languages/${e}.svg`;return s?e("div",{className:Nt.container,onClick:()=>i(!t),children:r(o,{alignItems:"center",gap:0,children:[e(o,{alignItems:"center",className:a(Nt,{options:!0,isOpen:t}),children:u.map(({code:r})=>e("img",{src:c(r),className:Nt.option,onClick:()=>null==l?void 0:l(r),alt:r},r))}),e("img",{src:c(d),alt:d,className:Nt.currentLanguage})]})}):null},Ct=()=>{const{coverPhoto:t,avatar256:o,name:a}=yr();return r("div",{className:It,children:[e("img",{src:mr(t),alt:a,className:Tt,width:1024,height:400}),e("div",{className:ft,children:r(i,{fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:.5,className:It,children:[e("img",{src:cr(o),alt:a,className:Dt,width:96,height:96}),e("div",{className:At,children:e(n,{variant:"h1",color:"white",className:Ot,align:"center",children:a})})]})}),e(Rt,{})]})};var Pt="BranchHeader-module_container__Ol56f",St="BranchHeader-module_cover__DGWZX",kt="BranchHeader-module_content__O8E27",Lt="BranchHeader-module_logo__DL7Si",Mt="BranchHeader-module_info__Ym-ln",wt="BranchHeader-module_name__91VkO",zt="BranchHeader-module_address__Y140r",jt="BranchHeader-module_addressText__ofVQQ",Ut="BackIcon-module_container__uknWc";const Wt=({onClick:r,size:t,theme:o})=>{const a=fr(),i=hr(),n=Yr();return e("div",{className:Ut,onClick:r||(()=>{if(i)return null==n?void 0:n("");"undefined"!=typeof window&&(window.location.href=a)}),children:e(d,{icon:ae,size:t,theme:o})})};var Bt="HeaderLinks-module_container__wfIXS",Vt="HeaderLinks-module_links__S5qXC",Yt="HeaderLinks-module_wifiPassword__j4cgP",xt="HeaderLinks-module_businessHours__qVA-Q",Ft="HeaderLinks-module_icon__cQpBK",Ht={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","Unsupported country code":"Ölkə kodu düzgün deyil","Invalid OTP":"Təsdiq kodu düzgün deyil",INVALID_OTP:"Təsdiq kodu düzgün deyil",OTP_RATE_LIMIT_EXCEEDED:"Təsdiq kodu göndərmək üçün limiti keçmisiniz. Biraz sonra, yenidən yoxlayın","Invalid Email Address":"Email ünvanı düzgün deyil",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu funksiya mövcud tarif planınıza daxil deyil.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sifariş növü aktiv deyil",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sifariş növü indi aktiv deyil",COUNTRY_REQUIRED:"Ölkə daxil edilməlidir.",CITY_REQUIRED:"Şəhər daxil edilməlidir.",STREET_REQUIRED:"Küçə adı daxil edilməlidir.",STREET_NUMBER_REQUIRED:"Ev nömrəsi daxil edilməlidir.",OUT_OF_DELIVERY_RANGE:"Bu filial sizin ünvana çatdırılma etmir.",DELIVERY_DISTANCE_NOT_COVERED:"Bu filial sizin ünvana çatdırılma etmir.",NO_ORDER_TYPE:"Zəhmət olmazsa, sifariş növünü seçin.",INVALID_ADDRESS:"Ünvan düzgün deyil"},common:{Save:"Yadda saxla",Cancel:"Ləğv et",Continue:"Davam et"},order:{"View order":"Şifarişi göstər","Remove from order":"Sifarişdən sil","Update order":"Sifarişi yenilə","Add to order":"Sifarişə əlavə et",Add:"Əlavə et","Your order":"Sifarişiniz",Subtotal:"Ümumi","Empty order":"Boş sifariş","You don't have any items in your order":"Sifarişinizdə heç bir məhsul yoxdur","Add items":"Məhsul əlavə et","Add an order note":"Restoran üçün qeyd","Specify any allergies, special requests, or ingredients you want to add or remove":"Hər hansısa allergiyanız, xüsusi istəkləriniz və ya əlavə etmək, çıxarmaq istədiyiniz inqrediyentlər varsa, qeyd edin.","Your Order is Completed!":"Sifarişiniz tamamlandı!","Thank you! We've received your order and it will be delivered shortly.":"Təşəkkür edirik! Sifarişinizi qəbul etdik, qısa zamanda çatdırılacaq.",Delivery:"Çatdırılma","Dine in":"Masaya",Pickup:"Al-apar",Cash:"Nağd","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.","Place order":"Sifariş et",Continue:"Davam et","Not available":"Mövcud deyil","In order":"Sifarişdə","Product choices":"Seçimlər","Track order":"Sifarişi izlə","Minimum order amount for delivery is {{amount}}":"Çatdırılma üçün sifarişiniz minimum {{amount}} olmalıdır","This field is required":"Bu xana mütləq doldurulmalıdır","Please select a table":"Zəhmət olmazsa, masanı seçin","Please enter an address":"Zəhmət olmazsa, ünvanı daxil edin","Please choose product":"Zəhmət olmazsa, məhsul seçin",Table:"Masa","Select Table":"Masanı seçin",Card:"Kart ilə","Payment method":"Ödəniş üsulu","More methods":"Digər üsullar","Bank transfer":"Bank köçürməsi","Mobile pay":"Mobil ödəniş","QR code":"QR kod",Voucher:"Vauçer","Closed Now":"Hazırda bağlıdır","Delivery Fee":"Çatdırılma","Play video":"Videonu izlə"," / kg":" / kq"," / l":" / l",Discount:"Endirim","Discount ({{rate}}%)":"Endirim ({{rate}}%)","Service Fee ({{rate}}%)":"Servis haqqı ({{rate}}%)","Add a tip":"Bəxşiş əlavə et",None:"Yoxdur",Custom:"Fərdi",Tip:"Bəxşiş","Total with tip":"Bəxşişlə cəm","Enter tip amount":"Bəxşiş məbləğini daxil edin","Contains allergens":"Tərkibindəki allergenlər"},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",Floor:"Mərtəbə","Enter address":"Ünvanı daxil edin","House No.":"Ev nömrəsi","Your details":"Məlumatlarınız","Full name":"Ad və soyad","Your name":"Adınız","Phone number":"Mobil nömrə",Email:"E-poçt"},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"},branch:{"WEEKDAY-0":"Bazar ertəsi","WEEKDAY-1":"Çərşənbə axşamı","WEEKDAY-2":"Çərşənbə","WEEKDAY-3":"Cümə axşamı","WEEKDAY-4":"Cümə","WEEKDAY-5":"Şənbə","WEEKDAY-6":"Bazar",Closed:"Bağlıdır","Opening Hours":"İş saatları","Delivery Hours":"Çatdırılma saatları",Feedback:"Rəy bildir"}},en:{error:{SOMETHING_WRONG:"Something went wrong! Please try again later",FIELD_REQUIRED:"This field is required",INVALID_OTP:"Invalid OTP",OTP_RATE_LIMIT_EXCEEDED:"OTP limit has exceeded. Please try again later",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"This feature is not available for your current plan.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"This order type is not available for this business.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"This order type is not available right now.",COUNTRY_REQUIRED:"Country is required.",CITY_REQUIRED:"City is required.",STREET_REQUIRED:"Street is required.",STREET_NUMBER_REQUIRED:"Street number is required.",OUT_OF_DELIVERY_RANGE:"This branch doesn't deliver to your address.",DELIVERY_DISTANCE_NOT_COVERED:"This branch doesn't deliver to your address.",NO_ORDER_TYPE:"Please select an order type.",INVALID_ADDRESS:"Invalid address"},common:{},order:{},customer:{},auth:{},events:{},branch:{"WEEKDAY-0":"Monday","WEEKDAY-1":"Tuesday","WEEKDAY-2":"Wednesday","WEEKDAY-3":"Thursday","WEEKDAY-4":"Friday","WEEKDAY-5":"Saturday","WEEKDAY-6":"Sunday"}},es:{auth:{"Create an account or log in":"Crear una cuenta o iniciar sesión","Phone number":"Número de teléfono","I don't have an email":"No tengo correo electrónico","We sent a confirmation code to {{address}}":"Hemos enviado un código de confirmación a {{address}}"},branch:{"WEEKDAY-0":"Lunes","WEEKDAY-1":"Martes","WEEKDAY-2":"Miércoles","WEEKDAY-3":"Jueves","WEEKDAY-4":"Viernes","WEEKDAY-5":"Sábado","WEEKDAY-6":"Domingo",Closed:"Cerrado","Opening Hours":"Horarios de apertura","Delivery Hours":"Horarios de entrega",Feedback:"Comentarios"},common:{Save:"Guardar",Cancel:"Cancelar",Continue:"Continuar"},customer:{"Unknown address":"Dirección desconocida","No address available":"Sin dirección disponible","Update Delivery Address":"Actualizar dirección de entrega",Country:"País",City:"Ciudad","Baker Street":"Calle Baker",Address:"Dirección","House number":"Número de casa","Additional number":"Número adicional","Example: Door code is 555":"Ejemplo: El código de la puerta es 555","Delivery Instructions":"Instrucciones de entrega",Floor:"Planta","Enter address":"Introducir dirección","House No.":"Nº de casa","Your details":"Tus datos","Full name":"Nombre completo","Your name":"Tu nombre","Phone number":"Número de teléfono",Email:"Correo electrónico"},error:{SOMETHING_WRONG:"¡Algo salió mal! Por favor, inténtalo de nuevo más tarde.",FIELD_REQUIRED:"Este campo es obligatorio","Unsupported country code":"Código de país no soportado","Invalid OTP":"Código de confirmación inválido",INVALID_OTP:"Código de confirmación inválido",OTP_RATE_LIMIT_EXCEEDED:"Has superado el límite de códigos. Por favor, inténtalo de nuevo más tarde.","Invalid Email Address":"Dirección de correo electrónico no válida",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Esta función no está disponible en tu plan actual.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Este tipo de pedido no está disponible para este negocio.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Este tipo de pedido no está disponible en este momento.",COUNTRY_REQUIRED:"El país es obligatorio.",CITY_REQUIRED:"La ciudad es obligatoria.",STREET_REQUIRED:"La calle es obligatoria.",STREET_NUMBER_REQUIRED:"El número de calle es obligatorio.",OUT_OF_DELIVERY_RANGE:"Este establecimiento no realiza entregas en tu dirección.",DELIVERY_DISTANCE_NOT_COVERED:"Este establecimiento no realiza entregas en tu dirección.",NO_ORDER_TYPE:"Por favor, selecciona un tipo de pedido.",INVALID_ADDRESS:"Dirección no válida"},events:{Events:"Eventos","Scrolled to Category":"Desplazado a la categoría","Category Selected":"Categoría seleccionada","Product Details":"Detalles del producto","Product Added to Order":"Producto añadido al pedido"},order:{"View order":"Ver pedido","Remove from order":"Eliminar del pedido","Update order":"Actualizar pedido","Add to order":"Añadir al pedido",Add:"Añadir","Your order":"Tu pedido",Subtotal:"Subtotal","Empty order":"Pedido vacío","You don't have any items in your order":"No tienes ningún artículo en tu pedido","Add items":"Añadir artículos","Add an order note":"Añadir nota al pedido","Specify any allergies, special requests, or ingredients you want to add or remove":"Indica cualquier alergia, petición especial o ingrediente que quieras añadir o quitar","Your Order is Completed!":"¡Tu pedido se ha completado!","Thank you! We've received your order and it will be delivered shortly.":"¡Gracias! Hemos recibido tu pedido y será entregado en breve.",Delivery:"Entrega","Dine in":"Para tomar aquí",Pickup:"Para recoger",Cash:"Efectivo","Order summary":"Resumen del pedido",Items:"Artículos",Tax:"Impuestos",Total:"Total","Special instructions, allergies, etc.":"Instrucciones especiales, alergias, etc.","Place order":"Realizar pedido",Continue:"Continuar","Not available":"No disponible","In order":"En el pedido","Product choices":"Opciones de producto","Track order":"Seguimiento del pedido","Minimum order amount for delivery is {{amount}}":"El importe mínimo de pedido para entrega es {{amount}}","This field is required":"Este campo es obligatorio","Please select a table":"Por favor, selecciona una mesa","Please enter an address":"Por favor, introduce una dirección","Please choose product":"Por favor, elige un producto",Table:"Mesa","Select Table":"Seleccionar mesa",Card:"Tarjeta","Payment method":"Método de pago","More methods":"Más métodos","Bank transfer":"Transferencia bancaria","Mobile pay":"Pago móvil","QR code":"Código QR",Voucher:"Vale","Closed Now":"Cerrado ahora","Delivery Fee":"Gastos de envío","Play video":"Reproducir vídeo"," / kg":" / kg"," / l":" / l",Discount:"Descuento","Discount ({{rate}}%)":"Descuento ({{rate}}%)",Events:"Eventos","Service Fee ({{rate}}%)":"Cargo por servicio ({{rate}}%)","Add a tip":"Añadir propina",None:"Ninguna",Custom:"Otro",Tip:"Propina","Total with tip":"Total con propina","Enter tip amount":"Introduce el importe de la propina","Contains allergens":"Contiene alérgenos"}},ru:{error:{SOMETHING_WRONG:"Что-то пошло не так! Пожалуйста, попробуйте позже",FIELD_REQUIRED:"Это поле обязательно для заполнения","Unsupported country code":"Неподдерживаемый код страны","Invalid OTP":"Неверный код подтверждения",INVALID_OTP:"Неверный код подтверждения",OTP_RATE_LIMIT_EXCEEDED:"Превышен лимит кодов. Попробуйте позже","Invalid Email Address":"Неверный адрес электронной почты",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Эта функция недоступна в вашем текущем тарифе.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Этот тип заказа недоступен для этого заведения.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Этот тип заказа сейчас недоступен.",COUNTRY_REQUIRED:"Страна обязательна.",CITY_REQUIRED:"Город обязателен.",STREET_REQUIRED:"Улица обязательна.",STREET_NUMBER_REQUIRED:"Номер дома обязателен.",OUT_OF_DELIVERY_RANGE:"Этот филиал не доставляет по вашему адресу.",DELIVERY_DISTANCE_NOT_COVERED:"Этот филиал не доставляет по вашему адресу.",NO_ORDER_TYPE:"Пожалуйста, выберите тип заказа.",INVALID_ADDRESS:"Неверный адрес"},common:{Save:"Сохранить",Cancel:"Отменить",Continue:"Продолжить"},order:{"View order":"Посмотреть заказ","Remove from order":"Удалить из заказа","Update order":"Обновить заказ","Add to order":"Добавить в заказ",Add:"Добавить","Your order":"Ваш заказ","Empty order":"Пустой заказ","You don't have any items in your order":"В вашем заказе нет продуктов","Add items":"Добавить продукты",Subtotal:"Итого",Events:"События","Product choices":"Варианты продукта","In order":"В заказе","Not available":"Не доступен","Specify any allergies, special requests, or ingredients you want to add or remove":"Укажите, если у вас есть аллергия, особые пожелания или ингредиенты, которые вы хотите добавить или убрать.","Thank you! We've received your order and it will be delivered shortly.":"Спасибо! Мы получили ваш заказ и скоро доставим его.","Add an order note":"Добавить примечание к заказу","Your Order is Completed!":"Ваш заказ завершен!",Delivery:"Доставка","Dine in":"На месте",Pickup:"Самовывоз",Cash:"Наличные","Order summary":"Обзор заказа",Items:"Продукты",Tax:"Налог",Total:"Итого","Special instructions, allergies, etc.":"Особые инструкции, аллергии и т.д.","Place order":"Оформить заказ",Continue:"Продолжить","Track order":"Отследить заказ","Minimum order amount for delivery is {{amount}}":"Минимальная сумма заказа для доставки — {{amount}}","This field is required":"Это поле обязательно для заполнения","Please select a table":"Пожалуйста, выберите столик","Please enter an address":"Пожалуйста, введите адрес","Please choose product":"Пожалуйста, выберите продукт",Table:"Стол","Select Table":"Выбрать столик",Card:"Картой","Payment method":"Способ оплаты","More methods":"Другие способы","Bank transfer":"Банковский перевод","Mobile pay":"Мобильная оплата","QR code":"QR-код",Voucher:"Ваучер","Closed Now":"Сейчас закрыто","Delivery Fee":"Доставка","Play video":"Смотреть видео",Discount:"Скидка","Discount ({{rate}}%)":"Скидка ({{rate}}%)","Service Fee ({{rate}}%)":"Сервисный сбор ({{rate}}%)","Add a tip":"Добавить чаевые",None:"Без чаевых",Custom:"Другое",Tip:"Чаевые","Total with tip":"Итого с чаевыми","Enter tip amount":"Введите сумму чаевых","Contains allergens":"Содержит аллергены"},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":"Инструкции по доставке",Floor:"Этаж","Enter address":"Введите адрес","House No.":"Дом №","Your details":"Ваши данные","Full name":"Имя и фамилия","Your name":"Ваше имя","Phone number":"Номер телефона",Email:"Эл. почта"},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":"Продукт добавлен в заказ"},branch:{"WEEKDAY-0":"Понедельник","WEEKDAY-1":"Вторник","WEEKDAY-2":"Среда","WEEKDAY-3":"Четверг","WEEKDAY-4":"Пятница","WEEKDAY-5":"Суббота","WEEKDAY-6":"Воскресенье",Closed:"Закрыто","Opening Hours":"Часы работы","Delivery Hours":"Время доставки"}},tr:{error:{SOMETHING_WRONG:"Bir şeyler yanlış gitti! Lütfen daha sonra tekrar deneyin",FIELD_REQUIRED:"Bu alan zorunludur","Unsupported country code":"Desteklenmeyen ülke kodu","Invalid OTP":"Geçersiz doğrulama kodu",INVALID_OTP:"Geçersiz doğrulama kodu",OTP_RATE_LIMIT_EXCEEDED:"OTP sınırı aşıldı. Lütfen daha sonra tekrar deneyin","Invalid Email Address":"Geçersiz e-posta adresi",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Bu özellik mevcut planınızda yer almıyor.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Bu sipariş türü bu işletmede aktif değil.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Bu sipariş türü şu anda aktif değil.",COUNTRY_REQUIRED:"Ülke zorunludur.",CITY_REQUIRED:"Şehir zorunludur.",STREET_REQUIRED:"Sokak adı zorunludur.",STREET_NUMBER_REQUIRED:"Bina numarası zorunludur.",OUT_OF_DELIVERY_RANGE:"Bu şube sizin adrese teslimat yapmıyor.",DELIVERY_DISTANCE_NOT_COVERED:"Bu şube sizin adrese teslimat yapmıyor.",NO_ORDER_TYPE:"Lütfen bir sipariş türü seçin.",INVALID_ADDRESS:"Geçersiz adres"},common:{Save:"Kaydet",Cancel:"İptal et",Continue:"Devam et"},order:{"View order":"Siparişi Görüntüle","Remove from order":"Siparişten Kaldır","Update order":"Siparişi Güncelle","Add to order":"Siparişe Ekle",Add:"Ekle","Your order":"Siparişiniz","Empty order":"Boş sipariş","You don't have any items in your order":"Siparişinizde hiç bir ürün yok","Add items":"Ürün ekle",Subtotal:"Toplam",Events:"Olaylar","Product choices":"Seçenekler","In order":"Siparişte","Not available":"Mevcut değil","Specify any allergies, special requests, or ingredients you want to add or remove":"Herhangi bir alerjiniz, özel isteğiniz ya da eklemek veya çıkarmak istediğiniz malzemeler varsa belirtin.","Thank you! We've received your order and it will be delivered shortly.":"Teşekkürler! Siparişinizi aldık, kısa süre içinde teslim edilecek.","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","Order summary":"Sipariş özeti",Items:"Ürünler",Tax:"Vergi",Total:"Toplam","Special instructions, allergies, etc.":"Özel talimatlar, alerjiler vb.","Place order":"Sipariş ver",Continue:"Devam et","Track order":"Siparişi takip et","Minimum order amount for delivery is {{amount}}":"Teslimat için minimum sipariş tutarı {{amount}} olmalı","This field is required":"Bu alan zorunludur","Please select a table":"Lütfen bir masa seçin","Please enter an address":"Lütfen bir adres girin","Please choose product":"Lütfen bir ürün seçin",Table:"Masa","Select Table":"Masa seçin",Card:"Kart ile","Payment method":"Ödeme yöntemi","More methods":"Diğer yöntemler","Bank transfer":"Banka havalesi","Mobile pay":"Mobil ödeme","QR code":"QR kod",Voucher:"Kupon","Closed Now":"Şu anda kapalı","Delivery Fee":"Teslimat ücreti","Play video":"Videoyu izle",Discount:"İndirim","Discount ({{rate}}%)":"İndirim ({{rate}}%)","Service Fee ({{rate}}%)":"Servis Ücreti ({{rate}}%)","Add a tip":"Bahşiş ekle",None:"Yok",Custom:"Özel",Tip:"Bahşiş","Total with tip":"Bahşişle toplam","Enter tip amount":"Bahşiş tutarını girin","Contains allergens":"Alerjen içerir"},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ı",Floor:"Kat","Enter address":"Adres girin","House No.":"Ev No.","Your details":"Bilgileriniz","Full name":"Ad soyad","Your name":"Adınız","Phone number":"Telefon numarası",Email:"E-posta"},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"},branch:{"WEEKDAY-0":"Pazartesi","WEEKDAY-1":"Salı","WEEKDAY-2":"Çarşamba","WEEKDAY-3":"Perşembe","WEEKDAY-4":"Cuma","WEEKDAY-5":"Cumartesi","WEEKDAY-6":"Pazar",Closed:"Kapalı","Opening Hours":"Çalışma saatleri","Delivery Hours":"Teslimat saatleri"}},nl:{error:{SOMETHING_WRONG:"Er is iets misgegaan! Probeer het later opnieuw",FIELD_REQUIRED:"Dit veld is verplicht","Unsupported country code":"Niet-ondersteunde landcode","Invalid OTP":"Ongeldige verificatiecode",INVALID_OTP:"Ongeldige verificatiecode",OTP_RATE_LIMIT_EXCEEDED:"Te veel pogingen. Probeer het later opnieuw","Invalid Email Address":"Ongeldig e-mailadres",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Deze functie is niet beschikbaar in je huidige pakket.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Dit type bestelling is niet beschikbaar bij dit bedrijf.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Dit besteltype is op dit moment niet beschikbaar.",COUNTRY_REQUIRED:"Land is verplicht.",CITY_REQUIRED:"Stad is verplicht.",STREET_REQUIRED:"Straat is verplicht.",STREET_NUMBER_REQUIRED:"Huisnummer is verplicht.",OUT_OF_DELIVERY_RANGE:"Deze vestiging bezorgt niet op jouw adres.",DELIVERY_DISTANCE_NOT_COVERED:"Deze vestiging bezorgt niet op jouw adres.",NO_ORDER_TYPE:"Selecteer een besteltype.",INVALID_ADDRESS:"Ongeldig adres"},common:{Save:"Opslaan",Cancel:"Annuleren",Continue:"Doorgaan"},order:{"View order":"Bestelling bekijken","Remove from order":"Uit bestelling verwijderen","Update order":"Bestelling bijwerken","Add to order":"Aan bestelling toevoegen",Add:"Toevoegen","Your order":"Uw bestelling","Empty order":"Lege bestelling","You don't have any items in your order":"U heeft geen items in uw bestelling","Add items":"Items toevoegen",Subtotal:"Totaal",Events:"Gebeurtenissen","Product choices":"Productkeuzes","In order":"In bestelling","Not available":"Niet beschikbaar","Specify any allergies, special requests, or ingredients you want to add or remove":"Geef eventuele allergieën, speciale wensen of ingrediënten die je wilt toevoegen of weglaten aan.","Thank you! We've received your order and it will be delivered shortly.":"Bedankt! We hebben je bestelling ontvangen en bezorgen het zo snel mogelijk.","Add an order note":"Voeg een bestelopmerking toe","Your Order is Completed!":"Je bestelling is voltooid!",Delivery:"Levering","Dine in":"Ter plaatse",Pickup:"Meenemen",Cash:"Contant","Order summary":"Bestellingsoverzicht",Items:"Items",Tax:"Belasting",Total:"Totaal","Special instructions, allergies, etc.":"Speciale instructies, allergieën, enz.","Place order":"Plaats bestelling",Continue:"Doorgaan","Track order":"Volg je bestelling","Minimum order amount for delivery is {{amount}}":"Minimale bestelbedrag voor bezorging is {{amount}}","This field is required":"Dit veld is verplicht","Please select a table":"Selecteer alstublieft een tafel","Please enter an address":"Vul alstublieft een adres in","Please choose product":"Kies alstublieft een product",Table:"Tafel","Select Table":"Kies tafel",Card:"Met je Betaalpas","Payment method":"Betaalmethode","More methods":"Meer methodes","Bank transfer":"Bankoverschrijving","Mobile pay":"Mobiel betalen","QR code":"QR-code",Voucher:"Voucher","Closed Now":"Nu gesloten","Delivery Fee":"Bezorgkosten","Play video":"Bekijk video",Discount:"Korting","Discount ({{rate}}%)":"Korting ({{rate}}%)","Service Fee ({{rate}}%)":"Servicekosten ({{rate}}%)","Add a tip":"Fooi toevoegen",None:"Geen",Custom:"Anders",Tip:"Fooi","Total with tip":"Totaal met fooi","Enter tip amount":"Voer fooibedrag in","Contains allergens":"Bevat allergenen"},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",Floor:"Verdieping","Enter address":"Voer adres in","House No.":"Huis nr.","Your details":"Uw gegevens","Full name":"Volledige naam","Your name":"Uw naam","Phone number":"Telefoonnummer",Email:"E-mail"},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"},branch:{"WEEKDAY-0":"Maandag","WEEKDAY-1":"Dinsdag","WEEKDAY-2":"Woensdag","WEEKDAY-3":"Donderdag","WEEKDAY-4":"Vrijdag","WEEKDAY-5":"Zaterdag","WEEKDAY-6":"Zondag",Closed:"Gesloten","Opening Hours":"Openingstijden","Delivery Hours":"Bezorgtijden"}},et:{error:{SOMETHING_WRONG:"Midagi läks valesti! Palun proovi hiljem uuesti",FIELD_REQUIRED:"See väli on kohustuslik","Unsupported country code":"Riigikood ei ole toetatud","Invalid OTP":"Vale kinnituskood",INVALID_OTP:"Vale kinnituskood",OTP_RATE_LIMIT_EXCEEDED:"Kinnituskoodide limiit ületatud. Proovi hiljem uuesti","Invalid Email Address":"Vigane e-posti aadress",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"See funktsioon ei ole sinu praeguse paketiga saadaval.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"See tellimuse tüüp ei ole selles ettevõttes saadaval.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"See tellimuse tüüp ei ole praegu saadaval.",COUNTRY_REQUIRED:"Riik on kohustuslik.",CITY_REQUIRED:"Linn on kohustuslik.",STREET_REQUIRED:"Tänav on kohustuslik.",STREET_NUMBER_REQUIRED:"Maja number on kohustuslik.",OUT_OF_DELIVERY_RANGE:"See filiaal ei toimeta sellele aadressile.",DELIVERY_DISTANCE_NOT_COVERED:"See filiaal ei toimeta sellele aadressile.",NO_ORDER_TYPE:"Palun vali tellimuse tüüp.",INVALID_ADDRESS:"Vigane aadress"},common:{Save:"Salvesta",Cancel:"Tühista",Continue:"Jätka"},order:{"View order":"Vaata tellimust","Remove from order":"Eemalda tellimusest","Update order":"Uuenda tellimust","Add to order":"Lisa tellimusele",Add:"Lisa","Your order":"Teie tellimus","Empty order":"Tühi tellimus","You don't have any items in your order":"Teie tellimuses pole ühtegi eset","Add items":"Lisa esemeid",Subtotal:"Kokku",Events:"Sündmused","Product choices":"Tootevalikud","In order":"Tellimuses","Not available":"Ei ole saadaval","Specify any allergies, special requests, or ingredients you want to add or remove":"Kui sul on allergiaid, erisoove või soovid mõnda koostisosa lisada või eemaldada, anna sellest teada.","Thank you! We've received your order and it will be delivered shortly.":"Aitäh! Oleme sinu tellimuse kätte saanud ja toome selle peagi kohale.","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","Order summary":"Tellimuse kokkuvõte",Items:"Tooted",Tax:"Maks",Total:"Kokku","Special instructions, allergies, etc.":"Erisoovid, allergiad jne.","Place order":"Esita tellimus",Continue:"Jätka","Track order":"Jälgi tellimust","Minimum order amount for delivery is {{amount}}":"Minimaalne tellimuse summa kohaletoimetamiseks on {{amount}}","This field is required":"See väli on kohustuslik","Please select a table":"Palun vali laud","Please enter an address":"Palun sisesta aadress","Please choose product":"Palun vali toode",Table:"Laud","Select Table":"Vali laud",Card:"Kaardiga","Payment method":"Makseviis","More methods":"Rohkem viise","Bank transfer":"Pangaülekanne","Mobile pay":"Mobiilimakse","QR code":"QR-kood",Voucher:"Vautšer","Closed Now":"Praegu suletud","Delivery Fee":"Kohaletoimetamise tasu","Play video":"Vaata videot",Discount:"Allahindlus","Discount ({{rate}}%)":"Allahindlus ({{rate}}%)","Service Fee ({{rate}}%)":"Teenustasu ({{rate}}%)","Add a tip":"Lisa jootraha",None:"Puudub",Custom:"Muu",Tip:"Jootraha","Total with tip":"Kokku koos jootrahaga","Enter tip amount":"Sisesta jootraha summa","Contains allergens":"Sisaldab allergeene"},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",Floor:"Põrand","Enter address":"Sisesta aadress","House No.":"Maja nr.","Your details":"Your details","Full name":"Full name","Your name":"Your name","Phone number":"Phone number",Email:"Email"},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"},branch:{"WEEKDAY-0":"Esmaspäev","WEEKDAY-1":"Teisipäev","WEEKDAY-2":"Kolmapäev","WEEKDAY-3":"Neljapäev","WEEKDAY-4":"Reede","WEEKDAY-5":"Laupäev","WEEKDAY-6":"Pühapäev",Closed:"Suletud","Opening Hours":"Lahtiolekuajad","Delivery Hours":"Kohaletoimetamise ajad"}},pl:{error:{SOMETHING_WRONG:"Coś poszło nie tak! Spróbuj ponownie później.",FIELD_REQUIRED:"To pole jest wymagane","Unsupported country code":"Nieobsługiwany numer kierunkowy","Invalid OTP":"Nieprawidłowy kod weryfikacyjny",INVALID_OTP:"Nieprawidłowy kod weryfikacyjny",OTP_RATE_LIMIT_EXCEEDED:"Przekroczono limit kodów. Spróbuj ponownie za chwilę.","Invalid Email Address":"Nieprawidłowy adres e-mail",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Ta funkcja nie jest dostępna w Twoim obecnym planie.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Ten typ zamówienia nie jest dostępny w tym lokalu.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Ten typ zamówienia jest teraz niedostępny.",COUNTRY_REQUIRED:"Kraj jest wymagany.",CITY_REQUIRED:"Miasto jest wymagane.",STREET_REQUIRED:"Ulica jest wymagana.",STREET_NUMBER_REQUIRED:"Numer domu jest wymagany.",OUT_OF_DELIVERY_RANGE:"Ten lokal nie dostarcza pod Twój adres.",DELIVERY_DISTANCE_NOT_COVERED:"Ten lokal nie dostarcza pod Twój adres.",NO_ORDER_TYPE:"Wybierz typ zamówienia.",INVALID_ADDRESS:"Nieprawidłowy adres"},common:{Save:"Zapisz",Cancel:"Anuluj",Continue:"Dalej"},order:{"View order":"Zobacz zamówienie","Remove from order":"Usuń z zamówienia","Update order":"Zmień zamówienie","Add to order":"Dodaj do zamówienia",Add:"Dodaj","Your order":"Twoje zamówienie",Subtotal:"Suma","Empty order":"Puste zamówienie","You don't have any items in your order":"Nie masz jeszcze nic w zamówieniu","Add items":"Dodaj produkty","Add an order note":"Notatka dla restauracji","Specify any allergies, special requests, or ingredients you want to add or remove":"Napisz o alergiach, specjalnych prośbach lub składnikach, które chcesz dodać albo usunąć.","Your Order is Completed!":"Zamówienie przyjęte!","Thank you! We've received your order and it will be delivered shortly.":"Dziękujemy! Otrzymaliśmy Twoje zamówienie i niedługo je dostarczymy.",Delivery:"Dostawa","Dine in":"Na miejscu",Pickup:"Na wynos",Cash:"Gotówka","Order summary":"Podsumowanie zamówienia",Items:"Produkty",Tax:"Podatek",Total:"Razem","Special instructions, allergies, etc.":"Uwagi, alergie itp.","Place order":"Złóż zamówienie",Continue:"Dalej","Not available":"Niedostępne","In order":"W zamówieniu","Product choices":"Opcje","Track order":"Śledź zamówienie","Minimum order amount for delivery is {{amount}}":"Minimalna kwota zamówienia na dostawę to {{amount}}","This field is required":"To pole jest wymagane","Please select a table":"Wybierz stolik","Please enter an address":"Podaj adres","Please choose product":"Wybierz produkt",Table:"Stolik","Select Table":"Wybierz stolik",Card:"Kartą","Payment method":"Metoda płatności","More methods":"Więcej metod","Bank transfer":"Przelew bankowy","Mobile pay":"Płatność mobilna","QR code":"Kod QR",Voucher:"Voucher","Closed Now":"Teraz zamknięte","Delivery Fee":"Koszt dostawy","Play video":"Odtwórz wideo"," / kg":" / kg"," / l":" / l",Discount:"Rabat","Discount ({{rate}}%)":"Rabat ({{rate}}%)","Service Fee ({{rate}}%)":"Opłata serwisowa ({{rate}}%)","Add a tip":"Dodaj napiwek",None:"Brak",Custom:"Inna",Tip:"Napiwek","Total with tip":"Razem z napiwkiem","Enter tip amount":"Wpisz kwotę napiwku","Contains allergens":"Zawiera alergeny"},customer:{"Unknown address":"Adres nie został podany","No address available":"Brak adresu","Update Delivery Address":"Zmień adres dostawy",Country:"Kraj",City:"Miasto","Baker Street":"ul. Marszałkowska",Address:"Adres","House number":"Numer domu","Additional number":"Numer mieszkania","Example: Door code is 555":"Np. kod do drzwi: 555","Delivery Instructions":"Wskazówki dla kuriera",Floor:"Piętro","Enter address":"Wpisz adres","House No.":"Nr domu","Your details":"Twoje dane","Full name":"Imię i nazwisko","Your name":"Twoje imię","Phone number":"Numer telefonu",Email:"E-mail"},auth:{"Create an account or log in":"Załóż konto lub zaloguj się","Phone number":"Numer telefonu","I don't have an email":"Nie mam adresu e-mail","We sent a confirmation code to {{address}}":"Wysłaliśmy kod potwierdzający na {{address}}"},events:{Events:"Aktywność","Scrolled to Category":"Przewinięto do kategorii","Category Selected":"Wybrano kategorię","Product Details":"Szczegóły produktu","Product Added to Order":"Dodano do zamówienia"},branch:{"WEEKDAY-0":"Poniedziałek","WEEKDAY-1":"Wtorek","WEEKDAY-2":"Środa","WEEKDAY-3":"Czwartek","WEEKDAY-4":"Piątek","WEEKDAY-5":"Sobota","WEEKDAY-6":"Niedziela",Closed:"Zamknięte","Opening Hours":"Godziny otwarcia","Delivery Hours":"Godziny dostawy",Feedback:"Zostaw opinię"}},pt:{error:{SOMETHING_WRONG:"Algo correu mal! Por favor, tente novamente mais tarde.",FIELD_REQUIRED:"Este campo é obrigatório","Unsupported country code":"Código de país não suportado","Invalid OTP":"Código de confirmação inválido",INVALID_OTP:"Código de confirmação inválido",OTP_RATE_LIMIT_EXCEEDED:"Excedeu o limite de códigos. Por favor, tente novamente mais tarde.","Invalid Email Address":"Endereço de e-mail inválido",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Esta funcionalidade não está disponível no seu plano.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Este tipo de pedido não está disponível para este estabelecimento.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Este tipo de pedido não está disponível de momento.",COUNTRY_REQUIRED:"O país é obrigatório.",CITY_REQUIRED:"A cidade é obrigatória.",STREET_REQUIRED:"A rua é obrigatória.",STREET_NUMBER_REQUIRED:"O número da porta é obrigatório.",OUT_OF_DELIVERY_RANGE:"Este estabelecimento não faz entregas para a sua morada.",DELIVERY_DISTANCE_NOT_COVERED:"Este estabelecimento não faz entregas para a sua morada.",NO_ORDER_TYPE:"Por favor, selecione um tipo de pedido.",INVALID_ADDRESS:"Morada inválida"},common:{Save:"Guardar",Cancel:"Cancelar",Continue:"Continuar"},order:{"View order":"Ver pedido","Remove from order":"Remover do pedido","Update order":"Atualizar pedido","Add to order":"Adicionar ao pedido",Add:"Adicionar","Your order":"O seu pedido",Subtotal:"Subtotal","Empty order":"Pedido vazio","You don't have any items in your order":"Ainda não tem itens no seu pedido","Add items":"Adicionar itens","Add an order note":"Adicionar nota ao pedido","Specify any allergies, special requests, or ingredients you want to add or remove":"Indique alergias, pedidos especiais ou ingredientes que queira adicionar ou retirar.","Your Order is Completed!":"O seu pedido está concluído!","Thank you! We've received your order and it will be delivered shortly.":"Obrigado! Recebemos o seu pedido e será entregue em breve.",Delivery:"Entrega","Dine in":"No local",Pickup:"Takeaway",Cash:"Dinheiro","Order summary":"Resumo do pedido",Items:"Itens",Tax:"Impostos",Total:"Total","Special instructions, allergies, etc.":"Instruções especiais, alergias, etc.","Place order":"Confirmar pedido",Continue:"Continuar","Not available":"Indisponível","In order":"No pedido","Product choices":"Opções do produto","Track order":"Acompanhar pedido","Minimum order amount for delivery is {{amount}}":"O valor mínimo para entrega é {{amount}}","This field is required":"Este campo é obrigatório","Please select a table":"Por favor, selecione uma mesa","Please enter an address":"Por favor, introduza uma morada","Please choose product":"Por favor, escolha o produto",Table:"Mesa","Select Table":"Selecionar mesa",Card:"Cartão","Payment method":"Método de pagamento","More methods":"Mais métodos","Bank transfer":"Transferência bancária","Mobile pay":"Pagamento móvel","QR code":"Código QR",Voucher:"Voucher","Closed Now":"Fechado agora","Delivery Fee":"Taxa de entrega","Play video":"Ver vídeo"," / kg":" / kg"," / l":" / l",Discount:"Desconto","Discount ({{rate}}%)":"Desconto ({{rate}}%)","Service Fee ({{rate}}%)":"Taxa de serviço ({{rate}}%)","Add a tip":"Adicionar gorjeta",None:"Nenhuma",Custom:"Outro",Tip:"Gorjeta","Total with tip":"Total com gorjeta","Enter tip amount":"Insira o valor da gorjeta","Contains allergens":"Contém alérgenos"},customer:{"Unknown address":"Endereço não definido","No address available":"Sem endereço disponível","Update Delivery Address":"Atualizar endereço de entrega",Country:"País",City:"Cidade","Baker Street":"Rua da Liberdade",Address:"Morada","House number":"Número da porta","Additional number":"Andar / Apartamento","Example: Door code is 555":"Exemplo: Código da porta é 555","Delivery Instructions":"Instruções de entrega",Floor:"Piso","Enter address":"Introduzir morada","House No.":"Nº da porta","Your details":"Os seus dados","Full name":"Nome completo","Your name":"O seu nome","Phone number":"Número de telemóvel",Email:"E-mail"},auth:{"Create an account or log in":"Crie a sua conta ou entre","Phone number":"Número de telemóvel","I don't have an email":"Não tenho e-mail","We sent a confirmation code to {{address}}":"Enviámos um código de confirmação para {{address}}"},events:{Events:"Eventos","Scrolled to Category":"Navegou até à categoria","Category Selected":"Categoria selecionada","Product Details":"Detalhes do produto","Product Added to Order":"Produto adicionado ao pedido"},branch:{"WEEKDAY-0":"Segunda-feira","WEEKDAY-1":"Terça-feira","WEEKDAY-2":"Quarta-feira","WEEKDAY-3":"Quinta-feira","WEEKDAY-4":"Sexta-feira","WEEKDAY-5":"Sábado","WEEKDAY-6":"Domingo",Closed:"Fechado","Opening Hours":"Horário de funcionamento","Delivery Hours":"Horário de entrega",Feedback:"Dar opinião"}},hr:{error:{SOMETHING_WRONG:"Nešto je pošlo po zlu! Molimo pokušajte ponovno.",FIELD_REQUIRED:"Ovo polje je obavezno","Unsupported country code":"Nepodržani pozivni broj zemlje","Invalid OTP":"Nevažeći kod",INVALID_OTP:"Nevažeći kod",OTP_RATE_LIMIT_EXCEEDED:"Previše pokušaja. Molimo pričekajte malo i pokušajte ponovno.","Invalid Email Address":"Nevažeća adresa epošte",FEATURE_NOT_AVAILABLE_FOR_SEGMENT:"Ova značajka nije dostupna u vašem planu.",ORDER_TYPE_DISABLED_FOR_BUSINESS:"Ova vrsta narudžbe trenutno nije omogućena.",ORDER_TYPE_DISABLED_AT_THIS_TIME:"Ova vrsta narudžbe trenutno nije dostupna.",COUNTRY_REQUIRED:"Država je obavezna.",CITY_REQUIRED:"Grad je obavezan.",STREET_REQUIRED:"Ulica je obavezna.",STREET_NUMBER_REQUIRED:"Kućni broj je obavezan.",OUT_OF_DELIVERY_RANGE:"Nažalost, nismo u mogućnosti dostaviti na vašu adresu.",DELIVERY_DISTANCE_NOT_COVERED:"Nažalost, nismo u mogućnosti dostaviti na vašu adresu.",NO_ORDER_TYPE:"Molimo odaberite vrstu narudžbe.",INVALID_ADDRESS:"Nevažeća adresa"},common:{Save:"Spremi",Cancel:"Odustani",Continue:"Nastavi"},order:{"View order":"Pregled narudžbe","Remove from order":"Ukloni iz narudžbe","Update order":"Ažuriraj narudžbu","Add to order":"Dodaj u narudžbu",Add:"Dodaj","Your order":"Vaša narudžba",Subtotal:"Međuzbroj","Empty order":"Prazna narudžba","You don't have any items in your order":"Vaša narudžba je prazna","Add items":"Dodajte stavke","Add an order note":"Dodaj napomenu","Specify any allergies, special requests, or ingredients you want to add or remove":"Navedite alergije, posebne želje ili sastojke koje želite dodati ili izbaciti","Your Order is Completed!":"Vaša narudžba je dovršena!","Thank you! We've received your order and it will be delivered shortly.":"Hvala vam! Primili smo vašu narudžbu i bit će vam dostavljena uskoro.",Delivery:"Dostava","Dine in":"Za stolom",Pickup:"Preuzimanje",Cash:"Gotovina","Order summary":"Sažetak narudžbe",Items:"Stavke",Tax:"Porez",Total:"Ukupno","Special instructions, allergies, etc.":"Posebne upute, alergije itd.","Place order":"Naruči",Continue:"Nastavi","Not available":"Nije dostupno","In order":"U narudžbi","Product choices":"Opcije proizvoda","Track order":"Prati narudžbu","Minimum order amount for delivery is {{amount}}":"Minimalni iznos za dostavu je {{amount}}","This field is required":"Ovo polje je obavezno","Please select a table":"Molimo odaberite stol","Please enter an address":"Molimo unesite adresu","Please choose product":"Molimo odaberite proizvod",Table:"Stol","Select Table":"Odaberi stol",Card:"Kartica","Payment method":"Način plaćanja","More methods":"Više načina","Bank transfer":"Bankovni prijenos","Mobile pay":"Mobilno plaćanje","QR code":"QR kod",Voucher:"Vaučer","Closed Now":"Trenutno zatvoreno","Delivery Fee":"Naknada za dostavu","Play video":"Pogledaj video"," / kg":" / kg"," / l":" / l",Discount:"Popust","Discount ({{rate}}%)":"Popust ({{rate}}%)","Service Fee ({{rate}}%)":"Naknada za uslugu ({{rate}}%)","Add a tip":"Dodaj napojnicu",None:"Nema",Custom:"Drugo",Tip:"Napojnica","Total with tip":"Ukupno s napojnicom","Enter tip amount":"Unesite iznos napojnice","Contains allergens":"Sadrži alergene"},customer:{"Unknown address":"Nepoznata adresa","No address available":"Adresa nije dostupna","Update Delivery Address":"Ažurirajte adresu dostave",Country:"Država",City:"Grad","Baker Street":"Ulica",Address:"Adresa","House number":"Kućni broj","Additional number":"Dodatni broj / Stan","Example: Door code is 555":"Primjer: Kod za vrata je 555","Delivery Instructions":"Upute za dostavu",Floor:"Kat","Enter address":"Unesite adresu","House No.":"Kućni br.","Your details":"Vaši podaci","Full name":"Ime i prezime","Your name":"Vaše ime","Phone number":"Broj telefona",Email:"E-pošta"},auth:{"Create an account or log in":"Izradite račun ili se prijavite","Phone number":"Broj telefona","I don't have an email":"Nemam e-poštu","We sent a confirmation code to {{address}}":"Poslali smo potvrdni kod na {{address}}"},events:{Events:"Događaji","Scrolled to Category":"Pomaknuto do kategorije","Category Selected":"Odabrana kategorija","Product Details":"Detalji proizvoda","Product Added to Order":"Proizvod dodan u narudžbu"},branch:{"WEEKDAY-0":"Ponedjeljak","WEEKDAY-1":"Utorak","WEEKDAY-2":"Srijeda","WEEKDAY-3":"Četvrtak","WEEKDAY-4":"Petak","WEEKDAY-5":"Subota","WEEKDAY-6":"Nedjelja",Closed:"Zatvoreno","Opening Hours":"Radno vrijeme","Delivery Hours":"Vrijeme dostave",Feedback:"Povratne informacije"}}};const Gt=(e="common",r)=>{const t=Ir(),o=(null==r?void 0:r.language)||t,{t:a}=((e,r)=>{try{const t=or.includes(e)?e:He,o=Ht[t][r]||{},a=(e,r)=>{try{const t=o[e]||e;return r?Object.keys(r).reduce((e,t)=>e.replace(`{{${t}}}`,r[t]),t):t}catch(r){return console.error(r),e}};return{t:a}}catch(e){return console.error(e),{t:e=>e}}})(o,e);return{t:a}},Kt=()=>{const{setModal:t}=l(),{t:a}=Gt("branch"),{phone:i,wifiPassword:n,whatsApp:c,telegram:m,openingHours:_,deliveryHours:p}=wr(),{instagram:h,tiktok:v,facebook:g,username:E}=yr(),y=!q(null==_?void 0:_.days)||!q(null==p?void 0:p.days),b="dgkmenu"===E;return e("div",{className:Bt,children:e("div",{className:Vt,children:e(o,{gap:2,alignItems:"center",children:r(o,{alignItems:"center",justifyContent:"center",gap:.5,children:[!!i&&e(s,{icon:ie,href:`tel:+${i}`,size:"sm",shape:"circle",theme:"light"}),!!c&&e(s,{icon:ne,href:`https://wa.me/${c}`,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!h&&e(s,{icon:de,href:h,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!m&&e(s,{icon:le,href:m,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!v&&e(s,{icon:se,href:v,size:"sm",shape:"circle",theme:"light",target:"_blank"}),!!g&&e(s,{icon:ue,href:g,size:"sm",shape:"circle",theme:"light",target:"_blank"}),b&&e(u,{hint:a("Feedback"),children:e(s,{icon:ce,href:"https://docs.google.com/forms/d/1c9YQQzHgfnZn72nMKqXf0lzxzhPPGMR1FdWKk0YLbps/viewform",size:"sm",shape:"circle",theme:"light",target:"_blank"})}),!!n&&e(u,{hint:n,children:e("div",{className:Yt,children:e(d,{icon:me,size:"sm",className:Ft})})}),y&&e("div",{className:xt,onClick:()=>{t({id:rr,params:{openingHours:_,deliveryHours:p}})},children:e(d,{icon:_e,size:"sm",className:Ft})})]})})})})},Qt=()=>{const{coverPhoto:t,avatar256:a}=yr(),l=(()=>{const{business:e}=Er(),r=wr(),t=Mr(),o=(null==e?void 0:e.name)||"Tabres";return t?o:(null==r?void 0:r.name)?`${o} ${r.name}`:o})(),s=wr().address||"",u=Mr(),{latitude:_,longitude:p}=jr(),h=`https://www.google.com/maps/place/${_},${p}`;return r("div",{className:Pt,children:[e("img",{src:mr(t),alt:l,className:St,width:1024,height:400}),e("div",{className:kt,children:r(i,{justifyContent:u?"flex-end":"space-between",fullHeight:!0,fullWidth:!0,gap:0,children:[!u&&e(Wt,{size:"lg",theme:"dark-theme"}),r(c,{direction:"row",gap:1,alignItems:"center",fullWidth:!0,children:[e(c.Item,{children:e("img",{src:cr(a),alt:l,className:Lt,width:96,height:96})}),e(c.Item,{shrink:!0,className:Mt,children:r(i,{gap:.5,children:[e(n,{className:wt,variant:"h1",size:"xl",color:"white",weight:"bold",noMargin:!0,children:l}),e("a",{className:zt,href:h,target:"_blank",rel:"noopener noreferrer",children:r(o,{alignItems:"center",gap:.5,children:[e(d,{icon:pe,color:m.DEFAULT}),e("span",{className:jt,children:s})]})})]})})]})]})}),e(Rt,{}),e(Kt,{})]})},qt=()=>{const r=wr();return Mr()||!q(r)?e(Qt,{}):e(Ct,{})};var Zt={};var Xt={content:"Auth-module_content__1ATBc",terms:"Auth-module_terms__OH3th"};const $t=()=>{const{customer:e}=pt();return e||{}},Jt=()=>{var e,r;const{customer:t,guestContact:o}=pt();if(!q(t)){return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(r=null==t?void 0:t.addresses)||void 0===r?void 0:r.length)-1])||{}}const{countryCode:a,cityName:i,street:n,houseNumber:d,additionalNumber:l,instructions:s,floor:u,latitude:c,longitude:m,postCode:_}=o||{},p={countryCode:a,cityName:i,street:n,houseNumber:d,additionalNumber:l,instructions:s,floor:u,latitude:c,longitude:m,postCode:_};return Object.values(p).some(e=>null!=e&&""!==e)?p:{}};var eo,ro;!function(e){e.PHONE="PHONE",e.OTP="OTP",e.EMAIL="EMAIL"}(eo||(eo={})),function(e){e.HOME="HOME",e.WORK="WORK",e.TRAVEL="TRAVEL"}(ro||(ro={}));const to=e=>{const r={},{countryCode:t,cityName:o,street:a,houseNumber:i}=e||{};return t||(r.countryCode="COUNTRY_REQUIRED"),o||(r.cityName="CITY_REQUIRED"),a||(r.street="STREET_REQUIRED"),i||(r.houseNumber="STREET_NUMBER_REQUIRED"),r},oo=(e,r,t)=>[e,[r,t].filter(Boolean).join("/")].filter(Boolean).join(" ");var ao,io,no;!function(e){e.GLUTEN="GLUTEN",e.CRUSTACEANS="CRUSTACEANS",e.EGGS="EGGS",e.FISH="FISH",e.PEANUTS="PEANUTS",e.SOY="SOY",e.MILK="MILK",e.TREE_NUTS="TREE_NUTS",e.CELERY="CELERY",e.MUSTARD="MUSTARD",e.SESAME="SESAME",e.SULPHITES="SULPHITES",e.LUPIN="LUPIN",e.MOLLUSCS="MOLLUSCS",e.BUCKWHEAT="BUCKWHEAT"}(ao||(ao={})),function(e){e.LIST="list",e.GRID="grid"}(io||(io={})),function(e){e.PIECE="PIECE",e.WEIGHT="WEIGHT",e.VOLUME="VOLUME"}(no||(no={}));const lo=()=>(e=>{const r=nt(null==e?void 0:e.primaryPaymentMethods),t=nt(null==e?void 0:e.secondaryPaymentMethods),o=q(r)?et:r,a=(q(t)?Jr:t).filter(e=>!o.includes(e));return{primary:o,secondary:a}})(Wr()),so=()=>{const{orderItems:e}=pt();return Object.values(e||{}).reduce((e,r)=>e+at(r),0)},uo=()=>{const{orderItems:e}=pt();return Object.values(e||{}).map(({productId:e,quantity:r,variant:t,addons:o,note:a,sellUnitType:i})=>({productId:e,quantity:r,variant:t,addons:o,note:a,sellUnitType:i}))},co=(e={})=>{const r=br(),t=wr(),o=Ir(),{order:a}=pt(),i=uo(),n=(()=>{var e,r;const{customer:t}=pt();return(null===(e=null==t?void 0:t.addresses)||void 0===e?void 0:e[(null===(r=null==t?void 0:t.addresses)||void 0===r?void 0:r.length)-1])||{}})(),d=(()=>{const{customer:e}=pt();return null==e?void 0:e.id})(),{workingDayId:l,tableId:s,employeeId:u,orderType:c,preferredPaymentMethod:m,preferredTipAmount:_,note:p}=Object.assign(Object.assign({},a),e);return{branchId:null==t?void 0:t.id,businessId:r,workingDayId:l,tableId:s,customerId:d,customerAddressId:n.id,employeeId:u,orderType:c,language:o,items:i,preferredPaymentMethod:m,preferredTipAmount:_,note:p}},mo=()=>{const e=$t(),r=Wr();return q(e)&&!!(null==r?void 0:r.guestOrderEnabled)},_o=(e={})=>{const r=br(),t=wr(),o=Ir(),{order:a,guestContact:i}=pt(),n=uo(),{workingDayId:d,tableId:l,orderType:s,preferredPaymentMethod:u,preferredTipAmount:c,note:m}=Object.assign(Object.assign({},a),e),_=(e=>{if(q(e))return;const r=Object.entries(e).filter(([,e])=>null!=e&&""!==e);if(0===r.length)return;const t=Object.fromEntries(r),{latitude:o,longitude:a,floor:i}=t,n=Fr(t,["latitude","longitude","floor"]);return Object.assign(Object.assign(Object.assign(Object.assign({},n),null!=i?{floor:Number(i)}:{}),null!=o?{latitude:`${o}`}:{}),null!=a?{longitude:`${a}`}:{})})(i);return Object.assign({branchId:null==t?void 0:t.id,businessId:r,workingDayId:d,tableId:l,orderType:s,language:o,items:n,preferredPaymentMethod:u,preferredTipAmount:c,note:m},_?{contact:_}:{})},po=()=>{const{orderItems:e}=pt();return Object.values(e||{}).reduce((e,r)=>e+(r.sellUnitType===no.WEIGHT||r.sellUnitType===no.VOLUME?1:r.quantity),0)},ho=()=>{const e=jr(),{latitude:r,longitude:t}=Jt();return((e,r)=>{if(!kr(null==e?void 0:e.latitude,null==e?void 0:e.longitude))return null;if(!kr(null==r?void 0:r.latitude,null==r?void 0:r.longitude))return null;const t=Math.sin(Lr(r.latitude-e.latitude)/2),o=Math.sin(Lr(r.longitude-e.longitude)/2),a=t*t+Math.cos(Lr(e.latitude))*Math.cos(Lr(r.latitude))*o*o;return 12742*Math.asin(Math.min(1,Math.sqrt(a)))})(e,{latitude:r,longitude:t})},vo=()=>((e,r)=>{const t=Math.max(0,(null==e?void 0:e.deliveryFeeAmount)||0);if((null==e?void 0:e.deliveryFeeType)!==Dr.DISTANCE||"number"!=typeof r||!Number.isFinite(r))return t;const o=((e,r)=>{const t=[...e||[]].sort((e,r)=>e.upToDistance-r.upToDistance);if(0===t.length)return null;const o=t.find(e=>r<=e.upToDistance);return o?o.fee:t[t.length-1].fee})(e.deliveryFeeTiers,r);return null===o?t:o})(Wr(),ho()),go=()=>{const{t:e}=Gt("error"),r=jr(),t=Wr().maxDeliveryDistance,{latitude:o,longitude:a}=Jt(),[i,n]=x(null);return G(()=>{const e=!!o&&!!a,i=!q(r);Hr(void 0,void 0,void 0,function*(){if(!e||!i)return n("INVALID_ADDRESS");try{const e=yield((e,r)=>Hr(void 0,void 0,void 0,function*(){const{spherical:t}=yield google.maps.importLibrary("geometry"),o=new google.maps.LatLng(e.latitude,e.longitude),a=new google.maps.LatLng(r.latitude,r.longitude);return t.computeDistanceBetween(o,a)}))(r,{latitude:o,longitude:a});n(!e||e>t?"OUT_OF_DELIVERY_RANGE":null)}catch(e){n("OUT_OF_DELIVERY_RANGE")}})},[o,a,r,t]),i?e(i):null},Eo=()=>{const{t:e}=Gt("order"),r=Ir(),t=zr(),o=Wr().minDeliveryAmount;if(so()<o){return e("Minimum order amount for delivery is {{amount}}",{amount:X(o,t,r)})}return null},yo=(e,r)=>st.post("/customer/order/calculate",e,{signal:r}),bo=(e,r)=>st.post("/order/public/calculate",e,{signal:r}),Io=({address:t,errorMessage:o,onChange:a})=>{const{t:d}=Gt("auth"),{t:l}=Gt("error");return r(i,{gap:2,children:[e(n,{fullWidth:!0,align:"center",color:"muted",children:d("We sent a confirmation code to {{address}}",{address:t})}),e(g,{onChangeOTP:e=>{var r;const t=null===(r=null==e?void 0:e.toUpperCase)||void 0===r?void 0:r.call(e);queueMicrotask(()=>{a(t)})},errorMessage:o?l(o):void 0,inputMode:"text"})]})},To=({formErrors:t,onChange:o})=>{const[a,n]=x(""),{t:d}=Gt("error"),l=pr(),s=Ir(),{url:u}=sr(l,s),c=F(e=>{var r,t;const a=null!==(t=null===(r=e.target)||void 0===r?void 0:r.value)&&void 0!==t?t:"";n(a),o(a)},[o]);return r(i,{className:Xt.container,alignItems:"center",gap:0,children:[e(h,{name:"email",type:v.EMAIL,placeholder:"Email",fullWidth:!0,value:a,onChange:c,errorMessage:t.email?d(t.email):void 0}),e("div",{className:Xt.terms,children:r("div",{children:["By clicking the button above, you agree to our"," ",e("a",{href:`${u}/terms`,target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"})," ","and"," ",e("a",{href:`${u}/privacy`,target:"_blank",rel:"noopener noreferrer",children:"Privacy Policy"})]})})]})};var fo={};var Do={},Ao="HoursList-module_container__wYX5G",Oo="HoursList-module_title__D7Q8u";const No=({title:t,days:a})=>{const{t:d}=Gt("branch");return q(a)?null:r(i,{className:Ao,gap:.5,fullWidth:!0,children:[t&&e(n,{weight:"medium",className:Oo,children:d(t)}),a.map(({day:t,hours:a})=>{const i=!a,l=i?d("Closed"):`${a.openAt} - ${a.closeAt}`;return r(o,{justifyContent:"space-between",fullWidth:!0,children:[e(n,{size:"sm",whiteSpace:"nowrap",children:d(`WEEKDAY-${t}`)}),e(n,{size:"sm",whiteSpace:"nowrap",color:i?m.DANGER:"normal",children:l})]},t)})]})},Ro=({openingHours:t,deliveryHours:o})=>{const a=(null==t?void 0:t.days)||[],n=(null==o?void 0:o.days)||[],d=(()=>{const e=Wr();return null==e?void 0:e.deliveryOrderEnabled})();return q(a)?null:r(i,{className:Do.container,gap:2,children:[e(No,{days:a}),d&&e(No,{title:"Delivery Hours",days:n})]})};var Co={container:"ScrollToTop-module_container__fY2Wr",visible:"ScrollToTop-module_visible__4c1xZ",flexWide:"ScrollToTop-module_flexWide__ISFJo",slidein:"ScrollToTop-module_slidein__ciJNw",fadeInOut:"ScrollToTop-module_fadeInOut__TVbp7",heightAnimation:"ScrollToTop-module_heightAnimation__ouHY-",fadein:"ScrollToTop-module_fadein__-3ySu",floatAnimation:"ScrollToTop-module_floatAnimation__6Gg6O",bottomSheet:"ScrollToTop-module_bottomSheet__XjARU",slideRightToLeft:"ScrollToTop-module_slideRightToLeft__YUoyD",rotation:"ScrollToTop-module_rotation__z-fUd",pulse:"ScrollToTop-module_pulse__59P93"};const Po=({size:r,zIndex:t=100})=>{const[o,a]=x(!1),i=F(()=>{const e=window.scrollY>100;e!==o&&a(e)},[o]);return G(()=>(window.addEventListener("scroll",i),()=>{window.removeEventListener("scroll",i)}),[i]),e("div",{className:te(Co,{container:!0,visible:o}),style:{zIndex:t},children:e(b,{icon:he,size:r,onClick:()=>{window.scrollTo({left:0,top:0,behavior:"smooth"})}})})};var So="Branches-module_branches__sOuoV",ko="Branches-module_container__Ppa6v",Lo={item:"BranchCard-module_item__Uowu3",content:"BranchCard-module_content__tua5H",info:"BranchCard-module_info__GWCyI",name:"BranchCard-module_name__3f4c-",address:"BranchCard-module_address__X2UdI",imageContainer:"BranchCard-module_imageContainer__cZcxc",image:"BranchCard-module_image__Wb44-",notAvailable:"BranchCard-module_notAvailable__hM-C5",noImage:"BranchCard-module_noImage__TnVYT",flexWide:"BranchCard-module_flexWide__Z8Ly-",slidein:"BranchCard-module_slidein__iNE--",fadeInOut:"BranchCard-module_fadeInOut__W8YYr",heightAnimation:"BranchCard-module_heightAnimation__xVD3c",fadein:"BranchCard-module_fadein__u5kBh",floatAnimation:"BranchCard-module_floatAnimation__X2M2D",bottomSheet:"BranchCard-module_bottomSheet__jQn-M",slideRightToLeft:"BranchCard-module_slideRightToLeft__7lAiW",rotation:"BranchCard-module_rotation__bTyhC",pulse:"BranchCard-module_pulse__4w1oB"};const Mo=({children:r,id:t})=>{const o=Yr(),a=fr();return o?e("div",{className:Lo.item,onClick:()=>o(t),children:r}):e("a",{href:`${a}/${t}`,className:Lo.item,children:r})},wo=({branch:t})=>{const{id:a,address:l,coverPhoto:s,name:u}=t||{},c=`${yr().name} ${u}`;return e(Mo,{id:a,children:r("div",{className:te(Lo,{content:!0,noImage:!s}),children:[s&&e("div",{className:Lo.imageContainer,children:e("img",{src:mr(s),alt:c,className:Lo.image,width:1024,height:400})}),r(i,{justifyContent:"flex-end",alignItems:"center",fullHeight:!0,className:Lo.info,gap:.5,children:[e(n,{variant:"h2",className:Lo.name,align:"center",weight:"bold",size:"lg",noMargin:!0,color:"white",children:c}),r(o,{alignItems:"center",gap:.5,justifyContent:"center",fullWidth:!0,children:[e(d,{icon:pe,color:m.DEFAULT}),e("span",{className:Lo.address,children:l})]})]})]})})},zo=()=>{const r=(()=>{const{branches:e}=Er();return e||[]})();return e("div",{className:So,children:e(I,{className:ko,children:r.map(r=>e(wo,{branch:r},r.id))})})};var jo="MenuContent-module_container__XpKka";const Uo=e=>{var r,t;return null!==(t=null!==(r=null==e?void 0:e.listingPrice)&&void 0!==r?r:null==e?void 0:e.price)&&void 0!==t?t:0},Wo=(e,r,t)=>{const o=Uo(e);return X(o,r,t)};var Bo;!function(e){e.SINGLE="SINGLE",e.MULTIPLE="MULTIPLE"}(Bo||(Bo={}));const Vo=({product:e,quantity:r,language:t,currency:o,variantId:a,selectedAddons:i})=>{if(!e||0===Object.keys(e).length)return X(0,o,t);const n=a?(e.variants||[]).find(({id:e})=>e===a):void 0,d=Uo(a?n:e),l=((e,r={})=>{let t=0;for(const o of(null==e?void 0:e.addons)||[]){const{id:e,selectType:a,options:i}=o;if(!Object.prototype.hasOwnProperty.call(r,e))continue;const n=r[e],d=a===Bo.SINGLE?[n]:n||[];for(const e of d){const r=(i||[]).find(({id:r})=>r===e);r&&(t+=Uo(r))}}return t})(e,i);return X((d+l)*r,o,t)},Yo=(e,r)=>Ke(null==e?void 0:e.translations,r),xo=(e,r)=>Ge(null==e?void 0:e.title,r),Fo=(e,r,t)=>Ge(e,t)||(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase().replace(/_/g," "))(r),Ho=(e,r)=>((null==e?void 0:e.allergenDetails)||[]).map(({code:e,translations:t})=>({code:e,label:Fo(t,e,r)})),Go=e=>{var r;const{products:t}=Er();return(null===(r=null==t?void 0:t.find)||void 0===r?void 0:r.call(t,({id:r})=>r===e))||{}},Ko="digital_menu",Qo=`${Ko}_category_select`,qo=`${Ko}_category_scroll`,Zo=`${Ko}_product_details`,Xo=`${Ko}_product_add_cart`,$o=`${Ko}_product_view_changed`,Jo=[Qo,qo,Zo,Xo];var ea="Categories-module_categories__Hh8hl";const ra=({categoryProductMap:r=[],language:t,selectedCategoryId:o,skipTracking:a=!1,onSelectCategory:i})=>{const n=H({}),d=H(null),l=F(()=>{var e;const r=null===(e=null==n?void 0:n.current)||void 0===e?void 0:e[o];if(!r||!d.current)return;const t=d.current.clientWidth,a=r.offsetLeft-t/2+r.offsetWidth/2;d.current.scrollTo({left:a,behavior:"smooth"})},[o]);return G(()=>{o&&l()},[o,l]),e("div",{className:ea,children:e(T,{gap:1,onGetRef:e=>{(null==e?void 0:e.current)&&(d.current=e.current)},paddingInline:1,children:(r||[]).map(r=>{const{id:d}=r,l=Qe(r,t);return e(f,{children:e(D,{onClick:()=>((e,r)=>{e!==o&&(i(e),a||ee(Qo,{name:r}))})(d,l),type:m.BORDERED_PRIMARY,active:d===o,children:e("div",{ref:e=>{e&&(n.current[d]=e)},children:l})})},d)})})})};var ta={container:"Products-module_container__bF2LF",view:"Products-module_view__l857X",header:"Products-module_header__0EFvL",products:"Products-module_products__AoDrY",category:"Products-module_category__Sp7dE",subcategory:"Products-module_subcategory__pBQRO",subcategoryTitle:"Products-module_subcategoryTitle__eZvG2",list:"Products-module_list__LH4v5",gridLayout:"Products-module_gridLayout__AoOrI",listLayout:"Products-module_listLayout__JrHRR",flexWide:"Products-module_flexWide__z4raO",slidein:"Products-module_slidein__dc4dh",fadeInOut:"Products-module_fadeInOut__-uhQA",heightAnimation:"Products-module_heightAnimation__FAz9g",fadein:"Products-module_fadein__nk3w-",floatAnimation:"Products-module_floatAnimation__Js5hv",bottomSheet:"Products-module_bottomSheet__FxKHO",slideRightToLeft:"Products-module_slideRightToLeft__b2wfa",rotation:"Products-module_rotation__ebOKb",pulse:"Products-module_pulse__lH3Gp"},oa={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",volume:"ProductsListItem-module_volume__rcwdd",allergens:"ProductsListItem-module_allergens__J1NED",image:"ProductsListItem-module_image__h6Wbi",notAvailable:"ProductsListItem-module_notAvailable__TeMCr",addToOrder:"ProductsListItem-module_addToOrder__6KqZn",noImage:"ProductsListItem-module_noImage__G4E-a",flexWide:"ProductsListItem-module_flexWide__Ds6LE",slidein:"ProductsListItem-module_slidein__rEzMI",fadeInOut:"ProductsListItem-module_fadeInOut__i1FNq",heightAnimation:"ProductsListItem-module_heightAnimation__2fk7l",fadein:"ProductsListItem-module_fadein__tPTJ6",floatAnimation:"ProductsListItem-module_floatAnimation__vugAV",bottomSheet:"ProductsListItem-module_bottomSheet__-YAdd",slideRightToLeft:"ProductsListItem-module_slideRightToLeft__oXk26",rotation:"ProductsListItem-module_rotation__ZMvMz",pulse:"ProductsListItem-module_pulse__yy4Wc"},aa="AllergenIcons-module_icon__mTSLB";const ia={[ao.GLUTEN]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 22v-4"}),e("path",{d:"M12 18.5c-2.6-.4-4.4-2.4-4.5-5 2.6.4 4.4 2.4 4.5 5Z"}),e("path",{d:"M12 18.5c2.6-.4 4.4-2.4 4.5-5-2.6.4-4.4 2.4-4.5 5Z"}),e("path",{d:"M12 14c-2.6-.4-4.4-2.4-4.5-5 2.6.4 4.4 2.4 4.5 5Z"}),e("path",{d:"M12 14c2.6-.4 4.4-2.4 4.5-5-2.6.4-4.4 2.4-4.5 5Z"}),e("path",{d:"M12 11c-1.5-1.7-1.5-5.3 0-7 1.5 1.7 1.5 5.3 0 7Z"})]})),[ao.CRUSTACEANS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M17.5 5.5C10 6 4.5 11 5.5 16.5c.6 3.2 3.5 4.5 6.5 4.5C10 18 10 14 12.5 11c1.5-1.8 3.2-3.5 5-5.5Z"}),e("path",{d:"M17.5 5.5c1.4-1.8 2.9-2.4 4.4-2.4"}),e("path",{d:"M19 7.6c1.3-.8 2.7-.8 3.6-.3"}),e("path",{d:"M12 21l3 1.4M12 21l3.2-1"}),e("path",{d:"M15.9 8.8a.85.85 0 1 1-1.7 0 .85.85 0 0 1 1.7 0Z"})]})),[ao.EGGS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 3.5c4.7 0 8.5 3.4 8.5 7.5 0 2-1.5 3-1.5 4.5 0 2.5-2 4-4.5 4-2 0-2.5 1-4.5 1-3.5 0-6.5-2.5-6.5-5.5 0-1.5-1-2.5-1-4 0-4.1 4.8-7.5 9.5-7.5Z"}),e("path",{d:"M15.5 11a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"})]})),[ao.FISH]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M21 12c-2.4 3.3-5.4 5-8 5s-5.6-1.7-8-5c2.4-3.3 5.4-5 8-5s5.6 1.7 8 5Z"}),e("path",{d:"M5 12 2 8.5v7L5 12Z"}),e("path",{d:"M18.4 10.5a.9.9 0 1 1-1.8 0 .9.9 0 0 1 1.8 0Z"}),e("path",{d:"M15.5 8.2c-1.2 2.2-1.2 5.4 0 7.6"})]})),[ao.PEANUTS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 2.5c2.6 0 4.7 2.1 4.7 4.7 0 1.5-.7 2.2-1.4 3-.7.8-.8 1.4-.1 2.2 1.2 1.4 2.3 2.6 2.3 4.6 0 3-2.5 5.5-5.5 5.5S6.5 20 6.5 17c0-2 1.1-3.2 2.3-4.6.7-.8.6-1.4-.1-2.2-.7-.8-1.4-1.5-1.4-3C7.3 4.6 9.4 2.5 12 2.5Z"}),e("path",{d:"M9.6 6.5c1.6-.7 3.2-.7 4.8 0"}),e("path",{d:"M8.8 17.2c2.1-1 4.3-1 6.4 0"})]})),[ao.SOY]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M5 19C5 12 12 5 19 5c0 7-7 14-14 14Z"}),e("path",{d:"M10.4 15.5a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"}),e("path",{d:"M13.9 12a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"}),e("path",{d:"M17.4 8.5a1.9 1.9 0 1 1-3.8 0 1.9 1.9 0 0 1 3.8 0Z"})]})),[ao.MILK]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M6 21V10h12v11z"}),e("path",{d:"M6 10 9.5 5h5L18 10"}),e("path",{d:"M9.5 5V3.2h5V5"})]})),[ao.TREE_NUTS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M6.5 5.5h11a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1Z"}),e("path",{d:"M6.8 9.5c0 5 2.3 10.5 5.2 10.5s5.2-5.5 5.2-10.5"}),e("path",{d:"M12 5.5V3"})]})),[ao.CELERY]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 21c-1-4-2.5-6.5-4.5-9"}),e("path",{d:"M12 21V11"}),e("path",{d:"M12 21c1-4 2.5-6.5 4.5-9"}),e("path",{d:"M8.5 17.5c2.5 1 4.5 1 7 0"}),e("path",{d:"M7.5 12c-2.2-.5-3.5-2.6-3-4.8 2.2.5 3.5 2.6 3 4.8Z"}),e("path",{d:"M12 11c-1.4-1.5-1.4-4.2 0-5.7 1.4 1.5 1.4 4.2 0 5.7Z"}),e("path",{d:"M16.5 12c2.2-.5 3.5-2.6 3-4.8-2.2.5-3.5 2.6-3 4.8Z"})]})),[ao.MUSTARD]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M8 21v-9c0-1.8.8-2.8 1.7-3.5l.3-.3V6h4v2.2l.3.3c.9.7 1.7 1.7 1.7 3.5v9z"}),e("path",{d:"M10.5 6V3.8h3V6"}),e("path",{d:"M8 14.5h8"})]})),[ao.SESAME]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{transform:"translate(7 8) rotate(-25)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(13.5 6.5) rotate(20)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(17.5 11.5) rotate(-15)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(9 14.5) rotate(30)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"}),e("path",{transform:"translate(15.5 17.5) rotate(-20)",d:"M0-2.6a1.6 2.6 0 1 0 0 5.2 1.6 2.6 0 1 0 0-5.2Z"})]})),[ao.SULPHITES]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M9.5 3v5.5L5 17.5a1.8 1.8 0 0 0 1.7 2.5h10.6a1.8 1.8 0 0 0 1.7-2.5L14.5 8.5V3Z"}),e("path",{d:"M8.5 3h7"}),e("path",{d:"M7.2 14h9.6"}),e("path",{d:"M10.3 16.8a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"}),e("path",{d:"M14.6 17.6a.8.8 0 1 1-1.6 0 .8.8 0 0 1 1.6 0Z"})]})),[ao.LUPIN]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 3c2.4 3 3.8 7.2 3.8 11 0 1.3-1.7 2-3.8 2s-3.8-.7-3.8-2c0-3.8 1.4-8 3.8-11Z"}),e("path",{d:"M9.6 9.5h4.8"}),e("path",{d:"M8.9 12.5h6.2"}),e("path",{d:"M12 21v-5"}),e("path",{d:"M12 18.5 8.8 17M12 18.5 15.2 17"})]})),[ao.MOLLUSCS]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M12 20.5 4 12.2A8 8 0 0 1 20 12.2Z"}),e("path",{d:"M12 20.5 6.34 6.54"}),e("path",{d:"M12 20.5V4.2"}),e("path",{d:"M12 20.5 17.66 6.54"})]})),[ao.BUCKWHEAT]:t=>r("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round"},t,{children:[e("path",{d:"M3.5 13.4h17a8.5 6.6 0 0 1-17 0Z"}),e("path",{d:"M12 6.4 15.4 13.4H8.6z"}),e("path",{d:"M7.3 9.3 10.1 13.4H4.5z"}),e("path",{d:"M16.7 9.3 19.5 13.4h-5.6z"})]}))},na=e=>ia[e]||ve,da=({product:r,language:t,withTooltip:a=!1,size:i="sm",className:n})=>{const l=Ir(),s=t||l,c=Y(()=>Ho(r,s),[r,s]);return c.length?e(o,{className:n,gap:.5,flexWrap:"wrap",children:c.map(({code:r,label:t})=>{const o=e("span",{className:aa,role:"img","aria-label":t,children:e(d,{icon:na(r),size:i})});return a?e(u,{hint:t,children:o},r):e("span",{children:o},r)})}):null},la=({product:t,currency:a,language:d,onClick:l})=>{const{addProduct:s}=pt(),{image160:u,volume:c,available:_,sellUnitType:p,variants:h,addons:v}=t||{},{name:g,description:E}=Y(()=>Yo(t,d),[t,d]),y=Y(()=>Wo(t,a,d),[t,a,d]),{t:I}=Gt("order"),{addToOrderEnabled:T}=Wr(),f=T&&_,D=(null==h?void 0:h.length)>0,A=(null==v?void 0:v.length)>0,O=p===no.WEIGHT||p===no.VOLUME||D||A,N=!!u;return r("div",{className:te(oa,{container:!0,isClickable:!!l,noImage:!N}),onClick:l,children:[r(o,{justifyContent:"space-between",gap:0,children:[e("div",{className:oa.info,children:r(i,{gap:.25,children:[e("h3",{className:oa.name,children:g}),e("p",{className:oa.description,children:E}),r(o,{className:oa.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:y}),!!c&&e("div",{className:oa.volume,children:c})]}),e(da,{product:t,language:d,className:oa.allergens}),!_&&e(n,{size:"xs",color:"danger",className:oa.notAvailableText,children:I("Not available")})]})}),N&&e("img",{src:ur(u),alt:g||"menu",className:te(oa,{image:!0,notAvailable:!_}),loading:"lazy",width:160,height:90})]}),f&&e("div",{className:oa.addToOrder,children:e(b,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),O&&l)return l();s({product:t}),ee(Xo,{name:g,quantity:1})},icon:ge,type:m.DEFAULT})})]})};var sa={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",allergens:"ProductsGridItem-module_allergens__qoK25",imageContainer:"ProductsGridItem-module_imageContainer__eHS4Z",image:"ProductsGridItem-module_image__alZWL",notAvailable:"ProductsGridItem-module_notAvailable__i4-HA",addToOrder:"ProductsGridItem-module_addToOrder__PhQhg",noImage:"ProductsGridItem-module_noImage__78UHW",volume:"ProductsGridItem-module_volume__oxEAr",notAvailableText:"ProductsGridItem-module_notAvailableText__9G0yj",hasBackgroundColor:"ProductsGridItem-module_hasBackgroundColor__PnUA1",isDashboard:"ProductsGridItem-module_isDashboard__n-zKw",flexWide:"ProductsGridItem-module_flexWide__qcB5X",slidein:"ProductsGridItem-module_slidein__oKaVb",fadeInOut:"ProductsGridItem-module_fadeInOut__d2zot",heightAnimation:"ProductsGridItem-module_heightAnimation__zgbh9",fadein:"ProductsGridItem-module_fadein__Z067K",floatAnimation:"ProductsGridItem-module_floatAnimation__GXjP-",bottomSheet:"ProductsGridItem-module_bottomSheet__-zrFD",slideRightToLeft:"ProductsGridItem-module_slideRightToLeft__R7hv5",rotation:"ProductsGridItem-module_rotation__npCfA",pulse:"ProductsGridItem-module_pulse__whBaS"};const ua=({product:t,currency:a,language:d,defaultImage:l="",isDashboard:s=!1,backgroundColor:u,onClick:c,onAddProduct:_})=>{const{volume:p,image580:h,image160:v,image1024:g,available:E,sellUnitType:y,variants:I,addons:T}=t||{},f=h||g||v||l,{name:D,description:A}=Y(()=>Yo(t,d),[t,d]),O=Y(()=>Wo(t,a,d),[t,a,d]),{t:N}=Gt("order",{language:d}),{addToOrderEnabled:R}=Wr(),C=R&&E,P=(null==I?void 0:I.length)>0,S=(null==T?void 0:T.length)>0,k=y===no.WEIGHT||y===no.VOLUME||P||S;return e("div",{className:sa.container,children:r("div",{className:te(sa,{content:!0,isClickable:!!c,noImage:!f,hasBackgroundColor:!f&&Boolean(u),isDashboard:s}),onClick:c,style:{backgroundColor:u},children:[f&&e("div",{className:sa.imageContainer,children:e("img",{src:ur(f),alt:D||"menu",className:te(sa,{image:!0,notAvailable:!E}),loading:"lazy",width:580,height:326})}),e("div",{className:sa.info,children:e("div",{className:sa.data,children:r(i,{gap:.25,children:[e("h3",{className:sa.name,children:D}),!s&&e("p",{className:sa.description,children:A}),r(o,{className:sa.price,gap:.5,fullWidth:!0,justifyContent:"space-between",children:[e("span",{children:O}),!!p&&e(n,{color:"white",className:sa.volume,children:p})]}),e(da,{product:t,language:d,className:sa.allergens}),!E&&e(n,{color:"white",size:"xs",className:sa.notAvailableText,children:N("Not available")})]})})}),C&&e("div",{className:sa.addToOrder,children:e(b,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),k&&c)return c();_({product:t}),ee(Xo,{name:D,quantity:1})},icon:ge,type:m.DEFAULT})})]})})},ca=({product:r,currency:t,language:o,onClick:a})=>{const{addProduct:i}=pt();return e(ua,{onAddProduct:i,product:r,currency:t,language:o,onClick:a})},ma=e=>!!((null==e?void 0:e.image580)||(null==e?void 0:e.image1024)||(null==e?void 0:e.image160)),_a=e=>(e.products||[]).some(ma)||(e.subcategories||[]).some(e=>(e.products||[]).some(ma)),pa=K(({categoryProductMap:t=[],currency:a,language:n,productBlocksRef:d,containerRef:s,onCategoryInView:u})=>{const[c,_]=x(io.LIST),{setModal:p}=l(),h=bt(),v=Y(()=>(t||[]).some(_a),[t]),g=v?c:io.LIST,E=[{icon:Ee,type:io.LIST},{icon:ye,type:io.GRID}],y=e=>{const{name:r}=Yo(e,n);ee(Zo,{name:r}),p({id:tr,params:{product:e}})};G(()=>{const e=new IntersectionObserver(e=>{var r;const t=((null===(r=null==s?void 0:s.current)||void 0===r?void 0:r.clientHeight)||1e3)/2;let o=null,a=1/0;e.forEach(e=>{if(e.isIntersecting){const r=e.boundingClientRect,i=r.top+r.height/2,n=Math.abs(i-t);n<a&&(a=n,o=e.target.getAttribute("data-category-id"))}}),o&&u(Number(o))},{threshold:.1});return Object.entries(d.current||{}).forEach(([r,t])=>{t&&(t.setAttribute("data-category-id",r),e.observe(t))}),()=>{e.disconnect()}},[d,s,u]);const I=r=>e("div",{className:ta.list,children:e(i,{gap:0,className:g===io.GRID?ta.gridLayout:ta.listLayout,children:(r||[]).map(r=>g===io.GRID&&ma(r)?e(ca,{product:r,currency:a,language:n,onClick:()=>y(r)},r.id):e(la,{product:r,currency:a,language:n,onClick:()=>y(r)},r.id))})});return r("div",{className:ta.container,children:[r(o,{className:ta.view,alignItems:"center",children:[v&&E.map(({icon:r,type:t})=>e(b,{icon:r,onClick:()=>(e=>{_(e),ee($o,{name:e})})(t),type:t===c?m.PRIMARY:m.DEFAULT},t)),!q(h)&&e("a",{href:h,children:e(b,{icon:be,onClick:()=>{},type:m.DEFAULT})})]}),e(i,{gap:0,children:(t||[]).map(t=>{const o=Qe(t,n),{id:a,products:i,subcategories:l}=t;return r("div",{className:ta.products,ref:e=>{e&&(d.current[a]=e)},"data-category-id":a,children:[e("h2",{className:ta.category,children:o}),(i||[]).length>0&&I(i),(l||[]).map(t=>r("div",{className:ta.subcategory,children:[e("h3",{className:te(ta,{category:!0,subcategoryTitle:!0}),children:Qe(t,n)}),I(t.products)]},t.id))]},a)})})]})},(e,r)=>e.categoryProductMap===r.categoryProductMap&&e.currency===r.currency&&e.language===r.language);pa.displayName="Products";var ha={container:"OrderFAB-module_container__YeERy",count:"OrderFAB-module_count__7ZQN5",isVisible:"OrderFAB-module_isVisible__-0j7W",animate:"OrderFAB-module_animate__Wx4O-",pulse:"OrderFAB-module_pulse__yF8uk",isInPublicMenu:"OrderFAB-module_isInPublicMenu__qwIrS",flexWide:"OrderFAB-module_flexWide__FfcIV",slidein:"OrderFAB-module_slidein__dniBn",fadeInOut:"OrderFAB-module_fadeInOut__BhXGd",heightAnimation:"OrderFAB-module_heightAnimation__B-TR3",fadein:"OrderFAB-module_fadein__DO09i",floatAnimation:"OrderFAB-module_floatAnimation__gOJf0",bottomSheet:"OrderFAB-module_bottomSheet__NRqrj",slideRightToLeft:"OrderFAB-module_slideRightToLeft__O8uj3",rotation:"OrderFAB-module_rotation__dOOw-"};const va=({totalCount:t,isVisible:o,onClick:a,isInPublicMenu:i=!1})=>{const n=H(null),l=H(!1),s=t%1==0?t:t.toFixed(2);return G(()=>{if(!l.current)return;const e=n.current;e&&(e.classList.remove(ha.animate),e.offsetWidth,e.classList.add(ha.animate))},[t]),G(()=>{l.current=!0},[]),r("div",{className:te(ha,{container:!0,isVisible:o,isInPublicMenu:i}),onClick:a,ref:n,children:[e(d,{icon:Ie,color:m.DEFAULT,size:"md"}),e("div",{className:ha.count,children:s})]})},ga=({alwaysVisible:r=!1,isInPublicMenu:t=!1})=>{const o=po(),{setIsOrderOpen:a,isOrderOpen:i}=pt();return o<=0&&!r?null:e(va,{totalCount:o,isVisible:!i,onClick:()=>a(!i),isInPublicMenu:t})},Ea=({containerRef:t})=>{var o;const a=(()=>{const{products:e}=Er();return e||[]})(),i=(()=>{const{categories:e}=Er();return e||[]})(),n=Ir(),d=zr(),l=Y(()=>((e,r)=>{const t=(r||[]).reduce((e,r)=>{if(!r.visible)return e;const t=Number(r.categoryId);return e[t]||(e[t]=[]),e[t].push(r),e},{}),o=(e||[]).map(e=>Object.assign(Object.assign({},e),{products:t[Number(e.id)]||[],subcategories:[]})),a=[];return o.forEach(e=>{const r=Ze(e,o);r?r.subcategories.push(e):a.push(e)}),a.map(e=>Object.assign(Object.assign({},e),{parentId:null,subcategories:e.subcategories.filter(Xe)})).filter(e=>Xe(e)||e.subcategories.length>0)})(i,a),[i,a]),[s,u]=x(null===(o=l[0])||void 0===o?void 0:o.id),c=H({}),m=H(!0),_=F(e=>Hr(void 0,void 0,void 0,function*(){m.current=!1,u(e),(e=>{var r;const t=null===(r=null==c?void 0:c.current)||void 0===r?void 0:r[e];t&&(setTimeout(()=>{t.scrollIntoView({behavior:"smooth",block:"start"})},100),setTimeout(()=>{m.current=!0},1e3))})(e)}),[]),p=F(e=>{if(!(null==m?void 0:m.current))return;const r=((e,r,t)=>{var o;const a=null===(o=null==r?void 0:r.find)||void 0===o?void 0:o.call(r,({id:r})=>r===e);return q(a)?"":Qe(a,t)})(e,i,n);ee(qo,{name:r}),u(e)},[i,n]),h=F(()=>Hr(void 0,void 0,void 0,function*(){if("undefined"==typeof window)return;const e=new URLSearchParams(window.location.search),r=Number(e.get("category"));if(!r)return;const t=(i||[]).find(({id:e})=>e===r);q(t)||_(((e,r)=>{var t,o,a;const i=null===(t=null==r?void 0:r.find)||void 0===t?void 0:t.call(r,({id:r})=>r===e);return q(i)?e:null!==(a=null===(o=Ze(i,r))||void 0===o?void 0:o.id)&&void 0!==a?a:e})(r,i))}),[i,_]);return G(()=>{h()},[h]),r("div",{className:jo,children:[e(ra,{categoryProductMap:l,language:n,selectedCategoryId:s,onSelectCategory:_}),e(pa,{categoryProductMap:l,language:n,currency:d,productBlocksRef:c,containerRef:t,onCategoryInView:p}),e(ga,{isInPublicMenu:!0})]})};var ya="VideoFeed-module_container__6tYYs",ba="VideoFeed-module_videos__6KjGc",Ia="Video-module_container__HT89i",Ta="Video-module_videoContainer__GE-7a",fa="Video-module_video__36hFc",Da="Video-module_top__SIvSk",Aa="Video-module_actionIcon__F6Ze1",Oa="Video-module_play__XCToT",Na="Video-module_bottom__DNzui",Ra="Video-module_actions__cOh-0",Ca="Actions-module_container__K2DUX",Pa="Actions-module_action__u-Mvu",Sa="Actions-module_animate__Y2p0y";const ka=({video:t})=>{const{setModal:o}=l(),{addProduct:a,setIsOrderOpen:s}=pt(),u=H(null),{productId:c,productName:_}=t||{},p=po(),h=Go(c),{addToOrderEnabled:v}=Wr(),{sellUnitType:g,variants:E,addons:y,available:b}=h,I=(null==E?void 0:E.length)>0,T=(null==y?void 0:y.length)>0,f=g===no.WEIGHT||g===no.VOLUME||I||T,D=v&&b,A=F(()=>{o({id:tr,params:{product:h}})},[h,o]),O=F(()=>{if(f)return A();a({product:h}),ee(Xo,{name:_,quantity:1})},[a,A,h,_,f]),N=[{icon:Te,onClick:A},...D?[{icon:ge,onClick:O}]:[],{icon:Ie,onClick:()=>s(!0),value:p,ref:u}];return G(()=>{const e=u.current;e&&(e.classList.remove(Sa),e.offsetWidth,e.classList.add(Sa))},[p]),e(i,{className:Ca,fullWidth:!0,gap:.5,children:N.map(({icon:t,onClick:o,value:a,ref:l},s)=>r(i,{alignItems:"center",gap:.375,children:[e("div",{className:Pa,onClick:o,ref:l,children:e(d,{icon:t,size:"md",color:m.DEFAULT})}),!oe(a)&&e(n,{size:"xs",weight:"bold",color:"white",fullWidth:!0,align:"center",children:a})]},s))})};var La={container:"VideoData-module_container__H-DjR",business:"VideoData-module_business__gYhgS",productName:"VideoData-module_productName__vBGba",businessName:"VideoData-module_businessName__refS2",description:"VideoData-module_description__LTbgV",noAvatar:"VideoData-module_noAvatar__ZwPv7",flexWide:"VideoData-module_flexWide__eoJyv",slidein:"VideoData-module_slidein__Rx56q",fadeInOut:"VideoData-module_fadeInOut__7WQqD",heightAnimation:"VideoData-module_heightAnimation__0aEX0",fadein:"VideoData-module_fadein__BB4dW",floatAnimation:"VideoData-module_floatAnimation__sbOmx",bottomSheet:"VideoData-module_bottomSheet__Ag-e1",slideRightToLeft:"VideoData-module_slideRightToLeft__-eS9s",rotation:"VideoData-module_rotation__77Eig",pulse:"VideoData-module_pulse__HMgCB"};const Ma=({video:t})=>{const[a,d]=x(!1),l=xr();if(q(t))return null;const{businessAvatar:s,businessName:u,productName:c,productDescription:m,productPrice:_}=t,p=Boolean(s);return r(i,{className:te(La,{container:!0,noAvatar:!p}),gap:.75,fullWidth:!1,children:[r("a",{className:La.business,href:l,children:[p&&e(A,{source:ur(s),size:"sm"}),r(i,{gap:0,children:[e(n,{weight:"medium",color:"white",whiteSpace:"nowrap",className:La.productName,children:c}),e(n,{color:"white",whiteSpace:"nowrap",className:La.businessName,weight:"light",children:u})]})]}),e(n,{color:"white",className:La.price,children:_}),Boolean(m)&&e(o,{onClick:()=>d(e=>!e),children:e(n,{color:"white",size:"sm",whiteSpace:a?"wrap":"nowrap",className:La.description,children:m})})]})},wa=({video:t,isActive:a=!1,shouldLoad:n=!1,isMuted:l=!0,registerVideo:s,setIsMuted:u})=>{const[c,_]=x(!0),p=H(null),h=H(!1),v=xr(),g=(e=>e?e.includes("base64")||e.startsWith("https://")?e:`https://videos.tabres.com/${e}`:"")(null==t?void 0:t.videoUrl),E=F(()=>{var e;const r=p.current;r&&(r.paused?null===(e=r.play())||void 0===e||e.catch(()=>{}):r.pause(),_(r.paused))},[]),y=F(()=>{h.current=!0},[]);return G(()=>{var e;const r=p.current;r&&(n&&!r.src&&(r.muted=!0,r.playsInline=!0,r.src=g,r.load()),n&&a&&(null===(e=r.play())||void 0===e||e.catch(()=>{})),a||r.paused||r.pause(),!n&&r.src&&(r.pause(),r.removeAttribute("src"),r.load()),_(r.paused))},[n,a,g]),G(()=>{p.current&&!c&&p.current.muted!==l&&(p.current.muted=l)},[l,c]),q(t)?null:e("div",{className:Ia,ref:e=>s(t.productId,e),children:r("div",{className:Ta,children:[e("video",{ref:p,className:fa,muted:!0,autoPlay:!0,playsInline:!0,preload:"none",loop:!0,controlsList:"nodownload nofullscreen noplaybackrate",controls:!1,disablePictureInPicture:!0,poster:ur(t.thumbnail),onClick:E,onPlay:y}),r(o,{className:Da,justifyContent:"space-between",children:[e("div",{className:Aa,onClick:e=>{e.stopPropagation(),p.current&&h.current&&(p.current.muted=!p.current.muted,u(p.current.muted))},"data-testid":"mute-button",children:e(d,{icon:l?fe:De,size:"md",color:m.DEFAULT})}),e("a",{className:Aa,href:v,children:e(d,{icon:Ae,size:"md",color:m.DEFAULT})})]}),c&&e("div",{className:Oa,children:e(d,{icon:Oe,size:"xxxl",color:m.DEFAULT})}),r(o,{className:Na,alignItems:"flex-end",gap:1,children:[e(Ma,{video:t}),e(i,{className:Ra,justifyContent:"flex-end",fullWidth:!1,fullHeight:!1,children:e(ka,{video:t})})]})]})})},za=()=>{const[t,o]=x(!0),a=Et(),i=(()=>{const e=vt(),r=gt();return Y(()=>r.filter(r=>r.productId!==Number(e)),[r,e])})(),n=H(null),{activeId:d,register:l}=function(e){const[r,t]=x(null),o=H(new Map);return G(()=>{const r=e.current;if(!r)return;let a;const i=new IntersectionObserver(e=>{const r=e.filter(e=>e.isIntersecting).sort((e,r)=>r.intersectionRatio-e.intersectionRatio)[0];r&&(cancelAnimationFrame(a),a=requestAnimationFrame(()=>{t(e=>{var t,a;const i=null!==(a=null===(t=[...o.current.entries()].find(([,e])=>e===r.target))||void 0===t?void 0:t[0])&&void 0!==a?a:null;return e===i?e:i})}))},{root:r,threshold:[.6,.75,1]});return o.current.forEach(e=>i.observe(e)),()=>{cancelAnimationFrame(a),i.disconnect()}},[e]),{activeId:r,register:(e,r)=>{r&&o.current.set(e,r)}}}(n);return e("div",{className:ya,children:r("div",{className:ba,tabIndex:0,ref:n,children:[e(wa,{video:a,registerVideo:l,isActive:d===a.productId,shouldLoad:!0,setIsMuted:o,isMuted:t}),i.map(r=>e(wa,{video:r,registerVideo:l,isActive:d===r.productId,shouldLoad:d===r.productId,setIsMuted:o,isMuted:t},r.productId))]})})};var ja={container:"ProductDetails-module_container__oa07j",content:"ProductDetails-module_content__Db3NC",media:"ProductDetails-module_media__Wy8ai",play:"ProductDetails-module_play__-4H6b",image:"ProductDetails-module_image__BlMfl",details:"ProductDetails-module_details__zfnlt",name:"ProductDetails-module_name__ganLM",price:"ProductDetails-module_price__W34k9",volume:"ProductDetails-module_volume__RWG5s",description:"ProductDetails-module_description__HBufi",allergens:"ProductDetails-module_allergens__rW3Fh",allergensTitle:"ProductDetails-module_allergensTitle__C2hxm",choices:"ProductDetails-module_choices__4tHaA",close:"ProductDetails-module_close__4cHZ3",stickyBottom:"ProductDetails-module_stickyBottom__17IWN",addAction:"ProductDetails-module_addAction__o4T5R",actionTitle:"ProductDetails-module_actionTitle__NIJGW"},Ua={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",focused:"Quantity-module_focused__Vfnh5",flexWide:"Quantity-module_flexWide__R95Jw",slidein:"Quantity-module_slidein__5yeWf",fadeInOut:"Quantity-module_fadeInOut__cllco",heightAnimation:"Quantity-module_heightAnimation__dhOgA",fadein:"Quantity-module_fadein__Cof2o",floatAnimation:"Quantity-module_floatAnimation__DSqQr",bottomSheet:"Quantity-module_bottomSheet__5-5iY",slideRightToLeft:"Quantity-module_slideRightToLeft__cjDHk",rotation:"Quantity-module_rotation__dn0J8",pulse:"Quantity-module_pulse__6kl4q"};const Wa=({isDecreaseDisabled:t=!1,quantity:a=1,size:i="md",focusedSection:n,onIncrease:l,onDecrease:s})=>r(o,{className:te(Ua,{container:!0,focused:"quantity"===n},[Ua[i]]),justifyContent:"space-between",gap:0,children:[e("div",{className:te(Ua,{quantityAction:!0,isDisabled:t}),onClick:s,children:e(d,{icon:Ne})}),e("div",{className:Ua.quantityValue,children:a}),e("div",{className:Ua.quantityAction,onClick:l,children:e(d,{icon:ge})})]});var Ba="ProductInOrder-module_container__0N57G",Va="ProductInOrder-module_title__TWjM9";const Ya=({productId:t,quantity:a,isInPublicMenu:i=!0,language:n,removeAllProductVariants:d,onModalClose:l})=>{const{setIsOrderOpen:s}=pt(),{t:u}=Gt("order",{language:n});return a<=0?null:r(c,{className:Ba,fullWidth:!0,justifyContent:"space-between",alignItems:"center",children:[r(c.Item,{flex:1,className:Va,children:[u("In order")," (",a,")"]}),e(c.Item,{flex:0,children:r(o,{children:[e(b,{icon:Re,onClick:()=>{d(t)},type:m.DANGER,tooltip:u("Remove from order")}),i&&e(b,{icon:Ie,onClick:()=>{s(!0),l&&l()},type:m.SUCCESS,tooltip:u("View order")})]})})]})};var xa={container:"ProductVariants-module_container__r059N",variantsTitle:"ProductVariants-module_variantsTitle__G3wTr",variant:"ProductVariants-module_variant__Pk6eP",focused:"ProductVariants-module_focused__tdy2R",flexWide:"ProductVariants-module_flexWide__CQO0G",slidein:"ProductVariants-module_slidein__9xYoM",fadeInOut:"ProductVariants-module_fadeInOut__NcGdX",heightAnimation:"ProductVariants-module_heightAnimation__c7ORS",fadein:"ProductVariants-module_fadein__qqdC5",floatAnimation:"ProductVariants-module_floatAnimation__Fy-NX",bottomSheet:"ProductVariants-module_bottomSheet__JVxKH",slideRightToLeft:"ProductVariants-module_slideRightToLeft__lHsqZ",rotation:"ProductVariants-module_rotation__iJPfC",pulse:"ProductVariants-module_pulse__xzh2J"};const Fa=({product:t,selectedVariant:a,focusedSection:n,language:d,currency:l,onSelectVariant:s})=>{const{t:u}=Gt("order",{language:d}),c=H(null),{variants:m}=t||{},_="variant"===n;return G(()=>{_&&c.current&&c.current.scrollIntoView({behavior:"smooth"})},[n,_]),r(i,{className:te(xa,{container:!0,focused:_}),gap:1,fullWidth:!0,children:[e("div",{className:xa.variantsTitle,ref:c,children:u("Product choices")}),(m||[]).map(t=>{const{id:i}=t||{},n=xo(t,d),u=((e,r,t)=>{const o=Uo(e);return X(o,r,t)})(t,l,d);return r(o,{justifyContent:"space-between",onClick:()=>s(i),className:xa.variant,children:[e(h,{label:n,name:"variant",onChange:()=>s(i),checked:a===i,type:v.RADIO,size:"small",noMargin:!0}),e("div",{className:xa.variantPrice,children:u})]},i)})]})};var Ha={container:"ProductAddons-module_container__DRnT7"};const Ga=(e,r)=>Ge(null==e?void 0:e.title,r),Ka=({product:t,selectedAddons:a,language:d,currency:l,onOptionSelect:s})=>{const{addons:u}=t||{};return e(i,{className:Ha.container,gap:1.5,fullWidth:!0,children:(u||[]).map(t=>{const{id:u,options:c,selectType:m}=t||{},_=Ga(t,d);return r(i,{children:[e(n,{variant:"bold",children:_}),e(i,{gap:1,fullWidth:!0,children:(c||[]).map(t=>{const{id:i}=t||{},n=((e,r,t)=>{const o=Uo(e);return X(o,r,t)})(t,l,d),c=Ga(t,d),_=m===Bo.SINGLE,p=_?a[u]===i:(a[u]||[]).includes(i);return r(o,{justifyContent:"space-between",className:Ha.option,children:[e(h,{label:c,name:`option-${u}`,onChange:()=>s({addonId:u,optionId:i,isSingle:_,isRemove:!_&&p}),checked:p,type:_?v.RADIO:v.CHECKBOX,size:"small",noMargin:!0}),e("div",{className:Ha.optionPrice,children:n})]},i)})})]},u)})})},Qa=({product:t,language:a,currency:l,selectedVariant:s,focusedSection:u,selectedAddons:c,isDecreaseDisabled:h,quantity:v,actionTitle:g,isInPublicMenu:E,productQuantityInOrderWithAllVariants:y,modalRef:I,videoUrl:T,addToOrderEnabled:f=!0,onClose:D,setSelectedVariant:A,onOptionSelect:N,adjustQuantity:R,onSubmit:C,removeAllProductVariants:P,onQuantityChange:S})=>{const{t:k}=Gt("order",{language:a}),{name:L,description:M}=Y(()=>Yo(t,a),[t,a]),w=Y(()=>Wo(t,l,a),[t,l,a]),z=Y(()=>(e=>{switch(e){case no.WEIGHT:return" / kg";case no.VOLUME:return" / l";default:return""}})(null==t?void 0:t.sellUnitType),[t]),j=Y(()=>Vo({product:t,quantity:v,language:a,currency:l,variantId:s,selectedAddons:c}),[t,v,a,l,s,c]),U=Y(()=>(e=>{switch(e){case no.WEIGHT:return{"50gr":.05,"100gr":.1,"150gr":.15,"200gr":.2,"250gr":.25,"300gr":.3,"350gr":.35,"400gr":.4,"450gr":.45,"500gr":.5,"600gr":.6,"700gr":.7,"750gr":.75,"800gr":.8,"850gr":.85,"900gr":.9,"950gr":.95,"1kg":1,"2kg":2,"5kg":5,"10kg":10,"20kg":20};case no.VOLUME:return{"50ml":.05,"100ml":.1,"150ml":.15,"200ml":.2,"250ml":.25,"300ml":.3,"350ml":.35,"400ml":.4,"450ml":.45,"500ml":.5,"600ml":.6,"700ml":.7,"750ml":.75,"800ml":.8,"850ml":.85,"900ml":.9,"950ml":.95,"1l":1,"2l":2,"5l":5,"10l":10,"20l":20};default:return{}}})(null==t?void 0:t.sellUnitType),[t]),W=F(e=>{var r,t;(null===(t=null===(r=null==I?void 0:I.current)||void 0===r?void 0:r.contains)||void 0===t?void 0:t.call(r,null==e?void 0:e.target))||D&&D()},[I,D]);if(q(t))return null;const{image1024:B,volume:V,variants:x,addons:H,available:G,sellUnitType:K}=t,Q=(null==x?void 0:x.length)>0,Z=(null==H?void 0:H.length)>0,X=Ho(t).length>0,$=K===no.WEIGHT||K===no.VOLUME;return e("div",{className:ja.container,onClick:W,children:e(_,{onClose:D,ref:I,noBodyPadding:!0,size:"small",content:r("div",{className:ja.content,children:[r(i,{gap:0,children:[r("div",{className:ja.media,children:[B&&e("img",{src:ur(B),width:1024,height:400,alt:L||"product",className:ja.image}),Boolean(T)&&r("a",{href:T,className:ja.play,children:[e(d,{icon:Ce,color:m.DEFAULT}),e(n,{color:"white",children:k("Play video")})]})]}),r(i,{className:ja.details,gap:1,children:[e("h2",{className:ja.name,children:L}),r(o,{justifyContent:"space-between",children:[r("div",{className:ja.price,children:[w,Boolean(z)&&k(z)]}),e("div",{className:ja.volume,children:V})]}),e("div",{className:ja.description,children:M}),X&&r(i,{gap:.5,className:ja.allergens,children:[e(n,{size:"xs",className:ja.allergensTitle,children:k("Contains allergens")}),e(da,{product:t,language:a,size:"md",withTooltip:!0})]})]}),(Q||Z)&&r(i,{gap:0,className:ja.choices,children:[Q&&e(Fa,{product:t,selectedVariant:s,focusedSection:u,language:a,currency:l,onSelectVariant:A}),Z&&e(Ka,{product:t,selectedAddons:c,language:a,currency:l,onOptionSelect:N})]}),r(i,{gap:0,fullWidth:!0,className:ja.stickyBottom,children:[$&&e(O,{onChange:S,value:v,shortcuts:U}),e(Ya,{productId:null==t?void 0:t.id,onModalClose:D,isInPublicMenu:E,removeAllProductVariants:P,quantity:y,language:a})]})]}),e("div",{className:ja.close,children:e(b,{onClick:D,icon:Ae})})]}),footer:f?r(o,{className:ja.addToOrder,gap:.5,children:[e(Wa,{focusedSection:u,isDecreaseDisabled:h,onDecrease:()=>R(-1),onIncrease:()=>R(1),quantity:v}),e(p,{className:ja.addAction,label:G?r(o,{fullWidth:!0,justifyContent:"space-between",gap:.5,children:[e("span",{className:ja.actionTitle,children:g}),e("span",{children:j})]}):k("Not available"),onClick:C,size:"xl",fullWidth:!0,disabled:!G,paddingBlock:.5})]}):null})})};var qa="OrderDrawer-module_container__DymQj",Za="OrderDrawer-module_content__khduX",Xa="OrderDrawer-module_footer__8XfD9",$a="OrderDrawer-module_noteButton__M8BVx",Ja={container:"OrderStepper-module_container__GVnVU",count:"OrderStepper-module_count__u13tM",actionText:"OrderStepper-module_actionText__CZsVe",totalPrice:"OrderStepper-module_totalPrice__R9Mni",isClickable:"OrderStepper-module_isClickable__M3rWK",isLoading:"OrderStepper-module_isLoading__FkS16",isDisabled:"OrderStepper-module_isDisabled__xipwc",inDetails:"OrderStepper-module_inDetails__VdC2G",flexWide:"OrderStepper-module_flexWide__oIpQi",slidein:"OrderStepper-module_slidein__P6YJD",fadeInOut:"OrderStepper-module_fadeInOut__OVRav",heightAnimation:"OrderStepper-module_heightAnimation__bDpZh",fadein:"OrderStepper-module_fadein__526L2",floatAnimation:"OrderStepper-module_floatAnimation__rjwmv",bottomSheet:"OrderStepper-module_bottomSheet__777sc",slideRightToLeft:"OrderStepper-module_slideRightToLeft__UjVx6",rotation:"OrderStepper-module_rotation__PedNC",pulse:"OrderStepper-module_pulse__mOlOg"};const ei=({actionText:t,isLoading:a=!1,isDisabled:i=!1,onClick:n})=>{const{orderStep:d}=pt(),l=po(),s=(()=>{const e=so(),r=Ir(),t=zr();return X(e,t,r)})(),u=d===Zr.DETAILS;return r(c,{className:te(Ja,{container:!0,isLoading:a,isClickable:!!n,isDisabled:i,inDetails:u}),justifyContent:"space-between",alignItems:"center",onClick:a||i?null:n,children:[e(c.Item,{flex:1,children:r(o,{alignItems:"center",children:[e("div",{className:Ja.count,children:l}),e("div",{className:Ja.actionText,children:a?e(N,{}):t})]})}),!u&&e(c.Item,{className:Ja.totalPrice,flex:1,children:s})]})},ri=({isOrderItemsEmpty:t=!1,orderError:o})=>{const{t:a}=Gt("order"),{t:d}=Gt("error"),{order:s,orderStep:u,orderItems:c,guestContact:_,setOrderStep:h,setIsOrderOpen:v,setTrackingId:g,updateOrderErrors:y,resetErrors:b}=pt(),{setModal:I}=l(),T=Br(),f=$t(),D=mo(),{isOpen:A,isDelivering:O}=Ur(),N=co(),C=_o(),[P,S]=x(!1),[k,L]=x(""),M=null==s?void 0:s.note,w=!!M,z=T&&u===Zr.CART,j=A||O,U=!!o||!j,W=()=>Hr(void 0,void 0,void 0,function*(){try{L(""),S(!0);const e=D?yield(e=>Hr(void 0,void 0,void 0,function*(){return st.post("/order/public",e)}))(C):yield(e=>Hr(void 0,void 0,void 0,function*(){return st.post("/customer/order",e)}))(N);return e.trackingId}catch(e){return L((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/OrderDrawer/OrderDrawerFooter.tsx",method:"handleSubmit"}),""}finally{S(!1)}}),B=T&&j?()=>Hr(void 0,void 0,void 0,function*(){if(q(f)&&!D)return I({id:Je});if(b(),u===Zr.DETAILS){if(s.orderType===Gr.DELIVERY){const e=!!(null==_?void 0:_.street)||!!(null==_?void 0:_.latitude)&&!!(null==_?void 0:_.longitude);if(!(D?e:!q(null==f?void 0:f.addresses)))return y("customer")}if(s.orderType===Gr.DINE_IN&&!(null==s?void 0:s.tableId))return y("tableId");if(q(c))return y("items");const e=yield W();if(!e)return;g(e)}const e=($r.findIndex(e=>e===u)||0)+1;if(e>=$r.length)return;const r=$r[e];h(r)}):null;return r(i,{className:Xa,fullWidth:!0,children:[!!k&&e(E,{message:d(k),type:"error",onClear:()=>L("")}),!!o&&e(R,{text:o,type:m.DANGER,fullWidth:!0}),z&&e(p,{label:w?e(n,{children:s.note}):r(i,{gap:0,children:[e(n,{children:a("Add an order note")}),e(n,{size:"sm",color:"muted",children:a("Special instructions, allergies, etc.")})]}),onClick:()=>{I({id:$e,params:{note:M}})},size:"xxxl",fullWidth:!0,type:m.LIGHT,className:$a,icon:w?Pe:ge,iconSize:"md"}),t?e(p,{label:a("Add items"),onClick:()=>v(!1),type:m.PRIMARY,size:"xl",fullWidth:!0}):u!==Zr.COMPLETED?e(ei,{actionText:a((()=>{if(!T)return"Subtotal";if(!j)return"Closed Now";switch(u){case Zr.CART:return"Continue";case Zr.DETAILS:return"Place order";default:return"Continue"}})()),onClick:B,isLoading:P,isDisabled:U}):null]})};var ti={},oi="OrderListItem-module_container__Tj4RI",ai="OrderListItem-module_image__o3PIC",ii="OrderListItem-module_data__BLzxw",ni="OrderListItem-module_name__QEzuZ",di="OrderListItem-module_price__-V2qL",li="ProductQuantity-module_quantity__PzTpj";const si=({productId:r,variantId:t,min:o=1,size:a="md",selectedAddons:i,isDisabled:n=!1})=>{const d=(({productId:e,variantId:r,selectedAddons:t})=>{const{orderItems:o}=pt(),a=o[it(e,r,t)];return(null==a?void 0:a.quantity)||1})({productId:r,variantId:t,selectedAddons:i}),l=Go(r),{updateProduct:s}=pt(),u=d===o;return n?e("div",{className:li,children:d}):e(Wa,{isDecreaseDisabled:u,onDecrease:()=>s({product:l,quantity:d-1,variantId:t,selectedAddons:i}),onIncrease:()=>s({product:l,quantity:d+1,variantId:t,selectedAddons:i}),quantity:d,size:a})},ui=({item:o,product:a,language:i})=>e(t,{children:(o.addons||[]).map(({addonId:e,options:t})=>{const o=((e,r)=>((null==e?void 0:e.addons)||[]).find(({id:e})=>e===r)||{})(a,e),d=((null==o?void 0:o.options)||[]).filter(e=>null==t?void 0:t.some(({optionId:r})=>r===e.id));if(q(o)||q(d))return null;const l=Ga(o,i),s=d.map(e=>Ga(e,i)).filter(Boolean).join(", ");return l&&s?r(n,{color:"muted",size:"xs",children:[l,": ",s]},e):null})}),ci=({item:t,isDisabled:a=!1})=>{var d;const{productId:l}=t||{},s=null===(d=null==t?void 0:t.variant)||void 0===d?void 0:d.variantId,u=(e=>{const r={};for(const{addonId:t,options:o=[]}of e.addons||[]){const e=o.map(({optionId:e})=>e);r[t]=1===e.length?e[0]:e}return r})(t),c=Go(l),m=((e,r)=>{var t,o;return(null===(o=null===(t=null==e?void 0:e.variants)||void 0===t?void 0:t.find)||void 0===o?void 0:o.call(t,e=>e.id===r))||{}})(c,s),_=Ir(),p=zr(),{image160:h}=c,v=xo(m,_),{name:g}=Y(()=>Yo(c,_),[c,_]),E=Y(()=>((e,r,t)=>{const o=at(e);return X(o,r,t)})(t,p,_),[t,p,_]);return r(o,{className:oi,gap:1,alignItems:"flex-start",children:[h&&e("img",{src:ur(h),alt:g||"menu",className:ai,loading:"lazy",width:80,height:45}),r("div",{className:ii,children:[e("div",{className:ni,children:g}),r(i,{gap:0,children:[!!v&&e(n,{color:"muted",size:"xs",children:v}),e(ui,{item:t,product:c,language:_})]}),e("div",{className:di,children:E})]}),e(si,{productId:l,variantId:s,selectedAddons:u,size:"sm",min:0,isDisabled:a})]})},mi=()=>{const{t:t}=Gt("order");return r(i,{className:ti.noItems,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",gap:0,children:[e(n,{variant:"h2",children:t("Empty order")}),e(C,{text:t("You don't have any items in your order")})]})},_i=({isDisabled:r=!1})=>{const{orderItems:t}=pt(),o=q(t);return e("div",{className:ti.container,children:o?e(mi,{}):e("div",{className:ti.items,children:Object.entries(t||{}).map(([t,o])=>e(ci,{item:o,isDisabled:r},t))})})},pi=()=>e("div",{className:Za,children:e(_i,{})}),hi=B(tt),vi=({children:r})=>{const{order:t,orderItems:o}=pt(),a=wr(),i=br(),n=mo(),d=Jt(),l=null==a?void 0:a.id,s=null==t?void 0:t.orderType,u=s===Gr.DELIVERY&&kr(null==d?void 0:d.latitude,null==d?void 0:d.longitude),c=u?d.latitude:void 0,m=u?d.longitude:void 0,[_,p]=x(tt);return G(()=>{const e=(e=>Object.entries(e||{}).map(([e,r])=>{var t;return Object.assign(Object.assign({orderItemsId:e,productId:r.productId,quantity:r.quantity},(null===(t=r.variant)||void 0===t?void 0:t.variantId)?{variant:{variantId:r.variant.variantId}}:{}),r.addons&&r.addons.length>0?{addons:r.addons.map(e=>({addonId:e.addonId,options:(e.options||[]).map(e=>({optionId:e.optionId}))}))}:{})}))(o);if(!i||!l||!s||0===e.length)return void p(e=>e===tt?e:tt);const r=new AbortController;return p({data:null,isLoading:!0,error:null}),Hr(void 0,void 0,void 0,function*(){try{const t=n?bo:yo,o=yield t(Object.assign({businessId:i,branchId:l,orderType:s,items:e},u?{latitude:c,longitude:m}:{}),r.signal);if(r.signal.aborted)return;if(!(e=>{if(!e||"object"!=typeof e)return!1;const r=e;return"number"==typeof r.totalPriceWithoutTax&&"number"==typeof r.totalPriceWithTax&&"number"==typeof r.totalPriceWithTaxAndFees&&"number"==typeof r.totalTax&&"number"==typeof r.deliveryFee&&"number"==typeof r.serviceFee&&Array.isArray(r.items)&&Array.isArray(r.taxes)})(o))return void p({data:null,isLoading:!1,error:"We couldn't refresh order totals. Please try again."});p({data:o,isLoading:!1,error:null})}catch(e){if(r.signal.aborted)return;if("AbortError"===(null==e?void 0:e.name))return;p({data:null,isLoading:!1,error:"We couldn't refresh order totals. Please try again."})}}),()=>{r.abort()}},[null==t?void 0:t.orderType,c,m]),e(hi.Provider,{value:_,children:r})},gi=()=>V(hi);var Ei="CustomerAddress-module_container__TGYRV";const yi=()=>{const{t:r}=Gt("customer");return e(n,{color:m.DANGER,children:r("No address available")})},bi=()=>{const o=Jt(),{t:a}=Gt("customer"),{additionalNumber:i,street:d,houseNumber:l,cityName:s,countryCode:u}=o,c=oo(d,l,i),m=([s,u]||[]).filter(Boolean).join(", ");return r(t,{children:[e(n,{children:c||a("Unknown address")}),m&&e(n,{size:"sm",color:"muted",children:m})]})},Ii=()=>{const t=Jt(),{setModal:a}=l();return e("div",{className:Ei,onClick:()=>{a({id:er})},children:r(o,{fullWidth:!0,alignItems:"center",children:[e(d,{icon:pe,size:"md"}),e(i,{gap:0,fullWidth:!0,children:q(t)?e(yi,{}):e(bi,{})}),e(d,{icon:Pe,size:"sm"})]})})};var Ti="UnregisteredContact-module_container__BK5Ck";const fi=()=>{var t,o,a;const{t:n}=Gt("customer"),{guestContact:d,updateGuestContact:l}=pt(),s=e=>{var r,t,o;const a=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.name;a&&l({[a]:null!==(o=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value)&&void 0!==o?o:""})};return e(P,{title:n("Your details"),content:r(i,{className:Ti,gap:1,fullWidth:!0,children:[e(h,{name:"fullName",label:n("Full name"),placeholder:n("Your name"),type:v.TEXT,fullWidth:!0,value:null!==(t=null==d?void 0:d.fullName)&&void 0!==t?t:"",onChange:s,noMargin:!0}),e(h,{name:"phoneNumber",label:n("Phone number"),placeholder:"31 123 456 789",type:v.TEL,fullWidth:!0,value:null!==(o=null==d?void 0:d.phoneNumber)&&void 0!==o?o:"",onChange:s,noMargin:!0}),e(h,{name:"email",label:n("Email"),placeholder:"name@example.com",type:v.EMAIL,fullWidth:!0,value:null!==(a=null==d?void 0:d.email)&&void 0!==a?a:"",onChange:s,noMargin:!0})]}),isDefaultOpen:!0,fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"})};var Di,Ai,Oi;!function(e){e.SQUARE="SQUARE",e.CIRCLE="CIRCLE",e.RECTANGLE="RECTANGLE",e.RECTANGLE_VERTICAL="RECTANGLE_VERTICAL",e.SINGLE_AT_BAR="SINGLE_AT_BAR",e.OTHER="OTHER"}(Di||(Di={})),function(e){e.VACANT="VACANT",e.RESERVED="RESERVED",e.OCCUPIED="OCCUPIED",e.BLOCKED="BLOCKED",e.NEEDS_CLEANING="NEEDS_CLEANING",e.OUT_OF_SERVICE="OUT_OF_SERVICE",e.PENDING_CONFIRMATION="PENDING_CONFIRMATION",e.NO_SHOW="NO_SHOW"}(Ai||(Ai={})),function(e){e.MAIN_HALL="MAIN_HALL",e.PRIVATE_DINING="PRIVATE_DINING",e.VIP_ROOM="VIP_ROOM",e.BANQUET_HALL="BANQUET_HALL",e.BAR_AREA="BAR_AREA",e.LOUNGE="LOUNGE",e.OPEN_KITCHEN="OPEN_KITCHEN",e.BOOTH_SECTION="BOOTH_SECTION",e.MEZZANINE="MEZZANINE",e.WINE_CELLAR="WINE_CELLAR",e.TERRACE="TERRACE",e.PATIO="PATIO",e.GARDEN="GARDEN",e.COURTYARD="COURTYARD",e.ROOFTOP="ROOFTOP",e.BALCONY="BALCONY",e.SIDEWALK="SIDEWALK",e.POOLSIDE="POOLSIDE",e.SMOKING_AREA="SMOKING_AREA",e.NON_SMOKING="NON_SMOKING",e.FAMILY_SECTION="FAMILY_SECTION",e.KIDS_AREA="KIDS_AREA",e.WAITING_AREA="WAITING_AREA",e.DANCE_FLOOR="DANCE_FLOOR"}(Oi||(Oi={}));var Ni={};const Ri=({preDefinedTable:t,tableOptions:a,selectedTableId:d,error:l,disableIfPreDefined:s,language:u,onChange:c})=>{const{t:_}=Gt("order",{language:u}),p=!q(t),g=F(e=>{var r;c(Number(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)||null)},[c]);return r(i,{className:Ni.table,fullWidth:!0,gap:.5,children:[e(o,{fullWidth:!0,children:p&&s?e(n,{variant:"bold",children:t.name}):e(h,{name:"tableId",options:a,type:v.SELECT,className:Ni.tableInput,value:d,onChange:g,isDisabled:p,fullWidth:!0,noMargin:!0,size:"medium",placeholder:_("Select Table")})}),l&&e(n,{color:m.DANGER,children:_(l)})]})},Ci=()=>{const r=(()=>{const{tableId:e,tables:r}=Er();return!e||q(r)?{}:r.find(r=>Number(r.id)===Number(e))||{}})(),t=(()=>{const{tables:e}=Er();return e})(),{order:o,updateOrder:a,errors:i}=pt(),n=Ir(),d=t.map(({id:e,name:r})=>({label:r,value:e}));return e(Ri,{onChange:e=>a({tableId:e}),preDefinedTable:r,tableOptions:d,selectedTableId:null==o?void 0:o.tableId,error:null==i?void 0:i.tableId,language:n,disableIfPreDefined:!0})};var Pi="OrderMethods-module_container__KSwfa";const Si=({orderTypes:t,orderType:a,size:i,onSelect:l})=>{const{t:s}=Gt("error"),c=e=>0===e?"right":e+1===t.length?"left":"bottom",m=t.reduce((t,i,l)=>i.isVisible?(t.push((({type:t,icon:i,title:l,isDisabled:m},_)=>({value:t,isDisabled:m,label:e(u,{hint:m?s("ORDER_TYPE_DISABLED_AT_THIS_TIME"):null,position:c(_),children:r(o,{gap:.5,flexWrap:"nowrap",children:[e(d,{icon:i}),e(n,{color:t!==a||m?"normal":"white",whiteSpace:"nowrap",children:l})]})})}))(i,l)),t):t,[]);return e("div",{className:Pi,children:e(S,{methods:m,onSelect:l,selectedMethod:a,fullWidth:!0,size:i,gap:.5})})};var ki="OrderPaymentSummary-module_container__HF7-X",Li="OrderPaymentSummary-module_row__eikWa";const Mi=({textSize:a,totalPriceWithoutTax:d=0,totalPriceWithTaxAndFees:l=0,deliveryFee:s=0,serviceFee:u=0,serviceFeePercentage:c=0,serviceFeeEnabled:m=!1,totalTax:_,discountAmount:p=0,discountType:h,discountRate:v,tipAmount:g=0,itemsCount:E,currency:y,language:b,orderType:I})=>{const{t:T}=Gt("order",{language:b}),f=g>0,D=e=>X(e,y,b);return r(i,{className:ki,fullWidth:!0,gap:0,children:[r(o,{justifyContent:"space-between",className:Li,children:[r(n,{size:a,children:[T("Items"),E?` (${E})`:""]}),e(n,{size:a,children:D(d)})]}),I===Gr.DELIVERY&&r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,children:T("Delivery Fee")}),e(n,{size:a,children:D(s)})]}),m&&r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,children:T("Service Fee ({{rate}}%)",{rate:String(c)})}),e(n,{size:a,children:D(u)})]}),r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,children:T("Tax")}),e(n,{size:a,children:D(_)})]}),r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,color:"bold",children:T("Total")}),e(n,{size:a,color:"bold",children:D(l)})]}),p>0&&r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,color:"muted",children:"PERCENTAGE"===h?T("Discount ({{rate}}%)",{rate:String(v)}):T("Discount")}),r(n,{size:a,weight:"medium",color:"success",children:["-",D(p)]})]}),f&&r(t,{children:[r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,children:T("Tip")}),e(n,{size:a,children:D(g)})]}),r(o,{justifyContent:"space-between",className:Li,children:[e(n,{size:a,color:"bold",children:T("Total with tip")}),e(n,{size:a,color:"bold",children:D(l+g)})]})]})]})};var wi={container:"OrderPaymentMethods-module_container__7G3--",group:"OrderPaymentMethods-module_group__mTv8u",grid:"OrderPaymentMethods-module_grid__kclES",panel:"OrderPaymentMethods-module_panel__Y2JW0",reveal:"OrderPaymentMethods-module_reveal__ZzGxT",method:"OrderPaymentMethods-module_method__nYLhX",label:"OrderPaymentMethods-module_label__b89Vz",check:"OrderPaymentMethods-module_check__qFVf7",chevron:"OrderPaymentMethods-module_chevron__I04iT",up:"OrderPaymentMethods-module_up__aFieM",toggle:"OrderPaymentMethods-module_toggle__NdAeL",active:"OrderPaymentMethods-module_active__gteSo",flexWide:"OrderPaymentMethods-module_flexWide__kLWQh",slidein:"OrderPaymentMethods-module_slidein__oQYp3",fadeInOut:"OrderPaymentMethods-module_fadeInOut__AEAhg",heightAnimation:"OrderPaymentMethods-module_heightAnimation__llDY0",fadein:"OrderPaymentMethods-module_fadein__XZyUq",floatAnimation:"OrderPaymentMethods-module_floatAnimation__M-Jmf",bottomSheet:"OrderPaymentMethods-module_bottomSheet__UsJYR",slideRightToLeft:"OrderPaymentMethods-module_slideRightToLeft__0reI-",rotation:"OrderPaymentMethods-module_rotation__EntOW",pulse:"OrderPaymentMethods-module_pulse__sT4lv"};const zi={[qr.CASH]:{icon:ze,label:"Cash"},[qr.CARD]:{icon:we,label:"Card"},[qr.BANK_TRANSFER]:{icon:Me,label:"Bank transfer"},[qr.MOBILE]:{icon:Le,label:"Mobile pay"},[qr.QR]:{icon:ke,label:"QR code"},[qr.VOUCHER]:{icon:Se,label:"Voucher"}},ji={ArrowRight:1,ArrowDown:1,ArrowLeft:-1,ArrowUp:-1},Ui=()=>{const{t:o}=Gt("order"),{order:{preferredPaymentMethod:a},updateOrder:l}=pt(),{primary:s,secondary:u}=lo(),c=Q(),_=H([]),p=H(null),h=H(!1),v=u.find(e=>e===a),g=!q(u),[E,y]=x(()=>!!v),b=[...s,...u],I=E?b:s,T=!I.some(e=>e===a),f=b.some(e=>e===a),D=b[0];G(()=>{f||l({preferredPaymentMethod:D})},[f,D,l]),G(()=>{var e,r;E&&h.current&&(h.current=!1,null===(r=null===(e=p.current)||void 0===e?void 0:e.scrollIntoView)||void 0===r||r.call(e,{block:"nearest",behavior:"smooth"}))},[E]);const A=e=>l({preferredPaymentMethod:e}),O=t=>{const{icon:i,label:l}=zi[t],s=t===a,u=I.indexOf(t);return r("button",{type:"button",role:"radio","aria-checked":s,tabIndex:s||T&&0===u?0:-1,ref:e=>{_.current[u]=e},className:te(wi,{method:!0,active:s}),onClick:()=>A(t),onKeyDown:e=>((e,r)=>{var t;const o=ji[e.key];if(!o)return;e.preventDefault();const a=(I.indexOf(r)+o+I.length)%I.length;A(I[a]),null===(t=_.current[a])||void 0===t||t.focus()})(e,t),children:[e(d,{icon:i,size:"md",color:s?m.PRIMARY:void 0}),e(n,{className:wi.label,size:"sm",weight:s?"bold":"regular",noMargin:!0,children:o(l)}),e("span",{className:wi.check,"aria-hidden":"true",children:e(d,{icon:We,size:"xs",color:m.PRIMARY})})]},t)},N=!E&&v?zi[v]:void 0;return r(i,{className:wi.container,gap:.75,fullWidth:!0,children:[e(n,{variant:"bold",children:o("Payment method")}),r("div",{className:wi.group,role:"radiogroup","aria-label":o("Payment method"),children:[e("div",{className:wi.grid,children:s.map(O)}),g&&r(t,{children:[r("button",{type:"button","aria-expanded":E,"aria-controls":c,className:te(wi,{method:!0,toggle:!0,active:!!N}),onClick:()=>{h.current=!E,y(!E)},children:[e(d,{icon:N?N.icon:je,size:"md",color:N?m.PRIMARY:void 0}),e(n,{className:wi.label,size:"sm",weight:N?"bold":"regular",noMargin:!0,children:o(N?N.label:"More methods")}),e("span",{className:te(wi,{chevron:!0,up:E}),"aria-hidden":"true",children:e(d,{icon:Ue,size:"xs"})})]}),E&&e("div",{id:c,ref:p,className:te(wi,{grid:!0,panel:!0}),children:u.map(O)})]})]})]})};var Wi={container:"OrderTip-module_container__f3u6M",chips:"OrderTip-module_chips__sXYAo",chip:"OrderTip-module_chip__HbyTW",active:"OrderTip-module_active__I1zfx",flexWide:"OrderTip-module_flexWide__NkP9O",slidein:"OrderTip-module_slidein__QRTgf",fadeInOut:"OrderTip-module_fadeInOut__vS323",heightAnimation:"OrderTip-module_heightAnimation__z4xBb",fadein:"OrderTip-module_fadein__Gq-aQ",floatAnimation:"OrderTip-module_floatAnimation__k1pnw",bottomSheet:"OrderTip-module_bottomSheet__fY1Mx",slideRightToLeft:"OrderTip-module_slideRightToLeft__9p69l",rotation:"OrderTip-module_rotation__LlI3s",pulse:"OrderTip-module_pulse__EyuLX"};const Bi=()=>{var t;const{t:a}=Gt("order"),{order:{preferredTipAmount:d},updateOrder:l}=pt(),{data:s}=gi(),u=null!==(t=null==s?void 0:s.totalPriceWithoutTax)&&void 0!==t?t:0,[c,m]=x(()=>d?"custom":"none"),[_,p]=x(()=>null!=d?d:"");G(()=>{let e=0;var r,t;"custom"===c?e=Math.max(0,parseFloat(_)||0):"number"==typeof c&&(t=c,e=!(r=u)||r<=0||!t||t<=0?0:Math.round(r*t)/100);const o=e>0?(e=>e.toFixed(2))(e):void 0;o!==d&&l({preferredTipAmount:o})},[c,_,u,l]);const g=[{key:"none",label:a("None"),mode:"none"},...rt.map(e=>({key:`${e}`,label:`${e}%`,mode:e})),{key:"custom",label:a("Custom"),mode:"custom"}];return r(i,{className:Wi.container,gap:.75,fullWidth:!0,children:[e(n,{variant:"bold",children:a("Add a tip")}),e(o,{className:Wi.chips,gap:.5,fullWidth:!0,children:g.map(r=>e(o,{fullWidth:!1,justifyContent:"center",alignItems:"center",className:te(Wi,{chip:!0,active:c===r.mode}),onClick:()=>{m(r.mode),"none"===r.mode&&p("")},children:e(n,{size:"sm",children:r.label})},r.key))}),"custom"===c&&e(h,{name:"customTip",type:v.NUMBER_WITH_STEPS,placeholder:a("Enter tip amount"),value:_,onChange:e=>{var r,t;p(null!==(t=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)&&void 0!==t?t:"")},min:0,step:.5,autoFocus:!0,fullWidth:!0,noMargin:!0})]})},Vi=()=>{var t,o,a,n,d,l;const s=Ir(),u=zr(),{order:{orderType:c,preferredTipAmount:m},updateOrder:_}=pt(),{data:p}=gi(),{isOpen:h,isDelivering:v}=Ur(),{deliveryOrderEnabled:g,dineInOrderEnabled:E,pickupOrderEnabled:y,serviceChargePercentage:b,serviceChargeEnabled:I}=Wr(),T=vo(),f=mo(),D=po(),{t:A}=Gt("order"),O=[{type:Gr.DELIVERY,icon:Be,title:A("Delivery"),isDisabled:!v,isVisible:g},{type:Gr.DINE_IN,icon:ye,title:A("Dine in"),isDisabled:!h,isVisible:E},{type:Gr.PICK_UP,icon:Ie,title:A("Pickup"),isDisabled:!h,isVisible:y}];return r(i,{className:Za,gap:1,children:[e(Si,{orderTypes:O,orderType:c,size:"medium",onSelect:e=>_({orderType:e})}),f&&e(fi,{}),c===Gr.DELIVERY&&e(Ii,{}),c===Gr.DINE_IN&&e(k,{paddingInline:1,fullWidth:!0,children:e(Ci,{})}),e(P,{title:A("Order summary"),content:e(_i,{isDisabled:!0}),fullWidth:!0,style:"no-shadow",noPadding:!0,headerPaddingInline:1,headerPaddingBlock:1,titleVariant:"h5"}),e(Bi,{}),e(Mi,{textSize:"sm",totalPriceWithoutTax:null!==(t=null==p?void 0:p.totalPriceWithoutTax)&&void 0!==t?t:0,totalPriceWithTax:null!==(o=null==p?void 0:p.totalPriceWithTax)&&void 0!==o?o:0,totalPriceWithTaxAndFees:null!==(a=null==p?void 0:p.totalPriceWithTaxAndFees)&&void 0!==a?a:0,totalTax:null!==(n=null==p?void 0:p.totalTax)&&void 0!==n?n:0,deliveryFee:null!==(d=null==p?void 0:p.deliveryFee)&&void 0!==d?d:T,serviceFee:null!==(l=null==p?void 0:p.serviceFee)&&void 0!==l?l:0,serviceFeePercentage:null!=b?b:0,serviceFeeEnabled:I,tipAmount:m?parseFloat(m):0,itemsCount:D,language:s,currency:u,orderType:c}),e(Ui,{})]})},Yi=()=>e(vi,{children:e(Vi,{})}),xi=()=>{const{t:t}=Gt("order"),{trackingId:o}=pt(),a=Ir(),l=pr();return r(i,{className:Za,fullWidth:!0,fullHeight:!0,alignItems:"center",justifyContent:"center",children:[e(d,{icon:We,size:"xxl",color:m.SUCCESS}),e(k,{paddingInline:2,children:e(n,{variant:"h1",align:"center",children:t("Your Order is Completed!")})}),e(k,{paddingInline:2,children:e(n,{align:"center",children:t("Thank you! We've received your order and it will be delivered shortly.")})}),e(k,{paddingInline:5,paddingBlock:2,fullWidth:!0,children:e(L,{href:`https://${l}/${a}/order/${o}`,title:t("Track order"),type:m.PRIMARY,size:"xl",fullWidth:!0,target:"_blank"})})]})},Fi=()=>{const{isOrderOpen:r,orderItems:t}=pt(),{orderStep:o,setOrderStep:a,resetOrder:i}=pt(),n=H(null),{t:d}=Gt("order"),l=(()=>{const{order:e,orderStep:r}=pt(),t=go(),o=Eo(),{t:a}=Gt("error");return r!==Zr.DETAILS?null:(null==e?void 0:e.orderType)?e.orderType===Gr.DELIVERY?o||t:null:a("NO_ORDER_TYPE")})(),s=!!l,u=Br()&&(o===Zr.CART||s),c=q(t),m=()=>{i()};return r?e("div",{className:qa,onClick:e=>{var r,t;(null===(t=null===(r=null==n?void 0:n.current)||void 0===r?void 0:r.contains)||void 0===t?void 0:t.call(r,null==e?void 0:e.target))||m()},children:e(M,{ref:n,onClose:m,isOpen:r,title:d("Your order"),onBack:o===Zr.CART?void 0:()=>{a(Zr.CART)},content:(()=>{switch(o){case Zr.DETAILS:return e(Yi,{});case Zr.COMPLETED:return e(xi,{});default:return e(pi,{})}})(),footer:e(ri,{isOrderItemsEmpty:c,orderError:l}),hasLargeFooter:u})}):null},Hi={[$e]:({params:t})=>{const{modalRef:a,note:i}=t,[n,d]=x(i||""),{setModal:s}=l(),{updateOrder:u}=pt(),{t:c}=Gt("order"),{t:g}=Gt("common");return e(_,{ref:a,header:e("div",{children:c("Add an order note")}),content:e("div",{className:Zt.container,children:e(h,{type:v.TEXT_AREA,placeholder:c("Specify any allergies, special requests, or ingredients you want to add or remove"),value:n,onChange:e=>{var r;return d(null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.value)}})}),footer:r(o,{justifyContent:"flex-end",children:[e(p,{label:g("Cancel"),onClick:()=>s(null),type:m.DEFAULT,size:"md"}),e(p,{label:g("Save"),onClick:()=>{u({note:n}),s(null)},size:"md"})]})})},[Je]:({params:t})=>{const{t:o}=Gt("auth"),{t:a}=Gt("error"),{t:n}=Gt("common"),{setModal:d}=l(),{setOrderStep:s,getCustomer:u}=pt(),[c,m]=x({otp:"",email:""}),[h,v]=x({}),[g,y]=x(""),[b,I]=x(eo.EMAIL),T=[eo.EMAIL,eo.OTP],{modalRef:f}=t,D=()=>{const e=T.indexOf(b),r=T[e+1];if(r)return I(r);s(Zr.DETAILS),d(null)},A=F(e=>r=>{m(t=>Object.assign(Object.assign({},t),{[e]:r}))},[]);return e(_,{ref:f,title:o("Create an account or log in"),onClose:()=>d(null),content:r(i,{className:Xt.content,fullWidth:!0,children:[!!g&&e(E,{message:a(g),type:"error",onClear:()=>y(""),inline:!0}),b===eo.OTP?e(Io,{address:c.email,errorMessage:null==h?void 0:h.otp,onChange:A("otp")}):e(To,{onChange:A("email"),formErrors:h})]}),footer:e(p,{label:n("Continue"),onClick:()=>Hr(void 0,void 0,void 0,function*(){y("");try{const t=((e,r)=>{const t={},{email:o,otp:a}=e||{};switch(r){case eo.OTP:o&&re(o)||(t.email="Invalid Email Address"),a&&6===a.length||(t.otp="Invalid OTP");break;case eo.EMAIL:o&&re(o)||(t.email="Invalid Email Address")}return t})(c,b);if(!q(t))return v(t);switch(v({}),b){case eo.OTP:{const t=yield(e=c.otp,r=c.email,Hr(void 0,void 0,void 0,function*(){return st.post("/otp/verify",{otp:e,email:r})}));if(!(null==t?void 0:t.accessToken))throw new Error("SOMETHING_WRONG");lr.saveAuthToken(t);break}case eo.EMAIL:{const e=yield(e=>Hr(void 0,void 0,void 0,function*(){return st.post("/customer",{email:e})}))(c.email);if(200!==(null==e?void 0:e.status))throw new Error("SOMETHING_WRONG");break}}yield u(),D()}catch(e){y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/Modals/Auth/Auth.tsx",method:"handleSubmit",payload:c})}var e,r}),size:"lg",fullWidth:!0})})},[er]:({params:t})=>{const o=ar[0].code,{getCustomer:a,updateGuestContact:d}=pt(),s=mo(),u=Ir(),g=wr(),{id:b,countryCode:I=o,cityName:T="",street:f="",houseNumber:D="",floor:A,additionalNumber:O="",instructions:N="",longitude:R,latitude:C,postCode:P}=Jt(),S={addressId:b,countryCode:I,cityName:T,street:f,houseNumber:D,additionalNumber:O,instructions:N,floor:A,latitude:C,longitude:R,postCode:P},{modalRef:k}=t,{t:L}=Gt("customer"),{t:M}=Gt("error"),{t:w}=Gt("common"),{setModal:z}=l(),[j,U]=x(S),[W,B]=x({}),[V,Y]=x(""),[H,G]=x(!1),[K,Q]=x(!1),[Z,X]=x(!1),$=W.countryCode||!Z&&W.cityName||W.street,J=oo(S.street,S.houseNumber,void 0),ee=e=>{var r,t;const o=null===(r=null==e?void 0:e.target)||void 0===r?void 0:r.name,a=null===(t=null==e?void 0:e.target)||void 0===t?void 0:t.value;U(e=>{const r=Object.assign(Object.assign({},e),{[o]:a}),t=to(r);return B(t),r})},re=()=>z(null),te=F(e=>{const r=Object.assign(Object.assign({},j),{countryCode:e.countryCode,cityName:e.cityName,street:e.street,houseNumber:e.houseNumber||"",latitude:e.lat,longitude:e.long,postCode:e.postCode}),t=to(r);U(r),B(t),Q(!e.houseNumber),X(!e.cityName)},[j]);return e(_,{ref:k,title:L("Update Delivery Address"),onClose:re,content:e("div",{className:fo.content,children:r(i,{fullWidth:!0,children:[!!V&&e(E,{message:M(V),type:"error",onClear:()=>Y(""),inline:!0}),r(i,{fullWidth:!0,gap:.5,children:[e(y,{onSelect:te,language:u,origin:{lat:null==g?void 0:g.latitude,lng:null==g?void 0:g.longitude},noMargin:!0,defaultAdressText:J,placeHolder:L("Enter address"),inputLabel:L("Address")}),$&&e(n,{color:m.DANGER,children:M($)})]}),Z&&e(h,{name:"cityName",label:L("City"),placeholder:"Amsterdam",type:v.TEXT,fullWidth:!0,value:j.cityName,onChange:ee,errorMessage:M(W.cityName)}),r(c,{gap:1,children:[K&&e(c.Item,{flex:6,children:e(h,{name:"houseNumber",label:L("House No."),placeholder:"221B",type:v.TEXT,value:j.houseNumber,onChange:ee,errorMessage:M(W.houseNumber)})}),e(c.Item,{flex:6,children:e(h,{name:"floor",label:L("Floor"),placeholder:"7",type:v.TEXT,value:j.floor,onChange:ee,errorMessage:M(W.floor)})}),e(c.Item,{flex:6,children:e(h,{name:"additionalNumber",label:L("Additional number"),placeholder:"17",type:v.TEXT,value:j.additionalNumber,onChange:ee,errorMessage:M(W.additionalNumber)})})]}),e(h,{name:"instructions",placeholder:L("Example: Door code is 555"),label:L("Delivery Instructions"),type:v.TEXT,fullWidth:!0,value:j.instructions,onChange:ee,errorMessage:M(W.instructions)})]})}),footer:e(p,{label:w("Save"),onClick:()=>Hr(void 0,void 0,void 0,function*(){Y("");try{const r=to(j);if(!q(r))return B(r);if(B({}),s)return d({countryCode:j.countryCode,cityName:j.cityName,street:j.street,houseNumber:j.houseNumber,additionalNumber:j.additionalNumber,instructions:j.instructions,floor:j.floor?Number(j.floor):void 0,latitude:j.latitude,longitude:j.longitude,postCode:j.postCode}),void re();G(!0);const t=yield(e={address:j},Hr(void 0,void 0,void 0,function*(){return st.patch("/customer",e)}));if(200!==(null==t?void 0:t.status))throw new Error("SOMETHING_WRONG");a(),re()}catch(e){Y((null==e?void 0:e.errorCode)||"SOMETHING_WRONG"),ut(e,{file:"src/components/PublicMenu/Modals/AddUpdateAddress/AddUpdateAddress.tsx",method:"handleSubmit",payload:j})}finally{G(!1)}var e}),size:"lg",fullWidth:!0,isLoading:H})})},[rr]:({params:r})=>{const{setModal:t}=l(),{t:o}=Gt("branch"),{modalRef:a,openingHours:i,deliveryHours:n}=r;return e(_,{ref:a,onClose:()=>t(null),content:e(Ro,{openingHours:i,deliveryHours:n}),title:o("Opening Hours")})},[tr]:({params:r})=>{const{product:t={},modalRef:o,closeModal:a}=r,i=(null==t?void 0:t.sellUnitType)===no.WEIGHT||(null==t?void 0:t.sellUnitType)===no.VOLUME?0:1,n=Ir(),d=zr(),{addToOrderEnabled:l}=Wr(),{addProduct:s,updateProduct:u,removeAllProductVariants:c}=pt(),[m,_]=x(i),[p,h]=x(!1),[v,g]=x(null),[E,y]=x(null),[b,I]=x({}),{t:T}=Gt("order"),f=(({productId:e,variantId:r,selectedAddons:t})=>{var o;const{orderItems:a}=pt();return q(a)||!e?0:(null===(o=a[it(e,r,t)])||void 0===o?void 0:o.quantity)||0})({productId:null==t?void 0:t.id,variantId:v,selectedAddons:b}),D=(e=>{const{orderItems:r}=pt();return q(r)||!e?0:Object.values(r).filter(r=>r.productId===e).reduce((e,r)=>e+r.quantity,0)})(null==t?void 0:t.id),{name:A}=Y(()=>Yo(t,n),[t,n]),O=p?0===m:1===m,N=Y(()=>T(p?0===m?"Remove from order":"Update order":"Add"),[p,m]),R=yt(null==t?void 0:t.id),C=Boolean(t.videoUrl);G(()=>{Hr(void 0,void 0,void 0,function*(){_(f>0?f+1:i),h(f>0)})},[f,t,i]),G(()=>{Hr(void 0,void 0,void 0,function*(){g(null),I({})})},[t]);const P=F(e=>{y(e),setTimeout(()=>{y(null)},200)},[]),S=F(()=>{var e;return(null===(e=null==t?void 0:t.variants)||void 0===e?void 0:e.length)>0&&!v?P("variant"):m<=0?P("quantity"):(p?u({product:t,quantity:m,variantId:v,selectedAddons:b}):(s({product:t,quantity:m,variantId:v,selectedAddons:b}),ee(Xo,{name:A,quantity:m})),void(null==a||a()))},[s,a,P,p,A,t,m,b,v,u]),k=F(e=>{-1===e&&O||_(r=>Math.max(0,r+e))},[O]),L=F(({addonId:e,optionId:r,isSingle:t,isRemove:o=!1})=>{I(a=>{if(t)return Object.assign(Object.assign({},a),{[e]:r});const i=a[e]||[],n=o?i.filter(e=>e!==r):[...new Set([...i,r])];return Object.assign(Object.assign({},a),{[e]:n})})},[]);return e(Qa,{modalRef:o,product:t,language:n,currency:d,selectedVariant:v,focusedSection:E,selectedAddons:b,isDecreaseDisabled:O,quantity:m,actionTitle:N,videoUrl:C?R:void 0,addToOrderEnabled:l,onClose:a,setSelectedVariant:g,onOptionSelect:L,adjustQuantity:k,onSubmit:S,removeAllProductVariants:c,productQuantityInOrderWithAllVariants:D,onQuantityChange:e=>_(e),isInPublicMenu:!0})}},Gi=()=>{const{getCustomer:t}=pt(),o=H(null),a=hr(),i=Vr(),d=Mr()||i,l=Et(),{url:s,domain:u}=Tr(),{headerText:c,footerText:m}=(()=>{const e=Ir(),{menuDesign:r}=Er();return{headerText:Ge(null==r?void 0:r.headerText,e)||null,footerText:Ge(null==r?void 0:r.footerText,e)||null}})();return G(()=>{a||t()},[t,a]),q(l)?r("div",{className:Ve,ref:o,children:[e(qt,{}),d&&c&&e(n,{fullWidth:!0,align:"center",className:xe,children:c}),d?e(Ea,{containerRef:o}):e(zo,{}),e(Po,{size:"md",zIndex:10}),d&&m&&e(n,{fullWidth:!0,align:"center",className:Fe,children:m}),!!u&&e("a",{rel:"noopener noreferrer",target:"_blank",href:s,className:Ye,children:u})]}):e(za,{})},Ki=({data:t})=>e(gr,{value:t||{},children:e(_t,{children:r(w,{modalsMap:Hi,children:[e(Gi,{}),e(Fi,{})]})})});var Qi={};const qi=({currentGoal:r,language:t,setGoal:o})=>{const{t:a}=Gt("events",{language:t}),i=H({}),n=e=>{switch(e){case qo:return a("Scrolled to Category");case Qo:return a("Category Selected");case Zo:return a("Product Details");case Xo:return a("Product Added to Order");default:return""}},d=F(e=>{var r,t;o(e),null===(t=null===(r=null==i?void 0:i.current)||void 0===r?void 0:r.close)||void 0===t||t.call(r)},[o]);return e(z,{action:n(r),actionSize:"large",type:m.BORDERED_PRIMARY,closeRef:i,menu:e("div",{className:Qi.toolbarMenu,children:Jo.map(r=>e(j,{onClick:()=>d(r),children:n(r)},r))})})},Zi=({data:r,isLoading:t=!1,language:o,goal:a,setGoal:i})=>{const{t:n}=Gt("events",{language:o});return e(U,{title:n("Events"),toolbar:e(qi,{language:o,currentGoal:a,setGoal:i}),children:t?e(N,{}):e(W,{data:r})})};export{da as AllergenIcons,ra as Categories,Zi as Events,va as OrderFAB,Si as OrderMethods,Mi as OrderPaymentSummary,_t as OrderProvider,Ri as OrderTableUI,Qa as ProductDetailsUI,ua as ProductsGridItem,Ki as PublicMenu,Wa as Quantity,pt as useOrderContext};
2
2
  //# sourceMappingURL=index.esm.js.map