{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Contacts, address, a window and the payment beside a sticky order summary.",
  "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/checkout-form.json\n    A checkout on one page: contacts, address, a delivery window, the payment and the consent as stacked steps, beside a sticky order summary with the lines, a promo code and the totals. Static markup. Axes: layout (cards: each step in a card, numbered: numbered steps divided by a line), summary (aside, none), tone.\n    Props (p): id, title, days, payments, lines, rows, promos, labels, totals, layout, summary, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? '') -%}\n{%- set v_days = (p.days ?? null) -%}\n{%- set v_payments = (p.payments ?? null) -%}\n{%- set v_lines = (p.lines ?? null) -%}\n{%- set v_rows = (p.rows ?? null) -%}\n{%- set v_promos = (p.promos ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_totals = (p.totals ?? null) -%}\n{%- set v_layout = (p.layout ?? 'cards') -%}\n{%- set v_summary = (p.summary ?? 'aside') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_19 -%}\n  {%- set c_18 -%}\n    {%- set c_16 -%}\n      {%- set c_5 -%}\n        {%- set c_4 -%}\n          {%- set c_1 -%}\n            {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'name', 'attrs': og_attrs(['autocomplete', 'name', 'id', og_tpl('{0}-name', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['name']), 'htmlFor': og_tpl('{0}-name', [v_id])}, 'children': og_markup(c_1)}, with_context = false) }}\n          {%- set c_2 -%}\n            {{ include('compose/Input.html.twig', {'type': 'tel', 'name': 'phone', 'attrs': og_attrs(['autocomplete', 'tel', 'id', og_tpl('{0}-phone', [v_id]), 'data-slot', 'field'])}, 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_2)}, with_context = false) }}\n          {%- set c_3 -%}\n            {{ include('compose/Input.html.twig', {'type': 'email', 'name': 'email', 'attrs': og_attrs(['autocomplete', 'email', 'id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['email']), 'htmlFor': og_tpl('{0}-email', [v_id])}, 'children': og_markup(c_3)}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '1-2', 'class': 'gap-4', 'children': c_4}, with_context = false) }}\n      {%- endset -%}\n      {{ include('blocks/checkout-step.html.twig', {'p': {'number': '1', 'title': og_get(v_labels, ['contacts']), 'text': og_get(v_labels, ['contactsText']), 'layout': v_layout}, 'children': og_markup(c_5)}, with_context = false) }}\n      {%- set c_13 -%}\n        {%- set c_6 -%}\n          {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'street', 'attrs': og_attrs(['autocomplete', 'address-line1', 'id', og_tpl('{0}-street', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['street']), 'htmlFor': og_tpl('{0}-street', [v_id])}, 'children': og_markup(c_6)}, with_context = false) }}\n        {%- set c_11 -%}\n          {%- set c_7 -%}\n            {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'house', 'attrs': og_attrs(['id', og_tpl('{0}-house', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['house']), 'htmlFor': og_tpl('{0}-house', [v_id])}, 'children': og_markup(c_7)}, with_context = false) }}\n          {%- set c_8 -%}\n            {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'flat', 'attrs': og_attrs(['id', og_tpl('{0}-flat', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['flat']), 'htmlFor': og_tpl('{0}-flat', [v_id])}, 'children': og_markup(c_8)}, with_context = false) }}\n          {%- set c_9 -%}\n            {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'entrance', 'attrs': og_attrs(['id', og_tpl('{0}-entrance', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['entrance']), 'htmlFor': og_tpl('{0}-entrance', [v_id])}, 'children': og_markup(c_9)}, with_context = false) }}\n          {%- set c_10 -%}\n            {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'floor', 'attrs': og_attrs(['id', og_tpl('{0}-floor', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n          {%- endset -%}\n          {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['floor']), 'htmlFor': og_tpl('{0}-floor', [v_id])}, 'children': og_markup(c_10)}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '2-4', 'class': 'gap-4', 'children': c_11}, with_context = false) }}\n        {%- set c_12 -%}\n          {{ include('compose/Textarea.html.twig', {'rows': 4, 'name': 'comment', 'attrs': og_attrs(['id', og_tpl('{0}-comment', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['comment']), 'htmlFor': og_tpl('{0}-comment', [v_id])}, 'children': og_markup(c_12)}, with_context = false) }}\n      {%- endset -%}\n      {{ include('blocks/checkout-step.html.twig', {'p': {'number': '2', 'title': og_get(v_labels, ['address']), 'text': og_get(v_labels, ['addressText']), 'layout': v_layout}, 'children': og_markup(c_13)}, with_context = false) }}\n      {%- set c_14 -%}\n        {%- if og_t(og_gt(og_len(v_days), 0)) %}\n          {{ include('blocks/slot-grid.html.twig', {'p': {'days': v_days, 'name': og_tpl('{0}-slot', [v_id]), 'item': 'plain'}}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('blocks/checkout-step.html.twig', {'p': {'number': '3', 'title': og_get(v_labels, ['slot']), 'text': og_get(v_labels, ['slotText']), 'layout': v_layout}, 'children': og_markup(c_14)}, with_context = false) }}\n      {%- set c_15 -%}\n        {%- if og_t(og_gt(og_len(v_payments), 0)) %}\n          {{ include('blocks/payment-options.html.twig', {'p': {'payments': v_payments, 'name': og_tpl('{0}-payment', [v_id]), 'checked': 'payment-card'}}, with_context = false) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('blocks/checkout-step.html.twig', {'p': {'number': '4', 'title': og_get(v_labels, ['payment']), 'text': og_get(v_labels, ['paymentText']), 'layout': v_layout}, 'children': og_markup(c_15)}, with_context = false) }}\n      {{ include('blocks/checkout-submit.html.twig', {'p': {'id': v_id, 'consent': og_get(v_labels, ['consent']), 'submit': og_get(v_labels, ['submit']), 'legal': og_get(v_labels, ['legal'])}}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Form.html.twig', {'method': 'dialog', 'class': og_s((og_t(og_eq(v_summary, 'aside')) ? 'flex flex-col gap-6 lg:col-span-2' : 'flex flex-col gap-6 lg:col-span-3')), 'attrs': og_attrs(['data-slot', 'checkout-form']), 'children': c_16}, with_context = false) }}\n    {%- if og_t(og_eq(v_summary, 'aside')) %}\n      {%- set c_17 -%}\n        {{ include('blocks/cart-summary-card.html.twig', {'p': {'field': og_tpl('{0}-promo', [v_id]), 'lines': v_lines, 'rows': v_rows, 'promos': v_promos, 'labels': v_totals, 'items': 'show'}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Box.html.twig', {'class': 'lg:sticky lg:top-8', '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{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_19)}, with_context = false) }}\n",
      "path": "blocks/checkout-form.html.twig",
      "target": "blocks/checkout-form.html.twig"
    }
  ],
  "meta": {
    "category": "commerce",
    "group": "checkout",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "checkout-form",
  "registryDependencies": [
    "box",
    "cart-summary-card",
    "checkout-step",
    "checkout-submit",
    "field",
    "form",
    "grid",
    "input",
    "payment-options",
    "section-frame",
    "slot-grid",
    "textarea",
    "utils"
  ],
  "runtime": "twig",
  "title": "Checkout Form",
  "type": "registry:block"
}
