{
  "$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 = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_lead = (p.lead ?? '') -%}\n{%- set v_dishes = (p.dishes ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_phone = (p.phone ?? 'show') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_12 -%}\n  {%- if og_t(og_eq(og_len(v_dishes), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'zap', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_11 -%}\n      {%- if og_t(og_eq(v_phone, 'show')) %}\n        {%- set c_1 -%}\n          {{ include('compose/Input.html.twig', {'type': 'tel', 'name': og_s(og_tpl('{0}-phone', [v_id])), 'attrs': og_attrs(['id', og_tpl('{0}-phone', [v_id])])}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['phone']), 'htmlFor': og_tpl('{0}-phone', [v_id])}, 'children': og_markup(c_1)}, with_context = false) }}\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                {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'semibold', 'children': c_2}, with_context = false) }}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_d, ['weight'])) }}\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/Group.html.twig', {'gap': '2', 'align': 'baseline', 'children': c_4}, with_context = false) }}\n              {%- set c_5 -%}\n                {{ og_text(og_get(v_d, ['summary'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'min-w-0 flex-1', 'children': c_6}, with_context = false) }}\n            {%- set c_7 -%}\n              {{ og_text(og_money(og_get(v_d, ['price']), og_get(v_d, ['currency']))) }}\n            {%- endset -%}\n            {{ include('compose/Inline.html.twig', {'class': 'text-base font-bold', 'children': c_7}, with_context = false) }}\n            {%- set c_8 -%}\n              {{ include('icons/LucideIcon.html.twig', {'name': 'zap', 'size': 16}, with_context = false) }}\n              {{ og_text(og_get(v_labels, ['order'])) }}\n            {%- endset -%}\n            {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'sm', 'type': 'button', 'ariaLabel': og_s(og_tpl(og_get(v_labels, ['orderOf']), [og_get(v_d, ['name'])])), 'children': c_8}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/ListItem.html.twig', {'class': 'flex flex-wrap items-center gap-4 border-b border-border py-4', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_9}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_10}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '4', 'align': 'stretch', 'class': 'mx-auto w-full max-w-3xl', 'children': c_11}, 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_12)}, with_context = false) }}\n",
      "path": "blocks/quick-order.html.twig",
      "target": "blocks/quick-order.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "food",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "quick-order",
  "registryDependencies": [
    "button",
    "empty-state",
    "field",
    "group",
    "inline",
    "input",
    "list",
    "list-item",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Quick Order",
  "type": "registry:block"
}
