{
  "$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 = (p.id ?? null) -%}\n{%- set v_title = (p.title ?? null) -%}\n{%- set v_nav = (p.nav ?? null) -%}\n{%- set v_user = (p.user ?? null) -%}\n{%- set v_search = (p.search ?? 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_layout = (p.layout ?? 'sidebar') -%}\n{%- set v_density = (p.density ?? 'default') -%}\n{%- set v_landmarkLabel = (p.landmarkLabel ?? null) -%}\n{%- set c_11 -%}\n  {%- if og_t(og_eq(v_layout, 'top')) %}\n    {%- set c_2 -%}\n      {{ include('blocks/nav-bar.html.twig', {'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}}, with_context = false) }}\n      {%- set c_1 -%}\n        {{ include('blocks/app-main.html.twig', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'cols': '1-4', 'activity': v_activity, 'density': v_density}}, with_context = false) }}\n      {%- endset -%}\n      {{ include('compose/Container.html.twig', {'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}, with_context = false) }}\n    {%- endset -%}\n    {{ include('compose/Stack.html.twig', {'gap': '6', 'align': 'stretch', 'children': c_2}, with_context = false) }}\n  {%- else %}\n    {%- set c_10 -%}\n      {%- if og_t(og_eq(v_layout, 'sidebar')) %}\n        {%- set c_3 -%}\n          {{ include('blocks/sidebar-nav.html.twig', {'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}}, with_context = false) }}\n          {{ include('blocks/app-main.html.twig', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'activity': v_activity, 'density': v_density}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '1', 'class': 'items-start gap-6 md:grid-cols-[16rem_minmax(0,1fr)]', 'children': c_3}, with_context = false) }}\n      {%- else %}\n        {%- set c_9 -%}\n          {{ include('blocks/sidebar-nav.html.twig', {'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}}, with_context = false) }}\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                    {{ include('compose/Text.html.twig', {'size': 'sm', 'weight': 'semibold', 'children': c_4}, with_context = false) }}\n                    {%- set c_5 -%}\n                      {{ og_text(og_get(v_e, ['time'])) }}\n                    {%- endset -%}\n                    {{ include('compose/Text.html.twig', {'size': 'xs', 'class': 'text-muted-foreground', 'children': c_5}, with_context = false) }}\n                  {%- endset -%}\n                  {{ include('compose/ListItem.html.twig', {'class': 'flex flex-col gap-2', 'attrs': og_attrs(['data-slot', 'item']), 'children': c_6}, with_context = false) }}\n                {%- endfor %}\n              {%- endset -%}\n              {{ include('compose/List.html.twig', {'class': 'm-0 flex list-none flex-col gap-4 p-0', 'attrs': og_attrs(['data-slot', 'items']), 'children': c_7}, 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}-list', [v_id])}, 'children': og_markup(c_8)}, with_context = false) }}\n          {%- endif %}\n          {{ include('blocks/app-main.html.twig', {'p': {'id': v_id, 'title': v_title, 'metrics': v_metrics, 'chart': v_chart, 'density': 'compact'}}, with_context = false) }}\n        {%- endset -%}\n        {{ include('compose/Grid.html.twig', {'cols': '1-3', 'class': 'items-start gap-4', 'children': c_9}, with_context = false) }}\n      {%- endif %}\n    {%- endset -%}\n    {{ include('compose/Container.html.twig', {'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}, with_context = false) }}\n  {%- endif %}\n{%- endset -%}\n{{ include('compose/Block.html.twig', {'tag': 'section', 'class': 'bg-background', 'attrs': og_attrs(['aria-labelledby', (og_t(v_landmarkLabel) ? null : og_tpl('{0}-title', [v_id])), 'data-layout', v_layout, 'aria-label', v_landmarkLabel, 'data-slot', 'app-shell']), 'children': c_11}, with_context = false) }}\n",
      "path": "blocks/app-shell.html.twig",
      "target": "blocks/app-shell.html.twig"
    }
  ],
  "meta": {
    "category": "dashboard",
    "group": "layout",
    "kind": "block",
    "tags": [
      "twig",
      "block"
    ]
  },
  "name": "app-shell",
  "registryDependencies": [
    "app-main",
    "block",
    "container",
    "grid",
    "list",
    "list-item",
    "nav-bar",
    "panel",
    "sidebar-nav",
    "stack",
    "text",
    "utils"
  ],
  "runtime": "twig",
  "title": "App Shell",
  "type": "registry:block"
}
