PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/72065-27dc5680d4e5eae7.js

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

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[72065],{72065:function(e,t,r){r.d(t,{vr:function(){return C},SV:function(){return k},RA:function(){return S}});var n,o,u=r(456552),c=r(827378),a=r(671718),i=r(447178),l=r(26124),s=r(64294),p=r(140224),f=r(699219),d=function(e,t){var r=e.productIds,n=e.voucherCode;return{query: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}({productIds:Array.isArray(r)?null==r?void 0:r.join(","):r,voucherCode:n||"",hfCountryCode:(null==t?void 0:t.toUpperCase())||""},e.zipCode&&{zipCode:e.zipCode},e.hfPublicID&&{hfPublicID:e.hfPublicID},e.checkoutType&&{checkoutType:e.checkoutType}),parentSpan:e.parentSpan}},y=r(841723);function h(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,r,n,o,u,c){try{var a=e[u](c),i=a.value}catch(e){r(e);return}a.done?t(i):Promise.resolve(i).then(n,o)}function v(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var u=e.apply(t,r);function c(e){b(u,n,o,c,a,"next",e)}function a(e){b(u,n,o,c,a,"throw",e)}c(void 0)})}}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 g(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 m(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},u=Object.keys(e);for(n=0;n<u.length;n++)r=u[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(n=0;n<u.length;n++)r=u[n],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}function w(e,t){var r,n,o,u,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return u={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function a(u){return function(a){return function(u){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&u[0]?n.return:u[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,u[1])).done)return o;switch(n=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return c.label++,{value:u[1],done:!1};case 5:c.label++,n=u[1],u=[0];continue;case 7:u=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){c=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){c.label=u[1];break}if(6===u[0]&&c.label<o[1]){c.label=o[1],o=u;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(u);break}o[2]&&c.ops.pop(),c.trys.pop();continue}u=t.call(e,c)}catch(e){u=[6,e],n=0}finally{r=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,a])}}}var P=(n=v(function(e,t){var r,n,o,u,c,i,l=arguments;return w(this,function(s){switch(s.label){case 0:if(r=l.length>2&&void 0!==l[2]?l[2]:a.Z,n=e.systemCountry,o=m(e,["systemCountry"]),!n||!o.productIds||!o.productIds.length)throw Error("Missing required params");s.label=1;case 1:return s.trys.push([1,3,,4]),[4,r("/calculate/prospect/batch",t,g(O({},d(o,n)),{headers:o.headers,fetchSpanAttributes:{"request.backend_service":"price-service","request.backend_action":"calculate-prospect-batch","sales.channel":(null===(u=o.headers)||void 0===u?void 0:u["Checkout-Context-Sales-Channel"])||"none","sales.conversion_funnel":(null===(c=o.headers)||void 0===c?void 0:c["Checkout-Context-Conversion-Funnel"])||"none","sales.checkout_type":(null===(i=o.headers)||void 0===i?void 0:i["Checkout-Context-Type"])||"none","sales.headers_present":!!(o.headers&&Object.keys(o.headers).length>0)}}))];case 2:return[2,s.sent().json()];case 3:throw s.sent();case 4:return[2]}})}),function(e,t){return n.apply(this,arguments)}),j=(o=v(function(e,t){var r,n,o,u=arguments;return w(this,function(c){switch(c.label){case 0:return r=u.length>2&&void 0!==u[2]?u[2]:a.Z,n=e.systemCountry,[4,r("/calculate",t,{method:"POST",data:g(O({},o=m(e,["systemCountry"])),{country:n.toUpperCase()}),parentSpan:o.parentSpan,fetchSpanAttributes:{"request.backend_service":"price-service","request.backend_action":"calculate"}})];case 1:return[2,c.sent().json()]}})}),function(e,t){return o.apply(this,arguments)}),C=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=(0,i.Z)().fetch,n=(0,p.O)(),o=[f.Z["calculate.calculatePrices"],e];return(0,u.useQuery)(o,function(){return j(O({},e,n),o,r)},t)},S=function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}
1,n=(0,p.O)(),o=[f.Z["calculate.calculatePricesProspectBatch"],e];e.hfPublicID||(e.hfPublicID=(0,s.ZP)());var u=Array.isArray(e.productIds)?e.productIds.length>0:!!e.productIds&&e.productIds.length>0;return(0,l.Z)(o,function(t){return P(O({},e,n),o,t)},g(O({},r),{enabled:!1!==r.enabled&&!!e.hfPublicID&&u&&(null===(t=r.enabled)||void 0===t||t)}))},k=function(e){var t,r,n,o,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=(0,i.Z)().fetch,s=(0,u.useQueryClient)(),d=(0,p.O)(),b=(null===(r=e.shippingAddress)||void 0===r?void 0:r.postcode)||"",v=function(e){if(Array.isArray(e))return e}(t=(0,c.useState)(""))||function(e,t){var r,n,o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var u=[],c=!0,a=!1;try{for(o=o.call(e);!(c=(r=o.next()).done)&&(u.push(r.value),2!==u.length);c=!0);}catch(e){a=!0,n=e}finally{try{c||null==o.return||o.return()}finally{if(a)throw n}}return u}}(t,2)||function(e,t){if(e){if("string"==typeof e)return h(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 h(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.")}(),m=v[0],w=v[1],P=!!(null===(n=e.shippingAddress)||void 0===n?void 0:n.postcode)&&(0,y.v)(null===(o=e.shippingAddress)||void 0===o?void 0:o.postcode,d.systemCountry);(0,c.useEffect)(function(){P&&b&&w(b)},[b,P]);var C=P?b:m,S=[f.Z["calculate.calculatePrices"],g(O({},e),{shippingAddress:g(O({},e.shippingAddress),{postcode:C})})];return(0,u.useQuery)(S,function(){return j(O({},e,d),S,l)},O({enabled:!!C,initialData:!P&&m?s.getQueryData(S):void 0},a))}}}]);

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.