PageSourceSearch

https://app.century.tech/assets/Guardian-Cu9WzBnj.js

js century.tech collected 2026-10-01 11:25:46 UTC 4,760 bytes, 1 lines download raw bytes

1import{j as e,c as l,i as D,aD as b,r as i,bf as y,L as v,H as _,e as m,bA as u,ac as C,er as c,m as N,M as A,ae as I,a1 as w,by as f,bz as o,aj as E,k as G}from"./index-BWLcZZIp.js";import{h as M,v as S,w as L,A as P}from"./AppTemplate-DUlEOhgX.js";import{u as T,w as k,h as B}from"./ErrorBoundary-animBvaW.js";import{G as $,f as R,a as H,b as q}from"./GuardianDependant-Bt-S3dFX.js";import{A as z}from"./AccessIllustration-Cs37n9AU.js";import{T as U}from"./useLogin-vwrO0p24.js";import{u as F}from"./commonHelpers-Dqh_cdI1.js";import"./SessionError-Qwv_8uTK.js";import"./Ordinal-C8Q_Z5Uu.js";import"./behaviours-BvNc0jvK.js";import"./PaginationWidget-D71AuR26.js";import"./TableCellLink-vGqH_O78.js";import"./ModalBox-kzz1_R6Q.js";import"./SearchBox-TYA7Hz43.js";import"./NuggetPartner-Dy2VBqZa.js";import"./Tag-DNR5NBSg.js";import"./B2cPartnerLogo-Cnmklnrw.js";import"./ToggleGroup-CdutlVfj.js";import"./ThumbnailList-DHqyVvcH.js";import"./handleApolloError-97tZxEjZ.js";import"./useQuery-BMvceQDr.js";import"./myCoursesStudent.graphql-DxW_qWOo.js";import"./courses-D5-GS9dB.js";import"./MultipleChoice-BE4diUzh.js";import"./ParentSize-B7oVNO17.js";import"./WidgetSelect-CYTAjSWw.js";import"./questionGroup-DAyTe1Zb.js";import"./Collapsible-Bp91WSYw.js";import"./FloatingStepperNav-BgCEVpwr.js";import"./Tooltipped-CLq_y3pL.js";import"./NuggetType-DHBff5rR.js";import"./PageSubheader-DJHDgKTH.js";import"./StudentDashboardMockTests-CO8qztzu.js";import"./mockTests-DOcXViip.js";import"./SelectableCard-CeScnASy.js";import"./LineRadial-CF0BLV5w.js";import"./Panel-DD1vIJ1F.js";import"./PaginationWithMixpanel-W5T3Oj0B.js";import"./TableResponsive-BAjvZNvP.js";import"./FilterToggleGroup-D_z8oDLD.js";import"./SwitchRow-Be9p1taf.js";import"./formik-zod-validator-CkgIN4Wh.js";import"./options-BbaknybE.js";import"./DoubleDash-CZz3OMrR.js";import"./formik-fields-BRgbpsOP.js";import"./RadioGroup-D4kF-VdG.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"[email protected]"};var a=new t.Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="50b0da50-0b34-49de-be3a-34421eed5f0a",t._sentryDebugIdIdentifier="sentry-dbid-50b0da50-0b34-49de-be3a-34421eed5f0a")}catch{}})();const K=({children:t,classNameExt:a,qa:s})=>e.jsx("div",{className:l("cds-dependant-card",a&&a),"data-testid":s,children:t}),O=({children:t})=>e.jsx("div",{className:"cds-dependant-card__avatar",children:t}),V=({dataPrivate:t,name:a,qa:s})=>e.jsx("div",{className:"cds-dependant-card__name","data-testid":s,children:e.jsx("h4",{"data-private":t,children:a})}),d=Object.assign(K,{Avatar:O,Name:V});d.displayName="DependantCard";d.Avatar.displayName="DependantCard.Avatar";d.Name.displayName="DependantCard.Name";const Y=({children:t,classNameExt:a,qa:s})=>e.jsx("div",{className:l("cds-dependant-list-container",a&&a),"data-testid":s,children:e.jsx("ul",{className:"cds-dependant-list",children:t})});function J(){const t=D(),a=b(),{setSelectedDependant:s,setDependants:p}=i.useContext($),x=i.useCallback(async n=>await R(a,n,!0,!0),[a]),{data:r,loading:h}=y(x,!0);T("guardian-dependants",r?r.length>1:!1),i.useEffect(()=>{r&&p(r)},[r,p]);const j=(n,g)=>{s&&s({id:n,name:g}),N.track(A.GuardianDashboardDependantListDependantSelected,{[I.DependantId]:n})};return h?e.jsx(v,{type:"fullpage"}):r?.length?r.length===1?e.jsx(u,{to:`${t.pathname}/${r[0]._id}`,replace:!0}):e.jsx(Y,{qa:"dependants-list",children:r.map(n=>e.jsx("li",{className:"dependant-list__item",children:e.jsx(d,{qa:"dependant-card",children:e.jsxs(C,{to:`${t.pathname}/${n._id}`,onClick:()=>j(n._id||"",c(n)),children:[e.jsx(d.Avatar,{children:e.jsx(S,{profilePic:n.profile?.avatar})}),e.jsx(d.Name,{name:c(n)})]})},n._id)},n._id))}):e.jsxs(M,{qa:"dependants-empty-list",children:[e.jsx(z,{illustration:"no-dependants"}),e.jsx(_.SectionTitle,{children:e.jsx(m,{id:"dependants-no-dependants-title",defaultMessage:"No Dependants."})}),e.jsx(U.Message,{children:e.jsx(m,{id:"dependants-no-dependants-message",defaultMessage:"There are no depen
1dants assigned to this guardian."})})]})}const Q=()=>{const{addBreadcrumb:t}=L(),a=F(),s=w();return i.useEffect(()=>{t({path:a("dependants"),title:s.formatMessage({id:"my-dependants-breadcrumb",defaultMessage:"My Dependants"})})},[t,a,s]),e.jsxs(f,{children:[e.jsx(o,{path:"/",element:e.jsx(J,{})}),e.jsx(o,{path:":dependantId/*",element:e.jsx(H,{})})]})},W=k(Q);function X(){const t=E(),a=G();return i.useLayoutEffect(()=>{t&&a()},[a,t]),e.jsx(q,{children:e.jsx(P,{children:e.jsxs(f,{children:[e.jsx(o,{path:"/",element:e.jsx(u,{to:"dependants",replace:!0})}),e.jsx(o,{path:"dependants/*",element:e.jsx(W,{})})]})})})}const Ke=B(X);export{Ke as default};

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.