PageSourceSearch

https://www.makegoodfood.ca/_next/static/chunks/36-5ba4aa7184ad9746.js

js makegoodfood.ca collected 2026-10-03 20:40:44 UTC 9,393 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[36],{21839:(e,t)=>{function l(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function r(e,t,l){return(r=c()?Reflect.construct:function(e,t,l){var r=[null];r.push.apply(r,t);var n=new(Function.bind.apply(e,r));return l&&o(n,l.prototype),n}).apply(null,arguments)}function n(e,t,l){return t in e?Object.defineProperty(e,t,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[t]=l,e}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function o(e,t){return(o=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t="function"==typeof Map?new Map:void 0;return(s=function(e){if(null===e||-1===Function.toString.call(e).indexOf("[native code]"))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,l)}function l(){return r(e,arguments,a(this).constructor)}return l.prototype=Object.create(e.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),o(l,e)})(e)}function c(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}Object.defineProperty(t,"A",{enumerable:!0,get:function(){return u}});var i=function(e){if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");s.prototype=Object.create(e&&e.prototype,{constructor:{value:s,writable:!0,configurable:!0}}),e&&o(s,e);var t,r=(t=c(),function(){var e,r,n=a(s);return r=t?Reflect.construct(n,arguments,a(this).constructor):n.apply(this,arguments),r&&("object"==((e=r)&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e)||"function"==typeof r)?r:l(this)});function s(){var e;if(!(this instanceof s))throw TypeError("Cannot call a class as a function");return e=r.apply(this,arguments),n(l(e),"toCurrencyString",function(t){if(!s.supportedLocales.includes(t))throw Error("locale of ".concat(t," is not supported\nonly the following are supported: ").concat(s.supportedLocales.join(", ")));var l=e.valueOf().toLocaleString(t,{style:"currency",currency:"CAD"});return"fr-CA"===t?l.replace(/\sca/i,""):l}),e}return s}(s(Number));n(i,"supportedLocales",["en-CA","fr-CA"]);var u=i},90873:(e,t,l)=>{l.d(t,{b:()=>o,l:()=>s});var r=l(55729),n=l(81278),a=l(4436);let o="showDiscountDetailsModal",s=()=>{let e=(0,n.useRouter)(),t=(0,r.useCallback)(()=>{e.push({pathname:e.pathname,query:{...e.query,showDiscountDetailsModal:"true"}})},[e]);return{openDiscountDetailsModal:t,closeDiscountDetailsModal:(0,r.useCallback)(()=>{let{showDiscountDetailsModal:t,...l}=e.query;e.push({pathname:e.pathname,query:l})},[e]),redirectToMealkit:(0,r.useCallback)(()=>{e.push({pathname:a.MEALKIT_RECIPES_URL})},[e])}}},96730:(e,t,l)=>{l.d(t,{X:()=>j});var r=l(2860),n=l(56121),a=l.n(n),o=l(81278),s=l(55729),c=l(17095);let i=e=>{let{children:t,itemLength:l,testId:n,className:a,leftButtonClassName:o,rightButtonClassName:i,chevronClassName:u="w-2"}
1=e,d=(0,s.useRef)(null),[f,p]=(0,s.useState)(!1),[m,x]=(0,s.useState)(l>4);return(0,r.jsxs)("div",{className:"flex items-center justify-center relative","data-testid":n,children:[f&&(0,r.jsx)(c.ChevronButton,{chevronClassName:u,className:"z-10 absolute ".concat(o),direction:c.DIRECTION.LEFT,size:c.SIZES.UNSET,testId:n,onClick:()=>{let e=d.current;e.scrollLeft-=e.offsetWidth}}),(0,r.jsx)("div",{className:"flex flex-row mx-auto ".concat(a),"data-testid":"".concat(n,"__container"),ref:d,onScroll:()=>{let e=d.current;p(e.scrollLeft>0),x(e.scrollLeft<e.scrollWidth-e.offsetWidth)},children:t}),m&&(0,r.jsx)(c.ChevronButton,{chevronClassName:u,className:"z-10 absolute ".concat(i),direction:c.DIRECTION.RIGHT,size:c.SIZES.UNSET,testId:n,onClick:()=>{let e=d.current;e.scrollLeft+=e.offsetWidth}})]})};i.propTypes={children:a().node,itemLength:a().number,testId:a().string,className:a().string,leftButtonClassName:a().string,rightButtonClassName:a().string,chevronClassName:a().string};var u=l(54242),d=l(39379),f=l(60260),p=l(23528),m=l(30046),x=l(26486),h=l(21839);function y(e,t){var l;let r="".concat(t,"00");return(null==e||null==(l=e.endsWith)?void 0:l.call(e,r))?e.slice(0,-r.length):e}let v="multibox-discount",b=e=>{let{box:t,couponType:l,isLast:n=!1,layout:a="carousel",locale:o="en-CA",order:s}=e,c=(0,u.A)("multiBoxCarousel"),i=(0,d.useFormatCouponValue)(l,null==t?void 0:t.value),b=!!(null==t?void 0:t.isUsed),g=e=>(0,r.jsx)("span",{className:"mx-1",children:e}),j=e=>(0,r.jsx)("div",{className:"mx-1",children:e}),N=function(e,t){if(!e)return null;let l=Number(e);if(!Number.isFinite(l)||l<=0)return null;try{let e=new h.A(l);if("fr-CA"===t){var r,n,a;let t=e.toCurrencyString("fr-CA"),l=null==t||null==(a=t.replace)||null==(n=a.call(t,/\s?\$\s?/,""))||null==(r=n.trim)?void 0:r.call(n);return y(l,",")}let o=e.toCurrencyString("en-CA");return y(o,".")}catch(e){return null}}(null==t?void 0:t.maxDollarValue,o),C=N?c("maxCap",{value:N}):null;return"modalRow"===a?(0,r.jsxs)("div",{className:"flex flex-1 flex-col items-center min-w-0 pb-10","data-testid":"".concat(v,"__modal-row-").concat(s),children:[(0,r.jsx)(x.default,{className:"text-base text-gray-1000",children:c("delivery",{order:s})}),!!C&&(0,r.jsx)(x.default,{className:"text-sm text-gray-700","data-testid":"".concat(v,"__cap-").concat(s),children:C}),(0,r.jsxs)("div",{className:"relative flex flex-col items-center mt-4",children:[(0,r.jsx)(p.A,{className:(0,f.default)({"opacity-50":b}),"data-testid":"".concat(v,"__icon-").concat(s)}),(0,r.jsx)("div",{className:(0,f.default)("font-bold mt-4 px-3 py-1 rounded-full text-xs absolute top-full left-1/2 -translate-x-1/2 whitespace-nowrap",b?"bg-gray-300 text-gray-700":"bg-pink text-white"),"data-testid":"".concat(v,"__pill-").concat(s),children:c.rich("off",{value:i,space:g})})]})]},"promo-week-".concat(s)):"modalColumn"===a?(0,r.jsxs)("div",{className:"flex gap-4","data-testid":"".concat(v,"__modal-column-").concat(s),children:[(0,r.jsxs)("div",{className:"flex flex-col items-center",children:[(0,r.jsx)(p.A,{className:(0,f.default)({"opacity-50":b}),"data-testid":"".concat(v,"__icon-").concat(s)}),!n&&(0,r.jsx)("div",{className:"border-dashed mt-2 border-gray border-l h-12 w-px"})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-2 min-w-0",children:[(0,r.jsx)("div",{className:(0,f.default)("font-semibold inline-flex max-w-max px-3 py-1 rounded-full text-sm whitespace-nowrap",b?"bg-gray-200 text-gray-700":"bg-pink text-white"),"data-testid":"".concat(v,"__pill-").concat(s),children:c.rich("off",{value:i,space:g})}),(0,r.jsxs)(x.default,{className:"text-base text-gray-1000",children:[c("delivery",{order:s}),!!C&&(0,r.jsx)("span",{className:"ml-2",children:"(".concat(C,")")})]})]})]}):(0,r.jsxs)("div",{className:"flex flex-col justify-end items-center min-w-fit","data-testid":"".concat(v,"__box"),children:[(0,r.jsx)(x.default,{className:(0,f.default)("text-gray-700 text-sm font-semibold text-center whitespace-nowrap w-[65px]",{"text-red":!b}),children:b?c.rich("used",{value:i,space:j}):c.rich("off",{value:i,space:j})}),(0,r.jsx)(m.A,{className:"mt-2",color:b?"#333333":"#00838D"}),(0,r.jsxs)("div",{className:"text-center",children:[(0,r.jsx)(x.default,{className:"text-xs font-medium mt
1-1 text-teal-900",children:c("delivery",{order:s})}),!!C&&(0,r.jsx)(x.default,{className:"text-[10px] mt-1 text-gray-1000",children:C})]})]},"promo-week-".concat(s))};b.propTypes={isLast:a().bool,layout:a().string,locale:a().string,order:a().number,couponType:a().string,box:a().shape({isUsed:a().bool,maxDollarValue:a().string,value:a().oneOfType([a().number,a().string])})};let g="multibox-carousel",j=e=>{let{couponTiers:t=[],couponValues:l,couponType:n,usedCoupons:a,variant:c}=e,u=(0,o.useRouter)(),d=(null==u?void 0:u.locale)==="fr-CA"?"fr-CA":"en-CA",f=null==l?void 0:l.map((e,l)=>{var r;let n=l<(null==a?void 0:a.length);return{maxDollarValue:null==t||null==(r=t[l])?void 0:r.max_dollar_value,value:e,isUsed:n}});return"modal"===c?(0,r.jsxs)("div",{"data-testid":g,children:[(0,r.jsx)("div",{className:"hidden items-start sm:flex",children:null==f?void 0:f.map((e,t)=>{let l=t+1,a=t===(null==f?void 0:f.length)-1;return(0,r.jsxs)(s.Fragment,{children:[(0,r.jsx)(b,{box:e,couponType:n,layout:"modalRow",locale:d,order:l}),!a&&(0,r.jsx)("div",{"aria-hidden":!0,className:"border-dashed border-gray border-t flex-1 mt-[84px]"})]},l)})}),(0,r.jsx)("div",{className:"flex flex-col gap-2 sm:hidden bg-gray-50 p-5 rounded-xl",children:null==f?void 0:f.map((e,t)=>{let l=t+1,a=t===(null==f?void 0:f.length)-1;return(0,r.jsx)(b,{box:e,couponType:n,isLast:a,layout:"modalColumn",locale:d,order:l},l)})})]}):(0,r.jsx)("div",{"data-testid":g,children:(0,r.jsx)(i,{className:"space-x-4 overflow-x-hidden w-80",itemLength:null==l?void 0:l.length,leftButtonClassName:"left-4 sm:left-6",rightButtonClassName:"right-4 sm:right-6",testId:g,children:null==f?void 0:f.map((e,t)=>{let l=t+1;return(0,r.jsx)(b,{box:e,couponType:n,locale:d,order:l},l)})})})};j.propTypes={couponTiers:a().array,couponValues:a().array,couponType:a().string,usedCoupons:a().array,variant:a().string}}}]);

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.