{
  "$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 = og_def(p['plan'], none) -%}\n{%- set v_labels = og_def(p['labels'], none) -%}\n{%- set v_current = og_def(p['current'], none) -%}\n{%- set v_emphasis = og_def(p['emphasis'], 'auto') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_billing = og_def(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_get(v_plan, ['yearly']) if og_t(v_yearlyOn) else 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        {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'default', 'Size': 'default'}, 'children': c_1}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/box.html.j2', {'p': {'Class': 'flex min-h-6 items-center', 'Attrs': og_attrs(['data-slot', 'badge-slot'])}, 'children': c_2}) }}\n    {%- set c_3 -%}\n      {{ og_text(og_get(v_plan, ['name'])) }}\n    {%- endset -%}\n    {{ og_include('compose/card-title.html.j2', {'p': {'As': 3}, 'children': c_3}) }}\n    {%- set c_4 -%}\n      {{ og_text(og_get(v_plan, ['tagline'])) }}\n    {%- endset -%}\n    {{ og_include('compose/card-description.html.j2', {'p': {}, 'children': c_4}) }}\n  {%- endset -%}\n  {{ og_include('compose/card-header.html.j2', {'p': {'Class': 'flex flex-col gap-2'}, 'children': c_5}) }}\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      {{ og_include('compose/title.html.j2', {'p': {'As': 2, 'Size': '4xl', 'Weight': 'bold'}, 'children': c_6}) }}\n      {%- if og_t(og_gt(v_amount, 0)) %}\n        {%- set c_7 -%}\n          {{ og_text((og_get(v_labels, ['perYear']) if og_t(v_yearlyOn) else og_get(v_labels, ['perMonth']))) }}\n        {%- endset -%}\n        {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_7}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/group.html.j2', {'p': {'Gap': '2', 'Align': 'baseline'}, 'children': c_8}) }}\n    {%- set c_9 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['seats']), [og_get(v_plan, ['seats'])])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'medium'}, 'children': c_9}) }}\n    {%- set c_10 -%}\n      {{ og_text(og_tpl(og_get(v_labels, ['storage']), [og_get(v_plan, ['storage'])])) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Class': 'text-muted-foreground'}, 'children': c_10}) }}\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        {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex gap-2', 'Attrs': og_attrs(['data-slot', 'features-row'])}, 'children': c_11}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/list.html.j2', {'p': {'Tag': 'ul', 'Class': 'flex flex-col gap-2 text-sm'}, 'children': c_12}) }}\n  {%- endset -%}\n  {{ og_include('compose/card-content.html.j2', {'p': {'Class': og_s(og_cnv(['flex flex-1 flex-col', ('gap-2' if og_t(og_eq(v_density, 'compact')) else 'gap-4')]))}, 'children': c_13}) }}\n  {%- set c_15 -%}\n    {%- set c_14 -%}\n      {{ og_text(og_get(v_labels, ['cta'])) }}\n    {%- endset -%}\n    {{ og_include('compose/button.html.j2', {'p': {'Variant': og_s(('default' if og_t(v_stand) else 'outline')), 'Size': 'default'}, 'children': c_14}) }}\n    {%- if og_def(p['footer'], none) is not none %}\n      {{ og_include(p['footer']['t'], og_merge(p['footer']['v'], {'a0': v_plan})) }}\n    {%- endif %}\n  {%- endset -%}\n  {{ og_include('compose/card-footer.html.j2', {'p': {'Class': 'flex flex-wrap items-center gap-2'}, 'children': c_15}) }}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'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', ('true' if og_t(v_stand) else 'false'), 'data-current', ('true' if og_t(v_current) else 'false')])}, 'children': c_16}) }}\n",
      "path": "blocks/pricing-card.html.j2",
      "target": "blocks/pricing-card.html.j2"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "jinja2",
      "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": "jinja2",
  "title": "Pricing Card",
  "type": "registry:block"
}
