@sentropic/h2a 0.85.25 → 0.87.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/dist/bin.js +51 -2
- package/dist/bin.js.map +1 -1
- package/dist/cli-command-map.d.ts +119 -0
- package/dist/cli-command-map.d.ts.map +1 -0
- package/dist/cli-command-map.js +396 -0
- package/dist/cli-command-map.js.map +1 -0
- package/dist/cli-contract.d.ts.map +1 -1
- package/dist/cli-contract.js +39 -1
- package/dist/cli-contract.js.map +1 -1
- package/dist/cli.d.ts +25 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +356 -7
- package/dist/cli.js.map +1 -1
- package/dist/identity.d.ts +37 -3
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +0 -0
- package/dist/identity.js.map +1 -1
- package/dist/index.d.ts +7 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/runtime/enrollment/ceremony.d.ts +542 -0
- package/dist/runtime/enrollment/ceremony.d.ts.map +1 -0
- package/dist/runtime/enrollment/ceremony.js +777 -0
- package/dist/runtime/enrollment/ceremony.js.map +1 -0
- package/dist/runtime/enrollment/index.d.ts +16 -0
- package/dist/runtime/enrollment/index.d.ts.map +1 -0
- package/dist/runtime/enrollment/index.js +16 -0
- package/dist/runtime/enrollment/index.js.map +1 -0
- package/dist/runtime/feed/descriptors.d.ts +261 -0
- package/dist/runtime/feed/descriptors.d.ts.map +1 -0
- package/dist/runtime/feed/descriptors.js +425 -0
- package/dist/runtime/feed/descriptors.js.map +1 -0
- package/dist/runtime/feed/index.d.ts +12 -0
- package/dist/runtime/feed/index.d.ts.map +1 -0
- package/dist/runtime/feed/index.js +12 -0
- package/dist/runtime/feed/index.js.map +1 -0
- package/dist/runtime/identity/index.d.ts +3 -3
- package/dist/runtime/identity/index.d.ts.map +1 -1
- package/dist/runtime/identity/index.js +2 -2
- package/dist/runtime/identity/index.js.map +1 -1
- package/dist/runtime/identity/live.d.ts +68 -0
- package/dist/runtime/identity/live.d.ts.map +1 -1
- package/dist/runtime/identity/live.js +78 -2
- package/dist/runtime/identity/live.js.map +1 -1
- package/dist/runtime/identity/readers.d.ts +89 -5
- package/dist/runtime/identity/readers.d.ts.map +1 -1
- package/dist/runtime/identity/readers.js +242 -33
- package/dist/runtime/identity/readers.js.map +1 -1
- package/dist/runtime/local-files/presence.d.ts +16 -1
- package/dist/runtime/local-files/presence.d.ts.map +1 -1
- package/dist/runtime/local-files/presence.js +32 -20
- package/dist/runtime/local-files/presence.js.map +1 -1
- package/dist/runtime/loop/index.d.ts +5 -0
- package/dist/runtime/loop/index.d.ts.map +1 -1
- package/dist/runtime/loop/index.js +48 -5
- package/dist/runtime/loop/index.js.map +1 -1
- package/dist/runtime/mcp/agent-launch.d.ts +15 -1
- package/dist/runtime/mcp/agent-launch.d.ts.map +1 -1
- package/dist/runtime/mcp/agent-launch.js +45 -4
- package/dist/runtime/mcp/agent-launch.js.map +1 -1
- package/dist/runtime/mcp/index.d.ts +1 -1
- package/dist/runtime/mcp/index.d.ts.map +1 -1
- package/dist/runtime/mcp/index.js +1 -1
- package/dist/runtime/mcp/index.js.map +1 -1
- package/dist/runtime/mcp/server.d.ts +3 -1
- package/dist/runtime/mcp/server.d.ts.map +1 -1
- package/dist/runtime/mcp/server.js +7 -2
- package/dist/runtime/mcp/server.js.map +1 -1
- package/dist/runtime/mcp/sessions.d.ts +19 -0
- package/dist/runtime/mcp/sessions.d.ts.map +1 -1
- package/dist/runtime/mcp/sessions.js +44 -2
- package/dist/runtime/mcp/sessions.js.map +1 -1
- package/dist/runtime/mcp/stdio.d.ts +8 -0
- package/dist/runtime/mcp/stdio.d.ts.map +1 -1
- package/dist/runtime/mcp/stdio.js +42 -0
- package/dist/runtime/mcp/stdio.js.map +1 -1
- package/dist/runtime/mcp-registry/broker.d.ts +175 -0
- package/dist/runtime/mcp-registry/broker.d.ts.map +1 -0
- package/dist/runtime/mcp-registry/broker.js +203 -0
- package/dist/runtime/mcp-registry/broker.js.map +1 -0
- package/dist/runtime/mcp-registry/broker.typecheck.d.ts +2 -0
- package/dist/runtime/mcp-registry/broker.typecheck.d.ts.map +1 -0
- package/dist/runtime/mcp-registry/broker.typecheck.js +48 -0
- package/dist/runtime/mcp-registry/broker.typecheck.js.map +1 -0
- package/dist/runtime/mirror/accept.d.ts +43 -5
- package/dist/runtime/mirror/accept.d.ts.map +1 -1
- package/dist/runtime/mirror/accept.js +55 -7
- package/dist/runtime/mirror/accept.js.map +1 -1
- package/dist/runtime/mirror/build.d.ts +23 -4
- package/dist/runtime/mirror/build.d.ts.map +1 -1
- package/dist/runtime/mirror/build.js +34 -4
- package/dist/runtime/mirror/build.js.map +1 -1
- package/dist/runtime/mirror/index.d.ts +3 -0
- package/dist/runtime/mirror/index.d.ts.map +1 -1
- package/dist/runtime/mirror/index.js +3 -0
- package/dist/runtime/mirror/index.js.map +1 -1
- package/dist/runtime/mirror/ingest.d.ts +109 -0
- package/dist/runtime/mirror/ingest.d.ts.map +1 -0
- package/dist/runtime/mirror/ingest.js +117 -0
- package/dist/runtime/mirror/ingest.js.map +1 -0
- package/dist/runtime/mirror/push-daemon.d.ts +376 -0
- package/dist/runtime/mirror/push-daemon.d.ts.map +1 -0
- package/dist/runtime/mirror/push-daemon.js +644 -0
- package/dist/runtime/mirror/push-daemon.js.map +1 -0
- package/dist/runtime/mirror/sanitize.d.ts +477 -0
- package/dist/runtime/mirror/sanitize.d.ts.map +1 -0
- package/dist/runtime/mirror/sanitize.js +625 -0
- package/dist/runtime/mirror/sanitize.js.map +1 -0
- package/dist/runtime/mirror/serve.d.ts.map +1 -1
- package/dist/runtime/mirror/serve.js +104 -24
- package/dist/runtime/mirror/serve.js.map +1 -1
- package/dist/runtime/reporting/report-ai.d.ts.map +1 -1
- package/dist/runtime/reporting/report-ai.js +1 -0
- package/dist/runtime/reporting/report-ai.js.map +1 -1
- package/dist/runtime/reporting/stdin.d.ts +2 -0
- package/dist/runtime/reporting/stdin.d.ts.map +1 -0
- package/dist/runtime/reporting/stdin.js +8 -0
- package/dist/runtime/reporting/stdin.js.map +1 -0
- package/dist/status-surface.d.ts +167 -0
- package/dist/status-surface.d.ts.map +1 -0
- package/dist/status-surface.js +670 -0
- package/dist/status-surface.js.map +1 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -1
- package/dist/vendor/harness/skills/manifest.d.ts.map +1 -1
- package/dist/vendor/harness/skills/manifest.js +2 -0
- package/dist/vendor/harness/skills/manifest.js.map +1 -1
- package/focus-app/client/_app/immutable/assets/{0.BdzHFb9q.css → 0.CgEVz9YW.css} +1 -1
- package/focus-app/client/_app/immutable/assets/0.CgEVz9YW.css.br +0 -0
- package/focus-app/client/_app/immutable/assets/0.CgEVz9YW.css.gz +0 -0
- package/focus-app/client/_app/immutable/assets/2.DaTmt6o7.css +1 -0
- package/focus-app/client/_app/immutable/assets/2.DaTmt6o7.css.br +0 -0
- package/focus-app/client/_app/immutable/assets/2.DaTmt6o7.css.gz +0 -0
- package/focus-app/client/_app/immutable/assets/3.vWQUAHjz.css +1 -0
- package/focus-app/client/_app/immutable/assets/3.vWQUAHjz.css.br +0 -0
- package/focus-app/client/_app/immutable/assets/3.vWQUAHjz.css.gz +0 -0
- package/focus-app/client/_app/immutable/assets/AppShell.CDPwj3zU.css +1 -0
- package/focus-app/client/_app/immutable/assets/AppShell.CDPwj3zU.css.br +0 -0
- package/focus-app/client/_app/immutable/assets/AppShell.CDPwj3zU.css.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/{Cj6wo28J.js → 1NK_OeRJ.js} +1 -1
- package/focus-app/client/_app/immutable/chunks/1NK_OeRJ.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/1NK_OeRJ.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/{Bs3f1UbD.js → B1veta3r.js} +2 -2
- package/focus-app/client/_app/immutable/chunks/B1veta3r.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/B1veta3r.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/{DEmooz0s.js → BZ4lcC0v.js} +1 -1
- package/focus-app/client/_app/immutable/chunks/BZ4lcC0v.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/BZ4lcC0v.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/Bu7F9NOv.js +2 -0
- package/focus-app/client/_app/immutable/chunks/Bu7F9NOv.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/Bu7F9NOv.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/C6KhNEX3.js +1 -0
- package/focus-app/client/_app/immutable/chunks/C6KhNEX3.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/C6KhNEX3.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/DIljKPJN.js +1 -0
- package/focus-app/client/_app/immutable/chunks/DIljKPJN.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/DIljKPJN.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/iXQate3J.js +2 -0
- package/focus-app/client/_app/immutable/chunks/iXQate3J.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/iXQate3J.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/{ZxFklh9T.js → kCE9wz0g.js} +1 -1
- package/focus-app/client/_app/immutable/chunks/kCE9wz0g.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/kCE9wz0g.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/x-hq5fDG.js +1 -0
- package/focus-app/client/_app/immutable/chunks/x-hq5fDG.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/x-hq5fDG.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/app.C1sDdCg5.js +2 -0
- package/focus-app/client/_app/immutable/entry/app.C1sDdCg5.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.C1sDdCg5.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.X3j_A5RN.js +1 -0
- package/focus-app/client/_app/immutable/entry/start.X3j_A5RN.js.br +2 -0
- package/focus-app/client/_app/immutable/entry/start.X3j_A5RN.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/0.gLl44WzG.js +5 -0
- package/focus-app/client/_app/immutable/nodes/0.gLl44WzG.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/0.gLl44WzG.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/1.DUrghq2x.js +1 -0
- package/focus-app/client/_app/immutable/nodes/1.DUrghq2x.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/1.DUrghq2x.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/2.Bp7JE7Pz.js +1 -0
- package/focus-app/client/_app/immutable/nodes/2.Bp7JE7Pz.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/2.Bp7JE7Pz.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/3.Cml8enOG.js +12 -0
- package/focus-app/client/_app/immutable/nodes/3.Cml8enOG.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/3.Cml8enOG.js.gz +0 -0
- package/focus-app/client/_app/version.json +1 -1
- package/focus-app/client/_app/version.json.br +0 -0
- package/focus-app/client/_app/version.json.gz +0 -0
- package/focus-app/h2a-focus.json +108 -80
- package/focus-app/handler.js +7 -7
- package/focus-app/index.js +7 -7
- package/focus-app/server/chunks/chunks/AppShell.js-6Pi87dO0.js +1353 -0
- package/focus-app/server/chunks/chunks/AppShell.js-6Pi87dO0.js.map +1 -0
- package/focus-app/server/chunks/chunks/agent-memory-dossier.js-nmFG_rgx.js +1036 -0
- package/focus-app/server/chunks/chunks/agent-memory-dossier.js-nmFG_rgx.js.map +1 -0
- package/focus-app/server/chunks/chunks/{exports.js-DUTkELZq.js → exports.js-CdqPbjm1.js} +3 -3
- package/focus-app/server/chunks/chunks/{exports.js-DUTkELZq.js.map → exports.js-CdqPbjm1.js.map} +1 -1
- package/focus-app/server/chunks/chunks/h2a-bus.js-bLEJ_Adi.js +233 -0
- package/focus-app/server/chunks/chunks/h2a-bus.js-bLEJ_Adi.js.map +1 -0
- package/focus-app/server/chunks/chunks/{index.js-Di21TltP.js → index.js-laGHLarB.js} +5 -2
- package/focus-app/server/chunks/chunks/index.js-laGHLarB.js.map +1 -0
- package/focus-app/server/chunks/chunks/{internal.js-33vbd70h.js → internal.js-C6T8nHkl.js} +4 -4
- package/focus-app/server/chunks/chunks/{internal.js-33vbd70h.js.map → internal.js-C6T8nHkl.js.map} +1 -1
- package/focus-app/server/chunks/chunks/{root.js-DO1m-gJA.js → root.js-CtVQOgDw.js} +2 -2
- package/focus-app/server/chunks/chunks/{root.js-DO1m-gJA.js.map → root.js-CtVQOgDw.js.map} +1 -1
- package/focus-app/server/chunks/entries/endpoints/api/decisions/inject/{_server.ts.js-j0NNcOSZ.js → _server.ts.js-hrbMnsV0.js} +13 -42
- package/focus-app/server/chunks/entries/endpoints/api/decisions/inject/_server.ts.js-hrbMnsV0.js.map +1 -0
- package/focus-app/server/chunks/entries/endpoints/api/dossiers/agent-memory/include/_server.ts.js-Dw4odGdV.js +138 -0
- package/focus-app/server/chunks/entries/endpoints/api/dossiers/agent-memory/include/_server.ts.js-Dw4odGdV.js.map +1 -0
- package/focus-app/server/chunks/entries/endpoints/api/h2a/targets/_server.ts.js-BLjYv7vg.js +41 -0
- package/focus-app/server/chunks/entries/endpoints/api/h2a/targets/_server.ts.js-BLjYv7vg.js.map +1 -0
- package/focus-app/server/chunks/entries/fallbacks/{error.svelte.js-Dj3sETSX.js → error.svelte.js-RbeaNF5a.js} +4 -4
- package/focus-app/server/chunks/entries/fallbacks/{error.svelte.js-Dj3sETSX.js.map → error.svelte.js-RbeaNF5a.js.map} +1 -1
- package/focus-app/server/chunks/entries/pages/{_layout.svelte.js-BoLsbuC2.js → _layout.svelte.js-e1E_I04z.js} +2 -2
- package/focus-app/server/chunks/entries/pages/{_layout.svelte.js-BoLsbuC2.js.map → _layout.svelte.js-e1E_I04z.js.map} +1 -1
- package/focus-app/server/chunks/entries/pages/{_page.svelte.js-QDldMYhk.js → _page.svelte.js-DbaEG23x.js} +31 -1373
- package/focus-app/server/chunks/entries/pages/_page.svelte.js-DbaEG23x.js.map +1 -0
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/_page.server.ts.js-CFC-wn6U.js +88 -0
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/_page.server.ts.js-CFC-wn6U.js.map +1 -0
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/_page.svelte.js-BpR26NMa.js +1574 -0
- package/focus-app/server/chunks/entries/pages/dossier/agent-memory/_page.svelte.js-BpR26NMa.js.map +1 -0
- package/focus-app/server/chunks/{handler-Cp_5hLyY.js → handler-Be3dyNi0.js} +3 -3
- package/focus-app/server/chunks/{handler-Cp_5hLyY.js.map → handler-Be3dyNi0.js.map} +1 -1
- package/focus-app/server/chunks/{index.js-CBh7Wjqp.js → index.js-siUxMMnK.js} +3 -3
- package/focus-app/server/chunks/{index.js-CBh7Wjqp.js.map → index.js-siUxMMnK.js.map} +1 -1
- package/focus-app/server/chunks/manifest.js-CXJqSHHn.js +78 -0
- package/focus-app/server/chunks/manifest.js-CXJqSHHn.js.map +1 -0
- package/focus-app/server/chunks/nodes/0.js-leU6sfRR.js +9 -0
- package/focus-app/server/chunks/nodes/{0.js-4wlmdsk8.js.map → 0.js-leU6sfRR.js.map} +1 -1
- package/focus-app/server/chunks/nodes/1.js-os6QXm6B.js +9 -0
- package/focus-app/server/chunks/nodes/{1.js-B-LpY-lC.js.map → 1.js-os6QXm6B.js.map} +1 -1
- package/focus-app/server/chunks/nodes/2.js-DAaLjh93.js +19 -0
- package/focus-app/server/chunks/nodes/2.js-DAaLjh93.js.map +1 -0
- package/focus-app/server/chunks/nodes/3.js-Cmgi6Uy0.js +18 -0
- package/focus-app/server/chunks/nodes/3.js-Cmgi6Uy0.js.map +1 -0
- package/package.json +5 -5
- package/skills/h2a-run/SKILL.md +100 -0
- package/skills/harness/SKILL.md +3 -1
- package/skills/harness/review/SKILL.md +99 -8
- package/skills/harness/security/SKILL.md +55 -0
- package/skills/harness/track-report/SKILL.md +103 -0
- package/skills/harness/using-harness/SKILL.md +3 -1
- package/focus-app/client/_app/immutable/assets/0.BdzHFb9q.css.br +0 -2
- package/focus-app/client/_app/immutable/assets/0.BdzHFb9q.css.gz +0 -0
- package/focus-app/client/_app/immutable/assets/2.Ddxq02y4.css +0 -1
- package/focus-app/client/_app/immutable/assets/2.Ddxq02y4.css.br +0 -0
- package/focus-app/client/_app/immutable/assets/2.Ddxq02y4.css.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/Bs3f1UbD.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/Bs3f1UbD.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/Bv8OL8ib.js +0 -1
- package/focus-app/client/_app/immutable/chunks/Bv8OL8ib.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/Bv8OL8ib.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/CVq_IFFr.js +0 -2
- package/focus-app/client/_app/immutable/chunks/CVq_IFFr.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/CVq_IFFr.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/Cj6wo28J.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/Cj6wo28J.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/DEmooz0s.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/DEmooz0s.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/DQIRXgdC.js +0 -2
- package/focus-app/client/_app/immutable/chunks/DQIRXgdC.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/DQIRXgdC.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/ZxFklh9T.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/ZxFklh9T.js.gz +0 -0
- package/focus-app/client/_app/immutable/chunks/_wRuVGPs.js +0 -1
- package/focus-app/client/_app/immutable/chunks/_wRuVGPs.js.br +0 -0
- package/focus-app/client/_app/immutable/chunks/_wRuVGPs.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/app.6DKouWRt.js +0 -2
- package/focus-app/client/_app/immutable/entry/app.6DKouWRt.js.br +0 -0
- package/focus-app/client/_app/immutable/entry/app.6DKouWRt.js.gz +0 -0
- package/focus-app/client/_app/immutable/entry/start.DlLmkUb7.js +0 -1
- package/focus-app/client/_app/immutable/entry/start.DlLmkUb7.js.br +0 -2
- package/focus-app/client/_app/immutable/entry/start.DlLmkUb7.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/0.CuSOF0Of.js +0 -5
- package/focus-app/client/_app/immutable/nodes/0.CuSOF0Of.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/0.CuSOF0Of.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/1.D39jdnqm.js +0 -1
- package/focus-app/client/_app/immutable/nodes/1.D39jdnqm.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/1.D39jdnqm.js.gz +0 -0
- package/focus-app/client/_app/immutable/nodes/2.CnU8ifRl.js +0 -1
- package/focus-app/client/_app/immutable/nodes/2.CnU8ifRl.js.br +0 -0
- package/focus-app/client/_app/immutable/nodes/2.CnU8ifRl.js.gz +0 -0
- package/focus-app/server/chunks/chunks/index.js-Di21TltP.js.map +0 -1
- package/focus-app/server/chunks/entries/endpoints/api/decisions/inject/_server.ts.js-j0NNcOSZ.js.map +0 -1
- package/focus-app/server/chunks/entries/pages/_page.svelte.js-QDldMYhk.js.map +0 -1
- package/focus-app/server/chunks/manifest.js-Cm6cC7mC.js +0 -56
- package/focus-app/server/chunks/manifest.js-Cm6cC7mC.js.map +0 -1
- package/focus-app/server/chunks/nodes/0.js-4wlmdsk8.js +0 -9
- package/focus-app/server/chunks/nodes/1.js-B-LpY-lC.js +0 -9
- package/focus-app/server/chunks/nodes/2.js-F6jp5eD9.js +0 -19
- package/focus-app/server/chunks/nodes/2.js-F6jp5eD9.js.map +0 -1
|
@@ -1,182 +1,9 @@
|
|
|
1
|
-
import { a6 as attr_class, a7 as clsx, a3 as attr, Z as derived,
|
|
1
|
+
import { a2 as head, a6 as attr_class, a7 as clsx, a3 as attr, a4 as escape_html, Z as derived, ad as run, ab as spread_props, a9 as ensure_array_like, aa as bind_props, a8 as attributes, ae as attr_style, af as props_id } from '../../chunks/index.js-laGHLarB.js';
|
|
2
|
+
import { A as AppShell, C as Container, I as Icon, a as Alert, F as Flex, b as Card, B as Button, c as Badge } from '../../chunks/AppShell.js-6Pi87dO0.js';
|
|
2
3
|
import '../../chunks/utils.js-C_3_iViC.js';
|
|
3
4
|
import '../../chunks/utils2.js-BQzn9ikS.js';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
7
|
-
width: 24,
|
|
8
|
-
height: 24,
|
|
9
|
-
viewBox: "0 0 24 24",
|
|
10
|
-
fill: "none",
|
|
11
|
-
stroke: "currentColor",
|
|
12
|
-
"stroke-width": 2,
|
|
13
|
-
"stroke-linecap": "round",
|
|
14
|
-
"stroke-linejoin": "round"
|
|
15
|
-
};
|
|
16
|
-
function Icon($$renderer, $$props) {
|
|
17
|
-
$$renderer.component(($$renderer2) => {
|
|
18
|
-
const {
|
|
19
|
-
name,
|
|
20
|
-
color = "currentColor",
|
|
21
|
-
size = 24,
|
|
22
|
-
strokeWidth = 2,
|
|
23
|
-
absoluteStrokeWidth = false,
|
|
24
|
-
iconNode = [],
|
|
25
|
-
children,
|
|
26
|
-
$$slots,
|
|
27
|
-
$$events,
|
|
28
|
-
...props
|
|
29
|
-
} = $$props;
|
|
30
|
-
$$renderer2.push(`<svg${attributes(
|
|
31
|
-
{
|
|
32
|
-
...defaultAttributes,
|
|
33
|
-
...props,
|
|
34
|
-
width: size,
|
|
35
|
-
height: size,
|
|
36
|
-
stroke: color,
|
|
37
|
-
"stroke-width": absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth,
|
|
38
|
-
class: clsx(["lucide-icon lucide", name && `lucide-${name}`, props.class])
|
|
39
|
-
},
|
|
40
|
-
void 0,
|
|
41
|
-
void 0,
|
|
42
|
-
void 0,
|
|
43
|
-
3
|
|
44
|
-
)}><!--[-->`);
|
|
45
|
-
const each_array = ensure_array_like(iconNode);
|
|
46
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
47
|
-
let [tag, attrs] = each_array[$$index];
|
|
48
|
-
element($$renderer2, tag, () => {
|
|
49
|
-
$$renderer2.push(`${attributes({ ...attrs }, void 0, void 0, void 0, 3)}`);
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
$$renderer2.push(`<!--]-->`);
|
|
53
|
-
children?.($$renderer2);
|
|
54
|
-
$$renderer2.push(`<!----></svg>`);
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function Boxes($$renderer, $$props) {
|
|
58
|
-
$$renderer.component(($$renderer2) => {
|
|
59
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
60
|
-
const iconNode = [
|
|
61
|
-
[
|
|
62
|
-
"path",
|
|
63
|
-
{
|
|
64
|
-
"d": "M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z"
|
|
65
|
-
}
|
|
66
|
-
],
|
|
67
|
-
["path", { "d": "m7 16.5-4.74-2.85" }],
|
|
68
|
-
["path", { "d": "m7 16.5 5-3" }],
|
|
69
|
-
["path", { "d": "M7 16.5v5.17" }],
|
|
70
|
-
[
|
|
71
|
-
"path",
|
|
72
|
-
{
|
|
73
|
-
"d": "M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z"
|
|
74
|
-
}
|
|
75
|
-
],
|
|
76
|
-
["path", { "d": "m17 16.5-5-3" }],
|
|
77
|
-
["path", { "d": "m17 16.5 4.74-2.85" }],
|
|
78
|
-
["path", { "d": "M17 16.5v5.17" }],
|
|
79
|
-
[
|
|
80
|
-
"path",
|
|
81
|
-
{
|
|
82
|
-
"d": "M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z"
|
|
83
|
-
}
|
|
84
|
-
],
|
|
85
|
-
["path", { "d": "M12 8 7.26 5.15" }],
|
|
86
|
-
["path", { "d": "m12 8 4.74-2.85" }],
|
|
87
|
-
["path", { "d": "M12 13.5V8" }]
|
|
88
|
-
];
|
|
89
|
-
Icon($$renderer2, spread_props([
|
|
90
|
-
{ name: "boxes" },
|
|
91
|
-
/**
|
|
92
|
-
* @component @name Boxes
|
|
93
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
94
|
-
*
|
|
95
|
-
* @preview  - https://lucide.dev/icons/boxes
|
|
96
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
97
|
-
*
|
|
98
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
99
|
-
* @returns {FunctionalComponent} Svelte component
|
|
100
|
-
*
|
|
101
|
-
*/
|
|
102
|
-
props,
|
|
103
|
-
{
|
|
104
|
-
iconNode,
|
|
105
|
-
children: ($$renderer3) => {
|
|
106
|
-
props.children?.($$renderer3);
|
|
107
|
-
$$renderer3.push(`<!---->`);
|
|
108
|
-
},
|
|
109
|
-
$$slots: { default: true }
|
|
110
|
-
}
|
|
111
|
-
]));
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function Chevron_down($$renderer, $$props) {
|
|
115
|
-
$$renderer.component(($$renderer2) => {
|
|
116
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
117
|
-
const iconNode = [["path", { "d": "m6 9 6 6 6-6" }]];
|
|
118
|
-
Icon($$renderer2, spread_props([
|
|
119
|
-
{ name: "chevron-down" },
|
|
120
|
-
/**
|
|
121
|
-
* @component @name ChevronDown
|
|
122
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
123
|
-
*
|
|
124
|
-
* @preview  - https://lucide.dev/icons/chevron-down
|
|
125
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
126
|
-
*
|
|
127
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
128
|
-
* @returns {FunctionalComponent} Svelte component
|
|
129
|
-
*
|
|
130
|
-
*/
|
|
131
|
-
props,
|
|
132
|
-
{
|
|
133
|
-
iconNode,
|
|
134
|
-
children: ($$renderer3) => {
|
|
135
|
-
props.children?.($$renderer3);
|
|
136
|
-
$$renderer3.push(`<!---->`);
|
|
137
|
-
},
|
|
138
|
-
$$slots: { default: true }
|
|
139
|
-
}
|
|
140
|
-
]));
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
function Globe($$renderer, $$props) {
|
|
144
|
-
$$renderer.component(($$renderer2) => {
|
|
145
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
146
|
-
const iconNode = [
|
|
147
|
-
["circle", { "cx": "12", "cy": "12", "r": "10" }],
|
|
148
|
-
[
|
|
149
|
-
"path",
|
|
150
|
-
{ "d": "M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20" }
|
|
151
|
-
],
|
|
152
|
-
["path", { "d": "M2 12h20" }]
|
|
153
|
-
];
|
|
154
|
-
Icon($$renderer2, spread_props([
|
|
155
|
-
{ name: "globe" },
|
|
156
|
-
/**
|
|
157
|
-
* @component @name Globe
|
|
158
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
159
|
-
*
|
|
160
|
-
* @preview  - https://lucide.dev/icons/globe
|
|
161
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
162
|
-
*
|
|
163
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
164
|
-
* @returns {FunctionalComponent} Svelte component
|
|
165
|
-
*
|
|
166
|
-
*/
|
|
167
|
-
props,
|
|
168
|
-
{
|
|
169
|
-
iconNode,
|
|
170
|
-
children: ($$renderer3) => {
|
|
171
|
-
props.children?.($$renderer3);
|
|
172
|
-
$$renderer3.push(`<!---->`);
|
|
173
|
-
},
|
|
174
|
-
$$slots: { default: true }
|
|
175
|
-
}
|
|
176
|
-
]));
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
function Menu$1($$renderer, $$props) {
|
|
6
|
+
function Menu($$renderer, $$props) {
|
|
180
7
|
$$renderer.component(($$renderer2) => {
|
|
181
8
|
let { $$slots, $$events, ...props } = $$props;
|
|
182
9
|
const iconNode = [
|
|
@@ -209,202 +36,6 @@ function Menu$1($$renderer, $$props) {
|
|
|
209
36
|
]));
|
|
210
37
|
});
|
|
211
38
|
}
|
|
212
|
-
function Moon($$renderer, $$props) {
|
|
213
|
-
$$renderer.component(($$renderer2) => {
|
|
214
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
215
|
-
const iconNode = [
|
|
216
|
-
[
|
|
217
|
-
"path",
|
|
218
|
-
{
|
|
219
|
-
"d": "M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401"
|
|
220
|
-
}
|
|
221
|
-
]
|
|
222
|
-
];
|
|
223
|
-
Icon($$renderer2, spread_props([
|
|
224
|
-
{ name: "moon" },
|
|
225
|
-
/**
|
|
226
|
-
* @component @name Moon
|
|
227
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
228
|
-
*
|
|
229
|
-
* @preview  - https://lucide.dev/icons/moon
|
|
230
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
231
|
-
*
|
|
232
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
233
|
-
* @returns {FunctionalComponent} Svelte component
|
|
234
|
-
*
|
|
235
|
-
*/
|
|
236
|
-
props,
|
|
237
|
-
{
|
|
238
|
-
iconNode,
|
|
239
|
-
children: ($$renderer3) => {
|
|
240
|
-
props.children?.($$renderer3);
|
|
241
|
-
$$renderer3.push(`<!---->`);
|
|
242
|
-
},
|
|
243
|
-
$$slots: { default: true }
|
|
244
|
-
}
|
|
245
|
-
]));
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
function Palette($$renderer, $$props) {
|
|
249
|
-
$$renderer.component(($$renderer2) => {
|
|
250
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
251
|
-
const iconNode = [
|
|
252
|
-
[
|
|
253
|
-
"path",
|
|
254
|
-
{
|
|
255
|
-
"d": "M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z"
|
|
256
|
-
}
|
|
257
|
-
],
|
|
258
|
-
[
|
|
259
|
-
"circle",
|
|
260
|
-
{ "cx": "13.5", "cy": "6.5", "r": ".5", "fill": "currentColor" }
|
|
261
|
-
],
|
|
262
|
-
[
|
|
263
|
-
"circle",
|
|
264
|
-
{
|
|
265
|
-
"cx": "17.5",
|
|
266
|
-
"cy": "10.5",
|
|
267
|
-
"r": ".5",
|
|
268
|
-
"fill": "currentColor"
|
|
269
|
-
}
|
|
270
|
-
],
|
|
271
|
-
[
|
|
272
|
-
"circle",
|
|
273
|
-
{ "cx": "6.5", "cy": "12.5", "r": ".5", "fill": "currentColor" }
|
|
274
|
-
],
|
|
275
|
-
[
|
|
276
|
-
"circle",
|
|
277
|
-
{ "cx": "8.5", "cy": "7.5", "r": ".5", "fill": "currentColor" }
|
|
278
|
-
]
|
|
279
|
-
];
|
|
280
|
-
Icon($$renderer2, spread_props([
|
|
281
|
-
{ name: "palette" },
|
|
282
|
-
/**
|
|
283
|
-
* @component @name Palette
|
|
284
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
285
|
-
*
|
|
286
|
-
* @preview  - https://lucide.dev/icons/palette
|
|
287
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
288
|
-
*
|
|
289
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
290
|
-
* @returns {FunctionalComponent} Svelte component
|
|
291
|
-
*
|
|
292
|
-
*/
|
|
293
|
-
props,
|
|
294
|
-
{
|
|
295
|
-
iconNode,
|
|
296
|
-
children: ($$renderer3) => {
|
|
297
|
-
props.children?.($$renderer3);
|
|
298
|
-
$$renderer3.push(`<!---->`);
|
|
299
|
-
},
|
|
300
|
-
$$slots: { default: true }
|
|
301
|
-
}
|
|
302
|
-
]));
|
|
303
|
-
});
|
|
304
|
-
}
|
|
305
|
-
function Search($$renderer, $$props) {
|
|
306
|
-
$$renderer.component(($$renderer2) => {
|
|
307
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
308
|
-
const iconNode = [
|
|
309
|
-
["path", { "d": "m21 21-4.34-4.34" }],
|
|
310
|
-
["circle", { "cx": "11", "cy": "11", "r": "8" }]
|
|
311
|
-
];
|
|
312
|
-
Icon($$renderer2, spread_props([
|
|
313
|
-
{ name: "search" },
|
|
314
|
-
/**
|
|
315
|
-
* @component @name Search
|
|
316
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
317
|
-
*
|
|
318
|
-
* @preview  - https://lucide.dev/icons/search
|
|
319
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
320
|
-
*
|
|
321
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
322
|
-
* @returns {FunctionalComponent} Svelte component
|
|
323
|
-
*
|
|
324
|
-
*/
|
|
325
|
-
props,
|
|
326
|
-
{
|
|
327
|
-
iconNode,
|
|
328
|
-
children: ($$renderer3) => {
|
|
329
|
-
props.children?.($$renderer3);
|
|
330
|
-
$$renderer3.push(`<!---->`);
|
|
331
|
-
},
|
|
332
|
-
$$slots: { default: true }
|
|
333
|
-
}
|
|
334
|
-
]));
|
|
335
|
-
});
|
|
336
|
-
}
|
|
337
|
-
function Sun($$renderer, $$props) {
|
|
338
|
-
$$renderer.component(($$renderer2) => {
|
|
339
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
340
|
-
const iconNode = [
|
|
341
|
-
["circle", { "cx": "12", "cy": "12", "r": "4" }],
|
|
342
|
-
["path", { "d": "M12 2v2" }],
|
|
343
|
-
["path", { "d": "M12 20v2" }],
|
|
344
|
-
["path", { "d": "m4.93 4.93 1.41 1.41" }],
|
|
345
|
-
["path", { "d": "m17.66 17.66 1.41 1.41" }],
|
|
346
|
-
["path", { "d": "M2 12h2" }],
|
|
347
|
-
["path", { "d": "M20 12h2" }],
|
|
348
|
-
["path", { "d": "m6.34 17.66-1.41 1.41" }],
|
|
349
|
-
["path", { "d": "m19.07 4.93-1.41 1.41" }]
|
|
350
|
-
];
|
|
351
|
-
Icon($$renderer2, spread_props([
|
|
352
|
-
{ name: "sun" },
|
|
353
|
-
/**
|
|
354
|
-
* @component @name Sun
|
|
355
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
356
|
-
*
|
|
357
|
-
* @preview  - https://lucide.dev/icons/sun
|
|
358
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
359
|
-
*
|
|
360
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
361
|
-
* @returns {FunctionalComponent} Svelte component
|
|
362
|
-
*
|
|
363
|
-
*/
|
|
364
|
-
props,
|
|
365
|
-
{
|
|
366
|
-
iconNode,
|
|
367
|
-
children: ($$renderer3) => {
|
|
368
|
-
props.children?.($$renderer3);
|
|
369
|
-
$$renderer3.push(`<!---->`);
|
|
370
|
-
},
|
|
371
|
-
$$slots: { default: true }
|
|
372
|
-
}
|
|
373
|
-
]));
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
function User($$renderer, $$props) {
|
|
377
|
-
$$renderer.component(($$renderer2) => {
|
|
378
|
-
let { $$slots, $$events, ...props } = $$props;
|
|
379
|
-
const iconNode = [
|
|
380
|
-
["path", { "d": "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" }],
|
|
381
|
-
["circle", { "cx": "12", "cy": "7", "r": "4" }]
|
|
382
|
-
];
|
|
383
|
-
Icon($$renderer2, spread_props([
|
|
384
|
-
{ name: "user" },
|
|
385
|
-
/**
|
|
386
|
-
* @component @name User
|
|
387
|
-
* @description Lucide SVG icon component, renders SVG Element with children.
|
|
388
|
-
*
|
|
389
|
-
* @preview  - https://lucide.dev/icons/user
|
|
390
|
-
* @see https://lucide.dev/guide/packages/lucide-svelte - Documentation
|
|
391
|
-
*
|
|
392
|
-
* @param {Object} props - Lucide icons props and any valid SVG attribute
|
|
393
|
-
* @returns {FunctionalComponent} Svelte component
|
|
394
|
-
*
|
|
395
|
-
*/
|
|
396
|
-
props,
|
|
397
|
-
{
|
|
398
|
-
iconNode,
|
|
399
|
-
children: ($$renderer3) => {
|
|
400
|
-
props.children?.($$renderer3);
|
|
401
|
-
$$renderer3.push(`<!---->`);
|
|
402
|
-
},
|
|
403
|
-
$$slots: { default: true }
|
|
404
|
-
}
|
|
405
|
-
]));
|
|
406
|
-
});
|
|
407
|
-
}
|
|
408
39
|
function X($$renderer, $$props) {
|
|
409
40
|
$$renderer.component(($$renderer2) => {
|
|
410
41
|
let { $$slots, $$events, ...props } = $$props;
|
|
@@ -570,7 +201,7 @@ function AppHeader($$renderer, $$props) {
|
|
|
570
201
|
});
|
|
571
202
|
} else {
|
|
572
203
|
$$renderer2.push("<!--[-1-->");
|
|
573
|
-
Menu
|
|
204
|
+
Menu($$renderer2, {
|
|
574
205
|
class: "st-appHeader__burgerIcon",
|
|
575
206
|
size: 20,
|
|
576
207
|
"aria-hidden": "true"
|
|
@@ -587,293 +218,44 @@ function AppHeader($$renderer, $$props) {
|
|
|
587
218
|
} else {
|
|
588
219
|
$$renderer2.push("<!--[-1-->");
|
|
589
220
|
}
|
|
590
|
-
$$renderer2.push(`<!--]-->`);
|
|
591
|
-
});
|
|
592
|
-
}
|
|
593
|
-
function Alert($$renderer, $$props) {
|
|
594
|
-
$$renderer.component(($$renderer2) => {
|
|
595
|
-
let {
|
|
596
|
-
tone = "info",
|
|
597
|
-
title,
|
|
598
|
-
message,
|
|
599
|
-
class: className,
|
|
600
|
-
actions,
|
|
601
|
-
children,
|
|
602
|
-
$$slots,
|
|
603
|
-
$$events,
|
|
604
|
-
...rest
|
|
605
|
-
} = $$props;
|
|
606
|
-
const classes = () => ["st-alert", `st-alert--${tone}`, className].filter(Boolean).join(" ");
|
|
607
|
-
const role = () => tone === "error" || tone === "warning" ? "alert" : "status";
|
|
608
|
-
$$renderer2.push(`<section${attributes({ ...rest, class: clsx(classes()), role: role() }, "svelte-1vb1ni1")}><div class="st-alert__content svelte-1vb1ni1"><h2 class="st-alert__title svelte-1vb1ni1">${escape_html(title)}</h2> `);
|
|
609
|
-
if (message) {
|
|
610
|
-
$$renderer2.push("<!--[0-->");
|
|
611
|
-
$$renderer2.push(`<p class="st-alert__message svelte-1vb1ni1">${escape_html(message)}</p>`);
|
|
612
|
-
} else {
|
|
613
|
-
$$renderer2.push("<!--[-1-->");
|
|
614
|
-
}
|
|
615
|
-
$$renderer2.push(`<!--]--> `);
|
|
616
|
-
children?.($$renderer2);
|
|
617
|
-
$$renderer2.push(`<!----></div> `);
|
|
618
|
-
if (actions) {
|
|
619
|
-
$$renderer2.push("<!--[0-->");
|
|
620
|
-
$$renderer2.push(`<div class="st-alert__actions svelte-1vb1ni1">`);
|
|
621
|
-
actions($$renderer2);
|
|
622
|
-
$$renderer2.push(`<!----></div>`);
|
|
623
|
-
} else {
|
|
624
|
-
$$renderer2.push("<!--[-1-->");
|
|
625
|
-
}
|
|
626
|
-
$$renderer2.push(`<!--]--></section>`);
|
|
627
|
-
});
|
|
628
|
-
}
|
|
629
|
-
function deriveInitials(name) {
|
|
630
|
-
const parts = name.trim().split(/\s+/).filter(Boolean);
|
|
631
|
-
if (parts.length === 0) return "?";
|
|
632
|
-
if (parts.length === 1) return parts[0].slice(0, 2).toUpperCase();
|
|
633
|
-
return (parts[0][0] + parts[parts.length - 1][0]).toUpperCase();
|
|
634
|
-
}
|
|
635
|
-
function Header($$renderer, $$props) {
|
|
636
|
-
$$renderer.component(($$renderer2) => {
|
|
637
|
-
let {
|
|
638
|
-
title,
|
|
639
|
-
label = "Application header",
|
|
640
|
-
sticky = true,
|
|
641
|
-
class: className,
|
|
642
|
-
logo,
|
|
643
|
-
navigation,
|
|
644
|
-
actions,
|
|
645
|
-
children,
|
|
646
|
-
account,
|
|
647
|
-
signInLabel = "Se connecter",
|
|
648
|
-
accountMenu,
|
|
649
|
-
accountMenuOpen = false,
|
|
650
|
-
onAccountTriggerClick,
|
|
651
|
-
onSignIn,
|
|
652
|
-
$$slots,
|
|
653
|
-
$$events,
|
|
654
|
-
...rest
|
|
655
|
-
} = $$props;
|
|
656
|
-
const classes = () => ["st-header", sticky ? "st-header--sticky" : null, className].filter(Boolean).join(" ");
|
|
657
|
-
const resolvedInitials = derived(() => account ? account.initials?.trim() || deriveInitials(account.name) : "");
|
|
658
|
-
const hasPhoto = derived(() => Boolean(account?.avatarUrl));
|
|
659
|
-
$$renderer2.push(`<header${attributes({ ...rest, class: clsx(classes()), "aria-label": label }, "svelte-1d3rqe2")}><div class="st-header__leading svelte-1d3rqe2">`);
|
|
660
|
-
if (logo) {
|
|
661
|
-
$$renderer2.push("<!--[0-->");
|
|
662
|
-
$$renderer2.push(`<span class="st-header__logo svelte-1d3rqe2">`);
|
|
663
|
-
logo($$renderer2);
|
|
664
|
-
$$renderer2.push(`<!----></span>`);
|
|
665
|
-
} else {
|
|
666
|
-
$$renderer2.push("<!--[-1-->");
|
|
667
|
-
}
|
|
668
|
-
$$renderer2.push(`<!--]--> `);
|
|
669
|
-
if (title) {
|
|
670
|
-
$$renderer2.push("<!--[0-->");
|
|
671
|
-
$$renderer2.push(`<span class="st-header__title svelte-1d3rqe2">${escape_html(title)}</span>`);
|
|
672
|
-
} else {
|
|
673
|
-
$$renderer2.push("<!--[-1-->");
|
|
674
|
-
}
|
|
675
|
-
$$renderer2.push(`<!--]--></div> `);
|
|
676
|
-
if (navigation) {
|
|
677
|
-
$$renderer2.push("<!--[0-->");
|
|
678
|
-
$$renderer2.push(`<nav class="st-header__navigation svelte-1d3rqe2" aria-label="Primary">`);
|
|
679
|
-
navigation($$renderer2);
|
|
680
|
-
$$renderer2.push(`<!----></nav>`);
|
|
681
|
-
} else {
|
|
682
|
-
$$renderer2.push("<!--[-1-->");
|
|
683
|
-
}
|
|
684
|
-
$$renderer2.push(`<!--]--> `);
|
|
685
|
-
if (actions || account || onSignIn) {
|
|
686
|
-
$$renderer2.push("<!--[0-->");
|
|
687
|
-
$$renderer2.push(`<div class="st-header__actions svelte-1d3rqe2">`);
|
|
688
|
-
if (actions) {
|
|
689
|
-
$$renderer2.push("<!--[0-->");
|
|
690
|
-
actions($$renderer2);
|
|
691
|
-
$$renderer2.push(`<!---->`);
|
|
692
|
-
} else {
|
|
693
|
-
$$renderer2.push("<!--[-1-->");
|
|
694
|
-
}
|
|
695
|
-
$$renderer2.push(`<!--]--> `);
|
|
696
|
-
if (account) {
|
|
697
|
-
$$renderer2.push("<!--[0-->");
|
|
698
|
-
$$renderer2.push(`<div class="st-header__account svelte-1d3rqe2"><button type="button" class="st-header__account-trigger svelte-1d3rqe2" aria-haspopup="menu"${attr("aria-expanded", accountMenuOpen)}${attr("aria-label", `Compte de ${account.name}`)}>`);
|
|
699
|
-
if (hasPhoto()) {
|
|
700
|
-
$$renderer2.push("<!--[0-->");
|
|
701
|
-
$$renderer2.push(`<span class="st-header__avatar st-header__avatar--photo svelte-1d3rqe2" aria-hidden="true"><img class="st-header__avatar-image svelte-1d3rqe2"${attr("src", account.avatarUrl)} alt=""/></span>`);
|
|
702
|
-
} else {
|
|
703
|
-
$$renderer2.push("<!--[-1-->");
|
|
704
|
-
$$renderer2.push(`<span class="st-header__avatar st-header__avatar--initials svelte-1d3rqe2" aria-hidden="true">${escape_html(resolvedInitials())}</span>`);
|
|
705
|
-
}
|
|
706
|
-
$$renderer2.push(`<!--]--> <span class="st-header__account-meta svelte-1d3rqe2"><span class="st-header__account-name svelte-1d3rqe2">${escape_html(account.name)}</span> `);
|
|
707
|
-
if (account.email) {
|
|
708
|
-
$$renderer2.push("<!--[0-->");
|
|
709
|
-
$$renderer2.push(`<span class="st-header__account-email svelte-1d3rqe2">${escape_html(account.email)}</span>`);
|
|
710
|
-
} else {
|
|
711
|
-
$$renderer2.push("<!--[-1-->");
|
|
712
|
-
}
|
|
713
|
-
$$renderer2.push(`<!--]--></span> <svg class="st-header__account-caret svelte-1d3rqe2" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="6 9 12 15 18 9"></polyline></svg></button> `);
|
|
714
|
-
if (accountMenu && accountMenuOpen) {
|
|
715
|
-
$$renderer2.push("<!--[0-->");
|
|
716
|
-
$$renderer2.push(`<div class="st-header__account-menu svelte-1d3rqe2" role="menu"${attr("aria-label", `Menu de ${account.name}`)}>`);
|
|
717
|
-
accountMenu($$renderer2);
|
|
718
|
-
$$renderer2.push(`<!----></div>`);
|
|
719
|
-
} else {
|
|
720
|
-
$$renderer2.push("<!--[-1-->");
|
|
721
|
-
}
|
|
722
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
723
|
-
} else if (onSignIn) {
|
|
724
|
-
$$renderer2.push("<!--[1-->");
|
|
725
|
-
$$renderer2.push(`<button type="button" class="st-header__signin svelte-1d3rqe2">${escape_html(signInLabel)}</button>`);
|
|
726
|
-
} else {
|
|
727
|
-
$$renderer2.push("<!--[-1-->");
|
|
728
|
-
}
|
|
729
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
730
|
-
} else {
|
|
731
|
-
$$renderer2.push("<!--[-1-->");
|
|
732
|
-
}
|
|
733
|
-
$$renderer2.push(`<!--]--> `);
|
|
734
|
-
if (children) {
|
|
735
|
-
$$renderer2.push("<!--[0-->");
|
|
736
|
-
children($$renderer2);
|
|
737
|
-
$$renderer2.push(`<!---->`);
|
|
738
|
-
} else {
|
|
739
|
-
$$renderer2.push("<!--[-1-->");
|
|
740
|
-
}
|
|
741
|
-
$$renderer2.push(`<!--]--></header>`);
|
|
742
|
-
});
|
|
743
|
-
}
|
|
744
|
-
function Badge($$renderer, $$props) {
|
|
745
|
-
$$renderer.component(($$renderer2) => {
|
|
746
|
-
let {
|
|
747
|
-
tone = "neutral",
|
|
748
|
-
shape = "pill",
|
|
749
|
-
size = "md",
|
|
750
|
-
class: className,
|
|
751
|
-
children,
|
|
752
|
-
$$slots,
|
|
753
|
-
$$events,
|
|
754
|
-
...rest
|
|
755
|
-
} = $$props;
|
|
756
|
-
const classes = () => [
|
|
757
|
-
"st-badge",
|
|
758
|
-
`st-badge--${tone}`,
|
|
759
|
-
`st-badge--${shape}`,
|
|
760
|
-
`st-badge--${size}`,
|
|
761
|
-
className
|
|
762
|
-
].filter(Boolean).join(" ");
|
|
763
|
-
$$renderer2.push(`<span${attributes({ ...rest, class: clsx(classes()) }, "svelte-pdgh8u")}>`);
|
|
764
|
-
children?.($$renderer2);
|
|
765
|
-
$$renderer2.push(`<!----></span>`);
|
|
766
|
-
});
|
|
767
|
-
}
|
|
768
|
-
function Button($$renderer, $$props) {
|
|
769
|
-
$$renderer.component(($$renderer2) => {
|
|
770
|
-
let {
|
|
771
|
-
variant = "primary",
|
|
772
|
-
size = "md",
|
|
773
|
-
disabled = false,
|
|
774
|
-
type = "button",
|
|
775
|
-
class: className,
|
|
776
|
-
children,
|
|
777
|
-
$$slots,
|
|
778
|
-
$$events,
|
|
779
|
-
...rest
|
|
780
|
-
} = $$props;
|
|
781
|
-
const classes = () => [
|
|
782
|
-
"st-button",
|
|
783
|
-
`st-button--${variant}`,
|
|
784
|
-
`st-button--${size}`,
|
|
785
|
-
className
|
|
786
|
-
].filter(Boolean).join(" ");
|
|
787
|
-
$$renderer2.push(`<button${attributes({ ...rest, class: clsx(classes()), type, disabled }, "svelte-121ausn")}>`);
|
|
788
|
-
children?.($$renderer2);
|
|
789
|
-
$$renderer2.push(`<!----></button>`);
|
|
790
|
-
});
|
|
791
|
-
}
|
|
792
|
-
function ButtonGroup($$renderer, $$props) {
|
|
793
|
-
$$renderer.component(($$renderer2) => {
|
|
794
|
-
let {
|
|
795
|
-
orientation = "horizontal",
|
|
796
|
-
attached = false,
|
|
797
|
-
gap,
|
|
798
|
-
size = "md",
|
|
799
|
-
label,
|
|
800
|
-
class: className,
|
|
801
|
-
children,
|
|
802
|
-
$$slots,
|
|
803
|
-
$$events,
|
|
804
|
-
...rest
|
|
805
|
-
} = $$props;
|
|
806
|
-
const classes = derived(() => [
|
|
807
|
-
"st-buttonGroup",
|
|
808
|
-
`st-buttonGroup--${orientation}`,
|
|
809
|
-
attached ? "st-buttonGroup--attached" : null,
|
|
810
|
-
className
|
|
811
|
-
].filter(Boolean).join(" "));
|
|
812
|
-
const gapValue = derived(() => attached || gap == null ? null : `var(--st-spacing-${gap}, ${gap * 0.25}rem)`);
|
|
813
|
-
$$renderer2.push(`<div${attributes(
|
|
814
|
-
{
|
|
815
|
-
...rest,
|
|
816
|
-
class: clsx(classes()),
|
|
817
|
-
role: "group",
|
|
818
|
-
"aria-label": label,
|
|
819
|
-
"data-size": size
|
|
820
|
-
},
|
|
821
|
-
"svelte-1q19k9q",
|
|
822
|
-
void 0,
|
|
823
|
-
{ gap: gapValue() }
|
|
824
|
-
)}>`);
|
|
825
|
-
children?.($$renderer2);
|
|
826
|
-
$$renderer2.push(`<!----></div>`);
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
function Card($$renderer, $$props) {
|
|
830
|
-
$$renderer.component(($$renderer2) => {
|
|
831
|
-
let {
|
|
832
|
-
interactive = false,
|
|
833
|
-
class: className,
|
|
834
|
-
children,
|
|
835
|
-
$$slots,
|
|
836
|
-
$$events,
|
|
837
|
-
...rest
|
|
838
|
-
} = $$props;
|
|
839
|
-
const classes = () => ["st-card", interactive && "st-card--interactive", className].filter(Boolean).join(" ");
|
|
840
|
-
$$renderer2.push(`<section${attributes({ ...rest, class: clsx(classes()) }, "svelte-mt7xh")}>`);
|
|
841
|
-
children?.($$renderer2);
|
|
842
|
-
$$renderer2.push(`<!----></section>`);
|
|
221
|
+
$$renderer2.push(`<!--]-->`);
|
|
843
222
|
});
|
|
844
223
|
}
|
|
845
|
-
function
|
|
224
|
+
function ButtonGroup($$renderer, $$props) {
|
|
846
225
|
$$renderer.component(($$renderer2) => {
|
|
847
226
|
let {
|
|
848
|
-
"
|
|
227
|
+
orientation = "horizontal",
|
|
228
|
+
attached = false,
|
|
229
|
+
gap,
|
|
849
230
|
size = "md",
|
|
850
|
-
|
|
851
|
-
type = "button",
|
|
852
|
-
disabled = false,
|
|
231
|
+
label,
|
|
853
232
|
class: className,
|
|
854
233
|
children,
|
|
855
234
|
$$slots,
|
|
856
235
|
$$events,
|
|
857
236
|
...rest
|
|
858
237
|
} = $$props;
|
|
859
|
-
const classes = () => [
|
|
860
|
-
"st-
|
|
861
|
-
`st-
|
|
862
|
-
|
|
238
|
+
const classes = derived(() => [
|
|
239
|
+
"st-buttonGroup",
|
|
240
|
+
`st-buttonGroup--${orientation}`,
|
|
241
|
+
attached ? "st-buttonGroup--attached" : null,
|
|
863
242
|
className
|
|
864
|
-
].filter(Boolean).join(" ");
|
|
865
|
-
|
|
243
|
+
].filter(Boolean).join(" "));
|
|
244
|
+
const gapValue = derived(() => attached || gap == null ? null : `var(--st-spacing-${gap}, ${gap * 0.25}rem)`);
|
|
245
|
+
$$renderer2.push(`<div${attributes(
|
|
866
246
|
{
|
|
867
247
|
...rest,
|
|
868
248
|
class: clsx(classes()),
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
"
|
|
249
|
+
role: "group",
|
|
250
|
+
"aria-label": label,
|
|
251
|
+
"data-size": size
|
|
872
252
|
},
|
|
873
|
-
"svelte-
|
|
253
|
+
"svelte-1q19k9q",
|
|
254
|
+
void 0,
|
|
255
|
+
{ gap: gapValue() }
|
|
874
256
|
)}>`);
|
|
875
|
-
children($$renderer2);
|
|
876
|
-
$$renderer2.push(`<!----></
|
|
257
|
+
children?.($$renderer2);
|
|
258
|
+
$$renderer2.push(`<!----></div>`);
|
|
877
259
|
});
|
|
878
260
|
}
|
|
879
261
|
function Checkbox($$renderer, $$props) {
|
|
@@ -939,37 +321,6 @@ function Checkbox($$renderer, $$props) {
|
|
|
939
321
|
$$renderer2.push(`<!--]--></label>`);
|
|
940
322
|
});
|
|
941
323
|
}
|
|
942
|
-
function Container($$renderer, $$props) {
|
|
943
|
-
$$renderer.component(($$renderer2) => {
|
|
944
|
-
let {
|
|
945
|
-
size = "lg",
|
|
946
|
-
padding = true,
|
|
947
|
-
as = "div",
|
|
948
|
-
class: className,
|
|
949
|
-
children,
|
|
950
|
-
$$slots,
|
|
951
|
-
$$events,
|
|
952
|
-
...rest
|
|
953
|
-
} = $$props;
|
|
954
|
-
const classes = derived(() => [
|
|
955
|
-
"st-container",
|
|
956
|
-
`st-container--${size}`,
|
|
957
|
-
padding && "st-container--padded",
|
|
958
|
-
className
|
|
959
|
-
].filter(Boolean).join(" "));
|
|
960
|
-
element(
|
|
961
|
-
$$renderer2,
|
|
962
|
-
as,
|
|
963
|
-
() => {
|
|
964
|
-
$$renderer2.push(`${attributes({ ...rest, class: clsx(classes()) }, "svelte-lol6l6")}`);
|
|
965
|
-
},
|
|
966
|
-
() => {
|
|
967
|
-
children?.($$renderer2);
|
|
968
|
-
$$renderer2.push(`<!---->`);
|
|
969
|
-
}
|
|
970
|
-
);
|
|
971
|
-
});
|
|
972
|
-
}
|
|
973
324
|
function ContentSwitcher($$renderer, $$props) {
|
|
974
325
|
$$renderer.component(($$renderer2) => {
|
|
975
326
|
let {
|
|
@@ -1322,85 +673,6 @@ function DataTable($$renderer, $$props) {
|
|
|
1322
673
|
bind_props($$props, { selectedIds, sortBy, page });
|
|
1323
674
|
});
|
|
1324
675
|
}
|
|
1325
|
-
const SPACING_FALLBACK = {
|
|
1326
|
-
0: "0",
|
|
1327
|
-
1: "0.25rem",
|
|
1328
|
-
2: "0.5rem",
|
|
1329
|
-
3: "0.75rem",
|
|
1330
|
-
4: "1rem",
|
|
1331
|
-
5: "1.25rem",
|
|
1332
|
-
6: "1.5rem",
|
|
1333
|
-
7: "1.75rem",
|
|
1334
|
-
8: "2rem",
|
|
1335
|
-
9: "2.25rem",
|
|
1336
|
-
10: "2.5rem",
|
|
1337
|
-
11: "2.75rem",
|
|
1338
|
-
12: "3rem"
|
|
1339
|
-
};
|
|
1340
|
-
function spacingToken(step) {
|
|
1341
|
-
if (step == null) return void 0;
|
|
1342
|
-
const clamped = Math.max(0, Math.min(12, Math.round(step)));
|
|
1343
|
-
if (clamped === 0) return "0";
|
|
1344
|
-
return `var(--st-spacing-${clamped}, ${SPACING_FALLBACK[clamped]})`;
|
|
1345
|
-
}
|
|
1346
|
-
const ALIGN = {
|
|
1347
|
-
start: "flex-start",
|
|
1348
|
-
center: "center",
|
|
1349
|
-
end: "flex-end",
|
|
1350
|
-
stretch: "stretch",
|
|
1351
|
-
baseline: "baseline"
|
|
1352
|
-
};
|
|
1353
|
-
const JUSTIFY = {
|
|
1354
|
-
start: "flex-start",
|
|
1355
|
-
center: "center",
|
|
1356
|
-
end: "flex-end",
|
|
1357
|
-
between: "space-between",
|
|
1358
|
-
around: "space-around",
|
|
1359
|
-
evenly: "space-evenly"
|
|
1360
|
-
};
|
|
1361
|
-
function alignValue(align) {
|
|
1362
|
-
return align ? ALIGN[align] : void 0;
|
|
1363
|
-
}
|
|
1364
|
-
function justifyValue(justify) {
|
|
1365
|
-
return justify ? JUSTIFY[justify] : void 0;
|
|
1366
|
-
}
|
|
1367
|
-
function Flex($$renderer, $$props) {
|
|
1368
|
-
$$renderer.component(($$renderer2) => {
|
|
1369
|
-
let {
|
|
1370
|
-
direction = "row",
|
|
1371
|
-
gap,
|
|
1372
|
-
align,
|
|
1373
|
-
justify,
|
|
1374
|
-
wrap = false,
|
|
1375
|
-
inline = false,
|
|
1376
|
-
as = "div",
|
|
1377
|
-
class: className,
|
|
1378
|
-
children,
|
|
1379
|
-
$$slots,
|
|
1380
|
-
$$events,
|
|
1381
|
-
...rest
|
|
1382
|
-
} = $$props;
|
|
1383
|
-
const classes = derived(() => ["st-flex", className].filter(Boolean).join(" "));
|
|
1384
|
-
element(
|
|
1385
|
-
$$renderer2,
|
|
1386
|
-
as,
|
|
1387
|
-
() => {
|
|
1388
|
-
$$renderer2.push(`${attributes({ ...rest, class: clsx(classes()) }, "svelte-94sbko", void 0, {
|
|
1389
|
-
display: inline ? "inline-flex" : "flex",
|
|
1390
|
-
"flex-direction": direction,
|
|
1391
|
-
"flex-wrap": wrap ? "wrap" : "nowrap",
|
|
1392
|
-
"align-items": alignValue(align),
|
|
1393
|
-
"justify-content": justifyValue(justify),
|
|
1394
|
-
gap: spacingToken(gap)
|
|
1395
|
-
})}`);
|
|
1396
|
-
},
|
|
1397
|
-
() => {
|
|
1398
|
-
children?.($$renderer2);
|
|
1399
|
-
$$renderer2.push(`<!---->`);
|
|
1400
|
-
}
|
|
1401
|
-
);
|
|
1402
|
-
});
|
|
1403
|
-
}
|
|
1404
676
|
function EmptyState($$renderer, $$props) {
|
|
1405
677
|
$$renderer.component(($$renderer2) => {
|
|
1406
678
|
let {
|
|
@@ -1435,625 +707,6 @@ function EmptyState($$renderer, $$props) {
|
|
|
1435
707
|
$$renderer2.push(`<!--]--></section>`);
|
|
1436
708
|
});
|
|
1437
709
|
}
|
|
1438
|
-
let groupIdCounter = 0;
|
|
1439
|
-
function nextGroupId() {
|
|
1440
|
-
groupIdCounter += 1;
|
|
1441
|
-
return `st-menu-group-${groupIdCounter}`;
|
|
1442
|
-
}
|
|
1443
|
-
function Menu($$renderer, $$props) {
|
|
1444
|
-
$$renderer.component(($$renderer2) => {
|
|
1445
|
-
let {
|
|
1446
|
-
label,
|
|
1447
|
-
items,
|
|
1448
|
-
open = true,
|
|
1449
|
-
dismissOnSelect = false,
|
|
1450
|
-
class: className,
|
|
1451
|
-
dense = false,
|
|
1452
|
-
onselect,
|
|
1453
|
-
$$slots,
|
|
1454
|
-
$$events,
|
|
1455
|
-
...rest
|
|
1456
|
-
} = $$props;
|
|
1457
|
-
const classes = () => ["st-menu", dense ? "st-menu--dense" : null, className].filter(Boolean).join(" ");
|
|
1458
|
-
function isAction(item) {
|
|
1459
|
-
return item.kind === void 0 || item.kind === "item";
|
|
1460
|
-
}
|
|
1461
|
-
if (open) {
|
|
1462
|
-
$$renderer2.push("<!--[0-->");
|
|
1463
|
-
$$renderer2.push(`<div${attributes(
|
|
1464
|
-
{
|
|
1465
|
-
...rest,
|
|
1466
|
-
class: clsx(classes()),
|
|
1467
|
-
role: "menu",
|
|
1468
|
-
"aria-label": label
|
|
1469
|
-
},
|
|
1470
|
-
"svelte-n7le8g"
|
|
1471
|
-
)}><!--[-->`);
|
|
1472
|
-
const each_array = ensure_array_like(items);
|
|
1473
|
-
for (let index = 0, $$length = each_array.length; index < $$length; index++) {
|
|
1474
|
-
let item = each_array[index];
|
|
1475
|
-
if (isAction(item)) {
|
|
1476
|
-
$$renderer2.push("<!--[0-->");
|
|
1477
|
-
const Icon2 = item.icon;
|
|
1478
|
-
$$renderer2.push(`<button${attr_class("st-menu__item svelte-n7le8g", void 0, { "st-menu__item--danger": item.danger })} type="button" role="menuitem"${attr("aria-disabled", item.disabled ? "true" : void 0)}${attr("disabled", item.disabled, true)}>`);
|
|
1479
|
-
if (Icon2) {
|
|
1480
|
-
$$renderer2.push("<!--[0-->");
|
|
1481
|
-
$$renderer2.push(`<span class="st-menu__itemIcon svelte-n7le8g" aria-hidden="true">`);
|
|
1482
|
-
if (typeof Icon2 === "string") {
|
|
1483
|
-
$$renderer2.push("<!--[0-->");
|
|
1484
|
-
$$renderer2.push(`${escape_html(Icon2)}`);
|
|
1485
|
-
} else {
|
|
1486
|
-
$$renderer2.push("<!--[-1-->");
|
|
1487
|
-
if (Icon2) {
|
|
1488
|
-
$$renderer2.push("<!--[-->");
|
|
1489
|
-
Icon2($$renderer2, { size: 16, strokeWidth: 2 });
|
|
1490
|
-
$$renderer2.push("<!--]-->");
|
|
1491
|
-
} else {
|
|
1492
|
-
$$renderer2.push("<!--[!-->");
|
|
1493
|
-
$$renderer2.push("<!--]-->");
|
|
1494
|
-
}
|
|
1495
|
-
}
|
|
1496
|
-
$$renderer2.push(`<!--]--></span>`);
|
|
1497
|
-
} else {
|
|
1498
|
-
$$renderer2.push("<!--[-1-->");
|
|
1499
|
-
}
|
|
1500
|
-
$$renderer2.push(`<!--]--> <span class="st-menu__itemLabel svelte-n7le8g">${escape_html(item.label)}</span></button>`);
|
|
1501
|
-
} else if (item.kind === "divider") {
|
|
1502
|
-
$$renderer2.push("<!--[1-->");
|
|
1503
|
-
$$renderer2.push(`<div class="st-menu__divider svelte-n7le8g" role="separator" aria-hidden="true"></div>`);
|
|
1504
|
-
} else {
|
|
1505
|
-
$$renderer2.push("<!--[-1-->");
|
|
1506
|
-
const groupId = nextGroupId();
|
|
1507
|
-
$$renderer2.push(`<div class="st-menu__group svelte-n7le8g"${attr("id", groupId)} role="presentation">${escape_html(item.label)}</div>`);
|
|
1508
|
-
}
|
|
1509
|
-
$$renderer2.push(`<!--]-->`);
|
|
1510
|
-
}
|
|
1511
|
-
$$renderer2.push(`<!--]--></div>`);
|
|
1512
|
-
} else {
|
|
1513
|
-
$$renderer2.push("<!--[-1-->");
|
|
1514
|
-
}
|
|
1515
|
-
$$renderer2.push(`<!--]-->`);
|
|
1516
|
-
bind_props($$props, { open });
|
|
1517
|
-
});
|
|
1518
|
-
}
|
|
1519
|
-
function MenuPopover($$renderer, $$props) {
|
|
1520
|
-
$$renderer.component(($$renderer2) => {
|
|
1521
|
-
let {
|
|
1522
|
-
open = false,
|
|
1523
|
-
trigger,
|
|
1524
|
-
placement = "bottom-start",
|
|
1525
|
-
align,
|
|
1526
|
-
label,
|
|
1527
|
-
class: className,
|
|
1528
|
-
closeOnOutside = true,
|
|
1529
|
-
closeOnEscape = true,
|
|
1530
|
-
children,
|
|
1531
|
-
$$slots,
|
|
1532
|
-
$$events,
|
|
1533
|
-
...rest
|
|
1534
|
-
} = $$props;
|
|
1535
|
-
let top = 0;
|
|
1536
|
-
let left = 0;
|
|
1537
|
-
const classes = () => [
|
|
1538
|
-
"st-menuPopover",
|
|
1539
|
-
`st-menuPopover--${placement}`,
|
|
1540
|
-
null,
|
|
1541
|
-
null,
|
|
1542
|
-
className
|
|
1543
|
-
].filter(Boolean).join(" ");
|
|
1544
|
-
if (open) {
|
|
1545
|
-
$$renderer2.push("<!--[0-->");
|
|
1546
|
-
$$renderer2.push(`<div${attributes(
|
|
1547
|
-
{
|
|
1548
|
-
...rest,
|
|
1549
|
-
class: clsx(classes()),
|
|
1550
|
-
role: "dialog",
|
|
1551
|
-
"aria-label": label,
|
|
1552
|
-
style: `top: ${top}px; left: ${left}px;${""}`
|
|
1553
|
-
},
|
|
1554
|
-
"svelte-tp772b"
|
|
1555
|
-
)}>`);
|
|
1556
|
-
children?.($$renderer2);
|
|
1557
|
-
$$renderer2.push(`<!----></div>`);
|
|
1558
|
-
} else {
|
|
1559
|
-
$$renderer2.push("<!--[-1-->");
|
|
1560
|
-
}
|
|
1561
|
-
$$renderer2.push(`<!--]-->`);
|
|
1562
|
-
bind_props($$props, { open });
|
|
1563
|
-
});
|
|
1564
|
-
}
|
|
1565
|
-
function IdentityButton($$renderer, $$props) {
|
|
1566
|
-
$$renderer.component(($$renderer2) => {
|
|
1567
|
-
let {
|
|
1568
|
-
authState = "anonymous",
|
|
1569
|
-
user = null,
|
|
1570
|
-
mode = "icon",
|
|
1571
|
-
tone = "default",
|
|
1572
|
-
signInLabel = "Se connecter",
|
|
1573
|
-
accountLabel = "Compte",
|
|
1574
|
-
onSignIn,
|
|
1575
|
-
onSignOut,
|
|
1576
|
-
menu = []
|
|
1577
|
-
} = $$props;
|
|
1578
|
-
let triggerEl = null;
|
|
1579
|
-
let open = false;
|
|
1580
|
-
const initials = derived(() => user?.name ? user.name.trim().split(/\s+/).map((w) => w[0]).slice(0, 2).join("").toUpperCase() : "");
|
|
1581
|
-
const authed = derived(() => authState === "authenticated");
|
|
1582
|
-
const menuItems = derived(() => [
|
|
1583
|
-
...menu.map((e) => ({ label: e.label, value: e.href ?? e.label })),
|
|
1584
|
-
...onSignOut ? [{ label: "Se déconnecter", value: "__signout" }] : []
|
|
1585
|
-
]);
|
|
1586
|
-
function onMenuSelect(value) {
|
|
1587
|
-
open = false;
|
|
1588
|
-
if (value === "__signout") return onSignOut?.();
|
|
1589
|
-
const entry = menu.find((e) => (e.href ?? e.label) === value);
|
|
1590
|
-
if (entry?.onClick) entry.onClick();
|
|
1591
|
-
else if (entry?.href) location.href = entry.href;
|
|
1592
|
-
}
|
|
1593
|
-
function face($$renderer3) {
|
|
1594
|
-
if (authed() && user?.avatarSrc) {
|
|
1595
|
-
$$renderer3.push("<!--[0-->");
|
|
1596
|
-
$$renderer3.push(`<img class="st-identityBtn__avatar svelte-tcpfp5"${attr("src", user.avatarSrc)} alt="" aria-hidden="true"/>`);
|
|
1597
|
-
} else if (authed() && initials()) {
|
|
1598
|
-
$$renderer3.push("<!--[1-->");
|
|
1599
|
-
$$renderer3.push(`<span class="st-identityBtn__initials svelte-tcpfp5" aria-hidden="true">${escape_html(initials())}</span>`);
|
|
1600
|
-
} else {
|
|
1601
|
-
$$renderer3.push("<!--[-1-->");
|
|
1602
|
-
User($$renderer3, { size: 16, strokeWidth: 2.1, "aria-hidden": "true" });
|
|
1603
|
-
}
|
|
1604
|
-
$$renderer3.push(`<!--]-->`);
|
|
1605
|
-
}
|
|
1606
|
-
let $$settled = true;
|
|
1607
|
-
let $$inner_renderer;
|
|
1608
|
-
function $$render_inner($$renderer3) {
|
|
1609
|
-
$$renderer3.push(`<span${attr_class("st-identityBtn svelte-tcpfp5", void 0, { "st-identityBtn--onColor": tone === "onColor" })}>`);
|
|
1610
|
-
if (mode === "button") {
|
|
1611
|
-
$$renderer3.push("<!--[0-->");
|
|
1612
|
-
Button($$renderer3, {
|
|
1613
|
-
variant: authed() ? "ghost" : "secondary",
|
|
1614
|
-
size: "sm",
|
|
1615
|
-
onclick: () => authed() ? open = !open : onSignIn?.(),
|
|
1616
|
-
children: ($$renderer4) => {
|
|
1617
|
-
face($$renderer4);
|
|
1618
|
-
$$renderer4.push(`<!----> <span>${escape_html(authed() ? user?.name ?? accountLabel : signInLabel)}</span>`);
|
|
1619
|
-
},
|
|
1620
|
-
$$slots: { default: true }
|
|
1621
|
-
});
|
|
1622
|
-
} else if (mode === "menu") {
|
|
1623
|
-
$$renderer3.push("<!--[1-->");
|
|
1624
|
-
$$renderer3.push(`<span class="st-identityBtn__wrap svelte-tcpfp5">`);
|
|
1625
|
-
IconButton($$renderer3, {
|
|
1626
|
-
size: "sm",
|
|
1627
|
-
variant: "ghost",
|
|
1628
|
-
"aria-label": authed() ? accountLabel : signInLabel,
|
|
1629
|
-
onclick: () => open = !open,
|
|
1630
|
-
children: ($$renderer4) => {
|
|
1631
|
-
face($$renderer4);
|
|
1632
|
-
},
|
|
1633
|
-
$$slots: { default: true }
|
|
1634
|
-
});
|
|
1635
|
-
$$renderer3.push(`<!----></span> `);
|
|
1636
|
-
if (menuItems().length) {
|
|
1637
|
-
$$renderer3.push("<!--[0-->");
|
|
1638
|
-
MenuPopover($$renderer3, {
|
|
1639
|
-
trigger: triggerEl,
|
|
1640
|
-
placement: "bottom-end",
|
|
1641
|
-
label: accountLabel,
|
|
1642
|
-
get open() {
|
|
1643
|
-
return open;
|
|
1644
|
-
},
|
|
1645
|
-
set open($$value) {
|
|
1646
|
-
open = $$value;
|
|
1647
|
-
$$settled = false;
|
|
1648
|
-
},
|
|
1649
|
-
children: ($$renderer4) => {
|
|
1650
|
-
Menu($$renderer4, {
|
|
1651
|
-
label: accountLabel,
|
|
1652
|
-
items: menuItems(),
|
|
1653
|
-
onselect: onMenuSelect
|
|
1654
|
-
});
|
|
1655
|
-
},
|
|
1656
|
-
$$slots: { default: true }
|
|
1657
|
-
});
|
|
1658
|
-
} else {
|
|
1659
|
-
$$renderer3.push("<!--[-1-->");
|
|
1660
|
-
}
|
|
1661
|
-
$$renderer3.push(`<!--]-->`);
|
|
1662
|
-
} else {
|
|
1663
|
-
$$renderer3.push("<!--[-1-->");
|
|
1664
|
-
IconButton($$renderer3, {
|
|
1665
|
-
size: "sm",
|
|
1666
|
-
variant: "ghost",
|
|
1667
|
-
"aria-label": authed() ? accountLabel : signInLabel,
|
|
1668
|
-
onclick: () => authed() ? menuItems().length ? open = !open : void 0 : onSignIn?.(),
|
|
1669
|
-
children: ($$renderer4) => {
|
|
1670
|
-
face($$renderer4);
|
|
1671
|
-
},
|
|
1672
|
-
$$slots: { default: true }
|
|
1673
|
-
});
|
|
1674
|
-
}
|
|
1675
|
-
$$renderer3.push(`<!--]--></span>`);
|
|
1676
|
-
}
|
|
1677
|
-
do {
|
|
1678
|
-
$$settled = true;
|
|
1679
|
-
$$inner_renderer = $$renderer2.copy();
|
|
1680
|
-
$$render_inner($$inner_renderer);
|
|
1681
|
-
} while (!$$settled);
|
|
1682
|
-
$$renderer2.subsume($$inner_renderer);
|
|
1683
|
-
});
|
|
1684
|
-
}
|
|
1685
|
-
function AppShell($$renderer, $$props) {
|
|
1686
|
-
$$renderer.component(($$renderer2) => {
|
|
1687
|
-
let {
|
|
1688
|
-
variant,
|
|
1689
|
-
config,
|
|
1690
|
-
topChrome,
|
|
1691
|
-
primaryRail,
|
|
1692
|
-
navigationPanel,
|
|
1693
|
-
main,
|
|
1694
|
-
contextPanel,
|
|
1695
|
-
utilityPanel,
|
|
1696
|
-
bottomPanel,
|
|
1697
|
-
children,
|
|
1698
|
-
mainId = "main",
|
|
1699
|
-
navigationLabel = "Workspace navigation",
|
|
1700
|
-
contextLabel = "Context panel",
|
|
1701
|
-
utilityLabel = "Utility panel",
|
|
1702
|
-
utilityMode = "reserve",
|
|
1703
|
-
utilitySide = "right",
|
|
1704
|
-
class: className
|
|
1705
|
-
} = $$props;
|
|
1706
|
-
const mode = derived(() => variant ?? (config ? "site" : "workspace"));
|
|
1707
|
-
const siteConfig = derived(() => config ?? {
|
|
1708
|
-
brand: { name: "Sentropic" },
|
|
1709
|
-
nav: [],
|
|
1710
|
-
theming: { themes: [], theme: "" }
|
|
1711
|
-
});
|
|
1712
|
-
const brand = derived(() => siteConfig().brand ?? { name: "Sentropic" });
|
|
1713
|
-
const nav = derived(() => Array.isArray(siteConfig().nav) ? siteConfig().nav : []);
|
|
1714
|
-
const t = derived(() => siteConfig().theming ?? { themes: [], theme: "" });
|
|
1715
|
-
const siteClasses = derived(() => ["st-shell", className].filter(Boolean).join(" "));
|
|
1716
|
-
const workspaceClasses = derived(() => ["st-appShell", "st-appShell--workspace", className].filter(Boolean).join(" "));
|
|
1717
|
-
const isActive = (item) => item.active != null ? item.active : siteConfig().activePath != null && (item.href === siteConfig().activePath || item.href !== "/" && (siteConfig().activePath ?? "").startsWith(item.href));
|
|
1718
|
-
const themeItems = derived(() => (t().themes ?? []).map((o) => ({ label: o.label, value: o.id })));
|
|
1719
|
-
const fwItems = derived(() => (siteConfig().frameworkSwitcher?.available ?? []).map((o) => ({ label: o.label, value: o.id })));
|
|
1720
|
-
const localeItems = derived(() => (siteConfig().locale?.available ?? []).map((o) => ({ label: o.label, value: o.code })));
|
|
1721
|
-
const fwLabel = derived(() => (siteConfig().frameworkSwitcher?.available ?? []).find((o) => o.id === siteConfig().frameworkSwitcher?.current)?.label ?? "");
|
|
1722
|
-
const themeLabel = derived(() => (t().themes ?? []).find((o) => o.id === t().theme)?.label ?? "");
|
|
1723
|
-
let themeEl = null;
|
|
1724
|
-
let fwEl = null;
|
|
1725
|
-
let localeEl = null;
|
|
1726
|
-
let themeOpen = false;
|
|
1727
|
-
let fwOpen = false;
|
|
1728
|
-
let localeOpen = false;
|
|
1729
|
-
function cycleColorMode() {
|
|
1730
|
-
const cur = t().colorMode;
|
|
1731
|
-
t().onColorModeChange?.(cur === "light" ? "dark" : cur === "dark" ? "auto" : "light");
|
|
1732
|
-
}
|
|
1733
|
-
function logo($$renderer3) {
|
|
1734
|
-
$$renderer3.push(`<a class="st-shell__brand svelte-do0njo"${attr("href", brand().href ?? "/")}${attr("aria-label", brand().label ?? [brand().name, brand().productName].filter(Boolean).join(" "))}>`);
|
|
1735
|
-
if (brand().logoSrc) {
|
|
1736
|
-
$$renderer3.push("<!--[0-->");
|
|
1737
|
-
$$renderer3.push(`<img class="st-shell__brandMark svelte-do0njo"${attr("src", brand().logoSrc)} alt="" aria-hidden="true"/>`);
|
|
1738
|
-
} else {
|
|
1739
|
-
$$renderer3.push("<!--[-1-->");
|
|
1740
|
-
}
|
|
1741
|
-
$$renderer3.push(`<!--]--> <span class="st-shell__brandCopy svelte-do0njo">`);
|
|
1742
|
-
if (brand().name) {
|
|
1743
|
-
$$renderer3.push("<!--[0-->");
|
|
1744
|
-
$$renderer3.push(`<span class="st-shell__brandName svelte-do0njo">${escape_html(brand().name)}</span>`);
|
|
1745
|
-
} else {
|
|
1746
|
-
$$renderer3.push("<!--[-1-->");
|
|
1747
|
-
}
|
|
1748
|
-
$$renderer3.push(`<!--]--> `);
|
|
1749
|
-
if (brand().productName) {
|
|
1750
|
-
$$renderer3.push("<!--[0-->");
|
|
1751
|
-
$$renderer3.push(`<span class="st-shell__brandProduct svelte-do0njo">${escape_html(brand().productName)}</span>`);
|
|
1752
|
-
} else {
|
|
1753
|
-
$$renderer3.push("<!--[-1-->");
|
|
1754
|
-
}
|
|
1755
|
-
$$renderer3.push(`<!--]--></span></a>`);
|
|
1756
|
-
}
|
|
1757
|
-
function navigation($$renderer3) {
|
|
1758
|
-
$$renderer3.push(`<nav class="st-shell__nav svelte-do0njo"${attr("aria-label", siteConfig().navLabel ?? "Navigation")}><!--[-->`);
|
|
1759
|
-
const each_array = ensure_array_like(nav());
|
|
1760
|
-
for (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {
|
|
1761
|
-
let item = each_array[$$index];
|
|
1762
|
-
$$renderer3.push(`<a class="st-shell__navLink svelte-do0njo"${attr("href", item.href)}${attr("aria-current", isActive(item) ? "page" : void 0)}>${escape_html(item.label)}</a>`);
|
|
1763
|
-
}
|
|
1764
|
-
$$renderer3.push(`<!--]--></nav>`);
|
|
1765
|
-
}
|
|
1766
|
-
function actions($$renderer3) {
|
|
1767
|
-
$$renderer3.push(`<div class="st-shell__actions svelte-do0njo">`);
|
|
1768
|
-
if (siteConfig().search?.enabled) {
|
|
1769
|
-
$$renderer3.push("<!--[0-->");
|
|
1770
|
-
Button($$renderer3, {
|
|
1771
|
-
variant: "secondary",
|
|
1772
|
-
size: "sm",
|
|
1773
|
-
class: "st-shell__search",
|
|
1774
|
-
onclick: () => siteConfig().search?.onSearch?.(""),
|
|
1775
|
-
children: ($$renderer4) => {
|
|
1776
|
-
Search($$renderer4, { size: 16, strokeWidth: 2.1, "aria-hidden": "true" });
|
|
1777
|
-
$$renderer4.push(`<!----> <span>${escape_html(siteConfig().search.placeholder ?? "Rechercher…")}</span> <kbd class="st-shell__kbd svelte-do0njo">/</kbd>`);
|
|
1778
|
-
},
|
|
1779
|
-
$$slots: { default: true }
|
|
1780
|
-
});
|
|
1781
|
-
} else {
|
|
1782
|
-
$$renderer3.push("<!--[-1-->");
|
|
1783
|
-
}
|
|
1784
|
-
$$renderer3.push(`<!--]--> `);
|
|
1785
|
-
if (siteConfig().frameworkSwitcher?.enabled) {
|
|
1786
|
-
$$renderer3.push("<!--[0-->");
|
|
1787
|
-
$$renderer3.push(`<span class="st-shell__menuWrap svelte-do0njo">`);
|
|
1788
|
-
Button($$renderer3, {
|
|
1789
|
-
variant: "secondary",
|
|
1790
|
-
size: "sm",
|
|
1791
|
-
class: "st-shell__switch",
|
|
1792
|
-
onclick: () => fwOpen = !fwOpen,
|
|
1793
|
-
"aria-haspopup": "menu",
|
|
1794
|
-
"aria-expanded": fwOpen,
|
|
1795
|
-
children: ($$renderer4) => {
|
|
1796
|
-
Boxes($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1797
|
-
$$renderer4.push(`<!----><span>${escape_html(fwLabel())}</span>`);
|
|
1798
|
-
Chevron_down($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1799
|
-
$$renderer4.push(`<!---->`);
|
|
1800
|
-
},
|
|
1801
|
-
$$slots: { default: true }
|
|
1802
|
-
});
|
|
1803
|
-
$$renderer3.push(`<!----></span> `);
|
|
1804
|
-
MenuPopover($$renderer3, {
|
|
1805
|
-
trigger: fwEl,
|
|
1806
|
-
placement: "bottom-end",
|
|
1807
|
-
label: "Framework",
|
|
1808
|
-
get open() {
|
|
1809
|
-
return fwOpen;
|
|
1810
|
-
},
|
|
1811
|
-
set open($$value) {
|
|
1812
|
-
fwOpen = $$value;
|
|
1813
|
-
$$settled = false;
|
|
1814
|
-
},
|
|
1815
|
-
children: ($$renderer4) => {
|
|
1816
|
-
Menu($$renderer4, {
|
|
1817
|
-
label: "Framework",
|
|
1818
|
-
items: fwItems(),
|
|
1819
|
-
onselect: (v) => {
|
|
1820
|
-
siteConfig().frameworkSwitcher?.onChange?.(v);
|
|
1821
|
-
fwOpen = false;
|
|
1822
|
-
}
|
|
1823
|
-
});
|
|
1824
|
-
},
|
|
1825
|
-
$$slots: { default: true }
|
|
1826
|
-
});
|
|
1827
|
-
$$renderer3.push(`<!---->`);
|
|
1828
|
-
} else {
|
|
1829
|
-
$$renderer3.push("<!--[-1-->");
|
|
1830
|
-
}
|
|
1831
|
-
$$renderer3.push(`<!--]--> `);
|
|
1832
|
-
if ((t().themes ?? []).length) {
|
|
1833
|
-
$$renderer3.push("<!--[0-->");
|
|
1834
|
-
$$renderer3.push(`<span class="st-shell__menuWrap svelte-do0njo">`);
|
|
1835
|
-
Button($$renderer3, {
|
|
1836
|
-
variant: "secondary",
|
|
1837
|
-
size: "sm",
|
|
1838
|
-
class: "st-shell__switch",
|
|
1839
|
-
onclick: () => themeOpen = !themeOpen,
|
|
1840
|
-
"aria-haspopup": "menu",
|
|
1841
|
-
"aria-expanded": themeOpen,
|
|
1842
|
-
children: ($$renderer4) => {
|
|
1843
|
-
Palette($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1844
|
-
$$renderer4.push(`<!----><span>${escape_html(themeLabel())}</span>`);
|
|
1845
|
-
Chevron_down($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1846
|
-
$$renderer4.push(`<!---->`);
|
|
1847
|
-
},
|
|
1848
|
-
$$slots: { default: true }
|
|
1849
|
-
});
|
|
1850
|
-
$$renderer3.push(`<!----></span> `);
|
|
1851
|
-
MenuPopover($$renderer3, {
|
|
1852
|
-
trigger: themeEl,
|
|
1853
|
-
placement: "bottom-end",
|
|
1854
|
-
label: t().themeLabel ?? "Thème",
|
|
1855
|
-
get open() {
|
|
1856
|
-
return themeOpen;
|
|
1857
|
-
},
|
|
1858
|
-
set open($$value) {
|
|
1859
|
-
themeOpen = $$value;
|
|
1860
|
-
$$settled = false;
|
|
1861
|
-
},
|
|
1862
|
-
children: ($$renderer4) => {
|
|
1863
|
-
Menu($$renderer4, {
|
|
1864
|
-
label: t().themeLabel ?? "Thème",
|
|
1865
|
-
items: themeItems(),
|
|
1866
|
-
onselect: (v) => {
|
|
1867
|
-
t().onThemeChange?.(v);
|
|
1868
|
-
themeOpen = false;
|
|
1869
|
-
}
|
|
1870
|
-
});
|
|
1871
|
-
},
|
|
1872
|
-
$$slots: { default: true }
|
|
1873
|
-
});
|
|
1874
|
-
$$renderer3.push(`<!---->`);
|
|
1875
|
-
} else {
|
|
1876
|
-
$$renderer3.push("<!--[-1-->");
|
|
1877
|
-
}
|
|
1878
|
-
$$renderer3.push(`<!--]--> `);
|
|
1879
|
-
if (t().colorMode) {
|
|
1880
|
-
$$renderer3.push("<!--[0-->");
|
|
1881
|
-
IconButton($$renderer3, {
|
|
1882
|
-
size: "sm",
|
|
1883
|
-
variant: "ghost",
|
|
1884
|
-
"aria-label": "Mode couleur",
|
|
1885
|
-
onclick: cycleColorMode,
|
|
1886
|
-
children: ($$renderer4) => {
|
|
1887
|
-
if (t().colorMode === "dark") {
|
|
1888
|
-
$$renderer4.push("<!--[0-->");
|
|
1889
|
-
Moon($$renderer4, { size: 16, "aria-hidden": "true" });
|
|
1890
|
-
} else {
|
|
1891
|
-
$$renderer4.push("<!--[-1-->");
|
|
1892
|
-
Sun($$renderer4, { size: 16, "aria-hidden": "true" });
|
|
1893
|
-
}
|
|
1894
|
-
$$renderer4.push(`<!--]-->`);
|
|
1895
|
-
},
|
|
1896
|
-
$$slots: { default: true }
|
|
1897
|
-
});
|
|
1898
|
-
} else {
|
|
1899
|
-
$$renderer3.push("<!--[-1-->");
|
|
1900
|
-
}
|
|
1901
|
-
$$renderer3.push(`<!--]--> `);
|
|
1902
|
-
if (siteConfig().locale) {
|
|
1903
|
-
$$renderer3.push("<!--[0-->");
|
|
1904
|
-
$$renderer3.push(`<span class="st-shell__menuWrap svelte-do0njo">`);
|
|
1905
|
-
Button($$renderer3, {
|
|
1906
|
-
variant: "secondary",
|
|
1907
|
-
size: "sm",
|
|
1908
|
-
class: "st-shell__switch",
|
|
1909
|
-
onclick: () => localeOpen = !localeOpen,
|
|
1910
|
-
"aria-haspopup": "menu",
|
|
1911
|
-
"aria-expanded": localeOpen,
|
|
1912
|
-
children: ($$renderer4) => {
|
|
1913
|
-
Globe($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1914
|
-
$$renderer4.push(`<!----><span>${escape_html((siteConfig().locale.current ?? "").toUpperCase())}</span>`);
|
|
1915
|
-
Chevron_down($$renderer4, { size: 14, "aria-hidden": "true" });
|
|
1916
|
-
$$renderer4.push(`<!---->`);
|
|
1917
|
-
},
|
|
1918
|
-
$$slots: { default: true }
|
|
1919
|
-
});
|
|
1920
|
-
$$renderer3.push(`<!----></span> `);
|
|
1921
|
-
MenuPopover($$renderer3, {
|
|
1922
|
-
trigger: localeEl,
|
|
1923
|
-
placement: "bottom-end",
|
|
1924
|
-
label: siteConfig().locale.label ?? "Langue",
|
|
1925
|
-
get open() {
|
|
1926
|
-
return localeOpen;
|
|
1927
|
-
},
|
|
1928
|
-
set open($$value) {
|
|
1929
|
-
localeOpen = $$value;
|
|
1930
|
-
$$settled = false;
|
|
1931
|
-
},
|
|
1932
|
-
children: ($$renderer4) => {
|
|
1933
|
-
Menu($$renderer4, {
|
|
1934
|
-
label: siteConfig().locale.label ?? "Langue",
|
|
1935
|
-
items: localeItems(),
|
|
1936
|
-
onselect: (v) => {
|
|
1937
|
-
siteConfig().locale?.onChange?.(v);
|
|
1938
|
-
localeOpen = false;
|
|
1939
|
-
}
|
|
1940
|
-
});
|
|
1941
|
-
},
|
|
1942
|
-
$$slots: { default: true }
|
|
1943
|
-
});
|
|
1944
|
-
$$renderer3.push(`<!---->`);
|
|
1945
|
-
} else {
|
|
1946
|
-
$$renderer3.push("<!--[-1-->");
|
|
1947
|
-
}
|
|
1948
|
-
$$renderer3.push(`<!--]--> `);
|
|
1949
|
-
if (siteConfig().identity) {
|
|
1950
|
-
$$renderer3.push("<!--[0-->");
|
|
1951
|
-
IdentityButton($$renderer3, {
|
|
1952
|
-
mode: "icon",
|
|
1953
|
-
authState: siteConfig().identity.state,
|
|
1954
|
-
user: siteConfig().identity.user ?? null,
|
|
1955
|
-
signInLabel: siteConfig().identity.label ?? "Se connecter",
|
|
1956
|
-
onSignIn: () => siteConfig().identity?.onSignIn?.(),
|
|
1957
|
-
onSignOut: () => siteConfig().identity?.onSignOut?.(),
|
|
1958
|
-
menu: siteConfig().identity.menu ?? []
|
|
1959
|
-
});
|
|
1960
|
-
} else {
|
|
1961
|
-
$$renderer3.push("<!--[-1-->");
|
|
1962
|
-
}
|
|
1963
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
1964
|
-
}
|
|
1965
|
-
let $$settled = true;
|
|
1966
|
-
let $$inner_renderer;
|
|
1967
|
-
function $$render_inner($$renderer3) {
|
|
1968
|
-
if (mode() === "workspace") {
|
|
1969
|
-
$$renderer3.push("<!--[0-->");
|
|
1970
|
-
$$renderer3.push(`<div${attr_class(clsx(workspaceClasses()), "svelte-do0njo")} data-st-app-shell-variant="workspace"${attr("data-utility-mode", utilityMode)}${attr("data-utility-side", utilitySide)}>`);
|
|
1971
|
-
if (topChrome) {
|
|
1972
|
-
$$renderer3.push("<!--[0-->");
|
|
1973
|
-
$$renderer3.push(`<div class="st-appShell__topChrome svelte-do0njo">`);
|
|
1974
|
-
topChrome($$renderer3);
|
|
1975
|
-
$$renderer3.push(`<!----></div>`);
|
|
1976
|
-
} else {
|
|
1977
|
-
$$renderer3.push("<!--[-1-->");
|
|
1978
|
-
}
|
|
1979
|
-
$$renderer3.push(`<!--]--> <div class="st-appShell__body svelte-do0njo">`);
|
|
1980
|
-
if (primaryRail) {
|
|
1981
|
-
$$renderer3.push("<!--[0-->");
|
|
1982
|
-
$$renderer3.push(`<aside class="st-appShell__primaryRail svelte-do0njo" aria-label="Primary rail">`);
|
|
1983
|
-
primaryRail($$renderer3);
|
|
1984
|
-
$$renderer3.push(`<!----></aside>`);
|
|
1985
|
-
} else {
|
|
1986
|
-
$$renderer3.push("<!--[-1-->");
|
|
1987
|
-
}
|
|
1988
|
-
$$renderer3.push(`<!--]--> `);
|
|
1989
|
-
if (navigationPanel) {
|
|
1990
|
-
$$renderer3.push("<!--[0-->");
|
|
1991
|
-
$$renderer3.push(`<aside class="st-appShell__navigationPanel svelte-do0njo"${attr("aria-label", navigationLabel)}>`);
|
|
1992
|
-
navigationPanel($$renderer3);
|
|
1993
|
-
$$renderer3.push(`<!----></aside>`);
|
|
1994
|
-
} else {
|
|
1995
|
-
$$renderer3.push("<!--[-1-->");
|
|
1996
|
-
}
|
|
1997
|
-
$$renderer3.push(`<!--]--> <main class="st-appShell__main svelte-do0njo"${attr("id", mainId)}>`);
|
|
1998
|
-
if (main) {
|
|
1999
|
-
$$renderer3.push("<!--[0-->");
|
|
2000
|
-
main($$renderer3);
|
|
2001
|
-
$$renderer3.push(`<!---->`);
|
|
2002
|
-
} else if (children) {
|
|
2003
|
-
$$renderer3.push("<!--[1-->");
|
|
2004
|
-
children($$renderer3);
|
|
2005
|
-
$$renderer3.push(`<!---->`);
|
|
2006
|
-
} else {
|
|
2007
|
-
$$renderer3.push("<!--[-1-->");
|
|
2008
|
-
}
|
|
2009
|
-
$$renderer3.push(`<!--]--></main> `);
|
|
2010
|
-
if (contextPanel) {
|
|
2011
|
-
$$renderer3.push("<!--[0-->");
|
|
2012
|
-
$$renderer3.push(`<aside class="st-appShell__contextPanel svelte-do0njo"${attr("aria-label", contextLabel)}>`);
|
|
2013
|
-
contextPanel($$renderer3);
|
|
2014
|
-
$$renderer3.push(`<!----></aside>`);
|
|
2015
|
-
} else {
|
|
2016
|
-
$$renderer3.push("<!--[-1-->");
|
|
2017
|
-
}
|
|
2018
|
-
$$renderer3.push(`<!--]--> `);
|
|
2019
|
-
if (utilityPanel) {
|
|
2020
|
-
$$renderer3.push("<!--[0-->");
|
|
2021
|
-
$$renderer3.push(`<aside class="st-appShell__utilityPanel svelte-do0njo"${attr("aria-label", utilityLabel)}>`);
|
|
2022
|
-
utilityPanel($$renderer3);
|
|
2023
|
-
$$renderer3.push(`<!----></aside>`);
|
|
2024
|
-
} else {
|
|
2025
|
-
$$renderer3.push("<!--[-1-->");
|
|
2026
|
-
}
|
|
2027
|
-
$$renderer3.push(`<!--]--></div> `);
|
|
2028
|
-
if (bottomPanel) {
|
|
2029
|
-
$$renderer3.push("<!--[0-->");
|
|
2030
|
-
$$renderer3.push(`<section class="st-appShell__bottomPanel svelte-do0njo" aria-label="Workspace tools">`);
|
|
2031
|
-
bottomPanel($$renderer3);
|
|
2032
|
-
$$renderer3.push(`<!----></section>`);
|
|
2033
|
-
} else {
|
|
2034
|
-
$$renderer3.push("<!--[-1-->");
|
|
2035
|
-
}
|
|
2036
|
-
$$renderer3.push(`<!--]--></div>`);
|
|
2037
|
-
} else {
|
|
2038
|
-
$$renderer3.push("<!--[-1-->");
|
|
2039
|
-
Header($$renderer3, {
|
|
2040
|
-
class: siteClasses(),
|
|
2041
|
-
label: siteConfig().brand?.label ?? "Navigation",
|
|
2042
|
-
logo,
|
|
2043
|
-
navigation,
|
|
2044
|
-
actions
|
|
2045
|
-
});
|
|
2046
|
-
}
|
|
2047
|
-
$$renderer3.push(`<!--]-->`);
|
|
2048
|
-
}
|
|
2049
|
-
do {
|
|
2050
|
-
$$settled = true;
|
|
2051
|
-
$$inner_renderer = $$renderer2.copy();
|
|
2052
|
-
$$render_inner($$inner_renderer);
|
|
2053
|
-
} while (!$$settled);
|
|
2054
|
-
$$renderer2.subsume($$inner_renderer);
|
|
2055
|
-
});
|
|
2056
|
-
}
|
|
2057
710
|
function subjectCell($$renderer, row) {
|
|
2058
711
|
$$renderer.push(`<div><div style="font-weight:600; line-height:1.35">${escape_html(row.subject)}</div> `);
|
|
2059
712
|
if (row.gate) {
|
|
@@ -2261,6 +914,11 @@ function _page($$renderer, $$props) {
|
|
|
2261
914
|
let $$settled = true;
|
|
2262
915
|
let $$inner_renderer;
|
|
2263
916
|
function $$render_inner($$renderer3) {
|
|
917
|
+
head("1uha8ag", $$renderer3, ($$renderer4) => {
|
|
918
|
+
$$renderer4.title(($$renderer5) => {
|
|
919
|
+
$$renderer5.push(`<title>Focus · Suivi</title>`);
|
|
920
|
+
});
|
|
921
|
+
});
|
|
2264
922
|
{
|
|
2265
923
|
let topChrome = function($$renderer4) {
|
|
2266
924
|
{
|
|
@@ -2722,4 +1380,4 @@ function _page($$renderer, $$props) {
|
|
|
2722
1380
|
}
|
|
2723
1381
|
|
|
2724
1382
|
export { _page as default };
|
|
2725
|
-
//# sourceMappingURL=_page.svelte.js-
|
|
1383
|
+
//# sourceMappingURL=_page.svelte.js-DbaEG23x.js.map
|