{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Compact rows with a one-click order button and a phone field.",
  "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/quick-order.json\n    Quick order in one click: compact rows (name, weight, summary, price) each with an order button named after the dish, under a phone field that the one click uses. Axes: phone (show, hide), tone.\n    Props (p): id, title, lead, dishes, empty, labels, phone, 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_dishes = og_def(p['dishes'], none) -%}\n{%- set v_empty = og_def(p['empty'], '') -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_phone = og_def(p['phone'], 'show') -%}\n{%- set v_tone = og_def(p['tone'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ og_include('blocks/empty-state.html.j2', {'p': {'icon': 'zap', 'title': v_empty}}) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- if og_t(og_eq(v_phone, 'show')) %}\n        {%- set c_1 -%}\n          {{ og_include('compose/input.html.j2', {'p': {'Type': 'tel', 'Name': og_s(og_tpl('{0}-phone', [v_id])), 'Attrs': og_attrs(['id', og_tpl('{0}-phone', [v_id])])}}) }}\n        {%- endset -%}\n        {{ og_include('blocks/field.html.j2', {'p': {'label': og_get(v_labels, ['phone']), 'htmlFor': og_tpl('{0}-phone', [v_id])}, 'children': og_markup(c_1)}) }}\n      {%- endif %}\n      {%- set c_10 -%}\n        {%- for v_d in og_l(v_dishes) %}\n          {%- set c_9 -%}\n            {%- set c_6 -%}\n              {%- set c_4 -%}\n                {%- set c_2 -%}\n                  {{ og_text(og_get(v_d, ['name'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'base', 'Weight': 'semibold'}, 'children': c_2}) }}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_d, ['weight'])) }}\n                {%- endset -%}\n                {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_3}) }}\n              {%- endset -%}\n              {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'baseline'}, 'children': c_4}) }}\n              {%- set c_5 -%}\n                {{ og_text(og_get(v_d, ['summary'])) }}\n              {%- endset -%}\n              {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}\n            {%- endset -%}\n            {{ og_include('compose/stack.html.j2', {'p': {'Gap': '0', 'Class': 'min-w-0 flex-1'}, 'children': c_6}) }}\n            {%- set c_7 -%}\n              {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n            {%- endset -%}\n            {{ og_include('compose/inline.html.j2', {'p': {'Class': 'text-base font-bold'}, 'children': c_7}) }}\n            {%- set c_8 -%}\n              {{ og_include('icons/lucide-icon.html.j2', {'p': {'Name': 'zap', 'Size': 16}}) }}\n              {{ og_text(og_get(v_labels, ['order'])) }}\n            {%- endset -%}\n            {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'sm', 'Type': 'button', 'AriaLabel': og_s(og_tpl(og_get(v_labels, ['orderOf']), [og_get(v_d, ['name'])]))}, 'children': c_8}) }}\n          {%- endset -%}\n          {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex flex-wrap items-center gap-4 border-b border-border py-4', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_9}) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_10}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '4', 'Align': 'stretch', 'Class': 'mx-auto w-full max-w-3xl'}, 'children': c_11}) }}\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_12)}) }}\n",
      "path": "blocks/quick-order.html.j2",
      "target": "blocks/quick-order.html.j2"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "quick-order",
  "registryDependencies": [
    "button",
    "empty-state",
    "field",
    "group",
    "inline",
    "input",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Quick Order",
  "type": "registry:block"
}
