1import{s as S,a as $,f as _,l as v,h as b,j as g,d as p,m as w,k as u,i as y,n as m,u as k,g as q,b as x,p as C,c as R,o as V,q as j,t as L,r as M,v as N}from"../chunks/scheduler.5ad5fe71.js";import{S as O,i as P,t as W,a as z}from"../chunks/index.e70da349.js";import{e as D}from"../chunks/each.4ae15473.js";import{p as B}from"../chunks/stores.8067a5d9.js";import{goto as F}from"../chunks/navigation.4e7ecb6b.js";import{authStore as G}from"../chunks/auth.ed9cfa60.js";import{p as A}from"../chunks/parentStore.460cb215.js";import{p as H,c as J}from"../chunks/featureFlags.e18685a5.js";function E(o,t,n){const i=o.slice();return i[7]=t[n],i}function I(o){let t,n,i,h=o[7].label+"",c,r;return{c(){t=_("a"),n=_("i"),i=v(),c=L(h),r=v(),this.h()},l(f){t=b(f,"A",{href:!0,class:!0,"aria-current":!0});var a=g(t);n=b(a,"I",{class:!0}),g(n).forEach(p),i=w(a),c=M(a,h),r=w(a),a.forEach(p),this.h()},h(){u(n,"class","bi "+o[7].icon+" text-sm"),u(t,"href",o[7].href),u(t,"class","flex items-center gap-2 px-4 py-2.5 rounded-lg text-sm font-medium transition-all whitespace-nowrap "+(o[1](o[7])?"bg-indigo-50 text-indigo-700 shadow-sm":"text-gray-500 hover:text-gray-700 hover:bg-gray-50")),u(t,"aria-current",o[1](o[7])?"page":void 0)},m(f,a){y(f,t,a),m(t,n),m(t,i),m(t,c),m(t,r)},p:N,d(f){f&&p(t)}}}function K(o){let t,n,i,h,c=D(o[0]),r=[];for(let e=0;e<c.length;e+=1)r[e]=I(E(o,c,e));const f=o[3].default,a=$(f,o,o[2],null);return{c(){t=_("div"),n=_("nav");for(let e=0;e<r.length;e+=1)r[e].c();i=v(),a&&a.c(),this.h()},l(e){t=b(e,"DIV",{class:!0});var l=g(t);n=b(l,"NAV",{class:!0,"aria-label":!0});var s=g(n);for(let d=0;d<r.length;d+=1)r[d].l(s);s.forEach(p),l.forEach(p),i=w(e),a&&a.l(e),this.h()},h(){u(n,"class","flex items-center gap-1 overflow-x-auto pb-0.5 scrollbar-thin"),u(n,"aria-label","Parent portal navigation"),u(t,"class","mb-6")},m(e,l){y(e,t,l),m(t,n);for(let s=0;s<r.length;s+=1)r[s]&&r[s].m(n,null);y(e,i,l),a&&a.m(e,l),h=!0},p(e,[l]){if(l&3){c=D(e[0]);let s;for(s=0;s<c.length;s+=1){const d=E(e,c,s);r[s]?r[s].p(d,l):(r[s]=I(d),r[s].c(),r[s].m(n,null))}for(;s<r.length;s+=1)r[s].d(1);r.length=c.length}a&&a.p&&(!h||l&4)&&k(a,f,e,e[2],h?x(f,e[2],l,null):q(e[2]),null)},i(e){h||(W(a,e),h=!0)},o(e){z(a,e),h=!1},d(e){e&&(p(t),p(i)),C(r,e),a&&a.d(e)}}}function Q(o,t,n){let i;R(o,B,l=>n(6,i=l));let{$$slots:h={},$$scope:c}=t;const r=[{href:"/dashboard/parent",label:"Overview",icon:"bi-house-door-fill",exact:!0},{href:"/dashboard/parent/children",label:"Children",icon:"bi-people-fill"},...H()?[{href:"/dashboard/parent/approvals",label:"Approvals",icon:"bi-check2-square"}]:[],...J()?[{href:"/dashboard/parent/devices",label:"Devices",icon:"bi-laptop-fill"}]:[],{href:"/dashboard/parent/reports",label:"Reports",icon:"bi-bar-chart-line-fill"},{href:"/dashboard/parent/settings",label:"Settings",icon:"bi-gear-fill"}];let f,a=Date.now();function e(l){const s=i.url.pathname;return l.exact?s===l.href:s.startsWith(l.href)}return V(()=>{{const l=G.getRole();if(l!=="parent"){F(`/dashboard/${l}`);return}A.loadChildren()}f=setInterval(()=>{!document.hidden&&Date.now()-a>5*60*1e3&&(A.refreshAll(),a=Date.now())},60*1e3)}),j(()=>{f&&clearInterval(f)}),o.$$set=l=>{"$$scope"in l&&n(2,c=l.$$scope)},[r,e,c,h]}class re extends O{constructor(t){super(),P(this,t,Q,K,S,{})}}export{re 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.