PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/86282-453a247677a522e5.js

js hellofresh.de collected 2026-09-25 23:36:15 UTC 7,609 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[86282],{786282:function(t,e,r){r.d(e,{m:function(){return k}});var n,o,i=r(827378),u=r(567921),c=r.n(u),a=r(581340),l=r(671718),s=r(26124),f=r(783244);function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var d=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=(0,a.t)().asPath,n=(function(t){if(Array.isArray(t))return t}(t=(0,f.Z)("hf_goals_plan_sku_cookie")||[""])||function(t,e){var r,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,c=!1;try{for(o=o.call(t);!(u=(r=o.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(t){c=!0,n=t}finally{try{u||null==o.return||o.return()}finally{if(c)throw n}}return i}}(t,1)||function(t,e){if(t){if("string"==typeof t)return p(t,1);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return p(t,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],o=c().get("hf_ssr_stored_sku"),u=null==r?void 0:r.includes("/reactivat");return(0,i.useMemo)(function(){var t=null!=o?o:n,r=e.filter(function(t){return t&&"string"==typeof t});if(u&&r.length>0)return r;if(t&&"string"==typeof t&&r.length>0){var i=t.split("-").slice(0,2).join("-"),c=r.filter(function(t){return t.split("-").slice(0,2).join("-")===i});if(c.length>0){var a=new Set(c);return a.add(t),Array.from(a)}}return t&&"string"==typeof t?[t]:r.length>0?r:[]},[o,n,e,u])},y=r(140224),b=r(699219),h=function(t){var e=t.voucherCode,r=t.productSkus,n=t.locale,o=t.systemCountry,i=t.discountCommunicationId,u=t.zipcode,c=t.hf_public_id,a=t.checkoutType;return[b.Z["price-presentation.discountCommunication"],function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}({voucherCode:e,productSkus:r,locale:n,systemCountry:o,hf_public_id:c},i&&{discountCommunicationId:i},u&&{zipcode:u},a&&{checkoutType:a})]},v=r(870771),m=r(364468),g=r(64294);function O(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function w(t,e,r,n,o,i,u){try{var c=t[i](u),a=c.value}catch(t){r(t);return}c.done?e(a):Promise.resolve(a).then(n,o)}function _(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{},n=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),n.forEach(function(e){var n;n=r[e],e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n})}return t}function j(t,e){return e=null!=e?e:{},Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):(function(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);r.push.apply(r,n)}return r}
1)(Object(e)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}var S=(n=function(t,e){var r,n,o,i,u,c,a,s,f,p=arguments;return function(t,e){var r,n,o,i,u={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(r)throw TypeError("Generator is already executing.");for(;u;)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 u.label++,{value:i[1],done:!1};case 5:u.label++,n=i[1],i=[0];continue;case 7:i=u.ops.pop(),u.trys.pop();continue;default:if(!(o=(o=u.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){u=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){u.label=i[1];break}if(6===i[0]&&u.label<o[1]){u.label=o[1],o=i;break}if(o&&u.label<o[2]){u.label=o[2],u.ops.push(i);break}o[2]&&u.ops.pop(),u.trys.pop();continue}i=e.call(t,u)}catch(t){i=[6,t],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}}(this,function(d){switch(d.label){case 0:return r=t.voucherCode,n=t.productSkus,o=t.systemCountry,i=t.locale,u=t.parentSpan,c=t.discountCommunicationId,a=t.zipcode,s=t.hf_public_id,f=t.checkoutType,[4,(p.length>2&&void 0!==p[2]?p[2]:l.Z)("/price-presentation/v2/discount_communication/voucher/".concat(r),e,{query:_({country:o,locale:i,skus:n.join(","),dc_id:c||"",zipcode:a||"",hf_public_id:s||""},void 0!==f&&{checkout_type:f}),parentSpan:u,fetchSpanAttributes:{"request.backend_service":"price-presentation-service","request.backend_action":"get-voucher-discount-communication",discountCommunicationId:c,voucherCode:r}})];case 1:return[2,d.sent().json()]}})},o=function(){var t=this,e=arguments;return new Promise(function(r,o){var i=n.apply(t,e);function u(t){w(i,r,o,u,c,"next",t)}function c(t){w(i,r,o,u,c,"throw",t)}u(void 0)})},function(t,e){return o.apply(this,arguments)}),k=function(t,e){var r,n,o,u=d(t.productSkus),l=(0,a.t)().asPath,p=(function(t){if(Array.isArray(t))return t}(r=(0,f.Z)(v.gi)||[""])||function(t,e){var r,n,o=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=o){var i=[],u=!0,c=!1;try{for(o=o.call(t);!(u=(r=o.next()).done)&&(i.push(r.value),1!==i.length);u=!0);}catch(t){c=!0,n=t}finally{try{u||null==o.return||o.return()}finally{if(c)throw n}}return i}}(r,1)||function(t,e){if(t){if("string"==typeof t)return O(t,1);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return O(t,1)}}(r,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],b=(0,i.useMemo)(function(){var t;return(null===(t=c().get("hf_discount_comm_id"))||void 0===t?void 0:t.trim())||""},[]),w=new URLSearchParams((null==l?void 0:l.split("?")[1])||""),k=w&&(null===(n=w.get("discount_comm_id"))||void 0===n?void 0:n.trim())||b||t.discountCommunicationId,C=t.zipcode||p,P=(0,m.Z)().isEnabled,A=(0,i.useMemo)(function(){return c().get(v.m4)},[]),E=(0,i.useMemo)(function(){return A||(0,g.ZP)()},[A]),I=_(j(_(j(_({},t),{productSkus:u}),(0,y.O)()),{discountCommunicationId:t.ignoreDiscountCommId?void 0:k}),C&&{zipcode:C},E&&{hf_public_id:E}),Z=h(I),x="string"==typeof t.voucherCode&&t.voucherCode.length>0,z=(null===(o=null==e?void 0:e.enabled)||void 0===o||o)&&x&&u.length>0&&(!P||!!C);return(0,s.Z)(Z,function(t){if(P&&!C)throw Error("Zipcode is required for price presentation with regional pricing enabled");return S(I,Z,t)},j(_({},e),{enabled:z}))}},364468:function(t,e,r){var n=r(463171),o=r(870771);e.Z=function(){var t=(null===n.Z||void 0===n.Z?void 0:(0,n.Z)(o.Fv))||{isEnabled:!1,isReady:!0};return{isEnabled:t.isEnabled,isReady:t.isReady}}}}]);

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.