1"use strict";(self["webpackChunkconsumer_portal"]=self["webpackChunkconsumer_portal"]||[]).push([[471],{3791:function(e,a,t){function o(e){const a="password"===e?"text":"password";return a}t.d(a,{k:function(){return o}})},9510:function(e,a,t){t.d(a,{Z:function(){return s}});var o={data:()=>({simpleTagRegex:/(<([^>]+)>)/,emailRegex:/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,northAmericanPhoneRegex:/^(?:(?:\+?1\s*(?:[.-]\s*)?)?(?:\(\s*([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9])\s*\)|([2-9]1[02-9]|[2-9][02-8]1|[2-9][02-8][02-9]))\s*(?:[.-]\s*)?)?([2-9]1[02-9]|[2-9][02-9]1|[2-9][02-9]{2})\s*(?:[.-]\s*)?([0-9]{4})(?:\s*(?:#|x\.?|ext\.?|extension)\s*(\d+))?$/,unitedStatesPostalCodeRegex:/^[0-9]{5}(?:-[0-9]{4})?$/,canadaPostalCodeRegex:/^(?!.*[DFIOQU])[A-VXY][0-9][A-Z] ?[0-9][A-Z][0-9]$/,domainNameRegex:/(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/})},s=o},8471:function(e,a,t){t.r(a),t.d(a,{default:function(){return z}});var o=t(3396),s=t(4870),r=t(2268),n=t(9242),i=t(678),u=t(7139),l=t(9510),c=t(2030),d=t(9610),m=t(376),p=t(8518),w=t(3791);const f=e=>((0,o.dD)("data-v-1a8f9b8d"),e=e(),(0,o.Cn)(),e),v={class:"account-sign-in"},k={key:0},y={key:1},g={key:0},h=(0,o.Uk)(" The email or password you entered is not correct. Check your credentials. If you think there's an account associated with the email you entered, "),S=(0,o.Uk)(" reset your password. "),U={key:1},_={key:2},b=["onSubmit"],I=f((()=>(0,o._)("legend",{class:"sr-only"}," Sign in to your account ",-1))),C=f((()=>(0,o._)("i",{class:"fas fa-eye fa-lg"},[(0,o._)("span",{class:"sr-only"},"show/hide password")],-1))),x=[C],A=(0,o.Uk)(" Forgot your password? "),q={class:"sign-in-footer"},D=(0,o.Uk)(" Don't have an account? "),E=(0,o.Uk)(" Look up an order "),W=["href"],$=f((()=>(0,o._)("ul",{class:"account-advantage-list"},[(0,o._)("li",{class:"checkout"}," Check out faster "),(0,o._)("li",{class:"offers"}," Acquire special offers "),(0,o._)("li",{class:"track"}," Track orders easily "),(0,o._)("li",{class:"wish"}," Create wish lists ")],-1)));var M=(0,o.aZ)({setup(e){const a=(0,i.tv)(),t=(0,p.X)(),f=(0,m.c)(),C=(0,o.f3)("portalBreakpointUpper"),M=(0,s.iH)(null),V=(0,s.iH)(null),Z=l.Z.data().emailRegex,z=/\s/g,H={validateEmail:e=>Z.test(e)||"Must be a valid email",minimum:(e,a)=>e.trim().length>=a||`Minimum of ${a} characters`,maximum:(e,a)=>e.length<=a||`Maximum of ${a} characters`,noSpace:e=>!z.test(e)||"Password cannot contain spaces"},{merchantStoreInformation:N}=(0,u.Jk)(t),R=(0,s.iH)(!1),T=(0,s.iH)(!1),P=(0,s.iH)(0),F=(0,s.qj)({email:"",password:""}),L=(0,s.qj)({email:[],password:[]}),j=(0,s.qj)({password:"password"}),B=(0,o.Fl)((()=>new Set([...L.email,...L.password]))),Y=()=>{F.email="",F.password="",L.email=[],L.password=[]},X=async()=>{if(await G(),0===B.value.size)try{await f.loginCustomer(F),f.customerAuth.errorMessage===c.$d.INVALID_CREDENTIALS&&Y()}catch(e){console.error(e)}},G=async()=>(M.value?.validateInput(F.email),V.value?.validateInput(F.password),await(0,o.Y3)()),J=()=>{a.push({path:"/create-account"})},O=async()=>{const e=a.currentRoute.value.query;if(e.emailVerified&&(R.value="true"===e.emailVerified),e.id){P.value=parseInt(e.id);const a=await f.getCustomerInformation(P.value);F.email=a?.email,T.value=!!a?.customerId}a.replace("")};return(0,o.bv)((()=>{O()})),(e,a)=>{const t=(0,o.up)("WebsiteAlert"),u=(0,o.up)("HootTextField"),l=(0,o.up)("HootBtn"),m=(0,o.up)("HootStepper");return(0,o.wg)(),(0,o.iD)("div",v,[(0,o.Wm)(d.Z,{twoColumn:!0,divider:!0},{"column-one":(0,o.w5)((()=>[(0,o.Wm)(m,{headerText:"Sign in",stepNumber:1,currentStep:1,showStepNumber:!1,breakpoint:(0,s.SU)(C)},{default:(0,o.w5)((()=>[R.value||T.value?((0,o.wg)(),(0,o.j4)(t,{key:0,severity:"success",showIcon:!1},{"alert-content":(0,o.w5)((()=>[R.value?((0,o.wg)(),(0,o.iD)("span",k," The activation of your account was successful. Enter your credentials below to sign in to your account. ")):(0,o.kq)("",!0),T.value?((0,o.wg)(),(0,o.iD)("span",y," Success! Your password has been reset. Sign into your account with your new password. ")):(0,o.kq)("",!0)])),_:1})):(0,o.kq)("",!0),(0,s.SU)(f).customerAuth.errorMessage?((0,o.wg)(),(0,o.j4)(t,{key:1,severity:"error",showIcon:!1},{"alert-content":(0,o.w5)((()=>[(0,s.SU)(f).customerAuth.errorMessage===(0,s.SU)(c.$d).INVALID_CREDENTIALS?((0,o.wg)(),(0,o.iD)("span",g,[h,(0,o.Wm)((0,s.SU)(i.rH),{to:"forgot-password"},{default:(0,o.w5)((()=>[S])),_:1})])):(0,o.kq)("",!0),(0,s.SU)(f).customerAuth.errorMessage===(0,s.SU)(c.$d).UNVERIFIED_EMAIL?((0,o.wg)(),(0,o.iD)("span",U," Your email address is not verified. An email was sent to "+(0,r.zw)((0,s.SU)(F).email)+". Go to that email and click the link provided to verify your email address. ",1)):(0,o.kq)("",!0),(0,s.SU)(f).customerAuth.errorMessage===(0,s.SU)(c.$d).UNEXPECTED?((0,o.wg)(),(0,o.iD)("span",_," Unexpected error. Please try again. ")):(0,o.kq)("",!0)])),_:1})):(0,o.kq)("",!0),(0,o._)("form",{class:"account-sign-in-form",onSubmit:(0,n.iM)(X,["prevent"])},[(0,o._)("fieldset",null,[I,(0,o.Wm)(u,{ref_key:"emailInput",ref:M,modelValue:(0,s.SU)(F).email,"onUpdate:modelValue":a[0]||(a[0]=e=>(0,s.SU)(F).email=e),"data-cy":"emailInput",label:"Email",type:"email",required:!0,rules:e=>H.validateEmail(e),onFocus:a[1]||(a[1]=e=>(0,s.SU)(f).customerAuth.errorMessage=null),onInputErrors:a[2]||(a[2]=e=>(0,s.SU)(L).email=e)},null,8,["modelValue","rules"]),(0,o.Wm)(u,{ref_key:"passwordInput",ref:V,modelValue:(0,s.SU)(F).password,"onUpdate:modelValue":a[4]||(a[4]=e=>(0,s.SU)(F).password=e),"data-cy":"passwordInput",label:"Password",type:(0,s.SU)(j).password,required:!0,rules:[e=>H.minimum(e,1),e=>H.maximum(e,256),e=>H.noSpace(e)],onInputErrors:a[5]||(a[5]=e=>(0,s.SU)(L).password=e)},{appendContent:(0,o.w5)((()=>[(0,o._)("button",{class:"icon-button",type:"button",onClick:a[3]||(a[3]=(0,n.iM)((e=>(0,s.SU)(j).password=(0,s.SU)(w.k)((0,s.SU)(j).password)),["prevent"]))},x)])),_:1},8,["modelValue","type","rules"]),(0,o.Wm)((0,s.SU)(i.rH),{class:"forgot-password-link",to:"/forgot-password"},{default:(0,o.w5)((()=>[A])),_:1}),(0,o.Wm)(l,{variant:"primary",text:"Sign in",type:"submit",name:"submit",disabled:(0,s.SU)(B).size>0},null,8,["disabled"])])],40,b),(0,o._)("div",q,[(0,o._)("p",null,[D,(0,o.Wm)((0,s.SU)(i.rH),{to:"/order-lookup"},{default:(0,o.w5)((()=>[E])),_:1})]),(0,o._)("a",{href:`https://${(0,s.SU)(N)?.domain}`},"Continue shopping",8,W)])])),_:1},8,["breakpoint"])])),"column-two":(0,o.w5)((()=>[(0,o.Wm)(m,{headerText:"Create an account",stepNumber:1,currentStep:1,showStepNumber:!1,breakpoint:(0,s.SU)(C)},{default:(0,o.w5)((()=>[$,(0,o.Wm)(l,{variant:"primary",text:"Create account",onClick:J})])),_:1},8,["breakpoint"])])),_:1})])}}}),V=t(89);const Z=(0,V.Z)(M,[["__scopeId","data-v-1a8f9b8d"]]);var z=Z},9610:function(e,a,t){t.d(a,{Z:function(){return m}});var o=t(3396),s=t(2268);const r={class:"account-column"},n={key:0,class:"divider"},i={key:1,class:"account-column"};function u(e,a,t,u,l,c){return(0,o.wg)(),(0,o.iD)("div",{class:(0,s.C_)(["account-content",{"two-column-layout":e.twoColumn,nested:e.nested}])},[(0,o._)("div",r,[(0,o.WI)(e.$slots,"column-one",{},void 0,!0)]),e.divider&&e.twoColumn?((0,o.wg)(),(0,o.iD)("span",n)):(0,o.kq)("",!0),e.twoColumn?((0,o.wg)(),(0,o.iD)("div",i,[(0,o.WI)(e.$slots,"column-two",{},void 0,!0)])):(0,o.kq)("",!0)],2)}var l=(0,o.aZ)({props:{divider:{type:Boolean,required:!1,default:!1},twoColumn:{type:Boolean,required:!1,default:!1},nested:{type:Boolean,required:!1,default:!1}}}),c=t(89);const d=(0,c.Z)(l,[["render",u],["__scopeId","data-v-56904fb4"]]);var m=d}}]); 2//# sourceMappingURL=471.eb553f89.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.