{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_actions = og_def(p['actions'], none) -%}\n{%- set v_center = og_def(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    {{ og_include('compose/label.html.j2', {'p': {'For': og_s(og_tpl('{0}-email', [v_id])), 'Class': 'sr-only'}, 'children': c_1}) }}\n    {%- set c_3 -%}\n      {{ og_include('compose/input.html.j2', {'p': {'Type': 'email', 'Name': 'email', 'Class': 'min-w-0 flex-1', 'Attrs': og_attrs(['id', og_tpl('{0}-email', [v_id]), 'data-slot', 'field'])}}) }}\n      {%- set c_2 -%}\n        {{ og_text(og_get(v_actions, ['cta'])) }}\n      {%- endset -%}\n      {{ og_include('compose/button.html.j2', {'p': {'Variant': 'default', 'Size': 'default', 'Type': 'submit'}, 'children': c_2}) }}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'start', 'Class': 'w-full flex-wrap'}, 'children': c_3}) }}\n  {%- endset -%}\n  {{ og_include('compose/form.html.j2', {'p': {'Method': 'dialog', 'Class': og_s(og_cnv(['w-full max-w-md', ('mx-auto' if og_t(v_center) else '')])), 'Attrs': og_attrs(['data-slot', 'email-form'])}, 'children': c_4}) }}\n{%- else %}\n  {{ og_include('blocks/action-group.html.j2', {'p': {'primary': og_get(v_actions, ['cta']), 'primaryHref': og_get(v_actions, ['href']), 'secondary': (og_get(v_actions, ['secondary']) if og_t(og_eq(og_get(v_actions, ['mode']), 'two')) else none), 'secondaryHref': og_get(v_actions, ['secondaryHref']), 'align': ('center' if og_t(v_center) else 'start')}}) }}\n{%- endif %}\n",
      "path": "blocks/cta-actions.html.j2",
      "target": "blocks/cta-actions.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "cta-actions",
  "registryDependencies": [
    "action-group",
    "button",
    "form",
    "group",
    "input",
    "label",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Cta Actions",
  "type": "registry:component"
}
