1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2076],{41292:function(e,n,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/reviewer-sign-in",function(){return r(31651)}])},31651:function(e,n,r){"use strict";r.r(n),r.d(n,{default:function(){return _}});var t=r(85893),i=r(93717),a=r(13990),s=r(73614),c=r(22757),l=r(71293),o=r(40607),u=r(48783),d=r(85970),f=r(5418),m=r(33090),x=r(57747),h=r(93108),g=r(9008),v=r.n(g),j=r(11163),p=r(67294);function _(){let e=(0,j.useRouter)(),[n,r]=(0,p.useState)(""),[g,_]=(0,p.useState)(""),[b,y]=(0,p.useState)(!1),[N,w]=(0,p.useState)(null),k=async r=>{r.preventDefault(),w(null),y(!0);try{let r=await fetch("/api/auth/reviewer-login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:n,password:g})});if(!r.ok){var t;let e=await r.json().catch(()=>null);w(null!==(t=null==e?void 0:e.error)&&void 0!==t?t:"Sign in failed"),y(!1);return}let i="string"==typeof e.query.callbackUrl?e.query.callbackUrl:"/dashboard";window.location.href=i}catch(e){w("Network error. Please try again."),y(!1)}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(v(),{children:[(0,t.jsx)("title",{children:"Reviewer Sign In"}),(0,t.jsx)("meta",{name:"robots",content:"noindex,nofollow"})]}),(0,t.jsx)(i.k,{minH:"100vh",align:"center",justify:"center",bg:"gray.50",px:4,children:(0,t.jsxs)(a.Z,{maxW:"md",w:"100%",boxShadow:"lg",children:[(0,t.jsxs)(s.O,{children:[(0,t.jsx)(c.X,{size:"md",children:"Reviewer Sign In"}),(0,t.jsx)(l.x,{fontSize:"sm",color:"gray.600",mt:2,children:"Restricted access for app store reviewers."})]}),(0,t.jsx)(o.e,{children:(0,t.jsx)("form",{onSubmit:k,children:(0,t.jsxs)(u.g,{spacing:4,align:"stretch",children:[(0,t.jsxs)(d.NI,{isRequired:!0,children:[(0,t.jsx)(f.l,{children:"Email"}),(0,t.jsx)(m.I,{type:"email",value:n,onChange:e=>r(e.target.value),autoComplete:"username"})]}),(0,t.jsxs)(d.NI,{isRequired:!0,children:[(0,t.jsx)(f.l,{children:"Password"}),(0,t.jsx)(m.I,{type:"password",value:g,onChange:e=>_(e.target.value),autoComplete:"current-password"})]}),N&&(0,t.jsx)(x.xu,{bg:"red.50",borderWidth:1,borderColor:"red.200",color:"red.700",px:3,py:2,borderRadius:"md",fontSize:"sm",children:N}),(0,t.jsx)(h.z,{type:"submit",colorScheme:"blue",isLoading:b,loadingText:"Signing in",children:"Sign in"})]})})})]})})]})}},73614:function(e,n,r){"use strict";r.d(n,{O:function(){return l}});var t=r(6789),i=r(25432),a=r(16554),s=r(2169),c=r(85893),l=(0,a.G)(function(e,n){let{className:r,...a}=e,l=(0,t.v)();return(0,c.jsx)(s.m.div,{ref:n,className:(0,i.cx)("chakra-card__header",r),__css:l.header,...a})})},40607:function(e,n,r){"use strict";r.d(n,{e:function(){return l}});var t=r(6789),i=r(25432),a=r(16554),s=r(2169),c=r(85893),l=(0,a.G)(function(e,n){let{className:r,...a}=e,l=(0,t.v)();return(0,c.jsx)(s.m.div,{ref:n,className:(0,i.cx)("chakra-card__body",r),__css:l.body,...a})})},6789:function(e,n,r){"use strict";r.d(n,{Y:function(){return t},v:function(){return i}});var[t,i]=(0,r(16902).eC)("Card")},13990:function(e,n,r){"use strict";r.d(n,{Z:function(){return u}});var t=r(6789),i=r(25432),a=r(16554),s=r(33179),c=r(77030),l=r(2169),o=r(85893),u=(0,a.G)(function(e,n){let{className:r,children:a,direction:u="column",justify:d,align:f,...m}=(0,s.Lr)(e),x=(0,c.jC)("Card",e);return(0,o.jsx)(l.m.div,{ref:n,className:(0,i.cx)("chakra-card",r),__css:{display:"flex",flexDirection:u,justifyContent:d,alignItems:f,position:"relative",minWidth:0,wordWrap:"break-word",...x.container},...m,children:(0,o.jsx)(t.Y,{value:x,children:a})})})},5418:function(e,n,r){"use strict";r.d(n,{l:function(){return u}});var t=r(85970),i=r(16554),a=r(77030),s=r(33179),c=r(2169),l=r(25432),o=r(85893),u=(0,i.G)(function(e,n){var r;let i=(0,a.mq)("FormLabel",e),u=(0,s.Lr)(e),{className:f,children:m,requiredIndicator:x=(0,o.jsx)(d,{}),optionalIndicator:h=null,...g}=u,v=(0,t.NJ)(),j=null!=(r=null==v?void 0:v.getLabelProps(g,n))?r:{ref:n,...g};return(0,o.jsxs)(c.m.label,{...j,className:(0,l.cx)("chakra-form__label",u.className),__css:{display:"block",textAlign:"start",...i},children:[m,(null==v?void 0:v.isRequired)?x:h]})});u.displayName="FormLabel";var d=(0,i.G)(function(e,n){let r=(0,t.NJ)(),i=(0,t.e)();if(!(null==r?void 0:r.isRequired))return null;let a=(0,l.cx)("chakra-form__required-indicator",e.className);return(0,o.jsx)(c.m.span,{...null==r?void 0:r.getRequiredIndicatorProps(e,n),__css:i.requiredIndicator,className:a})});d.displayName="RequiredIndicator"},71293:function(e,n,r){"use strict";r.d(n,{x:function(){return u}});
1var t=r(16554),i=r(77030),a=r(33179),s=r(2169),c=r(25432),l=r(87052),o=r(85893),u=(0,t.G)(function(e,n){let r=(0,i.mq)("Text",e),{className:t,align:u,decoration:d,casing:f,...m}=(0,a.Lr)(e),x=(0,l.o)({textAlign:e.align,textDecoration:e.decoration,textTransform:e.casing});return(0,o.jsx)(s.m.p,{ref:n,className:(0,c.cx)("chakra-text",e.className),...x,...m,__css:r})});u.displayName="Text"},22757:function(e,n,r){"use strict";r.d(n,{X:function(){return o}});var t=r(16554),i=r(77030),a=r(33179),s=r(2169),c=r(25432),l=r(85893),o=(0,t.G)(function(e,n){let r=(0,i.mq)("Heading",e),{className:t,...o}=(0,a.Lr)(e);return(0,l.jsx)(s.m.h2,{ref:n,className:(0,c.cx)("chakra-heading",e.className),...o,__css:r})});o.displayName="Heading"},48783:function(e,n,r){"use strict";r.d(n,{g:function(){return s}});var t=r(55281),i=r(16554),a=r(85893),s=(0,i.G)((e,n)=>(0,a.jsx)(t.K,{align:"center",...e,direction:"column",ref:n}));s.displayName="VStack"},87052:function(e,n,r){"use strict";function t(e){let n=Object.assign({},e);for(let e in n)void 0===n[e]&&delete n[e];return n}r.d(n,{o:function(){return t}})}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=41292)}),_N_E=e.O()}]);
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.