{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The form of AuthCard: the fields of the mode (sign-in, sign-up, reset, magic link), remember me and the forgot link, the terms, the submit button.",
  "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/auth-form.json\n    The form of AuthCard: the fields of the mode (sign-in, sign-up, reset, magic link), remember me and the forgot link, the terms, the submit button.\n    Props (p): id, mode, labels, submit. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_mode = (p.mode ?? 'signin') -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_submit = (p.submit ?? null) -%}\n{%- set c_11 -%}\n  {%- if og_t(og_eq(v_mode, 'signup')) %}\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_and([not (og_eq(v_mode, 'reset')), not (og_eq(v_mode, 'magic'))])) %}\n    {%- set c_3 -%}\n      {{ include('compose/Input.html.twig', {'type': 'password', 'name': 'password', 'attrs': og_attrs(['autocomplete', (og_t(og_eq(v_mode, 'signup')) ? 'new-password' : 'current-password'), 'id', og_tpl('{0}-password', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/field.html.twig', {'p': {'label': og_get(v_labels, ['password']), 'htmlFor': og_tpl('{0}-password', [v_id])}, 'children': og_markup(c_3)}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_mode, 'signin')) %}\n    {%- set c_7 -%}\n      {%- set c_5 -%}\n        {{ include('compose/Checkbox.html.twig', {'name': 'remember', 'attrs': og_attrs(['id', og_tpl('{0}-remember', [v_id])])}, with_context = false) }}\n        {%- set c_4 -%}\n          {{ og_text(og_get(v_labels, ['remember'])) }}\n        {%- endset -%}\n        {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-remember', [v_id])), 'class': 'text-sm', 'children': c_4}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': og_s(og_cnv(['w-fit', ''])), 'children': c_5}, with_context = false) }}\n      {%- set c_6 -%}\n        {{ og_text(og_get(v_labels, ['forgot'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'link', 'size': 'sm', 'class': 'px-0', 'children': c_6}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'justify': 'between', 'align': 'center', 'class': 'flex-wrap gap-2', 'children': c_7}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(v_mode, 'signup')) %}\n    {%- set c_9 -%}\n      {{ include('compose/Checkbox.html.twig', {'name': 'terms', 'attrs': og_attrs(['id', og_tpl('{0}-terms', [v_id])])}, with_context = false) }}\n      {%- set c_8 -%}\n        {{ og_text(og_get(v_labels, ['terms'])) }}\n      {%- endset -%}\n      {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-terms', [v_id])), 'class': 'text-sm', 'children': c_8}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'center', 'class': og_s(og_cnv(['w-fit', ''])), 'children': c_9}, with_context = false) }}\n  {%- endif %}\n  {%- set c_10 -%}\n    {{ og_text(v_submit) }}\n  {%- endset -%}\n  {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'submit', 'class': 'w-full', 'children': c_10}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Form.html.twig', {'method': 'dialog', 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'auth-form']), 'children': c_11}, with_context = false) }}\n",
      "path": "blocks/auth-form.html.twig",
      "target": "blocks/auth-form.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "auth-form",
  "registryDependencies": [
    "button",
    "checkbox",
    "field",
    "form",
    "group",
    "input",
    "label",
    "utils"
  ],
  "runtime": "twig",
  "title": "Auth Form",
  "type": "registry:component"
}
