{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "One plan as a card.",
  "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-card.json\n    A plan as a card: name, tagline, price per month, the features, a call to action and an optional slot for more actions. Text comes in through `labels`; the plan is data.\n    Props (p): plan, labels, current, emphasis, density, billing, footer (slot: plan). -#}\n{%- set v_plan = (p.plan ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set v_current = (p.current ?? null) -%}\n{%- set v_emphasis = (p.emphasis ?? 'auto') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_billing = (p.billing ?? 'monthly') -%}\n{%- set v_stand = og_and([og_get(v_plan, ['highlighted']), og_eq(v_emphasis, 'auto')]) -%}\n{%- set v_yearlyOn = og_and([og_eq(v_billing, 'annual'), og_gt(og_get(v_plan, ['yearly']), 0)]) -%}\n{%- set v_amount = (og_t(v_yearlyOn) ? og_get(v_plan, ['yearly']) : og_get(v_plan, ['price'])) -%}\n{%- set c_16 -%}\n  {%- set c_5 -%}\n    {%- set c_2 -%}\n      {%- if og_t(v_stand) %}\n        {%- set c_1 -%}\n          {{ og_text(og_get(v_labels, ['popular'])) }}\n        {%- endset -%}\n        {{ include('compose/Badge.html.twig', {'variant': 'default', 'size': 'default', '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    {%- set c_3 -%}\n      {{ og_text(og_get(v_plan, ['name'])) }}\n    {%- endset -%}\n    {{ include('compose/CardTitle.html.twig', {'as': 3, 'children': c_3}, with_context = false) }}\n    {%- set c_4 -%}\n      {{ og_text(og_get(v_plan, ['tagline'])) }}\n    {%- endset -%}\n    {{ include('compose/CardDescription.html.twig', {'children': c_4}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/CardHeader.html.twig', {'class': 'flex flex-col gap-2', 'children': c_5}, with_context = false) }}\n  {%- set c_13 -%}\n    {%- set c_8 -%}\n      {%- set c_6 -%}\n        {%- if og_t(og_eq(v_amount, 0)) %}\n          {{ og_text(og_get(v_labels, ['free'])) }}\n        {%- else %}\n          {{ og_text(og_money(v_amount, og_get(v_plan, ['currency']))) }}\n        {%- endif %}\n      {%- endset -%}\n      {{ include('compose/Title.html.twig', {'as': 2, 'size': '4xl', 'weight': 'bold', 'children': c_6}, with_context = false) }}\n      {%- if og_t(og_gt(v_amount, 0)) %}\n        {%- set c_7 -%}\n          {{ og_text((og_t(v_yearlyOn) ? og_get(v_labels, ['perYear']) : og_get(v_labels, ['perMonth']))) }}\n        {%- endset -%}\n        {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_7}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Group.html.twig', {'gap': '2', 'align': 'baseline', 'children': c_8}, with_context = false) }}\n    {%- set c_9 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['seats']), [og_get(v_plan, ['seats'])])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'medium', 'children': c_9}, with_context = false) }}\n    {%- set c_10 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['storage']), [og_get(v_plan, ['storage'])])) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_10}, with_context = false) }}\n    {%- set c_12 -%}\n      {%- for v_feature in og_l(og_get(v_plan, ['features'])) %}\n        {%- set c_11 -%}\n          {{ og_text(v_feature) }}\n        {%- endset -%}\n        {{ include('compose/ListItem.html.twig', {'class': 'flex gap-2', 'attrs': og_attrs(['data-slot', 'features-row']), 'children': c_11}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/List.html.twig', {'tag': 'ul', 'class': 'flex flex-col gap-2 text-sm', 'children': c_12}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/CardContent.html.twig', {'class': og_s(og_cnv(['flex flex-1 flex-col', (og_t(og_eq(v_density, 'compact')) ? 'gap-2' : 'gap-4')])), 'children': c_13}, with_context = false) }}\n  {%- set c_15 -%}\n    {%- set c_14 -%}\n      {{ og_text(og_get(v_labels, ['cta'])) }}\n    {%- endset -%}\n    {{ include('compose/Button.html.twig', {'variant': og_s((og_t(v_stand) ? 'default' : 'outline')), 'size': 'default', 'children': c_14}, with_context = false) }}\n    {%- if (p.footer ?? null) is not null %}\n      {{ include(p.footer.t, p.footer.v|merge({'a0': v_plan}), with_context = false) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ include('compose/CardFooter.html.twig', {'class': 'flex flex-wrap items-center gap-2', 'children': c_15}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'article', 'class': og_s(og_cnv(['flex flex-col gap-8 bg-card p-6 text-card-foreground inset-ring inset-ring-border rounded', 'flex h-full flex-col'])), 'attrs': og_attrs(['data-slot', 'card', 'data-highlighted', (og_t(v_stand) ? 'true' : 'false'), 'data-current', (og_t(v_current) ? 'true' : 'false')]), 'children': c_16}, with_context = false) }}\n",
      "path": "blocks/pricing-card.html.twig",
      "target": "blocks/pricing-card.html.twig"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "pricing-card",
  "registryDependencies": [
    "badge",
    "block",
    "box",
    "button",
    "card-content",
    "card-description",
    "card-footer",
    "card-header",
    "card-title",
    "group",
    "list",
    "list-item",
    "text",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "Pricing Card",
  "type": "registry:block"
}
