{
  "$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{var $v_plan = ($p['plan'] ?? null)}\n{var $v_labels = ($p['labels'] ?? null)}\n{var $v_current = ($p['current'] ?? null)}\n{var $v_emphasis = ($p['emphasis'] ?? 'auto')}\n{var $v_density = ($p['density'] ?? 'default')}\n{var $v_billing = ($p['billing'] ?? 'monthly')}\n{var $v_stand = og_and([og_get($v_plan, ['highlighted']), og_eq($v_emphasis, 'auto')])}\n{var $v_yearlyOn = og_and([og_eq($v_billing, 'annual'), og_gt(og_get($v_plan, ['yearly']), 0)])}\n{var $v_amount = (og_t($v_yearlyOn) ? og_get($v_plan, ['yearly']) : og_get($v_plan, ['price']))}\n{capture $c_16}\n  {capture $c_5}\n    {capture $c_2}\n      {if og_t($v_stand)}\n        {capture $c_1}\n          {=og_text(og_get($v_labels, ['popular']))}\n        {/capture}\n        {=og_include('compose/Badge.latte', ['variant' => 'default', 'size' => 'default', 'children' => (string) $c_1])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Box.latte', ['class' => 'flex min-h-6 items-center', 'attrs' => og_attrs(['data-slot', 'badge-slot']), 'children' => (string) $c_2])|noescape}\n    {capture $c_3}\n      {=og_text(og_get($v_plan, ['name']))}\n    {/capture}\n    {=og_include('compose/CardTitle.latte', ['as' => 3, 'children' => (string) $c_3])|noescape}\n    {capture $c_4}\n      {=og_text(og_get($v_plan, ['tagline']))}\n    {/capture}\n    {=og_include('compose/CardDescription.latte', ['children' => (string) $c_4])|noescape}\n  {/capture}\n  {=og_include('compose/CardHeader.latte', ['class' => 'flex flex-col gap-2', 'children' => (string) $c_5])|noescape}\n  {capture $c_13}\n    {capture $c_8}\n      {capture $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        {/if}\n      {/capture}\n      {=og_include('compose/Title.latte', ['as' => 2, 'size' => '4xl', 'weight' => 'bold', 'children' => (string) $c_6])|noescape}\n      {if og_t(og_gt($v_amount, 0))}\n        {capture $c_7}\n          {=og_text((og_t($v_yearlyOn) ? og_get($v_labels, ['perYear']) : og_get($v_labels, ['perMonth'])))}\n        {/capture}\n        {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_7])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Group.latte', ['gap' => '2', 'align' => 'baseline', 'children' => (string) $c_8])|noescape}\n    {capture $c_9}\n      {=og_text(og_tpl(og_get($v_labels, ['seats']), [og_get($v_plan, ['seats'])]))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'sm', 'weight' => 'medium', 'children' => (string) $c_9])|noescape}\n    {capture $c_10}\n      {=og_text(og_tpl(og_get($v_labels, ['storage']), [og_get($v_plan, ['storage'])]))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['size' => 'sm', 'class' => 'text-muted-foreground', 'children' => (string) $c_10])|noescape}\n    {capture $c_12}\n      {foreach og_l(og_get($v_plan, ['features'])) as $v_feature}\n        {capture $c_11}\n          {=og_text($v_feature)}\n        {/capture}\n        {=og_include('compose/ListItem.latte', ['class' => 'flex gap-2', 'attrs' => og_attrs(['data-slot', 'features-row']), 'children' => (string) $c_11])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/List.latte', ['tag' => 'ul', 'class' => 'flex flex-col gap-2 text-sm', 'children' => (string) $c_12])|noescape}\n  {/capture}\n  {=og_include('compose/CardContent.latte', ['class' => og_s(og_cnv(['flex flex-1 flex-col', (og_t(og_eq($v_density, 'compact')) ? 'gap-2' : 'gap-4')])), 'children' => (string) $c_13])|noescape}\n  {capture $c_15}\n    {capture $c_14}\n      {=og_text(og_get($v_labels, ['cta']))}\n    {/capture}\n    {=og_include('compose/Button.latte', ['variant' => og_s((og_t($v_stand) ? 'default' : 'outline')), 'size' => 'default', 'children' => (string) $c_14])|noescape}\n    {if (($p['footer'] ?? null) !== null)}\n      {=og_include($p['footer']['t'], array_merge($p['footer']['v'], ['a0' => $v_plan]))|noescape}\n    {/if}\n  {/capture}\n  {=og_include('compose/CardFooter.latte', ['class' => 'flex flex-wrap items-center gap-2', 'children' => (string) $c_15])|noescape}\n{/capture}\n{=og_include('compose/Block.latte', ['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' => (string) $c_16])|noescape}\n",
      "path": "blocks/pricing-card.latte",
      "target": "blocks/pricing-card.latte"
    }
  ],
  "meta": {
    "category": "marketing",
    "group": "pricing",
    "kind": "block",
    "tags": [
      "latte",
      "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": "latte",
  "title": "Pricing Card",
  "type": "registry:block"
}
