PageSourceSearch

https://www.hellofresh.es/_next/static/chunks/64291-267ca01273ab5d22.js

js hellofresh.es collected 2026-09-26 08:36:04 UTC 9,011 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[64291],{174150:function(e,t,r){r.d(t,{f:function(){return f}});var n,i,a=r(671718),o=r(26124),u=r(140224),c=r(699219);function l(e,t,r,n,i,a,o){try{var u=e[a](o),c=u.value}catch(e){r(e);return}u.done?t(c):Promise.resolve(c).then(n,i)}var s=(n=function(e,t){var r,n,i,o,u,c,l,s,f,p,b=arguments;return function(e,t){var r,n,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function u(a){return function(u){return function(a){if(r)throw TypeError("Generator is already executing.");for(;o;)try{if(r=1,n&&(i=2&a[0]?n.return:a[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,a[1])).done)return i;switch(n=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,n=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],n=0}finally{r=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,u])}}}(this,function(y){switch(y.label){case 0:return r=e.include,n=e.locale,i=e.systemCountry,o=e.parentSpan,c=void 0!==(u=e.giftCard)&&u,s=void 0!==(l=e.isFreebie)&&l,p=void 0!==(f=e.fetchPrices)&&f,[4,(b.length>2&&void 0!==b[2]?b[2]:a.Z)("/plans-config/v2/2",t,{query:{country:i,locale:n,include:r,isFreebie:s,giftCard:c,fetchPrices:p},parentSpan:o},{usePublicAuth:!0})];case 1:return[2,y.sent().json()]}})},i=function(){var e=this,t=arguments;return new Promise(function(r,i){var a=n.apply(e,t);function o(e){l(a,r,i,o,u,"next",e)}function u(e){l(a,r,i,o,u,"throw",e)}o(void 0)})},function(e,t){return i.apply(this,arguments)}),f=function(e,t){var r=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}({fetchPrices:!1},e,(0,u.O)()),n=[c.Z["plans-config.v2"],r];return(0,o.Z)(n,function(e){return s(r,n,e)},t)}},764291:function(e,t,r){r.d(t,{Z:function(){return A}});var n=r(929651),i=r(233477),a=r(966622),o=r(64294),u=r(913940);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 l=function(e,t,r,n,i,a,o,l,s,f,p,b){var y,d=t.decide,v=t.isReady;if(null===(y=n.experiment)||void 0===y?void 0:y.experimentKey){var m=i.mainProductSelectionPages.some(function(t){return e.asPath.startsWith(t)});if(null==o||o.setAttributes({isMainProductSelectionPage:m}),m&&v){var h,g,O,P=(function(e){if(Array.isArray(e))return e}(h=e.asPath.split("?"))||function(e,t){var r,n,i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var a=[],o=!0,u=!1;try{for(i=i.call(e);!(o=(r=i.next()).done)&&(a.push(r.value),1!==a.length);o=!0);}catch(e){u=!0,n=e}finally{try{o||null==i.return||i.return()}finally{if(u)throw n}}return a}}(h,1)||function(e,t){if(e){if("string"==typeof e)return c(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 c(e,1)}}(h,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],_={experimentKey:n.experiment.experimentKey,experimentationUserId:a,experimentationUserAttributes:(g=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}({},r),O=O={public_id:a,utm_source:e.query.utm_source||"",allocation_pathname:P,is_freebie_or_helloshare:f,is_active_customer:p},Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(O)):(function(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r.push.apply(r,n)}return r})(Object(O)).forEach(function(e){Object.defineProperty(g,e,Object.getOwnPropertyDescriptor(O,e))}),g)},j=(s?d(_):d(u.mj.ABTEST,_)).variationKey;null==o||o.setAttributes({allocatedVariation:j||"__null__"});var w=!!j&&!!n[j];if(l&&w&&(null==n?void 0:n.amazon))return null==n?void 0:n.amazon[j];if(w)return n[j];null==o||o.setAttributes({allocatedWithoutPlansConfigData:!w})}if(!m&&b)return n[b]}},s=r(497249),f=r(581340),p=r(827378),b=r(567921),y=r.n(b),d=r(174150),v=r(200770),m=r(26730),h=function(e,t){var r=(0,v.Z)(),n=(0,f.t)(),i=n.asPath,a=n.query,o="1"===y().get("hf_ssr_e_gift_card_checkout"),u=r===m.Z.US,c=r===m.Z.FR,l=r===m.Z.ES,s=(u||c||l)&&("1"===y().get("hf_ssr_e_plans_config_is_freebie")||i.startsWith("/pages/raf_lp11")),p=null==i?void 0:i.startsWith("/pages/value-messaging-raf"),b=(null==a?void 0:a.utm_source)==="raf-freebie"||(null==a?void 0:a.utm_source)==="raf-share"||(null==a?void 0:a.utm_source)==="freebies"||(null==a?void 0:a.utm_source)==="Offline_Freebies"||(null==a?void 0:a.utm_campaign)==="freebieofflineprintinglink",h=(c||l)&&(p||b);null==e||e.setAttributes({isGiftCard:o,isFreebie:s||h});var g=(0,d.f)({giftCard:o,isFreebie:s||h,include:"plans,preferences"},{suspense:!1,enabled:t});return{isFreebie:s,isGiftCard:o,useQueryResult:g}},g={freebie:"freebie",share:"share",rafShareHpt:"raf-share-hpt",rafShare:"raf-share",b2b:"b2b",directSalesExclusion:"direct_sales_exclusion"},O="wl_is_freebie_or_hello_share",P=r(527157),_=r(543790),j=function(){var e=(0,p.useMemo)(function(){return y().get(O)},[]);if(!((0,P.Z)()!==_.Z.hellofresh))return!1;if(e)return!0;var t=new URLSearchParams(window.location.search),r=t.get("utm_source"),n=t.get("dm"),i=Object.values(g).includes(String(r))||"free-box"===n;return i&&!e&&y().set(O,"true"),i},w=r(743267),S=r(24165);function x(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 k(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 A=function(e){var t,r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],u=(0,i.F)(),c=(0,o.ZP)(),b=(0,s.T)(),y=(0,n.S9)(),d=y.useStatsig,v=(0,a.py)({runUsingStatsig:d}),m=(0,f.t)(),g=(0,p.useRef)(!1),O=(0,p.useRef)(b.startSpan("plans-config-vanilla-allocation").setAttributes({publicId:c})),P=function(e){var t;null===(t=O.current)||void 0===t||t.setAttributes(e).end(),O.current=null},_="",A="";(0,p.useEffect)(function(){_&&A&&P({outcome:_,"product-family":A})},[_,A,c]);var E=j(),U=(0,w.fB)((0,S.Z)()),Z=h(O.current,r&&y.useV2),C=Z.isGiftCard,F=Z.useQueryResult,N=F.data;if(!y.useV2)return k(x({},F),{data:void 0});if(!N||!1===F.isFetched||(null==N?void 0:null===(t=N.experiment)||void 0===t?void 0:t.experimentKey)&&!v.isReady)return k(x({},F),{isSuccess:!1,isFetched:!1,isFetching:!0,data:void 0});var D=N.control;if(C)return v.track({eventName:"plans-config-gift-product",experimentationUserAttributes:u,experimentationUserId:c,eventTags:{familyName:N.control.config.familyName,pagePath:m.asPath}}),_="gift-card-checkout",A=D.config.familyName,k(x({},F),{data:D});var R=l(m,v,u,N,y.vanillaExperiment,c,O.current,!1,d,E,U,e);if(R)return _="allocated",A=R.config.familyName,k(x({},F),{data:R});var I=y.vanillaExperiment.mainProductSelectionPages.some(function(e){return m.asPath.startsWith(e)});return!g.current&&I&&(v.track({eventName:"plans-config-BAU-product",experimentationUserAttributes:u,experimentationUserId:c,eventTags:{familyName:N.control.config.familyName,pagePath:m.asPath}}),_="BAU-fallback",A=N.control.config.familyName,g.current=!0),k(x({},F),{data:D})}}}]);

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.