{
  "$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 = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_metrics = og_def(p['metrics'], none) -%}\n{%- set v_chart = og_def(p['chart'], none) -%}\n{%- set v_activity = og_def(p['activity'], none) -%}\n{%- set v_cols = og_def(p['cols'], '1-2') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set c_8 -%}\n  {%- set c_1 -%}\n    {{ og_text(v_title) }}\n  {%- endset -%}\n  {{ og_include('compose/title.html.j2', {'p': {'As': 2, 'Size': '2xl', 'Weight': 'bold', 'Attrs': og_attrs(['id', og_tpl('{0}-title', [v_id])])}, 'children': c_1}) }}\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          {{ og_include('blocks/stat-tile.html.j2', {'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'])}}) }}\n        {%- endset -%}\n        {{ og_include('compose/box.html.j2', {'p': {'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_2}) }}\n      {%- endfor %}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': og_s(v_cols), 'Class': 'gap-4', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_3}) }}\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          {{ og_include('blocks/bar-chart.html.j2', {'p': {'bars': og_get(v_chart, ['series']), 'label': og_get(v_chart, ['summary']), 'height': 144}}) }}\n        {%- endset -%}\n        {{ og_include('blocks/panel.html.j2', {'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)}) }}\n      {%- endif %}\n      {%- if og_t(og_gt(og_len(og_get(v_activity, ['events'])), 0)) %}\n        {%- set c_5 -%}\n          {{ og_include('blocks/timeline.html.j2', {'p': {'items': og_get(v_activity, ['events'])}}) }}\n        {%- endset -%}\n        {{ og_include('blocks/panel.html.j2', {'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)}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-2', 'Class': 'items-stretch gap-4'}, 'children': c_6}) }}\n  {%- elif og_t(og_gt(og_len(og_get(v_chart, ['series'])), 0)) %}\n    {%- set c_7 -%}\n      {{ og_include('blocks/bar-chart.html.j2', {'p': {'bars': og_get(v_chart, ['series']), 'label': og_get(v_chart, ['summary']), 'height': 144}}) }}\n    {%- endset -%}\n    {{ og_include('blocks/panel.html.j2', {'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)}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/stack.html.j2', {'p': {'Gap': og_s(('4' if og_t(og_eq(v_density, 'compact')) else '6')), 'Align': 'stretch', 'Class': 'min-w-0', 'Attrs': og_attrs(['data-slot', 'app-main'])}, 'children': c_8}) }}\n",
      "path": "blocks/app-main.html.j2",
      "target": "blocks/app-main.html.j2"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "jinja2",
      "component"
    ]
  },
  "name": "app-main",
  "registryDependencies": [
    "bar-chart",
    "box",
    "grid",
    "panel",
    "stack",
    "stat-tile",
    "timeline",
    "title",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "App Main",
  "type": "registry:component"
}
