{
  "$schema": "https://registry.buildy.tw/schema/registry-item.json",
  "dependencies": [],
  "description": "The frame of a signed-in app with a first screen: a sidebar, a top bar, or three panes.",
  "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-shell.json\n    The frame of a signed-in app with a first screen in it. Axes: layout (sidebar: navigation on the left, top: a bar above the content, panes: a narrow navigation, a list and a detail), density. The collapse of the sidebar is a port contract.\n    Props (p): id, title, nav, user, search, metrics, chart, activity, layout, density, landmarkLabel. -#}\n{%- set v_id = og_def(p['id'], none) -%}\n{%- set v_title = og_def(p['title'], none) -%}\n{%- set v_nav = og_def(p['nav'], none) -%}\n{%- set v_user = og_def(p['user'], none) -%}\n{%- set v_search = og_def(p['search'], 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_layout = og_def(p['layout'], 'sidebar') -%}\n{%- set v_density = og_def(p['density'], 'default') -%}\n{%- set v_landmarkLabel = og_def(p['landmarkLabel'], none) -%}\n{%- set c_11 -%}\n  {%- if og_t(og_eq(v_layout, 'top')) %}\n    {%- set c_2 -%}\n      {{ og_include('blocks/nav-bar.html.j2', {'p': {'label': og_get(v_nav, ['label']), 'brand': og_get(v_nav, ['brand']), 'links': og_get(v_nav, ['links']), 'current': og_get(v_nav, ['current']), 'search': v_search, 'actions': {'mode': 'none'}, 'layout': 'search', 'landmarkLabel': v_landmarkLabel}}) }}\n      {%- set c_1 -%}\n        {{ og_include('blocks/app-main.html.j2', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'cols': '1-4', 'activity': v_activity, 'density': v_density}}) }}\n      {%- endset -%}\n      {{ og_include('compose/container.html.j2', {'p': {'Class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'pb-8'])), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_1}) }}\n    {%- endset -%}\n    {{ og_include('compose/stack.html.j2', {'p': {'Gap': '6', 'Align': 'stretch'}, 'children': c_2}) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- if og_t(og_eq(v_layout, 'sidebar')) %}\n        {%- set c_3 -%}\n          {{ og_include('blocks/sidebar-nav.html.j2', {'p': {'label': og_get(v_nav, ['label']), 'brand': og_get(v_nav, ['brand']), 'links': og_get(v_nav, ['links']), 'current': og_get(v_nav, ['current']), 'userName': og_get(v_user, ['name']), 'userEmail': og_get(v_user, ['email']), 'density': v_density, 'landmarkLabel': v_landmarkLabel}}) }}\n          {{ og_include('blocks/app-main.html.j2', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'activity': v_activity, 'density': v_density}}) }}\n        {%- endset -%}\n        {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1', 'Class': 'items-start gap-6 md:grid-cols-[16rem_minmax(0,1fr)]'}, 'children': c_3}) }}\n      {%- else %}\n        {%- set c_9 -%}\n          {{ og_include('blocks/sidebar-nav.html.j2', {'p': {'label': og_get(v_nav, ['label']), 'brand': og_get(v_nav, ['brand']), 'links': og_get(v_nav, ['links']), 'current': og_get(v_nav, ['current']), 'userName': og_get(v_user, ['name']), 'userEmail': og_get(v_user, ['email']), 'width': 'compact', 'density': v_density, 'landmarkLabel': v_landmarkLabel}}) }}\n          {%- if og_t(og_gt(og_len(og_get(v_activity, ['events'])), 0)) %}\n            {%- set c_8 -%}\n              {%- set c_7 -%}\n                {%- for v_e in og_l(og_get(v_activity, ['events'])) %}\n                  {%- set c_6 -%}\n                    {%- set c_4 -%}\n                      {{ og_text(og_get(v_e, ['title'])) }}\n                    {%- endset -%}\n                    {{ og_include('compose/text.html.j2', {'p': {'Size': 'sm', 'Weight': 'semibold'}, 'children': c_4}) }}\n                    {%- set c_5 -%}\n                      {{ og_text(og_get(v_e, ['time'])) }}\n                    {%- endset -%}\n                    {{ og_include('compose/text.html.j2', {'p': {'Size': 'xs', 'Class': 'text-muted-foreground'}, 'children': c_5}) }}\n                  {%- endset -%}\n                  {{ og_include('compose/list-item.html.j2', {'p': {'Class': 'flex flex-col gap-2', 'Attrs': og_attrs(['data-slot', 'item'])}, 'children': c_6}) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ og_include('compose/list.html.j2', {'p': {'Class': 'm-0 flex list-none flex-col gap-4 p-0', 'Attrs': og_attrs(['data-slot', 'items'])}, 'children': c_7}) }}\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}-list', [v_id])}, 'children': og_markup(c_8)}) }}\n          {%- endif %}\n          {{ og_include('blocks/app-main.html.j2', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'density': 'compact'}}) }}\n        {%- endset -%}\n        {{ og_include('compose/grid.html.j2', {'p': {'Cols': '1-3', 'Class': 'items-start gap-4'}, 'children': c_9}) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ og_include('compose/container.html.j2', {'p': {'Class': og_s(og_cnv(['mx-auto w-full max-w-6xl px-4', 'py-8'])), 'Attrs': og_attrs(['data-slot', 'container'])}, 'children': c_10}) }}\n  {%- endif %}\n{%- endset -%}\n{{ og_include('compose/block.html.j2', {'p': {'Tag': 'section', 'Class': 'bg-background', 'Attrs': og_attrs(['aria-labelledby', (none if og_t(v_landmarkLabel) else og_tpl('{0}-title', [v_id])), 'data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'app-shell'])}, 'children': c_11}) }}\n",
      "path": "blocks/app-shell.html.j2",
      "target": "blocks/app-shell.html.j2"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "jinja2",
      "block"
    ]
  },
  "name": "app-shell",
  "registryDependencies": [
    "app-main",
    "block",
    "container",
    "grid",
    "list",
    "list-item",
    "nav-bar",
    "panel",
    "sidebar-nav",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "jinja2",
  "title": "App Shell",
  "type": "registry:block"
}
