{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The rating summary of QuoteSplit: the average in large type, the stars, the number of reviews and two figures.",
  "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/quote-rating-panel.json\n    The rating summary of QuoteSplit: the average in large type, the stars, the number of reviews and two figures.\n    Props (p): extras, labels. -#}\n{%- set v_extras = (p.extras ?? null) -%}\n{%- set v_labels = (p.labels ?? null) -%}\n{%- set c_7 -%}\n  {%- set c_1 -%}\n    {{ og_text(og_get(v_extras, ['score'])) }}\n  {%- endset -%}\n  {{ include('compose/Text.html.twig', {'size': '5xl', 'weight': 'bold', 'children': c_1}, with_context = false) }}\n  {{ include('blocks/rating.html.twig', {'p': {'value': og_get(v_extras, ['rating']), 'label': og_tpl(og_get(v_labels, ['rating']), [og_get(v_extras, ['rating'])]), 'size': 20}}, with_context = false) }}\n  {%- set c_2 -%}\n    {{ og_text(og_get(v_extras, ['reviews'])) }}\n  {%- endset -%}\n  {{ include('compose/Text.html.twig', {'size': 'sm', 'class': 'text-muted-foreground', 'children': c_2}, with_context = false) }}\n  {%- set c_6 -%}\n    {%- for v_s in og_l(og_get(v_extras, ['stats'])) %}\n      {%- set v_i = loop.index0 -%}\n      {%- if og_t(og_lt(v_i, 2)) %}\n        {%- set c_5 -%}\n          {%- set c_3 -%}\n            {{ og_text(og_get(v_s, ['value'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': '2xl', 'weight': 'semibold', 'children': c_3}, with_context = false) }}\n          {%- set c_4 -%}\n            {{ og_text(og_get(v_s, ['label'])) }}\n          {%- endset -%}\n          {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_4}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': '0', 'align': 'center', 'attrs': og_attrs(['data-slot', 'quote-stat']), 'children': c_5}, with_context = false) }}\n      {%- endif %}\n    {%- endfor %}\n  {%- endset -%}\n  {{ include('compose/Box.html.twig', {'class': 'grid w-full grid-cols-2 gap-4 border-t border-border pt-6', 'children': c_6}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'center', 'class': 'rounded bg-card inset-ring inset-ring-border p-8 text-center', 'attrs': og_attrs(['data-slot', 'quote-rating']), 'children': c_7}, with_context = false) }}\n",
      "path": "blocks/quote-rating-panel.html.twig",
      "target": "blocks/quote-rating-panel.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "quote-rating-panel",
  "registryDependencies": [
    "box",
    "rating",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "Quote Rating Panel",
  "type": "registry:component"
}
