{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_text = og_def(p['text'], none) -%}\n{%- set v_accept = og_def(p['accept'], none) -%}\n{%- set v_decline = og_def(p['decline'], none) -%}\n{%- set v_settings = og_def(p['settings'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'bar') -%}\n{%- set v_actions = og_def(p['actions'], 'two') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_11 -%}\n  {%- set c_10 -%}\n    {%- set c_9 -%}\n      {%- set c_4 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'cookie', 'Size': 24}}) }}\n        {%- set c_3 -%}\n          {%- set c_1 -%}\n            {{ og_text(v_title) }}\n          {%- endset -%}\n          {{ og_include('compose/title.html.j2', {'p': {'As': 2, 'Size': 'base', 'Weight': 'bold', 'Attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])])}, 'children': c_1}) }}\n          {%- set c_2 -%}\n            {{ og_text(v_text) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_2}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2'}, 'children': c_3}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'start', 'Class': 'min-w-0'}, 'children': c_4}) }}\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          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Type': 'button'}, 'children': c_5}) }}\n        {%- endif %}\n        {%- set c_6 -%}\n          {{ og_text(v_decline) }}\n        {%- endset -%}\n        {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'sm', 'Type': 'button'}, 'children': c_6}) }}\n        {%- set c_7 -%}\n          {{ og_text(v_accept) }}\n        {%- endset -%}\n        {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'sm', 'Type': 'button'}, 'children': c_7}) }}\n      {%- endset -%}\n      {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Class': 'shrink-0 flex-wrap'}, 'children': c_8}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-col gap-4 rounded p-6 inset-ring inset-ring-border', ('bg-muted' if og_t(og_eq(v_tone, 'muted')) else 'bg-card'), ('md:flex-row md:items-center md:justify-between' if og_t(og_eq(v_layout, 'bar')) else 'mx-auto w-full max-w-md')]))}, 'children': c_9}) }}\n  {%- endset -%}\n  {{ og_include('compose/container.html.j2', {'p': {'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}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else og_tpl('{0}-title', [v_id])), 'data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'cookie'])}, 'children': c_11}) }}\n",
      "path": "blocks/cookie-banner.html.j2",
      "target": "blocks/cookie-banner.html.j2"
    }
  ],
  "meta": {
    "category": "promo",
    "group": "banner",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "cookie-banner",
  "registryDependencies": [
    "block",
    "box",
    "button",
    "container",
    "group",
    "lucide-icon",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Cookie Banner",
  "type": "registry:block"
}
