{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The price line of a product page: the price (integer minor units in the currency), the old price (compare_at) struck through when higher, and the badge.",
  "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/product-price.json\n    The price line of a product page: the price (integer minor units in the currency), the old price (compare_at) struck through when higher, and the badge.\n    Props (p): price, compareAt, currency, badge, was. *}\n{var $v_price = ($p['price'] ?? null)}\n{var $v_compareAt = ($p['compareAt'] ?? null)}\n{var $v_currency = ($p['currency'] ?? null)}\n{var $v_badge = ($p['badge'] ?? '')}\n{var $v_was = ($p['was'] ?? null)}\n{capture $c_5}\n  {capture $c_1}\n    {=og_text(og_money($v_price, $v_currency))}\n  {/capture}\n  {=og_include('compose/Text.latte', ['size' => '4xl', 'weight' => 'bold', 'children' => (string) $c_1])|noescape}\n  {if og_t(og_and([$v_compareAt, og_gt($v_compareAt, $v_price)]))}\n    {capture $c_3}\n      {capture $c_2}\n        {=og_text($v_was)}\n      {/capture}\n      {=og_include('compose/Inline.latte', ['class' => 'sr-only', 'children' => (string) $c_2])|noescape}\n      {=og_text(og_money($v_compareAt, $v_currency))}\n    {/capture}\n    {=og_include('compose/Text.latte', ['tag' => 'del', 'size' => 'lg', 'class' => 'relative text-muted-foreground', 'attrs' => og_attrs(['data-slot', 'compare-at']), 'children' => (string) $c_3])|noescape}\n  {/if}\n  {if og_t($v_badge)}\n    {capture $c_4}\n      {=og_text($v_badge)}\n    {/capture}\n    {=og_include('compose/Badge.latte', ['variant' => 'default', 'size' => 'default', 'children' => (string) $c_4])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Group.latte', ['gap' => '4', 'align' => 'center', 'class' => 'flex-wrap', 'attrs' => og_attrs(['data-slot', 'product-price']), 'children' => (string) $c_5])|noescape}\n",
      "path": "blocks/product-price.latte",
      "target": "blocks/product-price.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "product-price",
  "registryDependencies": [
    "badge",
    "group",
    "inline",
    "text",
    "utils"
  ],
  "runtime": "latte",
  "title": "Product Price",
  "type": "registry:component"
}
