{
  "$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{%- set v_content = og_def(p['content'], none) -%}\n{%- set v_alt = og_def(p['alt'], none) -%}\n{%- set v_image = og_def(p['image'], none) -%}\n{%- set v_media = og_def(p['media'], 'picture') -%}\n{%- if og_t(og_eq(v_media, 'picture')) %}\n  {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': v_alt, 'src': v_image, 'ratio': '4/3'}}) }}\n{%- endif %}\n{%- if og_t(og_eq(v_media, 'card')) %}\n  {{ og_include('blocks/offer-media.html.j2', {'p': {'alt': v_alt, 'image': v_image, 'card': og_get(v_content, ['card'])}}) }}\n{%- endif %}\n{%- if og_t(og_and([og_eq(v_media, 'grid'), og_gt(og_len(og_get(v_content, ['features'])), 0)])) %}\n  {%- set c_3 -%}\n    {%- for v_f in og_l(og_get(v_content, ['features'])) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_lt(v_i, 4)) %}\n        {%- set c_2 -%}\n          {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': og_get(v_f, ['title']), 'src': og_get(v_f, ['image']), 'ratio': '1/1'}}) }}\n          {%- set c_1 -%}\n            {{ og_text(og_get(v_f, ['title'])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_1}) }}\n        {%- endset -%}\n        {{ og_include('blocks/figure-block.html.j2', {'p': {'className': og_cnv(['flex flex-col gap-2']), 'testid': 'hero-tile'}, 'children': og_markup(c_2)}) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-2 gap-4', 'Attrs': og_attrs(['data-slot', 'hero-grid'])}, 'children': c_3}) }}\n{%- endif %}\n{%- if og_t(og_and([og_eq(v_media, 'plans'), og_gt(og_len(og_get(v_content, ['plans'])), 0)])) %}\n  {%- set c_8 -%}\n    {{ og_include('blocks/media-frame.html.j2', {'p': {'alt': v_alt, 'src': v_image, 'ratio': '4/3'}}) }}\n    {%- for v_p in og_l(og_get(v_content, ['plans'])) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_lt(v_i, 2)) %}\n        {%- set c_7 -%}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_p, ['name'])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_4}) }}\n          {%- set c_6 -%}\n            {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'check', 'Size': 16}}) }}\n            {%- set c_5 -%}\n              {{ og_text(og_get(v_p, ['tagline'])) }}\n            {%- endset -%}\n            {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}\n          {%- endset -%}\n          {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'center'}, 'children': c_6}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '2', 'Class': og_s(og_cnv(['absolute w-48 rounded bg-card p-4 shadow-lg', ('top-8 left-4' if og_t(og_eq(v_i, 0)) else 'right-4 bottom-8')])), 'Attrs': og_attrs(['data-slot', 'hero-plan'])}, 'children': c_7}) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ og_include('compose/box.html.j2', {'p': {'Class': 'relative', 'Attrs': og_attrs(['data-slot', 'hero-media'])}, 'children': c_8}) }}\n{%- endif %}\n",
      "path": "blocks/hero-split-media.html.j2",
      "target": "blocks/hero-split-media.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "hero-split-media",
  "registryDependencies": [
    "box",
    "figure-block",
    "group",
    "lucide-icon",
    "media-frame",
    "offer-media",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Hero Split Media",
  "type": "registry:component"
}
