1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8705],{1002:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var a=n(44501),r=n(40670),o=n(15039),i=n.n(o),s=n(14232),c=n(44515),l=["bsPrefix","variant","animation","size","children","as","className"],u=s.forwardRef(function(e,t){var n=e.bsPrefix,o=e.variant,u=e.animation,d=e.size,h=e.children,p=e.as,f=e.className,m=(0,r.A)(e,l),g=(n=(0,c.oU)(n,"spinner"))+"-"+u;return s.createElement(void 0===p?"div":p,(0,a.A)({ref:t},m,{className:i()(f,g,d&&g+"-"+d,o&&"text-"+o)}),h)});u.displayName="Spinner";let d=u},3153:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var a,r=new Uint8Array(16);let o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var i=[],s=0;s<256;++s)i.push((s+256).toString(16).substr(1));let c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(i[e[t+0]]+i[e[t+1]]+i[e[t+2]]+i[e[t+3]]+"-"+i[e[t+4]]+i[e[t+5]]+"-"+i[e[t+6]]+i[e[t+7]]+"-"+i[e[t+8]]+i[e[t+9]]+"-"+i[e[t+10]]+i[e[t+11]]+i[e[t+12]]+i[e[t+13]]+i[e[t+14]]+i[e[t+15]]).toLowerCase();if(!("string"==typeof n&&o.test(n)))throw TypeError("Stringified UUID is invalid");return n},l=function(e,t,n){var o=(e=e||{}).random||(e.rng||function(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(r)})();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=o[i];return t}return c(o)}},12787:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var a=n(14232),r=n(41293),o=n(90350),i=n(15039),s=n.n(i),c=n(2171),l=n(89099),u=n(62319),d=n.n(u),h=n(76878),p=n.n(h),f=n(81074),m=n(65431),g=n(37876);let v=(0,c.connect)(function(e){return{constants:e.contentfulReducer}},null)(function(e){var t=e.children,n=e.constants,i=e.noHelp,u=e.isLogin,h=(e.logo,e.scanOfficeName),v=e.corpSiteName,x=new(p())(n,"comp.AuthLayout"),b=(0,l.useRouter)(),A=(0,c.useSelector)(function(e){return e}),y=A.authReducer,j=A.corporatePagesReducer.corporatePages,_=A.domainReducer.currentDomain,w=(0,a.useState)(null),C=w[0],N=w[1],k=b.query.site_name;
1(0,a.useEffect)(function(){N(f.regionHelper.getDomainHash(window.location.hostname))});var D=j.find(function(e){return e.url===k||e.url===v}),L=(null==_?void 0:_.countryCode)||"",S="costco"===k||"ecard"===k;D&&D.enabledCountries.length>0&&!D.enabledCountries.includes(L.toUpperCase())&&(D=null);var P=!0;C&&null!=C&&C.locales&&!(C.locales.length<2)||(P=!1);var R=u&&k&&D||u&&!k,F=function(){return k?"/".concat(k):h||h&&y.user?"/store/".concat(h):(y.user,"/")};return(0,g.jsxs)("div",{className:s()("base-layout",d()["auth-main-wrapper"],k&&d()["auth-main-wrapper-corp"]),children:[(0,g.jsxs)(r.A,{className:"justify-content-between",children:[(0,g.jsxs)("div",{className:d()["navbar-left-content"],children:[D&&D.headerLogo.file.url?null:(0,g.jsx)(r.A.Brand,{href:F(),className:d()["brand-logo"],style:{float:"left"},children:(0,g.jsx)("img",{src:x.get("logo-image-path"),width:"auto",height:"50",className:"d-inline-block align-top",alt:x.get("alt-image-text")})}),D&&D.headerLogo.file.url&&(0,g.jsx)(r.A.Brand,{href:F(),children:(0,g.jsx)("div",{className:d()["corporate-logo"],children:(0,g.jsx)("img",{src:D.headerLogo.file.url,width:"auto",height:"50",className:"d-inline-block align-top",alt:x.get("alt-image-text")})})}),D&&!D.headerLogo.file.url&&(0,g.jsx)(g.Fragment,{children:(0,g.jsx)(r.A.Brand,{href:k&&"/".concat(k)||"/",children:(0,g.jsx)("div",{className:s()(d()["corporate-logo"],d()["corporate-logo-border"]),children:(0,g.jsx)("img",{src:D.logo.file.url,width:"costco"===D.url?"80":"auto",height:"50",className:"d-inline-block align-top",alt:x.get("alt-image-text")})})})})]}),R&&!S&&(0,g.jsx)(o.A,{className:"justify-content-end",children:(0,g.jsx)(r.A.Text,{children:(0,g.jsx)("a",{style:{color:"#019ace",paddingRight:"4px"},href:k?"/".concat(k,"/login"):h?"'/store/".concat(h,"/login"):"/login",children:x.get("login")})})}),!i&&"jp"!==L&&!S&&(0,g.jsx)(o.A,{className:"justify-content-end",children:(0,g.jsx)(r.A.Text,{children:(0,g.jsxs)("div",{className:s()(P?d()["get-help-align"]:""),children:[(0,g.jsx)("span",{className:"d-none d-sm-inline",children:x.get("having-trouble-text")})," ",(0,g.jsx)("a",{style:{color:"#019ace"},href:k&&y.user?"/".concat(k).concat(x.get("feedbackLink")):k&&!y.user?"/".concat(k).concat(x.get("contact-us-link")):h&&!y.user?"/store/".concat(h).concat(x.get("contact-us-link")):h&&y.user?"/store/".concat(h).concat(x.get("feedbackLink")):y.user?x.get("feedbackLink"):x.get("contact-us-link"),children:x.get("get-help-text")})]})})}),(0,g.jsx)(m.A,{domain:C,alwaysShow:!0})]}),(0,g.jsx)("div",{className:"auth-wrapper-content",children:t})]})})},44212:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var a=n(10810);function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,a.A)(r.key),r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},52779:e=>{e.exports={"auth-wrapper":"twoFactorAuth_auth-wrapper__lAa_n","signin-info-txt":"twoFactorAuth_signin-info-txt__mQw_L","get-code":"twoFactorAuth_get-code__FT6KH","reg-device":"twoFactorAuth_reg-device__33dKK","save-time":"twoFactorAuth_save-time__diwg7","login-sub-btn":"twoFactorAuth_login-sub-btn__H1_Ur","sa-radio-btn":"twoFactorAuth_sa-radio-btn__eHKkO"}},62319:e=>{e.exports={"auth-main-wrapper":"authLayout_auth-main-wrapper__m5_Hy","blue-link":"authLayout_blue-link__rxNiy","auth-main-wrapper-corp":"authLayout_auth-main-wrapper-corp__unfJU","get-help-align":"authLayout_get-help-align__iHZFz","corporate-logo":"authLayout_corporate-logo__2Vrnc","corporate-logo-border":"authLayout_corporate-logo-border__gT0uC","navbar-left-content":"authLayout_navbar-left-content___pOmD","brand-logo":"authLayout_brand-logo__UKGIg"}},80913:(e,t,n)=>{"use strict";n.d(t,{S:()=>i});var a=n(71643),r=n(3153),o=function(e){return function(t){t({type:a.s,id:e})}},i=function(e){return function(t){if(e.id||(e.id="".concat(Date.now()).concat((0,r.A)(),"}")),e.onConfirm){var n=e.onConfirm;e.onConfirm=function(){n.apply(void 0,arguments),o(e.id)(t)}}else e.onConfirm=function(){return o(e.id)(t)};if(e.onCancel){var i=e.onCancel;e.onCancel=function(){i.apply(void 0,arguments),o(e.id)(t)}}else e.onCancel=function(){return o(e.id)(t)};t({type:a.f,alert:e})}}},86206:(e,t,n)=>{"use strict";n.d(t,{A:()=>V});var a=n(63857),r=n(67251),o=n(46126),i=n(29898),s=n(30291),c=n(76966),l=n(42969),u=n(43081),d=n.n(u),h=n(14232),p=n(86032),f=n(60419),m=n(2171),g=n(76878),v=n.n(g),x=n(87991),b=n(80913),A=n(72560),y=n(54253),j=n(64277),_=n(1002),w=n(58001),C=n(52779),N=n.n(C),k=n(55370),D=k.Ik().shape({otp_code:k.Yj().required()}),L=n(15039),S=n.n(L),P=n(37876);let R=function(e){var t=e.auth,n=e.handleAuth,a=e.loader,r=e.i18n,o=e.errors,i=e.isDisabled,s=e.onClickOtpCode;return(0,P.jsx)(w.l1,{validationSchema:D,onSubmit:n,initialValues:t,children:function(e){var t=e.handleSubmit,n=e.handleChange,c=e.handleBlur,l=e.values,u=e.touched,d=e.errors;return(0,P.jsx)("div",{className:N()["auth-wrapper"],id:"auth-form-wrapper",children:(0,P.jsxs)(A.A,{onSubmit:t,id:"auth-form",children:[(0,P.jsxs)("h2",{children:[r.get("almost-title"),(0,P.jsx)("span",{className:"text-primary font-weight-bold"})]}),(0,P.jsx)("p",{className:"mb-4 fs-12 ltr ".concat(N()["signin-info-txt"]),children:r.get("verify-descriptions")}),(0,P.jsx)(A.A.Group,{controlId:"formBasicCode",children:(0,P.jsxs)(f.A,{children:[(0,P.jsxs)(y.A,{xs:12,md:6,children:[(0,P.jsx)(A.A.Control,{type:"text",name:"otp_code",onChange:n,onBlur:c,value:l.otp_code}),u.otp_code&&d.otp_code?(0,P.jsx)(A.A.Control.Feedback,{type:"invalid",className:"invalid",children:r.get("verify-code")}):null,o.login&&(0,P.jsx)(A.A.Control.Feedback,{type:"invalid",className:"invalid",children:r.get("invalid-code")})]}),(0,P.jsx)(y.A,{xs:12,md:6,className:"ltr",children:(0,P.jsx)("input",{type:"button",name:"clickMe",id:"getOtpCode",value:r.get("did-not-get-code"),disabled:i,onClick:s,className:N()["get-code"]})})]})}),(0,P.jsx)(f.A,{className:"mb-2",children:(0,P.jsx)(y.A,{children:(0,P.jsx)("p",{className:S()("ltr",N()["reg-device"]),children:r.get("register-device")})})}),(0,P.jsx)(f.A,{className:"mb-2",children:(0,P.jsx)(y.A,{children:(0,P.jsx)("p",{className:S()("ltr",N()["save-time"]),children:r.get("save-time-info")})})}),(0,P.jsx)(A.A.Group,{children:(0,P.jsxs)(f.A,{xs:2,md:4,lg:6,className:"mb-4",children:[(0,P.jsx)(y.A,{className:"pl-5",children:(0,P.jsx)(A.A.Check,{type:"radio",label:r.get("yes"),name:"isPersonalDevice",onChange:n,value:"true",checked:"true"===l.isPersonalDevice,className:N()["sa-radio-btn"]})}),(0,P.jsx)(y.A,{children:(0,P.jsx)(A.A.Check,{type:"radio",label:r.get("no"),name:"isPersonalDevice",onChange:n,value:"false",checked:"false"===l.isPersonalDevice,className:N()["sa-radio-btn"]})})]})}),(0,P.jsx)(f.A,{children:(0,P.jsx)(y.A,{className:"text-center",children:(0,P.jsxs)(j.A,{variant:"primary",size:"md",className:N()["login-sub-btn"],disabled:a,type:"submit",id:"login-submit-btn",children:[a&&(0,P.jsx)(_.A,{as:"span",animation:"border",size:"sm",role:"status","aria-hidden":"true",className:"mr-2"}),r.get("login-btn-txt")]})})})]})})}})};var F=n(41201);function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}var O="page.two-factor-authentication",B=function(e){function t(e){var n,o,c,u;return(0,r.A)(this,t),o=t,c=[e],o=(0,s.A)(o),n=(0,i.A)(this,T()?Reflect.construct(o,c||[],(0,s.A)(this).constructor):o.apply(this,c)),(0,l.A)(n,"componentDidMount",function(){setTimeout(n.showLink,3e4)}),(0,l.A)(n,"handleAuth",(u=(0,a.A)(d().mark(function e(t){var a,r,o,i,s,c,l;return d().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if((a=n.state.errors).login="",r=!1,i=(o=n.props).onValidateTwoFactorCode,s=o.scanOfficeName,l=(c=o.userProfile)&&c.attributes&&c.attributes.lead_id,!(s&&void 0!==s)){e.next=16;break}return e.prev=6,e.next=9,x.A.get("/consentForm/".concat(l));case 9:e.sent,e.next=16;break;case 12:e.prev=12,e.t0=e.catch(6),r=!0,console.log(e.t0);case 16:n.setState({loader:!0,errors:a}),i(t).then(function(e){e.success?e.redirectTo?window.location=e.redirectTo:r?window.location="/consent_form":window.location="/":(a.login="Invalid OTP",n.setState({errors:a,loader:!1}))});case 18:case"end":return e.stop()}},e,null,[[6,12]])})),function(e){return u.apply(this,arguments)})),(0,l.A)(n,"onClickOtpCode",function(e){var t=n.state.timerId,a=n.state.isDisabled,r=n.props,o=r.onGenerateCode,i=r.constants,s=r.showAlert,c=new(v())(i,O),l=c.get("did-not-get-code");n.setState({isDisabled:!a});var u=e.target.value;u===l?(o().then(function(e){return e.success?s({type:"success",title:"",timeout:4e3,confirmBtnText:c.get("btn-text"),content:c.get("code-sent")}):null}).catch(function(e){return s({type:"danger",title:"",showConfirm:!1,timeout:4e3,content:c.get("code-failed")})}),n.setState({isDisabled:!a}),t=setTimeout(n.showLink,3e4)):(u=l,clearTimeout(t))}),(0,l.A)(n,"showLink",function(){var e=n.state.isDisabled;n.setState({isDisabled:!e})}),n.state={auth:{otp_code:"",isPersonalDevice:"false"},errors:{login:""},timerId:0,loader:!1,isDisabled:!0},n}return(0,c.A)(t,e),(0,o.A)(t,[{key:"render",value:function(){var e=this.handleAuth,t=this.onClickOtpCode,n=this.state,a=n.auth,r=n.loader,o=n.isDisabled,i=n.isPersonalDevice,s=n.errors,c=this.props.constants,l=new(v())(c,O);return(0,P.jsx)(p.A,{children:(0,P.jsx)(f.A,{children:(0,P.jsx)(R,{auth:a,handleAuth:e,onClickOtpCode:t,loader:r,errors:s,isPersonalDevice:i,isDisabled:o,constants:c,i18n:l})})})}}])}(h.Component);let V=(0,m.connect)(function(e){return{constants:e.contentfulReducer,userProfile:e.authReducer.user}},function(e){return{onValidateTwoFactorCode:function(t){return e((0,F.h2)(t))},onGenerateCode:function(){return e((0,F.uN)())},showAlert:function(t){return e((0,b.S)(t))}}})(B)}}]);
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.