PageSourceSearch

https://www.hellofresh.nl/_next/static/chunks/40828.c55626b9f053841b.js

js hellofresh.nl collected 2026-10-03 21:13:10 UTC 6,693 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[40828],{900253:function(t,e,n){n.d(e,{V:function(){return o}});var r=n(189452),o=function(t){var e=(0,r.Z)().NEXT_PUBLIC_ASSET_BASE_URL||"";return/^https?:\/\//.test(t)?t:"".concat(e).concat(t)}},858293:function(t,e,n){n.d(e,{m:function(){return r}});var r={":hover":{backgroundColor:"alias.buttons.base.tertiary.bcg.default",color:"shared-alias.neutral.foreground.darker"},":active":{backgroundColor:"alias.buttons.base.tertiary.bcg.default"},":focus":{outlineStyle:"none"},":focus-visible":{outlineStyle:"none",color:"shared-alias.neutral.foreground.darker"}}},608946:function(t,e,n){n.d(e,{C:function(){return s}});var r=n(966622),o=n(407792),i=n(581340),a=n(385613),l={control:"control",variation_1:"variation_1"};function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var c=function(t){var e=null==t?void 0:t.e2e_discount_comm_new;return"string"==typeof e&&Object.hasOwn(l,e)?l[e]:null},s=function(t){var e,n,s=t.discountCommId,d=t.voucherCode,f=(0,i.t)().query,m=(0,r.py)({runUsingStatsig:!0}),p=m.decide,v=m.isReady,b=(0,o.O)(),y=b.id,h=b.attributes,g=(0,a.T)({voucherCode:null!=d?d:""}).isGWPVoucher,k=c(f),_=null!==k,O=_||v,w=_||!!s&&!g,C=(!_&&O&&w?p({experimentKey:"onbd-447-e2e-discount-comm",experimentationUserId:y,experimentationUserAttributes:(e=function(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),r.forEach(function(e){u(t,e,n[e])})}return t}({},h),n=null!=(n=u({},"discount_comm_id",s))?n:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):(function(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n.push.apply(n,r)}return n})(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}),e)}):{variationKey:k}).variationKey,x=w&&C===l.variation_1;return{isReady:O,isEligible:w,variant:C,isInDiscountVariant:x}}},240828:function(t,e,n){n.r(e),n.d(e,{default:function(){return C}});var r=n(687800),o=n(827378),i=n(764291),a=n(786342),l=n(682617),u=n(217361),c=n(306286),s=function(){var t=(0,u.n)().orderType,e=(0,a.Z)(),n=(0,c.$h)().product,r=(0,i.Z)().data,s=null==n?void 0:n.handle,d=e[l.hv.subscription],f=d.code,m=d.isValid;return{voucherCode:t!==l.hv.oneTimePurchase&&m&&f?f:void 0,productSkus:(0,o.useMemo)(function(){var t,e,n;return(null==r?void 0:null===(n=r.plans)||void 0===n?void 0:null===(e=n[0])||void 0===e?void 0:null===(t=e.children)||void 0===t?void 0:t.map(function(t){return t.handle}))||(s?[s]:[])},[r,s]),sku:s}},d=n(786282),f=n(900253),m=n(608946),p=n(858293),v=n(553911),b=n(285087),y=n(164528),h=n(268481),g=n(612771),k=n(768587),_=n(353525);function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}var w=function(t){var e,n,i,a,l=t.voucherCode,u=t.productSkus,c=t.sku,s=(0,y.ZP)(_.F8).translateRaw,w=(0,b.l)(),C=w.getItem,x=w.setItem,S=(0,h.Sj)()===g.P.mobile,P=o.useId(),j=(0,o.useRef)(null),Z=function(t){if(Array.isArray(t))return t}(e=(0,o.useState)(function(){return C(_.x9)}))||function(t,e){var n,r,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],a=!0,l=!1;try{for(o=o.call(t);!(a=(n=o.next()).done)&&(i.push(n.value),2!==i.length);a=!0);}catch(t){l=!0,r=t}finally{try{a||null==o.return||o.return()}finally{if(l)throw r}}return i}}(e,2)||function(t,e){if(t){if("string"==typeof t)return O(t,2);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O(t,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.")}(),I=Z[0],D=Z[1],A=!!l&&I===l,E=(0,d.m)({voucherCode:null!=l?l:"",productSkus:u},{suspense:!1,enabled:!A&&!!l&&u.length>0}).data,B=(0,m.C)({discountCommId:null==E?void 0:E.discount_communication_id,voucherCode:l}).isInDiscountVariant,R=c?null==E?void 0:null===(n=E.presets)||void 0===n?void 0:n[c]:void 0,V=null!==(a=null==R?void 0:null===(i=R.e2e_discount_marketing_clarity_modal_subtitle)||void 0===i?void 0:i.trim())&&void 0!==a?a:"",T=B&&""!==V&&!A;if((0,o.useEffect)(function(){T&&l&&x(_.x9,l)},[T,l,x]),!T)return null;var U=function(){return D(null!=l?l:null)},F=(0,r.BX)(k.xu,{display:"flex",flexDirection:"column",alignItems:"center",gap:"global.sm-2",width:"100%",textAlign:"center",paddingBottom:S?"global.sm-1":"global.xs",children:[(0,r.tZ)(k.xu,{display:"flex",justifyContent:"flex-end",width:"100%",children:(0,r.tZ)(k.PZ,{"data-test-id":"".concat(_.kk,"-close"),onClick:U,pseudo:p.m})}),(0,r.tZ)("img",{src:(0,f.V)(_.eD),width:_.GP,height:_.GP,alt:"","data-test-id":"".concat(_.kk,"-illustration")}),(0,r.BX)(k.xu,{display:"flex",flexDirection:"column",gap:"global.xs",marginBottom:"global.xxs",children:[(0,r.tZ)(k.xv,{as:"h2",id:P,color:"shared-alias.neutral.foreground.default","data-test-id":"".concat(_.kk,"-title"),children:s("features.marketing_clarity_modal.title")}),(0,r.tZ)(k.xv,{as:"span",type:"body-md-regular",color:"shared-alias.neutral.foreground.default","data-test-id":"".concat(_.kk,"-subtitle"),children:(0,r.tZ)(v.Z,{copy:V,hasMarkdown:!0,markdownOptions:{forceInline:!0}})})]}),(0,r.tZ)(k.zx.Primary,{"data-test-id":"".concat(_.kk,"-cta"),onClick:U,children:s("features.marketing_clarity_modal.close")})]});return S?(0,r.tZ)(k.dy.Container,{"data-test-id":_.kk,isOpen:!0,isModal:!0,onClose:U,onDismiss:U,placement:"bottom",width:"100%","aria-labelledby":P,paddingX:"global.sm-2",paddingY:"global.sm-2",hideCloseButton:!0,returnFocusRef:j,children:F}):(0,r.tZ)(k.Vq,{"data-test-id":_.kk,isOpen:!0,onClose:U,onDismiss:U,headless:!0,hasCloseButton:!1,"aria-labelledby":P,width:_.Jw,padding:"global.md-1",returnFocusRef:j,children:F})},C=function(){var t=s(),e=t.voucherCode,n=t.productSkus,o=t.sku;return(0,r.tZ)(w,{voucherCode:e,productSkus:n,sku:o})}},353525:function(t,e,n){n.d(e,{F8:function(){return r},GP:function(){return u},Jw:function(){return a},eD:function(){return l},kk:function(){return i},x9:function(){return o}});var r="features.marketing_clarity_modal",o="hf_e2e_discount_marketing_clarity_modal_shown",i="marketing-clarity-modal",a="480px",l="/assets/hellofresh/icons/discount-tag.png",u=104}}]);

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.