{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_lead = og_def(p['lead'], '') -%}\n{%- set v_days = og_def(p['days'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_zone = og_def(p['zone'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_layout = og_def(p['layout'], 'split') -%}\n{%- set v_item = og_def(p['item'], 'card') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_19 -%}\n  {%- if og_t(og_eq(og_len(v_days), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'calendar', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_18 -%}\n      {%- set c_1 -%}\n        {{ og_include('blocks/slot-grid.html.j2', {'p': {'days': v_days, 'name': og_tpl('{0}-slot', [v_id]), 'item': v_item}}) }}\n      {%- endset -%}\n      {{ og_include('compose/box.html.j2', {'p': {'Class': og_s(('lg:col-span-2' if og_t(og_eq(v_layout, 'split')) else 'lg:col-span-3'))}, 'children': c_1}) }}\n      {%- if og_t(og_eq(v_layout, 'split')) %}\n        {%- set c_17 -%}\n          {%- set c_3 -%}\n            {%- set c_2 -%}\n              {{ og_include('ui/select/select-option.html.j2', {'p': {'Value': og_s(og_get(v_zone, ['id'])), 'Selected': true, 'Attrs': og_attrs(['label', og_get(v_zone, ['name'])])}}) }}\n            {%- endset -%}\n            {{ og_include('compose/select.html.j2', {'p': {'Name': og_s(og_tpl('{0}-zone', [v_id])), 'Attrs': og_attrs(['id', og_tpl('{0}-zone', [v_id])])}, 'children': c_2}) }}\n          {%- endset -%}\n          {{ og_include('blocks/field.html.j2', {'p': {'label': og_get(v_labels, ['zone']), 'htmlFor': og_tpl('{0}-zone', [v_id])}, 'children': og_markup(c_3)}) }}\n          {%- set c_13 -%}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\n                {{ og_text(og_get(v_labels, ['price'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_4}) }}\n              {%- set c_5 -%}\n                {{ og_text(og_money(og_get(v_zone, ['price']), og_get(v_zone, ['currency']))) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-medium'}, 'children': c_5}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4 text-sm'}, 'children': c_6}) }}\n            {%- set c_9 -%}\n              {%- set c_7 -%}\n                {{ og_text(og_get(v_labels, ['freeFrom'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_7}) }}\n              {%- set c_8 -%}\n                {{ og_text(og_money(og_get(v_zone, ['freeFrom']), og_get(v_zone, ['currency']))) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-medium'}, 'children': c_8}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4 text-sm'}, 'children': c_9}) }}\n            {%- set c_12 -%}\n              {%- set c_10 -%}\n                {{ og_text(og_get(v_labels, ['time'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-muted-foreground'}, 'children': c_10}) }}\n              {%- set c_11 -%}\n                {{ og_text(og_get(v_zone, ['time'])) }}\n              {%- endset -%}\n              {{ og_include('compose/inline.html.j2', {'p': {'Class': 'font-medium'}, 'children': c_11}) }}\n            {%- endset -%}\n            {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex items-center justify-between gap-4 text-sm'}, 'children': c_12}) }}\n          {%- endset -%}\n          {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col gap-2'}, 'children': c_13}) }}\n          {%- set c_14 -%}\n            {{ og_text(og_get(v_labels, ['primary'])) }}\n          {%- endset -%}\n          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Class': 'w-full'}, 'children': c_14}) }}\n          {%- set c_15 -%}\n            {{ og_text(og_get(v_labels, ['secondary'])) }}\n          {%- endset -%}\n          {{ og_include('compose/button.html.j2', {'p': {'Variant': 'outline', 'Size': 'default', 'Class': 'w-full'}, 'children': c_15}) }}\n          {%- set c_16 -%}\n            {{ og_text(og_get(v_labels, ['note'])) }}\n          {%- endset -%}\n          {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_16}) }}\n        {%- endset -%}\n        {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': 'rounded bg-card inset-ring inset-ring-border p-6', 'Attrs': og_attrs(['data-slot', 'aside'])}, 'children': c_17}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'grid grid-cols-1 items-start gap-8 lg:grid-cols-3'}, 'children': c_18}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('blocks/section-frame.html.j2', {'p': {'id': v_id, 'title': v_title, 'lead': v_lead, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_19)}) }}\n",
      "path": "blocks/slot-board.html.j2",
      "target": "blocks/slot-board.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "delivery",
    "kind": "block",
    "tags": [
      "jinja2",
      "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": "jinja2",
  "title": "Slot Board",
  "type": "registry:block"
}
