{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "What HeroSplit shows beside the text: a picture, a picture with a floating card, a grid of four pictures with captions, or a picture with two plan cards floating over it.",
  "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/hero-split-media.json\n    What HeroSplit shows beside the text: a picture, a picture with a floating card, a grid of four pictures with captions, or a picture with two plan cards floating over it.\n    Props (p): content, alt, image, media. *}\n{var $v_content = ($p['content'] ?? null)}\n{var $v_alt = ($p['alt'] ?? null)}\n{var $v_image = ($p['image'] ?? null)}\n{var $v_media = ($p['media'] ?? 'picture')}\n{if og_t(og_eq($v_media, 'picture'))}\n  {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_alt, 'src' => $v_image, 'ratio' => '4/3']])|noescape}\n{/if}\n{if og_t(og_eq($v_media, 'card'))}\n  {=og_include('blocks/offer-media.latte', ['p' => ['alt' => $v_alt, 'image' => $v_image, 'card' => og_get($v_content, ['card'])]])|noescape}\n{/if}\n{if og_t(og_and([og_eq($v_media, 'grid'), og_gt(og_len(og_get($v_content, ['features'])), 0)]))}\n  {capture $c_3}\n    {foreach og_l(og_get($v_content, ['features'])) as $v_f}\n      {var $v_i = $iterator->counter0}\n      {if og_t(og_lt($v_i, 4))}\n        {capture $c_2}\n          {=og_include('blocks/media-frame.latte', ['p' => ['alt' => og_get($v_f, ['title']), 'src' => og_get($v_f, ['image']), 'ratio' => '1/1']])|noescape}\n          {capture $c_1}\n            {=og_text(og_get($v_f, ['title']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_1])|noescape}\n        {/capture}\n        {=og_include('blocks/figure-block.latte', ['p' => ['className' => og_cnv(['flex flex-col gap-2']), 'testid' => 'hero-tile'], 'children' => og_markup($c_2)])|noescape}\n      {/if}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => 'grid grid-cols-2 gap-4', 'attrs' => og_attrs(['data-slot', 'hero-grid']), 'children' => (string) $c_3])|noescape}\n{/if}\n{if og_t(og_and([og_eq($v_media, 'plans'), og_gt(og_len(og_get($v_content, ['plans'])), 0)]))}\n  {capture $c_8}\n    {=og_include('blocks/media-frame.latte', ['p' => ['alt' => $v_alt, 'src' => $v_image, 'ratio' => '4/3']])|noescape}\n    {foreach og_l(og_get($v_content, ['plans'])) as $v_p}\n      {var $v_i = $iterator->counter0}\n      {if og_t(og_lt($v_i, 2))}\n        {capture $c_7}\n          {capture $c_4}\n            {=og_text(og_get($v_p, ['name']))}\n          {/capture}\n          {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'semibold', 'children' => (string) $c_4])|noescape}\n          {capture $c_6}\n            {=og_include('icons/LucideIcon.latte', ['name' => 'check', 'size' => 16])|noescape}\n            {capture $c_5}\n              {=og_text(og_get($v_p, ['tagline']))}\n            {/capture}\n            {=og_include('compose/Text.latte', ['size' => 'xs', 'class' => 'text-muted-foreground', 'children' => (string) $c_5])|noescape}\n          {/capture}\n          {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'center', 'children' => (string) $c_6])|noescape}\n        {/capture}\n        {=og_include('compose/Stack.latte', ['gap' => '2', 'class' => og_s(og_cnv(['absolute w-48 rounded bg-card p-4 shadow-lg', (og_t(og_eq($v_i, 0)) ? 'top-8 left-4' : 'right-4 bottom-8')])), 'attrs' => og_attrs(['data-slot', 'hero-plan']), 'children' => (string) $c_7])|noescape}\n      {/if}\n    {/foreach}\n  {/capture}\n  {=og_include('compose/Box.latte', ['class' => 'relative', 'attrs' => og_attrs(['data-slot', 'hero-media']), 'children' => (string) $c_8])|noescape}\n{/if}\n",
      "path": "blocks/hero-split-media.latte",
      "target": "blocks/hero-split-media.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "hero-split-media",
  "registryDependencies": [
    "box",
    "figure-block",
    "group",
    "lucide-icon",
    "media-frame",
    "offer-media",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Hero Split Media",
  "type": "registry:component"
}
