{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_text = ($p['text'] ?? null)}\n{var $v_close = ($p['close'] ?? null)}\n{var $v_play = ($p['play'] ?? null)}\n{var $v_chaptersTitle = ($p['chaptersTitle'] ?? null)}\n{var $v_chapters = ($p['chapters'] ?? null)}\n{var $v_size = ($p['size'] ?? 'default')}\n{var $v_outline = ($p['outline'] ?? 'none')}\n{var $v_tone = ($p['tone'] ?? 'default')}\n{var $v_image = ($p['image'] ?? null)}\n{var $v_imageAlt = ($p['imageAlt'] ?? null)}\n{var $v_landmarkLabel = ($p['landmarkLabel'] ?? null)}\n{capture $c_13}\n  {capture $c_12}\n    {capture $c_3}\n      {capture $c_1}\n        {=og_text($v_text)}\n      {/capture}\n      {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_1])|noescape}\n      {capture $c_2}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'x', 'size' => 16])|noescape}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'ghost', 'size' => 'sm', 'type' => 'button', 'class' => 'shrink-0', 'attrs' => og_attrs(['aria-label', $v_close]), 'children' => (string) $c_2])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'justify' => 'between', 'children' => (string) $c_3])|noescape}\n    {capture $c_5}\n      {=og_include('blocks/media-frame.latte', ['p' => ['alt' => (og_t($v_imageAlt) ? $v_imageAlt : $v_title), 'src' => $v_image]])|noescape}\n      {capture $c_4}\n        {=og_include('icons/LucideIcon.latte', ['name' => 'play', 'size' => 24])|noescape}\n      {/capture}\n      {=og_include('compose/Button.latte', ['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' => (string) $c_4])|noescape}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => 'relative', 'attrs' => og_attrs(['data-slot', 'player']), 'children' => (string) $c_5])|noescape}\n    {if og_t(og_and([og_eq($v_outline, 'chapters'), og_gt(og_len($v_chapters), 0)]))}\n      {capture $c_11}\n        {capture $c_6}\n          {=og_text($v_chaptersTitle)}\n        {/capture}\n        {=og_include('compose/Title.latte', ['as' => 3, 'size' => 'base', 'weight' => 'bold', 'children' => (string) $c_6])|noescape}\n        {capture $c_10}\n          {foreach og_l($v_chapters) as $v_c}\n            {capture $c_9}\n              {capture $c_7}\n                {=og_text(og_get($v_c, ['title']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_7])|noescape}\n              {capture $c_8}\n                {=og_text(og_get($v_c, ['text']))}\n              {/capture}\n              {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_8])|noescape}\n            {/capture}\n            {=og_include('compose/ListItem.latte', ['class' => 'flex items-baseline gap-4', 'attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_9])|noescape}\n          {/foreach}\n        {/capture}\n        {=og_include('compose/List.latte', ['class' => 'm-0 flex list-none flex-col gap-2 p-0', 'children' => (string) $c_10])|noescape}\n      {/capture}\n      {=og_include('compose/Stack.latte', ['gap' => '2', 'attrs' => og_attrs(['data-slot', 'chapters']), 'children' => (string) $c_11])|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/Stack.latte', ['gap' => '4', 'align' => 'stretch', 'class' => og_s(og_cnv(['mx-auto w-full', (og_t(og_eq($v_size, 'wide')) ? 'max-w-4xl' : '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' => (string) $c_12])|noescape}\n{/capture}\n{=og_include('blocks/section-frame.latte', ['p' => ['id' => $v_id, 'title' => $v_title, 'tone' => $v_tone, 'landmarkLabel' => $v_landmarkLabel], 'children' => og_markup($c_13)])|noescape}\n",
      "path": "blocks/video-modal.latte",
      "target": "blocks/video-modal.latte"
    }
  ],
  "meta": {
    "category": "onboarding",
    "group": "guidance",
    "kind": "block",
    "tags": [
      "latte",
      "block"
    ]
  },
  "name": "video-modal",
  "registryDependencies": [
    "box",
    "button",
    "group",
    "list",
    "list-item",
    "lucide-icon",
    "media-frame",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "Video Modal",
  "type": "registry:block"
}
