{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The main column of AppShell: the heading, the metric tiles, and the chart panel (beside the activity panel when `activity` is given).",
  "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/app-main.json\n    The main column of AppShell: the heading, the metric tiles, and the chart panel (beside the activity panel when `activity` is given).\n    Props (p): id, title, metrics, chart, activity, cols, density. -#}\n{%- set v_id = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_metrics = (p.metrics ?? null) -%}\n{%- set v_chart = (p.chart ?? null) -%}\n{%- set v_activity = (p.activity ?? null) -%}\n{%- set v_cols = (p.cols ?? '1-2') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set c_8 -%}\n  {%- set c_1 -%}\n    {{ og_text(v_title) }}\n  {%- endset -%}\n  {{ include('compose/Title.html.twig', {'as': 2, 'size': '2xl', 'weight': 'bold', 'attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])]), 'children': c_1}, with_context = false) }}\n  {%- if og_t(og_gt(og_len(v_metrics), 0)) %}\n    {%- set c_3 -%}\n      {%- for v_m in og_l(v_metrics) %}\n        {%- set c_2 -%}\n          {{ include('blocks/stat-tile.html.twig', {'p': {'label': og_get(v_m, ['label']), 'value': og_get(v_m, ['value']), 'icon': og_get(v_m, ['icon']), 'hint': og_get(v_m, ['hint'])}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Box.html.twig', {'attrs': og_attrs(['data-slot', 'item']), 'children': c_2}, with_context = false) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': og_s(v_cols), 'class': 'gap-4', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_3}, with_context = false) }}\n  {%- endif %}\n  {%- if og_t(v_activity) %}\n    {%- set c_6 -%}\n      {%- if og_t(og_gt(og_len(og_get(v_chart, ['series'])), 0)) %}\n        {%- set c_4 -%}\n          {{ include('blocks/bar-chart.html.twig', {'p': {'bars': og_get(v_chart, ['series']), 'label': og_get(v_chart, ['summary']), 'height': 144}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/panel.html.twig', {'p': {'title': og_get(v_chart, ['title']), 'description': og_get(v_chart, ['text']), 'id': og_tpl('{0}-chart', [v_id]), 'className': og_cnv(['h-full'])}, 'children': og_markup(c_4)}, with_context = false) }}\n      {%- endif %}\n      {%- if og_t(og_gt(og_len(og_get(v_activity, ['events'])), 0)) %}\n        {%- set c_5 -%}\n          {{ include('blocks/timeline.html.twig', {'p': {'items': og_get(v_activity, ['events'])}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('blocks/panel.html.twig', {'p': {'title': og_get(v_activity, ['title']), 'description': og_get(v_activity, ['text']), 'id': og_tpl('{0}-feed', [v_id]), 'className': og_cnv(['h-full'])}, 'children': og_markup(c_5)}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Grid.html.twig', {'cols': '1-2', 'class': 'items-stretch gap-4', 'children': c_6}, with_context = false) }}\n  {%- elseif og_t(og_gt(og_len(og_get(v_chart, ['series'])), 0)) %}\n    {%- set c_7 -%}\n      {{ include('blocks/bar-chart.html.twig', {'p': {'bars': og_get(v_chart, ['series']), 'label': og_get(v_chart, ['summary']), 'height': 144}}, with_context = false) }}\n    {%- endset -%}\n    {{ include('blocks/panel.html.twig', {'p': {'title': og_get(v_chart, ['title']), 'description': og_get(v_chart, ['text']), 'id': og_tpl('{0}-chart', [v_id]), 'className': og_cnv(['h-full'])}, 'children': og_markup(c_7)}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Stack.html.twig', {'gap': og_s((og_t(og_eq(v_density, 'compact')) ? '4' : '6')), 'align': 'stretch', 'class': 'min-w-0', 'attrs': og_attrs(['data-slot', 'app-main']), 'children': c_8}, with_context = false) }}\n",
      "path": "blocks/app-main.html.twig",
      "target": "blocks/app-main.html.twig"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "twig",
      "component"
    ]
  },
  "name": "app-main",
  "registryDependencies": [
    "bar-chart",
    "box",
    "grid",
    "panel",
    "stack",
    "stat-tile",
    "timeline",
    "title",
    "utils"
  ],
  "runtime": "twig",
  "title": "App Main",
  "type": "registry:component"
}
