{
  "$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 = (p.price ?? null) -%}\n{%- set v_compareAt = (p.compareAt ?? null) -%}\n{%- set v_currency = (p.currency ?? null) -%}\n{%- set v_badge = (p.badge ?? '') -%}\n{%- set v_was = (p.was ?? null) -%}\n{%- set c_5 -%}\n  {%- set c_1 -%}\n    {{ og_text(og_money(v_price, v_currency)) }}\n  {%- endset -%}\n  {{ include('compose/Text.html.twig', {'size': '4xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}\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      {{ include('compose/Inline.html.twig', {'class': 'sr-only', 'children': c_2}, with_context = false) }}\n      {{ og_text(og_money(v_compareAt, v_currency)) }}\n    {%- endset -%}\n    {{ include('compose/Text.html.twig', {'tag': 'del', 'size': 'lg', 'class': 'relative text-muted-foreground', 'attrs': og_attrs(['data-slot', 'compare-at']), 'children': c_3}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(v_badge) %}\n    {%- set c_4 -%}\n      {{ og_text(v_badge) }}\n    {%- endset -%}\n    {{ include('compose/Badge.html.twig', {'variant': 'default', 'size': 'default', 'children': c_4}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Group.html.twig', {'gap': '4', 'align': 'center', 'class': 'flex-wrap', 'attrs': og_attrs(['data-slot', 'product-price']), 'children': c_5}, with_context = false) }}\n",
      "path": "blocks/product-price.html.twig",
      "target": "blocks/product-price.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "product-price",
  "registryDependencies": [
    "badge",
    "group",
    "inline",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Product Price",
  "type": "registry:component"
}
