PageSourceSearch

https://my.dhlecommerce.nl/account/static/js/167.99bb78d9.chunk.js

js dhlecommerce.nl collected 2026-09-24 08:39:55 UTC 8,843 bytes, 3 lines download raw bytes

1(()=>{(self.webpackChunk_dhl_account_app=self.webpackChunk_dhl_account_app||[]).push([[167],{8899:(function(D,m,n){n.d(m,{$:function(){return h}});var t=n(9123),i=n(48758),a=n(3684);function c(u,d){const o=(0,a.A)(d);let l=0;for(;u&&l<o.length;)if(o[l]===Object.keys(u)[0])u=u[o[l++]];else return!1;return!0}const h=(u,d,o)=>{const{errors:l,isSubmitting:O,isValidating:E}=(0,i.j7)();(0,t.useEffect)(()=>{var e,r,M;O&&!E&&c(l,u)&&((e=o==null?void 0:o.current)==null||e.focus(),(M=(r=d.current)==null?void 0:r.scrollIntoView)==null||M.call(r,{behavior:"smooth",block:"center",inline:"center"}))},[l,u,O,E,d,o])}}),90454:(function(D,m,n){n.d(m,{T:function(){return u},j:function(){return h}});var t=n(23491),i=n(93951),a=n(76348),c=n(71507);const h=({name:d,...o})=>{const{t:l}=(0,a.Bd)();return(0,t.jsx)(c.c,{...o,name:d,type:"email",label:l("inputs.emailInput.emailLabel")})},u=d=>i.Yj().required(d("inputs.emailInput.emailIsRequiredErrorMessage")).email(d("inputs.emailInput.emailIsInvalidErrorMessage")).default("")}),71507:(function(D,m,n){n.d(m,{c:function(){return E}});var t=n(23491),i=n(9123),a=n(48758),c=n(53034),h=n(41437),u=n(8899);const d=/\r(?!\n)|\n(?!\r)/g,o=c.un?"rn":"r";function l(e){return e.replace(d,o).length}const O=(e,r)=>e.name!==r.name||e.label!==r.label||e.required!==r.required||e.disabled!==r.disabled||e.readOnly!==r.readOnly||e.formik.isSubmitting!==r.formik.isSubmitting||Object.keys(e).length!==Object.keys(r).length||(0,a.O6)(e.formik.values,r.name)!==(0,a.O6)(r.formik.values,r.name)||(0,a.O6)(e.formik.errors,r.name)!==(0,a.O6)(r.formik.errors,r.name)||(0,a.O6)(e.formik.touched,r.name)!==(0,a.O6)(r.formik.touched,r.name),E=({name:e,helperText:r,variant:M,autoComplete:L,transformBeforeChange:p,hideMaxLength:g,...v})=>{var C,U;const s=(0,i.useRef)(null),[f]=(0,i.useState)(new Date().getTime());(0,u.$)(e,s,s);const x=L==="off"?`${e}-${f}`:e,I=L==="off"?`off-${f}`:L,B=(U=(C=v.slotProps)==null?void 0:C.htmlInput)==null?void 0:U.maxLength;return(0,t.jsx)(a.B0,{...v,name:e,shouldUpdate:O,children:({field:A,meta:T,form:y})=>{var R;return(0,t.jsxs)(h.az,{sx:{position:"relative",width:v.fullWidth?"100%":"auto"},children:[(0,t.jsx)(h.A_,{...v,...A,name:x,id:x,autoComplete:I,variant:M||"outlined",inputRef:s,onBlur:P=>{var S;y.setFieldTouched(e,!0,!1),y.setFieldValue(e,(S=P.target.value)==null?void 0:S.trim(),y.validateOnBlur)},onChange:P=>{P.target.name=e,p&&(P.target.value=p(P)),A.onChange(P)},error:!!T.error&&T.touched,helperText:T.touched&&((R=T.error)!=null&&R.trim())?T.error:r}),!g&&B&&(0,t.jsx)(h.o5,{variant:"body2",sx:P=>({position:"absolute",bottom:P.spacing(T.error?3:.5),right:P.spacing(.5)}),children:`${A.value?l(A.value):0}/${B}`})]})}})}}),56298:(function(D,m,n){n.d(m,{c:function(){return L},o:function(){return p}});var t=n(23491),i=n(9123),a=n(33339),c=n(74649),h=n(33762),u=n(95549),d=n(17606),o=n(76348),l=n(53333),O=n(81414),E=n(63609);const e=()=>{const{t:g}=(0,o.Bd)(),{palette:{mode:v}}=(0,c.A)(),{isOneTrustLoaded:s,nonce:f}=(0,E.Xb)(),x=(0,i.useCallback)(I=>{if(s){I.preventDefault(),I.stopPropagation();try{(0,O.qn)({nonce:f,enableDarkModeStyle:v==="dark"}),window.OneTrust.ToggleInfoDisplay()}catch(B){(0,l.L$)("ERROR",{id:"one-trust",error:B,context:"cookie-preference-button-click"})}}},[s,f,v]);return{cookiePreferenceId:"ot-sdk-btn",cookiePreferenceText:g("oneTrust.cookieButtonText"),onCookiePreferenceButtonClick:x,showCookiePreferenceButton:s}};var r=n(39731),M=n(41437);const L=({link:g,variant:v="body2"})=>{const{t:s}=(0,o.Bd)();return(0,t.jsx)(a.A,{variant:v,color:"textPrimary",href:s(`legal.${g}.labelLink`),rel:"noreferrer",target:"_blank",children:s(`legal.${g}.labelText`)})},p=({singleLine:g,visibleLinks:v=["company","privacy"],variant:s="body2"})=>{const{t:f}=(0,o.Bd)(),{cookiePreferenceId:x,onCookiePreferenceButtonClick:I,cookiePreferenceText:B,showCookiePreferenceButton:C}=e(),{isOneTrustLoaded:U}=(0,E.Xb)(),{palette:{mode:A,background:{backdrop:T},common:{white:y},grey:R}}=(0,c.A)(),{hideNativeBackdrop:P,showNativeBackdrop:S}=(0,r.c)();(0,i.useEffect)(()=>{var j,k;U&&((k=(j=window.OneTrust)==null?void 0:j.OnConsentChanged)==null||k.call(j,()=>{P()}))},[P,U]);const K=j=>{S({color:T,bottomColor:A==="light"?y:R[100],visibleOnFooter:!0,transition:"fade"}),I(j)},W=v.length>0;return(0,t.jsxs)(h.A,{display:g?"inline-flex":"flex",alignItems:"center",children:[W&&(0,t.jsx)(h.A,{alignItems:"center",flexDirection:g?"row":"column",flexWrap:"wrap",justifyContent:"center",children:v.map((j,k)=>(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(L,{link:j,variant:s}),g&&k<v.length-2&&(0,t.jsx)(u.A,{variant:s,mr:.5,children:","}),g&&v.length-(k+1)===1&&(0,t.jsx)(u.A,{variant:s,m:.5,children:f("legal.andText")})]},`legal-link-${k}`))}),C&&(0,t.jsx)(d.A,{mt:W?3:0,textAlign:"center",children:(0,t.jsx)(a.A,{id:x,variant:s,color:"textPrimary",href:"#cookie",rel:"noreferrer",target:"_blank",onClick:K,whiteSpace:"normal",children:B})})]})}}),71121:(function(D,m,n){n.d(m,{GZ:function(){return h},I1:function(){return u},Zh:function(){return d},yJ:function(){return c}});var t=n(76249),i=n(50376);const a=(o,l={})=>{const O=Object.keys(l).filter(e=>!!l[e]).reduce((e,r)=>({...e,[r]:l[r]}),{}),E=new URLSearchParams(O).toString();return E?`${o}?${E}`:o},c={recoveryLink:o=>a(`/${t.f.RECOVERY}`,{referrer:o}),welcomeLink:()=>`/${t.f.WELCOME}`,signInLink:o=>a(`/${t.f.SIGN_IN}`,{referrer:o}),signUpLink:o=>a(`/${t.f.SIGN_UP}`,{referrer:o}),signUpSuccessLink:()=>`/${t.f.SIGN_UP}/${t.f.SUCCESS}`},h=()=>{const o=(0,i.p)("referrer");return c.signInLink(o)},u=()=>{const o=(0,i.p)("referrer");return c.signUpLink(o)},d=()=>{const o=(0,i.p)("referrer");return c.recoveryLink(o)}}),53611:(function(D,m,n){n.d(m,{m:function(){return E}});
1var t=n(23491),i=n(33762),a=n(33339),c=n(17606),h=n(56957),u=n(76348),d=n(56298),o=n(71121),l=n(1979),O=n(7718);const E=()=>{const{t:e}=(0,u.Bd)(),r=(0,o.I1)();return(0,t.jsxs)(i.A,{alignItems:"center",spacing:1,children:[(0,O.G7)("signIn.c2cButton")&&(0,t.jsxs)(l.m,{children:[(0,t.jsxs)("span",{children:[e("account.signInFooter.noAccountYetText")," "]}),(0,t.jsx)(a.A,{component:h.N_,to:r,underline:"always",children:e("account.signInFooter.signUpButton")})]}),(0,O.G7)("signIn.businessOnboardingLink")&&(0,t.jsxs)(l.m,{children:[(0,t.jsxs)("span",{children:[e("account.signInFooter.noAccountYetBusinessText")," "]}),(0,t.jsx)(a.A,{href:e("account.signInFooter.signUpBusinessLink"),underline:"always","data-test":"sign-up-business-link",children:e("account.signInFooter.signUpButton")})]}),(0,t.jsx)(c.A,{mt:1,children:(0,t.jsx)(d.o,{singleLine:!0})})]})}}),1979:(function(D,m,n){n.d(m,{m:function(){return a}});var t=n(95549),i=n(13542);const a=(0,i.Ay)(t.A)(({theme:c})=>({color:c.palette.mode==="dark"?c.palette.common.white:c.palette.common.black}))}),50376:(function(D,m,n){n.d(m,{p:function(){return i}});var t=n(25095);const i=a=>new URLSearchParams((0,t.zy)().search).get(a)}),45167:(function(D,m,n){n.d(m,{RecoveryPage:function(){return v}});var t=n(23491),i=n(9123),a=n(76348),c=n(25095),h=n(33762),u=n(17606),d=n(73156),o=n(28873),l=n(53611),O=n(71121),E=n(67164),e=n(93951),r=n(48758),M=n(90454),L=n(47025);const p=({setAccountEmail:s})=>{const{t:f}=(0,a.Bd)(),{refetch:x}=(0,L.pq)({query:{enabled:!1}}),{mutateAsync:I}=(0,L.Kp)(),B=e.Ik({email:(0,M.T)(f)}),A={email:new URLSearchParams(window.location.search).get("email")||""},T=async(y,{setSubmitting:R,setFieldError:P})=>{try{await I({data:y}),await x(),s(y.email)}catch{P("email",f("account.recoveryPage.errorMessage")),R(!1)}};return(0,t.jsx)(r.l1,{initialValues:A,validationSchema:B,onSubmit:T,validateOnBlur:!1,validateOnChange:!1,children:({isSubmitting:y})=>(0,t.jsx)(r.lV,{children:(0,t.jsxs)(h.A,{spacing:2,children:[(0,t.jsx)(M.j,{name:"email",variant:"filled",fullWidth:!0}),(0,t.jsx)(E.A,{type:"submit","data-test":"send-email-button",variant:"contained",fullWidth:!0,color:"primary",disabled:y,children:(0,t.jsx)("span",{children:f("account.recoveryPage.button")})})]})})})};var g=n(1979);const v=()=>{const{t:s}=(0,a.Bd)(),[f,x]=(0,i.useState)(),I=(0,c.Zp)(),B=(0,O.GZ)(),C=()=>{I(B)};return(0,t.jsx)(o.Y,{title:s("account.recoveryPage.titleText"),onBack:(0,d.i)()?C:void 0,children:(0,t.jsxs)(h.A,{spacing:2,children:[(0,t.jsx)(g.m,{variant:"h4",gutterBottom:!0,children:s("account.recoveryPage.titleText")}),f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.m,{gutterBottom:!0,"data-test":"sent-recovery",children:s("account.recoveryPage.mailSendToText",{email:f})}),(0,t.jsx)(g.m,{gutterBottom:!0,variant:"body2",children:s("account.recoveryPage.itTakesSomeTimeText")})]}),!f&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.m,{gutterBottom:!0,children:s("account.recoveryPage.explanationText")}),(0,t.jsx)(p,{setAccountEmail:x})]}),(0,t.jsx)(u.A,{pt:2,pb:8,children:(0,t.jsx)(l.m,{})})]})})}})}]);})();
2
3//# sourceMappingURL=167.99bb78d9.chunk.js.map

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.