{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "A message form, alone or beside the ways to reach us.",
  "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/contact-form.json\n    A contact section: a form (name, email, subject, message, consent) and, in the split layout, the ways to reach us beside it. Axes: layout (single, split), fields (short: email and message, full), terms (show, hide), tone (default, muted).\n    Props (p): id, title, text, labels, details, layout, fields, terms, level, page, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_text = (p.text ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_details = (p.details ?? null) -%}\n{%- set v_layout = (p.layout ?? 'single') -%}\n{%- set v_fields = (p.fields ?? 'full') -%}\n{%- set v_terms = (p.terms ?? 'hide') -%}\n{%- set v_level = (p.level ?? 2) -%}\n{%- set v_page = (p.page ?? 'section') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_15 -%}\n  {%- set c_14 -%}\n    {%- set c_8 -%}\n      {%- if og_t(og_eq(v_fields, 'full')) %}\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      {%- endif %}\n      {%- set c_2 -%}\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_2)}, with_context = false) }}\n      {%- if og_t(og_eq(v_fields, 'full')) %}\n        {%- set c_3 -%}\n          {{ include('compose/Input.html.twig', {'type': 'text', 'name': 'subject', 'attrs': og_attrs(['id', og_tpl('{0}-subject', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['subject']), 'htmlFor': og_tpl('{0}-subject', [v_id])}, 'children': og_markup(c_3)}, with_context = false) }}\n      {%- endif %}\n      {%- set c_4 -%}\n        {{ include('compose/Textarea.html.twig', {'rows': 4, 'name': 'message', 'attrs': og_attrs(['id', og_tpl('{0}-message', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n      {%- endset -%}\n      {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['message']), 'htmlFor': og_tpl('{0}-message', [v_id])}, 'children': og_markup(c_4)}, with_context = false) }}\n      {%- if og_t(og_eq(v_terms, 'show')) %}\n        {%- set c_6 -%}\n          {{ include('compose/Checkbox.html.twig', {'name': 'consent', 'attrs': og_attrs(['id', og_tpl('{0}-consent', [v_id])])}, with_context = false) }}\n          {%- set c_5 -%}\n            {{ og_text(og_get(v_labels, ['consent'])) }}\n          {%- endset -%}\n          {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-consent', [v_id])), 'class': 'text-sm', 'children': c_5}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': og_s(og_cnv(['w-fit', ''])), 'children': c_6}, with_context = false) }}\n      {%- endif %}\n      {%- set c_7 -%}\n        {{ og_text(og_get(v_labels, ['submit'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'submit', 'class': 'w-fit', 'children': c_7}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Form.html.twig', {'method': 'dialog', 'class': 'w-full gap-4', 'attrs': og_attrs(['data-slot', 'contact-form']), 'children': c_8}, with_context = false) }}\n    {%- if og_t(og_and([og_eq(v_layout, 'split'), og_gt(og_len(v_details), 0)])) %}\n      {%- set c_13 -%}\n        {%- for v_d in og_l(v_details) %}\n          {%- set c_12 -%}\n            {{ include('icons/LucideIcon.html.twig', {'name': og_s(og_get(v_d, ['icon'])), 'size': 20}, with_context = false) }}\n            {%- set c_11 -%}\n              {%- set c_9 -%}\n                {{ og_text(og_get(v_d, ['title'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'base', 'weight': 'semibold', 'children': c_9}, with_context = false) }}\n              {%- set c_10 -%}\n                {{ og_text(og_get(v_d, ['text'])) }}\n              {%- endset -%}\n              {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_10}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '0', 'children': c_11}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'start', 'attrs': og_attrs(['data-slot', 'detail']), 'children': c_12}, with_context = false) }}\n        {%- endfor %}\n      {%- endset -%}\n      {{ include('compose/Stack.html.twig', {'gap': '4', 'attrs': og_attrs(['data-slot', 'details']), 'children': c_13}, with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'split')) ? '1-2' : '1')), 'class': 'items-start gap-8', 'children': c_14}, with_context = false) }}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'lead': v_text, 'heading': {'level': v_level}, 'tone': v_tone, 'density': (og_t(og_eq(v_page, 'full')) ? 'roomy' : 'default'), 'align': (og_t(og_eq(v_page, 'full')) ? 'center' : 'start'), 'measure': (og_t(og_eq(v_layout, 'single')) ? 'xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_15)}, with_context = false) }}\n",
      "path": "blocks/contact-form.html.twig",
      "target": "blocks/contact-form.html.twig"
    }
  ],
  "meta": {
    "category": "support",
    "group": "contact",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "contact-form",
  "registryDependencies": [
    "button",
    "checkbox",
    "field",
    "form",
    "grid",
    "group",
    "input",
    "label",
    "lucide-icon",
    "section-frame",
    "stack",
    "text",
    "textarea",
    "utils"
  ],
  "runtime": "twig",
  "title": "Contact Form",
  "type": "registry:block"
}
