1"use strict";(self.webpackChunk_footlocker_frontend=self.webpackChunk_footlocker_frontend||[]).push([[2926],{87243(e,t,r){r.d(t,{f:()=>s});var n=r(65637),o=r(73416),a=r.n(o),s=function(e){return function(t,r,o){var s=r().config.remote.useAESChangePasswordEndpoint;return o({method:s?"POST":"PUT",url:s?"/zgw/accounts-experience/v1/accounts/change-password":"/api/users/change-password",body:e}).then(function(e){return a().has(e,"errors.0")||t((0,n.ri)({logoutMessage:"globalLabels.signoutSuccessMessage"})),e})}}},75927(e,t,r){r.d(t,{A:()=>P});var n=r(67308),o=r(33991),a=r(10538),s=r(18329),i=r(23694),l=r(11501),c=r(2232),u=r(65399),d=r(56987),p=r(21085);function f(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 m(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e){if(e){if("string"==typeof e)return f(e,void 0);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 f(e,void 0)}}(e)||function(){throw TypeError(`Invalid attempt to spread non-iterable instance. 2In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}var g=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(e){var t,o,a;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return o=r,a=[e],o=b(o),m(t=function(e,t){if(t&&("object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,h()?Reflect.construct(o,a||[],b(this).constructor):o.apply(this,a)),"handleHidePassword",function(){t.setState({showPassword:!1})}),m(t,"handleShowPassword",function(){t.setState({showPassword:!0})}),m(t,"handleHideIndicator",function(){t.setState({showIndicator:!1})}),m(t,"handleShowIndicator",function(){t.setState({showIndicator:!0})}),m(t,"handleValidation",function(e){var r=!!e&&!(0,d.Bp)(10)(e),n=!!e&&!(0,d.Ru)(100)(e),o=!(0,d.X5)(e),a=!(0,d.SB)(e)&&!(0,d.KG)(e),s=!(0,d._L)(e),i=0;r&&n&&i++,o&&i++,a&&i++,s&&i++,t.setState({hasMinLength:r,hasMaxLength:n,hasNumber:o,hasSpecialChar:a,hasUpperAndLowerCase:s,strengthBarProgress:i})}),m(t,"handleFocus",function(){t.handleShowIndicator()}),m(t,"handleBlur",function(){t.handleHideIndicator()}),m(t,"printPasswordStength",function(){var e=t.props.i18n,r=t.state.strengthBarProgress;return[e("registrationLabels.passwordStrengthLabel"),r<3&&e("registrationLabels.passwordStrengthWeak"),3===r&&e("registrationLabels.passwordStrengthMedium"),4===r&&e("registrationLabels.passwordStrengthStrong")].filter(Boolean).join(" ")}),m(t,"renderRequirement",function(e){var r=e.label,o=e.replacements,a=e.validated,i=t.props.i18n;return n.createElement("p",{className:(0,p.cn)("PasswordForm-requirement",{"PasswordForm-requirement--validated":a})},a&&n.createElement(s.A,{name:"ic_checkmark"}),i(r,o))}),t.state={showPassword:!1,showIndicator:!1,hasMinLength:!1,hasMaxLength:!1,hasNumber:!1,hasSpecialChar:!1,hasUpperAndLowerCase:!1,strengthBarProgress:0},t}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&y(r,e),t=[{key:"componentDidUpdate",value:function(e,t){var r=(0,u.y)(this.state,t,"strengthBarProgress"),n=this.props.updateAnnouncement;r.defined&&r.changed&&n(this.printPasswordStength())}},{key:"render",value:function(){var e,t,r=this.props,o=r.i18n,l=r.name,c=r.label,u=r.baseId,f=r.className,b=r.customError,h=r.setNewPassword,y=r.isConfirmPassword,g=r.ignoreDescribedby,P=this.state,v=P.hasNumber,O=P.hasMinLength,S=P.hasMaxLength,E=P.showPassword,j=P.showIndicator,L=P.hasSpecialChar,A=P.strengthBarProgress,N=P.hasUpperAndLowerCase,C=y?i.Ay.PASSWORD_CONFIRM:i.Ay.PASSWORD(b,g);return n.createElement("div",{className:(0,p.cn)("col",f),"data-testid":"PasswordField"},n.createElement(a.A,(e=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}
2))),n.forEach(function(t){m(e,t,r[t])})}return e}({},C),t=t={baseId:u,autoComplete:"off",name:l||C.name,label:c||C.label,type:E?"text":C.type,validate:w(C.validate).concat(w(h?[d.sl]:[])),handleBlur:h?this.handleBlur:null,handleFocus:h?this.handleFocus:null,handleChange:h?this.handleValidation:null,addRole:!1},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e)),n.createElement("div",{className:"InputHelper"},n.createElement("button",{type:"button",className:"focus-visible:focus-style -m-1 mr-1 inline-flex items-center justify-center border-0 bg-transparent p-2 text-mineshaft underline hover:text-brand-primary focus:text-brand-primary",onClick:E?this.handleHidePassword:this.handleShowPassword,"aria-label":o(E?"registrationLabels.hidePassword":"registrationLabels.showPassword")},n.createElement(s.A,{name:E?"ic_password_hide":"ic_password_show"}))),h&&n.createElement("div",{id:C.aria.describedby,className:(0,p.cn)("PasswordForm-requirementsWrapper",{"sr-only":!j}),"aria-labelledby":"PasswordRequirements"},n.createElement("h2",{id:"PasswordRequirements",className:"font-cta-1"},n.createElement("span",{className:"sr-only"},"Password requirements."),o("registrationLabels.passwordRequirementsTitle")),n.createElement("div",{className:"PasswordForm-requirements"},this.renderRequirement({validated:O&&S,label:"globalLabels.passwordLengthMessage"}),this.renderRequirement({validated:N,label:"globalLabels.passwordCharacterMessage"}),this.renderRequirement({validated:v,label:"globalLabels.passwordDigitMessage"}),this.renderRequirement({validated:L,label:"globalLabels.passwordSpecialCharMessage",replacements:[d.xi]})),n.createElement("div",{className:"PasswordForm-strength","aria-live":"polite"},n.createElement("span",{style:{width:A?A/4*100+"%":"0.01%"},className:(0,p.cn)({medium:A>=2,strong:4===A})})),n.createElement("p",null,this.printPasswordStength())))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(n.Component);m(g,"defaultProps",void 0),m(g,"propTypes",void 0),g.defaultProps={validate:[],setNewPassword:!1,isConfirmPassword:!1,ignoreDescribedby:!1};let P=(0,l.Ay)((0,c.Ng)(null,{updateAnnouncement:o.P})(g))},99450(e,t,r){r.d(t,{A:()=>N});var n=r(67308),o=r(36008),a=r(76021),s=r(87243),i=r(65637),l=r(39262),c=r(10538),u=r(75927),d=r(58275),p=r(21722),f=r(56987);let m={PASSWORD:{type:"password",label:"loginLabels.password",name:"password",required:!0,validate:[f.mw()],aria:{describedby:"strengthIndicator"}},CONFIRM:{type:"password",label:"Confirm Password",name:"passwordConfirm",required:!0,validate:[f.mw(),f.Et("password.password","Passwords")]},PASSWORD_RESET_TOKEN:{type:"hidden",name:"token"}};var b=r(11501),h=r(10164),y=r(2232),w=r(88467),g=r(60159),P=r(29494);function v(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(S=function(){return!!e})()}function E(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){v(e,t,r[t])})}return e}function j(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}
2)(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var A=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,n=arguments,t=O(t),v(e=function(e,t){if(t&&("object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,S()?Reflect.construct(t,n||[],O(this).constructor):t.apply(this,n)),"handleSubmit",function(t){var r=t.token,n=t.userId,o=t.newPassword,a=t.oldPassword;if(e.props.ssoFlow){var s=e.props,i=s.replace,l=s.isPreSSO,c=s.setAccountInfo,u=s.accountDetails,d=s.activateAccount;return Promise.resolve(!!r&&!u&&d(r)).then(function(e){var t=e.userId,n=e.lastName,s=e.birthday,d=e.firstName,p=e.inStoreUser,f=e.loyaltySignup,m=e.validationToken,b=e.activationStatus;return m||l||u?(c(j(E({},u||{lastName:n,birthday:s,firstName:d,inStoreUser:p,email:t,validationToken:m,loyaltyStatus:f}),{password:o||a})),i("/sso/confirm-details")):"userActivated"===b?i({pathname:"/user-activation",search:P._L.stringify({activationToken:r})}):void 0})}if(!r)return e.props.updatePassword({newPassword:o,oldPassword:a});var p=E({newPassword:o,token:encodeURIComponent(r)},e.props.useAESPasswordResetEndpoints?{email:n}:{userId:n});return e.props.resetLinkLogin(p)}),v(e,"validatePasswordMatch",function(e){var t,r=e.values,n=e.errors;(null==r?void 0:r.newPassword)===(null==r?void 0:r.confirmNewPassword)&&(null==r||null==(t=r.confirmNewPassword)?void 0:t.length)?n.confirmNewPassword=void 0:n.confirmNewPassword="fieldErrorLabels.confirmPasswordMatchError"}),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&L(r,e),t=[{key:"render",value:function(){var e=this,t=this.props,r=t.i18n,o=t.logout,a=t.render,s=t.isEurope,i=t.disclaimer,f=t.handleCancel,b=t.promptOnDirty,y=t.initialValues,g=t.handleComplete,P=t.submitButtonText,v=t.enablePasswordConfirm;return n.createElement(d.A,j(E({layout:"small",id:"PasswordUpdate",onComplete:g,onSubmit:this.handleSubmit,initialValues:y,className:"PasswordUpdate-form"},w.nj?{prompt:function(e){var t=e.submitting,r=e.submitSucceeded;return n.createElement(p.A,{when:!t&&!r,handleConfirm:o,subtitle:"globalLabels.prompt.subtitle.autoLogout"})}}:{promptOnDirty:b}),{render:{form:function(t){var o=t.values;return n.createElement(n.Fragment,null,v&&n.createElement(h.Pc,{subscription:{values:!0,errors:!0},onChange:e.validatePasswordMatch}),a.email&&n.createElement(l.A,{name:"userId",className:"col col-full",label:"changePasswordLabels.emailAddress",disabled:!0}),o.token?n.createElement(c.A,{type:m.PASSWORD_RESET_TOKEN.type,name:m.PASSWORD_RESET_TOKEN.name}):a.oldPassword&&n.createElement(u.A,{name:"oldPassword",label:"changePasswordLabels.currentPassword",customError:r("fieldErrorLabels.currentPassword"),ignoreDescribedby:!0}),n.createElement(u.A,{name:"newPassword",setNewPassword:!0,label:"changePasswordLabels.newPasssword"}),v&&n.createElement(u.A,{setNewPassword:!1,isConfirmPassword:!0}),s&&n.createElement(n.Fragment,null,n.createElement("p",{className:"col col-full font-label-sm"},r("changePasswordLabels.ssoHeader")),n.createElement("p",{className:"col col-full disclaimer font-caption"},r("changePasswordLabels.sso")),n.createElement("p",{className:"col col-full font-label-sm"},r("changePasswordLabels.creditCardHeader"))),n.createElement("p",{className:"col col-full disclaimer font-caption"},i||r("changePasswordLabels.creditCardMessage")))},button:{primary:function(){return n.createElement("button",{type:"submit",className:"Button"},P||r("changePasswordLabels.saveBtnText"))},secondary:f&&function(){return n.createElement("button",{type:"button",className:"Button Button--alt",onClick:f},r("changePasswordLabels.cancelBtnText"))}}}}))}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(n.Component);v(A,"defaultProps",void 0),v(A,"propTypes",void 0),A.defaultProps={ssoFlow:!1,render:{email:!0,oldPassword:!0}};let N=(0,b.Ay)((0,y.Ng)(function(e){return{isPreSSO:(0,w.nj)(e),isEurope:e.config.settings.europe,enablePasswordConfirm:e.config.remote.enablePasswordConfirm,useAESPasswordResetEndpoints:e.config.remote.useAESPasswordResetEndpoints}},{logout:i.ri,replace:g.HC,updatePassword:s.f,resetLinkLogin:a.Rs,setAccountInfo:o.QS,activateAccount:o.Nz})(A))},82926(e,t,r){r.r(t),r.d(t,{default:()=>w});var n=r(67308),o=r(36008),a=r(99450),s=r(66959),i=r(11501);function l(e){var t=e.token,r=e.userId,o=e.inStore,l=(0,i.Bd)();return n.createElement("div",{className:"PasswordReset mx-auto max-w-screen-sm px-4 pb-8","data-testid":"PasswordResetView"},n.createElement("h1",{id:"pageTitle",className:"font-heading-1 my-4 md:my-8"},l(o?"registrationLabels.completeAccount":"globalLabels.passwordResetTitle")),o&&n.createElement("p",null,l("registrationLabels.completeStoreAccountInstruction")),n.createElement(a.A,{disclaimer:o?n.createElement(s.A,null):null,submitButtonText:o?l("registrationLabels.completeAccount"):null,initialValues:{token:t,userId:r}}))}Object.defineProperty(l,"name",{value:"default",configurable:!0});var c=r(2232),u=r(65399),d=r(60159),p=r(29494);function f(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}
2function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var y=function(e){var t;if("function"!=typeof e&&null!==e)throw TypeError("Super expression must either be null or a function");function r(){var e,t,n;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return t=r,n=arguments,t=m(t),f(e=function(e,t){if(t&&("object"==(t&&"u">typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)||"function"==typeof t))return t;if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(this,b()?Reflect.construct(t,n||[],m(this).constructor):t.apply(this,n)),"state",{}),f(e,"handleRedirect",function(){if(e.props.sessionFetchedOnce){var t=e.props,r=t.replace,n=t.ssoEnabled,o=t.authenticated,a=t.setAccountInfo,s=t.ssoCompleteSession,i=e.urlParams,l=i.userId,c=i.ssoComplete;if(n&&!1===c&&!s&&l)return a(e.urlParams),r("/sso/merge");if(o||!l)return r("/")}}),f(e,"handleGetUrlParams",function(){var t=p._L.parse(e.props.search),r=t.token,n=t.userId,o=t.userid,a=t.inStore,s=t.ssoComplete;return 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){f(e,t,r[t])})}return e}({token:r,userId:n||o,inStore:"true"===a},s&&{ssoComplete:"true"===s})}),f(e,"urlParams",e.handleGetUrlParams()),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&h(r,e),t=[{key:"componentDidMount",value:function(){this.handleRedirect(),this.setState(this.handleGetUrlParams())}},{key:"componentDidUpdate",value:function(e){var t=(0,u.y)(e,this.props,"sessionFetchedOnce");t.defined&&t.changed&&this.handleRedirect()}},{key:"render",value:function(){return n.createElement(l,this.state)}}],function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(r.prototype,t),r}(n.Component);f(y,"propTypes",void 0);let w=(0,c.Ng)(function(e){var t=e.router.location.search,r=e.config.remote.ssoEnabled,n=e.session,o=n.sessionFetchedOnce,a=n.user;return{search:t,ssoEnabled:r,authenticated:a.authenticated,sessionFetchedOnce:o,ssoCompleteSession:a.ssoComplete}},{replace:d.HC,setAccountInfo:o.QS})(y)},66959(e,t,r){r.d(t,{A:()=>i});var n=r(67308),o=r(97626),a=r(11501),s=r(2232);let i=(0,a.Ay)((0,s.Ng)(function(e){return{rulesPage:e.config.features.rewardsProgram.rulesPage}})(function(e){var t=e.i18n,r=e.rulesPage;return n.createElement(n.Fragment,null,t("globalLabels.clickToAgree").replace("${submitButton}",t("registrationLabels.completeAccount"))," ",n.createElement(o.A,{className:"Link",to:r,target:"_blank"},t("registrationLabels.membershipLabel"))," ",n.createElement(o.A,{className:"Link",to:"/help/terms-of-use.html",target:"_blank"},t("registrationLabels.termsLabel"))," ",t("globalLabels.andLabel")," ",n.createElement(o.A,{className:"Link",to:"/help/privacy-statement.html",target:"_blank"},t("registrationLabels.privacyLabel")),".")}))}}]);
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.