1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1031],{71031:(e,s,r)=>{r.r(s),r.d(s,{default:()=>F});var a=r(37876),t=r(14232),i=r(80013);let n=(0,r(11722).A)({passwordIcon:{height:24,width:24}});var d=r(79270),o=r(44395),l=r(80553),c=r(21271),h=r(18952),u=r(20243),w=r(84875),p=r(39467),g=r(71733),x=r(4728),b=r(67906),j=r(65754),A=r(72147),m=r(35662),v=r(82407),y=r(40358),S=r(35699);let f=e=>{let s=e.country||y.jC;(0,S.M)(s);let r=n(),{t}=(0,i.B)();return(0,a.jsx)("div",{children:(0,a.jsxs)(d.A,{open:e.showDialog,"aria-labelledby":"form-dialog-title",children:[(0,a.jsx)(o.A,{id:"form-dialog-title",children:"Restricted Access"}),(0,a.jsx)(l.A,{children:(0,a.jsxs)("form",{onSubmit:s=>{s.preventDefault(),e.handleSubmit()},noValidate:!0,children:[(0,a.jsx)(c.A,{children:"To access this website, please enter the password here."}),(0,a.jsxs)(h.A,{variant:"standard",margin:"dense",fullWidth:!0,required:!0,error:e.error,children:[(0,a.jsx)(u.A,{htmlFor:"password",children:t("sign-in:password")}),(0,a.jsx)(w.A,{autoFocus:!0,margin:"dense",id:"restrictedAccessPassword",type:e.showPassword?"text":"password",onChange:e.handleOnChange,value:e.password,fullWidth:!0,error:e.error,disabled:e.busy,endAdornment:(0,a.jsx)(p.A,{position:"end",children:(0,a.jsx)(g.A,{"aria-label":"toggle password visibility",onClick:e.handleToggleShowPassword,disabled:e.busy,edge:"end",size:"large",children:e.showPassword?(0,a.jsx)(m.A,{className:r.passwordIcon}):(0,a.jsx)(v.A,{className:r.passwordIcon})})})}),(0,a.jsx)(x.A,{id:"component-error-text",children:e.error&&t("validation:sign-in.invalid-password")})]})]})}),(0,a.jsx)(b.A,{children:(0,a.jsx)(j.A,{onClick:()=>{e.handleSubmit()},disabled:e.busy,color:"primary",children:e.busy?(0,a.jsx)(A.A,{size:20}):t("button.ok")})})]})})};var C=r(39324),k=r.n(C),P=r(40941),D=r(80959),N=r(87049),W=r(98684),_=r(89099);let F=e=>{let s=(0,_.useRouter)(),{publicRuntimeConfig:r}=k()(),i=r.restrictAccess&&(!s.pathname.startsWith("/preview")||!s.pathname.startsWith("/[lang]/preview")),[n,d]=t.useState(i),[o,l]=t.useState(""),[c,h]=t.useState(!1),[u,w]=t.useState(!1),[p,g]=t.useState(!1);return(0,a.jsx)(a.Fragment,{children:n?(0,a.jsx)(f,{country:e.country,password:o,showPassword:c,error:u,showDialog:n,busy:p,handleOnChange:e=>{l(e.target.value),w(!1)},handleSubmit:()=>{if(w(!1),!o||""===o)return void w(!0);g(!0),((e,s,r)=>{(0,P.K)("".concat(D.KD,"/restrict-access")).post({password:e}).then(e=>{s(e)},e=>{r(e)}).catch(e=>{r(e)})})((0,N.X)().encryptRsa((0,W.w)(),o),()=>{g(!1),d(!1)},()=>{g(!1),w(!0)})},handleToggleShowPassword:()=>{h(!c)}}):e.children})}}}]); 2//# sourceMappingURL=1031.40e69f7f2e91a4fb.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.