{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "template-access-operations",
  "type": "registry:block",
  "title": "Reception and access template",
  "description": "A reception workspace for fictional Cedar Lodge: daily arrival and access counts, a sortable arrivals table, and selected access details with validity, permissions and local history.",
  "dependencies": [],
  "registryDependencies": [
    "https://ui.klarhimmel.com/r/app-shell-sidebar.json",
    "https://ui.klarhimmel.com/r/app-operations-summary.json",
    "https://ui.klarhimmel.com/r/app-data-table.json",
    "https://ui.klarhimmel.com/r/app-access-detail.json",
    "https://ui.klarhimmel.com/r/theme.json"
  ],
  "files": [
    {
      "path": "templates/access-operations.tsx",
      "type": "registry:file",
      "target": "components/klarhimmel/templates/access-operations.tsx",
      "content": "// Reception and access template (Klarhimmel UI). Each section is a block, its copy is the block's props. Change the\n// copy here; colours, fonts and radius come from the Style. Blocks validate their props and fall back field by field.\n//\n// Wire before shipping:\n//  - Data: every count, arrival and access code is fictional. The host loads records, checks authorization and supplies validity; blocks do not create or revoke access.\n//  - Selection: wire table selection to the detail record in your app. The demo shows one fixed example and does not claim a live selection relationship.\n//  - Privacy: do not put real guest details or active access codes in public pages.\n//  - Shell: app blocks start at h2. Add one page h1 in your host application.\n\nimport { Theme, type Style } from '../theme/style';\nimport { BlockSurface } from '../blocks/surface';\nimport AppShellSidebar, { spec as AppShellSidebarSpec } from '../blocks/app-shell-sidebar';\nimport AppOperationsSummary, { spec as AppOperationsSummarySpec } from '../blocks/app-operations-summary';\nimport AppDataTable, { spec as AppDataTableSpec } from '../blocks/app-data-table';\nimport AppAccessDetail, { spec as AppAccessDetailSpec } from '../blocks/app-access-detail';\n\nconst style: Style = {\n  \"preset\": \"Klarhimmel\",\n  \"mode\": \"light\",\n  \"colors\": {\n    \"canvas\": \"#faf9f7\",\n    \"surface\": \"#ffffff\",\n    \"ink\": \"#17171a\",\n    \"muted\": \"#6b6b75\",\n    \"line\": \"#e8e6e1\",\n    \"accent\": \"#1c6ee0\",\n    \"accentFg\": \"#ffffff\"\n  },\n  \"altColors\": {\n    \"canvas\": \"#0b0b0d\",\n    \"surface\": \"#1a1a1f\",\n    \"ink\": \"#f2f1ee\",\n    \"muted\": \"#8f8f9a\",\n    \"line\": \"#383842\",\n    \"accent\": \"#5b9bf5\",\n    \"accentFg\": \"#0b1a2c\"\n  },\n  \"fonts\": {\n    \"display\": \"Geist\",\n    \"sans\": \"Geist\",\n    \"mono\": \"Geist Mono\"\n  },\n  \"radius\": 8,\n  \"size\": 16\n};\n\nexport default function AccessOperationsTemplate() {\n  return (\n    <Theme theme=\"brand\" style={style} mode=\"system\">\n      <div className=\"@container\">\n        <div className=\"grid @4xl:grid-cols-[18rem_1fr]\">\n          <aside aria-label=\"App navigation\" className=\"border-b border-kh-line bg-kh-surface-2 @4xl:border-b-0 @4xl:border-r\">\n      <BlockSurface id=\"sidebar\">\n        <AppShellSidebar\n          props={{\n            ...AppShellSidebarSpec.defaults,\n            ...{\n              \"brand\": \"Cedar Lodge\",\n              \"navLabel\": \"Main navigation\",\n              \"groups\": [\n                {\n                  \"label\": \"Reception\",\n                  \"collapsible\": false,\n                  \"open\": true,\n                  \"items\": [\n                    {\n                      \"label\": \"Today\",\n                      \"icon\": \"gauge\",\n                      \"href\": \"#overview\"\n                    },\n                    {\n                      \"label\": \"Arrivals\",\n                      \"icon\": \"book\",\n                      \"href\": \"#arrivals\"\n                    },\n                    {\n                      \"label\": \"Access details\",\n                      \"icon\": \"lock\",\n                      \"href\": \"#detail\"\n                    }\n                  ]\n                }\n              ],\n              \"active\": \"Today\",\n              \"collapsed\": false,\n              \"toggle\": {\n                \"collapse\": \"Collapse sidebar\",\n                \"expand\": \"Expand sidebar\"\n              }\n            },\n          } as typeof AppShellSidebarSpec.defaults}\n        />\n      </BlockSurface>\n          </aside>\n          <main className=\"min-w-0\">\n      <BlockSurface id=\"overview\">\n        <AppOperationsSummary\n          props={{\n            ...AppOperationsSummarySpec.defaults,\n            ...{\n              \"eyebrow\": \"Today\",\n              \"title\": \"Arrivals and access\",\n              \"description\": \"A daily overview for the reception team.\",\n              \"items\": [\n                {\n                  \"label\": \"Arriving\",\n                  \"value\": \"8\"\n                },\n                {\n                  \"label\": \"Access ready\",\n                  \"value\": \"7\"\n                },\n                {\n                  \"label\": \"Needs attention\",\n                  \"value\": \"1\"\n                },\n                {\n                  \"label\": \"Departing\",\n                  \"value\": \"4\"\n                }\n              ],\n              \"attention\": \"One arrival has no active code. Check the booking before creating access.\",\n              \"source\": \"Local reception copy\",\n              \"sourceNote\": \"Last synchronized at 08:40. Changes made elsewhere may not appear here yet.\"\n            },\n          } as typeof AppOperationsSummarySpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"arrivals\">\n        <AppDataTable\n          props={{\n            ...AppDataTableSpec.defaults,\n            ...{\n              \"eyebrow\": \"Reception\",\n              \"title\": \"Today’s arrivals\",\n              \"description\": \"Demo arrivals for Cedar Lodge. Select a record in your application to load its authorized access details.\",\n              \"caption\": \"Demo arrivals\",\n              \"columns\": [\n                {\n                  \"label\": \"Room\",\n                  \"align\": \"left\",\n                  \"sortable\": true,\n                  \"kind\": \"text\"\n                },\n                {\n                  \"label\": \"Arrival\",\n                  \"align\": \"left\",\n                  \"sortable\": true,\n                  \"kind\": \"date\"\n                },\n                {\n                  \"label\": \"Access\",\n                  \"align\": \"left\",\n                  \"sortable\": true,\n                  \"kind\": \"text\"\n                }\n              ],\n              \"rows\": [\n                {\n                  \"cells\": [\n                    \"Garden suite\",\n                    \"12 Oct 2026\",\n                    \"Ready\"\n                  ]\n                },\n                {\n                  \"cells\": [\n                    \"Courtyard room\",\n                    \"12 Oct 2026\",\n                    \"Needs attention\"\n                  ]\n                },\n                {\n                  \"cells\": [\n                    \"Loft\",\n                    \"12 Oct 2026\",\n                    \"Ready\"\n                  ]\n                }\n              ],\n              \"selectable\": false\n            },\n          } as typeof AppDataTableSpec.defaults}\n        />\n      </BlockSurface>\n      <BlockSurface id=\"detail\" tone=\"muted\">\n        <AppAccessDetail\n          props={{\n            ...AppAccessDetailSpec.defaults,\n            ...{\n              \"eyebrow\": \"Selected access\",\n              \"title\": \"Garden suite\",\n              \"description\": \"The access details for this room. Confirm the validity before sharing the code.\",\n              \"code\": \"DEMO-4821\",\n              \"copyLabel\": \"Copy demo access code\",\n              \"validity\": \"Valid 12–15 October, until 12:00\",\n              \"note\": \"Example only. The host supplies active codes and validity; this block does not create access.\",\n              \"permissionsTitle\": \"Opens\",\n              \"permissions\": [\n                \"Main entrance\",\n                \"Garden corridor\",\n                \"Garden suite\"\n              ],\n              \"unknownPermissions\": \"Permissions could not be read. Do not assume access is available.\",\n              \"emptyPermissions\": \"This code opens no doors.\",\n              \"historyTitle\": \"Recorded history\",\n              \"history\": [\n                {\n                  \"time\": \"12 Oct · 08:42\",\n                  \"event\": \"Demo access created by Reception\"\n                },\n                {\n                  \"time\": \"12 Oct · 08:43\",\n                  \"event\": \"Demo access copied for handover\"\n                }\n              ],\n              \"emptyHistory\": \"No events recorded by this system.\",\n              \"source\": \"Reception journal\",\n              \"sourceNote\": \"Only events recorded here are shown. This is not the complete lock-system history.\",\n              \"action\": {\n                \"label\": \"Review access settings\",\n                \"href\": \"https://example.com/access\"\n              }\n            },\n          } as typeof AppAccessDetailSpec.defaults}\n        />\n      </BlockSurface>\n          </main>\n        </div>\n      </div>\n    </Theme>\n  );\n}\n"
    }
  ]
}
