{
  "$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{%- set v_price = og_def(p['price'], none) -%}\n{%- set v_compareAt = og_def(p['compareAt'], none) -%}\n{%- set v_currency = og_def(p['currency'], none) -%}\n{%- set v_badge = og_def(p['badge'], '') -%}\n{%- set v_was = og_def(p['was'], none) -%}\n{%- set c_5 -%}\n  {%- set c_1 -%}\n    {{ og_text(og_money(v_price, v_currency)) }}\n  {%- endset -%}\n  {{ og_include('compose/text.html.j2', {'p': {'Size': '4xl', 'Weight': 'bold'}, 'children': c_1}) }}\n  {%- if og_t(og_and([v_compareAt, og_gt(v_compareAt, v_price)])) %}\n    {%- set c_3 -%}\n      {%- set c_2 -%}\n        {{ og_text(v_was) }}\n      {%- endset -%}\n      {{ og_include('compose/inline.html.j2', {'p': {'Class': 'sr-only'}, 'children': c_2}) }}\n      {{ og_text(og_money(v_compareAt, v_currency)) }}\n    {%- endset -%}\n    {{ og_include('compose/text.html.j2', {'p': {'Tag': 'del', 'Size': 'lg', 'Class': 'relative text-muted-foreground', 'Attrs': og_attrs(['data-slot', 'compare-at'])}, 'children': c_3}) }}\n  {%- endif %}\n  {%- if og_t(v_badge) %}\n    {%- set c_4 -%}\n      {{ og_text(v_badge) }}\n    {%- endset -%}\n    {{ og_include('compose/badge.html.j2', {'p': {'Variant': 'default', 'Size': 'default'}, 'children': c_4}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/group.html.j2', {'p': {'Gap': '4', 'Align': 'center', 'Class': 'flex-wrap', 'Attrs': og_attrs(['data-slot', 'product-price'])}, 'children': c_5}) }}\n",
      "path": "blocks/product-price.html.j2",
      "target": "blocks/product-price.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "product-price",
  "registryDependencies": [
    "badge",
    "group",
    "inline",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "Product Price",
  "type": "registry:component"
}
