{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Days with their delivery windows as radio chips, beside the zone card.",
  "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/slot-board.json\n    Pick a delivery window: the days with their windows as radio chips, beside a card with the zone, its price and the buttons. Static markup. Axes: layout (split: the card beside the days, stacked: the days only), item (card, plain), tone.\n    Props (p): id, title, lead, days, empty, zone, labels, layout, item, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_days = (p.days ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_zone = (p.zone ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'split') -%}\n{%- set v_item = (p.item ?? 'card') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_19 -%}\n  {%- if og_t(og_eq(og_len(v_days), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'calendar', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_18 -%}\n      {%- set c_1 -%}\n        {{ include('blocks/slot-grid.html.twig', {'p': {'days': v_days, 'name': og_tpl('{0}-slot', [v_id]), 'item': v_item}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': og_s((og_t(og_eq(v_layout, 'split')) ? 'lg:col-span-2' : 'lg:col-span-3')), 'children': c_1}, with_context = false) }}\n      {%- if og_t(og_eq(v_layout, 'split')) %}\n        {%- set c_17 -%}\n          {%- set c_3 -%}\n            {%- set c_2 -%}\n              {{ include('ui/select/SelectOption.html.twig', {'value': og_s(og_get(v_zone, ['id'])), 'selected': true, 'attrs': og_attrs(['label', og_get(v_zone, ['name'])])}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Select.html.twig', {'name': og_s(og_tpl('{0}-zone', [v_id])), 'attrs': og_attrs(['id', og_tpl('{0}-zone', [v_id])]), 'children': c_2}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['zone']), 'htmlFor': og_tpl('{0}-zone', [v_id])}, 'children': og_markup(c_3)}, with_context = false) }}\n          {%- set c_13 -%}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_labels, ['price'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n              {%- set c_5 -%}\n                {{ og_text(og_money(og_get(v_zone, ['price']), og_get(v_zone, ['currency']))) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'font-medium', 'children': c_5}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'class': 'flex items-center justify-between gap-4 text-sm', 'children': c_6}, with_context = false) }}\n            {%- set c_9 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['freeFrom'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_7}, with_context = false) }}\n              {%- set c_8 -%}\n                {{ og_text(og_money(og_get(v_zone, ['freeFrom']), og_get(v_zone, ['currency']))) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'font-medium', 'children': c_8}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'class': 'flex items-center justify-between gap-4 text-sm', 'children': c_9}, with_context = false) }}\n            {%- set c_12 -%}\n              {%- set c_10 -%}\n                {{ og_text(og_get(v_labels, ['time'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'text-muted-foreground', 'children': c_10}, with_context = false) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_zone, ['time'])) }}\n              {%- endset -%}\n              {{ include('compose/Inline.html.twig', {'class': 'font-medium', 'children': c_11}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/ListItem.html.twig', {'class': 'flex items-center justify-between gap-4 text-sm', 'children': c_12}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col gap-2', 'children': c_13}, with_context = false) }}\n          {%- set c_14 -%}\n            {{ og_text(og_get(v_labels, ['primary'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'class': 'w-full', 'children': c_14}, with_context = false) }}\n          {%- set c_15 -%}\n            {{ og_text(og_get(v_labels, ['secondary'])) }}\n          {%- endset -%}\n          {{ include('compose/Button.html.twig', {'variant': 'outline', 'size': 'default', 'class': 'w-full', 'children': c_15}, with_context = false) }}\n          {%- set c_16 -%}\n            {{ og_text(og_get(v_labels, ['note'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_16}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'class': 'rounded bg-card inset-ring inset-ring-border p-6', 'attrs': og_attrs(['data-slot', 'aside']), 'children': c_17}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Box.html.twig', {'class': 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3', 'children': c_18}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_19)}, with_context = false) }}\n",
      "path": "blocks/slot-board.html.twig",
      "target": "blocks/slot-board.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "slot-board",
  "registryDependencies": [
    "box",
    "button",
    "empty-state",
    "field",
    "inline",
    "kit-select",
    "list",
    "list-item",
    "section-frame",
    "select",
    "slot-grid",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Slot Board",
  "type": "registry:block"
}
