1"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[1796],{1796(e,n,o){o.r(n),o.d(n,{default:()=>i});var t=o(5544),r=o(5043),a=o(6767),s=o(6328),l=o(4980),u=o(8003),c=o(579);function i(){const e=(0,a.g)().code,n=(0,a.Zp)(),o=(0,r.useState)(!1),i=(0,t.A)(o,2),d=i[0],p=i[1];return(0,r.useEffect)(()=>{let o=!1;return(async()=>{try{const t=(await l.F.post("/groups/join/".concat(e))).data;if(o)return;"pending"===(null===t||void 0===t?void 0:t.my_status)?(s.oR.success("Request sent \u2014 waiting for admin approval"),n("/groups",{replace:!0})):null!==t&&void 0!==t&&t.id?(s.oR.success("Welcome to ".concat(t.name||"the group","!")),n("/groups/".concat(t.id),{replace:!0})):n("/groups",{replace:!0})}catch(a){var t,r;s.oR.error((null===a||void 0===a||null===(t=a.response)||void 0===t||null===(r=t.data)||void 0===r?void 0:r.detail)||"Invite link is invalid or expired"),n("/groups",{replace:!0})}finally{o||p(!0)}})(),()=>{o=!0}},[e,n]),d?null:(0,c.jsx)(u.A,{})}}}]); 2//# sourceMappingURL=1796.74fd320f.chunk.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.