1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[98332,95720,65800],{941571:function(e,t,r){var n=r(124701),o=r(862079),i=r(247991),a=Math.min;e.exports=function(e,t){if((e=i(e))<1||e>9007199254740991)return[];var r=4294967295,l=a(e,4294967295);t=o(t),e-=4294967295;for(var c=n(l,t);++r<e;)t(r);return c}},617728:function(e,t,r){var n,o=function(){var e=String.fromCharCode,t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",n={};function o(e,t){if(!n[e]){n[e]={};for(var r=0;r<e.length;r++)n[e][e.charAt(r)]=r}return n[e][t]}var i={compressToBase64:function(e){if(null==e)return"";var r=i._compress(e,6,function(e){return t.charAt(e)});switch(r.length%4){default:case 0:return r;case 1:return r+"===";case 2:return r+"==";case 3:return r+"="}},decompressFromBase64:function(e){return null==e?"":""==e?null:i._decompress(e.length,32,function(r){return o(t,e.charAt(r))})},compressToUTF16:function(t){return null==t?"":i._compress(t,15,function(t){return e(t+32)})+" "},decompressFromUTF16:function(e){return null==e?"":""==e?null:i._decompress(e.length,16384,function(t){return e.charCodeAt(t)-32})},compressToUint8Array:function(e){for(var t=i.compress(e),r=new Uint8Array(2*t.length),n=0,o=t.length;n<o;n++){var a=t.charCodeAt(n);r[2*n]=a>>>8,r[2*n+1]=a%256}return r},decompressFromUint8Array:function(t){if(null==t)return i.decompress(t);for(var r=Array(t.length/2),n=0,o=r.length;n<o;n++)r[n]=256*t[2*n]+t[2*n+1];var a=[];return r.forEach(function(t){a.push(e(t))}),i.decompress(a.join(""))},compressToEncodedURIComponent:function(e){return null==e?"":i._compress(e,6,function(e){return r.charAt(e)})},decompressFromEncodedURIComponent:function(e){return null==e?"":""==e?null:(e=e.replace(/ /g,"+"),i._decompress(e.length,32,function(t){return o(r,e.charAt(t))}))},compress:function(t){return i._compress(t,16,function(t){return e(t)})},_compress:function(e,t,r){if(null==e)return"";var n,o,i,a={},l={},c="",u="",s="",d=2,p=3,f=2,h=[],m=0,b=0;for(i=0;i<e.length;i+=1)if(c=e.charAt(i),Object.prototype.hasOwnProperty.call(a,c)||(a[c]=p++,l[c]=!0),u=s+c,Object.prototype.hasOwnProperty.call(a,u))s=u;else{if(Object.prototype.hasOwnProperty.call(l,s)){if(256>s.charCodeAt(0)){for(n=0;n<f;n++)m<<=1,b==t-1?(b=0,h.push(r(m)),m=0):b++;for(n=0,o=s.charCodeAt(0);n<8;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1}else{for(n=0,o=1;n<f;n++)m=m<<1|o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o=0;for(n=0,o=s.charCodeAt(0);n<16;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete l[s]}else for(n=0,o=a[s];n<f;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1;0==--d&&(d=Math.pow(2,f),f++),a[u]=p++,s=String(c)}if(""!==s){if(Object.prototype.hasOwnProperty.call(l,s)){if(256>s.charCodeAt(0)){for(n=0;n<f;n++)m<<=1,b==t-1?(b=0,h.push(r(m)),m=0):b++;for(n=0,o=s.charCodeAt(0);n<8;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1}else{for(n=0,o=1;n<f;n++)m=m<<1|o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o=0;for(n=0,o=s.charCodeAt(0);n<16;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1}0==--d&&(d=Math.pow(2,f),f++),delete l[s]}else for(n=0,o=a[s];n<f;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1;0==--d&&(d=Math.pow(2,f),f++)}for(n=0,o=2;n<f;n++)m=m<<1|1&o,b==t-1?(b=0,h.push(r(m)),m=0):b++,o>>=1;for(;;){if(m<<=1,b==t-1){h.push(r(m));break}b++}return h.join("")},decompress:function(e){return null==e?"":""==e?null:i._decompress(e.length,32768,function(t){return e.charCodeAt(t)})},_decompress:function(t,r,n){var o,i,a,l,c,u,s,d=[],p=4,f=4,h=3,m="",b=[],g={val:n(0),position:r,index:1};for(o=0;o<3;o+=1)d[o]=o;for(a=0,c=4,u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;switch(a){case 0:for(a=0,c=256,u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;s=e(a);break;case 1:for(a=0,c=65536,u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;s=e(a);break;case 2:return""}for(d[3]=s,i=s,b.push(s);;){if(g.index>t)return"";for(a=0,c=Math.pow(2,h),u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;switch(s=a){case 0:for(a=0,c=256,u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;d[f++]=e(a),s=f-1,p--;break;case 1:for(a=0,c=65536,u=1;u!=c;)l=g.val&g.position,g.position>>=1,0==g.position&&(g.position=r,g.val=n(g.index++)),a|=(l>0?1:0)*u,u<<=1;d[f++]=e(a),s=f-1,p--;break;case 2:return b.join("")}if(0==p&&(p=Math.pow(2,h),h++),d[s])m=d[s];else{if(s!==f)return null;m=i+i.charAt(0)}
1b.push(m),d[f++]=i+m.charAt(0),p--,i=m,0==p&&(p=Math.pow(2,h),h++)}}};return i}();void 0!==(n=(function(){return o}).call(t,r,t,e))&&(e.exports=n)},98330:function(e,t,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/good-chop/plans",function(){return r(563750)}])},875418:function(e,t,r){"use strict";r.d(t,{m:function(){return g}});var n,o,i=r(827378),a=r(456552),l=r(497249),c=r(344884),u=r(671718),s=r(407108),d=r(140224),p=r(699219);function f(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function m(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var b=(n=function(e,t){var r,n,o,i,a=arguments;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(l){switch(l.label){case 0:return r=a.length>2&&void 0!==a[2]?a[2]:u.Z,n=e.systemCountry,o=e.locale,i=e.parentSpan,[4,r("/cart/items",t,{method:"POST",headers:{"Content-Type":"application/json"},query:{country:n,locale:o},data:m(h({},function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["systemCountry","locale","parentSpan"])),{country:n}),parentSpan:i,fetchSpanAttributes:{"request.backend_service":"cart-service","request.backend_action":"create-cart"}})];case 1:return[2,l.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){f(i,r,o,a,l,"next",e)}function l(e){f(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return o.apply(this,arguments)}),g=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,a.useQueryClient)(),r=(0,d.O)(),n=(0,i.useRef)(),o=(0,l.T)();return(0,s.Z)([p.Z["cart.createCart"]],function(e,t){var i;if(n.current=o.startSpan("data-access.create-cart"),n.current.setAttribute("voucherCode",t.voucher||"undefined"),null==t?void 0:null===(i=t.items)||void 0===i?void 0:i.length){var a,l,c,u,s,d=null===(a=t.items)||void 0===a?void 0:a[0],f=(null===(l=d.metadata)||void 0===l?void 0:l.presets)||[];n.current.setAttribute("sku",d.sku),n.current.setAttribute("mealsPreset",(null===(c=d.metadata)||void 0===c?void 0:c.mealsPreset)||"undefined"),n.current.setAttribute("productFamily",(null===(u=d.metadata)||void 0===u?void 0:u.productFamily)||"undefined"),n.current.setAttribute("presets",f.join("|")),n.current.setAttribute("presetsCount",f.length),n.current.setAttribute("productType",(null===(s=d.metadata)||void 0===s?void 0:s.productType)||"undefined")}return b(h({},t,r),[p.Z["cart.createCart"]],e)},m(h({},e),{onSuccess:function(r,o,i){var a=[p.Z["cart.byId"],{id:r.id}];t.setQueryData(a,r),n.current&&(n.current.setAttribute("cartId",r.id),n.current.end()),"function"==typeof e.onSuccess&&e.onSuccess(r,o,i)},onError:function(t,r,o){n.current&&(n.current.setStatus({message:t.message,code:c.Z.ERROR}),n.current.end()),"function"==typeof e.onError&&e.onError(t,r,o)}}))}},431328:function(e,t,r){"use strict";r.d(t,{u:function(){return d}});var n,o,i=r(456552),a=r(671718),l=r(407108),c=r(699219);function u(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}var s=(n=function(e,t){var r,n,o,i,l=arguments;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(c){switch(c.label){case 0:return r=l.length>2&&void 0!==l[2]?l[2]:a.Z,n=e.cartId,o=e.voucher,i=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["cartId","voucher"]),[4,r("/cart/".concat(n),t,{method:"PATCH",headers:{"Content-Type":"application/json"},data:{voucher:o},parentSpan:i.parentSpan,fetchSpanAttributes:{"request.backend_service":"cart-service","request.backend_action":"patch-cart","cart.id":n}})];case 1:return[2,c.sent().json()]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){u(i,r,o,a,l,"next",e)}function l(e){u(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return o.apply(this,arguments)}),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,i.useQueryClient)();return(0,l.Z)([c.Z["cart.updateCartVoucher"]],function(e,t){return s(t,[c.Z["cart.updateCartVoucher"]],e)},function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({onSuccess:function(e,r){t.invalidateQueries([c.Z["cart.byId"],r.cartId])}},e))}},273086:function(e,t,r){"use strict";r.d(t,{Z:function(){return P}});var n=r(687800),o=r(827378),i=r(602307),a=r(184883),l=r(768587),c=r(268481);function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var s=function(e){var t,r="desktop"===(0,c.Sj)();return e.dots?(0,n.tZ)(l.xu,{display:"flex",flexWrap:"wrap",justifyContent:"center",alignItems:"center",position:"relative",marginTop:"sm-2",marginBottom:"sm-2",children:((function(e){if(Array.isArray(e))return u(e)})(t=Array(e.dots))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return u(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return u(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map(function(t,o){return(0,n.tZ)(l.xu,{as:"button",display:"inline-block",marginLeft:"xs",marginRight:"xs",marginBottom:"xs",width:["24px","24px","15px"],height:["24px","24px","15px"],backgroundColor:o===e.active?"primary.600":"neutral.100",borderColor:"primary.600",borderStyle:"solid",borderWidth:"1px",pseudo:o!==e.active&&r?{":hover":{transform:"scale(1.4)"},":focus":{transform:"scale(1)"}}:{},cursor:"pointer",transition:"transform ease-in-out 0.2s, background-color ".concat(null==e?void 0:e.animationDelay,"ms"),borderRadius:"border-radius-circle",onClick:function(){return e.onClick(o)},"aria-label":"slider".concat(o+1)},o)})}):null},d=r(941571),p=r.n(d),f=r(32431),h=function(e){var t=e.size,r=void 0===t?24:t;return(0,n.tZ)(l.xu,{display:"flex",alignItems:"center",justifyContent:"center",children:p()(5,function(e){return e}).map(function(e){return(0,n.tZ)(l.xu,{"data-test-id":"icon-star",marginRight:"xxs",marginLeft:"xxs",pseudo:{":first-of-type":{marginLeft:"zero"}},size:r,color:"reward.500",children:(0,n.tZ)(f.Z,{width:"18px",height:"18px"})},e)})})};function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return m(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return m(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var g=function(e){var t=e.isTransition,r=e.title,i=(0,o.useRef)(null),a=(0,o.useRef)(0),c=b((0,o.useState)(0),2),u=c[0],s=c[1];return(0,o.useEffect)(function(){var e,t=null===(e=i.current)||void 0===e?void 0:e.getBoundingClientRect().width;if(t&&!(a.current>t+40)){var r=t<120?120:t+40;s(r),a.current=r}},[r]),(0,n.tZ)(l.xu,{"data-test-id":"animated-word-wrapper",width:u,borderBottomColor:"neutral.800",borderBottomWidth:"2px",borderBottomStyle:"solid",marginLeft:["zero","md-1","md-1"],marginBottom:["md-1","zero"],children:(0,n.tZ)(l.xu,{width:t?0:u,display:"flex",overflowX:"hidden",justifyContent:"center",whiteSpace:"nowrap",transition:"width ".concat(500,"ms ease-in-out"),children:(0,n.tZ)("i",{children:(0,n.tZ)(l.xv,{as:"h3",textAlign:"center",ref:i,children:r})})})})},y=function(e){var t=e.title,r=e.reviews,i=e.titleVariation,a=b((0,o.useState)(0),2),c=a[0],u=a[1],d=b((0,o.useState)(!1),2),p=d[0],f=d[1],m=b((0,o.useState)(0),2),y=m[0],v=m[1],x=b((0,o.useState)(0),2),w=x[0],Z=x[1],O=b((0,o.useState)(c),2),S=O[0],C=O[1],k=(0,o.useRef)(),P=(0,o.useRef)();(0,o.useEffect)(function(){var e=setInterval(function(){f(!0),k.current=setTimeout(function(){u(function(e){return(e+1)%r.length}),C(function(e){return(e+1)%r.length}),f(!1)},500)},8e3);return function(){return clearInterval(e)}},[r.length]);var j=r[c];return(0,o.useEffect)(function(){return function(){k.current&&clearTimeout(k.current),P.current&&clearTimeout(P.current)}},[]),(0,n.tZ)(l.xu,{"data-testid":"unified-testimonials",onTouchStart:function(e){e.targetTouches&&e.targetTouches[0]&&v(e.targetTouches[0].clientX)},onTouchMove:function(e){e.targetTouches&&e.targetTouches[0]&&Z(e.targetTouches[0].clientX)},onTouchEnd:function(){y&&w&&(y<w&&u(c+1>=r.length?0:c+1),y>w&&u(c-1<0?r.length-1:c-1)),v(0),Z(0)},children:(0,n.tZ)(l.xu,{display:"flex",justifyContent:"center",alignItems:"center",children:(0,n.BX)(l.xu,{"data-test-id":"review-container",width:"600px",maxWidth:"100%",children:[(0,n.BX)(l.xu,{display:"flex",flexDirection:["column","row","row"],alignItems:"center",justifyContent:"center",children:[(0,n.tZ)(l.xv,{"data-test-id":"testimonials-slideshow-title",as:"h2",marginTop:["md-1","md-1","md-2"],marginBottom:["xxs","md-1","md-2"],children:t}),"slideshow"===i&&(0,n.tZ)(g,{isTransition:p,title:null==j?void 0:j.title})]}),(0,n.BX)(l.xu,{"data-test-id":"review-content",opacity:p?0:1,transition:"opacity ".concat(500,"ms ease-in-out"),children:[(0,n.tZ)(l.xu,{display:"block",children:(0,n.tZ)(l.xv,{type:"body-lg-regular","data-test-id":"review-text",marginTop:["sm-2","sm-2","md-1"],marginBottom:["sm-2","sm-2","md-1"],lineHeight:"24px !important",dangerouslySetInnerHTML:{__html:j.text}})}),(0,n.tZ)(l.xv,{"data-test-id":"review-name",type:"body-md-regular",color:"neutral.700",children:"- ".concat(j.displayName)}),(0,n.tZ)(l.xu,{paddingTop:"sm-2"}),(0,n.tZ)(h,{size:18})]}),(0,n.tZ)(l.xu,{paddingTop:"md-1"}),(0,n.tZ)(s,{dots:r.length,active:S,onClick:function(e){C(e),f(!0),P.current=setTimeout(function(){f(!1),u(e)},500)},animationDelay:200})]})})})},v=r(318066),x=r(277425),w=r(822897),Z=function(e){var t=e.testimonialsLink,r=e.children;return t?(0,n.tZ)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:r}):(0,n.tZ)(n.HY,{children:r})},O=function(e){var t,r,o=e.caption,i=e.isMobile,a=e.isSlideShow,c=e.testimonialsLink,u="Google"===e.captionLogoVariation?{width:30,height:30,src:"https://cdn.hellofresh.com/es/cms/homepage/google-icon-square.png",alt:"Google"}:{width:112,height:28,src:"https://cdn.hellofresh.com/de/cms/value-messaging/trustpilot.png",alt:"Trustpilot"},s=u.width,d=u.height,p=u.src,f=u.alt;return(0,n.BX)(l.xu,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"data-test-id":"testimonialsSection",display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignItems:"center",marginRight:"sm-1",marginLeft:"sm-1"},i||a?{paddingBottom:"xs"}:{position:"relative",zIndex:1,paddingTop:["zero","sm-1"],paddingBottom:["zero","sm-1"],whiteSpace:"nowrap"}),r=r={children:[(0,n.tZ)(l.xv,{type:"body-md-regular",dangerouslySetInnerHTML:{__html:o}}),(0,n.tZ)(l.xu,{display:"inline-flex",height:"28px",verticalAlign:"bottom",children:(0,n.tZ)(Z,{testimonialsLink:c,children:(0,n.tZ)(v.ZP,{src:(0,x.Z)(p,w.b.website),alt:f,width:s,height:d,layout:"fixed"})})})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))};function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var C=function(e){var t,r=e.disclaimerTitle,i=e.disclaimerText,a=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return S(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=a[0],u=a[1];return(0,n.BX)(l.xu,{marginTop:["xs","sm-2","sm-2"],"data-test-id":"test-testimonials-disclaimer",children:[(0,n.tZ)(l.xu,{borderTopColor:"neutral.500",borderTopStyle:"solid",borderTopWidth:"1px",margin:"sm-2"}),(0,n.BX)(l.UQ.Outline,{onClick:function(){return u(!c)},buttonPosition:"left",isOpen:c,children:[(0,n.tZ)(l.UQ.Title,{children:r}),(0,n.tZ)(l.UQ.Description,{children:(0,n.tZ)(l.xu,{textAlign:"left",children:i})})]})]})},k=function(e){var t=e.titleVariation,r=e.testimonialsLink,o=e.captionLogoVariation,i=e.disclaimerAccordionEnabled,a=e.disclaimerTitle,c=e.disclaimerText,u=e.reviews,s=e.title,d=e.caption;return u.length?(0,n.BX)(l.xu,{paddingBottom:["md-1","md-3","md-3"],backgroundColor:"neutral.100",textAlign:"center",paddingTop:["md-1","md-3","md-3"],paddingLeft:"sm-2",paddingRight:"sm-2",children:[(0,n.tZ)(y,{title:s,reviews:u,titleVariation:t}),(0,n.tZ)(O,{caption:d,testimonialsLink:r,isSlideShow:!0,captionLogoVariation:o,disclaimerAccordionEnabled:i}),i&&(0,n.tZ)(C,{disclaimerTitle:a,disclaimerText:c})]}):null},P=function(e){var t=e.title,r=e.caption,o=e.titleVariation,l=e.testimonialsLink,c=e.captionLogoVariation,u=e.disclaimerAccordionEnabled,s=e.disclaimerTitle,d=e.disclaimerText,p=e.reviews;return(0,n.tZ)(i.Z,{claim:{name:"delivery-satisfaction",githubTeam:"hellofresh/squad-delivery-satisfaction-web",tribe:"customer-order-management",alliance:"engagement",jiraPrefix:"DSAT",slackChannel:"#squad-delivery-satisfaction",slackAlertsChannel:"#delivery-satisfaction-alerts",skipLabelsOnPR:!1,teamIdentifier:"delivery-satisfaction"},children:(0,n.tZ)(a.Z,{scope:"funnel-Testimonials",children:(0,n.tZ)(k,{title:t,caption:r,titleVariation:o,testimonialsLink:l,captionLogoVariation:c,disclaimerAccordionEnabled:u,disclaimerTitle:s,disclaimerText:d,reviews:p})})})}},209660:function(e,t,r){"use strict";r.d(t,{E:function(){return l}});var n=r(630820),o=r(76898),i=/^\+[1-9]\d{1,14}$/,a=function(e){var t=n.Z8.find(function(t){var r=(0,n.ow)(t);return(null==r?void 0:r.iso2.toUpperCase())===e.toUpperCase()});if(!t)return null;var r=(0,n.ow)(t);return(null==r?void 0:r.dialCode)||null},l=function(e,t){if(!e)return null;var r,n,l=e.replace(/[^\d+]/g,"");if(!l)return null;try{r=(0,o.bP)(t)}catch(e){return null}var c=a(r);if(!c)return null;if(l.startsWith("+"))n=l;else{var u=l.startsWith("0")?l.slice(1):l;n="+".concat(c).concat(u)}return!i.test(n)||n.length<10?null:n}},490697:function(e,t,r){"use strict";r.d(t,{W:function(){return a}});var n=r(827378),o=r(567921),i=r.n(o),a=function(e){var t=e.origin,r=e.appliedVoucherCode,o=(0,n.useMemo)(function(){return i().get("origin_metadata")},[]),a={};return"string"==typeof o&&(a=JSON.parse(o)),{origin:void 0===t?"website-registered":t,source:"utm_source"in a?a.utm_source:"",medium:"utm_medium"in a?a.utm_medium:"",campaign:"utm_campaign"in a?a.utm_campaign:"",content:"utm_content"in a?a.utm_content:"",term:"utm_term"in a?a.utm_term:"",jtbd:"jtbd"in a?a.jtbd:"",path:window.location.pathname,voucher:r||"",timestamp:"".concat(new Date().toISOString().slice(0,-5),"Z")}}},128072:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var n,o,i=r(827378),a=r(783244),l=r(529553),c=r(456552),u=r(671718),s=r(447178),d=r(140224),p=r(699219);function f(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}var m=(n=function(e,t){var r,n,o,i,a,l=arguments;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(c){switch(c.label){case 0:r=e.parentSpan,n=e.locale,o=e.country,i=e.body,a=l.length>2&&void 0!==l[2]?l[2]:u.Z,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a("/api/subscribe/cart-abandoned",t,{method:"POST",headers:{"Content-Type":"application/json"},query:{locale:n,country:o},data:h({},i),parentSpan:r,fetchSpanAttributes:{"request.backend_service":"api-v2","request.backend_action":"subscribe-cart-abandoned-wunderkind"}})];case 2:case 3:return c.sent(),[3,4];case 4:return[2]}})},o=function(){var e=this,t=arguments;return new Promise(function(r,o){var i=n.apply(e,t);function a(e){f(i,r,o,a,l,"next",e)}function l(e){f(i,r,o,a,l,"throw",e)}a(void 0)})},function(e,t){return o.apply(this,arguments)}),b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.Z)().fetch,r=(0,d.O)(),n=r.locale,o=r.systemCountry,i=[p.Z["cart-abandonment.subscribe"]];return(0,c.useMutation)(function(e){return m(h({locale:n,country:o},e),i,t)},h({onError:function(){}},e))},g=r(209660),y=r(581340),v=r(26730),x=r(200770),w=r(490697),Z=r(497249),O=r(617728);function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return S(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var k=function(){var e=C((0,a.Z)("hf_bxInfoStore"),2),t=e[0],r=e[1],n=C((0,i.useState)(function(){return P(t)}),2),o=n[0],l=n[1],c=(0,i.useCallback)(function(){var e=P(t);if(!t&&null!==e[0])try{var n=sessionStorage.getItem("bxInfoStore");n&&r(n)}catch(e){}return e},[t,r]);return(0,i.useEffect)(function(){var e=c();if(l(function(t){return t[0]===e[0]&&t[1]===e[1]?t:e}),null===e[0]){var t=0,r=setInterval(function(){t+=1;var e=c();l(function(t){return t[0]===e[0]&&t[1]===e[1]?t:e}),(null!==e[0]||t>=100)&&clearInterval(r)},1e3);return function(){return clearInterval(r)}}},[c]),o};function P(e){try{var t=sessionStorage.getItem("bxInfoStore");if(!t&&!e)return[null,"compressed and bxInfoStore are null"];var r=(0,O.decompressFromEncodedURIComponent)(t||e||"");if(!r)return[null,"decompressed is null"];var n=JSON.parse(r);if(!n.phone)return[null,"parsed phone is null"];return[n.phone,"parsed successfully"]}catch(e){return[null,e.message]}}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function A(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function I(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return j(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return j(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var T=[v.Z.US,v.Z.FJ,v.Z.CG,v.Z.ER],B=function(){var e=E((0,a.Z)("hf_bxInfoStore"),1)[0],t=E(k(),2),r=t[0],n=t[1],o=(0,x.Z)(),c=r?(0,g.E)(r,o):null,u=T.includes(o),s=!!c&&!!u,d=!!l.o.getItem("bxInfoStore"),p=(0,i.useMemo)(function(){return{"wunderkind.has_phone_number":!!r,"wunderkind.has_formatted_phone_number":!!c,"wunderkind.source":"bxInfoStore","cart_abandonment.origin":"cart-abandonment-wunderkind",phone_parsing_status:n,trace_version:2,systemCountry:o,isEnabled:s,hasLocalStorageInfoStore:!!e,hasSessionStorageInfoStore:d}},[c,o,s,n,e,d,r]),f=E((0,a.Z)("hf_wknd_cart_abandonment",{expiresIn:86400}),2),h=f[0],m=f[1],v=(0,w.W)({origin:"cart-abandonment-wunderkind"}),O=(0,y.t)(),S=(0,Z.T)(),C=b().mutate,P=s&&!!c&&!h,j=(0,i.useCallback)(function(){if(u){var e=S.startSpan("wunderkind-cart-abandonment.request");e.setAttributes(I(A({},p),{"cart_abandonment.trigger":"not_enabled"})),e.end()}},[p,S,u]),B=(0,i.useCallback)(function(e){if(!h&&c){var t=S.startSpan("wunderkind-cart-abandonment.request");t.setAttributes(I(A({},p),{"cart_abandonment.trigger":e})),m("true"),C({body:{phone_number:c,origin_metadata:v}}),t.end()}},[h,c,S,m,C,v,p]);(0,i.useEffect)(function(){if(!P){j();return}var e=function(e){e&&e.includes("checkout-success")||B("route_change")};return O.events.on("routeChangeStart",e),function(){O.events.off("routeChangeStart",e)}},[O,P,B,j]),(0,i.useEffect)(function(){if(!P){j();return}var e=function(){return B("beforeunload")};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}},[P,B,j]),(0,i.useEffect)(function(){if(!P){j();return}var e=setTimeout(function(){B("idle")},12e4);return function(){return clearTimeout(e)}},[P,B,j])}},563750:function(e,t,r){"use strict";r.r(t),r.d(t,{__N_SSP:function(){return t6},default:function(){return t8}});var n=r(687800),o=r(827378),i=r(184883),a=r(231140),l=r(333758),c=r(481989),u=r(768587),s=r(128072),d=r(431394),p=r(890799),f=r(479922),h=function(){var e=(0,f.Z)();(0,o.useEffect)(function(){e.track("gc-plans-page")},[])},m=r(340332),b=r(145493),g=r(183148),y=function(e){var t,r=e.product,n=e.format,o=((null===(t=r.totalPrice)||void 0===t?void 0:t.nanos)||0)>0?2:0,i=(0,g.A)({baseAmountDetail:r.price,finalAmountDetail:r.totalPrice,discountAmountDetail:r.discount,format:n,discountedPriceDecimals:o}),a=(0,g.A)({baseAmountDetail:r.shippingFee,discountAmountDetail:r.shippingDiscount,format:n,decimals:2});return{productId:r.id,boxPrice:i,shippingFee:a}},v=function(e){var t=e.productIds,r=e.voucherCode,n=(0,m.nB)(),o=(0,b.u)({voucherCode:r,productIds:t,enabled:t.length>0}),i=o.data;return o.isLoading?{isLoading:!0}:{isLoading:!1,productPrices:null==i?void 0:i.products.map(function(e){return y({product:e,format:n})})}},x=r(718583),w=r(80108),Z=r(340674),O=r(108693),S=r(995965);function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var k=function(e,t,r){var n;return r&&t?[t].concat(function(e){if(Array.isArray(e))return C(e)}(n=e.filter(function(e){return!(0,w.Ul)(e.handle)}))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return C(e,void 0)}}(n)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):e},P=r(225053),j=function(){var e=(0,Z.L)(),t=e.products,r=e.trialBoxProduct,n=e.isLoading,o=(0,S.c)(),i=(0,P.k)().code,a=(0,O.D)(i);if(n)return{products:[],isTrialBoxFlow:!1,isLoading:!0};var l=o.trialBox.enabled&&a,c=l&&!!r;return{products:k(t,r,l),isTrialBoxFlow:c,isLoading:!1}},A=r(581340),I=r(966622),E=r(407792),T=r(783244);function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var _=function(){var e,t,r,n=(0,A.t)(),o=j().isTrialBoxFlow,i=(0,I.py)({runUsingStatsig:!0}),a=i.decide,l=i.isReady,c=(0,E.O)(),u=(function(e){if(Array.isArray(e))return e}(e=(0,T.Z)("hf_selected-sku"))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,1)||function(e,t){if(e){if("string"==typeof e)return B(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return B(e,1)}}(e,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];if(!l)return{isReady:!1};if(o)return{isControl:!0,isVariation:!1,productFamily:null,isReady:!0};var s=a({experimentKey:"mr_value_test_v2",experimentationUserId:c.id,experimentationUserAttributes:(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},c.attributes),r=r={isTrialBoxCustomer:o,isPlansPage:/\/good-chop(-|\/)plans/.test(n.route),selectedSku:u||null,isFirstBoxPage:n.route.includes("first-box")},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t)}),d=s.variationKey;return{isControl:"control"===d||!d,isVariation:"variation-1"===d||"variation-2"===d,productFamily:s.parameters.productFamily,isReady:!0}};function D(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var L=function(){var e=j(),t=e.products,r=e.isTrialBoxFlow,n=e.isLoading,i=(0,S.c)().defaultFamily,a=_(),l=a.isReady&&a.isVariation,c=a.isReady?a.productFamily:null;if((0,o.useEffect)(function(){if(l){var e=x.ZP.getItem("persist-selection-order");if(e&&"[]"!==e){var r=x.ZP.getItem("hf_selected-sku"),n=r?JSON.parse(r):null;t.some(function(e){return e.handle===n&&e.family===c})||x.ZP.setItem("persist-selection-order",JSON.stringify([]))}}},[l,c,t]),n||!a.isReady)return{products:[],isTrialBoxFlow:!1,isLoading:!0};var u=r?i:a.productFamily||i,s=(0,w.yU)(t,u),d=0===s.length?(0,w.yU)(t,i):s,p=t.find(function(e){return(0,w.MJ)(e.handle)});return{products:r&&p?[p].concat(function(e){if(Array.isArray(e))return D(e)}(d)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(d)||function(e,t){if(e){if("string"==typeof e)return D(e,void 0);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return D(e,void 0)}}(d)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()):d,isTrialBoxFlow:r,isLoading:!1}},V=r(411481),R=r(164528);function F(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var z={TrialBox:"trialBox",MediumBox:"mediumBox",LargeBox:"largeBox",XlBox:"xlBox"},M=function(e,t){return e.startsWith("trial-box")?z.TrialBox:t<=6?z.MediumBox:t<=12?z.LargeBox:z.XlBox},X=function(e){var t,r=(0,R.ZP)("good-chop-plans").translateRaw,n=M(e.family,e.meals);return(F(t={},z.TrialBox,{title:r("productFamilies.trialBox.title"),description:r("productFamilies.trialBox.description"),image:r("productFamilies.trialBox.image"),isBestValue:!1}),F(t,z.MediumBox,{title:r("productFamilies.mediumBox.title"),description:r("productFamilies.mediumBox.variation.xl.description"),image:r("productFamilies.mediumBox.image"),isBestValue:!1}),F(t,z.LargeBox,{title:r("productFamilies.largeBox.title"),description:r("productFamilies.largeBox.variation.xl.description"),image:r("productFamilies.largeBox.image"),isBestValue:!1}),F(t,z.XlBox,{title:r("productFamilies.xlBox.title"),description:r("productFamilies.xlBox.description"),image:r("productFamilies.xlBox.image"),isBestValue:!0}),t)[n]};function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var U=function(){var e,t,r,n,i=(0,P.k)().code,a=(function(e){if(Array.isArray(e))return e}(e=(0,V.QN)())||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return N(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return N(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[1],l=L(),c=l.products,u=l.isTrialBoxFlow,s=l.isLoading,d=v({productIds:c.map(function(e){return e.handle}),voucherCode:i}),p=d.productPrices,f=d.isLoading,h=c.map(function(e){return{product:e,prices:null==p?void 0:p.find(function(t){return t.productId===e.handle})}}).sort(function(e,t){return e.product.meals-t.product.meals}),m=null!==(t=h.find(function(e){var t=e.product;return M(t.family,t.meals)===z.LargeBox}))&&void 0!==t?t:h[0],b=null!==(r=h.find(function(e){var t=e.product;return M(t.family,t.meals)===z.TrialBox}))&&void 0!==r?r:h[0],g=u?b:m,y=null!==(n=null==g?void 0:g.product.handle)&&void 0!==n?n:"";return(0,o.useEffect)(function(){y&&a(y)},[y,a]),{planCards:h,isTrialBoxFlow:u,isLoading:s||f}},W=r(567921),q=r.n(W),G=r(875418),H=r(722911);function Y(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}var $=function(){var e,t,r=(0,G.m)(),n=r.mutateAsync,o=r.isLoading,i=r.isError,a=r.error;return{createCart:(e=function(e,t){var r;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(o){switch(o.label){case 0:return[4,n(e,t)];case 1:return[2,(r=o.sent())?(0,H.B)(r):void 0]}})},t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){Y(i,n,o,a,l,"next",e)}function l(e){Y(i,n,o,a,l,"throw",e)}a(void 0)})},function(e,r){return t.apply(this,arguments)}),isLoading:o,isError:i,error:a}},K=r(538049),Q=r(431328);function J(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}var ee=function(){var e,t,r=(0,Q.u)(),n=r.mutateAsync,o=r.isLoading,i=r.isError,a=r.error;return{updateVoucher:(e=function(e){var t;return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(r){switch(r.label){case 0:return[4,n(e)];case 1:return[2,(t=r.sent())?(0,H.B)(t):void 0]}})},t=function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){J(i,n,o,a,l,"next",e)}function l(e){J(i,n,o,a,l,"throw",e)}a(void 0)})},function(e){return t.apply(this,arguments)}),isLoading:o,isError:i,error:a}};function et(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function er(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e){et(i,n,o,a,l,"next",e)}function l(e){et(i,n,o,a,l,"throw",e)}a(void 0)})}}function en(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var eo=function(){var e,t,r,n=$(),i=n.createCart,a=n.isLoading,l=n.error,c=(0,K.S)(),u=c.patchCart,s=c.isLoading,d=c.error,p=ee(),f=p.updateVoucher,h=p.isLoading,m=p.error;return{createCart:(0,o.useCallback)((e=er(function(e,t){return en(this,function(r){switch(r.label){case 0:return[4,i(e,t)];case 1:return[2,r.sent()]}})}),function(t,r){return e.apply(this,arguments)}),[i]),patchCart:(0,o.useCallback)((t=er(function(e,t){return en(this,function(r){switch(r.label){case 0:return[4,u(e,t)];case 1:return[2,r.sent()]}})}),function(e,r){return t.apply(this,arguments)}),[u]),updateVoucher:(0,o.useCallback)((r=er(function(e){return en(this,function(t){switch(t.label){case 0:return[4,f(e)];case 1:return[2,t.sent()]}})}),function(e){return r.apply(this,arguments)}),[f]),isCreating:a,isPatching:s,isUpdatingVoucher:h,createError:l,patchError:d,updateVoucherError:m}},ei="hf_cart_id";function ea(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var el=function(){try{return q().get(ei)}catch(e){return}},ec=function(e){try{q().set(ei,e,{expires:30})}catch(e){}},eu=function(e){var t,r=e.planCards,n=(function(e){if(Array.isArray(e))return e}(t=(0,V.QN)())||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),1!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(t,1)||function(e,t){if(e){if("string"==typeof e)return ea(e,1);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ea(e,1)}}(t,1)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],i=(0,P.k)().code,a=eo(),l=a.createCart,c=a.patchCart,u=function(e){var t;return null===(t=r.find(function(t){return t.product.handle===e}))||void 0===t?void 0:t.product.family};(0,o.useEffect)(function(){if(n){var e=el(),t={sku:n,quantity:1,metadata:{mealsPreset:"",timestamp:Date.now(),productFamily:u(n)}};e?c({cartId:e,voucher:i||null,items:[t]}):l({voucher:i||null,items:[t]},{onSuccess:function(e){e&&ec(e.id)}})}},[n])},es=r(95719),ed=function(e,t){var r=(0,o.useRef)(!1);(0,o.useEffect)(function(){e||r.current||((0,es.B1)("goodchop-plan-selector-render",{detail:t}),r.current=!0)},[e])},ep=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw;return(0,n.BX)(u.xu,{textAlign:"center",marginTop:["global.sm-2","global.none"],marginBottom:["global.sm-2","global.md-2"],children:[(0,n.tZ)(u.xv,{as:"h1",children:e("plansPage.title")}),(0,n.tZ)(u.xv,{as:"p",type:"body-md-regular",children:e("plansPage.description.noFreeShipping")})]})},ef=r(553911),eh=r(318066),em=r(277425),eb=function(e){var t=e.price,r=(0,R.ZP)("good-chop-plans").translateRaw;return t.isFree?(0,n.tZ)(u.xv,{as:"h4",color:"global.goodchop-pepper.500","data-test-id":"plan-discount-free-label",children:r("plansPage.trialBox.freeLabel")}):t.hasDiscount?(0,n.BX)(u.xu,{display:"flex",alignItems:"center",gap:"xs",children:[(0,n.tZ)(u.xv,{as:"h4",type:"body-lg-bold",color:"global.gray.500",textDecoration:"line-through","aria-label":"Original price: ".concat(t.fullPrice),"data-test-id":"plan-price",children:t.fullPrice}),(0,n.tZ)(u.xv,{as:"h4",type:"body-lg-bold",color:"global.goodchop-pepper.500","aria-label":"Price after discount: ".concat(t.discountedPrice),"data-test-id":"plan-discount-price",children:t.discountedPrice})]}):(0,n.tZ)(u.xv,{as:"h4",type:"body-lg-bold",color:"global.goodchop-navy.600","data-test-id":"plan-price",children:t.fullPrice})},eg=r(749427),ey=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw,t=e("upselling.moreValue.badge.text"),r=e("upselling.moreValue.tooltip.text");return(0,n.BX)(u.xu,{"aria-label":t,display:"flex",alignItems:"center",gap:"global.xxs",position:"absolute",left:"0",top:"0",backgroundColor:"global.blue.800",paddingX:"global.xxs","data-test-id":"more-value-badge",role:"status","aria-live":"polite",children:[(0,n.tZ)(u.u,{"data-test-id":"more-value-badge-tooltip",content:r,asChild:!0,hasOnClickBehavior:!0,trigger:(0,n.tZ)(u.xu,{display:"inline-flex",color:"global.white",cursor:"pointer",children:(0,n.tZ)(eg.Z,{titleId:"more-value-badge-tooltip-icon","data-test-id":"more-value-badge-tooltip-icon"})}),textProps:{color:"global.white",type:"body-xs-regular"},variant:"dark",position:"top",placement:"start"}),(0,n.tZ)(u.xv,{color:"global.white",type:"body-xs-bold","aria-hidden":"true",children:t})]})},ev=function(e){var t=e.data,r=(0,R.ZP)("good-chop-plans").translateRaw,o=U().isTrialBoxFlow,i=t.product,a=t.prices,l=M(i.family,i.meals);if(!o)return null;if(l===z.TrialBox){var c,s=r("upselling.trialBox.badge.text",{shippingAmount:null!==(c=null==a?void 0:a.shippingFee.discountedPrice)&&void 0!==c?c:""});return(0,n.tZ)(u.xu,{position:"absolute",left:"0",top:"0",backgroundColor:"global.goodchop-gold.400",paddingX:"global.xxs","data-test-id":"plan-value-badge",role:"status","aria-live":"polite",children:(0,n.tZ)(u.xv,{type:["body-xs-bold","body-sm-bold"],color:"global.goodchop-gold.800",children:s})})}return l===z.MediumBox?(0,n.tZ)(u.xu,{position:"absolute",left:"0",top:"0",backgroundColor:"global.blue.800",paddingX:"global.xxs","data-test-id":"plan-value-badge",role:"status","aria-live":"polite",children:(0,n.tZ)(u.xv,{type:["body-xs-bold","body-sm-bold"],color:"global.white",children:r("upselling.mostPopular.badge.text")||"Most Popular"})}):null},ex=function(e){var t=e.data,r=e.isSelected,o=e.onClick,i=t.product,a=t.prices,l=X(i),c=l.title,s=l.description,d=l.image,p=l.isBestValue,f=(null!=a?a:{}).boxPrice,h=f?f.isFree?"".concat(c,": Free"):f.hasDiscount?"".concat(c,": ").concat(f.discountedPrice,", originally ").concat(f.fullPrice):"".concat(c,": ").concat(f.fullPrice):c;return(0,n.BX)(u.xu,{position:"relative",children:[(0,n.tZ)(u.Zb.Selectable,{role:"radio",width:"100%",variant:"outlined",textAlign:"left",overflow:"hidden",display:"flex",flexDirection:"column",onClick:function(){return o(i.handle)},selected:r,"aria-label":h,"aria-checked":r,"data-testid":"plan-option-card","data-
1product-handle":i.handle,children:(0,n.BX)(u.xu,{display:"flex",gap:"sm-2",width:"100%",children:[!!d&&(0,n.tZ)(u.xu,{my:"auto",flexShrink:0,children:(0,n.tZ)(eh.ZP,{alt:"",src:(0,em.Z)(d),width:80,height:80,style:{objectFit:"contain"},"data-testid":"plan-option-image"})}),(0,n.BX)(u.xu,{display:"flex",flexDirection:"column",gap:"xxs",width:"100%",children:[(0,n.BX)(u.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.tZ)(u.xv,{type:["body-md-bold","body-md-bold","body-lg-bold"],color:"global.goodchop-navy.600",children:c}),f&&(0,n.tZ)(eb,{price:f})]}),(0,n.tZ)(ef.Z,{hasMarkdown:!0,copy:s.replace(/ - /g,"\n- "),markdownOptions:{overrides:{ul:{props:{style:{margin:0,display:"contents",listStyleType:"none"}}},li:{component:u.xv,props:{as:"li",type:["body-sm-regular","body-sm-regular","body-md-regular"],color:"global.gray.800"}}}}})]})]})}),p&&(0,n.tZ)(ey,{}),(0,n.tZ)(ev,{data:t})]})},ew=r(887824);function eZ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eO=function(e){var t;return(eZ(t={},z.TrialBox,"Trial"),eZ(t,z.MediumBox,"Medium"),eZ(t,z.LargeBox,"Large"),eZ(t,z.XlBox,"XL"),t)[e]},eS=function(e,t){var r=(0,ew.Z)().push,n=(0,m.SX)(),i=(0,P.k)().code,a=(0,o.useRef)(!1),l=(0,o.useCallback)(function(e){var t,o=e.product,a=e.prices,l=eO(M(o.family,o.meals)),c=(null==a?void 0:null===(t=a.boxPrice)||void 0===t?void 0:t.fullPrice)?parseFloat(a.boxPrice.fullPrice.replace(/[^0-9.]/g,"")):0,u="".concat(o.family," - ").concat(o.meals," meals per week for ").concat(o.size," people");r({event:"gaEventTrigger_EE",gaEventCategory:"funnel",gaEventAction:"detailProductChange",gaEventLabel:"".concat(o.handle," | ").concat(l," | ").concat(i?"with-coupon":"no-coupon"),gaEventNonInteraction:!1,ecommerce:{click:{actionField:{currencyCode:n},products:[{name:u,id:o.handle,price:String(c),brand:"Good Chop",quantity:1,category:o.family,variant:l,coupon:i||void 0}]}}})},[r,n,i]);return(0,o.useEffect)(function(){if(!a.current&&t&&0!==e.length){var r=e.find(function(e){return e.product.handle===t});r&&r.prices&&(l(r),a.current=!0)}},[t,e,l]),{trackProductChange:l}},eC=function(e){var t=e.planCards,r=e.selectedSku,i=e.onSelectSku,a=eS(t,r).trackProductChange,l=(0,o.useCallback)(function(e){var r=t.find(function(t){return t.product.handle===e});r&&a(r),i(e)},[t,a,i]);return(0,n.tZ)(u.xu,{role:"radiogroup","aria-label":"Choose your plan",display:"flex",flexDirection:"column",gap:"sm-2",children:t.map(function(e){return(0,n.tZ)(ex,{data:e,isSelected:r===e.product.handle,onClick:l},e.product.handle)})})};function ek(e,t,r,n,o,i,a){try{var l=e[i](a),c=l.value}catch(e){r(e);return}l.done?t(c):Promise.resolve(c).then(n,o)}function eP(){return(eP=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}var ej=(0,u.q)(u.xu),eA=function(e){var t,r,o=eP({},function(e){if(null==e)throw TypeError("Cannot destructure "+e);return e}(e)),i=(0,u.q_)({from:{opacity:.33},to:(t=function(e){return function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}(this,function(t){switch(t.label){case 0:return[4,e({opacity:.8})];case 1:return t.sent(),[4,e({opacity:.33})];case 2:return t.sent(),[2]}})},r=function(){var e=this,r=arguments;return new Promise(function(n,o){var i=t.apply(e,r);function a(e){ek(i,n,o,a,l,"next",e)}function l(e){ek(i,n,o,a,l,"throw",e)}a(void 0)})},function(e){return r.apply(this,arguments)}),config:{duration:1e3,easing:u.Gk.linear},loop:!0});return(0,n.tZ)(ej,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({backgroundColor:"global.gray.300",borderRadius:"border-radius-sm",style:i},o))},eI=function(){return(0,n.BX)(u.xu,{borderWidth:1,borderColor:"global.gray.100",borderRadius:"border-radius-md",paddingY:"sm-2",paddingX:"sm-2",backgroundColor:"global.white",display:"flex",gap:"sm-2",width:"100%",children:[(0,n.tZ)(eA,{width:"80px",height:"80px",flexShrink:0}),(0,n.BX)(u.xu,{display:"flex",flexDirection:"column",gap:"xxs",width:"100%",py:"sm-2",children:[(0,n.BX)(u.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",children:[(0,n.tZ)(eA,{width:"40%",height:"20px"}),(0,n.tZ)(eA,{width:"20%",height:"20px"})]}),(0,n.tZ)(eA,{width:"85%",height:"16px"}),(0,n.tZ)(eA,{width:"65%",height:"16px"}),(0,n.tZ)(eA,{width:"45%",height:"14px"})]})]})},eE=function(){return(0,n.tZ)(u.xu,{display:"flex",flexDirection:"column",gap:"sm-2",role:"status","aria-label":"Loading plans","aria-busy":"true","aria-live":"polite",children:[1,2,3].map(function(e){return(0,n.tZ)(u.xu,{"aria-hidden":"true",children:(0,n.tZ)(eI,{})},e)})})},eT=r(465800),eB=r(883579),e_=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw,t=(0,eB.V)(),r=t.hasWelcomeKit;if(t.isLoading||!r)return null;var o=e("welcomeKit.banner.title");return(0,n.tZ)(u.xu,{mb:"global.sm-1","data-testid":"welcome-kit-banner",children:(0,n.tZ)(u.gb,{icon:(0,n.tZ)(eT.default,{title:"Gift"}),children:(0,n.tZ)(u.xv,{as:"p",color:"global.black",type:"body-md-regular",children:(0,n.tZ)(ef.Z,{hasMarkdown:!0,copy:o})})})})},eD=function(){return(0,n.tZ)(i.Z,{scope:"good-chop.plans-welcome-kit-banner",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(e_,{})})},eL=function(e){var t=e.children;return(0,n.tZ)(u.xu,{mx:"auto",maxWidth:[null,"880px","880px"],px:["global.sm-2","global.xl-2","global.lg-1"],pt:["global.none","global.md-2","global.md-2"],pb:["global.sm-2","global.md-2","global.md-2"],children:t})},eV=function(){return(0,n.tZ)(u.xu,{display:["none","block"],"aria-hidden":"true",role:"presentation",children:(0,n.tZ)(u.iz,{my:"zero"})})},eR=r(976555),eF=function(){var e=(0,ew.Z)().push;return{trackCadenceSelect:(0,o.useCallback)(function(t){e({event:"gaEventTrigger",gaEventCategory:"changeDeliveryFrequency",gaEventAction:"select",gaEventLabel:"".concat((0,eR.Z)()," | ").concat(t.toString()," | null"),event_name:"ManageWeek_changeDeliveryFrequencySelect",hf_week:(0,eR.Z)(),selectedFrequency:t.toString(),previousFrequency:"null"})},[e])}},ez=[4,6,8];function eM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function eX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return eM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return eM(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var eN=function(e){var t=e.cadenceOptions,r=e.defaultCadence,i=(0,R.ZP)("good-chop-plans").translateRaw,a=eF().trackCadenceSelect,l=eX((0,T.Z)("hf_funnel_cadence"),2),c=l[0],s=l[1],d=eX((0,o.useState)(r),2),p=d[0],f=d[1];(0,o.useEffect)(function(){var e=parseInt(c);f(isNaN(e)?r:e)},[c,r]);var h=function(e){a(e),f(e),s(e.toString())};return(0,n.BX)(u.xu,{as:"section","aria-label":"Delivery frequency","data-testid":"plans-cadence",display:"flex",flexDirection:"column",alignItems:"center",mt:"md-2",children:[(0,n.tZ)(u.xv,{as:"h2",mb:"sm-2",children:i("plansPage.cadences.title")}),(0,n.tZ)(u.xu,{display:"flex",gap:"sm-2",role:"radiogroup","aria-label":"Delivery frequency options",children:(0,n.tZ)(u.dm,{size:"lg",children:t.map(function(e){return(0,n.BX)(u.dm.Button,{onClick:function(){return h(e)},active:e===p,children:[e," weeks"]},e)})})}),(0,n.tZ)(u.xv,{mt:"global.xs",textAlign:"center",children:i("plansPage.cadences.pauseDisclaimer")})]})},eU=function(e){return(0,n.tZ)(i.Z,{scope:"good-chop.plans-cadence",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(eN,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({},e))})},eW=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw,t=e("plansPage.socialProof.community.text"),r=e("plansPage.socialProof.community.image");return(0,n.tZ)(u.xu,{"data-testid":"plans-social-proof-banner",mb:"global.md-2",mt:"global.md-2",display:"flex",justifyContent:"center",role:"status",children:(0,n.BX)(u.xu,{display:"flex",justifyContent:"center",height:"56px",width:"311px",borderRadius:"border-radius-pill",backgroundColor:"global.goodchop-navy.100",children:[(0,n.tZ)(u.xu,{flexShrink:0,transform:"translateY(-3px)",children:(0,n.tZ)(eh.ZP,{alt:"Social proof banner",width:151,height:64,src:(0,em.Z)(r),priority:!0,style:{maxWidth:"100%",height:"auto",aspectRatio:"".concat(151," / ").concat(64)}})}),(0,n.tZ)(u.xu,{pl:"sm-1",py:"xs",children:(0,n.tZ)(u.xv,{as:"span",color:"global.goodchop-navy.800",type:"body-sm-regular",children:(0,n.tZ)(ef.Z,{hasMarkdown:!0,copy:t})})})]})})},eq=function(){return(0,n.tZ)(i.Z,{scope:"good-chop.social-proof-banner",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(eW,{})})},eG=r(57648);function eH(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var eY=function(e){var t;return(eH(t={},z.TrialBox,"Trial"),eH(t,z.MediumBox,"Medium"),eH(t,z.LargeBox,"Large"),eH(t,z.XlBox,"XL"),t)[e]},e$=function(){var e=(0,ew.Z)().push,t=(0,m.SX)(),r=U().planCards,n=(0,P.k)().code;return{trackSelectPlan:(0,o.useCallback)(function(o){var i,a,l=o.sku,c=r.find(function(e){return e.product.handle===l});if(c){var u=c.product,s=c.prices,d=M(u.family,u.meals),p=eY(d),f=(i=u.meals,d===z.TrialBox?"".concat(i," cuts trial box"):"".concat(i," cuts box")),h=(null==s?void 0:null===(a=s.boxPrice)||void 0===a?void 0:a.fullPrice)?parseFloat(s.boxPrice.fullPrice.replace(/[^0-9.]/g,"")):0;e({event:"gaEventTrigger_EE",gaEventNonInteraction:!1,gaEventCategory:"funnel",gaEventAction:"go to cart | selectCuts",box_type:"plan",checkout_type:"plan",gaEventLabel:l,ecommerce:{currencyCode:t,add:{actionField:{step:1},products:[{name:f,id:u.handle,price:String(h),brand:"Good Chop",quantity:1,category:u.family,variant:p,coupon:n||void 0}]}}})}},[e,t,r,n])}},eK=r(497249),eQ=r(344884),eJ=function(){var e=(0,eK.T)();return{traceSelectPlan:function(t){var r=t.sku,n=t.destination;e.startSpan("good-chop.plans.select-plan").setAttributes({"plan.sku":r,"plan.destination":n}).setStatus({code:eQ.Z.OK}).end()}}},e0=function(e){return e.isReady?e.isVariation1?"variation-1":e.isVariation2?"variation-2":"control":"control"},e1=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableDecisionEvent,r=(0,I.py)({runUsingStatsig:!0}),n=r.decide,o=r.isReady,i=(0,E.O)();if(!o)return{isReady:!1};var a=n({experimentKey:"mr_zipcode_capture_pre_checkout",experimentationUserId:i.id,experimentationUserAttributes:i.attributes,options:{disableDecisionEvent:void 0!==t&&t}}).variationKey;return{isReady:!0,isControl:"control"===a||!a,isVariation1:"variation-1"===a,isVariation2:"variation-2"===a}},e2=r(285087),e9="hf_zipcode-drawer-interacted",e4=function(){var e=(0,e2.l)(),t=e.getItem,r=e.setItem;return{hasInteractedWithZipcodeDrawer:!!t(e9),markZipcodeDrawerInteracted:(0,o.useCallback)(function(){r(e9,!0)},[r])}};function e5(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var e7=function(e){var t,r=e1({disableDecisionEvent:!0}),n=e4(),i=n.hasInteractedWithZipcodeDrawer,a=n.markZipcodeDrawerInteracted,l=function(e){if(Array.isArray(e))return e}(t=(0,o.useState)(!1))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(t,2)||function(e,t){if(e){if("string"==typeof e)return e5(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);
1if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e5(e,2)}}(t,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],u=l[1];return{isDrawerOpen:c,handleCtaClick:function(){if(r.isReady&&r.isVariation2&&!i){u(!0);return}e()},handleDrawerClose:function(){a(),u(!1),e()},variant:e0(r)}},e3=r(747012);function e6(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function e8(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return e6(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return e6(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var te=/^\d{5}$/,tt=function(e){var t=e.isFormatValid,r=e.hasRequestedCheck,n=e.isSuccess,o=e.isCovered;return t&&r?n?o?"valid":"unavailable":"checking":"empty"},tr=function(){var e=(0,S.c)().defaultFamily,t=e8((0,o.useState)(""),2),r=t[0],n=t[1],i=e8((0,o.useState)(!1),2),a=i[0],l=i[1],c=e8((0,T.Z)("hf_prefill_zipcode"),2)[1],u=5===r.length&&te.test(r),s=(0,e3.Sj)({postcode:r,family:e},{enabled:u&&a,suspense:!1}),d=s.data,p=s.isSuccess,f=!!(null==d?void 0:d.items)&&d.items.length>0;(0,o.useEffect)(function(){a&&p&&f&&c(r)},[a,p,f,r]),(0,o.useEffect)(function(){if(u){var e=setTimeout(function(){l(!0)},500);return function(){return clearTimeout(e)}}},[u,r]);var h=(0,o.useCallback)(function(e){l(!1),n(e.replace(/\D/g,""))},[]),m=tt({isFormatValid:u,hasRequestedCheck:a,isSuccess:p,isCovered:f});return{postcode:r,setPostcode:h,isFormatValid:u,status:m}},tn=r(527157);function to(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function ti(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}var ta=function(e){return e.slice(0,3)},tl=function(){return{event:"gaEventTrigger",gaEventCategory:"funnel"}},tc={Open:"GoodChopZipcodeDrawer_Open",Check:"GoodChopZipcodeDrawer_Check",Skip:"GoodChopZipcodeDrawer_Skip",Dismiss:"GoodChopZipcodeDrawer_Dismiss",Continue:"GoodChopZipcodeDrawer_Continue",Valid:"GoodChopZipcodeDrawer_Valid",Invalid:"GoodChopZipcodeDrawer_Invalid"},tu=function(e){var t=e.drawerTrigger,r=e.variant,n=(0,tn.Z)(),i=(0,ew.Z)(),a=i.push,l=i.pushAfterPageTransition,c=(0,I.py)({runUsingStatsig:!0}),u=c.track,s=c.isReady,d=(0,E.O)(),p=d.id,f=d.attributes,h="variation-2"===r?l:a,m=(0,o.useCallback)(function(e,t){s&&u({eventName:tc[e],experimentationUserId:p,experimentationUserAttributes:f,eventTags:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({brand:n,tribe:"New Ventures",screen:"Plans",EventCategory:"ZipcodeDrawer",EventAction:e},void 0!==t?{checkAttempts:t}:{})})},[u,s,p,f,n]),b=(0,o.useCallback)(function(){a(ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeDrawerOpen",gaEventAction:"zipcodeDrawerOpen",gaEventLabel:t,gaEventNonInteraction:!0})),m("Open")},[a,t,m]),g=(0,o.useCallback)(function(e,t){var r;a((r={zipcode:t,checkAttempt:e},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeCoverageCheck",gaEventAction:"zipcodeDrawerCoverageCheck",gaEventLabel:"".concat(ta(r.zipcode)," | ").concat(r.checkAttempt),gaEventNonInteraction:!1,ZIP_first_3_digits:ta(r.zipcode),check_attempt:r.checkAttempt}))),m("Check",e)},[a,m]),y=(0,o.useCallback)(function(e,t){var r;a((r={zipcode:t,checkAttempt:e},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeEntered",gaEventAction:"zipcodeDrawerZipcodeAvailable",gaEventLabel:"".concat(ta(r.zipcode)," | ").concat(r.checkAttempt),gaEventNonInteraction:!0,ZIP_first_3_digits:ta(r.zipcode),check_attempt:r.checkAttempt}))),m("Valid",e)},[a,m]),v=(0,o.useCallback)(function(e,t){var r;a((r={zipcode:t,checkAttempt:e},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeError",gaEventAction:"zipcodeDrawerZipcodeUnavailable",gaEventLabel:"".concat(ta(r.zipcode)," | ").concat(r.checkAttempt),gaEventNonInteraction:!0,ZIP_first_3_digits:ta(r.zipcode),check_attempt:r.checkAttempt}))),m("Invalid",e)},[a,m]),x=(0,o.useCallback)(function(e){var t,r=e.checkAttempts;h((t={zipcode:e.zipcode,checkAttempt:r},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeCTAClick",gaEventAction:"zipcodeDrawerContinue",gaEventLabel:"".concat(ta(t.zipcode)," | ").concat(t.checkAttempt),gaEventNonInteraction:!1,ZIP_first_3_digits:ta(t.zipcode),check_attempt:t.checkAttempt}))),m("Continue",r)},[h,m]);return{trackOpen:b,trackCheck:g,trackSkip:(0,o.useCallback)(function(e){var t;h((t={checkAttempt:e},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeSkip",gaEventAction:"zipcodeDrawerSkip",gaEventLabel:"".concat(t.checkAttempt),gaEventNonInteraction:!1,check_attempt:t.checkAttempt}))),m("Skip",e)},[h,m]),trackDismiss:(0,o.useCallback)(function(e){var t;h((t={checkAttempt:e},ti(to({},tl()),{event_name:"SelectPlan_ZIPCodeDismiss",gaEventAction:"zipcodeDrawerDismiss",gaEventLabel:"".concat(t.checkAttempt),gaEventNonInteraction:!1,check_attempt:t.checkAttempt}))),m("Dismiss",e)},[h,m]),trackContinue:x,trackValid:y,trackInvalid:v}},ts=r(395720),td=r(242200),tp=function(e,t){if("unavailable"===e)return t("good-chop-plans.plansPage.zipcodeDrawer.error.unavailable")},tf=function(e){var t=e.status,r=e.value,o=e.onChange,i=(0,R.ZP)("good-chop-plans").translateRaw,a="unavailable"===t,l="valid"===t,c=tp(t,i);return(0,n.tZ)(u.NI,{labelText:i("good-chop-plans.plansPage.zipcodeDrawer.inputLabel"),children:(0,n.tZ)(u.NI.TextInput,{inputMode:"numeric",maxLength:5,value:r,onChange:function(e){return o(e.target.value)},error:a,errorText:c,success:l,validationIcon:a?(0,n.tZ)(ts.default,{"data-test-id":"zipcode-input-field-error-icon"}):l?(0,n.tZ)(td.default,{"data-test-id":"zipcode-input-field-valid-icon"}):void 0})})},th=function(e){var t=e.isOpen,r=e.onClose,i=e.drawerTrigger,a=e.variant,l=(0,R.ZP)("good-chop-plans").translateRaw,c=o.useRef(null),s=tr(),d=s.postcode,p=s.setPostcode,f=s.status,h=tu({drawerTrigger:i,variant:a}),m=h.trackOpen,b=h.trackCheck,g=h.trackSkip,y=h.trackDismiss,v=h.trackContinue,x=h.trackValid,w=h.trackInvalid;o.useEffect(function(){t&&m()},[t]);var Z=o.useRef(0),O="empty"!==f;o.useEffect(function(){O&&(Z.current+=1,b(Z.current,d))},[O]),o.useEffect(function(){"valid"===f?x(Z.current,d):"unavailable"===f&&w(Z.current,d)},[f]);var S=function(){y(Z.current),r()};return(0,n.tZ)(u.dy.Container,{placement:"bottom",isOpen:t,onDismiss:S,onClose:S,isModal:!0,isTouchMoveEnabled:!0,width:"100%",returnFocusRef:c,positionAbsoluteCloseButton:!0,"aria-labelledby":"zipcode-drawer-title",children:(0,n.tZ)(u.xu,{display:"flex",textAlign:"center",width:"100%",justifyContent:"space-around",children:(0,n.BX)(u.xu,{width:["100%","340px","480px"],textAlign:"center",display:"flex",flexDirection:"column",gap:"global.md-1",children:[(0,n.BX)(u.xu,{children:[(0,n.tZ)(u.xv,{as:"h1",i
1d:"zipcode-drawer-title",type:["display-md","display-lg","display-lg"],textTransform:"uppercase",children:l("good-chop-plans.plansPage.zipcodeDrawer.title")}),(0,n.tZ)(u.xv,{as:"p",children:l("good-chop-plans.plansPage.zipcodeDrawer.subtitle")})]}),(0,n.BX)(u.xu,{children:[(0,n.tZ)(u.xu,{mb:"global.sm-1",children:(0,n.tZ)(tf,{status:f,value:d,onChange:p})}),(0,n.tZ)(u.zx.Primary,{onClick:function(){v({checkAttempts:Z.current,zipcode:d}),r()},disabled:"valid"!==f,loading:"checking"===f,children:l("good-chop-plans.plansPage.zipcodeDrawer.cta")}),(0,n.tZ)(u.xu,{as:"button",onClick:function(){g(Z.current),r()},background:"transparent",borderWidth:"global.none",cursor:"pointer",mt:"global.sm-1",children:(0,n.tZ)(u.xv,{type:"body-md-bold",color:"alias.brand.foreground.default",children:l("good-chop-plans.plansPage.zipcodeDrawer.skip")})})]})]})})})},tm=function(e){var t=e.sku,r=(0,R.ZP)("good-chop-plans").translateRaw,o=(0,A.t)(),i=e$().trackSelectPlan,a=eJ().traceSelectPlan,l=e7(function(){i({sku:t}),a({sku:t,destination:"/first-box/".concat(t)}),o.push("/first-box/".concat(t))}),c=l.isDrawerOpen,s=l.handleCtaClick,d=l.handleDrawerClose,p=l.variant;return(0,n.BX)(u.xu,{textAlign:"center",pt:["global.xs","global.none"],pb:["global.sm-2","global.md-2"],px:["global.sm-2","global.none"],position:["fixed","static"],bottom:["0","auto"],left:["0","auto"],zIndex:[10,"auto"],backgroundColor:["global.white","transparent"],width:["100%","auto"],children:[(0,n.tZ)(u.xu,{display:"flex",width:"100%",justifyContent:"center",children:(0,n.tZ)(u.xu,{width:["100%","200px"],children:(0,n.tZ)(u.zx.Primary,{onClick:function(){var e=x.ZP.getItem(eG.w);(e?JSON.parse(e):null)!==t&&x.ZP.removeItem("persist-selection-order"),x.ZP.setItem(eG.y,JSON.stringify(t)),s()},"aria-describedby":"select-plan-note","data-test-sku":t,"data-test-id":"select-plan-button",children:r("plansPage.selectCuts.cta")})})}),(0,n.tZ)(u.xu,{marginTop:"global.xs",children:(0,n.tZ)(u.xv,{id:"select-plan-note",type:"body-sm-bold",children:r("plansPage.selectPlan.note")})}),(0,n.tZ)(th,{isOpen:c,onClose:d,drawerTrigger:"plan_selection",variant:p})]})},tb=function(e){var t=e.isLoading,r=e.planCards,o=e.selectedSku,i=e.onSelectSku;return ed(t,{"page-version":"goodchop-new-plans"}),(0,n.BX)(n.HY,{children:[(0,n.BX)(eL,{children:[(0,n.BX)(u.xu,{display:"flex",flexDirection:"column",children:[(0,n.tZ)(ep,{}),(0,n.tZ)(eD,{}),t?(0,n.tZ)(eE,{}):(0,n.tZ)(eC,{planCards:r,selectedSku:o,onSelectSku:i})]}),(0,n.tZ)(eU,{cadenceOptions:ez,defaultCadence:4}),(0,n.tZ)(eq,{})]}),!t&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(u.xu,{mb:"global.md-2",children:(0,n.tZ)(eV,{})}),(0,n.tZ)(tm,{sku:o})]})]})},tg=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw;return(0,n.BX)(u.xu,{textAlign:"center",marginTop:["global.sm-2","global.none"],marginBottom:["global.sm-2","global.md-2"],children:[(0,n.tZ)(u.xv,{as:"h1",children:e("plansPage.title.trialBox")}),(0,n.tZ)(u.xv,{type:"body-md-regular",children:e("plansPage.description.noFreeShipping")})]})},ty=function(e){var t=e.planCards,r=e.selectedSku,i=e.onSelectSku,a=eS(t,r).trackProductChange,l=(0,o.useCallback)(function(e){var r=t.find(function(t){return t.product.handle===e});r&&a(r),i(e)},[t,a,i]);return(0,n.tZ)(u.xu,{role:"radiogroup","aria-label":"Choose your plan",display:"flex",flexDirection:"column",gap:"sm-2",children:t.map(function(e){return(0,n.tZ)(ex,{data:e,isSelected:r===e.product.handle,onClick:l},e.product.handle)})})},tv=r(268481),tx=function(){return(0,n.BX)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true",role:"presentation",style:{verticalAlign:"middle",boxSizing:"content-box"},children:[(0,n.tZ)("path",{d:"M27.9999 32.9903C35.1743 28.8482 37.6324 19.6743 33.4903 12.5L35.2223 11.5C39.9167 19.6309 37.1309 30.028 28.9999 34.7224C22.5978 38.4186 14.7929 37.4773 9.4709 32.9425L9.57275 34.4624L7.57723 34.5961L7.30977 30.6051C7.27284 30.054 7.68962 29.5774 8.24067 29.5404L12.2317 29.273L12.3654 31.2685L10.7196 31.3788C15.4165 35.4161 22.3329 36.2622 27.9999 32.9903Z",fill:"currentColor"}),(0,n.tZ)("path",{d:"M7.50953 27.5C3.36739 20.3256 5.82552 11.1517 12.9999 7.00957C18.6669 3.73775 25.5833 4.5838 30.2801 8.6211L28.6343 8.73139L28.7681 10.7269L32.7591 10.4595C33.3102 10.4225 33.7269 9.94589 33.69 9.39484L33.4226 5.40379L31.427 5.53752L31.5289 7.05741C26.2069 2.52262 18.402 1.58129 11.9999 5.27752C3.86893 9.97194 1.08306 20.369 5.77748 28.5L7.50953 27.5Z",fill:"currentColor"}),(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.4999 9.99995C14.9476 9.99995 14.4999 10.4477 14.4999 11V13H10.4999V27H30.4999V13H26.4999V11C26.4999 10.4477 26.0522 9.99995 25.4999 9.99995C24.9476 9.99995 24.4999 10.4477 24.4999 11V13H16.4999V11C16.4999 10.4477 16.0522 9.99995 15.4999 9.99995ZM14.4999 17C15.0522 17 15.4999 16.5522 15.4999 16C15.4999 15.4477 15.0522 15 14.4999 15C13.9476 15 13.4999 15.4477 13.4999 16C13.4999 16.5522 13.9476 17 14.4999 17ZM14.4999 21C15.0522 21 15.4999 20.5522 15.4999 20C15.4999 19.4477 15.0522 19 14.4999 19C13.9476 19 13.4999 19.4477 13.4999 20C13.4999 20.5522 13.9476 21 14.4999 21ZM15.4999 24C15.4999 24.5522 15.0522 25 14.4999 25C13.9476 25 13.4999 24.5522 13.4999 24C13.4999 23.4477 13.9476 23 14.4999 23C15.0522 23 15.4999 23.4477 15.4999 24ZM20.4999 17C21.0522 17 21.4999 16.5522 21.4999 16C21.4999 15.4477 21.0522 15 20.4999 15C19.9476 15 19.4999 15.4477 19.4999 16C19.4999 16.5522 19.9476 17 20.4999 17ZM21.4999 20C21.4999 20.5522 21.0522 21 20.4999 21C19.9476 21 19.4999 20.5522 19.4999 20C19.4999 19.4477 19.9476 19 20.4999 19C21.0522 19 21.4999 19.4477 21.4999 20ZM20.4999 25C21.0522 25 21.4999 24.5522 21.4999 24C21.4999 23.4477 21.0522 23 20.4999 23C19.9476 23 19.4999 23.4477 19.4999 24C19.4999 24.5522 19.9476 25 20.4999 25ZM27.4999 16C27.4999 16.5522 27.0522 17 26.4999 17C25.9476 17 25.4999 16.5522 25.4999 16C25.4999 15.4477 25.9476 15 26.4999 15C27.0522 15 27.4999 15.4477 27.4999 16ZM26.4999 21C27.0522 21 27.4999 20.5522 27.4999 20C27.4999 19.4477 27.0522 19 26.4999 19C25.9476 19 25.4999 19.4477 25.4999 20C25.4999 20.5522 25.9476 21 26.4999 21ZM27.4999 24C27.4999 24.5522 27.0522 25 26.4999 25C25.9476 25 25.4999 24.5522 25.4999 24C25.4999 23.4477 25.9476 23 26.4999 23C27.0522 23 27.4999 23.4477 27.4999 24Z",fill:"currentColor"})]})},tw=function(e){var t,r,o=e.selectedSku,i=(0,R.ZP)("good-chop-plans").translateRaw,a="mobile"===(0,tv.Sj)(),l=i((0,w.MJ)(o)?"plansPage.description.tri
1alBox.bottomNote":"plansPage.description.bottomNote");return(0,n.BX)(u.xu,(t=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({role:"note","aria-label":"Delivery schedule information",paddingY:"global.md-2",display:"flex",justifyContent:"center",alignItems:["flex-start","center"]},a&&{borderTopStyle:"solid",borderTopWidth:"1px",borderTopColor:"global.gray.300"}),r=r={children:[(0,n.tZ)(u.xu,{marginRight:"global.xxs",flexShrink:0,color:"primary.600",children:(0,n.tZ)(tx,{})}),(0,n.tZ)(u.xv,{"data-test-id":"plans-bottom-note",type:"body-md-regular",children:(0,n.tZ)(ef.Z,{hasMarkdown:!0,copy:l})})]},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(r)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}),t))},tZ=function(e){var t=e.isLoading,r=e.planCards,o=e.selectedSku,i=e.onSelectSku;return ed(t,{"page-version":"goodchop-new-plans","mark-value":"trial-box"}),(0,n.BX)(n.HY,{children:[(0,n.tZ)(eL,{children:(0,n.BX)(u.xu,{display:"flex",flexDirection:"column",children:[(0,n.tZ)(tg,{}),t?(0,n.tZ)(eE,{}):(0,n.tZ)(ty,{planCards:r,selectedSku:o,onSelectSku:i})]})}),(0,n.tZ)(eq,{}),!t&&(0,n.BX)(n.HY,{children:[(0,n.tZ)(tm,{sku:o}),(0,n.tZ)(eV,{}),(0,n.tZ)(u.xu,{px:["global.sm-2","global.none"],children:(0,n.tZ)(tw,{selectedSku:o})})]})]})};function tO(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tS=function(){var e,t=U(),r=t.planCards,o=t.isTrialBoxFlow,i=t.isLoading,a=function(e){if(Array.isArray(e))return e}(e=(0,V.QN)())||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return tO(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tO(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),l=a[0],c=a[1];return eu({planCards:r}),(0,n.tZ)(u.xu,{backgroundColor:"global.white",width:"100%",boxShadow:"shadow-sm",children:o?(0,n.tZ)(tZ,{isLoading:i,planCards:r,selectedSku:l,onSelectSku:c}):(0,n.tZ)(tb,{isLoading:i,planCards:r,selectedSku:l,onSelectSku:c})})},tC=r(757493),tk=r(574207),tP=r(261133),tj=function(e,t){(0,o.useEffect)(function(){(e||t)&&window.scrollTo({top:0,behavior:"smooth"})},[e,t])},tA=function(e,t){(0,o.useEffect)(function(){e&&t(e)},[e,t])},tI=function(e){switch(e){case"fixed":return"$";case"percent":return"%";default:return""}},tE=function(e,t){var r,n,o,i=e.voucherType,a=e.voucherValue,l=e.affectedBoxes,c=e.voucherCode;return{event:"gaEventTrigger",gaEventNonInteraction:!1,event_name:"Voucher_ApplyVoucherNotificationValid",voucher:c,voucher_apply:t,gaEventCategory:"applyVoucher",gaEventAction:"notificationImpression | valid",gaEventLabel:(r=void 0===i?"":i,n=void 0===a?0:a,o=void 0===l?0:l,r&&n&&o&&c?"".concat(c," | ").concat(t," | ").concat(tI(r)).concat(n," | ").concat(o):"")}},tT=function(e){var t=e.voucherCode,r=e.voucherFetchType,n=void 0===r?"applied":r;return{event:"gaEventTrigger",gaEventNonInteraction:!1,event_name:"Voucher_ApplyVoucherNotificationError",voucher:t,voucher_apply:n,gaEventCategory:"applyVoucher",gaEventAction:"notificationImpression | invalid",gaEventLabel:"".concat(t," | ").concat(n," | undefined | undefined")}},tB=function(e){var t=e.isVoucherApplied,r=e.isVoucherInvalid,n=e.voucherCode,i=e.submissionId,a=e.voucherFetchType,l=e.voucherType,c=e.voucherValue,u=e.affectedBoxes,s=(0,ew.Z)().push,d=(0,o.useRef)(0),p=(0,o.useCallback)(function(){s(tE({voucherCode:n,voucherType:l,voucherValue:c,affectedBoxes:u},a))},[s,n,l,c,u,a]),f=(0,o.useCallback)(function(){s(tT({voucherCode:n,voucherFetchType:a}))},[s,n,a]);(0,o.useEffect)(function(){!(i<=0)&&d.current!==i&&(t?(p(),d.current=i):r&&(f(),d.current=i))},[t,r,i,p,f])},t_=function(e,t,r){var n=(0,P.k)().code,i=(0,o.useRef)(!1);(0,o.useEffect)(function(){!i.current&&n&&(i.current=!0,r("default"),e(n),t(function(e){return e+1}))},[n,e,t,r])},tD=function(e){var t=e.voucherCode,r=e.submissionId,n=e.isVoucherSubmissionPending,i=e.isVoucherApplied,a=e.isVoucherInvalid,l=e.resolvedMessage,c=(0,eK.T)(),u=(0,o.useRef)(0);(0,o.useEffect)(function(){var e=r>0&&t.length>0,o=i||a;if(e&&!n&&o&&u.current!==r){u.current=r;var s=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}({"voucher.code":t,"voucher.result":i?"valid":"invalid"},l?{"voucher.message":l}:{});c.startSpan("good-chop.plans.voucher-apply").setAttributes(s).setStatus({code:i?eQ.Z.OK:eQ.Z.ERROR}).end()}},[r,n,i,a,t,l,c])},tL="funnel.plans.promotionCode",tV=function(e){var t=e.value,r=e.placeholder,o=e.isVoucherApplied,i=e.isVoucherInvalid,a=e.onChange;return(0,n.tZ)(u.xu,{flexGrow:1.5,mb:["sm-1","zero"],children:(0,n.tZ)(u.NI,{labelText:r,children:(0,n.tZ)(u.NI.TextInput,{"data-test-id":"promo-input",value:t,id:"promoCode",onChange:a,success:o,error:i,"data-success":String(o),"data-error":String(i),trailingIcon:o?(0,n.tZ)(td.default,{}):null})})})},tR=function(e){var t=e.onClick,r=(0,R.ZP)(tL).translate;return(0,n.tZ)(u.xu,{marginLeft:[null,"xs","xs"],flexGrow:.5,children:(0,n.tZ)(u.xu,{borderBottomLeftRadius:["border-radius-sm","border-radius-zero"],borderTopLeftRadius:["border-radius-sm","border-radius-zero"],backgroundColor:"inherit",height:"50px",children:(0,n.tZ)(u.zx.Secondary,{type:"submit",onClick:t,"data-test-id":"promo-button",children:r("".concat(tL,".button.text"))})})})},tF=function(e){var t=e.promoCodeInput,r=e.isVoucherApplied,o=e.isVoucherInvalid,i=e.onChange,a=e.onButtonClick,l=(0,(0,R.ZP)(tL).translateRaw)("".concat(tL,".placeholder"));return(0,n.tZ)(u.xu,{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",width:"100%",mt:["md-2","sm-2"],as:"form",id:"promotion-code",children:(0,n.BX)(u.xu,{width:"100%",px:["sm-2","zero"],display:"flex",justifyContent:"center",flexDirection:["column","row"],children:[(0,n.tZ)(tV,{value:t,placeholder:l,isVoucherApplied:r,isVoucherInvalid:o,onChange:i}),(0,n.tZ)(tR,{onClick:a})]})})},tz=function(e){var t=e.isVoucherApplied,r=e.isVoucherInvalid,o=(0,R.ZP)(tL),i=o.translate,a=o.translateRaw;return(0,n.BX)(u.xu,{width:"100%",maxWidth:["100%","500px"],display:"flex",mb:"sm-2",role:"status","aria-live":"polite","aria-atomic":"true",children:[t&&(0,n.tZ)(u.xu,{"data-test-id":"valid-promo-message",display:"flex",marginTop:"xxs",marginLeft:["sm-2",null,null],justifyContent:"flex-start",alignItems:"center",children:(0,n.tZ)(u.xv,{as:"span",type:"body-sm-regular",color:"success.600",children:a("".concat(tL,".add.message.ok"))})}),r&&(0,n.tZ)(u.xu,{"data-test-id":"invalid-promo-message",display:"flex",marginTop:"xxs",marginLeft:["sm-2",null,null],justifyContent:"flex-start",alignItems:"center",children:(0,n.tZ)(u.xv,{as:"span",type:"body-sm-regular",color:"error.500",children:i("".concat(tL,".add.message.failure"))})})]})};function tM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tX(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return tM(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return tM(e,t)}}(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var tN=function(){var e,t=tX((0,V.QN)(),1)[0],r=tX((0,o.useState)(""),2),i=r[0],a=r[1],l=tX((0,o.useState)(0),2),c=l[0],s=l[1],d=tX((0,o.useState)(""),2),p=d[0],f=d[1],h=tX((0,o.useState)("applied"),2),m=h[0],b=h[1],g=(0,tC.n)(i),y=c>0&&g.length>0,v=(0,tk.d)({voucherCode:i,submissionId:c}).isApplying,x=(0,tP.i)(i,t),w=x.voucherData,Z=x.successInput,O=y&&!v,S=O&&"ready"===w.status,C=O&&"invalid"===w.status,k=S?g:null,P="ready"===w.status?w.voucherInfo:void 0,j=null==P?void 0:P.discount_type,A=null==P?void 0:P.discount_value,I=null==P?void 0:null===(e=P.discount_settings)||void 0===e?void 0:e.box_count,E=function(){var e=(0,tC.n)(p);e&&(b("applied"),a(e),s(function(e){return e+1}))};return t_(a,s,b),tA(k,f),tj(S,C),tD({voucherCode:g,submissionId:c,isVoucherSubmissionPending:v,isVoucherApplied:S,isVoucherInvalid:C,resolvedMessage:S?null==Z?void 0:Z.message:void 0}),tB({isVoucherApplied:S,isVoucherInvalid:C,voucherCode:g,submissionId:c,voucherFetchType:m,voucherType:j,voucherValue:A,affectedBoxes:I}),(0,n.BX)(u.Zb.Static,{variant:"elevated",px:["sm-2","md-1"],mx:["sm-2","auto"],mt:["global.md-2"],maxWidth:["100%",462,752],children:[(0,n.tZ)(tF,{promoCodeInput:p,isVoucherApplied:S,isVoucherInvalid:C,onChange:function(e){f((e.target.value||"").toUpperCase())},onButtonClick:function(e){e.preventDefault(),E()}}),(0,n.tZ)(tz,{isVoucherApplied:S,isVoucherInvalid:C})]})},tU=function(){return(0,n.tZ)(i.Z,{scope:"good-chop.promotion-code-container",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(tN,{})})},tW=[{titleKey:"plansPage.usps.origin.title",textKey:"plansPage.usps.origin.text",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/selling-points-plans-page/All+american.svg"},{titleKey:"plansPage.usps.sourcing.title",textKey:"plansPage.usps.sourcing.text",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/selling-points-plans-page/Certified.svg"},{titleKey:"plansPage.usps.natural.title",textKey:"plansPage.usps.natural.text",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/selling-points-plans-page/No+additives.svg"}],tq=function(){var e=(0,R.ZP)("good-chop-plans").translateRaw,t=e("plansPage.usps.title");return(0,n.tZ)(i.Z,{scope:"plans-monthly-subscription-usps",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(u.xu,{as:"section","aria-label":"Why Good Chop?","data-testid":"plans-selling-points",children:(0,n.BX)(u.Zb.Static,{variant:"elevated",py:"global.md-2",px:["global.sm-2","global.md-1","global.xl-1"],mx:["global.sm-2","auto"],mb:["global.md-2","global.lg-2"],maxWidth:["100%",462,752],mt:"global.md-2",children:[(0,n.tZ)(u.xv,{as:"h2",textAlign:"center",children:t}),(0,n.tZ)(u.xu,{as:"ul","aria-label":"Selling points",listStyle:"none",padding:"zero",my:"zero",children:tW.map(function(t){return(0,n.BX)(u.xu,{as:"li",mt:"global.md-2",display:"flex",children:[(0,n.tZ)(u.xu,{flexShrink:0,children:(0,n.tZ)(eh.ZP,{alt:"",src:(0,em.Z)(t.image),width:48,height:48,style:{maxWidth:"100%",height:"auto",aspectRatio:"48 / 48"}})}),(0,n.BX)(u.xu,{ml:"global.sm-2",children:[(0,n.tZ)(u.xv,{as:"p",color:"global.gray.800",type:"body-md-bold",children:e(t.titleKey)}),(0,n.tZ)(u.xv,{as:"p",color:"global.gray.600",children:e(t.textKey)})]})]},t.titleKey)})})]})})})}
1,tG=[{name:"Food&Wine",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/social-proof/img_Food&[email protected]"},{name:"BuzzFeed",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/social-proof/[email protected]"},{name:"New York Post",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/social-proof/[email protected]"},{name:"Food Network",image:"https://hf-website-live.s3.eu-west-1.amazonaws.com/mr/social-proof/[email protected]"}],tH=function(){var e=(0,(0,R.ZP)("good-chop-plans").translateRaw)("socialProof.title");return(0,n.BX)(u.xu,{as:"section","aria-label":"Social proof - as featured in media outlets","data-testid":"plans-social-proof",backgroundColor:"global.goodchop-navy.800",paddingX:["global.sm-2","global.md-2"],paddingY:"global.md-2",mt:"global.md-2",children:[(0,n.tZ)(u.xv,{as:"h3",color:"global.gray.100",textAlign:"center",children:e}),(0,n.tZ)(u.xu,{as:"ul",display:"flex",flexWrap:"wrap",maxWidth:["100%","100%",515],justifyContent:"center",my:"zero",mx:"auto",padding:"zero",listStyle:"none","aria-label":"Featured in media outlets",children:tG.map(function(e){return(0,n.tZ)(u.xu,{as:"li",children:(0,n.tZ)(eh.ZP,{src:(0,em.Z)(e.image),alt:e.name,crop:"fit",width:103,height:80,style:{maxWidth:"100%",height:"auto",aspectRatio:"103 / 80"}})},e.name)})})]})},tY=function(){return(0,n.tZ)(i.Z,{scope:"plans-monthly-subscription-social-proof",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(tH,{})})},t$=r(273086),tK="funnel.plans.testimonials",tQ="funnel.plans.testimonials",tJ=function(e){for(var t=(0,R.ZP)(tK).translateRaw,r=[],n=1;n<=e;n++){var o=t("".concat(tQ,".review-").concat(n,".displayName")),i=t("".concat(tQ,".review-").concat(n,".text")),a=t("".concat(tQ,".review-").concat(n,".title"));i&&r.push({displayName:o,text:i,title:a})}return r},t0=function(){var e=(0,R.ZP)(tK).translateRaw,t=tJ(4);return(0,n.tZ)(i.Z,{scope:"good-chop.plans-testimonials",fallback:(0,n.tZ)(n.HY,{}),children:(0,n.tZ)(t$.Z,{title:e("".concat(tQ,".title")),caption:e("".concat(tQ,".caption")),titleVariation:"slideshow",testimonialsLink:"https://www.trustpilot.com/review/goodchop.com",captionLogoVariation:"Trustpilot",disclaimerAccordionEnabled:!1,disclaimerTitle:e("".concat(tQ,".disclaimer.title")),disclaimerText:e("".concat(tQ,".disclaimer.text")),reviews:t})})};function t1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var t2=function(){var e,t=e1(),r=e4(),i=r.hasInteractedWithZipcodeDrawer,a=r.markZipcodeDrawerInteracted,l=function(e){if(Array.isArray(e))return e}(e=(0,o.useState)(!1))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(e);!(a=(r=o.next()).done)&&(i.push(r.value),2!==i.length);a=!0);}catch(e){l=!0,n=e}finally{try{a||null==o.return||o.return()}finally{if(l)throw n}}return i}}(e,2)||function(e,t){if(e){if("string"==typeof e)return t1(e,2);var r=Object.prototype.toString.call(e).slice(8,-1);if("Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t1(e,2)}}(e,2)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),c=l[0],u=l[1],s=t.isReady&&t.isVariation1&&!c&&!i;return(0,n.tZ)(th,{isOpen:s,onClose:function(){a(),u(!0)},drawerTrigger:"auto_open",variant:e0(t)})};function t9(){return(0,d.I)(),(0,p.hp)(),h(),(0,s.Z)(),(0,n.BX)(u.xu,{backgroundColor:"global.brown.100",children:[(0,n.tZ)(tS,{}),(0,n.tZ)(tU,{}),(0,n.tZ)(tq,{}),(0,n.tZ)(t0,{}),(0,n.tZ)(tY,{}),(0,n.tZ)(t2,{})]})}var t4=r(31748),t5=r(953142);function t7(e){var t=e.children,r=(0,A.t)(),i=(0,t5.y)(),a=i.shouldUseCheckoutStatusEndpoint,l=i.checkoutRedirect,c=i.isCheckoutStatusFetched,u=a&&c?"reactivation"===l?"/settings/plan/reactivate":"home"===l?"/my-deliveries":null:null;return(0,o.useEffect)(function(){u&&r.replace(u)},[u,r]),(0,n.tZ)(n.HY,{children:t})}var t3=function(){return(0,n.BX)(i.Z,{scope:"goodchop-plans-page",fallback:(0,n.tZ)(l.default,{}),children:[(0,n.tZ)(t4.Z,{}),(0,n.tZ)(a.Z,{children:(0,n.tZ)(t7,{children:(0,n.tZ)(t9,{})})})]})};t3.customLayout=c.A5,t3.provideCustomLayoutProps=function(e){return{ssrPayload:e.ssrPayload,claim:{name:"good-chop-growth",githubTeam:"hellofresh/good-chop-growth",tribe:"new-ventures",alliance:"consumer",jiraPrefix:"GOC",slackChannel:"#squad-nv-good-chop",slackAlertsChannel:"#good-chop-alerts",skipLabelsOnPR:!1,teamIdentifier:"good-chop-growth"}}};var t6=!0,t8=t3},395720:function(e,t,r){"use strict";r.r(t);var n=r(687800);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}
1))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["title","titleId"]);return(0,n.BX)("svg",i(o(i(o({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{d:"M13.25 16.75a1.25 1.25 0 1 0-2.5 0 1.25 1.25 0 0 0 2.5 0ZM11 6v8h2V6h-2Z",fill:"currentColor"}),(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12s4.477 10 10 10 10-4.477 10-10Zm-2 0a8 8 0 1 0-16 0 8 8 0 0 0 16 0Z",fill:"currentColor"})]}))}},465800:function(e,t,r){"use strict";r.r(t);var n=r(687800);function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),n.forEach(function(t){var n;n=r[t],t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n})}return e}function i(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}r(827378),t.default=function(e){var t=e.title,r=e.titleId,a=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,["title","titleId"]);return(0,n.BX)("svg",i(o(i(o({width:"1.5rem",height:"1.5rem",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",role:t?"img":"graphics-symbol",color:"inherit","aria-hidden":!t},!t&&{focusable:!1}),{"aria-labelledby":r}),a),{children:[t?(0,n.tZ)("title",{id:r,children:t}):null,(0,n.tZ)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M22 7h-3.126A4 4 0 0 0 12 3.354 4 4 0 0 0 5.126 7H2v6h2v9h16v-9h2V7Zm-9 13h5v-7h-5v7Zm-2-7H6v7h5v-7Zm2-7c0 .364.097.706.268 1h3.464A2 2 0 1 0 13 6ZM7.268 7h3.464a2 2 0 1 0-3.465 0ZM20 11V9H4v2h16Z",fill:"currentColor"})]}))}}},function(e){e.O(0,[47057,38579,12737,8139,14206,44355,61403,40889,85698,50134,18629,17827,3243,83030,32857,69190,64901,57252,36060,74050,64291,24400,14005,81989,79882,92888,49774,40179],function(){return e(e.s=98330)}),_N_E=e.O()}]);
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.