1(globalThis.__LOADABLE_LOADED_CHUNKS__=globalThis.__LOADABLE_LOADED_CHUNKS__||[]).push([[14099],{49324:(e,t,a)=>{a.d(t,{A:()=>c});var n=a(90644),r=a(96540);const s=(0,n.A)("div",{target:"etup0q12"})({name:"y2injz",styles:"background:var(--secondary-color);border-radius:6px;padding:25px 20px;position:relative;margin-bottom:30px"}),l=(0,n.A)("strong",{target:"etup0q11"})({name:"uly4ys",styles:"font-size:18px;display:block;color:var(--text-color);padding-bottom:10px"}),i=(0,n.A)("p",{target:"etup0q10"})({name:"xe3b92",styles:"font-size:14px;color:var(--muted-color);padding-bottom:10px"}),c=e=>{let{title:t=null,description:a=null,children:n="",...c}=e;return r.createElement(s,c,t&&r.createElement(l,null,t),a&&r.createElement(i,null,a),n)}},59547:(e,t,a)=>{a.r(t),a.d(t,{default:()=>w});var n=a(90644),r=a(96540),s=a(6442),l=a(58065),i=a(45135),c=a(86102),o=a(46512),m=a(1568),u=a(50400),d=a(19570),g=a(97072),p=a(69455),A=a(37632),E=a(60203),y=a(96689),f=a(49324),h=a(21271),v=a(74420),b=a(23441);const x=(0,n.A)("div",{target:"e111z8301"})({name:"isv5k1",styles:"margin:35px auto;max-width:600px"}),_=(0,n.A)("h1",{target:"e111z8300"})({name:"xe39j4",styles:"font-size:21px;font-weight:600;strong{background:#fff3c9;padding:3px 0;}"});const w=function(){const{code:e}=(0,c.g)(),t=(0,b.A)(),a=(0,i.wA)(),n=(0,s.A)(),w=(0,c.zy)(),[L,k]=(0,r.useState)(!0),[z,S]=(0,r.useState)(null),[H,I]=(0,r.useState)({reason:null,message:null}),[D,U]=(0,r.useState)(!1),$=(0,i.d4)((e=>e.session)),M=(0,i.d4)((e=>e.prcyLinks));async function N(){if(!D){U(!0);try{await E.A.patchInvitation(e,{status:"activated"})?(a((0,A.Hu)({success:[{id:"settings.access.accept.success"}]})),t.push("/")):a((0,A.Hu)({error:[{id:"settings.access.accept.error"}]}))}catch{a((0,A.Hu)({error:[{id:"settings.access.accept.error"}]}))}finally{U(!1)}}}return(0,r.useEffect)((()=>{$.loggedIn&&async function(){try{const t=await E.A.getInvite(e);if(t.error&&I({message:t.error,reason:t?.meta?.reason||"incorrectLink"}),t.data){const e=t.included.find((e=>"profiles"===e.type)),a=t.included.find((e=>"teams"===e.type));S({...t.data.attributes,profile:{id:e.id,...e.attributes},team:{id:a.id,...a.attributes}})}k(!1)}catch(e){e instanceof Error&&(a((0,A.Hu)({error:[e.message]})),e instanceof p.A&&setTimeout((()=>{window.location.pathname="/"}),2e3))}}()}),[]),r.createElement(h.A,null,r.createElement(o.mg,null,r.createElement("title",null,n.formatMessage({id:"teams.acceptInvite.title"},{teamName:z?.team?.name||""}))),r.createElement(x,null,r.createElement(f.A,null,$.loggedIn?r.createElement(r.Fragment,null,!L&&(H.reason?r.createElement(m.Ay,{status:"warning",title:H.message}):r.createElement(r.Fragment,null,r.createElement(_,null,r.createElement(v.A,{id:"teams.acceptInvite.access.title",values:{username:z?.profile?.name||"unknown",teamName:z?.team?.name||""},paragraph:"span"})),r.createElement(u.Ay,{onClick:N,type:"primary",size:"large",loading:D},r.createElement(l.A,{id:"settings.access.accept.button"})))),r.createElement(g.A,{active:!0,loading:L}),r.createElement(g.A,{active:!0,loading:L})):r.createElement(m.Ay,{status:"warning",title:r.createElement(l.A,{id:"settings.access.needSignup"}),extra:r.createElement(d.A,{size:16},r.createElement(u.Ay,{href:`${M.analysis}/signup/oauthGetLoginUrl?r=${M.baseUrl}${w.pathname}`,type:"primary"},r.createElement(l.A,{id:"header.login"})),r.createElement(u.Ay,{href:`${M.analysis}/signup/oauthGetSignupUrl?r=${M.baseUrl}${w.pathname}`},r.createElement(l.A,{id:"header.signup"})))}))),r.createElement(y.A,null))}},74420:(e,t,a)=>{a.d(t,{A:()=>i});var n=a(96540),r=a(6442),s=a(36384);const l={},i=e=>{let{id:t,defaultMessage:a="â",values:i=l}=e;const c=(0,r.A)(),o=(0,s.A)({breaks:!0});return n.createElement("div",{dangerouslySetInnerHTML:{__html:o.render(c.formatMessage({id:t,defaultMessage:a},i))}})}}}]);
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.