{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "How delivery works: the facts, then the zones.",
  "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/delivery-info.json\n    How delivery works: the facts as icon cards, then the zones with their time and the order that ships free. Axes: layout (full: facts over zone cards, facts: the facts only, split: the facts beside a list of zones), tone, density.\n    Props (p): id, title, lead, facts, zones, labels, layout, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_facts = (p.facts ?? null) -%}\n{%- set v_zones = (p.zones ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'full') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_17 -%}\n  {%- set c_16 -%}\n    {%- if og_t(og_gt(og_len(v_facts), 0)) %}\n      {%- set c_6 -%}\n        {%- for v_f in og_l(v_facts) %}\n          {%- set c_5 -%}\n            {%- set c_1 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_f, ['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_f, ['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_f, ['text'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_3}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'children': c_4}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Stack.html.twig', {'gap': '4', 'class': 'rounded bg-card inset-ring inset-ring-border p-6', 'attrs': og_attrs(['data-slot', 'fact']), 'children': c_5}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'split')) ? '1-2' : '1-4')), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'facts']), 'children': c_6}, with_context = false) }}\n    {%- endif %}\n    {%- if og_t(og_and([not (og_eq(v_layout, 'facts')), og_gt(og_len(v_zones), 0)])) %}\n      {%- set c_15 -%}\n        {%- set c_7 -%}\n          {{ og_text(og_get(v_labels, ['zones'])) }}\n        {%- endset -%}\n        {{ include('compose/Title.html.twig', {'as': 3, 'size': 'lg', 'weight': 'bold', 'children': c_7}, with_context = false) }}\n        {%- set c_14 -%}\n          {%- for v_z in og_l(v_zones) %}\n            {%- set c_13 -%}\n              {%- set c_10 -%}\n                {%- set c_8 -%}\n                  {{ og_text(og_get(v_z, ['name'])) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_8}, with_context = false) }}\n                {%- set c_9 -%}\n                  {{ og_text(og_get(v_z, ['time'])) }}\n                {%- endset -%}\n                {{ include('compose/Badge.html.twig', {'variant': 'secondary', 'size': 'default', 'children': c_9}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'baseline', 'justify': 'between', 'children': c_10}, with_context = false) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_z, ['area'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_11}, with_context = false) }}\n              {%- set c_12 -%}\n                {{ og_text(og_tpl(og_get(v_labels, ['freeFrom']), [og_money(og_get(v_z, ['freeFrom']), og_get(v_z, ['currency']))])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'medium', 'children': c_12}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'class': og_s((og_t(og_eq(v_layout, 'split')) ? 'border-b border-border pb-4' : 'rounded bg-card inset-ring inset-ring-border p-6')), 'attrs': og_attrs(['data-slot', 'zone']), 'children': c_13}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'split')) ? 'flex flex-col gap-4' : 'grid grid-cols-1 gap-4 md:grid-cols-3')), 'children': c_14}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'children': c_15}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': og_s(og_cnv(['grid grid-cols-1 gap-8', (og_t(og_eq(v_layout, 'split')) ? 'items-start md:grid-cols-2' : '')])), 'children': c_16}, with_context = false) }}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'density': v_density, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_17)}, with_context = false) }}\n",
      "path": "blocks/delivery-info.html.twig",
      "target": "blocks/delivery-info.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "delivery-info",
  "registryDependencies": [
    "badge",
    "box",
    "grid",
    "group",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Delivery Info",
  "type": "registry:block"
}
