{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "Orders per day as bars or meters.",
  "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/chart-panel.json\n    A panel with a chart of one series: vertical bars with captions, or meter rows with a percent. Axes: chart (bars, meters), size (default, compact), tone (default, muted).\n    Props (p): id, title, text, series, empty, summary, percent, chart, size, tone, landmarkLabel. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_text = (p.text ?? null) -%}\n{%- set v_series = (p.series ?? null) -%}\n{%- set v_empty = (p.empty ?? '') -%}\n{%- set v_summary = (p.summary ?? null) -%}\n{%- set v_percent = (p.percent ?? null) -%}\n{%- set v_chart = (p.chart ?? 'bars') -%}\n{%- set v_size = (p.size ?? 'default') -%}\n{%- set v_tone = (p.tone ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_4 -%}\n  {%- set c_3 -%}\n    {%- set c_2 -%}\n      {%- if og_t(og_eq(og_len(v_series), 0)) %}\n        {{ include('blocks/empty-state.html.twig', {'p': {'icon': 'chart-column', 'title': v_empty}}, with_context = false) }}\n      {%- elseif og_t(og_eq(v_chart, 'bars')) %}\n        {{ include('blocks/bar-chart.html.twig', {'p': {'bars': v_series, 'label': v_summary, 'height': (og_t(og_eq(v_size, 'compact')) ? 96 : 176)}}, with_context = false) }}\n      {%- else %}\n        {%- set c_1 -%}\n          {%- for v_s in og_l(v_series) %}\n            {{ include('blocks/meter-row.html.twig', {'p': {'label': og_get(v_s, ['label']), 'value': og_get(v_s, ['value']), 'caption': og_tpl(v_percent, [og_get(v_s, ['value'])])}}, with_context = false) }}\n          {%- endfor %}\n        {%- endset -%}\n        {{ include('compose/Stack.html.twig', {'gap': og_s((og_t(og_eq(v_size, 'compact')) ? '0' : '2')), 'align': 'stretch', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_1}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('blocks/panel.html.twig', {'p': {'title': v_title, 'description': v_text, 'id': v_id, 'className': og_cnv([(og_t(og_eq(v_tone, 'muted')) ? 'bg-muted' : '')])}, 'children': og_markup(c_2)}, with_context = false) }}\n  {%- endset -%}\n  {{ include('compose/Container.html.twig', {'class': 'mx-auto w-full max-w-6xl px-4 py-8', 'attrs': og_attrs(['data-slot', 'container']), 'children': c_3}, with_context = false) }}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'section', 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : (og_t(og_and([v_title, v_id])) ? og_tpl('{0}-t', [v_id]) : null)), 'aria-label', v_landmarkLabel, 'data-slot', 'panel-section']), 'children': c_4}, with_context = false) }}\n",
      "path": "blocks/chart-panel.html.twig",
      "target": "blocks/chart-panel.html.twig"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "widgets",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "chart-panel",
  "registryDependencies": [
    "bar-chart",
    "block",
    "container",
    "empty-state",
    "meter-row",
    "panel",
    "stack",
    "utils"
  ],
  "runtime": "twig",
  "title": "Chart Panel",
  "type": "registry:block"
}
