{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The hero of a store with promises under the actions, beside a picture with an offer card or over a faint picture.",
  "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/store-hero.json\n    The hero of a store: a badge, the heading, a lead, one or two actions and three store promises. The overlay layout puts a picture beside the text with an offer card floating on it; the backdrop layout puts the text over a faint picture. Axes: layout (overlay, backdrop), mediaSide, tone.\n    Props (p): id, title, lead, badge, level, actions, perks, card, layout, mediaSide, tone, image, imageAlt, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_badge = (p.badge ?? '') -%}\n{%- set v_level = (p.level ?? 1) -%}\n{%- set v_actions = (p.actions ?? null) -%}\n{%- set v_perks = (p.perks ?? null) -%}\n{%- set v_card = (p.card ?? null) -%}\n{%- set v_layout = (p.layout ?? 'overlay') -%}\n{%- set v_mediaSide = (p.mediaSide ?? 'end') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_image = (p.image ?? null) -%}\n{%- set v_imageAlt = (p.imageAlt ?? null) -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- if og_t(og_eq(v_layout, 'backdrop')) %}\n  {%- set c_7 -%}\n    {{ include('blocks/backdrop.html.twig', {'p': {'kind': 'image', 'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'image': v_image}}, with_context = false) }}\n    {{ include('blocks/action-group.html.twig', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_t(og_eq(og_get(v_actions, ['mode']), 'two')) ? og_get(v_actions, ['secondary']) : null), 'secondaryHref': og_get(v_actions, ['secondaryHref'])}}, with_context = false) }}\n    {%- if og_t(og_gt(og_len(v_perks), 0)) %}\n      {%- set c_6 -%}\n        {%- for v_p in og_l(v_perks) %}\n          {%- set v_i = loop.index0 -%}\n          {%- if og_t(og_lt(v_i, 3)) %}\n            {%- set c_5 -%}\n              {%- set c_1 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_p, ['icon'])), 'size': 20}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Box.html.twig', {'class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children': c_1}, with_context = false) }}\n              {%- set c_4 -%}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_p, ['title'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_2}, with_context = false) }}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_p, ['text'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_3}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_4}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'attrs': og_attrs(['data-slot', 'perk']), 'children': c_5}, with_context = false) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'perks']), 'children': c_6}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge, 'level': v_level}, 'tone': v_tone, 'density': 'roomy', 'measure': '3xl', 'className': og_cnv([(og_t(og_eq('image', 'image')) ? 'relative isolate overflow-hidden' : '')]), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_7)}, with_context = false) }}\n{%- else %}\n  {%- set f_14 -%}\n    {{ include('blocks/offer-media.html.twig', {'p': {'alt': (og_t(v_imageAlt) ? v_imageAlt : v_title), 'image': v_image, 'card': v_card}}, with_context = false) }}\n  {%- endset -%}\n  {%- set c_15 -%}\n    {{ include('blocks/action-group.html.twig', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_t(og_eq(og_get(v_actions, ['mode']), 'two')) ? og_get(v_actions, ['secondary']) : null), 'secondaryHref': og_get(v_actions, ['secondaryHref'])}}, with_context = false) }}\n    {%- if og_t(og_gt(og_len(v_perks), 0)) %}\n      {%- set c_13 -%}\n        {%- for v_p in og_l(v_perks) %}\n          {%- set v_i = loop.index0 -%}\n          {%- if og_t(og_lt(v_i, 3)) %}\n            {%- set c_12 -%}\n              {%- set c_8 -%}\n                {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_p, ['icon'])), 'size': 20}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Box.html.twig', {'class': 'flex size-10 shrink-0 items-center justify-center rounded bg-muted', 'children': c_8}, with_context = false) }}\n              {%- set c_11 -%}\n                {%- set c_9 -%}\n                  {{ og_text(og_get(v_p, ['title'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_9}, with_context = false) }}\n                {%- set c_10 -%}\n                  {{ og_text(og_get(v_p, ['text'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_10}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_11}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'attrs': og_attrs(['data-slot', 'perk']), 'children': c_12}, with_context = false) }}\n          {%- endif %}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'perks']), 'children': c_13}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'heading': {'badge': v_badge, 'level': v_level}, 'layout': 'split', 'media': {'show': true, 'side': v_mediaSide}, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel, 'aside': og_markup(f_14)}, 'children': og_markup(c_15)}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/store-hero.html.twig",
      "target": "blocks/store-hero.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "storefront",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "store-hero",
  "registryDependencies": [
    "action-group",
    "backdrop",
    "box",
    "grid",
    "group",
    "lucide-icon",
    "offer-media",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Store Hero",
  "type": "registry:block"
}
