{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cart-modal",
  "title": "Cart Modal",
  "description": "A product with a size picker whose Add to cart opens a centered cart modal: an Added to your cart header, line items with quantity steppers, complete-the-set add-ons, a discount code field, totals and checkout, with focus trap, Escape and click-outside to close.",
  "dependencies": [
    "motion",
    "clsx",
    "tailwind-merge"
  ],
  "files": [
    {
      "path": "registry/new-york/cart-modal/cart-modal.tsx",
      "content": "\"use client\";\n\nimport * as React from \"react\";\nimport { AnimatePresence, motion, useReducedMotion } from \"motion/react\";\nimport { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nfunction cn(...inputs: ClassValue[]) {\n  return twMerge(clsx(inputs));\n}\n\nexport interface CartModalProduct {\n  id: string;\n  name: string;\n  price: number;\n  image: string;\n  variant?: string;\n}\nexport interface CartModalLine extends CartModalProduct {\n  qty: number;\n}\n\nexport interface CartModalProps {\n  /** The product shown behind the modal, added with the size you pick. */\n  product?: CartModalProduct & { was?: number; sizes: string[]; soldOut?: string[] };\n  /** Lines already in the cart. */\n  items?: CartModalLine[];\n  /** Small add-ons offered inside the modal. */\n  crossSell?: CartModalProduct[];\n  /** Codes that work, with what they take off the subtotal. */\n  codes?: Record<string, { label: string; off: (subtotal: number) => number }>;\n  currency?: string;\n  onChange?: (items: CartModalLine[]) => void;\n  onCheckout?: (items: CartModalLine[], code: string | null) => void;\n  theme?: \"dark\" | \"light\";\n  className?: string;\n}\n\nconst PALETTES = {\n  dark: {\n    bg: \"#0A0A0A\",\n    panel: \"#141414\",\n    card: \"#1B1B1B\",\n    title: \"#FFFFFF\",\n    muted: \"rgba(255,255,255,0.45)\",\n    body: \"rgba(255,255,255,0.62)\",\n    line: \"rgba(255,255,255,0.12)\",\n    tile: \"#F1F1F1\",\n    accent: \"#7CDE6A\",\n    accentText: \"#0B1A08\",\n    danger: \"#FF8A7A\",\n    buttonBg: \"#FFFFFF\",\n    buttonText: \"#111111\",\n    ghost: \"rgba(255,255,255,0.07)\",\n    ring: \"rgba(255,255,255,0.55)\",\n    scrim: \"rgba(0,0,0,0.6)\",\n    field: \"#0F0F0F\",\n  },\n  light: {\n    bg: \"#FFFFFF\",\n    panel: \"#FFFFFF\",\n    card: \"#F6F6F6\",\n    title: \"#111111\",\n    muted: \"rgba(0,0,0,0.45)\",\n    body: \"rgba(0,0,0,0.62)\",\n    line: \"rgba(0,0,0,0.1)\",\n    tile: \"#F1F1F1\",\n    accent: \"#2F9E44\",\n    accentText: \"#FFFFFF\",\n    danger: \"#C0392B\",\n    buttonBg: \"#111111\",\n    buttonText: \"#FFFFFF\",\n    ghost: \"rgba(0,0,0,0.05)\",\n    ring: \"rgba(0,0,0,0.45)\",\n    scrim: \"rgba(0,0,0,0.35)\",\n    field: \"#FFFFFF\",\n  },\n};\n\nconst PRODUCT = { id: \"shoes\", name: \"Running Shoes\", price: 99, was: 149, image: \"/demo/running-shoes.webp\", variant: \"Black\", sizes: [\"40\", \"41\", \"42\", \"43\", \"44\", \"45\"], soldOut: [\"40\"] };\nconst ITEMS: CartModalLine[] = [{ id: \"bottle\", name: \"Insulated Bottle\", price: 39, image: \"/demo/insulated-water-bottle.webp\", variant: \"750 ml · Black\", qty: 1 }];\nconst CROSS: CartModalProduct[] = [\n  { id: \"earbuds\", name: \"Wireless Earbuds\", price: 129, image: \"/demo/wireless-earbuds.webp\", variant: \"Graphite\" },\n  { id: \"watch\", name: \"Minimal Watch\", price: 79, image: \"/demo/minimal-watch.webp\", variant: \"Black · 38 mm\" },\n];\nconst CODES: CartModalProps[\"codes\"] = {\n  RUN15: { label: \"15% off running gear\", off: (s) => Math.round(s * 0.15 * 100) / 100 },\n  WELCOME10: { label: \"$10 off your first order\", off: (s) => (s >= 50 ? 10 : 0) },\n};\n\nconst money = (n: number, c: string) => `${c}${n.toFixed(2)}`;\n\nexport function CartModal({ product = PRODUCT, items: initial = ITEMS, crossSell = CROSS, codes = CODES, currency = \"$\", onChange, onCheckout, theme = \"dark\", className }: CartModalProps) {\n  const p = PALETTES[theme];\n  const reduce = !!useReducedMotion();\n  const uid = React.useId();\n  const [items, setItems] = React.useState<CartModalLine[]>(initial);\n  const [size, setSize] = React.useState(product.sizes.find((s) => !product.soldOut?.includes(s)) ?? product.sizes[0]);\n  const [open, setOpen] = React.useState(false);\n  const [justAdded, setJustAdded] = React.useState<string | null>(null);\n  const [code, setCode] = React.useState(\"\");\n  const [applied, setApplied] = React.useState<string | null>(null);\n  const [codeErr, setCodeErr] = React.useState(\"\");\n  const dialogRef = React.useRef<HTMLDivElement>(null);\n  const openerRef = React.useRef<HTMLElement | null>(null);\n\n  const subtotal = items.reduce((t, i) => t + i.price * i.qty, 0);\n  const off = applied && codes?.[applied] ? codes[applied].off(subtotal) : 0;\n  const total = Math.max(0, subtotal - off);\n  const count = items.reduce((t, i) => t + i.qty, 0);\n  const update = (next: CartModalLine[]) => {\n    setItems(next);\n    onChange?.(next);\n  };\n\n  const show = (opener: HTMLElement) => {\n    openerRef.current = opener;\n    setOpen(true);\n  };\n  const close = React.useCallback(() => {\n    setOpen(false);\n    setJustAdded(null);\n    // The page behind is inert until the next render, so hand focus back after it.\n    setTimeout(() => openerRef.current?.focus(), 0);\n  }, []);\n\n  // Focus the dialog, trap Tab inside it and close on Escape.\n  React.useEffect(() => {\n    if (!open) return;\n    const el = dialogRef.current;\n    const t = setTimeout(() => el?.querySelector<HTMLElement>(\"[data-autofocus]\")?.focus(), 30);\n    const onKey = (e: KeyboardEvent) => {\n      if (e.key === \"Escape\") return close();\n      if (e.key !== \"Tab\" || !el) return;\n      const f = [...el.querySelectorAll<HTMLElement>(\"button:not([disabled]), input, a[href]\")];\n      if (!f.length) return;\n      if (e.shiftKey && document.activeElement === f[0]) {\n        e.preventDefault();\n        f[f.length - 1].focus();\n      } else if (!e.shiftKey && document.activeElement === f[f.length - 1]) {\n        e.preventDefault();\n        f[0].focus();\n      }\n    };\n    window.addEventListener(\"keydown\", onKey);\n    return () => {\n      clearTimeout(t);\n      window.removeEventListener(\"keydown\", onKey);\n    };\n  }, [open, close]);\n\n  const addMain = (e: React.MouseEvent<HTMLButtonElement>) => {\n    const key = `${product.id}-${size}`;\n    const hit = items.find((i) => i.id === key);\n    update(hit ? items.map((i) => (i.id === key ? { ...i, qty: i.qty + 1 } : i)) : [{ id: key, name: product.name, price: product.price, image: product.image, variant: `${product.variant ? `${product.variant} · ` : \"\"}EU ${size}`, qty: 1 }, ...items]);\n    setJustAdded(key);\n    show(e.currentTarget);\n  };\n  const addCross = (x: CartModalProduct) => {\n    const hit = items.find((i) => i.id === x.id);\n    update(hit ? items.map((i) => (i.id === x.id ? { ...i, qty: i.qty + 1 } : i)) : [...items, { ...x, qty: 1 }]);\n  };\n  const setQty = (id: string, qty: number) => update(qty <= 0 ? items.filter((i) => i.id !== id) : items.map((i) => (i.id === id ? { ...i, qty: Math.min(9, qty) } : i)));\n  const apply = (e: React.FormEvent) => {\n    e.preventDefault();\n    const c = code.trim().toUpperCase();\n    if (!codes?.[c]) return setCodeErr(\"That code isn’t valid.\");\n    if (codes[c].off(subtotal) <= 0) return setCodeErr(\"Your cart doesn’t qualify yet.\");\n    setApplied(c);\n    setCode(\"\");\n    setCodeErr(\"\");\n  };\n  const added = items.find((i) => i.id === justAdded);\n  const focus = \"outline-none focus-visible:ring-2 focus-visible:ring-offset-2\";\n\n  return (\n    <section\n      aria-label=\"Product with cart modal\"\n      className={cn(\"relative flex min-h-[720px] w-full items-center overflow-hidden px-4 py-10 sm:px-8\", className)}\n      style={{ background: p.bg, color: p.title, \"--tw-ring-color\": p.ring, \"--tw-ring-offset-color\": p.panel } as React.CSSProperties}\n    >\n      {/* The page behind */}\n      <div className=\"mx-auto grid w-full max-w-4xl grid-cols-1 items-center gap-8 md:grid-cols-2\" aria-hidden={open || undefined} inert={open || undefined}>\n        <div className=\"relative aspect-square overflow-hidden rounded-3xl\" style={{ background: p.tile }}>\n          {/* eslint-disable-next-line @next/next/no-img-element -- plain img keeps the block framework-agnostic */}\n          <img src={product.image} alt={product.name} width={800} height={800} className=\"h-full w-full object-contain p-6\" />\n          {product.was && (\n            <span className=\"absolute top-4 left-4 rounded-full px-2.5 py-1 text-[12px] font-semibold\" style={{ background: p.accent, color: p.accentText }}>\n              −{Math.round((1 - product.price / product.was) * 100)}%\n            </span>\n          )}\n        </div>\n        <div>\n          <p className=\"m-0 text-[13px] font-medium tracking-[0.08em] uppercase\" style={{ color: p.muted }}>\n            Road · Daily trainer\n          </p>\n          <h2 className=\"m-0 mt-2 text-[30px] font-semibold tracking-[-0.02em]\">{product.name}</h2>\n          <p className=\"m-0 mt-2 text-[20px] font-semibold tabular-nums\">\n            {money(product.price, currency)}\n            {product.was && (\n              <span className=\"ml-2 text-[15px] font-normal line-through\" style={{ color: p.muted }}>\n                {money(product.was, currency)}\n              </span>\n            )}\n          </p>\n          <fieldset className=\"m-0 mt-6 border-0 p-0\">\n            <legend className=\"mb-2.5 text-[13.5px]\" style={{ color: p.body }}>\n              Size (EU)\n            </legend>\n            <div className=\"grid grid-cols-6 gap-1.5\">\n              {product.sizes.map((s) => {\n                const out = product.soldOut?.includes(s);\n                return (\n                  <button\n                    key={s}\n                    type=\"button\"\n                    aria-pressed={size === s}\n                    disabled={out}\n                    onClick={() => setSize(s)}\n                    className={cn(\"h-11 cursor-pointer rounded-xl border text-[14px] disabled:cursor-not-allowed disabled:line-through\", focus)}\n                    style={size === s ? { background: p.buttonBg, color: p.buttonText, borderColor: p.buttonBg } : { background: \"transparent\", color: out ? p.muted : p.title, borderColor: p.line }}\n                  >\n                    {s}\n                  </button>\n                );\n              })}\n            </div>\n          </fieldset>\n          <div className=\"mt-5 flex gap-2\">\n            <button type=\"button\" onClick={addMain} className={cn(\"h-12 flex-1 cursor-pointer rounded-full border-0 text-[15px] font-semibold\", focus)} style={{ background: p.buttonBg, color: p.buttonText }}>\n              Add to cart\n            </button>\n            <button\n              type=\"button\"\n              onClick={(e) => show(e.currentTarget)}\n              aria-label={`Open cart, ${count} items`}\n              className={cn(\"relative flex h-12 w-12 cursor-pointer items-center justify-center rounded-full border\", focus)}\n              style={{ borderColor: p.line, background: \"transparent\", color: p.title }}\n            >\n              <svg width=\"19\" height=\"19\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"1.7\" strokeLinecap=\"round\" strokeLinejoin=\"round\" aria-hidden=\"true\">\n                <path d=\"M6 7h12l-1 13H7L6 7Z\" />\n                <path d=\"M9 7a3 3 0 0 1 6 0\" />\n              </svg>\n              <span className=\"absolute -top-1 -right-1 flex h-5 min-w-5 items-center justify-center rounded-full px-1 text-[11px] font-bold\" style={{ background: p.accent, color: p.accentText }} aria-hidden=\"true\">\n                {count}\n              </span>\n            </button>\n          </div>\n        </div>\n      </div>\n\n      {/* Modal */}\n      <AnimatePresence>\n        {open && (\n          <motion.div\n            className=\"absolute inset-0 z-20 flex items-start justify-center overflow-y-auto p-3 sm:p-6\"\n            style={{ background: p.scrim }}\n            initial={reduce ? false : { opacity: 0 }}\n            animate={{ opacity: 1 }}\n            exit={reduce ? undefined : { opacity: 0 }}\n            onMouseDown={(e) => e.target === e.currentTarget && close()}\n          >\n            <motion.div\n              ref={dialogRef}\n              role=\"dialog\"\n              aria-modal=\"true\"\n              aria-labelledby={`${uid}-t`}\n              initial={reduce ? false : { opacity: 0, y: 24, scale: 0.98 }}\n              animate={{ opacity: 1, y: 0, scale: 1 }}\n              exit={reduce ? undefined : { opacity: 0, y: 16, scale: 0.98 }}\n              transition={{ type: \"spring\", stiffness: 380, damping: 34 }}\n              className=\"my-auto w-full max-w-[760px] overflow-hidden rounded-3xl border shadow-[0_30px_80px_rgba(0,0,0,0.5)]\"\n              style={{ background: p.panel, borderColor: p.line }}\n            >\n              <div className=\"flex items-center justify-between gap-3 border-b px-5 py-4\" style={{ borderColor: p.line }}>\n                <h2 id={`${uid}-t`} className=\"m-0 flex items-center gap-2.5 text-[16px] font-semibold\">\n                  {added ? (\n                    <>\n                      <span className=\"flex h-6 w-6 items-center justify-center rounded-full text-[13px]\" style={{ background: p.accent, color: p.accentText }} aria-hidden=\"true\">\n                        ✓\n                      </span>\n                      Added to your cart\n                    </>\n                  ) : (\n                    <>\n                      Your cart <span style={{ color: p.muted }}>({count})</span>\n                    </>\n                  )}\n                </h2>\n                <button type=\"button\" data-autofocus onClick={close} aria-label=\"Close cart\" className={cn(\"flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border-0 text-[20px]\", focus)} style={{ background: p.ghost, color: p.title }}>\n                  ×\n                </button>\n              </div>\n\n              <div className=\"grid grid-cols-1 md:grid-cols-[minmax(0,1fr)_280px]\">\n                <div className=\"min-w-0 px-5 py-4\">\n                  {items.length === 0 ? (\n                    <p className=\"m-0 py-10 text-center text-[14px]\" style={{ color: p.muted }}>\n                      Your cart is empty.\n                    </p>\n                  ) : (\n                    <ul className=\"m-0 flex list-none flex-col gap-1 p-0\">\n                      <AnimatePresence initial={false}>\n                        {items.map((i) => (\n                          <motion.li key={i.id} layout={!reduce} initial={reduce ? false : { opacity: 0, height: 0 }} animate={{ opacity: 1, height: \"auto\" }} exit={reduce ? undefined : { opacity: 0, height: 0 }} className=\"overflow-hidden\">\n                            <div className=\"flex items-center gap-3 rounded-2xl p-2\" style={{ background: i.id === justAdded ? p.card : \"transparent\" }}>\n                              <span className=\"h-16 w-16 shrink-0 overflow-hidden rounded-xl\" style={{ background: p.tile }}>\n                                {/* eslint-disable-next-line @next/next/no-img-element -- plain img keeps the block framework-agnostic */}\n                                <img src={i.image} alt=\"\" width={128} height={128} className=\"h-full w-full object-contain p-1\" />\n                              </span>\n                              <span className=\"min-w-0 flex-1\">\n                                <span className=\"block truncate text-[14px] font-medium\">{i.name}</span>\n                                {i.variant && (\n                                  <span className=\"block truncate text-[12.5px]\" style={{ color: p.muted }}>\n                                    {i.variant}\n                                  </span>\n                                )}\n                                <span className=\"mt-1.5 inline-flex items-center rounded-full border\" style={{ borderColor: p.line }}>\n                                  <button\n                                    type=\"button\"\n                                    onClick={() => setQty(i.id, i.qty - 1)}\n                                    aria-label={i.qty === 1 ? `Remove ${i.name}` : `One less ${i.name}`}\n                                    className={cn(\"h-7 w-7 cursor-pointer rounded-full border-0 bg-transparent text-[14px]\", focus)}\n                                    style={{ color: p.title }}\n                                  >\n                                    −\n                                  </button>\n                                  <span className=\"w-5 text-center text-[12.5px] tabular-nums\">{i.qty}</span>\n                                  <button type=\"button\" onClick={() => setQty(i.id, i.qty + 1)} aria-label={`One more ${i.name}`} className={cn(\"h-7 w-7 cursor-pointer rounded-full border-0 bg-transparent text-[14px]\", focus)} style={{ color: p.title }}>\n                                    +\n                                  </button>\n                                </span>\n                              </span>\n                              <span className=\"self-start pt-1 text-[14px] font-semibold tabular-nums\">{money(i.price * i.qty, currency)}</span>\n                            </div>\n                          </motion.li>\n                        ))}\n                      </AnimatePresence>\n                    </ul>\n                  )}\n\n                  {crossSell.length > 0 && (\n                    <div className=\"mt-4 border-t pt-4\" style={{ borderColor: p.line }}>\n                      <p className=\"m-0 text-[12.5px] font-medium tracking-[0.08em] uppercase\" style={{ color: p.muted }}>\n                        Complete the set\n                      </p>\n                      <ul className=\"m-0 mt-3 grid list-none grid-cols-1 gap-2 p-0 sm:grid-cols-2\">\n                        {crossSell.map((x) => {\n                          const inCart = items.some((i) => i.id === x.id);\n                          return (\n                            <li key={x.id} className=\"flex items-center gap-2.5 rounded-2xl border p-2\" style={{ borderColor: p.line }}>\n                              <span className=\"h-11 w-11 shrink-0 overflow-hidden rounded-lg\" style={{ background: p.tile }}>\n                                {/* eslint-disable-next-line @next/next/no-img-element -- plain img keeps the block framework-agnostic */}\n                                <img src={x.image} alt=\"\" width={88} height={88} className=\"h-full w-full object-contain p-0.5\" />\n                              </span>\n                              <span className=\"min-w-0 flex-1\">\n                                <span className=\"block truncate text-[13px] font-medium\">{x.name}</span>\n                                <span className=\"text-[12px] tabular-nums\" style={{ color: p.muted }}>\n                                  {money(x.price, currency)}\n                                </span>\n                              </span>\n                              <button\n                                type=\"button\"\n                                onClick={() => addCross(x)}\n                                aria-label={inCart ? `Add another ${x.name}` : `Add ${x.name}`}\n                                className={cn(\"h-8 shrink-0 cursor-pointer rounded-full border-0 px-3 text-[12.5px] font-semibold\", focus)}\n                                style={inCart ? { background: p.ghost, color: p.accent } : { background: p.buttonBg, color: p.buttonText }}\n                              >\n                                {inCart ? \"✓ Added\" : \"Add\"}\n                              </button>\n                            </li>\n                          );\n                        })}\n                      </ul>\n                    </div>\n                  )}\n                </div>\n\n                <div className=\"border-t px-5 py-4 md:border-t-0 md:border-l\" style={{ borderColor: p.line, background: p.card }}>\n                  {applied ? (\n                    <p className=\"m-0 flex items-center justify-between rounded-xl px-3 py-2.5 text-[12.5px]\" style={{ background: p.ghost }}>\n                      <span>\n                        <span className=\"font-mono font-semibold tracking-[0.06em]\" style={{ color: p.accent }}>\n                          {applied}\n                        </span>{\" \"}\n                        <span style={{ color: p.body }}>{codes?.[applied]?.label}</span>\n                      </span>\n                      <button type=\"button\" onClick={() => setApplied(null)} aria-label={`Remove code ${applied}`} className={cn(\"cursor-pointer rounded border-0 bg-transparent p-0 text-[15px]\", focus)} style={{ color: p.muted }}>\n                        ×\n                      </button>\n                    </p>\n                  ) : (\n                    <form onSubmit={apply} className=\"flex gap-2\">\n                      <label htmlFor={`${uid}-code`} className=\"sr-only\">\n                        Discount code\n                      </label>\n                      <input\n                        id={`${uid}-code`}\n                        value={code}\n                        onChange={(e) => setCode(e.target.value)}\n                        placeholder=\"Discount code\"\n                        autoComplete=\"off\"\n                        aria-invalid={!!codeErr}\n                        aria-describedby={codeErr ? `${uid}-ce` : undefined}\n                        className={cn(\"h-10 min-w-0 flex-1 rounded-xl border px-3 font-mono text-[16px] uppercase placeholder:font-sans placeholder:normal-case md:text-[13px]\", focus)}\n                        style={{ background: p.field, borderColor: codeErr ? p.danger : p.line, color: p.title }}\n                      />\n                      <button\n                        type=\"submit\"\n                        disabled={!code.trim()}\n                        className={cn(\"h-10 cursor-pointer rounded-xl border px-3 text-[13px] font-semibold disabled:cursor-not-allowed disabled:opacity-40\", focus)}\n                        style={{ borderColor: p.line, background: \"transparent\", color: p.title }}\n                      >\n                        Apply\n                      </button>\n                    </form>\n                  )}\n                  {codeErr && (\n                    <p id={`${uid}-ce`} className=\"m-0 mt-1.5 text-[12px]\" style={{ color: p.danger }} role=\"alert\">\n                      {codeErr}\n                    </p>\n                  )}\n                  <dl className=\"m-0 mt-4 flex flex-col gap-2 text-[13.5px]\">\n                    <div className=\"flex justify-between\">\n                      <dt style={{ color: p.body }}>Subtotal</dt>\n                      <dd className=\"m-0 tabular-nums\">{money(subtotal, currency)}</dd>\n                    </div>\n                    {off > 0 && (\n                      <div className=\"flex justify-between\" style={{ color: p.accent }}>\n                        <dt>Discount</dt>\n                        <dd className=\"m-0 tabular-nums\">−{money(off, currency)}</dd>\n                      </div>\n                    )}\n                    <div className=\"flex justify-between\">\n                      <dt style={{ color: p.body }}>Shipping</dt>\n                      <dd className=\"m-0\" style={{ color: p.accent }}>\n                        Free\n                      </dd>\n                    </div>\n                    <div className=\"mt-1 flex items-baseline justify-between border-t pt-3\" style={{ borderColor: p.line }}>\n                      <dt className=\"text-[14.5px] font-semibold\">Total</dt>\n                      <dd className=\"m-0 text-[22px] font-semibold tracking-[-0.02em] tabular-nums\" aria-live=\"polite\">\n                        {money(total, currency)}\n                      </dd>\n                    </div>\n                  </dl>\n                  <button\n                    type=\"button\"\n                    disabled={!items.length}\n                    onClick={() => onCheckout?.(items, applied)}\n                    className={cn(\"mt-4 h-11 w-full cursor-pointer rounded-full border-0 text-[14px] font-semibold disabled:cursor-not-allowed disabled:opacity-40\", focus)}\n                    style={{ background: p.buttonBg, color: p.buttonText }}\n                  >\n                    Checkout\n                  </button>\n                  <button type=\"button\" onClick={close} className={cn(\"mt-2 h-10 w-full cursor-pointer rounded-full border-0 bg-transparent text-[13px] underline underline-offset-4\", focus)} style={{ color: p.body }}>\n                    Continue shopping\n                  </button>\n                </div>\n              </div>\n            </motion.div>\n          </motion.div>\n        )}\n      </AnimatePresence>\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "type": "registry:component"
}