PageSourceSearch

https://scoutsland.live/assets/entries/pages_scout_organizations_join_-code.CTtUWK1Q.js

js scoutsland.live collected 2026-10-02 02:03:17 UTC 6,289 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"821ea7e147f045d2860a3e0d1e100e4ae59e5c20"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="885ce90c-b1d5-407a-8d78-f514853c7df5",e._sentryDebugIdIdentifier="sentry-dbid-885ce90c-b1d5-407a-8d78-f514853c7df5")}catch(a){}}();import{ad as e,a as t,b as a,l as s,bu as i,D as n,B as r,u as o,a_ as l,a$ as d,b0 as c,b1 as u,b2 as h}from"../chunks/chunk-O6FBTeNJ.js";import{r as p,j as f,f as m}from"../chunks/chunk-DbxBeaFY.js";import{G as g}from"../chunks/chunk-2TJn8Qca.js";import{C as j}from"../chunks/chunk-4uPJb4L6.js";import{S as x}from"../chunks/chunk-DFmwVqnZ.js";import{u as y}from"../chunks/chunk-B5R0n4Sp.js";import{B as v,aJ as S,a as T,K as k,w}from"../chunks/chunk-88Eu5Xbc.js";import"../chunks/chunk-BodaDULI.js";import"../chunks/chunk-COvqMv2m.js";import"../chunks/chunk-CtPuOAEL.js";import"../chunks/chunk-BWudSaIR.js";/* empty css                      *//* empty css                      */import"../chunks/chunk-Crgq2rOm.js";const z=()=>{const{code:l}=e(),d=o(),{t:c}=y(),{isSignedIn:u,isLoaded:h}=t(),m=a(),[z,b]=p.useState("idle"),[P,E]=p.useState(""),A=p.useRef(!1);p.useEffect(()=>{s.viewJoinOrganization()},[]);const[N]=i({refetchQueries:[{query:g}]});return p.useEffect(()=>{u&&l&&!A.current&&(A.current=!0,(async()=>{b("joining");try{const e=await N({variables:{inviteCode:l}}),t=e.data?.joinViaInviteLink;t?.success?(s.joinOrganization(t.member?.organization?.name||"via invite"),b("success"),setTimeout(()=>d("/scout"),2e3)):(b("error"),E(t?.message||c("scout.orgActions.joinOrgError")))}catch(e){b("error"),E(e instanceof Error?e.message:c("scout.orgActions.joinOrgError"))}})())},[u,l,N,d,c]),f.jsx("div",{className:"min-h-[60vh] flex items-center justify-center p-4",children:f.jsx(j,{className:`max-w-md w-full ${n.spacing.cardStandard} text-center`,children:f.jsxs("div",{className:"flex flex-col items-center gap-4",children:[f.jsx("div",{className:`w-16 h-16 rounded-full flex items-center justify-center ${n.colors.background.tertiary}`,children:f.jsx(v,{className:"w-8 h-8 text-primary-500"})}),f.jsx("h1",{className:`text-xl font-semibold ${n.colors.text.primary}`,children:c("scout.joinOrg.title","Join Organization")}),h&&!u&&f.jsxs(f.Fragment,{children:[f.jsx("p",{className:n.colors.text.secondary,children:c("scout.joinOrg.signInRequired","Please sign in to join this organization.")}),m?f.jsx(x,{mode:"modal",forceRedirectUrl:`/scout/organizations/join/${l}`,children:f.jsxs(r,{children:[f.jsx(S,{className:"w-4 h-4 mr-2"}),c("auth.signIn","Sign In")]})}):f.jsxs(r,{disabled:!0,children:[f.jsx(T,{className:"w-4 h-4 mr-2 animate-spin"}),c("auth.signIn","Sign In")]})]}),u&&"idle"===z&&f.jsx("p",{className:n.colors.text.secondary,children:c("scout.joinOrg.preparing","Preparing to join...")}),"joining"===z&&f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx(T,{className:"w-6 h-6 animate-spin text-primary-500"}),f.jsx("p",{className:n.colors.text.secondary,children:c("scout.joinOrg.joining","Joining organization...")})]}),"success"===z&&f.jsxs("div",{className:"flex flex-col items-center gap-2",children:[f.jsx(k,{className:"w-8 h-8 text-green-500"}),f.jsx("p",{className:"text-green-600 dark:text-green-400 font-medium",children:c("scout.orgActions.joinedOrg","Successfully joined organization")}),f.jsx("p",{className:`text-sm ${n.colors.text.tertiary}`,children:c("scout.joinOrg.redirecting","Redirecting to organizations...")})]}),"error"===z&&f.jsxs("div",{className:"flex flex-col items-center gap-3",children:[f.jsx(w,{className:"w-8 h-8 text-red-500"}),f.jsx("p",{className:"text-red-600 dark:text-red-400 font-medium",children:P}),f.jsx(r,{variant:"outline",onClick:()=>d("/scout?view=organizations"),children:c("scout.joinOrg.goToOrgs","Go to Organizations")})]})]})})})},b={hasServerOnlyHook:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!1}},isClientRuntimeLoaded:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:!0}},onBeforeRenderEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},dataEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},guardEnv:{type:"computed",definedAtData:null,valueSerialized:{type:"js-serialized",value:null}},onRenderClient:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/onRenderClient",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:h}},onPageTransitionStart:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionStart.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:u}},onPageTransitionEnd:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+onPageTransitionEnd.ts",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:c}},Page:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/scout/organizations/join/@code/+Page.tsx",fileExportPathToShowToUser:[]},valueSerialized:{type:"plus-file",exportValues:Object.freeze(Object.defineProperty({__proto__:null,default:function(){const e=m.c(1);let t;return e[0]===Symbol.for("react.memo_cache_sentinel")?(t=f.jsx(z,{}),e[0]=t):t=e[0],t}},Symbol.toStringTag,{value:"Module"}))}},hydrationCanBeAborted:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/config",fileExportPathToShowToUser:["default","hydrationCanBeAborted"]},valueSerialized:{type:"js-serialized",value:!0}},prefetchStaticAssets:{type:"standard",definedAtData:{filePathToShowToUser:"/pages/+config.ts",fileExportPathToShowToUser:["default","prefetchStaticAssets"]},valueSerialized:{type:"js-serialized",value:"viewport"}},Layout:{type:"cumulative",definedAtData:[{filePathToShowToUser:"/pages/+Layout.t
1sx",fileExportPathToShowToUser:[]}],valueSerialized:[{type:"plus-file",exportValues:d}]},Loading:{type:"standard",definedAtData:{filePathToShowToUser:"vike-react/__internal/integration/Loading",fileExportPathToShowToUser:[]},valueSerialized:{type:"pointer-import",value:l}}};export{b as configValuesSerialized};

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.