PageSourceSearch

https://app.trypolarbear.com/assets/SchoolOverviewPage-dcx20DWG.js

js trypolarbear.com collected 2026-10-04 23:25:52 UTC 3,287 bytes, 3 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:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a1068a-f867-7d92-825a-f7a0af7b08af")}catch(e){}}();import{j as e,W as x,s as u,as as p}from"./ui-mYohRvpx.js";import{a as j}from"./query-BDyhWc0a.js";import{u as f,dA as v,A as y,q as N,dz as g,o as r,i as n,j as i,k as o,m as c,l as d,B as b}from"./main-BuFXTOj5.js";import{L as w}from"./router-CHD5ebUU.js";import"./vendor-WF4PsUl_.js";import"./supabase-QYtBhu3e.js";import"./tldraw-CnXIE9Mk.js";import"./radix-ByKTZOWt.js";import"./analytics-Cr0S8IWA.js";import"./motion-B-fsB7B9.js";import"./forms-C2WokjyS.js";const A={active:"default",pilot:"secondary",disabled:"destructive"};function I(){const{user:a}=f(),{data:s,isLoading:l,isError:m,error:h}=j({queryKey:["school-admin","school",(a==null?void 0:a.id)??"anonymous"],queryFn:()=>v(),retry:!1});return l?e.jsx("div",{className:"flex items-center justify-center p-12",children:e.jsx(x,{className:"h-6 w-6 animate-spin"})}):m||!s?e.jsx("div",{className:"p-6",children:e.jsxs(y,{variant:"destructive",children:[e.jsx(u,{className:"h-4 w-4"}),e.jsx(N,{children:g(h)})]})}):e.jsxs("div",{className:"container mx-auto max-w-4xl p-6 space-y-6",children:[e.jsxs("div",{className:"flex items-start justify-between gap-4",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-semibold",children:s.display_name}),e.jsx("p",{className:"text-sm text-muted-foreground",children:"School administration"})]}),e.jsx(r,{variant:A[s.status]??"secondary",children:s.status})]}),e.jsxs(n,{children:[e.jsxs(i,{children:[e.jsxs(o,{className:"flex items-center gap-2 text-base",children:[e.jsx(p,{className:"h-4 w-4"}),"Students in scope"]}),e.jsx(c,{children:"Every account whose school name matches one of the approved variants below. This is a count only — Polarbear does not show student names, work or activity on this page."})]}),e.jsxs(d,{children:[e.jsx("p",{className:"text-3xl font-semibold","data-testid":"student-count",children:s.student_count}),s.student_count===0&&e.jsx("p",{className:"mt-2 text-sm text-muted-foreground",children:"No accounts match yet. Settings you change here will apply once students are matched."})]})]}),e.jsxs(n,{children:[e.jsxs(i,{children:[e.jsx(o,{className:"text-base",children:"Approved school name variants"}),e.jsx(c,{children:"Students are matched to your school by the exact name on their profile. If a variant is missing, those students are not in scope — contact Polarbear to have it added."})]}),e.jsx(d,{children:s.aliases.length===0?e.jsx("p",{className:"text-sm text-muted-foreground",children:"No variants approved yet."}):e.jsx("ul",{className:"space-y-2",children:s.aliases.map(t=>e.jsxs("li",{className:"flex items-center justify-between gap-3 rounded-md border p-2 text-sm",children:[e.jsx("span",{className:"font-mono",children:t.match_value}),e.jsx(r,{variant:"outline",children:t.match_kind})]},`${t.match_kind}:${t.match_value}`))})})]}),e.jsx(b,{asChild:!0,children:e.jsx(w,{to:"/school-admin/settings",children:"Manage settings"})})]})}export{I as default};
2
3//# chunkId=01a1068a-f867-7d92-825a-f7a0af7b08af

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.