1"use strict";(self.webpackChunk_footlocker_frontend=self.webpackChunk_footlocker_frontend||[]).push([[1746,2316],{75927(e,t,r){r.d(t,{A:()=>P});var n=r(67308),a=r(33991),o=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 b(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 h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(h=function(){return!!e})()}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 w=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,a,o;if(!(this instanceof r))throw TypeError("Cannot call a class as a function");return a=r,o=[e],a=m(a),b(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(a,o||[],m(this).constructor):a.apply(this,o)),"handleHidePassword",function(){t.setState({showPassword:!1})}),b(t,"handleShowPassword",function(){t.setState({showPassword:!0})}),b(t,"handleHideIndicator",function(){t.setState({showIndicator:!1})}),b(t,"handleShowIndicator",function(){t.setState({showIndicator:!0})}),b(t,"handleValidation",function(e){var r=!!e&&!(0,d.Bp)(10)(e),n=!!e&&!(0,d.Ru)(100)(e),a=!(0,d.X5)(e),o=!(0,d.SB)(e)&&!(0,d.KG)(e),s=!(0,d._L)(e),i=0;r&&n&&i++,a&&i++,o&&i++,s&&i++,t.setState({hasMinLength:r,hasMaxLength:n,hasNumber:a,hasSpecialChar:o,hasUpperAndLowerCase:s,strengthBarProgress:i})}),b(t,"handleFocus",function(){t.handleShowIndicator()}),b(t,"handleBlur",function(){t.handleHideIndicator()}),b(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(" ")}),b(t,"renderRequirement",function(e){var r=e.label,a=e.replacements,o=e.validated,i=t.props.i18n;return n.createElement("p",{className:(0,p.cn)("PasswordForm-requirement",{"PasswordForm-requirement--validated":o})},o&&n.createElement(s.A,{name:"ic_checkmark"}),i(r,a))}),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&&g(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,a=r.i18n,l=r.name,c=r.label,u=r.baseId,f=r.className,m=r.customError,h=r.setNewPassword,g=r.isConfirmPassword,w=r.ignoreDescribedby,P=this.state,v=P.hasNumber,O=P.hasMinLength,S=P.hasMaxLength,E=P.showPassword,L=P.showIndicator,j=P.hasSpecialChar,N=P.strengthBarProgress,I=P.hasUpperAndLowerCase,A=g?i.Ay.PASSWORD_CONFIRM:i.Ay.PASSWORD(m,w);return n.createElement("div",{className:(0,p.cn)("col",f),"data-testid":"PasswordField"},n.createElement(o.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){b(e,t,r[t])})}return e}({},A),t=t={baseId:u,autoComplete:"off",name:l||A.name,label:c||A.label,type:E?"text":A.type,validate:y(A.validate).concat(y(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":a(E?"registrationLabels.hidePassword":"registrationLabels.showPassword")},n.createElement(s.A,{name:E?"ic_password_hide":"ic_password_show"}))),h&&n.createElement("div",{id:A.aria.describedby,className:(0,p.cn)("PasswordForm-requirementsWrapper",{"sr-only":!L}),"aria-labelledby":"PasswordRequirements"},n.createElement("h2",{id:"PasswordRequirements",className:"font-cta-1"},n.createElement("span",{className:"sr-only"},"Password requirements."),a("registrationLabels.passwordRequirementsTitle")),n.createElement("div",{className:"PasswordForm-requirements"},this.renderRequirement({validated:O&&S,label:"globalLabels.passwordLengthMessage"}),this.renderRequirement({validated:I,label:"globalLabels.passwordCharacterMessage"}),this.renderRequirement({validated:v,label:"globalLabels.passwordDigitMessage"}),this.renderRequirement({validated:j,label:"globalLabels.passwordSpecialCharMessage",replacements:[d.xi]})),n.createElement("div",{className:"PasswordForm-strength","aria-live":"polite"},n.createElement("span",{style:{width:N?N/4*100+"%":"0.01%"},className:(0,p.cn)({medium:N>=2,strong:4===N})})),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);b(w,"defaultProps",void 0),b(w,"propTypes",void 0),w.defaultProps={validate:[],setNewPassword:!1,isConfirmPassword:!1,ignoreDescribedby:!1};let P=(0,l.Ay)((0,c.Ng)(null,{updateAnnouncement:a.P})(w))},31746(e,t,r){r.r(t),r.d(t,{default:()=>I});var n=r(67308),a=r(36008),o=r(74314),s=r(91385),i=r(65637),l=r(80877),c=r(39262),u=r(75927),d=r(58275),p=r(97626),f=r(5348),b=r(5398),m=r(13583),h=r(11501),g=r(73416),y=r.n(g),w=r(2232),P=r(45335),v=r(60159),O=r(29494);function S(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(L=function(){return!!e})()}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var N=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=E(t),S(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,L()?Reflect.construct(t,n||[],E(this).constructor):t.apply(this,n)),"chainableLogin",function(t){var r=e.props,n=r.login,a=r.ssoEnabled,o=r.beforeSubmit,s=r.storeUuid,i=r.redirectAfterLogin;return Promise.resolve(o).then(function(){var e,r;return n((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){S(e,t,r[t])})}return e}({},t),r=r={ssoEnabled:a,storeUuid:s,redirectAfterLogin:i},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):(function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t})(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}),e))})}),S(e,"handleLoggedIn",function(t){var r=e.props.getLanguagePath;t&&(0,v.HC)(r({path:"/"}))}),S(e,"handleForgotPassword",function(t){t.preventDefault(),e.props.triggerModal(f.mg.id)}),e}return r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),e&&j(r,e),t=[{key:"componentDidMount",value:function(){var e=this.props,t=e.session,r=e.getSession;this.handleLoggedIn(t.user.authenticated),t.timedOut&&r()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=this.props,r=t.session,n=t.redirect,a=e.session.user.authenticated&&r.user.authenticated!==e.session.user.authenticated;!y().get(e,"signInModalOpen")&&n&&this.handleLoggedIn(a)}},{key:"componentWillUnmount",value:function(){(0,this.props.setResetPasswordSucceeded)(!1)}},{key:"render",value:function(){var e=this,t=this.props,r=t.accountCreatePath,a=t.i18n,o=t.layout,s=t.features,i=t.flxCashDiscount,f=t.flxLegacyBranding,b=t.isEurope,m=t.onComplete,h=t.userId,g=t.primaryButtonSize,y=t.ssoMergeDisabled,w=t.resetPasswordSucceeded,P=this.props.accountDisableRegister||s.accountDisableRegister,v=s.forgotPassword&&!y,O=b?"loyaltyLabels.joinLoyalty":"loyaltyLabels.joinFlxProgram";return n.createElement(n.Fragment,null,w&&n.createElement("div",{className:"mt-8"},n.createElement("h5",{className:"pb-4 pt-2.5 text-center"},a("loginLabels.resetPasswordSucceededText")),n.createElement("p",{className:"mt-2 pb-5 text-woodsmoke"},a("loginLabels.resetPasswordSucceededSubTitle"))),n.createElement(d.A,{id:"SignIn",className:"SignIn-form",layout:o||"small",onSubmit:this.chainableLogin,onComplete:m,initialValues:h?{uid:h}:null,render:{form:function(){return n.createElement(n.Fragment,null,(i||f)&&n.createElement(n.Fragment,null,n.createElement("h4",{className:"FlxJoin-Title",id:"signInModalHeading"},a("loginLabels.signIn")),n.createElement("p",{className:"FlxJoin-Subtitle"},a("registrationLabels.joinFLXInfoMessage"))),n.createElement(c.A,{name:"uid"}),n.createElement(u.A,{indicator:!1}),v&&n.createElement("div",{className:"col col-full"},n.createElement("button",{type:"button",className:"Link font-cta-1",onClick:e.handleForgotPassword},a("loginLabels.forgotPasswordLabel"))),y&&n.createElement("p",{className:"font-body",tabIndex:0},n.createElement(l.A,{name:"annotate",className:"infoIcon align-middle"})," ",a("loyaltyLabels.ssoForgotPasswordDisabled")))},button:{primarySize:g,primary:function(){return n.createElement("button",{className:"Button ".concat("full"===g&&"w-full")},a("loginLabels.signIn"))},secondary:!P&&function(){return n.createElement(p.A,{className:"Button Button--alt",to:r},a(i||f?O:"registrationLabels.createAccountLabel"))}}}}))}}],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);S(N,"propTypes",void 0);let I=(0,h.Ay)((0,w.Ng)(function(e){return{accountCreatePath:(0,P.h)(e),initialValues:e.signIn.initialValues,features:e.config.features,flxCashDiscount:e.config.remote.flxCashDiscount,flxLegacyBranding:e.config.remote.flxLegacyBranding,getLanguagePath:function(t){return(0,m.k)(e,t)},isEurope:e.config.settings.europe,signInModalOpen:(0,b.oF)(e,f.M$),session:e.session,ssoEnabled:e.config.remote.ssoEnabled,ssoMergeDisabled:e.config.remote.ssoMergeDisabled,storeUuid:O._L.parse(e.router.location.search).storeUuid,resetPasswordSucceeded:e.account.status.resetPasswordSucceeded}},{replace:v.HC,login:i.iD,getSession:s.Ht,triggerModal:o.E,setResetPasswordSucceeded:a.uy})(N))},82316(e,t,r){r.r(t),r.d(t,{default:()=>s}),Object.defineProperty(s,"name",{value:"default",configurable:!0});var n=r(67308),a=r(31746),o=r(11501);function s(){var e=(0,o.Bd)();return n.createElement("div",{className:"mx-auto max-w-screen-sm px-4 pb-8","data-testid":"Sign
2InView"},n.createElement("h1",{id:"pageTitle",className:"font-heading-1 my-4 md:my-8"},e("loginLabels.signIn")),n.createElement(a.default,{redirect:"/"}))}}}]);
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.