1import{j as e}from"./document-pdf-owziZWSN.js";import{Q as d,U as c,C as i,L as l,V as x,E as m,a as p,W as g}from"./index-RIU-bIUQ.js";import{B as h}from"./BlogCTA-DIuLUbtn.js";import{B as b}from"./book-open-Cpr7BGed.js";function u(r){const s=new Map;for(const t of r){const a=s.get(t.category)??[];a.push(t),s.set(t.category,a)}const n=[];for(const t of g){const a=s.get(t);a?.length&&(n.push([t,a]),s.delete(t))}for(const[t,a]of s)n.push([t,a]);return n}function y(){const{pages:r}=d.useLoaderData(),s=u(r),n=c(r.find(t=>t.amendedDate)?.amendedDate);return e.jsxs("div",{className:"bg-background",children:[e.jsx("section",{className:"border-b border-border bg-white",children:e.jsxs(i,{className:"py-12 md:py-16",children:[e.jsx("p",{className:"font-mono text-[11px] uppercase tracking-[0.22em] text-brand-teal",children:"Canadian RPAS Regulations"}),e.jsx("h1",{className:"mt-3 max-w-3xl text-3xl font-black uppercase leading-tight tracking-tight text-brand-navy md:text-4xl",children:"Canadian drone regulation Q&A library"}),e.jsx("p",{className:"mt-4 max-w-2xl text-[15px] leading-relaxed text-foreground/80",children:"Straight answers to the questions Canadian operators actually ask, each grounded in the Canadian Aviation Regulations (SOR/96-433), Part IX â Remotely Piloted Aircraft Systems â with links to every section cited and practical notes from the Remote Robotic field team."}),e.jsxs("div",{className:"mt-6 flex flex-wrap items-center gap-3",children:[e.jsxs(l,{to:"/assistant",className:"inline-flex items-center gap-2 bg-brand-teal px-5 py-3 text-[12px] font-bold uppercase tracking-[0.16em] text-white transition-colors hover:bg-brand-teal/90",children:[e.jsx(x,{className:"size-4"})," Ask the regulation assistant"]}),e.jsxs("a",{href:"https://laws-lois.justice.gc.ca/eng/regulations/SOR-96-433/index.html",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 border border-border px-5 py-3 text-[12px] font-bold uppercase tracking-[0.16em] text-brand-navy transition-colors hover:border-brand-teal hover:text-brand-teal",children:["Official regulations ",e.jsx(m,{className:"size-3.5"})]})]}),e.jsxs("p",{className:"mt-4 font-mono text-[11px] uppercase tracking-[0.16em] text-muted-foreground",children:["Regulations current as of ",n]})]})}),e.jsxs(i,{className:"py-12",children:[e.jsx("div",{className:"border border-amber-300/60 bg-amber-50 p-4 text-[13px] leading-relaxed text-amber-900",children:p}),r.length===0?e.jsxs("p",{className:"mt-10 text-sm text-muted-foreground",children:["The Q&A library is being prepared. In the meantime, ask the"," ",e.jsx(l,{to:"/assistant",className:"text-brand-teal underline",children:"regulation assistant"}),"."]}):e.jsx("div",{className:"mt-10 space-y-12",children:s.map(([t,a])=>e.jsxs("section",{"aria-labelledby":`cat-${t}`,children:[e.jsxs("h2",{id:`cat-${t}`,className:"flex items-center gap-2 border-b border-border pb-2 text-lg font-black uppercase tracking-tight text-brand-navy",children:[e.jsx(b,{className:"size-4 text-brand-teal","aria-hidden":!0})," ",t]}),e.jsx("ul",{className:"mt-4 grid gap-3 md:grid-cols-2",children:a.map(o=>e.jsx("li",{children:e.jsxs(l,{to:"/drone-regulations/$slug",params:{slug:o.slug},className:"block h-full border border-border bg-white p-4 transition-colors hover:border-brand-teal",children:[e.jsx("p",{className:"text-[15px] font-bold text-brand-navy",children:o.question}),e.jsx("p",{className:"mt-1.5 line-clamp-2 text-[13px] leading-relaxed text-foreground/75",children:o.shortAnswer})]})},o.slug))})]},t))}),e.jsx(h,{})]})]})}export{y 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.