PageSourceSearch

https://neurodiversityhk.org/assets/support-categories-form-BXKnBcnr.js

js neurodiversityhk.org collected 2026-10-03 02:57:50 UTC 1,444 bytes, 1 lines download raw bytes

1import{j as s}from"./index-Ibx4YJWj.js";import{C as x}from"./checkbox-B6G3xFhM.js";import{T as h}from"./textarea-CdzkjLo9.js";import{S as u}from"./children-Daaoyb2I.js";function k({value:n,onChange:m,readOnly:o,extraByKey:l}){const a=(e,t)=>{const r=n[e]??{items:[],notes:""};m({...n,[e]:{...r,...t}})};return s.jsx("div",{className:"space-y-4",children:u.map(e=>{const t=n[e.key]??{items:[],notes:""};return s.jsxs("div",{className:"rounded-2xl border border-border bg-card/50 p-4",children:[s.jsxs("h4",{className:"mb-3 flex items-center gap-2 font-display text-base font-semibold",children:[s.jsx("span",{className:"text-lg",children:e.icon})," ",e.label]}),s.jsx("div",{className:"space-y-2",children:e.items.map(r=>{const i=t.items.includes(r.key);return s.jsxs("label",{className:"flex cursor-pointer items-center gap-3 rounded-md px-2 py-1.5 text-sm hover:bg-muted",children:[s.jsx(x,{checked:i,disabled:o,onCheckedChange:d=>{if(o)return;const c=d?[...t.items,r.key]:t.items.filter(p=>p!==r.key);a(e.key,{items:c})}}),s.jsx("span",{children:r.label})]},r.key)})}),o?t.notes?s.jsx("p",{className:"mt-3 whitespace-pre-line rounded-md bg-muted px-3 py-2 text-sm text-foreground/80",children:t.notes}):null:s.jsx(h,{className:"mt-3",rows:2,placeholder:"Optional notes…",value:t.notes,onChange:r=>a(e.key,{notes:r.target.value}),maxLength:2e3}),l?.[e.key]?s.jsx("div",{className:"mt-3",children:l[e.key]}):null]},e.key)})})}export{k as S};

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.