{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A dialog with a walkthrough video and an optional list of chapters. Opening and playing are port contracts.",
  "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/video-modal.json\n    A dialog with a walkthrough video: a title and a close button, the player area with a play button and, optionally, a list of chapters. Opening the dialog and playing the video are port contracts. Axes: size (default, wide), outline (none, chapters: a list under the player), tone.\n    Props (p): id, title, text, close, play, chaptersTitle, chapters, size, outline, tone, image, imageAlt, 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_close = og_def(p['close'], none) -%}\n{%- set v_play = og_def(p['play'], none) -%}\n{%- set v_chaptersTitle = og_def(p['chaptersTitle'], none) -%}\n{%- set v_chapters = og_def(p['chapters'], none) -%}\n{%- set v_size = og_def(p['size'], 'default') -%}\n{%- set v_outline = og_def(p['outline'], 'none') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_image = og_def(p['image'], none) -%}\n{%- set v_imageAlt = og_def(p['imageAlt'], none) -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_13 -%}\n  {%- set c_12 -%}\n    {%- set c_3 -%}\n      {%- set c_1 -%}\n        {{ og_text(v_text) }}\n      {%- endset -%}\n      {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_1}) }}\n      {%- set c_2 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'x', 'Size': 16}}) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'ghost', 'Size': 'sm', 'Type': 'button', 'Class': 'shrink-0', 'Attrs': og_attrs(['aria-label', v_close])}, 'children': c_2}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center', 'Justify': 'between'}, 'children': c_3}) }}\n    {%- set c_5 -%}\n      {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': (v_imageAlt if og_t(v_imageAlt) else v_title), 'src': v_image}}) }}\n      {%- set c_4 -%}\n        {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'play', 'Size': 24}}) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'button', 'Class': 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 rounded', 'Attrs': og_attrs(['aria-label', v_play])}, 'children': c_4}) }}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'relative', 'Attrs': og_attrs(['data-slot', 'player'])}, 'children': c_5}) }}\n    {%- if og_t(og_and([og_eq(v_outline, 'chapters'), og_gt(og_len(v_chapters), 0)])) %}\n      {%- set c_11 -%}\n        {%- set c_6 -%}\n          {{ og_text(v_chaptersTitle) }}\n        {%- endset -%}\n        {{ og_include('compose/title.html.j2', {'p': {'As': 3, 'Size': 'base', 'Weight': 'bold'}, 'children': c_6}) }}\n        {%- set c_10 -%}\n          {%- for v_c in og_l(v_chapters) %}\n            {%- set c_9 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_c, ['title'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_7}) }}\n              {%- set c_8 -%}\n                {{ og_text(og_get(v_c, ['text'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_8}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-baseline gap-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_9}) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-2 p-0'}, 'children': c_10}) }}\n      {%- endset -%}\n      {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Attrs': og_attrs(['data-slot', 'chapters'])}, 'children': c_11}) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': og_s(og_cnv(['mx-auto w-full', ('max-w-4xl' if og_t(og_eq(v_size, 'wide')) else 'max-w-2xl'), 'rounded bg-card inset-ring inset-ring-border p-4 shadow-lg'])), 'Attrs': og_attrs(['role', 'dialog', 'aria-label', v_title, 'data-slot', 'video-modal'])}, 'children': c_12}) }}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_13)}) }}\n",
      "path": "blocks/video-modal.html.j2",
      "target": "blocks/video-modal.html.j2"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "video-modal",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Video Modal",
  "type": "registry:block"
}
