{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One-off packs of credits with a price: tiles in two or four columns, or rows.",
  "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/credit-packs.json\n    Packs of credits as tiles: the amount, a badge, the price and a buy button. Axes: columns (2, 4), item (tile, row), tone, density.\n    Props (p): id, title, packs, empty, badges, buy, cols, item, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_packs = (p.packs ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_badges = (p.badges ?? null) -%}\n{%- set v_buy = (p.buy ?? null) -%}\n{%- set v_cols = (p.cols ?? '4') -%}\n{%- set v_item = (p.item ?? 'tile') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_11 -%}\n  {%- if og_t(og_eq(og_len(v_packs), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'coins', 'title': v_empty}}, with_context = false) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- for v_pack in og_l(v_packs) %}\n        {%- set c_9 -%}\n          {%- set c_8 -%}\n            {%- set c_6 -%}\n              {%- if og_t(og_or([og_get(v_pack, ['badge']), og_and([not (og_eq(v_item, 'row')), og_gt(og_count(v_packs, 'badge'), 0)])])) %}\n                {%- set c_2 -%}\n                  {%- if og_t(og_get(v_pack, ['badge'])) %}\n                    {%- set c_1 -%}\n                      {{ og_text(og_at(v_badges, og_get(v_pack, ['badge']))) }}\n                    {%- endset -%}\n                    {{ include('compose/Badge.html.twig', {'variant': 'default', 'size': 'default', 'class': 'w-fit shrink-0', 'children': c_1}, with_context = false) }}\n                  {%- endif %}\n                {%- endset -%}\n                {{ include('compose/Box.html.twig', {'class': 'flex min-h-6 items-center', 'attrs': og_attrs(['data-slot', 'badge-slot']), 'children': c_2}, with_context = false) }}\n              {%- endif %}\n              {%- set c_5 -%}\n                {%- set c_3 -%}\n                  {{ og_text(og_get(v_pack, ['name'])) }}\n                {%- endset -%}\n                {{ include('compose/Title.html.twig', {'as': 3, 'size': 'xl', 'weight': 'bold', 'children': c_3}, with_context = false) }}\n                {%- set c_4 -%}\n                  {{ og_text(og_money(og_get(v_pack, ['price']), og_get(v_pack, ['currency']))) }}\n                {%- endset -%}\n                {{ include('compose/Text.html.twig', {'size': '2xl', 'weight': 'bold', 'children': c_4}, with_context = false) }}\n              {%- endset -%}\n              {{ include('compose/Stack.html.twig', {'gap': '0', 'class': 'min-w-0', 'children': c_5}, with_context = false) }}\n            {%- endset -%}\n            {{ include('compose/Stack.html.twig', {'gap': '2', 'align': 'start', 'class': og_s(og_cnv(['min-w-0', (og_t(og_eq(v_item, 'row')) ? 'flex-1' : '')])), 'children': c_6}, with_context = false) }}\n            {%- set c_7 -%}\n              {{ og_text(v_buy) }}\n            {%- endset -%}\n            {{ include('compose/Button.html.twig', {'variant': og_s((og_t(og_eq(og_get(v_pack, ['badge']), 'popular')) ? 'default' : 'outline')), 'size': 'sm', 'type': 'button', 'class': og_s(og_cnv(['w-fit shrink-0', (og_t(og_eq(v_item, 'row')) ? '' : 'mt-auto')])), 'children': c_7}, with_context = false) }}\n          {%- endset -%}\n          {{ include('compose/CardContent.html.twig', {'class': og_s(og_cnv(['flex h-full gap-4', (og_t(og_eq(v_item, 'row')) ? 'flex-row flex-wrap items-center justify-between' : 'flex-col')])), 'children': c_8}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Card.html.twig', {'variant': 'default', 'class': og_s(og_cnv(['h-full', (og_t(og_eq(v_item, 'row')) ? 'gap-4 p-4' : (og_t(og_eq(v_density, 'compact')) ? 'gap-4 p-4' : ''))])), 'attrs': og_attrs(['data-badge', og_get(v_pack, ['badge'])]), 'children': c_9}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_item, 'row')) ? '1' : og_fit_cols((og_t(og_eq(v_cols, '2')) ? '1-2' : '1-4'), og_len(v_packs)))), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_10}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('blocks/section-frame.html.twig', {'p': {'id': v_id, 'title': v_title, 'tone': v_tone, 'density': v_density, 'measure': (og_t(og_eq(v_item, 'row')) ? '2xl' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_11)}, with_context = false) }}\n",
      "path": "blocks/credit-packs.html.twig",
      "target": "blocks/credit-packs.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "credit-packs",
  "registryDependencies": [
    "badge",
    "box",
    "button",
    "card",
    "card-content",
    "empty-state",
    "grid",
    "section-frame",
    "stack",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Credit Packs",
  "type": "registry:block"
}
