{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Plans as a grid or a stack of cards.",
  "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/pricing-tiers.json\n    A section with a heading and one PricingCard per plan; an empty state when there are none. Axes: layout (grid, stack), columns, emphasis, billing (off: no toggle; monthly or annual: a toggle with that choice selected, and the prices of that period), density, tone.\n    Props (p): id, title, plans, labels, billingLabels, layout, cols, emphasis, billing, tone, density, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_plans = (p.plans ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_billingLabels = (p.billingLabels ?? null) -%}\n{%- set v_layout = (p.layout ?? 'grid') -%}\n{%- set v_cols = (p.cols ?? '1-3') -%}\n{%- set v_emphasis = (p.emphasis ?? 'auto') -%}\n{%- set v_billing = (p.billing ?? 'off') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_7 -%}\n  {%- if og_t(not (og_eq(v_billing, 'off'))) %}\n    {%- set c_5 -%}\n      {%- set c_3 -%}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_billingLabels, ['monthly'])) }}\n        {%- endset -%}\n        {{ include('blocks/switcher-item.html.twig', {'p': {'active': og_eq(v_billing, 'monthly')}, 'children': og_markup(c_1)}, with_context = false) }}\n        {%- set c_2 -%}\n          {{ og_text(og_get(v_billingLabels, ['annual'])) }}\n        {%- endset -%}\n        {{ include('blocks/switcher-item.html.twig', {'p': {'active': og_eq(v_billing, 'annual')}, 'children': og_markup(c_2)}, with_context = false) }}\n      {%- endset -%}\n      {{ include('blocks/switcher.html.twig', {'p': {'label': og_get(v_billingLabels, ['label'])}, 'children': og_markup(c_3)}, with_context = false) }}\n      {%- set c_4 -%}\n        {{ og_text(og_get(v_billingLabels, ['save'])) }}\n      {%- endset -%}\n      {{ include('compose/Badge.html.twig', {'variant': 'default', 'size': 'default', 'children': c_4}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'justify': 'center', 'class': 'flex-wrap', 'attrs': og_attrs(['data-slot', 'billing']), 'children': c_5}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(og_eq(og_len(v_plans), 0)) %}\n    {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'layers', 'title': og_get(v_labels, ['empty'])}}, with_context = false) }}\n  {%- else %}\n    {%- set c_6 -%}\n      {%- for v_plan in og_l(v_plans) %}\n        {{ include('blocks/pricing-card.html.twig', {'p': {'plan': v_plan, 'labels': v_labels, 'emphasis': v_emphasis, 'billing': (og_t(og_eq(v_billing, 'annual')) ? 'annual' : 'monthly'), 'density': (og_t(og_eq(v_density, 'compact')) ? 'compact' : 'default')}}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': og_s((og_t(og_eq(v_layout, 'stack')) ? '1' : og_fit_cols(v_cols, og_len(v_plans)))), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'tiers']), 'children': c_6}, 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_layout, 'stack')) ? 'md' : 'default'), 'landmarkLabel': v_landmarkLabel}, 'children': og_markup(c_7)}, with_context = false) }}\n",
      "path": "blocks/pricing-tiers.html.twig",
      "target": "blocks/pricing-tiers.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "pricing-tiers",
  "registryDependencies": [
    "badge",
    "empty-state",
    "grid",
    "group",
    "pricing-card",
    "section-frame",
    "switcher",
    "switcher-item",
    "utils"
  ],
  "runtime": "twig",
  "title": "Pricing Tiers",
  "type": "registry:block"
}
