1import{a as d,r as n,i as u}from"../chunks/Dx2QLMAy.js";import{e as c,h as l}from"../chunks/BNDwYqMP.js";import{a as i,b as f}from"../chunks/BbtZ9zyD.js";import"../chunks/CWj6FrbW.js";import{e as m,a as h,b as p}from"../chunks/FiTRdD_4.js";import{s as y}from"../chunks/CqP8xCpg.js";const b=!1,g=async({params:t})=>{const e=t.id,a=t.childId;try{const r=await d();if(!r)return{nurseryId:e,childId:a};const[o,s]=await Promise.all([c(r.uid,e),l(r.uid,e)]);if(i("Vérification accès enfant garderie (layout)",{userId:r.uid,nurseryId:e,childId:a,isAdmin:o,isEducator:s}),!(o||s))throw i("Accès enfant refusé (layout): redirection vers /dashboard/educator?shouldShowPage=true",{userId:r.uid,nurseryId:e,childId:a}),n(302,"/dashboard/educator?shouldShowPage=true");return{nurseryId:e,childId:a}}catch(r){if(u(r))throw r;return f("Erreur lors de la vérification d'accès à l'enfant (layout)",r),{nurseryId:e,childId:a}}},O=Object.freeze(Object.defineProperty({__proto__:null,load:g,ssr:b},Symbol.toStringTag,{value:"Module"}));function P(t,e){var a=m(),r=h(a);y(r,()=>e.children),p(t,a)}export{P as component,O as universal};
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.