PageSourceSearch

https://newbalance.cz/_next/static/chunks/pages/customer/change-data-d0302e1255047484.js

js newbalance.cz collected 2026-10-03 22:12:08 UTC 12,570 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3215],{76239:function(e,a,t){"use strict";var r,n=t(11720);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var a=1;a<arguments.length;a++){var t=arguments[a];for(var r in t)({}).hasOwnProperty.call(t,r)&&(e[r]=t[r])}return e},i.apply(null,arguments)}a.Z=function(e){return n.createElement("svg",i({className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"#000"},e),r||(r=n.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 5l7 7-7 7"})))}},67707:function(e,a,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/customer/change-data",function(){return t(69369)}])},84584:function(e,a,t){"use strict";t.d(a,{Z:function(){return d}});var r=t(97997),n=(t(11720),t(51759)),i=t(55437),l=t(64897),o=t(4158),s=t.n(o),u=function(e){var a=e.last,t=e.item;return(0,r.BX)("li",{className:s().item,children:[t.url?(0,r.tZ)(l.Z,{href:t.url,"aria-current":a?"page":void 0,children:t.name}):t.name,a?null:(0,r.tZ)("span",{className:s().spacer,children:"/"})]})},c=t(69914),d=function(e){var a=e.items,t=e.wide,l=e.hideHomeAndCurrent,o=(0,n.Z)("common").t,d=(0,c.hp)(),m=a||d;return m?(0,r.tZ)(i.Z,{className:t?s().wide:void 0,children:(0,r.tZ)("nav",{"aria-label":"Breadcrumb",className:s().root,children:(0,r.tZ)("ol",{className:s().list,children:l?m.slice(0,-1).map((function(e,a){return(0,r.tZ)(u,{item:e,last:m.length-2===a},a)})):(0,r.BX)(r.HY,{children:[(0,r.tZ)(u,{item:{name:o("new-balance"),url:"/"}}),m.map((function(e,a){return(0,r.tZ)(u,{item:e,last:m.length-1===a},a)}))]})})})}):null}},81817:function(e,a,t){"use strict";var r=t(47568),n=t(99534),i=t(10253),l=t(51351),o=t(97582),s=t(97997),u=t(11720),c=t(51759),d=t(69914),m=t(8154),p=t(16388),f=t(13340),h=t(95645),Z=t(3438),v=t(40109),b=t(83664),w=t(68035),g=t(66462),N=function(e){e=null!==e?e:(0,l.Z)(new TypeError("Cannot destructure undefined"));var a,t,w,N=(0,c.Z)("common").t,y=(0,m.kD)().mutateAsync,I=(0,m.k1)(),_=I.data,L=I.refetch,k=null===_||void 0===_||null===(a=_.customer)||void 0===a?void 0:a.permissions,x=k&&k.updateUser||!k,C=(0,d.Lb)(),P=(0,g.I2)(),S=(0,g.wv)(),B=(0,u.useCallback)(function(){var e=(0,r.Z)((function(e){var a,t,r;return(0,o.__generator)(this,(function(l){switch(l.label){case 0:e.email,a=(0,n.Z)(e,["email"]),l.label=1;case 1:return l.trys.push([1,4,,5]),[4,y({user:a})];case 2:return l.sent(),[4,L()];case 3:return l.sent(),C.actions.notificationAdd({title:N("data-changed")}),[3,5];case 4:throw t=l.sent(),r=(0,i.Z)(t.map((function(e){var a=e.extensions;return null===a||void 0===a?void 0:a.status})),1),403===r[0]&&C.actions.notificationAdd({title:N("data-not-changed"),type:"error"}),(0,p.Wg)(t);case 5:return[2]}}
1))}));return function(a){return e.apply(this,arguments)}}(),[]),X=(0,u.useMemo)((function(){var e,a=null===_||void 0===_||null===(e=_.customer)||void 0===e?void 0:e.user;return a?{email:a.email,firstName:a.firstName,lastName:a.lastName,telephone:a.telephone}:{}}),[null===_||void 0===_||null===(t=_.customer)||void 0===t?void 0:t.user]);return(null===_||void 0===_||null===(w=_.customer)||void 0===w?void 0:w.user)?(0,s.tZ)(b.Z,{children:(0,s.BX)(Z.Z,{onSubmit:B,defaultValues:X,mode:"all",children:[(0,s.tZ)(v.kI,{children:N("my-data-edit-info")}),(0,s.BX)(v.C3,{children:[(0,s.tZ)(h.Z,{name:"email",label:N("email"),id:"email",type:"email",validate:P(N("error-email")),floatingLabel:!0,required:!0,disabled:!0}),(0,s.tZ)(h.Z,{name:"firstName",id:"firstName",label:N("firstName"),floatingLabel:!0,required:!0,autoCapitalize:"on",disabled:!x}),(0,s.tZ)(h.Z,{name:"lastName",id:"lastName",label:N("lastName"),floatingLabel:!0,required:!0,autoCapitalize:"on",disabled:!x}),(0,s.tZ)(h.Z,{name:"telephone",id:"telephone",label:N("telephone"),required:!0,floatingLabel:!0,validate:S(N("error-telephone")),size:"small",inputMode:"tel",disabled:!x}),(0,s.tZ)(v.Zg,{children:(0,s.tZ)(f.Z,{width:"full",disabled:!x,"data-customer_change_data_submit_button":!0,children:N("save-changes")})})]})]})}):null};N.Metadata=w.Z,N.pagePath="/customer/change-data",a.Z=N},47418:function(e,a,t){"use strict";t.d(a,{Z:function(){return I}});var r=t(14924),n=t(51351),i=t(97997),l=t(11720),o=t(94184),s=t.n(o),u=t(51759),c=t(97802),d=t(76239),m=t(16195),p=t(37517),f=t(8154),h=t(64897),Z=t(97431),v=t(10084),b=t(38348),w=t(10722),g=t(72694),N=t.n(g),y=function(e){var a=e.beforeIcon,t=e.children,n=e.href,o=e.onClick,u=(0,c.tv)(),m=(0,l.useMemo)((function(){return"string"===typeof n&&u.pathname.includes(n)}),[u.pathname,n]);return(0,i.tZ)("li",{className:s()(N().menuItem,(0,r.Z)({},N().menuItemActive,m)),"data-qa-customer_menu_item":n,children:(0,i.BX)(h.Z,{href:n,onClick:o,children:[(0,i.BX)("span",{children:[a?(0,i.tZ)(Z.Z,{src:a,layout:"fixed",width:"auto",alt:"",height:"auto",className:N().listIcon}):null,t]}),(0,i.tZ)(b.Z,{content:d.Z,className:N().menuItemArrow})]})})},I=function(e){e=null!==e?e:(0,n.Z)(new TypeError("Cannot destructure undefined"));var a,t=(0,u.Z)("common").t,r=(0,m.ON)(),o=(0,f.nW)(void 0,{enabled:r.isLoggedIn}).data,s=(0,f.k1)(void 0,{enabled:r.isLoggedIn}).data,d=(0,c.tv)(),h=(0,l.useCallback)((function(){r.actions.customerLogout(),d.push("/")}),[]),Z=(0,l.useMemo)((function(){var e;return(null!==(e=null===o||void 0===o?void 0:o.features)&&void 0!==e?e:[]).includes(p.Te.LoyaltyCard)}),[null===o||void 0===o?void 0:o.features]),b=(0,l.useMemo)((function(){var e;return(null!==(e=null===o||void 0===o?void 0:o.features)&&void 0!==e?e:[]).includes(p.Te.Rga)}),[null===o||void 0===o?void 0:o.features]),g=(0,w.mz)(b);return(0,i.BX)("div",{className:N().root,children:[(0,i.BX)("ul",{className:N().menu,children:[(0,i.tZ)("li",{className:N().welcome,"data-qa-customer_menu_welcome":!0,children:(0,i.BX)("span",{children:[t("welcome")," ",null===s||void 0===s||null===(a=s.customer)||void 0===a?void 0:a.user.firstName,"!"]})}),(0,i.tZ)(y,{href:"/customer/change-data",children:t("my-data")}),(0,i.tZ)(y,{href:"/customer/change-password",children:t("change-password")}),(0,i.tZ)(y,{href:"/customer/addresses",children:t("my-addresses")}),(0,i.tZ)(y,{href:"/customer/orders",children:t("my-orders")}),b&&g.length>0?(0,i.tZ)(y,{href:"/customer/rga-advanced",children:t((0,w.EA)(g))}):null,Z?(0,i.tZ)(y,{href:"/customer/club",children:t("spartavity")}):null,(0,i.tZ)(y,{href:"/repository",children:t("wishlist")}),(0,i.tZ)(y,{href:"/customer/reviews",children:t("reviews")}),(0,i.tZ)(y,{href:"/customer/agreements",children:t("terms-and-conditions")}),(0,i.tZ)(y,{href:"/customer/delete-account",children:t("delete-account")})]}),(0,i.tZ)("div",{className:N().actions,children:(0,i.tZ)(v.Z,{variant:"tertiary",size:"large",width:"full",onClick:h,"data-customer_log_out_button":!0,children:t("logout")})})]})}},43056:function(e,a,t){"use strict";t.d(a,{Z:function(){return y}});
1var r=t(14924),n=t(26042),i=t(69396),l=t(99534),o=t(10253),s=t(97997),u=t(11720),c=t(89211),d=t(5925),m=t(33144),p=t(29333),f=t.n(p),h=t(38348),Z=t(432),v=t(51759),b={withLabel:f().withLabel,passwordIcon:f().passwordIcon,passwordIconShow:f().passwordIconShow},w=function(e){var a=e.onToggle,t=e.showPassword,n=e.classNames,i=e.hasLabel,l=(0,v.Z)("common").t,o=(0,d.Yd)(b,n);return(0,s.tZ)("span",{className:(0,d.ZP)(f().toggle,(0,r.Z)({},o.withLabel,i)),onClick:a,"data-customer_show_password":!t,children:l(t?"hide":"show")})},g={input:f().input,inputIsPassword:f().inputIsPassword,inputDisabled:f().inputDisabled,inputSizeSmall:f().inputSizeSmall,inputError:f().inputError,inputSizeLarge:f().inputSizeLarge,inputVariantPrimary:f().inputVariantPrimary,inputVariantSecondary:f().inputVariantSecondary,inputVariantTertiary:f().inputVariantTertiary,floatingLabelInput:f().floatingLabelInput,root:f().root,wrapper:f().wrapper,prefix:f().prefix,inputWrapper:f().inputWrapper,label:f().label,passwordIcon:f().passwordIcon,passwordIconShow:f().passwordIconShow,withLabel:f().withLabel,errorIcon:f().errorIcon,floatingLabel:f().floatingLabel,floating:f().floating,suffix:f().suffix,info:f().info},N=(0,u.forwardRef)((function(e,a){var t=e.className,p=(e.children,e.onChange),f=e.label,v=e.prefix,b=e.suffix,N=e.id,y=e.type,I=e.error,_=e.size,L=e.variant,k=void 0===L?"primary":L,x=e.floatingLabel,C=e.placeholder,P=e.onBlur,S=e.info,B=e.autoCapitalize,X=void 0===B?"off":B,z=e.classNames,V=(e.mask,e.alwaysShowMask,(0,l.Z)(e,["className","children","onChange","label","prefix","suffix","id","type","error","size","variant","floatingLabel","placeholder","onBlur","info","autoCapitalize","classNames","mask","alwaysShowMask"])),T=(0,o.Z)((0,c.Z)(!1),2),E=T[0],A=T[1],O=(0,d.Yd)(g,z),R=I?(0,Z.i)(N,V.name):void 0,D=(0,u.useRef)(!1),Y=(0,u.useRef)(null),M=(0,u.useState)(!1),W=M[0],j=M[1],F=(0,u.useCallback)((function(e){p&&p(e.target?e.target.value:e)}),[p]),U=function(e){j(!0)},q=function(e){if(D.current)return Y.current&&Y.current.focus(),void(D.current=!1);j(!1),P&&P(e)},H=(0,u.useMemo)((function(){var e;return(0,i.Z)((0,n.Z)({className:(0,d.ZP)(O.input,(e={},(0,r.Z)(e,O.inputIsPassword,"password"===y),(0,r.Z)(e,O.inputDisabled,V.disabled),(0,r.Z)(e,O.inputSizeSmall,"small"===_),(0,r.Z)(e,O.inputError,!!I),(0,r.Z)(e,O.inputSizeLarge,"large"===_),(0,r.Z)(e,O.inputVariantPrimary,"primary"===k),(0,r.Z)(e,O.inputVariantSecondary,"secondary"===k),(0,r.Z)(e,O.inputVariantTertiary,"tertiary"===k),(0,r.Z)(e,O.floatingLabelInput,x),e)),onChange:F,onFocus:U,onBlur:q},V),{value:V.value?"".concat(V.value):"",defaultValue:V.defaultValue?"".concat(V.defaultValue):void 0})}),[F,V,_,x,I]);return"number"===y&&console.error("Consider to use NumberInput component for this type of field"),(0,s.BX)("div",{className:(0,d.ZP)(O.root,t),children:[(0,s.BX)("div",{className:O.wrapper,children:[v?(0,s.tZ)("div",{className:O.prefix,children:v}):null,(0,s.BX)("div",{className:O.inputWrapper,children:[!x&&f?(0,s.tZ)("label",{htmlFor:N,className:O.label,children:f}):null,(0,s.tZ)("input",(0,i.Z)((0,n.Z)({ref:a,autoComplete:"off",autoCorrect:"off",autoCapitalize:X,spellCheck:"false",id:N,placeholder:x?void 0:C},H),{type:E?"text":y,"aria-describedby":null!==R&&void 0!==R?R:V["aria-describedby"],"aria-invalid":I?"true":V["aria-invalid"]})),"password"!==y||I?null:(0,s.tZ)(w,{onToggle:A,hasLabel:!!f,showPassword:E,classNames:O}),I?(0,s.tZ)(h.Z,{content:m.Z,className:O.errorIcon,onClick:A}):null,x&&f?(0,s.tZ)("label",{htmlFor:N,className:(0,d.ZP)(O.floatingLabel,(0,r.Z)({},O.floating,H.value||W)),children:f}):null]}),b?(0,s.tZ)("div",{className:O.suffix,children:b}):null]}),I?(0,s.tZ)(Z.Z,{error:I,id:R}):null,S?(0,s.tZ)("p",{className:O.info,children:S}):null]})}));N.displayName="TextInput";var y=N},42421:function(e,a,t){"use strict";var r=t(97997),n=(t(11720),t(79535)),i=t(55437),l=t(5925),o={container:""};a.Z=function(e){var a=e.children,t=e.withoutContainer,s=e.withoutBreadcrumbs,u=e.wideBreadcrumbs,c=e.classNames,d=(0,l.Yd)(o,c);return(0,r.BX)(r.HY,{children:[s?null:(0,r.tZ)(n.Z,{wide:u}),t?a:(0,r.tZ)(i.Z,{classNames:{container:d.container},children:a})]})}},4455:function(e,a,t){"use strict";t.d(a,{Z:function(){return r.Z}});var r=t(42421)},69369:function(e,a,t){"use strict";t.r(a),t.d(a,{__N_SSP:function(){return i}});var r=t(87042),n=t(3723),i=!0;a.default=(0,n.v)(r.Z)},4158:function(e){e.exports={root:"Ra1rCJpETr",wide:"tgdgj0ucOh",list:"_6XviIua45a",item:"azPTPOgXBL",spacer:"So-arPZct1"}},72694:function(e){e.exports={root:"o07XhPg0dK",actions:"_6nNpUC8Gy-",menu:"_5LNNI2dR3B",menuItem:"t2FSYIO3aX",menuItemActive:"l5BOaT2wr5",welcome:"Sm9JZAU0d6",menuItemArrow:"_89Vd58v607"}},1314:function(e){e.exports={root:"Mzs2rnRnad",wrapper:"_1raEyfIlrl",actions:"_0I3Ok5VDN4",content:"kxKlVs-j4y",headerText:"wrb9UyZ-Ck",backArrow:"gDDZajFD8b",header:"RFIT33kBoQ"}},71685:function(e){e.exports={error:"x6xb0bOU7P"}}
1,29333:function(e){e.exports={root:"_208-ys1XEV",label:"WLa9Pe4id-",passwordIcon:"F9x3z8Otkp",passwordIconShow:"im8B-a1V76",input:"Exfqp-BJ2h",inputSizeSmall:"fSAQSROhpX",toggle:"GrP8cZd1h-",inputDisabled:"HwgVLBz-JT",floating:"XAhUv6aBrt",inputIsPassword:"_9ooaeRpzZn",withLabel:"Qa6brxvbXu",inputSizeLarge:"B7-HT9XvxA",inputVariantPrimary:"pKots5cSxp",floatingLabel:"YaPQRRPIST",info:"t7teorsf-d",inputError:"_7u28-4PFxp",error:"bYcu8aXVgs",errorIcon:"UdPxbcrJLv",wrapper:"_0Kel-eNhLm",inputWrapper:"n1viyYdP8X",prefix:"YJEPe-A5Pl",suffix:"k8fXLBaWev"}},58428:function(e){e.exports={root:"FHhfCbDDj1",header:"_1OzfYrhi7C",styled:"BkdtKLsYza",prose:"OomjeyZi9B","md:prose":"ka53bRpuGD",headerWrapper:"I3-mjpAmUK"}}},function(e){e.O(0,[5973,6651,9294,9774,2888,179],(function(){return a=67707,e(e.s=a);var a}));var a=e.O();_N_E=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.