{
  "$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{var $v_id = ($p['id'] ?? null)}\n{var $v_title = ($p['title'] ?? null)}\n{var $v_metrics = ($p['metrics'] ?? null)}\n{var $v_chart = ($p['chart'] ?? null)}\n{var $v_activity = ($p['activity'] ?? null)}\n{var $v_cols = ($p['cols'] ?? '1-2')}\n{var $v_density = ($p['density'] ?? 'default')}\n{capture $c_8}\n  {capture $c_1}\n    {=og_text($v_title)}\n  {/capture}\n  {=og_include('compose/Title.latte', ['as' => 2, 'size' => '2xl', 'weight' => 'bold', 'attrs' => og_attrs(['id', og_tpl('{0}-title', [$v_id])]), 'children' => (string) $c_1])|noescape}\n  {if og_t(og_gt(og_len($v_metrics), 0))}\n    {capture $c_3}\n      {foreach og_l($v_metrics) as $v_m}\n        {capture $c_2}\n          {=og_include('blocks/stat-tile.latte', ['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'])]])|noescape}\n        {/capture}\n        {=og_include('compose/Box.latte', ['attrs' => og_attrs(['data-slot', 'item']), 'children' => (string) $c_2])|noescape}\n      {/foreach}\n    {/capture}\n    {=og_include('compose/Grid.latte', ['cols' => og_s($v_cols), 'class' => 'gap-4', 'attrs' => og_attrs(['data-slot', 'items']), 'children' => (string) $c_3])|noescape}\n  {/if}\n  {if og_t($v_activity)}\n    {capture $c_6}\n      {if og_t(og_gt(og_len(og_get($v_chart, ['series'])), 0))}\n        {capture $c_4}\n          {=og_include('blocks/bar-chart.latte', ['p' => ['bars' => og_get($v_chart, ['series']), 'label' => og_get($v_chart, ['summary']), 'height' => 144]])|noescape}\n        {/capture}\n        {=og_include('blocks/panel.latte', ['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)])|noescape}\n      {/if}\n      {if og_t(og_gt(og_len(og_get($v_activity, ['events'])), 0))}\n        {capture $c_5}\n          {=og_include('blocks/timeline.latte', ['p' => ['items' => og_get($v_activity, ['events'])]])|noescape}\n        {/capture}\n        {=og_include('blocks/panel.latte', ['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)])|noescape}\n      {/if}\n    {/capture}\n    {=og_include('compose/Grid.latte', ['cols' => '1-2', 'class' => 'items-stretch gap-4', 'children' => (string) $c_6])|noescape}\n  {elseif og_t(og_gt(og_len(og_get($v_chart, ['series'])), 0))}\n    {capture $c_7}\n      {=og_include('blocks/bar-chart.latte', ['p' => ['bars' => og_get($v_chart, ['series']), 'label' => og_get($v_chart, ['summary']), 'height' => 144]])|noescape}\n    {/capture}\n    {=og_include('blocks/panel.latte', ['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)])|noescape}\n  {/if}\n{/capture}\n{=og_include('compose/Stack.latte', ['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' => (string) $c_8])|noescape}\n",
      "path": "blocks/app-main.latte",
      "target": "blocks/app-main.latte"
    }
  ],
  "meta": {
    "category": "components",
    "kind": "component",
    "tags": [
      "latte",
      "component"
    ]
  },
  "name": "app-main",
  "registryDependencies": [
    "bar-chart",
    "box",
    "grid",
    "panel",
    "stack",
    "stat-tile",
    "timeline",
    "title",
    "utils"
  ],
  "runtime": "latte",
  "title": "App Main",
  "type": "registry:component"
}
