1"use strict";(self.rspackChunk_pathwright_mainclient=self.rspackChunk_pathwright_mainclient||[]).push([["ro"],{tyj(e,t,n){n.r(t);var l=n("PT"),s=n("ag"),a=n("lf"),i=n("th1"),o=n("dx"),u=n("yoh"),r=n("LQ"),c=n("xtv"),d=n("Ad"),h=n("RB"),x=n("Qt"),p=n("Tlt"),j=n("q3");let f=(0,u.toFormikValidate)(p.joinSpaceSchema),v=()=>{let e=(0,c.useAuthContext)(),t=(0,r.useSpaceContext)();return(0,j.getShouldPromptUserToJoinSpace)({authContext:e,spaceContext:t})};t.default=e=>{let{success:t,loading:n,error:u,onSubmit:r,onComplete:p}=e,{consentDescription:j,inviteToken:k}=(0,c.useAuthContext)(),m=v(),S=!!(m||p),g=e=>{e.preventDefault(),m?r(e):null==p||p()};return(0,o.useEffect)(()=>{t&&(null==p||p())},[t]),(0,l.jsx)(i.l1,{initialValues:{consent:!1,inviteToken:k||""},validate:f,validateOnMount:!0,onSubmit:()=>{},children:e=>(0,l.jsx)(i.lV,{style:{width:"100%"},onSubmit:g,children:(0,l.jsxs)(s.T,{gap:4,children:[(0,l.jsx)(d.default,{error:u}),(0,l.jsx)(x.default,{size:"lg"}),m&&!!k&&(0,l.jsx)(i.D0,{name:"inviteToken",readOnly:!0,hidden:!0}),m&&!!j&&(0,l.jsxs)(a.y8,{name:"consent",checked:!!e.values.consent,onCheckedChange:t=>e.setFieldValue("consent",t.checked),onKeyPress:t=>{13===t.which&&(t.preventDefault(),e.setFieldValue("consent",!e.values.consent,!0))},children:[(0,l.jsx)(a.Ks,{}),(0,l.jsx)(a.v7,{}),(0,l.jsx)(a.Sb,{children:j})]}),S&&(0,l.jsx)(h.default,{loading:n,children:"Continue"})]})})})},n.d(t,{},{useShouldPromptUserToJoinSpace:v})}}]); 2//# sourceMappingURL=ro.59f2dad3e1.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.