PageSourceSearch

https://www.sarstedt.com/_next/static/chunks/pages/[country]/customer/dashboard-c4387199abeb9ca2.js

js sarstedt.com collected 2026-10-03 21:32:44 UTC 11,095 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4310],{30102:(e,s,r)=>{"use strict";r.r(s),r.d(s,{default:()=>j});var a=r(37876),i=r(20547),d=r(83388),t=r(14430),l=r(70332),n=r(5076),c=r(14169),o=r(30647),u=r(33772),p=r(52913),x=r(89099),m=r(48230),h=r.n(m);let j=({customer:e})=>{let{t:s}=(0,p.A)("common"),r=e.addresses.find(s=>s.id===e.defaultBillingAddressId),m=(0,x.useRouter)(),{language:j,country:f}=(0,t.JK)(m),{customerConfig:{canEditBillingAddress:g}}=(0,i.cN)(),{region:b}=(0,d.A)();if(!r)return(0,a.jsxs)(n.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(c.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(o.E,{fw:700,tt:"uppercase",mb:"12px",children:s("forms:billingAddressHeadline")}),(0,a.jsx)(h(),{href:`/${j}/${(0,t.$9)(f)}/customer/address`,children:(0,a.jsx)(o.E,{fz:"sm",td:"underline",children:s("editLabel")})})]}),(0,a.jsx)(o.E,{children:s("billingAddressNoDefault")})]});let{company:w,firstName:E,lastName:$,streetName:A,postalCode:v,city:N,country:y}=r,C=b.isNordic?E:`${E} ${$}`;return(0,a.jsxs)(n.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(c.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(o.E,{fw:700,tt:"uppercase",mb:"12px",children:s("forms:billingAddressHeadline")}),g?(0,a.jsx)(h(),{href:`/${j}/${(0,t.$9)(f)}/customer/address`,children:(0,a.jsx)(o.E,{fz:"sm",td:"underline",children:s("editLabel")})}):(0,a.jsx)(u.m,{label:s("billingAddressEditableDisabled"),children:(0,a.jsx)(o.E,{fz:"sm",td:"underline",className:"text-gray-400",style:{cursor:"not-allowed"},children:s("editLabel")})})]}),"PL"===f&&w&&(0,a.jsx)(o.E,{fw:500,children:w}),(0,a.jsx)(o.E,{children:C}),(0,a.jsx)(o.E,{children:A}),(0,a.jsxs)(o.E,{children:[v," ",N]}),(0,a.jsx)(o.E,{children:(0,l.uj)(y)})]})}},58483:(e,s,r)=>{"use strict";r.r(s),r.d(s,{__N_SSP:()=>T,default:()=>H});var a=r(37876),i=r(47497),d=r(14169),t=r(30647),l=r(5076),n=r(39306),c=r(66402),o=r(9163),u=r(77328),p=r.n(u),x=r(48230),m=r.n(x),h=r(75656),j=r(19581),f=r(95068),g=r(51885),b=r(14430),w=r(70332),E=r(22408),$=r(83388),A=r(52913),v=r(89099),N=r(14232);let y=(0,r(8106).v)(e=>({upgradeAvailable:!1,validated:!1,setUpgradeAvailable:s=>e({upgradeAvailable:s}),markValidated:()=>e({validated:!0,upgradeAvailable:!1}),reset:()=>e({upgradeAvailable:!1,validated:!1})}));async function C(e){let s=y.getState();if(s.validated)return{resolved:!0,shouldContinue:!1};let r=await fetch("/api/customer/validate-email-domain",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:e})});if(!r.ok)return{resolved:!1,shouldContinue:!0};let{valid:a}=await r.json();if(!a)return s.setUpgradeAvailable(!1),{resolved:!0,shouldContinue:!1};let i=await fetch("/api/customer/upgrade-status");if(!i.ok)return{resolved:!1,shouldContinue:!0};let{status:d}=await i.json();return"upgraded"===d?(s.markValidated(),{resolved:!0,shouldContinue:!1}):"pending"===d?(s.setUpgradeAvailable(!1),{resolved:!0,shouldContinue:!0}):(s.setUpgradeAvailable(!0),{resolved:!0,shouldContinue:!1})}var L=r(30102),k=r(15819);let _=()=>{let{t:e}=(0,A.A)("common"),s=(0,v.useRouter)(),{language:r,country:i}=(0,b.JK)(s),l=[e("upgradeBenefits1"),e("upgradeBenefits2"),e("upgradeBenefits3"),e("upgradeBenefits4")];return(0,a.jsxs)(d.s,{bg:"#58C67726",p:"24px",w:"100%",direction:"column",gap:"lg","data-cy":"upgrade-account",children:[(0,a.jsxs)(d.s,{direction:"column",gap:"6px",children:[(0,a.jsx)(t.E,{color:"#2A7345",fw:700,tt:"uppercase",className:"text-[16px] leading-[22px] tracking-[0%]",children:e("accountUpgradeHeadline")}),(0,a.jsx)(t.E,{color:"#2A7345",fw:400,className:"font-normal text-[18px] leading-[18px] tracking-[0%]",children:e("accountUpgradeText")})]}),(0,a.jsxs)(d.s,{justify:"space-between",align:"end",children:[(0,a.jsx)(d.s,{direction:"column",gap:"6px",children:l.map((e,s)=>(0,a.jsxs)(d.s,{align:"center",gap:"6px",children:[(0,a.jsx)(g.Qr,{}),(0,a.jsx)(t.E,{color:"#2A7345",fw:400,className:"font-normal text-[18px] leading-[18px] tracking-[0%]",children:e})]},s))}),(0,a.jsx)(m(),{href:`/${r}/${(0,b.$9)(i)}/customer/upgrade`,children:(0,a.jsx)("button",{className:"font-normal text-[18px] leading-[21px] tracking-[0%] text-black underline decoration-solid decoration-[0%] decoration-black ",children:e("accountUpgradeLinkLabel")})})]})]})},B=({customer:e})=>{let{t:s}=(0,A.A)("common"),{firstName:r,lastName:i,customerNumber:c,custom:o}=e,u=s(o?.fields?.membersClubOptIn?"activeLabel":"inactiveLabel"),p=(0,v.useRouter)(),{language:x,country:h}=(0,b.JK)(p),{region:j}=(0,$.A)(),f=j.isNordic?r:`${r} ${i}`;return(0,a.jsxs)(l.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(d.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(t.E,{fw:700,tt
1:"uppercase",mb:"12px","data-cy":"user-dashboard",children:s("personalDataHeadline")}),(0,a.jsx)(m(),{href:`/${x}/${(0,b.$9)(h)}/customer/profile`,children:(0,a.jsx)(t.E,{fz:"sm",td:"underline",children:s("editLabel")})})]}),(0,a.jsxs)(d.s,{wrap:"wrap",gap:"xs",align:"center",children:[(0,a.jsxs)(t.E,{children:[s("forms:nameLabel"),":"]}),(0,a.jsx)(t.E,{children:f})]}),(0,a.jsxs)(d.s,{wrap:"wrap",gap:"xs",align:"center",children:[(0,a.jsxs)(t.E,{children:[s("forms:emailLabel"),":"]}),(0,a.jsx)(t.E,{children:e.email})]}),(0,a.jsxs)(t.E,{my:"12px",children:[s("forms:passwordLabel"),": ****"]}),(0,a.jsxs)(d.s,{wrap:"wrap",gap:"xs",align:"center",children:[(0,a.jsxs)(t.E,{children:[s("webshopCustomerNumberLabel"),":"]}),(0,a.jsx)(t.E,{children:c||"-"})]}),(0,a.jsxs)(d.s,{wrap:"wrap",gap:"xs",align:"center",children:[(0,a.jsxs)(t.E,{children:[s("sarstedtCustomerNumberLabel"),":"]}),(0,a.jsx)(t.E,{children:o?.fields?.sarstedtCustomerNumber||"-"})]}),(j.isUS||j.isNordic)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(n.c,{mt:"md"}),(0,a.jsx)(t.E,{fw:700,tt:"uppercase",mt:"md","data-cy":"user-dashboard",children:j.isUS?s("forms:membersClubMarketingCommunication"):"MARKETING COMMUNICATION"}),(0,a.jsxs)(t.E,{children:[s("forms:optInLabel"),": ",u]})]})]})},U=()=>{let{t:e}=(0,A.A)("common"),{data:s,isLoading:r}=(0,h.Ay)("/api/commercetools/customer/get-orders"),i=(0,v.useRouter)(),{language:n,country:o}=(0,b.JK)(i);return(0,a.jsxs)(l.t,{withBorder:!0,p:"24px",radius:"xs",children:[(0,a.jsxs)(d.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(t.E,{fw:700,tt:"uppercase",mb:"12px",children:e("orderOverviewHeadline")}),(0,a.jsx)(m(),{href:`/${n}/${(0,b.$9)(o)}/customer/orders`,children:(0,a.jsx)(t.E,{fz:"sm",td:"underline",children:e("editLabel")})})]}),(0,a.jsx)(t.E,{children:e("orderOverviewDescription")}),(0,a.jsxs)(t.E,{mt:"12px",children:[e("totalOrdersLabel"),": ",r?(0,a.jsx)(c.a,{size:"xs",color:"gray"}):s?.length]})]})},S=({customer:e})=>{let{t:s}=(0,A.A)("common"),r=(0,v.useRouter)(),{language:i,country:n}=(0,b.JK)(r),{region:c}=(0,$.A)(),o=e.addresses.find(s=>s.id===e.defaultShippingAddressId);if(!o)return(0,a.jsxs)(l.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(d.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(t.E,{fw:700,tt:"uppercase",mb:"12px",children:s("shippingAddressHeadline")}),(0,a.jsx)(m(),{href:`/${i}/${(0,b.$9)(n)}/customer/address`,children:(0,a.jsx)(t.E,{fz:"sm",td:"underline",children:s("editLabel")})})]}),(0,a.jsx)(t.E,{children:s("shippingAddressNoDefault")})]});if(e.defaultShippingAddressId===e.defaultBillingAddressId)return(0,a.jsxs)(l.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(d.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(t.E,{fw:700,tt:"uppercase",mb:"12px",children:s("shippingAddressHeadline")}),(0,a.jsx)(m(),{href:`/${i}/${(0,b.$9)(n)}/customer/address`,children:(0,a.jsx)(t.E,{fz:"sm",td:"underline",children:s("editLabel")})})]}),(0,a.jsx)(t.E,{children:s("forms:sameAsBillingAddress")})]});let{company:u,salutation:p,firstName:x,lastName:h,streetName:j,postalCode:f,city:g,country:N}=o,y=(0,E.$P)(p,s),C=c.isNordic?x:`${y} ${x} ${h}`;return(0,a.jsxs)(l.t,{withBorder:!0,p:"24px",className:"min-w-[33%] flex-grow-0",radius:"xs",children:[(0,a.jsxs)(d.s,{justify:"space-between",wrap:"wrap",children:[(0,a.jsx)(t.E,{fw:700,tt:"uppercase",mb:"12px",children:s("shippingAddressHeadline")}),(0,a.jsx)(m(),{href:`/${i}/${(0,b.$9)(n)}/customer/address`,children:(0,a.jsx)(t.E,{fz:"sm",td:"underline",children:s("editLabel")})})]}),"PL"===n&&u&&(0,a.jsx)(t.E,{fw:500,children:u}),(0,a.jsx)(t.E,{children:C}),(0,a.jsx)(t.E,{children:j}),(0,a.jsxs)(t.E,{children:[f," ",g]}),(0,a.jsx)(t.E,{children:(0,w.uj)(N)})]})};var T=!0;function H(e){let{t:s}=(0,A.A)("common"),{customer:r}=e,t=(0,v.useRouter)(),{language:l,country:n}=(0,b.JK)(t),c=r.custom?.fields.country==="US"&&!(0,i.GX)(r.custom?.fields?.sarstedtCustomerNumber),{upgradeAvailable:u}=function(e,s){let r=(0,N.useRef)(),a=(0,N.useRef)(!0),i=y();return(0,N.useEffect)(()=>
1{if(a.current=!0,!s||!e||i.validated)return;let d=async()=>{let s;if(a.current){try{s=await C(e)}catch{s={resolved:!1,shouldContinue:!0}}if(a.current){if(!s.resolved&&s.shouldContinue){r.current=setTimeout(d,12e4);return}s.resolved&&s.shouldContinue&&(r.current=setTimeout(d,12e4))}}};return d(),()=>{a.current=!1,r.current&&(clearTimeout(r.current),r.current=void 0)}},[s,e,i.validated]),{upgradeAvailable:i.upgradeAvailable}}(r.email,!!c),x={seo:{title:s("seo:dashboardTitle"),description:s("seo:dashboardDescription"),canonicalUrl:`${(0,f.$_)()}/${l}/${(0,b.$9)(n)}/customer/dashboard`,hreflang:{currentUrl:`${(0,f.$_)()}/${l}/${(0,b.$9)(n)}/customer/dashboard`,languageSlugs:{en:"/customer/dashboard",de:"/customer/dashboard",ru:"/customer/dashboard",ja:"/customer/dashboard",pt:"/customer/dashboard",fr:"/customer/dashboard",es:"/customer/dashboard"}},robots:{noFollow:!0,noIndex:!0}}},m=(0,f.cp)(x);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(p(),{children:(0,a.jsx)(a.Fragment,{children:m})}),(0,a.jsx)(j.Qp,{items:[{label:"Home",href:`/${l}/${(0,b.$9)(n)}`},{label:`${s("customerAccountHeadline")}`}],baseUrl:(0,f.$_)()}),(0,a.jsxs)(d.s,{justify:"space-between",w:"100%",direction:{base:"column",sm:"row"},children:[(0,a.jsx)(j.lA,{}),(0,a.jsxs)(d.s,{gap:"lg",wrap:"wrap",maw:"952px",my:"lg",children:[(0,a.jsx)("h1",{className:"m-0 font-inter font-normal text-[44px] leading-[52px] tracking-[0] align-bottom",children:s("customerAccountHeadline")}),u&&(0,a.jsx)(_,{}),"PL"===n&&r.custom?.fields?.nip&&(0,a.jsx)(k.G,{nip:r.custom.fields.nip,customerId:r.id,initialEligibilityStatus:r.custom.fields.eligibilityStatus||null,initialValidationTimestamp:r.custom.fields.lastValidationTimestamp||null}),(0,a.jsxs)(o.r,{cols:2,spacing:"lg",breakpoints:[{maxWidth:"48rem",cols:1,spacing:"md"}],w:"100%",children:[(0,a.jsx)(B,{customer:e.customer}),(0,a.jsx)(U,{}),(0,a.jsx)(L.default,{customer:e.customer}),(0,a.jsx)(S,{customer:e.customer})]})]})]})]})}},88432:(e,s,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/[country]/customer/dashboard",function(){return r(58483)}])}},e=>{e.O(0,[5819,636,6593,8792],()=>e(e.s=88432)),_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.