{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_actions = ($p['actions'] ?? null)}\n{var $v_center = ($p['center'] ?? false)}\n{if og_t(og_eq(og_get($v_actions, ['mode']), 'form'))}\n  {capture $c_4}\n    {capture $c_1}\n      {=og_text(og_get($v_actions, ['emailLabel']))}\n    {/capture}\n    {=og_include('compose/Label.latte', ['htmlFor' => og_s(og_tpl('{0}-email', [$v_id])), 'class' => 'sr-only', 'children' => (string) $c_1])|noescape}\n    {capture $c_3}\n      {=og_include('compose/Input.latte', ['type' => 'email', 'name' => 'email', 'class' => 'min-w-0 flex-1', 'attrs' => og_attrs(['id', og_tpl('{0}-email', [$v_id]), 'data-slot', 'field'])])|noescape}\n      {capture $c_2}\n        {=og_text(og_get($v_actions, ['cta']))}\n      {/capture}\n      {=og_include('compose/Button.latte', ['variant' => 'default', 'size' => 'default', 'type' => 'submit', 'children' => (string) $c_2])|noescape}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'start', 'class' => 'w-full flex-wrap', 'children' => (string) $c_3])|noescape}\n  {/capture}\n  {=og_include('compose/Form.latte', ['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' => (string) $c_4])|noescape}\n{else}\n  {=og_include('blocks/action-group.latte', ['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')]])|noescape}\n{/if}\n",
      "path": "blocks/cta-actions.latte",
      "target": "blocks/cta-actions.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "cta-actions",
  "registryDependencies": [
    "action-group",
    "button",
    "form",
    "group",
    "input",
    "label",
    "utils"
  ],
  "runtime": "latte",
  "title": "Cta Actions",
  "type": "registry:component"
}
