PageSourceSearch

https://www.mckennascafe.com/_next/static/chunks/pages/login-2d5d7647e394b645.js

js mckennascafe.com collected 2026-09-26 16:21:54 UTC 7,793 bytes, 2 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[459],{97946:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/login",function(){return r(3102)}])},3102:function(e,n,r){"use strict";r.r(n);var t=r(52322),o=r(39097),i=r.n(o),a=r(5632),c=r.n(a),l=r(38726),s=r(2784),d=r(87749),u=r(63974),p=r(16162),h=r(99294),g=r(55354),f=r(5288),x=r(63125),_=r(90736),m=r(20051),b=r(89601),y=r(59706);n.default=(0,l.qC)(a.withRouter)(e=>{let{router:n,webConfig:r}=e;(0,s.useEffect)(()=>{(0,m.nD)()&&c().push(_.Z6.HOMEPAGE)},[]);let o=(0,b.k5)(n);return(0,t.jsx)(g.Z,{$backgroundOverride:!0,disabled:!!(0,y.K6)(r,"accounts.disable_accounts"),children:(0,t.jsx)(p.e,{children:(0,t.jsxs)(p.x,{children:[(0,t.jsx)(f.Z,{tag:"h1",accessor:"login.header",html:!0}),(0,t.jsx)(f.Z,{tag:"h3",accessor:"login.subheader",html:!0}),(0,t.jsx)(x.n,{$background:"transparent"}),(0,t.jsx)(h.Z,{}),(0,t.jsx)("p",{children:(0,t.jsx)(i(),{href:{pathname:_.Z6.FORGOT_PASSWORD},passHref:!0,onClick:()=>(0,d.O)(u.x.AUTH__CLICK_FORGOT_PASSWORD),children:(0,t.jsx)(f.Z,{accessor:"forgot_password.prompt"})})}),(0,t.jsx)(x.n,{}),(0,t.jsxs)("p",{children:[(0,t.jsx)(f.Z,{accessor:"signup.prompt",html:!0}),"\xa0",(0,t.jsx)(i(),{href:"".concat(_.Z6.SIGN_UP,"?referrer=").concat(o),children:(0,t.jsx)(f.Z,{accessor:"signup.cta"})})]})]})})})})},16162:function(e,n,r){"use strict";r.d(n,{e:function(){return a},x:function(){return c}});var t=r(43580),o=r(36525),i=r(46956);let a=t.ZP.div.withConfig({componentId:"sc-ea7b8e07-0"})(["align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:calc(100vh - ","px);@media (max-width:767px){background-color:",";min-height:calc(100vh - ","px);}"],2*o._.HEADERHEIGHT,e=>{let{theme:n}=e;return n.auth_page.background_color},2*o._.MOBILE_HEADERHEIGHT),c=t.ZP.div.withConfig({componentId:"sc-ea7b8e07-1"})(e=>{var n,r,t,a;let{theme:c}=e;return{backgroundColor:null!==(n=c.auth_page.background_color)&&void 0!==n?n:"transparent",border:"1px solid ".concat(null!==(r=c.auth_page.border_color)&&void 0!==r?r:"transparent"),borderRadius:"".concat(null!==(t=c.auth_page.border_radius)&&void 0!==t?t:0,"px"),margin:"0 auto",maxWidth:"".concat(o._.MEDIUM_CONTENT,"px"),padding:"40px 20px",textAlign:"center",width:"100%",...(0,i.l)(c.auth_page.font),h1:{margin:0,...(0,i.l)(c.auth_page.secondary_font)},h3:{...(0,i.l)(c.auth_page.font,["color","font_family","font_size","font_style","line_height"]),fontWeight:"normal",margin:0},p:{margin:"20px 0 0"},a:{textDecoration:"underline",transition:"opacity 0.2s linear",...(0,i.l)(c.auth_page.tertiary_font),"&:hover":{opacity:.7}},"@media (max-width: 767px)":{borderColor:null!==(a=c.auth_page.background_color)&&void 0!==a?a:"transparent"}}})},99294:function(e,n,r){"use strict";r.d(n,{Z:function(){return j}});var t=r(52322),o=r(2784),i=r(56580),a=r(5632),c=r.n(a),l=r(63955),s=r(34183),d=r(97421),u=r(47141),p=r(5288),h=r(67946),g=r(74115),f=r(11643),x=e=>{let{loading:n,onLogin:r,loadingCaptcha:o,connectionError:i,submitting:a}=e,{handleSubmit:c,register:x}=(0,l.cI)(),_=u.g7,m=e=>{r(Object.assign({identifier:e.identifier,secret:e.secret},_))};return(0,t.jsxs)(s.yO,{onSubmit:e=>{e.preventDefault(),c(m)(e)},children:[(0,t.jsx)(g.H,{condition:!!i,children:(0,t.jsx)(f.m,{testId:"login-connection-error",retryTestId:"login-connection-retry",retrying:!!(n||o||a),onRetry:()=>{c(m)()}})}),(0,t.jsxs)(s.x,{children:[(0,t.jsx)("legend",{children:"Login form"}),(0,t.jsxs)(s.dS,{style:{display:"flex",flexDirection:"column",gap:"0rem"},children:[(0,t.jsxs)(s.Ll,{width:"100%",$autoHeight:!0,children:[(0,t.jsx)(h.Z,{visuallyHidden:!1,htmlFor:"identifier",children:"Email"}),(0,t.jsx)(s.Fy,{type:"email",placeholder:"Enter Email",autoComplete:"email",...x("identifier"),autoFocus:!1,style:{marginBottom:"16px"}},"identifier")]},"login-form-field-identifier"),(0,t.jsxs)(s.Ll,{width:"100%",$autoHeight:!0,children:[(0,t.jsx)(h.Z,{visuallyHidden:!1,htmlFor:"identifier",children:"Password"}),(0,t.jsx)(s.Fy,{type:"password",placeholder:"Enter Password",autoComplete:"current-password",...x("secret"),autoFocus:!1,style:{marginBottom:"16
1px"}},"secret")]},"login-form-field-password")]})]}),(0,t.jsx)(d.Db,{"data-testid":"signin-button",$submitting:n,type:"submit",style:{width:"100%"},$buttonTheme:"primary",children:(0,t.jsx)(g.H,{condition:!!o,whenTrue:"Loading",whenFalse:(0,t.jsx)(p.Z,{accessor:n?"login.cta_loading":"login.cta"})})})]})},_=r(89601),m=r(48994),b=r(44722),y=r(15325),j=()=>{let e=(0,i.useDispatch)(),{fetchCaptchaToken:n,captchaEnabled:r,loadingCaptcha:a}=(0,b.Z)({action:u.i5.API_ACTIONS.LOGIN}),l=(0,i.useSelector)(e=>e.app.auth.loading),s=(0,i.useSelector)(e=>e.app.auth.loginConnectionError),[d,p]=(0,o.useState)(!1);(0,o.useEffect)(()=>{s&&p(!1)},[s]),(0,y.h)("login");let h=(n,r)=>{e(m.Z.login(Object.assign({},n,{[u.i5.FIELD_NAME]:r}),(0,_.PA)(c()),!1,c().pathname))},g=async t=>{p(!0),h(t,r?await n():null),e(m.Z.checkoutAsGuest(null))};return(0,t.jsx)(x,{onLogin:e=>void g(e),loading:l,loadingCaptcha:a,connectionError:s,submitting:d})}},11643:function(e,n,r){"use strict";r.d(n,{m:function(){return d}});var t=r(52322),o=r(2784),i=r(53237);let a=(0,i.zo)("div",{display:"flex",flexDirection:"column",gap:"8px",padding:"12px 16px",marginBottom:"16px",border:"1px solid var(--connection-error__border-color, #d93025)",borderRadius:"4px",backgroundColor:"var(--connection-error__background-color, #fdecea)",color:"var(--connection-error__color, #5f1414)","@sm":{flexDirection:"row",alignItems:"center",justifyContent:"center"}}),c=(0,i.zo)("p",{margin:"0 !important",fontSize:"14px",lineHeight:"20px",whiteSpace:"pre-line",paddingRight:"12px",paddingLeft:"12px"}),l=(0,i.zo)("button",{padding:"6px 14px",fontSize:"14px",fontWeight:600,color:"var(--connection-error-retry__color, #fff)",backgroundColor:"var(--connection-error-retry__background-color, #d93025)",border:"none",borderRadius:"4px",cursor:"pointer","&:disabled":{opacity:.6,cursor:"not-allowed"},"@sm":{alignSelf:"auto",whiteSpace:"nowrap"}});var s=r(20496);let d=e=>{let{testId:n,retryTestId:r,retrying:i,onRetry:d,message:u=s.Qn}=e,p=(0,o.useRef)(!1);return(0,o.useEffect)(()=>{i||(p.current=!1)},[i]),(0,t.jsxs)(a,{role:"alert","data-testid":n,children:[(0,t.jsx)(c,{children:u}),(0,t.jsx)(l,{type:"button","data-testid":r,disabled:i,onClick:()=>{i||p.current||(p.current=!0,d())},children:i?"Trying again…":"Try again"})]})}},63125:function(e,n,r){"use strict";r.d(n,{n:function(){return i}});var t=r(43580),o=r(36525);let i=t.ZP.hr.withConfig({componentId:"sc-b1115afe-0"})(["background-color:",";display:block;height:1px;border:0;margin:","px 0;padding:0;"],e=>{let{$background:n,theme:r}=e;return n||r.global.primary_border_color},o.jl.MEDIUM)},15325:function(e,n,r){"use strict";r.d(n,{h:function(){return a}});var t=r(2784),o=r(56580),i=r(48994);function a(e){let n=(0,o.useDispatch)();(0,t.useEffect)(()=>{n(i.Z.clearConnectionErrors(e))},[n,e])}},44722:function(e,n,r){"use strict";var t=r(2784),o=r(17473),i=r(75470),a=r(20496),c=r(89601);n.Z=e=>{var n,r,l;let{action:s}=e,{executeRecaptcha:d}=(0,o.xX)(),u=(0,i.v9)(e=>e.app.organization),p=null!==(l=null==u?void 0:null===(r=u.external_auth)||void 0===r?void 0:null===(n=r.captcha)||void 0===n?void 0:n.site_key)&&void 0!==l?l:"",h=p&&!d;return{fetchCaptchaToken:(0,t.useCallback)(async()=>{if(!d)return a.uT("CAPTCHA has not been loaded","warning",{action:s}),null;let[e,n]=await (0,c.Y3)(d(s));if(n||!e){let r=Error("Error executing CAPTCHA. Please refresh the page and try again.");a.Tb(r,"error",{action:s,error:n,isTokenNull:e?"no":"yes"})}return e},[d,s]),captchaEnabled:!!p,loadingCaptcha:!!h}}}},function(e){e.O(0,[688,462,553,270,955,807,354,888,774,179],function(){return e(e.s=97946)}),_N_E=e.O()}]);
2//# sourceMappingURL=login-2d5d7647e394b645.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.