PageSourceSearch

https://console.suger.io/assets/route-Jg-2JO52.js

js suger.io collected 2026-10-02 11:47:21 UTC 5,987 bytes, 1 lines download raw bytes

1import{i2 as t,aE as f,ct as u,z as b,aw as h,y as v,ae as y,bE as j}from"./index-m0nIusX2.js";import{O as g}from"./main-B-Q_hDbY.js";import{F as N}from"./FeatureNotAvailable-u-3TOsfP.js";import{a as k}from"./useUniversityEnabled-iQIuacj5.js";import{u as S}from"./useUniversityPermissions-By7NKo1t.js";import{L as U}from"./lock-CPIAZmx2.js";import{H as C,a as I}from"./useDebouncedValue-ICJsIdDe.js";import{S as O}from"./star-DgQDuNQ8.js";import{M as T}from"./message-square-BBJ5sqAl.js";import{a as z}from"./useUniversityState-Dp_n3Q45.js";import{U as c}from"./index-DyaMaZFC.js";import"./useNavigate-CjRXjgJ2.js";import"./toast-DVMkOnGB.js";import"./NewVersionNotice-CrTFp0hf.js";import"./useBrandTheme-sQQ09a9X.js";import"./MultiChannelRevenueApp-DUnEa3zZ.js";import"./revenue-Bu8mA0KS.js";import"./partnerLogo-BXvhM4ZD.js";import"./mdi-3HaUydhU.js";import"./badge-BCMxaEMg.js";import"./select-gOil4l5w.js";import"./index-BRn12YI3.js";import"./index-BdQq_4o_.js";import"./index-MnGK8kX1.js";import"./index-B5SjYlct.js";import"./index-B44nOmpW.js";import"./entitlement-CyHOcwOn.js";import"./usePostHog-CRYHY6ir.js";import"./checkbox-G2vka5Hu.js";import"./index-uEVxYnCT.js";import"./popover-CGlOkWc4.js";import"./index-BXR6F2tF.js";import"./dialog-CFYhFcS7.js";import"./table-CrmSJbvH.js";import"./card-GJzlNXrB.js";import"./input-19-b3r-T.js";import"./skeleton-CNdnTm6N.js";import"./label-CDX2fXz3.js";import"./native-date-input-DI2oKHvG.js";import"./info-tooltip-XXnoIbIR.js";import"./react-apexcharts.esm-DfsHi1ot.js";import"./useQueries-DPzJKR8R.js";import"./data-table-DhOn_5Ve.js";import"./tabs-CkSvPL9R.js";import"./index-vDSVTUCl.js";import"./index-B6ksRBvq.js";import"./textarea-DQD8e6_8.js";import"./radio-group-C08LUop7.js";import"./index-BeoYln4u.js";import"./alert-dialog-xuEC_uzA.js";import"./index-CiNTbKJG.js";import"./SearchBox-BlgUqEeD.js";import"./JsonViewer-CRlhcjkI.js";import"./StatusChip-DIPkyc-U.js";import"./purify.es-DCSLj_Qk.js";import"./command-QbbEZl6d.js";import"./index-CL1vzYPC.js";import"./with-selector-GRmPFr_4.js";import"./usePrmEnabled-B2Yxt8-s.js";import"./queryKeys-B45qGzbE.js";import"./roles-C-xf-LVw.js";import"./suger-university-Io6MLpnw.js";function L(){return t.jsx("div",{className:"flex items-center justify-center h-[60vh]",children:t.jsxs("div",{className:"flex max-w-md flex-col items-center text-center",children:[t.jsx("div",{className:"mb-4 flex size-12 items-center justify-center rounded-full bg-muted",children:t.jsx(U,{className:"size-6 text-muted-foreground"})}),t.jsx("h2",{className:"text-xl font-semibold text-foreground mb-2",children:"You don't have access to Suger University"}),t.jsxs("p",{className:"text-sm text-muted-foreground",children:["Your role does not include the ",t.jsx("span",{className:"font-medium",children:"organization.read"})," ","permission. Ask an admin in your organization to update your role if you need access."]})]})})}function E({children:i}){const{enabled:s,isLoading:n}=k(),{canRead:o}=S();return!s&&n?t.jsx("div",{className:"flex items-center justify-center h-[60vh]",role:"status","aria-label":"Loading",children:t.jsx(f,{className:"size-8 animate-spin text-muted-foreground"})}):s?o?t.jsx(t.Fragment,{children:i}):t.jsx(L,{}):t.jsx(N,{feature:"Suger University"})}const w={not_started:"border border-muted-foreground/50 bg-transparent",in_progress:"bg-suger-orange",complete:"bg-success"};function A({modules:i,playbooks:s}){const n=i.map(o=>({label:o.label,entries:o.playbookIds.map(a=>({title:s[a]?.title??a,to:"/university/playbook/$playbookId",params:{playbookId:a},playbookId:a}))}));return[{entries:[{title:"Home",to:"/university",icon:O},{title:"My progress",to:"/university/progress",icon:b}]},{label:"Assessment",entries:[{title:"What is COSS?",to:"/university/coss/about",icon:h},{title:"Take the COSS Assessment",to:"/university/coss/assess",icon:T},{title:"COSS scorecard",to:"/university/coss/scorecard",icon:v}]},{label:"Your artifacts",entries:[{title:"GTM Charter",to:"/university/charter",icon:y},{title:"Better Together Story",to:"/university/story",icon:j}]},...n]}function G(i){const s=C({select:e=>e.location.pathname}),n=A(i),o=i.statuses??{},a=e=>e.params?Object.entries(e.params).reduce((l,[r,m])=>l.replace(`$${r}`,m),e.to):e.to,x=e=>e==="/university"?s===e||s===`${e}/`:s.startsWith(e);return t.jsxs("nav",{"aria-label":"Suger University",className:"sticky top-0 max-h-[calc(100vh-4rem)] w-60 shrink-0 self-start overflow-y-auto border-r border-border py-4 pr-2",children:[t.jsxs("div",{className:"px-3 pb-3",children:[t.jsx("div",{className:"text-base font-semibold text-foreground",children:"Suger University"}),t.jsx("div",{className:"text-xs text-muted-foreground",children:"Cloud GTM coaching"})]}),n.map((e,l)=>t.jsxs("div",{className:"mb-3",children:[e.label&&t.jsx("div",{className:"px-3 pb-1 text-[11px] font-semibold uppercase tracking-wider text-muted-foreground",children:e.label}),t.jsx("ul",{className:"space-y-0.5",children:e.entries.map(r=>{const m=a(r),p=r.icon,d=r.playbookId?o[r.playbookId]??"not_started":void 0;return t.jsx("li",{children:t.jsxs(I,{to:r.to,params:r.params,className:u("flex items-center gap-2.5 rounded-md px-3 py-1.5 text-sm text-foreground hover:bg-muted",x(m)&&"bg-muted font-medium"),children:[p&&t.jsx(p,{className:"size-4 shrink-0 text-muted-foreground","aria-hidden":!0}),d&&t.jsx("span",{"data-testid":`nav-status-${r.playbookId}`,className:u("size-2 shrink-0 rounded-full",w[d]),"aria-hidden":!0}),t.jsx("span",{className:"truncate",children:r.title})]})},m)})})]},e.label??`group-${l}`))]})}function qt(){return t.jsx(E,{children:t.jsx($,{})})}function $(){const{state:i}=z(),s=i?.playbooks?.[c.cloud]??{},n=Object.fromEntries(Object.entries(s).map(([o,a])=>[o,a.status]));return t.jsxs("div",{className:"prm-brand-primary flex min-h-full gap-6",children:[t.jsx(G,{modules:c.modules,playbooks:c.playbooks,statuses:n}),t.jsx("div",{className:"min-w-0 flex-1 py-4",children:t.jsx(g,{})})]})}export{qt as component};

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.