{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The actions of a call to action: one or two links (ActionGroup), or an email field with a button (actions form).",
  "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/cta-actions.json\n    The actions of a call to action: one or two links (ActionGroup), or an email field with a button (actions form).\n    Props (p): id, actions, center. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_actions = (p.actions ?? null) -%}\n{%- set v_center = (p.center ?? false) -%}\n{%- if og_t(og_eq(og_get(v_actions, ['mode']), 'form')) %}\n  {%- set c_4 -%}\n    {%- set c_1 -%}\n      {{ og_text(og_get(v_actions, ['emailLabel'])) }}\n    {%- endset -%}\n    {{ include('compose/Label.html.twig', {'htmlFor': og_s(og_tpl('{0}-email', [v_id])), 'class': 'sr-only', 'children': c_1}, with_context = false) }}\n    {%- set c_3 -%}\n      {{ include('compose/Input.html.twig', {'type': 'email', 'name': 'email', 'class': 'min-w-0 flex-1', 'attrs': og_attrs(['id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}, with_context = false) }}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_actions, ['cta'])) }}\n      {%- endset -%}\n      {{ include('compose/Button.html.twig', {'variant': 'default', 'size': 'default', 'type': 'submit', 'children': c_2}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'start', 'class': 'w-full flex-wrap', 'children': c_3}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Form.html.twig', {'method': 'dialog', 'class': og_s(og_cnv(['w-full max-w-md', (og_t(v_center) ? 'mx-auto' : '')])), 'attrs': og_attrs(['data-slot', 'email-form']), 'children': c_4}, with_context = false) }}\n{%- else %}\n  {{ include('blocks/action-group.html.twig', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_t(og_eq(og_get(v_actions, ['mode']), 'two')) ? og_get(v_actions, ['secondary']) : null), 'secondaryHref': og_get(v_actions, ['secondaryHref']), 'align': (og_t(v_center) ? 'center' : 'start')}}, with_context = false) }}\n{%- endif %}\n",
      "path": "blocks/cta-actions.html.twig",
      "target": "blocks/cta-actions.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "cta-actions",
  "registryDependencies": [
    "action-group",
    "button",
    "form",
    "group",
    "input",
    "label",
    "utils"
  ],
  "runtime": "twig",
  "title": "Cta Actions",
  "type": "registry:component"
}
