PageSourceSearch

https://www.hellofresh.de/_next/static/chunks/pages/creator-marketplace/account/info-d952c9364cc16b9e.js

js hellofresh.de collected 2026-09-25 23:38:17 UTC 16,847 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[57313],{917419:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/creator-marketplace/account/info",function(){return t(548761)}])},545202:function(e,r,t){"use strict";t.d(r,{s:function(){return f}});var n,a,o=t(456552),i=t(671718),s=t(447178),l=t(140224),c=t(699219);function u(e,r,t,n,a,o,i){try{var s=e[o](i),l=s.value}catch(e){t(e);return}s.done?r(l):Promise.resolve(l).then(n,a)}var d=(n=function(e,r){var t,n,a,o,s=arguments;return function(e,r){var t,n,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(t)throw TypeError("Generator is already executing.");for(;i;)try{if(t=1,n&&(a=2&o[0]?n.return:o[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;switch(n=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,n=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!(a=(a=i.trys).length>0&&a[a.length-1])&&(6===o[0]||2===o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=r.call(e,i)}catch(e){o=[6,e],n=0}finally{t=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}(this,function(l){switch(l.label){case 0:return n=void 0===(t=e.id)?"me":t,a=e.systemCountry,o=e.parentSpan,[4,(s.length>2&&void 0!==s[2]?s[2]:i.Z)("/api/customers/".concat(n,"/addresses"),r,{query:{country:a},parentSpan:o,fetchSpanAttributes:{"request.backend_service":"customer-address-service","request.backend_action":"get-customer-addresses"}})];case 1:return[2,l.sent().json()]}})},a=function(){var e=this,r=arguments;return new Promise(function(t,a){var o=n.apply(e,r);function i(e){u(o,t,a,i,s,"next",e)}function s(e){u(o,t,a,i,s,"throw",e)}i(void 0)})},function(e,r){return a.apply(this,arguments)}),f=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=(0,s.Z)().fetch,n=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({},e,(0,l.O)()),a=[c.Z["customer.addresses"],n];return(0,o.useQuery)(a,function(){return d(n,a,t)},r)}},224358:function(e,r,t){"use strict";t.d(r,{Z:function(){return c},H:function(){return l}});var n=t(907567),a=t(953137),o=t(545202),i=t(43011),s=function(e){var r,t,n,a,o,i,s,l;return{id:String(e.id),firstName:null!==(r=e.firstName)&&void 0!==r?r:"",lastName:null!==(t=e.lastName)&&void 0!==t?t:"",address1:null!==(n=e.address1)&&void 0!==n?n:"",address2:null!==(a=e.address2)&&void 0!==a?a:void 0,address2Comment:null!==(o=e.address2Comment)&&void 0!==o?o:void 0,city:null!==(i=e.city)&&void 0!==i?i:"",postcode:e.postcode,country:null!==(s=e.country.iso2Code)&&void 0!==s?s:"",phone:null!==(l=e.phone)&&void 0!==l?l:void 0}},l=function(){var e,r,t,o,s=(0,i.Z)(),l=(0,n.W)({},{enabled:s,suspense:!1}),c=(0,a.u)({},{enabled:s,suspense:!1}),u=l.isLoading||c.isLoading,d=l.isError||c.isError,f=(null!==(o=null===(t=c.data)||void 0===t?void 0:null===(r=t.items)||void 0===r?void 0:r.length)&&void 0!==o?o:0)>0;return{isLoading:u,isError:d,data:l.data&&c.data?{userId:(e=l.data).uuid,customerId:e.id,firstName:e.firstName,lastName:e.lastName,email:e.email,hasActiveSubscription:f,subscriptionStatus:f?"active":null}:void 0}},c=function(){var e,r=(0,i.Z)(),t=(0,o.s)({},{enabled:r,suspense:!1}),n=null===(e=t.data)||void 0===e?void 0:e.items.find(function(e){return e.isDefaultShipping});return{isLoading:t.isLoading,isError:t.isError,data:n?s(n):void 0}}},553911:function(e,r,t){"use strict";var n=t(687800),a=t(827378),o=t(72344),i=t(727650),s=t(497249),l=t(165218),c=t.n(l)()(function(){return Promise.resolve().then(t.bind(t,72344))},{loadableGenerated:{webpack:()=>[null]},ssr:!1});r.Z=function(e){var r,t,l=e.hasMarkdown,u=e.copy,d=e.markdownOptions,f=e.noSSR,p=e.allowedAttrs,y=e.config,h=(0,s.T)(),b="string"==typeof u?u.replace(/[ \t]{9,}/g," ".repeat(8)):u,m=(0,i.sanitize)(b,(r=function(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{},n=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(n=n.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}
1))),n.forEach(function(r){var n;n=t[r],r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n})}return e}({ADD_ATTR:void 0===p?[]:p},void 0===y?{}:y),t=t={RETURN_DOM:!1,RETURN_DOM_FRAGMENT:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(t)):(function(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t.push.apply(t,n)}return t})(Object(t)).forEach(function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(t,e))}),r));return((0,a.useEffect)(function(){if((u||"")!==m){var e=h.startSpan("sanitize-content-libray");e.setAttributes({"sanitize-content-libray":!0,"sanitize-error-detected":u!==m,"sanitize-message":"HTML content has been sanitized. Please check the content to ensure it is safe.","sanitize-original-content":u,"sanitize-sanitized-content":m}),e.end()}},[u,m,h]),l)?f?(0,n.tZ)(c,{options:d,children:m}):(0,n.tZ)(o.default,{options:d,children:m}):(0,n.tZ)("div",{dangerouslySetInnerHTML:{__html:m}})}},548761:function(e,r,t){"use strict";t.r(r),t.d(r,{__N_SSP:function(){return k},default:function(){return Z}});var n=t(687800),a=t(827378),o=t(934301),i=t(504555),s=t(888149),l=t(222579),c=t(768587),u=t(581340),d=t(224358),f=t(537850),p=t(625251),y=t(187923),h=function(e){var r=e.userProfile,t=e.onEdit,a=(0,f.H)().translateRaw;return(0,n.BX)(c.xu,{borderStyle:"solid",borderColor:"shared-alias.neutral.border.default",borderWidth:"1px",padding:"global.md-1",children:[(0,n.BX)(c.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"global.sm-1",children:[(0,n.tZ)(c.xv,{as:"h3",children:a("creator_marketplace.account.info.personal.title")||"Personal Info"}),(0,n.tZ)(c.xu,{marginLeft:"auto",children:(0,n.tZ)(c.zx.Tertiary,{size:"sm",onClick:t,"aria-label":a("creator_marketplace.account.info.personal.edit_aria")||"Edit personal info",children:a("creator_marketplace.account.info.edit")||"Edit"})})]}),(0,n.BX)(c.xu,{display:"flex",flexDirection:"column",gap:"global.xs",children:[(0,n.BX)(c.xv,{type:"body-md-bold",children:[null==r?void 0:r.firstName," ",null==r?void 0:r.lastName]}),(0,n.BX)(c.xv,{type:"body-sm-regular",children:[a("creator_marketplace.account.info.personal.email")||"Email:"," ",null==r?void 0:r.email]}),(0,n.BX)(c.xv,{type:"body-sm-regular",children:[a("creator_marketplace.account.info.personal.customer_id")||"Customer ID:"," ",null==r?void 0:r.customerId]})]})]})},b=function(e){var r=e.onEdit,t=(0,f.H)().translateRaw;return(0,n.BX)(c.xu,{borderStyle:"solid",borderColor:"shared-alias.neutral.border.default",borderWidth:"1px",padding:"global.md-1",children:[(0,n.BX)(c.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"global.sm-1",children:[(0,n.tZ)(c.xv,{as:"h3",sizes:"headline-sm-desktop",children:t("creator_marketplace.account.info.password.title")||"Password"}),(0,n.tZ)(c.xu,{marginLeft:"auto",children:(0,n.tZ)(c.zx.Tertiary,{size:"sm",onClick:r,"aria-label":t("creator_marketplace.account.info.password.edit_aria")||"Edit password",children:t("creator_marketplace.account.info.edit")||"Edit"})})]}),(0,n.BX)(c.xu,{display:"flex",flexDirection:"column",gap:"global.xs",children:[(0,n.tZ)(c.xv,{type:"body-md-bold",children:t("creator_marketplace.account.info.password.current_password")||"Current password"}),(0,n.tZ)(c.xv,{type:"body-sm-regular",children:"••••••••"})]})]})},m=t(553911),v=function(e){var r=e.deliveryAddress,t=e.isHFSubscriber,a=e.onEdit,o=(0,f.H)().translateRaw;return(0,n.BX)(c.xu,{borderStyle:"solid",borderColor:"shared-alias.neutral.border.default",borderWidth:"1px",padding:"global.md-1",children:[(0,n.BX)(c.xu,{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"global.sm-1",children:[(0,n.tZ)(c.xv,{as:"h3",children:o("creator_marketplace.account.info.delivery.title")||"Delivery"}),!t&&(0,n.tZ)(c.xu,{marginLeft:"auto",children:(0,n.tZ)(c.zx.Tertiary,{size:"sm",onClick:a,"aria-label":o("creator_marketplace.account.info.delivery.edit_aria")||"Edit delivery address",children:o("creator_marketplace.account.info.edit")||"Edit"})})]}),t&&(0,n.tZ)(c.xu,{marginBottom:"global.sm-1",children:(0,n.tZ)(c.gb,{variant:"information",children:(0,n.tZ)(c.xv,{type:"body-sm-regular",children:(0,n.tZ)(m.Z,{hasMarkdown:!0,copy:o("creator_marketplace.account.info.delivery.hf_subscriber_cannot_edit")||"<b>Want to change this address?</b> You'll have to change the address on Hellofresh.ca or the app."})})})}),r?(0,n.BX)(c.xu,{display:"flex",flexDirection:"column",gap:"global.xs",children:[(0,n.tZ)(c.xv,{type:"body-sm-bold",children:o("creator_marketplace.account.info.delivery.delivery_address")||"Delivery address"}),(0,n.tZ)(c.xv,{type:"body-sm-regular",children:[r.address1,r.address2,r.city,r.postcode].filter(
1Boolean).join(", ")}),r.phone&&(0,n.BX)(c.xv,{type:"body-sm-regular",children:[o("creator_marketplace.account.info.delivery.phone")||"Phone:"," ",r.phone]})]}):(0,n.tZ)(c.xv,{type:"body-sm-regular",children:o("creator_marketplace.account.info.delivery.no_address")||"No delivery address on file"})]})},g=function(e){switch(e){case"success":return{variant:"success",key:"creator_marketplace.account.edit_profile.success_message",defaultValue:"Your profile has been updated successfully."};case"error":return{variant:"error",key:"creator_marketplace.account.edit_profile.error_message",defaultValue:"Failed to update your profile. Please try again later."};case"address-success":return{variant:"success",key:"creator_marketplace.account.edit_address.success_message",defaultValue:"Your delivery address has been updated successfully."};case"address-error":return{variant:"error",key:"creator_marketplace.account.edit_address.error_message",defaultValue:"Failed to update your delivery address. Please try again later."};case"password-success":return{variant:"success",key:"creator_marketplace.account.change_password.success_message",defaultValue:"Your password has been updated successfully."};case"password-error":return{variant:"error",key:"creator_marketplace.account.change_password.error_message",defaultValue:"Failed to update your password. Please try again later."};default:return null}};function _(e,r){(null==r||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t<r;t++)n[t]=e[t];return n}var w=function(){var e,r=(0,f.H)().translateRaw,t=(0,u.t)(),o=(0,d.H)(),i=o.data,l=o.isLoading,m=o.isError,w=(0,d.Z)(),x=w.data,k=w.isLoading,Z=w.isError,O=new URLSearchParams(window.location.search).get("updated"),E=function(e){if(Array.isArray(e))return e}(e=a.useState(!!O))||function(e,r){var t,n,a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var o=[],i=!0,s=!1;try{for(a=a.call(e);!(i=(t=a.next()).done)&&(o.push(t.value),2!==o.length);i=!0);}catch(e){s=!0,n=e}finally{try{i||null==a.return||a.return()}finally{if(s)throw n}}return o}}(e,2)||function(e,r){if(e){if("string"==typeof e)return _(e,2);var t=Object.prototype.toString.call(e).slice(8,-1);if("Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t)return Array.from(t);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return _(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.")}(),S=E[0],P=E[1];a.useEffect(function(){if(O){var e=setTimeout(function(){P(!1)},1e4);return function(){return clearTimeout(e)}}},[O]);var C=void 0!==i&&null!==i.subscriptionStatus;if(l||k)return(0,n.BX)(c.xu,{"data-test-id":"account-info-page",display:"flex",flexDirection:"column",gap:"global.sm-1",children:[(0,n.tZ)(p.K,{width:"180px",height:"32px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm",marginBottom:"global.sm-1"}),[1,2,3].map(function(e){return(0,n.BX)(c.xu,{borderStyle:"solid",borderColor:"shared-alias.neutral.border.default",borderWidth:"1px",padding:"global.md-1",children:[(0,n.tZ)(p.K,{width:"140px",height:"24px",backgroundColor:"neutral.300",borderRadius:"border-radius-sm",marginBottom:"global.sm-1"}),(0,n.tZ)(p.K,{width:"100%",height:"60px",backgroundColor:"neutral.200",borderRadius:"border-radius-sm"})]},e)})]});if(m||Z)return(0,n.tZ)(c.xu,{"data-test-id":"account-info-page",children:(0,n.tZ)(c.gb,{variant:"error",children:r("creator_marketplace.account_settings.info.error")||"Failed to load account information. Please try again."})});var j=g(O);return(0,n.BX)(c.xu,{"data-test-id":"account-info-page",display:"flex",flexDirection:"column",gap:"global.sm-1",children:[S&&j&&(0,n.tZ)(c.gb,{variant:j.variant,onClose:function(){P(!1)},children:r(j.key)||j.defaultValue}),(0,n.tZ)(c.xu,{display:["none","block","block"],children:(0,n.tZ)(c.xv,{as:"h1",styleAs:"h2",children:r("creator_marketplace.account.info.title")||"Account Info"})}),(0,n.tZ)(h,{userProfile:i,onEdit:function(){(0,y.Z)(t,(0,s.R5)())}}),(0,n.tZ)(b,{onEdit:function(){(0,y.Z)(t,(0,s.ok)())}}
1),(0,n.tZ)(v,{deliveryAddress:x,isHFSubscriber:C,onEdit:function(){(0,y.Z)(t,(0,s.tm)())}})]})},x=function(e){return e.ssrPayload,(0,n.tZ)(i.F,{redirectPathIfGuest:(0,s.sF)(),children:(0,n.tZ)(l.R,{children:(0,n.tZ)(w,{})})})};x.customLayout=o.C;var k=!0,Z=x},534243:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});var n=t(914325),a=t(646052),o=function(e){if(!(0,a.Z)(e))throw TypeError("Invalid UUID");var r,t=new Uint8Array(16);return t[0]=(r=parseInt(e.slice(0,8),16))>>>24,t[1]=r>>>16&255,t[2]=r>>>8&255,t[3]=255&r,t[4]=(r=parseInt(e.slice(9,13),16))>>>8,t[5]=255&r,t[6]=(r=parseInt(e.slice(14,18),16))>>>8,t[7]=255&r,t[8]=(r=parseInt(e.slice(19,23),16))>>>8,t[9]=255&r,t[10]=(r=parseInt(e.slice(24,36),16))/1099511627776&255,t[11]=r/4294967296&255,t[12]=r>>>24&255,t[13]=r>>>16&255,t[14]=r>>>8&255,t[15]=255&r,t};function i(e,r){return e<<r|e>>>32-r}var s=function(e,r,t){function a(e,r,a,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var r=[],t=0;t<e.length;++t)r.push(e.charCodeAt(t));return r}(e)),"string"==typeof r&&(r=o(r)),16!==r.length)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var s=new Uint8Array(16+e.length);if(s.set(r),s.set(e,r.length),(s=t(s))[6]=15&s[6]|80,s[8]=63&s[8]|128,a){i=i||0;for(var l=0;l<16;++l)a[i+l]=s[l];return a}return(0,n.Z)(s)}try{a.name="v5"}catch(e){}return a.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",a.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8",a}(0,0,function(e){var r=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var n=unescape(encodeURIComponent(e));e=[];for(var a=0;a<n.length;++a)e.push(n.charCodeAt(a))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var o=Math.ceil((e.length/4+2)/16),s=Array(o),l=0;l<o;++l){for(var c=new Uint32Array(16),u=0;u<16;++u)c[u]=e[64*l+4*u]<<24|e[64*l+4*u+1]<<16|e[64*l+4*u+2]<<8|e[64*l+4*u+3];s[l]=c}s[o-1][14]=(e.length-1)*8/4294967296,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<o;++d){for(var f=new Uint32Array(80),p=0;p<16;++p)f[p]=s[d][p];for(var y=16;y<80;++y)f[y]=i(f[y-3]^f[y-8]^f[y-14]^f[y-16],1);for(var h=t[0],b=t[1],m=t[2],v=t[3],g=t[4],_=0;_<80;++_){var w=Math.floor(_/20),x=i(h,5)+function(e,r,t,n){switch(e){case 0:return r&t^~r&n;case 1:case 3:return r^t^n;case 2:return r&t^r&n^t&n}}(w,b,m,v)+g+r[w]+f[_]>>>0;g=v,v=m,m=i(b,30)>>>0,b=h,h=x}t[0]=t[0]+h>>>0,t[1]=t[1]+b>>>0,t[2]=t[2]+m>>>0,t[3]=t[3]+v>>>0,t[4]=t[4]+g>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,255&t[0],t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,255&t[1],t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,255&t[2],t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,255&t[3],t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,255&t[4]]})}},function(e){e.O(0,[47057,38579,94924,10198,17925,49461,78255,24007,68368,92888,49774,40179],function(){return e(e.s=917419)}),_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.