{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A consent notice with accept and decline buttons.",
  "devDependencies": [],
  "digest": "0.1.0",
  "files": [
    {
      "content": "{#- Code generated by packages/kit-compose/src/server-organisms.ts from packages/compose-gen/specs (compose-gen organism emitters on kit-compose). DO NOT EDIT.\n    Source: packages/compose-gen/specs/organisms/cookie-banner.json\n    A consent notice: an icon, a heading, one paragraph and the buttons accept, decline and (optionally) settings. Axes: layout (bar, card), actions (two, three), tone (default, muted).\n    Props (p): id, title, text, accept, decline, settings, layout, actions, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_text = (p.text ?? null) -%}\n{%- set v_accept = (p.accept ?? null) -%}\n{%- set v_decline = (p.decline ?? null) -%}\n{%- set v_settings = (p.settings ?? null) -%}\n{%- set v_layout = (p.layout ?? 'bar') -%}\n{%- set v_actions = (p.actions ?? 'two') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_11 -%}\n  {%- set c_10 -%}\n    {%- set c_9 -%}\n      {%- set c_4 -%}\n        {{ include('icons/LucideIcon.html.twig', {'name': 'cookie', 'size': 24}, with_context = false) }}\n        {%- set c_3 -%}\n          {%- set c_1 -%}\n            {{ og_text(v_title) }}\n          {%- endset -%}\n          {{ include('compose/Title.html.twig', {'as': 2, 'size': 'base', 'weight': 'bold', 'attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])]), 'children': c_1}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ og_text(v_text) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_3}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'class': 'min-w-0', 'children': c_4}, with_context = false) }}\n      {%- set c_8 -%}\n        {%- if og_t(og_and([og_eq(v_actions, 'three'), v_settings])) %}\n          {%- set c_5 -%}\n            {{ og_text(v_settings) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'ghost', 'size': 'sm', 'type': 'button', 'children': c_5}, with_context = false) }}\n        {%- endif %}\n        {%- set c_6 -%}\n          {{ og_text(v_decline) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'sm', 'type': 'button', 'children': c_6}, with_context = false) }}\n        {%- set c_7 -%}\n          {{ og_text(v_accept) }}\n        {%- endset -%}\n        {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'sm', 'type': 'button', 'children': c_7}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '2', 'class': 'shrink-0 flex-wrap', 'children': c_8}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['flex flex-col gap-4 rounded p-6 inset-ring inset-ring-border', (og_t(og_eq(v_tone, 'muted')) ? 'bg-muted' : 'bg-card'), (og_t(og_eq(v_layout, 'bar')) ? 'md:flex-row md:items-center md:justify-between' : 'mx-auto w-full max-w-md')])), 'children': c_9}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'py-4'])), 'attrs': og_attrs(['data-slot', 'container']), 'children': c_10}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'section', 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : og_tpl('{0}-title', [v_id])), 'data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'cookie']), 'children': c_11}, with_context = false) }}\n",
      "path": "blocks/cookie-banner.html.twig",
      "target": "blocks/cookie-banner.html.twig"
    }
  ],
  "meta": {
    "category": "promo",
    "group": "banner",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "cookie-banner",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "container",
    "group",
    "lucide-icon",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Cookie Banner",
  "type": "registry:block"
}
