1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2793],{10379:function(e,t,o){o.d(t,{X:function(){return r},p:function(){return l}});let l=(e,t,o)=>{let l={whatsapp:()=>e?{value:90,className:o?"bottom-[182px] sm:bottom-[90px]":"bottom-[90px]"}:{value:20,className:o?"bottom-[112px] sm:bottom-[20px]":"bottom-[20px]"},messenger:()=>t&&e?{value:160,className:o?"bottom-[252px] sm:bottom-[160px]":"bottom-[160px]"}:l.whatsapp()};return l},r={openIntercom:"mercat:open-intercom",openMessenger:"mercat:open-messenger"}},69223:function(e,t,o){var l=o(85893),r=o(54479),n=o(26982),i=o(53219),s=o(41664),a=o.n(s);o(67294),t.Z=function(){return(0,l.jsx)("div",{className:"flex w-full h-20 bg-white border-gray-300 border-b py-4",children:(0,l.jsxs)(r.zx,{as:a(),href:"/",variant:"link",size:"icon",className:"!text-base !font-bold",children:[(0,l.jsx)(i.Z,{strokeWidth:"3",className:"mr-2 h-6 w-6"}),n.ZP.t("TermsAndConditions:backtoHome")]})})}},56262:function(e,t,o){o.d(t,{Z:function(){return w}});var l=o(31955),r=o(67294),n=o(26628),i=o(54865),s=o(18672),a=o(82586),c=o(83765),d=o(43919),u=o(19034),m=o(31842),p=o(2618);let{getCurrentUser:b,setAddress:f}=c.default,{getDefaultStoreId:g,getPopUpBanners:x}=d.default,{getLastOrder:v}=u.default,{getStoreData:h,setDispatchType:y}=m.default;function w(){let e=(0,n.I0)(),t=(0,n.oR)(),o=(0,r.useRef)(!1);(0,r.useEffect)(()=>{if(o.current)return;o.current=!0;let r=async()=>{var o,r,n;let c=null===(o=t.getState().core)||void 0===o?void 0:null===(r=o.settings)||void 0===r?void 0:r.tenant;c&&(0,i.sR)(c);let u=l.Z.get(a.r.accessToken),m=l.Z.get(a.r.guestUserToken),w=l.Z.get(a.r.dispatchType)||"store_delivery",C=l.Z.get(a.r.currentSubsidiary);if(u){(0,i.mC)(u);try{await e(b(void 0,void 0,u))}catch(e){console.error("[useClientHydration] getCurrentUser failed:",e)}}else m&&(0,i.mC)(m);e(y(w));let k=async()=>{await e(g());let o=t.getState().core[d.G.DEFAULT_STORE_ID];o&&await e(h({id:o,dispatchType:w},{onSuccess:null,onFailure:null,skipNextActions:!0,skipCheckScheduledDateAvailability:!1,skipPersist:!0}))},N=async()=>{try{let o=await (0,p.t)(e,t.getState,w);return null!=o}catch(e){return console.warn("[useClientHydration] cart-store restore failed:",e),!1}},P=async()=>{let o=u||m;if(!o)return!1;try{var l,r,n;await e(v(o));let i=null===(l=t.getState().order)||void 0===l?void 0:l.lastOrder,a=null==i?void 0:i.storeId,c=null!==(n=null==i?void 0:i.dispatchMethod)&&void 0!==n?n:w;if(!a)return!1;e(y(c));let d=c!==s.CK.PICKUP&&(null==i?void 0:i.userAddress)?{placeId:i.googlePlaceId,textAddress:i.userAddress,description:i.userAddress,latitude:i.userLatitude,longitude:i.userLongitude,city:i.userCity,hasStreetNumber:!0}:null;d&&e(f(d)),await e(h({id:String(a),dispatchType:c},{onSuccess:null,onFailure:null,skipNextActions:!0,skipCheckScheduledDateAvailability:!1,skipPersist:!1}));let u=null===(r=t.getState().searchStore)||void 0===r?void 0:r.currentSubsidiary;return!!(null==u?void 0:u.id)}catch(e){return console.warn("[useClientHydration] last-order restore failed:",e),!1}};if(C)try{await e(h({id:C,dispatchType:w},{onSuccess:null,onFailure:null,skipNextActions:!0,skipCheckScheduledDateAvailability:!1,skipPersist:!0}));let o=null===(n=t.getState().searchStore)||void 0===n?void 0:n.currentSubsidiary;if(!(null==o?void 0:o.id))try{await k()}catch(e){console.error("[useClientHydration] default store fallback failed:",e)}}catch(e){console.error("[useClientHydration] getStoreData failed:",e);try{await k()}catch(e){console.error("[useClientHydration] default store fallback failed:",e)}}else{let e=await N()||await P();if(!e)try{await k()}catch(e){console.error("[useClientHydration] default store setup failed:",e)}}e(x()).catch(e=>{console.error("[useClientHydration] getPopUpBanners failed:",e)})};r()},[e])}},94943:function(e,t,o){o.r(t),o.d(t,{__N_SSG:function(){return K},default:function(){return O}});var l=o(85893),r=o(74790),n=o(67294),i=o(35111),s=o(64192),a=o(72728),c=o(31974),d=o(92852),u=o(93646),m=o(56262),p=o(34484),b=o(36465),f=o.n(b);o(98761);var g=o(67166),x=o(26628),v=o(55276),h=o(26982),y=o(97844),w=o(80286),C=o(83664);let k="data:image/svg+xml,".concat(encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300" viewB
1ox="0 0 400 300"><defs><linearGradient id="g" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#64748b"/><stop offset="100%" stop-color="#334155"/></linearGradient></defs><rect fill="url(%23g)" width="400" height="300"/></svg>'));var N=o(3543),P=o(10061),j=o(54479),S=o(41664),T=o.n(S);let A=e=>e&&e.title&&e.callToActionText&&e.callToActionHref;var H=o(67761),Z=o(17534),B=o(69223),D=o(20808),F=o.n(D),_=o(91021);let E=e=>!!e&&!!e.content;var M=o(13042),I=o(22966),U=o(27484),Y=o.n(U),L=o(60589);let R=e=>e&&e.videoSrc,G=(0,r.K)({banners:function(e){var t;let{blockComponent:o,colors:r,controlProps:n}=e,i=null!==(t=null==n?void 0:n.enableAutoplay)&&void 0!==t&&t,s=(0,g.ac)("(max-width: 640px)"),a=(0,x.v9)(e=>(function(e,t){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:v.E.BANNER;return void 0===t?[]:e.filter(e=>o===e.type&&e.category===(t?"web_responsive":"web")).filter(e=>{let[t]=e.pictures;return!!(null==t?void 0:t.url)}).map(e=>{let[t]=e.pictures;return{id:e.id,imgSrc:t.url,...e.url&&e.url.length>0?{onClick:()=>{window.location.href=e.url}}:{}}})})(e.menu.banners,s,v.E.BANNER)),c=(0,x.v9)(e=>e.menu.menuLoading);return a.length>0||c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(o,{banners:a,loading:c||void 0===s,bgColor:"tw-bg-block-banners-bg-500",sliderConfig:{all:{enableAutoplay:i,slidesToScroll:1,slidesToShow:1,transitionDuration:300}}}),r&&(0,l.jsx)(f(),{id:"2d29c48fe7812978",dynamic:[r],children:":root{".concat(r,"\n }")})]}):null},footer:N.Z,menu:H.v,header:P.h,hero:function(e){let{blockComponent:t,controlProps:o}=e;if(!A(o))return null;let{title:r,description:n,callToActionText:i,callToActionHref:s,imgSrc:a}=o,c=/^http/.test(s)?"a":T();return(0,l.jsx)(t,{className:(0,j.cn)({"bg-white":!a}),title:(0,l.jsx)("span",{className:(0,j.cn)({"text-primary ":!a},"font-title"),children:r}),description:(0,l.jsx)("span",{className:(0,j.cn)({"text-slate-500":!a},"font-subtitle"),children:n}),linkProps:{as:c,href:s,children:i,className:"!bg-primary text-white hover:!bg-primary font-body"},imgSrc:a})},categoriesGrid:function(e){var t,o;let{blockComponent:r,controlProps:n,colors:i}=e,s=(0,x.v9)(e=>(0,y.r3)(e)),a=(0,x.v9)(e=>null!==(t=e.menu.menu)&&void 0!==t?t:[]),c=(0,x.v9)(e=>e.menu.menuLoading),d=(0,x.v9)(e=>e.pages.builderPages)||[],u=(0,C.LI)(d);if(!a.length)return c?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r,{title:null==n?void 0:n.title,subtitle:null==n?void 0:n.subtitle,sectionProps:{containerClassName:"tw-bg-block-categories-grid-bg-500",titleProps:{className:"tw-text-block-categories-grid-title-text-500 font-title"},subtitleProps:{className:"tw-text-block-categories-grid-subtitle-text-500 font-subtitle"}},categories:[],loading:!0}),i&&(0,l.jsx)(f(),{id:"ced8d58c123598cd",dynamic:[i],children:":root{".concat(i,"\n }")})]}):null;let m=u?u.url:"/",p=s?a:a.filter(e=>{var t;return(null!==(o=null===(t=e.prices)||void 0===t?void 0:t.length)&&void 0!==o?o:0)>0}),b=p.map(e=>{var t,o,l,r,n,i,s,a,c;let d=null!==(s=null===(t=e.pictures)||void 0===t?void 0:t[0])&&void 0!==s?s:null===(o=e.prices)||void 0===o?void 0:null===(l=o[0])||void 0===l?void 0:null===(r=l.product)||void 0===r?void 0:null===(n=r.pictures)||void 0===n?void 0:n[0],u=null!==(c=null!==(a=null==d?void 0:null===(i=d.cropperUrl)||void 0===i?void 0:i.small)&&void 0!==a?a:null==d?void 0:d.url)&&void 0!==c?c:k;return{name:e.name,imgSrc:u,buttonProps:{as:"a",href:"".concat(m,"#").concat((0,w.lV)(e.name),"-").concat(e.id)}}});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(r,{title:n.title,subtitle:n.subtitle,sectionProps:{containerClassName:"tw-bg-block-categories-grid-bg-500",titleProps:{className:"tw-text-block-categories-grid-title-text-500 font-title"},subtitleProps:{className:"tw-text-block-categories-grid-subtitle-text-500 font-subtitle"}},categories:b,callToActionText:h.ZP.t("Commerce:seeMenu"),loading:c}),i&&(0,l.jsx)(f(),{id:"dae77db5103e92ca",dynamic:[i],children:":root{".concat(i,"\n }")})]})},videoEmbedContent:function(e){let{blockComponent:t,controlProps:o,colors:r}=e;if(!R(o))return null;let{videoSrc:n,title:i,subtitle:s,loop:a,autoplay:c,mute:d}=o;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{title:i,subtitle:s,videoSrc:n,titleProps:{className:"tw-text-block-video-title-text-500 font-title"},loop:a,autoplay:c,mute:d,containerClassName:"tw-bg-block-video-bg-500",subtitleProps:{className:"tw-text-block-video-subtitle-text-500 font-subtitle"}}),r&&(0,l.jsx)(f(),{id:"dae77db5103e92ca",dynamic:[r],children:":root{".concat(r,"\n }")})]})},storesCarousel:function(e){let{blockComponent:t,controlProps:o,colors:r}=e,{stores:n,loading:i}=(0,M.m)(I.Z.getAll);return(0,l.jsxs)("div",{children:[(0,l.jsx)(t,{stores:n.map(e=>{var t;return{store:{name:e.name,address:e.textAddress,phone:e.phone,img:e.image||void 0,businessHours:["",...(t=e.businessHours,L.DAYS.map(e=>[(0,w.kC)("".concat(h.ZP.t("Product:".concat(e)),":")),[...t].reverse().filter(t=>t.day===e).map(e=>"".concat(Y()(e.openingTime.replace(/UTC$/,""),"YYYY-MM-DD HH:mm:ss").format("HH:mm"),"-").concat(Y()(e.closingTime.replace(/UTC$/,""),"YYYY-MM-DD HH:mm:ss").format("HH:mm"))).filter((e,t,o)=>o.indexOf(e)===t).join(" / ")]).filter(e=>{let[,t]=e;return!!t}).map(e=>e.join(" ")))]},actionButtonProps:{className:"text-primary border-primary font-body",href:"".concat("https://www.google.com/maps/search/?api=1","&query=").concat(e.latitude,"%2C").concat(e.longitude),as:"a",target:"_blank"}}}),actionButtonText:h.ZP.t("Commerce:seeMap"),addressTitle:h.ZP.t("Commerce:address"),phoneTitle:h.ZP.t("Commerce:phone"),showMoreBusinessHoursText:h.ZP.t("Commerce:showMoreSchedules"),title:null==o?void 0:o.title,subtitle:null==o?void 0:o.subtitle,sectionProps:{containerClassName:"tw-bg-block-stores-carousel-bg-500",titleProps:{className:"tw-text-block-stores-carousel-title-text-500 font-title"},subtitleProps:{className:"tw-text-block-stores-carousel-subtitle-text-500 font-subtitle"}},storeCardProps:{titleProps:{className:"text-primary font-title"},contentProps:{className:"text-gray-600 font-title"}},loading:i,addressTitleClassName:"font-title",addressBodyClassName:"font-body",businessHoursClassName:"font-body",phoneTitleClassName:"font-title",phoneBodyClassName:"font-body"}),r&&(0,l.jsx)(f(),{id:"dae77db5103e92ca",dynamic:[r],children:":root{".concat(r,"\n }")})]})},richText:function(e){let{blockComponent:t,controlProps:o}=e,r=(0,_.z)();if(!E(o))return null;let{content:n}=o;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"w-full max-w-[1280px] px-6 sm:px-12 mx-auto ".concat(F().className," text-sm text-gray-600 pb-20"),children:[(0,l.jsx)(B.Z,{}),(0,l.jsx)(t,{content:n.replaceAll(/\s{2,}/g,"\n"),markdownParser:Z.HA})]}),(0,l.jsx)("div",{className:"mt-auto",children:(0,l.jsx)(j.CQ,{poweredByText:h.ZP.t("Footer:poweredByLabel"),href:r})})]})},iFrame:function(e){let{blockComponent:t,controlProps:o,colors:r}=e,{title:n,subtitle:i,iFrameCode:s}=o,a=null==s?void 0:s.replace(/(style="[^"]*")/,""),c=a?(0,g.N1)(a):{src:""};return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(t,{title:n,subtitle:i,containerClassName:"tw-bg-block-iframe-bg-500",titleProps:{className:"tw-text-block-iframe-title-text-500 font-title"},subtitleProps:{className:"tw-text-block-iframe-subtitle-text-500 font-subtitle"},iFrameProps:c}),r&&(0,l.jsx)(f(),{id:"dae77db5103e92ca",dynamic:[r],children:":root{".concat(r,"\n }")})]})}}),z=e=>
1{let{pageBuilderContent:t,pageType:o,tenant:i}=e,{utmParams:s}=(0,u.x)();return(0,m.Z)(),(0,p.w)(),(0,n.useEffect)(()=>{"landing"===o?d.Z.viewHomePage({tenant:i,utmParams:s}):"ecommerce"===o&&d.Z.viewStorePage({tenant:i,utmParams:s})},[o,i,s]),(0,l.jsx)("div",{className:"flex flex-col min-h-screen",children:(0,l.jsx)(r.o,{blocksConfig:G,pageBuilderContentBlocks:t.blocks,pageType:o})})};z.getLayout=function(e){return(0,l.jsxs)(c.p,{children:[e,(0,l.jsx)(a.w,{}),(0,l.jsx)(s.D,{}),(0,l.jsx)(i.Z,{})]})};var K=!0,O=z}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.