1"use strict";(self.webpackChunkbuck_mason=self.webpackChunkbuck_mason||[]).push([[8706],{3454:function(e,t,a){a.r(t),a.d(t,{Head:function(){return m}});var r=a(6540),n=a(1459),l=a(6778),o=a(4270),s=a(2711),i=a(1027),c=a(7622);t.default=()=>{const{login:e}=(0,o.A)(),{0:t,1:a}=(0,r.useState)(!1),{0:l,1:m}=(0,r.useState)({}),u=(0,r.useRef)(null),d=(0,r.useRef)(null),p=e=>{m(t=>t[e]?{...t,[e]:void 0}:t)},f=t=>{t.preventDefault(),(async()=>{const t=u.current.value,r=d.current.value,n={};if(t?(0,s.xf)(t)||(n.email="Please enter a valid email address."):n.email="Please enter your email.",r||(n.password="Please enter your password."),Object.keys(n).length)return void m(n);m({}),await e(t,r)||a(!0)})()};return r.createElement("div",{className:c.T1},r.createElement("div",{className:c.LV},r.createElement("form",{onSubmit:e=>f(e),noValidate:!0},r.createElement("h1",{className:c.DD},"LOGIN"),r.createElement("div",{className:i.sO,"aria-hidden":t?"false":"true",role:"alert","aria-atomic":"true"},r.createElement("strong",null,"Unable to log in"),"There was a problem signing you in. Please try again or try resetting your password. If you are still unable to log in, please ",r.createElement(n.A,{href:"/pages/faq"},"contact us"),"."),r.createElement("div",{className:i.ZZ},r.createElement("input",{id:"CustomerEmail",ref:u,type:"email",name:"customer[email]",className:c.hF,placeholder:"Email *",spellCheck:"false",autoComplete:"username",autoCapitalize:"none",autoFocus:"",required:"required","aria-required":"true","aria-invalid":l.email?"true":"false","aria-describedby":l.email?"CustomerEmail-error":void 0,onInput:()=>p("email")}),r.createElement("label",{htmlFor:"CustomerEmail",className:[i.zb,c.Pf].join(" ")},"Email"),l.email&&r.createElement("span",{className:i.ah,id:"CustomerEmail-error",role:"alert"},l.email)),r.createElement("div",{className:i.ZZ},r.createElement("input",{id:"CustomerPassword",type:"password",ref:d,name:"customer[password]",className:c.hF,placeholder:"Password *",autoComplete:"current-password",required:"required","aria-required":"true","aria-invalid":l.password?"true":"false","aria-describedby":l.password?"CustomerPassword-error":void 0,onInput:()=>p("password")}),r.createElement("label",{htmlFor:"CustomerPassword",className:[i.zb,c.Pf].join(" ")},"Password"),l.password&&r.createElement("span",{className:i.ah,id:"CustomerPassword-error",role:"alert"},l.password)),r.createElement("div",{className:i.wh},r.createElement("input",{type:"submit",className:"btn",value:"Sign In"})),r.createElement("div",{className:i.U5},r.createElement("div",{className:i.ZZ},r.createElement(n.A,{href:"/account/register"},"Create Account"))))))};const m=()=>r.createElement(l.G,{title:"Login",url:"/account/login",hide:!0})},6778:function(e,t,a){a.d(t,{G:function(){return o}});var r=a(6540),n=a(6462),l=a(2711);const o=e=>{let{title:t,description:a,image:o,url:s=!1,children:i,hide:c=!1,markdown:m=!1,describedby:u=!1}=e;const d=(0,n.useLocation)();let p=`${t}${t.includes("Buck Mason")?"":" | Buck Mason"}`,f=o?(0,l.vt)(o,1024,!0):"https://cdn.shopify.com/s/files/1/0123/5065/2473/files/chicago_1_0d30a8f6-9b69-4702-9afe-2d58adbfcbf7.jpg?v=1696020535",E=a||"Inspired by laid back California ethos of easy living, quality, & simplicity, \n Buck Mason is a modern American brand that makes fashion less complicated.";const g=s?`https://www.buckmason.com${s.split("?")[0]}`:d.href.replace(/\/$/,"").split("?")[0];return r.createElement(r.Fragment,null,r.createElement("title",null,p),r.createElement("meta",{property:"og:url",content:g}),r.createElement("meta",{property:"og:title",content:(0,l.RC)(p)}),r.createElement("meta",{property:"og:image",content:f}),r.createElement("link",{rel:"image_src",href:f}),r.createElement("meta",{name:"twitter:image",content:f}),r.createElement("meta",{name:"twitter:title",content:(0,l.RC)(p)}),r.createElement("meta",{name:"twitter:url",content:g}),!c&&r.createElement("link",{rel:"canonical",href:g}),c&&r.createElement("meta",{name:"robots",content:"noindex"}),r.createElement("meta",{name:"description",content:(0,l.RC)(E)}),r.createElement("meta",{property:"og:description",content:(0,l.RC)(E)}),r.createElement("meta",{name:"twitter:description",content:(0,l.RC)(E)}),m&&r.createElement("link",{rel:"alternate",type:"text/markdown",href:`https://www.buckmason.com${m}`}),(m||u)&&r.createElement("link",{rel:"describedby",type:"text/markdown",href:"https://www.buckmason.com/llms.txt"}),i)}},7622:function(e,t,a){a.d(t,{DD:function(){return i},GZ:function(){return o},LV:function(){return c},Pf:function(){return n},T1:function(){return l},VA:function(){return s},hF:function(){return r}});var r="logreg-module--input--72c7e",n="logreg-module--label--d2db4",l="logreg-module--logreg--f483d",o="logreg-module--squarecheck--0b983",s="logreg-module--subtitle--c2490",i="logreg-module--title--df3f7",c="logreg-module--wrap--40253"}}]); 2//# sourceMappingURL=component---src-pages-account-login-jsx-0c876dbec33580616bf3.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.