From 14b3bcefc01c26f51b7efde61084d018c38eb4d3 Mon Sep 17 00:00:00 2001 From: "Temporal Data (cicd)" Date: Thu, 12 Oct 2023 15:17:44 +0000 Subject: [PATCH] Update UI Server --- server/server.go | 1 + .../local/_app/immutable/chunks/1.0a4119e8.js | 1 + .../local/_app/immutable/chunks/1.5f7f77c5.js | 1 - .../local/_app/immutable/chunks/10.290abd56.js | 1 + .../local/_app/immutable/chunks/10.5024c673.js | 1 - .../chunks/{11.79ac20cd.js => 11.56cf5bcf.js} | 2 +- .../local/_app/immutable/chunks/12.650a07c8.js | 1 + .../local/_app/immutable/chunks/12.c924a967.js | 1 - .../chunks/{13.28281bfd.js => 13.073747ff.js} | 2 +- .../local/_app/immutable/chunks/14.8ef792d4.js | 1 - .../local/_app/immutable/chunks/14.b004a682.js | 1 + .../chunks/{15.39bc26a9.js => 15.ad545d62.js} | 2 +- .../chunks/{16.bc433b6c.js => 16.9d62af20.js} | 2 +- .../local/_app/immutable/chunks/18.3f20506b.js | 1 - .../local/_app/immutable/chunks/18.7f98f583.js | 1 + .../local/_app/immutable/chunks/19.390839ca.js | 1 - .../local/_app/immutable/chunks/19.ad38f12d.js | 1 + .../local/_app/immutable/chunks/2.295960ae.js | 1 + .../local/_app/immutable/chunks/2.79fe4589.js | 1 - .../local/_app/immutable/chunks/20.ae483387.js | 1 - .../local/_app/immutable/chunks/20.af6e96e0.js | 1 + .../chunks/{21.7e4e8512.js => 21.7562f22f.js} | 2 +- .../chunks/{22.ca6e2b85.js => 22.5c8e9556.js} | 2 +- .../chunks/{23.97cee4b2.js => 23.9df3ca2f.js} | 2 +- .../chunks/{24.cfdef0a0.js => 24.bb701929.js} | 2 +- .../chunks/{25.26ac4b7a.js => 25.745ddfd2.js} | 2 +- .../chunks/{26.bb542ad8.js => 26.bbdc5510.js} | 2 +- .../chunks/{28.87d9548f.js => 28.9df42e6f.js} | 2 +- .../local/_app/immutable/chunks/29.70f623d1.js | 1 + .../local/_app/immutable/chunks/29.b43187ab.js | 1 - .../local/_app/immutable/chunks/3.769208e8.js | 1 - .../local/_app/immutable/chunks/3.b4ca7a3b.js | 1 + .../local/_app/immutable/chunks/30.1331147c.js | 1 + .../local/_app/immutable/chunks/30.b09896c4.js | 1 - .../chunks/{32.f95bf0ed.js => 32.8f56f07b.js} | 2 +- .../local/_app/immutable/chunks/33.3a093d51.js | 1 - .../local/_app/immutable/chunks/33.bd05c499.js | 1 + .../local/_app/immutable/chunks/34.3a093d51.js | 1 - .../local/_app/immutable/chunks/34.bd05c499.js | 1 + .../local/_app/immutable/chunks/35.3a093d51.js | 1 - .../local/_app/immutable/chunks/35.bd05c499.js | 1 + .../local/_app/immutable/chunks/36.2a5d4a29.js | 1 - .../local/_app/immutable/chunks/36.8969b5f5.js | 1 + .../chunks/{37.fdd90019.js => 37.43e59943.js} | 2 +- .../chunks/{38.5c80b7e2.js => 38.4a7eb935.js} | 2 +- .../chunks/{39.194ab8b7.js => 39.397db4cf.js} | 2 +- .../chunks/{4.40d86375.js => 4.b4187104.js} | 2 +- .../chunks/{40.a2a51c86.js => 40.5a7ba929.js} | 2 +- .../local/_app/immutable/chunks/41.da44ced4.js | 1 - .../local/_app/immutable/chunks/41.fd524cf0.js | 1 + .../local/_app/immutable/chunks/42.5531a61d.js | 1 + .../local/_app/immutable/chunks/42.9d0aeb49.js | 1 - .../chunks/{5.45aa6b48.js => 5.63880ae3.js} | 2 +- .../chunks/{8.073dee1d.js => 8.8fcaefda.js} | 2 +- .../chunks/{9.e7d2d70f.js => 9.f5aedc99.js} | 2 +- .../{_layout.99ff77df.js => _layout.690114a8.js} | 2 +- .../{_layout.566ca3b3.js => _layout.90abbf08.js} | 2 +- .../{_layout.54689e5e.js => _layout.e5ba1cbe.js} | 2 +- .../{_page.0ca14ca8.js => _page.2146a367.js} | 2 +- .../{_page.0f97749e.js => _page.7b7bdabf.js} | 2 +- .../{_page.74aa28ce.js => _page.7bcf1705.js} | 2 +- .../{_page.07b19c47.js => _page.85980bdc.js} | 2 +- .../{_page.ebdb6c84.js => _page.91795e49.js} | 2 +- .../{_page.d621a7e0.js => _page.a0c9b579.js} | 2 +- .../{_page.8f62fe6c.js => _page.ea8eb5bd.js} | 2 +- .../{_page.30c281df.js => _page.f629d15d.js} | 2 +- .../{_page.62d54b09.js => _page.fb15a3aa.js} | 2 +- .../{atob.508dc696.js => atob.45c43758.js} | 2 +- ....1aa6deab.js => batch-operations.852cc113.js} | 2 +- ...ad.727281ed.js => decode-payload.4c64ec1f.js} | 2 +- .../{error.c03b78e5.js => error.8117cc68.js} | 2 +- ....js => event-history-file-import.fffa59db.js} | 2 +- ...1963cc.js => event-summary-table.ec2c2f15.js} | 2 +- ...ce.ea4ce52d.js => events-service.1c8a7c41.js} | 2 +- .../{filters.c175002a.js => filters.291afea8.js} | 2 +- .../{index.c328f0fe.js => index.55808119.js} | 2 +- .../{index.7a0c9a79.js => index.f6d255b2.js} | 2 +- .../{logo.87b20d86.js => logo.e963defc.js} | 2 +- ...c90147f.js => namespaces-service.df04cc52.js} | 2 +- ...gation.a7086f0c.js => navigation.8e7fd3e5.js} | 2 +- ...ginated.e34d6315.js => paginated.58f7628e.js} | 2 +- ...nation.b9ceda84.js => pagination.46c6618d.js} | 2 +- .../_app/immutable/chunks/paths.332820a7.js | 1 + .../_app/immutable/chunks/paths.d13b6714.js | 1 - ...e.1d9f1daf.js => pollers-service.d61f00b6.js} | 2 +- ...ice.a85dd707.js => query-service.9e1c6e1c.js} | 2 +- ...api.c219d4fc.js => route-for-api.4d253eb1.js} | 2 +- ...ute-for.cec09c4c.js => route-for.31ffa191.js} | 2 +- ...87776d2.js => schedule-form-view.0bfcac0a.js} | 2 +- ....80743cbe.js => schedule-service.a1e87565.js} | 2 +- ...hedules.72d75a40.js => schedules.4bb8639b.js} | 2 +- ....23aa4f31.js => settings-service.df92da83.js} | 2 +- ...letons.91a64e01.js => singletons.8ade5c10.js} | 2 +- .../{stores.6ee4c480.js => stores.b96d31b2.js} | 2 +- ...ns.1411130f.js => toggle-buttons.6c8ac659.js} | 2 +- ...list.d2e5ee2d.js => workers-list.817f7dee.js} | 2 +- ....fd47d996.js => workflow-service.2a5b4d45.js} | 2 +- ...rkflows.5bb4bd2c.js => workflows.8837af08.js} | 2 +- ...ata-converter-_port_-page.svelte.053ab711.js} | 2 +- ...run_-history-compact-page.svelte.b99fdf26.js} | 2 +- ..._-_run_-history-feed-page.svelte.4d2e8e32.js} | 2 +- ...low_-_run_-history-layout.svelte.ad60dd3b.js} | 2 +- ...-_workflow_-_run_-history-page.ts.35143581.js | 1 - ...-_workflow_-_run_-history-page.ts.4239d48d.js | 1 + ... (app)-import-events-page.svelte.9752f3ef.js} | 2 +- ...js => (app)-import-layout.svelte.f1c147ee.js} | 2 +- .../entry/(app)-import-page.ts.1d880dc1.js | 1 + .../entry/(app)-import-page.ts.8c750a1c.js | 1 - ...2d0729.js => (app)-layout.svelte.b8890c66.js} | 2 +- .../immutable/entry/(app)-layout.ts.4776fa0a.js | 1 + .../immutable/entry/(app)-layout.ts.71b1fca5.js | 1 - ..._namespace_-archival-page.svelte.0ad15961.js} | 2 +- ...aces-_namespace_-archival-page.ts.9c40fdf0.js | 1 + ...aces-_namespace_-archival-page.ts.ee3cbbd9.js | 1 - ...h-operations-_jobId_-page.svelte.87792882.js} | 2 +- ...ce_-batch-operations-page.svelte.40b19970.js} | 2 +- ...-namespaces-_namespace_-layout.ts.6f8d1f36.js | 1 - ...-namespaces-_namespace_-layout.ts.8ed676ff.js | 1 + ...mespaces-_namespace_-page.svelte.605a1a89.js} | 2 +- ...p)-namespaces-_namespace_-page.ts.20f3d541.js | 1 + ...p)-namespaces-_namespace_-page.ts.6316ee18.js | 1 - ...ules-_schedule_-edit-page.svelte.7e833899.js} | 2 +- ...schedules-_schedule_-page.svelte.80ec6955.js} | 2 +- ...ce_-schedules-create-page.svelte.448a9455.js} | 2 +- ...namespace_-schedules-page.svelte.ec37734f.js} | 2 +- ...-task-queues-_queue_-page.svelte.8fd6371a.js} | 2 +- ...ow_-_run_-history-compact-page.ts.120311a5.js | 1 + ...ow_-_run_-history-compact-page.ts.b1b77967.js | 1 - ...kflow_-_run_-history-feed-page.ts.120311a5.js | 1 + ...kflow_-_run_-history-feed-page.ts.b1b77967.js | 1 - ...kflow_-_run_-history-json-page.ts.120311a5.js | 1 + ...kflow_-_run_-history-json-page.ts.b1b77967.js | 1 - ...kflow_-_run_-history-page.svelte.6c7c67df.js} | 2 +- ...s-_workflow_-_run_-layout.svelte.ae07483a.js} | 2 +- ..._-pending-activities-page.svelte.97a7b199.js} | 2 +- ...orkflow_-_run_-query-page.svelte.2641e3e2.js} | 2 +- ...w_-_run_-stack-trace-page.svelte.06bc5a65.js} | 2 +- ...kflow_-_run_-workers-page.svelte.3367ba57.js} | 2 +- ...ce_-workflows-_workflow_-page.ts.df57b0c9.js} | 2 +- ...namespace_-workflows-page.svelte.44cbf6ca.js} | 2 +- ... => (app)-namespaces-page.svelte.4f953d7f.js} | 2 +- ...fe20f2f8.js => (app)-page.svelte.44fe0b6b.js} | 2 +- .../immutable/entry/(app)-page.ts.4d49dca0.js | 1 - .../immutable/entry/(app)-page.ts.7df4a55a.js | 1 + ...pp)-select-namespace-page.svelte.23cd0f2f.js} | 2 +- .../entry/(login)-layout.ts.4474fe6f.js | 1 + .../entry/(login)-layout.ts.ca81ed84.js | 1 - ....js => (login)-login-page.svelte.f2003811.js} | 2 +- ...js => (login)-signin-page.svelte.f2003811.js} | 2 +- ...lte.0955de1f.js => _error.svelte.daf861d3.js} | 2 +- .../entry/{app.83d87289.js => app.d440df26.js} | 2 +- .../{start.353a99c6.js => start.203bca8a.js} | 2 +- ui/assets/local/_app/version.json | 2 +- ui/assets/local/index.html | 16 ++++++++-------- 154 files changed, 132 insertions(+), 131 deletions(-) create mode 100644 ui/assets/local/_app/immutable/chunks/1.0a4119e8.js delete mode 100644 ui/assets/local/_app/immutable/chunks/1.5f7f77c5.js create mode 100644 ui/assets/local/_app/immutable/chunks/10.290abd56.js delete mode 100644 ui/assets/local/_app/immutable/chunks/10.5024c673.js rename ui/assets/local/_app/immutable/chunks/{11.79ac20cd.js => 11.56cf5bcf.js} (57%) create mode 100644 ui/assets/local/_app/immutable/chunks/12.650a07c8.js delete mode 100644 ui/assets/local/_app/immutable/chunks/12.c924a967.js rename ui/assets/local/_app/immutable/chunks/{13.28281bfd.js => 13.073747ff.js} (62%) delete mode 100644 ui/assets/local/_app/immutable/chunks/14.8ef792d4.js create mode 100644 ui/assets/local/_app/immutable/chunks/14.b004a682.js rename ui/assets/local/_app/immutable/chunks/{15.39bc26a9.js => 15.ad545d62.js} (56%) rename ui/assets/local/_app/immutable/chunks/{16.bc433b6c.js => 16.9d62af20.js} (55%) delete mode 100644 ui/assets/local/_app/immutable/chunks/18.3f20506b.js create mode 100644 ui/assets/local/_app/immutable/chunks/18.7f98f583.js delete mode 100644 ui/assets/local/_app/immutable/chunks/19.390839ca.js create mode 100644 ui/assets/local/_app/immutable/chunks/19.ad38f12d.js create mode 100644 ui/assets/local/_app/immutable/chunks/2.295960ae.js delete mode 100644 ui/assets/local/_app/immutable/chunks/2.79fe4589.js delete mode 100644 ui/assets/local/_app/immutable/chunks/20.ae483387.js create mode 100644 ui/assets/local/_app/immutable/chunks/20.af6e96e0.js rename ui/assets/local/_app/immutable/chunks/{21.7e4e8512.js => 21.7562f22f.js} (50%) rename ui/assets/local/_app/immutable/chunks/{22.ca6e2b85.js => 22.5c8e9556.js} (53%) rename ui/assets/local/_app/immutable/chunks/{23.97cee4b2.js => 23.9df3ca2f.js} (52%) rename ui/assets/local/_app/immutable/chunks/{24.cfdef0a0.js => 24.bb701929.js} (51%) rename ui/assets/local/_app/immutable/chunks/{25.26ac4b7a.js => 25.745ddfd2.js} (53%) rename ui/assets/local/_app/immutable/chunks/{26.bb542ad8.js => 26.bbdc5510.js} (50%) rename ui/assets/local/_app/immutable/chunks/{28.87d9548f.js => 28.9df42e6f.js} (51%) create mode 100644 ui/assets/local/_app/immutable/chunks/29.70f623d1.js delete mode 100644 ui/assets/local/_app/immutable/chunks/29.b43187ab.js delete mode 100644 ui/assets/local/_app/immutable/chunks/3.769208e8.js create mode 100644 ui/assets/local/_app/immutable/chunks/3.b4ca7a3b.js create mode 100644 ui/assets/local/_app/immutable/chunks/30.1331147c.js delete mode 100644 ui/assets/local/_app/immutable/chunks/30.b09896c4.js rename ui/assets/local/_app/immutable/chunks/{32.f95bf0ed.js => 32.8f56f07b.js} (68%) delete mode 100644 ui/assets/local/_app/immutable/chunks/33.3a093d51.js create mode 100644 ui/assets/local/_app/immutable/chunks/33.bd05c499.js delete mode 100644 ui/assets/local/_app/immutable/chunks/34.3a093d51.js create mode 100644 ui/assets/local/_app/immutable/chunks/34.bd05c499.js delete mode 100644 ui/assets/local/_app/immutable/chunks/35.3a093d51.js create mode 100644 ui/assets/local/_app/immutable/chunks/35.bd05c499.js delete mode 100644 ui/assets/local/_app/immutable/chunks/36.2a5d4a29.js create mode 100644 ui/assets/local/_app/immutable/chunks/36.8969b5f5.js rename ui/assets/local/_app/immutable/chunks/{37.fdd90019.js => 37.43e59943.js} (55%) rename ui/assets/local/_app/immutable/chunks/{38.5c80b7e2.js => 38.4a7eb935.js} (57%) rename ui/assets/local/_app/immutable/chunks/{39.194ab8b7.js => 39.397db4cf.js} (56%) rename ui/assets/local/_app/immutable/chunks/{4.40d86375.js => 4.b4187104.js} (54%) rename ui/assets/local/_app/immutable/chunks/{40.a2a51c86.js => 40.5a7ba929.js} (60%) delete mode 100644 ui/assets/local/_app/immutable/chunks/41.da44ced4.js create mode 100644 ui/assets/local/_app/immutable/chunks/41.fd524cf0.js create mode 100644 ui/assets/local/_app/immutable/chunks/42.5531a61d.js delete mode 100644 ui/assets/local/_app/immutable/chunks/42.9d0aeb49.js rename ui/assets/local/_app/immutable/chunks/{5.45aa6b48.js => 5.63880ae3.js} (54%) rename ui/assets/local/_app/immutable/chunks/{8.073dee1d.js => 8.8fcaefda.js} (54%) rename ui/assets/local/_app/immutable/chunks/{9.e7d2d70f.js => 9.f5aedc99.js} (57%) rename ui/assets/local/_app/immutable/chunks/{_layout.99ff77df.js => _layout.690114a8.js} (89%) rename ui/assets/local/_app/immutable/chunks/{_layout.566ca3b3.js => _layout.90abbf08.js} (81%) rename ui/assets/local/_app/immutable/chunks/{_layout.54689e5e.js => _layout.e5ba1cbe.js} (83%) rename ui/assets/local/_app/immutable/chunks/{_page.0ca14ca8.js => _page.2146a367.js} (75%) rename ui/assets/local/_app/immutable/chunks/{_page.0f97749e.js => _page.7b7bdabf.js} (88%) rename ui/assets/local/_app/immutable/chunks/{_page.74aa28ce.js => _page.7bcf1705.js} (83%) rename ui/assets/local/_app/immutable/chunks/{_page.07b19c47.js => _page.85980bdc.js} (80%) rename ui/assets/local/_app/immutable/chunks/{_page.ebdb6c84.js => _page.91795e49.js} (89%) rename ui/assets/local/_app/immutable/chunks/{_page.d621a7e0.js => _page.a0c9b579.js} (74%) rename ui/assets/local/_app/immutable/chunks/{_page.8f62fe6c.js => _page.ea8eb5bd.js} (85%) rename ui/assets/local/_app/immutable/chunks/{_page.30c281df.js => _page.f629d15d.js} (80%) rename ui/assets/local/_app/immutable/chunks/{_page.62d54b09.js => _page.fb15a3aa.js} (80%) rename ui/assets/local/_app/immutable/chunks/{atob.508dc696.js => atob.45c43758.js} (72%) rename ui/assets/local/_app/immutable/chunks/{batch-operations.1aa6deab.js => batch-operations.852cc113.js} (97%) rename ui/assets/local/_app/immutable/chunks/{decode-payload.727281ed.js => decode-payload.4c64ec1f.js} (99%) rename ui/assets/local/_app/immutable/chunks/{error.c03b78e5.js => error.8117cc68.js} (95%) rename ui/assets/local/_app/immutable/chunks/{event-history-file-import.9cdb1d3e.js => event-history-file-import.fffa59db.js} (90%) rename ui/assets/local/_app/immutable/chunks/{event-summary-table.8e1963cc.js => event-summary-table.ec2c2f15.js} (99%) rename ui/assets/local/_app/immutable/chunks/{events-service.ea4ce52d.js => events-service.1c8a7c41.js} (85%) rename ui/assets/local/_app/immutable/chunks/{filters.c175002a.js => filters.291afea8.js} (87%) rename ui/assets/local/_app/immutable/chunks/{index.c328f0fe.js => index.55808119.js} (97%) rename ui/assets/local/_app/immutable/chunks/{index.7a0c9a79.js => index.f6d255b2.js} (96%) rename ui/assets/local/_app/immutable/chunks/{logo.87b20d86.js => logo.e963defc.js} (95%) rename ui/assets/local/_app/immutable/chunks/{namespaces-service.9c90147f.js => namespaces-service.df04cc52.js} (85%) rename ui/assets/local/_app/immutable/chunks/{navigation.a7086f0c.js => navigation.8e7fd3e5.js} (69%) rename ui/assets/local/_app/immutable/chunks/{paginated.e34d6315.js => paginated.58f7628e.js} (89%) rename ui/assets/local/_app/immutable/chunks/{pagination.b9ceda84.js => pagination.46c6618d.js} (99%) create mode 100644 ui/assets/local/_app/immutable/chunks/paths.332820a7.js delete mode 100644 ui/assets/local/_app/immutable/chunks/paths.d13b6714.js rename ui/assets/local/_app/immutable/chunks/{pollers-service.1d9f1daf.js => pollers-service.d61f00b6.js} (98%) rename ui/assets/local/_app/immutable/chunks/{query-service.a85dd707.js => query-service.9e1c6e1c.js} (91%) rename ui/assets/local/_app/immutable/chunks/{route-for-api.c219d4fc.js => route-for-api.4d253eb1.js} (97%) rename ui/assets/local/_app/immutable/chunks/{route-for.cec09c4c.js => route-for.31ffa191.js} (97%) rename ui/assets/local/_app/immutable/chunks/{schedule-form-view.e87776d2.js => schedule-form-view.0bfcac0a.js} (99%) rename ui/assets/local/_app/immutable/chunks/{schedule-service.80743cbe.js => schedule-service.a1e87565.js} (98%) rename ui/assets/local/_app/immutable/chunks/{schedules.72d75a40.js => schedules.4bb8639b.js} (94%) rename ui/assets/local/_app/immutable/chunks/{settings-service.23aa4f31.js => settings-service.df92da83.js} (96%) rename ui/assets/local/_app/immutable/chunks/{singletons.91a64e01.js => singletons.8ade5c10.js} (97%) rename ui/assets/local/_app/immutable/chunks/{stores.6ee4c480.js => stores.b96d31b2.js} (69%) rename ui/assets/local/_app/immutable/chunks/{toggle-buttons.1411130f.js => toggle-buttons.6c8ac659.js} (98%) rename ui/assets/local/_app/immutable/chunks/{workers-list.d2e5ee2d.js => workers-list.817f7dee.js} (99%) rename ui/assets/local/_app/immutable/chunks/{workflow-service.fd47d996.js => workflow-service.2a5b4d45.js} (96%) rename ui/assets/local/_app/immutable/chunks/{workflows.5bb4bd2c.js => workflows.8837af08.js} (82%) rename ui/assets/local/_app/immutable/entry/{(app)-data-converter-_port_-page.svelte.9436853c.js => (app)-data-converter-_port_-page.svelte.053ab711.js} (76%) rename ui/assets/local/_app/immutable/entry/{(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js => (app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js} (94%) rename ui/assets/local/_app/immutable/entry/{(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js => (app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js} (94%) rename ui/assets/local/_app/immutable/entry/{(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js => (app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js} (95%) delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.35143581.js create mode 100644 ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.4239d48d.js rename ui/assets/local/_app/immutable/entry/{(app)-import-events-page.svelte.97e60250.js => (app)-import-events-page.svelte.9752f3ef.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-import-layout.svelte.fefb9355.js => (app)-import-layout.svelte.f1c147ee.js} (93%) create mode 100644 ui/assets/local/_app/immutable/entry/(app)-import-page.ts.1d880dc1.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-import-page.ts.8c750a1c.js rename ui/assets/local/_app/immutable/entry/{(app)-layout.svelte.842d0729.js => (app)-layout.svelte.b8890c66.js} (99%) create mode 100644 ui/assets/local/_app/immutable/entry/(app)-layout.ts.4776fa0a.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-layout.ts.71b1fca5.js rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js => (app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js} (98%) create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.9c40fdf0.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.ee3cbbd9.js rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js => (app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js => (app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js} (97%) delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.6f8d1f36.js create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.8ed676ff.js rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-page.svelte.32bb158c.js => (app)-namespaces-_namespace_-page.svelte.605a1a89.js} (99%) create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20f3d541.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.6316ee18.js rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js => (app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js} (86%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js => (app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js => (app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js} (88%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js => (app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js => (app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js} (92%) create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.120311a5.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.b1b77967.js create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.120311a5.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.b1b77967.js create mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.120311a5.js delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.b1b77967.js rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js} (99%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js} (99%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js} (98%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js => (app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js} (92%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.f9d88a94.js => (app)-namespaces-_namespace_-workflows-_workflow_-page.ts.df57b0c9.js} (57%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js => (app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js} (99%) rename ui/assets/local/_app/immutable/entry/{(app)-namespaces-page.svelte.126cd0e2.js => (app)-namespaces-page.svelte.4f953d7f.js} (96%) rename ui/assets/local/_app/immutable/entry/{(app)-page.svelte.fe20f2f8.js => (app)-page.svelte.44fe0b6b.js} (79%) delete mode 100644 ui/assets/local/_app/immutable/entry/(app)-page.ts.4d49dca0.js create mode 100644 ui/assets/local/_app/immutable/entry/(app)-page.ts.7df4a55a.js rename ui/assets/local/_app/immutable/entry/{(app)-select-namespace-page.svelte.7a8f6006.js => (app)-select-namespace-page.svelte.23cd0f2f.js} (97%) create mode 100644 ui/assets/local/_app/immutable/entry/(login)-layout.ts.4474fe6f.js delete mode 100644 ui/assets/local/_app/immutable/entry/(login)-layout.ts.ca81ed84.js rename ui/assets/local/_app/immutable/entry/{(login)-login-page.svelte.a274105d.js => (login)-login-page.svelte.f2003811.js} (94%) rename ui/assets/local/_app/immutable/entry/{(login)-signin-page.svelte.a274105d.js => (login)-signin-page.svelte.f2003811.js} (94%) rename ui/assets/local/_app/immutable/entry/{_error.svelte.0955de1f.js => _error.svelte.daf861d3.js} (86%) rename ui/assets/local/_app/immutable/entry/{app.83d87289.js => app.d440df26.js} (68%) rename ui/assets/local/_app/immutable/entry/{start.353a99c6.js => start.203bca8a.js} (99%) diff --git a/server/server.go b/server/server.go index cc7416aad0..e0fd2eae85 100644 --- a/server/server.go +++ b/server/server.go @@ -59,6 +59,7 @@ func NewServer(opts ...server_options.ServerOption) *Server { []string{ // NOTE: Authorization header is forwarded by grpc-gateway auth.AuthorizationExtrasHeader, + "Caller-Type", }), })) diff --git a/ui/assets/local/_app/immutable/chunks/1.0a4119e8.js b/ui/assets/local/_app/immutable/chunks/1.0a4119e8.js new file mode 100644 index 0000000000..e66b4cf113 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/1.0a4119e8.js @@ -0,0 +1 @@ +import{default as t}from"../entry/_error.svelte.daf861d3.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/1.5f7f77c5.js b/ui/assets/local/_app/immutable/chunks/1.5f7f77c5.js deleted file mode 100644 index 5e1fa8645e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/1.5f7f77c5.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/_error.svelte.0955de1f.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/10.290abd56.js b/ui/assets/local/_app/immutable/chunks/10.290abd56.js new file mode 100644 index 0000000000..ba8af27214 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/10.290abd56.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.ea8eb5bd.js";import{default as t}from"../entry/(app)-page.svelte.44fe0b6b.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/10.5024c673.js b/ui/assets/local/_app/immutable/chunks/10.5024c673.js deleted file mode 100644 index 27a887d7d1..0000000000 --- a/ui/assets/local/_app/immutable/chunks/10.5024c673.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.8f62fe6c.js";import{default as t}from"../entry/(app)-page.svelte.fe20f2f8.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/11.79ac20cd.js b/ui/assets/local/_app/immutable/chunks/11.56cf5bcf.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/11.79ac20cd.js rename to ui/assets/local/_app/immutable/chunks/11.56cf5bcf.js index 325237bcec..9d1fd56e96 100644 --- a/ui/assets/local/_app/immutable/chunks/11.79ac20cd.js +++ b/ui/assets/local/_app/immutable/chunks/11.56cf5bcf.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.9436853c.js";export{t as component}; +import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.053ab711.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/12.650a07c8.js b/ui/assets/local/_app/immutable/chunks/12.650a07c8.js new file mode 100644 index 0000000000..6097cc330f --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/12.650a07c8.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.a0c9b579.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/12.c924a967.js b/ui/assets/local/_app/immutable/chunks/12.c924a967.js deleted file mode 100644 index bd8400b034..0000000000 --- a/ui/assets/local/_app/immutable/chunks/12.c924a967.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.d621a7e0.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/13.28281bfd.js b/ui/assets/local/_app/immutable/chunks/13.073747ff.js similarity index 62% rename from ui/assets/local/_app/immutable/chunks/13.28281bfd.js rename to ui/assets/local/_app/immutable/chunks/13.073747ff.js index bc2dd6f793..1c8c123e9e 100644 --- a/ui/assets/local/_app/immutable/chunks/13.28281bfd.js +++ b/ui/assets/local/_app/immutable/chunks/13.073747ff.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-page.svelte.97e60250.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-page.svelte.9752f3ef.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/14.8ef792d4.js b/ui/assets/local/_app/immutable/chunks/14.8ef792d4.js deleted file mode 100644 index dab63d7592..0000000000 --- a/ui/assets/local/_app/immutable/chunks/14.8ef792d4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.0ca14ca8.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/14.b004a682.js b/ui/assets/local/_app/immutable/chunks/14.b004a682.js new file mode 100644 index 0000000000..9a5cd60a69 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/14.b004a682.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.2146a367.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/15.39bc26a9.js b/ui/assets/local/_app/immutable/chunks/15.ad545d62.js similarity index 56% rename from ui/assets/local/_app/immutable/chunks/15.39bc26a9.js rename to ui/assets/local/_app/immutable/chunks/15.ad545d62.js index 693d76c336..f24c9b3d18 100644 --- a/ui/assets/local/_app/immutable/chunks/15.39bc26a9.js +++ b/ui/assets/local/_app/immutable/chunks/15.ad545d62.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/16.bc433b6c.js b/ui/assets/local/_app/immutable/chunks/16.9d62af20.js similarity index 55% rename from ui/assets/local/_app/immutable/chunks/16.bc433b6c.js rename to ui/assets/local/_app/immutable/chunks/16.9d62af20.js index 05447ad56a..c20ddecfca 100644 --- a/ui/assets/local/_app/immutable/chunks/16.bc433b6c.js +++ b/ui/assets/local/_app/immutable/chunks/16.9d62af20.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/18.3f20506b.js b/ui/assets/local/_app/immutable/chunks/18.3f20506b.js deleted file mode 100644 index cdeefae3f7..0000000000 --- a/ui/assets/local/_app/immutable/chunks/18.3f20506b.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-page.svelte.126cd0e2.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/18.7f98f583.js b/ui/assets/local/_app/immutable/chunks/18.7f98f583.js new file mode 100644 index 0000000000..71179308a9 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/18.7f98f583.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-page.svelte.4f953d7f.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/19.390839ca.js b/ui/assets/local/_app/immutable/chunks/19.390839ca.js deleted file mode 100644 index 0698219f3f..0000000000 --- a/ui/assets/local/_app/immutable/chunks/19.390839ca.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.ebdb6c84.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.32bb158c.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/19.ad38f12d.js b/ui/assets/local/_app/immutable/chunks/19.ad38f12d.js new file mode 100644 index 0000000000..2607ab8bcc --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/19.ad38f12d.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.91795e49.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.605a1a89.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/2.295960ae.js b/ui/assets/local/_app/immutable/chunks/2.295960ae.js new file mode 100644 index 0000000000..688e5f7dde --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/2.295960ae.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout.e5ba1cbe.js";import{default as t}from"../entry/(app)-layout.svelte.b8890c66.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/2.79fe4589.js b/ui/assets/local/_app/immutable/chunks/2.79fe4589.js deleted file mode 100644 index fe4b93ef6e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/2.79fe4589.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_layout.54689e5e.js";import{default as t}from"../entry/(app)-layout.svelte.842d0729.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/20.ae483387.js b/ui/assets/local/_app/immutable/chunks/20.ae483387.js deleted file mode 100644 index fdb34585fc..0000000000 --- a/ui/assets/local/_app/immutable/chunks/20.ae483387.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.0f97749e.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/20.af6e96e0.js b/ui/assets/local/_app/immutable/chunks/20.af6e96e0.js new file mode 100644 index 0000000000..a4526b4e00 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/20.af6e96e0.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.7b7bdabf.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/21.7e4e8512.js b/ui/assets/local/_app/immutable/chunks/21.7562f22f.js similarity index 50% rename from ui/assets/local/_app/immutable/chunks/21.7e4e8512.js rename to ui/assets/local/_app/immutable/chunks/21.7562f22f.js index 7391bc7495..4410593dd0 100644 --- a/ui/assets/local/_app/immutable/chunks/21.7e4e8512.js +++ b/ui/assets/local/_app/immutable/chunks/21.7562f22f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/22.ca6e2b85.js b/ui/assets/local/_app/immutable/chunks/22.5c8e9556.js similarity index 53% rename from ui/assets/local/_app/immutable/chunks/22.ca6e2b85.js rename to ui/assets/local/_app/immutable/chunks/22.5c8e9556.js index 8425bd3ea5..7f260f7a32 100644 --- a/ui/assets/local/_app/immutable/chunks/22.ca6e2b85.js +++ b/ui/assets/local/_app/immutable/chunks/22.5c8e9556.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/23.97cee4b2.js b/ui/assets/local/_app/immutable/chunks/23.9df3ca2f.js similarity index 52% rename from ui/assets/local/_app/immutable/chunks/23.97cee4b2.js rename to ui/assets/local/_app/immutable/chunks/23.9df3ca2f.js index b836a3e9e8..b426741cf8 100644 --- a/ui/assets/local/_app/immutable/chunks/23.97cee4b2.js +++ b/ui/assets/local/_app/immutable/chunks/23.9df3ca2f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/24.cfdef0a0.js b/ui/assets/local/_app/immutable/chunks/24.bb701929.js similarity index 51% rename from ui/assets/local/_app/immutable/chunks/24.cfdef0a0.js rename to ui/assets/local/_app/immutable/chunks/24.bb701929.js index 44820eed1c..7676863e33 100644 --- a/ui/assets/local/_app/immutable/chunks/24.cfdef0a0.js +++ b/ui/assets/local/_app/immutable/chunks/24.bb701929.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/25.26ac4b7a.js b/ui/assets/local/_app/immutable/chunks/25.745ddfd2.js similarity index 53% rename from ui/assets/local/_app/immutable/chunks/25.26ac4b7a.js rename to ui/assets/local/_app/immutable/chunks/25.745ddfd2.js index 94de5d8db7..ba2a164251 100644 --- a/ui/assets/local/_app/immutable/chunks/25.26ac4b7a.js +++ b/ui/assets/local/_app/immutable/chunks/25.745ddfd2.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/26.bb542ad8.js b/ui/assets/local/_app/immutable/chunks/26.bbdc5510.js similarity index 50% rename from ui/assets/local/_app/immutable/chunks/26.bb542ad8.js rename to ui/assets/local/_app/immutable/chunks/26.bbdc5510.js index 0d46a93615..53c4457533 100644 --- a/ui/assets/local/_app/immutable/chunks/26.bb542ad8.js +++ b/ui/assets/local/_app/immutable/chunks/26.bbdc5510.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/28.87d9548f.js b/ui/assets/local/_app/immutable/chunks/28.9df42e6f.js similarity index 51% rename from ui/assets/local/_app/immutable/chunks/28.87d9548f.js rename to ui/assets/local/_app/immutable/chunks/28.9df42e6f.js index bb77d13659..66a5cc5450 100644 --- a/ui/assets/local/_app/immutable/chunks/28.87d9548f.js +++ b/ui/assets/local/_app/immutable/chunks/28.9df42e6f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/29.70f623d1.js b/ui/assets/local/_app/immutable/chunks/29.70f623d1.js new file mode 100644 index 0000000000..04b4789dbd --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/29.70f623d1.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.b14944b6.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/29.b43187ab.js b/ui/assets/local/_app/immutable/chunks/29.b43187ab.js deleted file mode 100644 index b223aaa994..0000000000 --- a/ui/assets/local/_app/immutable/chunks/29.b43187ab.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.b14944b6.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/3.769208e8.js b/ui/assets/local/_app/immutable/chunks/3.769208e8.js deleted file mode 100644 index 8b921c8430..0000000000 --- a/ui/assets/local/_app/immutable/chunks/3.769208e8.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-import-layout.svelte.fefb9355.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/3.b4ca7a3b.js b/ui/assets/local/_app/immutable/chunks/3.b4ca7a3b.js new file mode 100644 index 0000000000..c9679bf2e5 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/3.b4ca7a3b.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-import-layout.svelte.f1c147ee.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/30.1331147c.js b/ui/assets/local/_app/immutable/chunks/30.1331147c.js new file mode 100644 index 0000000000..7f9682b411 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/30.1331147c.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.7bcf1705.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/30.b09896c4.js b/ui/assets/local/_app/immutable/chunks/30.b09896c4.js deleted file mode 100644 index 591531b33f..0000000000 --- a/ui/assets/local/_app/immutable/chunks/30.b09896c4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.74aa28ce.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/32.f95bf0ed.js b/ui/assets/local/_app/immutable/chunks/32.8f56f07b.js similarity index 68% rename from ui/assets/local/_app/immutable/chunks/32.f95bf0ed.js rename to ui/assets/local/_app/immutable/chunks/32.8f56f07b.js index 758131e7f9..9513c4616c 100644 --- a/ui/assets/local/_app/immutable/chunks/32.f95bf0ed.js +++ b/ui/assets/local/_app/immutable/chunks/32.8f56f07b.js @@ -1 +1 @@ -import{_ as r}from"./_page.ed77219c.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js";export{t as component,r as universal}; +import{_ as r}from"./_page.ed77219c.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/33.3a093d51.js b/ui/assets/local/_app/immutable/chunks/33.3a093d51.js deleted file mode 100644 index f4f22c304f..0000000000 --- a/ui/assets/local/_app/immutable/chunks/33.3a093d51.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.30c281df.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/33.bd05c499.js b/ui/assets/local/_app/immutable/chunks/33.bd05c499.js new file mode 100644 index 0000000000..aef06fa382 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/33.bd05c499.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.f629d15d.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/34.3a093d51.js b/ui/assets/local/_app/immutable/chunks/34.3a093d51.js deleted file mode 100644 index b1d78abddd..0000000000 --- a/ui/assets/local/_app/immutable/chunks/34.3a093d51.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.07b19c47.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/34.bd05c499.js b/ui/assets/local/_app/immutable/chunks/34.bd05c499.js new file mode 100644 index 0000000000..6e7b36a3f0 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/34.bd05c499.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.fb15a3aa.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/35.3a093d51.js b/ui/assets/local/_app/immutable/chunks/35.3a093d51.js deleted file mode 100644 index 28b740906d..0000000000 --- a/ui/assets/local/_app/immutable/chunks/35.3a093d51.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.62d54b09.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/35.bd05c499.js b/ui/assets/local/_app/immutable/chunks/35.bd05c499.js new file mode 100644 index 0000000000..aead5c355b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/35.bd05c499.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.85980bdc.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/36.2a5d4a29.js b/ui/assets/local/_app/immutable/chunks/36.2a5d4a29.js deleted file mode 100644 index f5c16e5a53..0000000000 --- a/ui/assets/local/_app/immutable/chunks/36.2a5d4a29.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/36.8969b5f5.js b/ui/assets/local/_app/immutable/chunks/36.8969b5f5.js new file mode 100644 index 0000000000..eba0e5e431 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/36.8969b5f5.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/37.fdd90019.js b/ui/assets/local/_app/immutable/chunks/37.43e59943.js similarity index 55% rename from ui/assets/local/_app/immutable/chunks/37.fdd90019.js rename to ui/assets/local/_app/immutable/chunks/37.43e59943.js index 14d77b493d..5b8d8e1fb5 100644 --- a/ui/assets/local/_app/immutable/chunks/37.fdd90019.js +++ b/ui/assets/local/_app/immutable/chunks/37.43e59943.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/38.5c80b7e2.js b/ui/assets/local/_app/immutable/chunks/38.4a7eb935.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/38.5c80b7e2.js rename to ui/assets/local/_app/immutable/chunks/38.4a7eb935.js index 58d4156a5b..9e04e7e6ee 100644 --- a/ui/assets/local/_app/immutable/chunks/38.5c80b7e2.js +++ b/ui/assets/local/_app/immutable/chunks/38.4a7eb935.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/39.194ab8b7.js b/ui/assets/local/_app/immutable/chunks/39.397db4cf.js similarity index 56% rename from ui/assets/local/_app/immutable/chunks/39.194ab8b7.js rename to ui/assets/local/_app/immutable/chunks/39.397db4cf.js index 824d38df9b..58b93e2171 100644 --- a/ui/assets/local/_app/immutable/chunks/39.194ab8b7.js +++ b/ui/assets/local/_app/immutable/chunks/39.397db4cf.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/4.40d86375.js b/ui/assets/local/_app/immutable/chunks/4.b4187104.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/4.40d86375.js rename to ui/assets/local/_app/immutable/chunks/4.b4187104.js index 9aa6980a91..fbc8326a0c 100644 --- a/ui/assets/local/_app/immutable/chunks/4.40d86375.js +++ b/ui/assets/local/_app/immutable/chunks/4.b4187104.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/40.a2a51c86.js b/ui/assets/local/_app/immutable/chunks/40.5a7ba929.js similarity index 60% rename from ui/assets/local/_app/immutable/chunks/40.a2a51c86.js rename to ui/assets/local/_app/immutable/chunks/40.5a7ba929.js index 868cd9c715..4d7fa4a432 100644 --- a/ui/assets/local/_app/immutable/chunks/40.a2a51c86.js +++ b/ui/assets/local/_app/immutable/chunks/40.5a7ba929.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-select-namespace-page.svelte.7a8f6006.js";export{t as component}; +import{default as t}from"../entry/(app)-select-namespace-page.svelte.23cd0f2f.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/41.da44ced4.js b/ui/assets/local/_app/immutable/chunks/41.da44ced4.js deleted file mode 100644 index ce11b858b6..0000000000 --- a/ui/assets/local/_app/immutable/chunks/41.da44ced4.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-login-page.svelte.a274105d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/41.fd524cf0.js b/ui/assets/local/_app/immutable/chunks/41.fd524cf0.js new file mode 100644 index 0000000000..5b4f4f3e54 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/41.fd524cf0.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-login-page.svelte.f2003811.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/42.5531a61d.js b/ui/assets/local/_app/immutable/chunks/42.5531a61d.js new file mode 100644 index 0000000000..531a37987f --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/42.5531a61d.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-signin-page.svelte.f2003811.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/42.9d0aeb49.js b/ui/assets/local/_app/immutable/chunks/42.9d0aeb49.js deleted file mode 100644 index da3f2a4335..0000000000 --- a/ui/assets/local/_app/immutable/chunks/42.9d0aeb49.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-signin-page.svelte.a274105d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/5.45aa6b48.js b/ui/assets/local/_app/immutable/chunks/5.63880ae3.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/5.45aa6b48.js rename to ui/assets/local/_app/immutable/chunks/5.63880ae3.js index 04ac0c945e..f1eecaaa0f 100644 --- a/ui/assets/local/_app/immutable/chunks/5.45aa6b48.js +++ b/ui/assets/local/_app/immutable/chunks/5.63880ae3.js @@ -1 +1 @@ -import{_ as r}from"./_layout.99ff77df.js";import{default as t}from"../entry/layout.svelte.fc6457fe.js";export{t as component,r as universal}; +import{_ as r}from"./_layout.690114a8.js";import{default as t}from"../entry/layout.svelte.fc6457fe.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/8.073dee1d.js b/ui/assets/local/_app/immutable/chunks/8.8fcaefda.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/8.073dee1d.js rename to ui/assets/local/_app/immutable/chunks/8.8fcaefda.js index 4169e1e92c..51efd25c13 100644 --- a/ui/assets/local/_app/immutable/chunks/8.073dee1d.js +++ b/ui/assets/local/_app/immutable/chunks/8.8fcaefda.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/9.e7d2d70f.js b/ui/assets/local/_app/immutable/chunks/9.f5aedc99.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/9.e7d2d70f.js rename to ui/assets/local/_app/immutable/chunks/9.f5aedc99.js index a24c36b607..a943dd618f 100644 --- a/ui/assets/local/_app/immutable/chunks/9.e7d2d70f.js +++ b/ui/assets/local/_app/immutable/chunks/9.f5aedc99.js @@ -1 +1 @@ -import{_ as r}from"./_layout.566ca3b3.js";import{default as t}from"../entry/(login)-layout.svelte.fc6457fe.js";export{t as component,r as universal}; +import{_ as r}from"./_layout.90abbf08.js";import{default as t}from"../entry/(login)-layout.svelte.fc6457fe.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/_layout.99ff77df.js b/ui/assets/local/_app/immutable/chunks/_layout.690114a8.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/_layout.99ff77df.js rename to ui/assets/local/_app/immutable/chunks/_layout.690114a8.js index e36c8adc70..12bed43d08 100644 --- a/ui/assets/local/_app/immutable/chunks/_layout.99ff77df.js +++ b/ui/assets/local/_app/immutable/chunks/_layout.690114a8.js @@ -1 +1 @@ -import{r as o,a}from"./route-for-api.c219d4fc.js";import{a as c}from"./search-attributes.75837f76.js";const u=async(e,r=fetch)=>{try{const t=o("search-attributes",{namespace:e}),s=await a(t,{request:r});return{customAttributes:s.customAttributes,systemAttributes:s.systemAttributes}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},i=async({params:e,fetch:r})=>{const t=await u(e.namespace,r);c.set(t)},m=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{m as _,i as l}; +import{r as o,a}from"./route-for-api.4d253eb1.js";import{a as c}from"./search-attributes.75837f76.js";const u=async(e,r=fetch)=>{try{const t=o("search-attributes",{namespace:e}),s=await a(t,{request:r});return{customAttributes:s.customAttributes,systemAttributes:s.systemAttributes}}catch(t){return console.error("Error fetching search attributes for namespace",e,t),{customAttributes:{},systemAttributes:{}}}},i=async({params:e,fetch:r})=>{const t=await u(e.namespace,r);c.set(t)},m=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{m as _,i as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_layout.566ca3b3.js b/ui/assets/local/_app/immutable/chunks/_layout.90abbf08.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/_layout.566ca3b3.js rename to ui/assets/local/_app/immutable/chunks/_layout.90abbf08.js index 417cf8d980..9c563129c7 100644 --- a/ui/assets/local/_app/immutable/chunks/_layout.566ca3b3.js +++ b/ui/assets/local/_app/immutable/chunks/_layout.90abbf08.js @@ -1 +1 @@ -/* empty css */import{e}from"./index.b1f5b21f.js";import{f as r}from"./settings-service.23aa4f31.js";const s=!1,a=async function({fetch:o}){const t=await r(o);if(!t.auth.enabled)throw e(404);return{settings:t}},c=Object.freeze(Object.defineProperty({__proto__:null,load:a,ssr:s},Symbol.toStringTag,{value:"Module"}));export{c as _,a as l,s}; +/* empty css */import{e}from"./index.b1f5b21f.js";import{f as r}from"./settings-service.df92da83.js";const s=!1,a=async function({fetch:o}){const t=await r(o);if(!t.auth.enabled)throw e(404);return{settings:t}},c=Object.freeze(Object.defineProperty({__proto__:null,load:a,ssr:s},Symbol.toStringTag,{value:"Module"}));export{c as _,a as l,s}; diff --git a/ui/assets/local/_app/immutable/chunks/_layout.54689e5e.js b/ui/assets/local/_app/immutable/chunks/_layout.e5ba1cbe.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/_layout.54689e5e.js rename to ui/assets/local/_app/immutable/chunks/_layout.e5ba1cbe.js index b143f1e54a..b8134778de 100644 --- a/ui/assets/local/_app/immutable/chunks/_layout.54689e5e.js +++ b/ui/assets/local/_app/immutable/chunks/_layout.e5ba1cbe.js @@ -1 +1 @@ -import{r as m}from"./index.b1f5b21f.js";import{c as u}from"./cluster.cbce199d.js";import{r as f,a as p}from"./route-for-api.c219d4fc.js";import{f as d}from"./namespaces-service.9c90147f.js";import{f as h}from"./settings-service.23aa4f31.js";import{s as k,g}from"./auth-user.6f15fe0f.js";import{B as a,f as A}from"./route-for.cec09c4c.js";import{a as T}from"./atob.508dc696.js";import{p as _}from"./parse-with-big-int.0036a80a.js";/* empty css */const w=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const o=f("cluster");return await p(o,{request:e}).then(n=>(u.set(n),n))},c="user",y=(s=a)=>{if(!s)return{};const e=document.cookie.split(";");let o=0,n=e.find(r=>r.includes(c+o)),i="";for(;n;){const[r,t]=n.split("=");i+=t,o++,n=e.find(l=>l.includes(c+o))}if(i)try{const r=T(i),t=_(r);return{accessToken:t==null?void 0:t.AccessToken,idToken:t==null?void 0:t.IDToken,name:t==null?void 0:t.Name,picture:t==null?void 0:t.Picture,email:t==null?void 0:t.Email}}catch(r){console.error(r)}return{}},b=(s=a)=>{if(!s)return;const e=document.cookie.split(";");let o=0,n=e.find(i=>i.includes(c+o));for(;n;){const[i]=n.split("=");document.cookie=`${i}=; max-age=-1; path=/`,o++,n=e.find(r=>r.includes(c+o))}},B=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),S=async function({fetch:s}){const e=await h(s),o=y();o!=null&&o.accessToken&&(k(o),b());const n=g();if(!B(e,n))throw m(302,A());d(e,s);const i=await w(e,s);return{user:n,settings:e,cluster:i}},z=Object.freeze(Object.defineProperty({__proto__:null,load:S},Symbol.toStringTag,{value:"Module"}));export{z as _,S as l}; +import{r as m}from"./index.b1f5b21f.js";import{c as u}from"./cluster.cbce199d.js";import{r as f,a as p}from"./route-for-api.4d253eb1.js";import{f as d}from"./namespaces-service.df04cc52.js";import{f as h}from"./settings-service.df92da83.js";import{s as k,g}from"./auth-user.6f15fe0f.js";import{B as a,f as A}from"./route-for.31ffa191.js";import{a as T}from"./atob.45c43758.js";import{p as _}from"./parse-with-big-int.0036a80a.js";/* empty css */const w=async(s,e=fetch)=>{if(s.runtimeEnvironment.isCloud)return;const o=f("cluster");return await p(o,{request:e}).then(n=>(u.set(n),n))},c="user",y=(s=a)=>{if(!s)return{};const e=document.cookie.split(";");let o=0,n=e.find(r=>r.includes(c+o)),i="";for(;n;){const[r,t]=n.split("=");i+=t,o++,n=e.find(l=>l.includes(c+o))}if(i)try{const r=T(i),t=_(r);return{accessToken:t==null?void 0:t.AccessToken,idToken:t==null?void 0:t.IDToken,name:t==null?void 0:t.Name,picture:t==null?void 0:t.Picture,email:t==null?void 0:t.Email}}catch(r){console.error(r)}return{}},b=(s=a)=>{if(!s)return;const e=document.cookie.split(";");let o=0,n=e.find(i=>i.includes(c+o));for(;n;){const[i]=n.split("=");document.cookie=`${i}=; max-age=-1; path=/`,o++,n=e.find(r=>r.includes(c+o))}},B=(s,e)=>!s.auth.enabled||Boolean(e==null?void 0:e.accessToken),S=async function({fetch:s}){const e=await h(s),o=y();o!=null&&o.accessToken&&(k(o),b());const n=g();if(!B(e,n))throw m(302,A());d(e,s);const i=await w(e,s);return{user:n,settings:e,cluster:i}},z=Object.freeze(Object.defineProperty({__proto__:null,load:S},Symbol.toStringTag,{value:"Module"}));export{z as _,S as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.0ca14ca8.js b/ui/assets/local/_app/immutable/chunks/_page.2146a367.js similarity index 75% rename from ui/assets/local/_app/immutable/chunks/_page.0ca14ca8.js rename to ui/assets/local/_app/immutable/chunks/_page.2146a367.js index f02c31efab..352c79ce4a 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.0ca14ca8.js +++ b/ui/assets/local/_app/immutable/chunks/_page.2146a367.js @@ -1 +1 @@ -import{r as o}from"./index.b1f5b21f.js";import{e as t}from"./route-for.cec09c4c.js";const r=async function(){const e=t("feed");throw o(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{c as _,r as l}; +import{r as o}from"./index.b1f5b21f.js";import{e as t}from"./route-for.31ffa191.js";const r=async function(){const e=t("feed");throw o(302,e)},c=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{c as _,r as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.0f97749e.js b/ui/assets/local/_app/immutable/chunks/_page.7b7bdabf.js similarity index 88% rename from ui/assets/local/_app/immutable/chunks/_page.0f97749e.js rename to ui/assets/local/_app/immutable/chunks/_page.7b7bdabf.js index 0aa88c013e..f2eb995990 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.0f97749e.js +++ b/ui/assets/local/_app/immutable/chunks/_page.7b7bdabf.js @@ -1 +1 @@ -import{a as A}from"./namespaces-service.9c90147f.js";import{h as _}from"./workflow-service.fd47d996.js";const E=async function({params:e,url:d}){var c,n,l,f,h,g,w,u;const{searchParams:o}=d;o.has("time-range")||o.set("time-range","1 day");const y=o.get("workflow-id"),m=o.get("workflow-type"),v=o.get("time-range"),p=o.get("status"),t=await A(e.namespace),b=(l=(n=(c=t.config)==null?void 0:c.historyArchivalUri)==null?void 0:n.toLowerCase())==null?void 0:l.startsWith("s3://"),k=(g=(h=(f=t.config)==null?void 0:f.historyArchivalUri)==null?void 0:h.toLowerCase())==null?void 0:g.startsWith("gs://"),i=b||k,S=i?{}:{workflowId:y,workflowType:m,closeTime:v,executionStatus:p},a=((w=t==null?void 0:t.config)==null?void 0:w.historyArchivalState)==="Enabled",s=((u=t==null?void 0:t.config)==null?void 0:u.visibilityArchivalState)==="Enabled",r=a&&s?await _(e.namespace,S,fetch):null;return{workflows:r?r.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:s,archivalQueryingNotSupported:i}},j=Object.freeze(Object.defineProperty({__proto__:null,load:E},Symbol.toStringTag,{value:"Module"}));export{j as _,E as l}; +import{a as A}from"./namespaces-service.df04cc52.js";import{h as _}from"./workflow-service.2a5b4d45.js";const E=async function({params:e,url:d}){var c,n,l,f,h,g,w,u;const{searchParams:o}=d;o.has("time-range")||o.set("time-range","1 day");const y=o.get("workflow-id"),m=o.get("workflow-type"),v=o.get("time-range"),p=o.get("status"),t=await A(e.namespace),b=(l=(n=(c=t.config)==null?void 0:c.historyArchivalUri)==null?void 0:n.toLowerCase())==null?void 0:l.startsWith("s3://"),k=(g=(h=(f=t.config)==null?void 0:f.historyArchivalUri)==null?void 0:h.toLowerCase())==null?void 0:g.startsWith("gs://"),i=b||k,S=i?{}:{workflowId:y,workflowType:m,closeTime:v,executionStatus:p},a=((w=t==null?void 0:t.config)==null?void 0:w.historyArchivalState)==="Enabled",s=((u=t==null?void 0:t.config)==null?void 0:u.visibilityArchivalState)==="Enabled",r=a&&s?await _(e.namespace,S,fetch):null;return{workflows:r?r.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:s,archivalQueryingNotSupported:i}},j=Object.freeze(Object.defineProperty({__proto__:null,load:E},Symbol.toStringTag,{value:"Module"}));export{j as _,E as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.74aa28ce.js b/ui/assets/local/_app/immutable/chunks/_page.7bcf1705.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/_page.74aa28ce.js rename to ui/assets/local/_app/immutable/chunks/_page.7bcf1705.js index 809ce29815..32ada6e97b 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.74aa28ce.js +++ b/ui/assets/local/_app/immutable/chunks/_page.7bcf1705.js @@ -1 +1 @@ -import{r as n,e as s}from"./index.b1f5b21f.js";import{k as c}from"./workflow-service.fd47d996.js";const l=async function({url:r,params:e}){const{namespace:t,workflow:a}=e,{runId:o}=await c({namespace:t,workflowId:a});throw o?n(302,`${r.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:l},Symbol.toStringTag,{value:"Module"}));export{p as _,l}; +import{r as n,e as s}from"./index.b1f5b21f.js";import{k as c}from"./workflow-service.2a5b4d45.js";const l=async function({url:r,params:e}){const{namespace:t,workflow:a}=e,{runId:o}=await c({namespace:t,workflowId:a});throw o?n(302,`${r.pathname}/${o}`):s(404)},p=Object.freeze(Object.defineProperty({__proto__:null,load:l},Symbol.toStringTag,{value:"Module"}));export{p as _,l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.07b19c47.js b/ui/assets/local/_app/immutable/chunks/_page.85980bdc.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/_page.07b19c47.js rename to ui/assets/local/_app/immutable/chunks/_page.85980bdc.js index bdca32c11d..03ad79675b 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.07b19c47.js +++ b/ui/assets/local/_app/immutable/chunks/_page.85980bdc.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.cec09c4c.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; +import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.31ffa191.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.ebdb6c84.js b/ui/assets/local/_app/immutable/chunks/_page.91795e49.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/_page.ebdb6c84.js rename to ui/assets/local/_app/immutable/chunks/_page.91795e49.js index fa0bffc38d..956f2a4623 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.ebdb6c84.js +++ b/ui/assets/local/_app/immutable/chunks/_page.91795e49.js @@ -1 +1 @@ -import{a as l}from"./namespaces-service.9c90147f.js";const s=t=>{var o,e;const r=(o=t==null?void 0:t.replicationConfig)==null?void 0:o.clusters,n=(e=t==null?void 0:t.replicationConfig)==null?void 0:e.activeClusterName;return r!=null&&r.length?r.map(({clusterName:i})=>i===n?`${i} (active)`:i).join(", "):"Unknown"},c=async function({params:t,url:r}){const{searchParams:n}=r;n.has("time-range")&&n.delete("time-range");const o=await l(t.namespace),e=s(o);return{namespace:o,clusters:e}},a=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{a as _,c as l}; +import{a as l}from"./namespaces-service.df04cc52.js";const s=t=>{var o,e;const r=(o=t==null?void 0:t.replicationConfig)==null?void 0:o.clusters,n=(e=t==null?void 0:t.replicationConfig)==null?void 0:e.activeClusterName;return r!=null&&r.length?r.map(({clusterName:i})=>i===n?`${i} (active)`:i).join(", "):"Unknown"},c=async function({params:t,url:r}){const{searchParams:n}=r;n.has("time-range")&&n.delete("time-range");const o=await l(t.namespace),e=s(o);return{namespace:o,clusters:e}},a=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{a as _,c as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.d621a7e0.js b/ui/assets/local/_app/immutable/chunks/_page.a0c9b579.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/_page.d621a7e0.js rename to ui/assets/local/_app/immutable/chunks/_page.a0c9b579.js index d43fbd94e5..45ae07ded1 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.d621a7e0.js +++ b/ui/assets/local/_app/immutable/chunks/_page.a0c9b579.js @@ -1 +1 @@ -import{r}from"./index.b1f5b21f.js";import{e as t}from"./route-for.cec09c4c.js";const e=async()=>{const o=t();throw r(302,o)},c=Object.freeze(Object.defineProperty({__proto__:null,load:e},Symbol.toStringTag,{value:"Module"}));export{c as _,e as l}; +import{r}from"./index.b1f5b21f.js";import{e as t}from"./route-for.31ffa191.js";const e=async()=>{const o=t();throw r(302,o)},c=Object.freeze(Object.defineProperty({__proto__:null,load:e},Symbol.toStringTag,{value:"Module"}));export{c as _,e as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.8f62fe6c.js b/ui/assets/local/_app/immutable/chunks/_page.ea8eb5bd.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/_page.8f62fe6c.js rename to ui/assets/local/_app/immutable/chunks/_page.ea8eb5bd.js index a804fdac29..13cfaa3852 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.8f62fe6c.js +++ b/ui/assets/local/_app/immutable/chunks/_page.ea8eb5bd.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{r as n}from"./route-for.cec09c4c.js";const i=async({parent:s})=>{var t,r;const e=await s(),o=(t=e==null?void 0:e.settings)==null?void 0:t.defaultNamespace;if((r=e.settings.runtimeEnvironment)==null?void 0:r.isCloud)throw a(302,n({namespace:o}));return{defaultNamespace:o}},m=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{m as _,i as l}; +import{r as a}from"./index.b1f5b21f.js";import{r as n}from"./route-for.31ffa191.js";const i=async({parent:s})=>{var t,r;const e=await s(),o=(t=e==null?void 0:e.settings)==null?void 0:t.defaultNamespace;if((r=e.settings.runtimeEnvironment)==null?void 0:r.isCloud)throw a(302,n({namespace:o}));return{defaultNamespace:o}},m=Object.freeze(Object.defineProperty({__proto__:null,load:i},Symbol.toStringTag,{value:"Module"}));export{m as _,i as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.30c281df.js b/ui/assets/local/_app/immutable/chunks/_page.f629d15d.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/_page.30c281df.js rename to ui/assets/local/_app/immutable/chunks/_page.f629d15d.js index bdca32c11d..03ad79675b 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.30c281df.js +++ b/ui/assets/local/_app/immutable/chunks/_page.f629d15d.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.cec09c4c.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; +import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.31ffa191.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.62d54b09.js b/ui/assets/local/_app/immutable/chunks/_page.fb15a3aa.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/_page.62d54b09.js rename to ui/assets/local/_app/immutable/chunks/_page.fb15a3aa.js index bdca32c11d..03ad79675b 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.62d54b09.js +++ b/ui/assets/local/_app/immutable/chunks/_page.fb15a3aa.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.cec09c4c.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; +import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.31ffa191.js";const c=async function({params:o}){const{namespace:r,workflow:t,run:e}=o,n=s({namespace:r,workflow:t,run:e});throw a(302,n)},p=Object.freeze(Object.defineProperty({__proto__:null,load:c},Symbol.toStringTag,{value:"Module"}));export{p as _,c as l}; diff --git a/ui/assets/local/_app/immutable/chunks/atob.508dc696.js b/ui/assets/local/_app/immutable/chunks/atob.45c43758.js similarity index 72% rename from ui/assets/local/_app/immutable/chunks/atob.508dc696.js rename to ui/assets/local/_app/immutable/chunks/atob.45c43758.js index 07d755e1dc..0cfd3df318 100644 --- a/ui/assets/local/_app/immutable/chunks/atob.508dc696.js +++ b/ui/assets/local/_app/immutable/chunks/atob.45c43758.js @@ -1 +1 @@ -import{B as t}from"./route-for.cec09c4c.js";function e(o){return decodeURIComponent(window.atob(o).split("").map(function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,n=t)=>n?e(o):o;export{i as a}; +import{B as t}from"./route-for.31ffa191.js";function e(o){return decodeURIComponent(window.atob(o).split("").map(function(n){return"%"+("00"+n.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,n=t)=>n?e(o):o;export{i as a}; diff --git a/ui/assets/local/_app/immutable/chunks/batch-operations.1aa6deab.js b/ui/assets/local/_app/immutable/chunks/batch-operations.852cc113.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/batch-operations.1aa6deab.js rename to ui/assets/local/_app/immutable/chunks/batch-operations.852cc113.js index 1c3281cca8..35587adee9 100644 --- a/ui/assets/local/_app/immutable/chunks/batch-operations.1aa6deab.js +++ b/ui/assets/local/_app/immutable/chunks/batch-operations.852cc113.js @@ -1 +1 @@ -import{w as p}from"./index.1302fd9b.js";import{ac as b}from"./index.6779d4e2.js";import{A as a}from"./workflow-actions.6f88149c.js";import{g as d}from"./auth-user.6f15fe0f.js";import{p as w}from"./persist-store.d8264c86.js";import{t as y}from"./versions.6b1b4529.js";import{s as u}from"./parse-with-big-int.0036a80a.js";import{r as i,a as c}from"./route-for-api.c219d4fc.js";import{i as h}from"./version-check.d006b302.js";const I=e=>e.map(o=>o.runId).reduce((o,r,n,m)=>(o+=`RunId="${r}"`,n!==m.length-1&&(o+=" OR "),o),""),T=e=>{const t=d().email;switch(e){case a.Cancel:return{cancellationOperation:{identity:t}};case a.Terminate:return{terminationOperation:{identity:t}};default:return{}}},O=({id:e,runId:t})=>({workflowId:e,runId:t}),f=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...T(e)};if(t.workflows)return h(b(y),"1.19")?{...o,executions:t.workflows.map(O)}:{...o,visibilityQuery:I(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function E(e){const t=i("batch-operations",{namespace:e.namespace}),o=f(a.Cancel,e);await c(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function Q(e){const t=i("batch-operations",{namespace:e.namespace}),o=f(a.Terminate,e);await c(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function l({namespace:e,jobId:t}){return new Promise((o,r)=>{k({namespace:e,jobId:t}).then(({state:n,completeOperationCount:m})=>{n==="Failed"?r():n!=="Running"?o(m):setTimeout(()=>{try{o(l({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function k({jobId:e,namespace:t},o=fetch){const r=i("batch-operation.describe",{namespace:t}),n=await c(r,{params:{jobId:e},request:o});return C(n)}const C=e=>({...e,startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt(e.totalOperationCount,10),completeOperationCount:parseInt(e.completeOperationCount,10),failureOperationCount:parseInt(e.failureOperationCount,10)});async function V(e,t=fetch){const o=i("batch-operations",{namespace:e}),r=await c(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(g):[]}}const g=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:e.state}),s=p();s.subscribe(async e=>{e&&await l(e).then(()=>s.set(void 0))});const _=w("auto-refresh-batch-operation",!1);export{_ as a,Q as b,E as c,k as d,s as i,V as l}; +import{w as p}from"./index.1302fd9b.js";import{ac as b}from"./index.6779d4e2.js";import{A as a}from"./workflow-actions.6f88149c.js";import{g as d}from"./auth-user.6f15fe0f.js";import{p as w}from"./persist-store.d8264c86.js";import{t as y}from"./versions.6b1b4529.js";import{s as u}from"./parse-with-big-int.0036a80a.js";import{r as i,a as c}from"./route-for-api.4d253eb1.js";import{i as h}from"./version-check.d006b302.js";const I=e=>e.map(o=>o.runId).reduce((o,r,n,m)=>(o+=`RunId="${r}"`,n!==m.length-1&&(o+=" OR "),o),""),T=e=>{const t=d().email;switch(e){case a.Cancel:return{cancellationOperation:{identity:t}};case a.Terminate:return{terminationOperation:{identity:t}};default:return{}}},O=({id:e,runId:t})=>({workflowId:e,runId:t}),f=(e,t)=>{const o={jobId:t.jobId,namespace:t.namespace,reason:t.reason,...T(e)};if(t.workflows)return h(b(y),"1.19")?{...o,executions:t.workflows.map(O)}:{...o,visibilityQuery:I(t.workflows)};if(t.query)return{...o,visibilityQuery:t.query}};async function E(e){const t=i("batch-operations",{namespace:e.namespace}),o=f(a.Cancel,e);await c(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function Q(e){const t=i("batch-operations",{namespace:e.namespace}),o=f(a.Terminate,e);await c(t,{options:{method:"POST",body:u(o)},notifyOnError:!1}),s.set({jobId:o.jobId,namespace:o.namespace})}async function l({namespace:e,jobId:t}){return new Promise((o,r)=>{k({namespace:e,jobId:t}).then(({state:n,completeOperationCount:m})=>{n==="Failed"?r():n!=="Running"?o(m):setTimeout(()=>{try{o(l({namespace:e,jobId:t}))}catch{r()}},5e3)})})}async function k({jobId:e,namespace:t},o=fetch){const r=i("batch-operation.describe",{namespace:t}),n=await c(r,{params:{jobId:e},request:o});return C(n)}const C=e=>({...e,startTime:e.startTime,closeTime:e.closeTime,totalOperationCount:parseInt(e.totalOperationCount,10),completeOperationCount:parseInt(e.completeOperationCount,10),failureOperationCount:parseInt(e.failureOperationCount,10)});async function V(e,t=fetch){const o=i("batch-operations",{namespace:e}),r=await c(o,{request:t});return{nextPageToken:r.nextPageToken,operations:r.operationInfo?r.operationInfo.map(g):[]}}const g=e=>({startTime:e.startTime,closeTime:e.closeTime,jobId:e.jobId,state:e.state}),s=p();s.subscribe(async e=>{e&&await l(e).then(()=>s.set(void 0))});const _=w("auto-refresh-batch-operation",!1);export{_ as a,Q as b,E as c,k as d,s as i,V as l}; diff --git a/ui/assets/local/_app/immutable/chunks/decode-payload.727281ed.js b/ui/assets/local/_app/immutable/chunks/decode-payload.4c64ec1f.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/decode-payload.727281ed.js rename to ui/assets/local/_app/immutable/chunks/decode-payload.4c64ec1f.js index 8eab6baad9..9de2813123 100644 --- a/ui/assets/local/_app/immutable/chunks/decode-payload.727281ed.js +++ b/ui/assets/local/_app/immutable/chunks/decode-payload.4c64ec1f.js @@ -1,2 +1,2 @@ -import{s as qe,a as lr,d as pr}from"./data-converter-config.abfd533c.js";import{s as Z,p as Ne}from"./parse-with-big-int.0036a80a.js";import{t as Je}from"./translate.29a4bc43.js";import{v as fr,s as ze,b as yr}from"./data-encoder-config.37ceca8b.js";import{h as $}from"./has.f5323580.js";import{ac as hr}from"./index.6779d4e2.js";import{a as Xe}from"./atob.508dc696.js";import{i as Mt}from"./is.ba28a1ea.js";async function Ye(r,e){if(!e)return r;if(!e.isOpened)try{await e.open()}catch(n){qe(`Error opening websocket: ${n}`)}return e.isOpened?e.sendRequest({payload:Z(r)}).then(n=>{lr();try{return Ne(n.content)}catch{return n.content}}).catch(n=>{qe(`Error decoding websocket response: ${n}`)}):Promise.resolve(r)}async function dr({payloads:r,namespace:e,settings:t,accessToken:n,encode:o=!1}){var y,f,u;const i=(y=t==null?void 0:t.codec)==null?void 0:y.endpoint,a=(f=t==null?void 0:t.codec)==null?void 0:f.passAccessToken,s=(u=t==null?void 0:t.codec)==null?void 0:u.includeCredentials,c={"Content-Type":"application/json","X-Namespace":e};if(a)if(fr(i))c.Authorization=`Bearer ${n}`;else return ze(),r;const p=s?{headers:c,credentials:"include",method:"POST",body:Z(r)}:{headers:c,method:"POST",body:Z(r)};return fetch(i+(o?"/encode":"/decode"),p).then(d=>{if($(d,"ok")&&!d.ok)throw{statusCode:d.status,statusText:d.statusText,response:d,message:o?Je("encode-failed"):Je("decode-failed")};return d.json()}).then(d=>(yr(),d)).catch(d=>(ze(d),r))}var De={},vr={get exports(){return De},set exports(r){De=r}};/* chnl v1.2.0 by Vitaliy Potapov @preserve */function Wt(r){return(Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function N(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Qe(r,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function gr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function br(r,e){return!e||typeof e!="object"&&typeof e!="function"?gr(r):e}function Pr(r){var e=_r();return function(){var t,n=Fe(r);if(e){var o=Fe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return br(this,t)}}function Ze(r){return wr(r)||Sr(r)||Ar(r)||Rr()}function wr(r){if(Array.isArray(r))return xe(r)}function Sr(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function Ar(r,e){if(r){if(typeof r=="string")return xe(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xe(r,e):void 0}}function xe(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t{lr();try{return Ne(n.content)}catch{return n.content}}).catch(n=>{qe(`Error decoding websocket response: ${n}`)}):Promise.resolve(r)}async function dr({payloads:r,namespace:e,settings:t,accessToken:n,encode:o=!1}){var y,f,u;const i=(y=t==null?void 0:t.codec)==null?void 0:y.endpoint,a=(f=t==null?void 0:t.codec)==null?void 0:f.passAccessToken,s=(u=t==null?void 0:t.codec)==null?void 0:u.includeCredentials,c={"Content-Type":"application/json","X-Namespace":e};if(a)if(fr(i))c.Authorization=`Bearer ${n}`;else return ze(),r;const p=s?{headers:c,credentials:"include",method:"POST",body:Z(r)}:{headers:c,method:"POST",body:Z(r)};return fetch(i+(o?"/encode":"/decode"),p).then(d=>{if($(d,"ok")&&!d.ok)throw{statusCode:d.status,statusText:d.statusText,response:d,message:o?Je("encode-failed"):Je("decode-failed")};return d.json()}).then(d=>(yr(),d)).catch(d=>(ze(d),r))}var De={},vr={get exports(){return De},set exports(r){De=r}};/* chnl v1.2.0 by Vitaliy Potapov @preserve */function Wt(r){return(Wt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(r)}function N(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Qe(r,e){for(var t=0;t"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function gr(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function br(r,e){return!e||typeof e!="object"&&typeof e!="function"?gr(r):e}function Pr(r){var e=_r();return function(){var t,n=Fe(r);if(e){var o=Fe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return br(this,t)}}function Ze(r){return wr(r)||Sr(r)||Ar(r)||Rr()}function wr(r){if(Array.isArray(r))return xe(r)}function Sr(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function Ar(r,e){if(r){if(typeof r=="string")return xe(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);return t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set"?Array.from(r):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?xe(r,e):void 0}}function xe(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t{this._isPending=!0,this._resolve=e,this._reject=t})}_handleTimeout(){const e=tt(this._options.timeoutReason),t=typeof e=="string"?e.replace("{timeout}",this._options.timeout):"",n=new B.TimeoutError(t);this.reject(n)}_createTimer(){this._options.timeout&&(this._timer=setTimeout(()=>this._handleTimeout(),this._options.timeout))}_clearTimer(){this._timer&&(clearTimeout(this._timer),this._timer=null)}_settle(e){this._isPending=!1,this._value=e,this._clearTimer()}_callFn(e){if(typeof e=="function")try{const t=e();this._tryAttachToPromise(t)}catch(t){this.reject(t)}}_tryAttachToPromise(e){et(e)&&e.then(t=>this.resolve(t),t=>this.reject(t))}};B.TimeoutError=Gt("TimeoutError");B.ResetError=Gt("ResetError");var Ut=B,ie={};Object.defineProperty(ie,"__esModule",{value:!0});ie.PromisedMap=void 0;var jr=function(){function r(){this.map=new Map}return Object.defineProperty(r.prototype,"size",{get:function(){return this.map.size},enumerable:!1,configurable:!0}),r.prototype.set=function(e,t){var n=this.createMapItem(t);return this.map.set(e,n),n.promise},r.prototype.get=function(e){var t=this.map.get(e);return t&&t.data},r.prototype.has=function(e){return this.map.has(e)},r.prototype.delete=function(e){return this.map.delete(e)},r.prototype.resolve=function(e,t){var n=this.map.get(e);n&&(this.delete(e),n.resolve(t))},r.prototype.reject=function(e,t){var n=this.map.get(e);n&&(this.delete(e),n.reject(t))},r.prototype.resolveAll=function(e){this.map.forEach(function(t){return t.resolve(e)}),this.map.clear()},r.prototype.rejectAll=function(e){this.map.forEach(function(t){return t.reject(e)}),this.map.clear()},r.prototype.forEach=function(e){this.map.forEach(function(t,n,o){return e(t.data,n,o)})},r.prototype.clear=function(){return this.map.clear()},r.prototype.createMapItem=function(e){var t={data:e};return t.promise=new Promise(function(n,o){t.resolve=n,t.reject=o}),t},r}();ie.PromisedMap=jr;var ee={},Tr={get exports(){return ee},set exports(r){ee=r}},Lr="Function.prototype.bind called on incompatible ",ce=Array.prototype.slice,$r=Object.prototype.toString,qr="[object Function]",Dr=function(e){var t=this;if(typeof t!="function"||$r.call(t)!==qr)throw new TypeError(Lr+t);for(var n=ce.call(arguments,1),o,i=function(){if(this instanceof o){var l=t.apply(this,n.concat(ce.call(arguments)));return Object(l)===l?l:this}else return t.apply(e,n.concat(ce.call(arguments)))},a=Math.max(0,t.length-n.length),s=[],c=0;c"u"||!l?r:l(Uint8Array),u={"%AggregateError%":typeof AggregateError>"u"?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?r:ArrayBuffer,"%ArrayIteratorPrototype%":c&&l?l([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":y,"%AsyncGenerator%":y,"%AsyncGeneratorFunction%":y,"%AsyncIteratorPrototype%":y,"%Atomics%":typeof Atomics>"u"?r:Atomics,"%BigInt%":typeof BigInt>"u"?r:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?r:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?r:Float32Array,"%Float64Array%":typeof Float64Array>"u"?r:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?r:FinalizationRegistry,"%Function%":t,"%GeneratorFunction%":y,"%Int8Array%":typeof Int8Array>"u"?r:Int8Array,"%Int16Array%":typeof Int16Array>"u"?r:Int16Array,"%Int32Array%":typeof Int32Array>"u"?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":c&&l?l(l([][Symbol.iterator]())):r,"%JSON%":typeof JSON=="object"?JSON:r,"%Map%":typeof Map>"u"?r:Map,"%MapIteratorPrototype%":typeof Map>"u"||!c||!l?r:l(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?r:Promise,"%Proxy%":typeof Proxy>"u"?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?r:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?r:Set,"%SetIteratorPrototype%":typeof Set>"u"||!c||!l?r:l(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":c&&l?l(""[Symbol.iterator]()):r,"%Symbol%":c?Symbol:r,"%SyntaxError%":e,"%ThrowTypeError%":s,"%TypedArray%":f,"%TypeError%":n,"%Uint8Array%":typeof Uint8Array>"u"?r:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?r:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?r:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?r:WeakMap,"%WeakRef%":typeof WeakRef>"u"?r:WeakRef,"%WeakSet%":typeof WeakSet>"u"?r:WeakSet};if(l)try{null.error}catch(S){var d=l(l(S));u["%Error.prototype%"]=d}var E=function S(v){var b;if(v==="%AsyncFunction%")b=o("async function () {}");else if(v==="%GeneratorFunction%")b=o("function* () {}");else if(v==="%AsyncGeneratorFunction%")b=o("async function* () {}");else if(v==="%AsyncGenerator%"){var m=S("%AsyncGeneratorFunction%");m&&(b=m.prototype)}else if(v==="%AsyncIteratorPrototype%"){var P=S("%AsyncGenerator%");P&&l&&(b=l(P.prototype))}return u[v]=b,b},I={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},O=Ue,g=F(),h=O.call(Function.call,Array.prototype.concat),_=O.call(Function.apply,Array.prototype.splice),C=O.call(Function.call,String.prototype.replace),j=O.call(Function.call,String.prototype.slice),se=O.call(Function.call,RegExp.prototype.exec),D=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,ar=/\\(\\)?/g,cr=function(v){var b=j(v,0,1),m=j(v,-1);if(b==="%"&&m!=="%")throw new e("invalid intrinsic syntax, expected closing `%`");if(m==="%"&&b!=="%")throw new e("invalid intrinsic syntax, expected opening `%`");var P=[];return C(v,D,function(R,M,w,U){P[P.length]=w?C(U,ar,"$1"):M||R}),P},ur=function(v,b){var m=v,P;if(g(I,m)&&(P=I[m],m="%"+P[0]+"%"),g(u,m)){var R=u[m];if(R===y&&(R=E(m)),typeof R>"u"&&!b)throw new n("intrinsic "+v+" exists, but is not available. Please file an issue!");return{alias:P,name:m,value:R}}throw new e("intrinsic "+v+" does not exist!")};return ye=function(v,b){if(typeof v!="string"||v.length===0)throw new n("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof b!="boolean")throw new n('"allowMissing" argument must be a boolean');if(se(/^%?[^%]*%?$/,v)===null)throw new e("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var m=cr(v),P=m.length>0?m[0]:"",R=ur("%"+P+"%",b),M=R.name,w=R.value,U=!1,ae=R.alias;ae&&(P=ae[0],_(m,h([0,1],ae)));for(var V=1,W=!0;V=m.length){var J=i(w,k);W=!!J,W&&"get"in J&&!("originalValue"in J.get)?w=J.get:w=w[k]}else W=g(w,k),w=w[k];W&&!U&&(u[M]=w)}}return w},ye}(function(r){var e=Ue,t=A(),n=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),i=t("%Reflect.apply%",!0)||e.call(o,n),a=t("%Object.getOwnPropertyDescriptor%",!0),s=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(s)try{s({},"a",{value:1})}catch{s=null}r.exports=function(y){var f=i(e,o,arguments);if(a&&s){var u=a(f,"length");u.configurable&&s(f,"length",{value:1+c(0,y.length-(arguments.length-1))})}return f};var p=function(){return i(e,n,arguments)};s?s(r.exports,"apply",{value:p}):r.exports.apply=p})(Tr);var at=Object.prototype.toString,Vt=function(e){var t=at.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&at.call(e.callee)==="[object Function]"),n},he,ct;function Br(){if(ct)return he;ct=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Vt,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(f){var u=f.constructor;return u&&u.prototype===f},p={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},l=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!p["$"+f]&&e.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{c(window[f])}catch{return!0}}catch{return!0}return!1}(),y=function(f){if(typeof window>"u"||!l)return c(f);try{return c(f)}catch{return!1}};r=function(u){var d=u!==null&&typeof u=="object",E=t.call(u)==="[object Function]",I=n(u),O=d&&t.call(u)==="[object String]",g=[];if(!d&&!E&&!I)throw new TypeError("Object.keys called on a non-object");var h=a&&E;if(O&&u.length>0&&!e.call(u,0))for(var _=0;_0)for(var C=0;C2?arguments[2]:{},n=Hr(e);Kr&&(n=zr.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o"u"||typeof h=="object"))try{var _=s.call(h);return(_===y||_===f||_===u||_===c)&&h("")==null}catch{}return!1})}return de=e?function(h){if(I(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;try{e(h,null,t)}catch(_){if(_!==n)return!1}return!i(h)&&a(h)}:function(h){if(I(h))return!0;if(!h||typeof h!="function"&&typeof h!="object")return!1;if(d)return a(h);if(i(h))return!1;var _=s.call(h);return _!==p&&_!==l&&!/^\[object HTML/.test(_)?!1:a(h)},de}var ft;function Yt(){return ft||(ft=1,function(r){r.exports=en()}(Zr)),te}var re={},yt={get exports(){return re},set exports(r){re=r}},ne={},tn={get exports(){return ne},set exports(r){ne=r}},ht;function rn(){return ht||(ht=1,function(r){r.exports=A()}(tn)),ne}var ve,dt;function nn(){if(dt)return ve;dt=1;var r=A(),e=F(),t=r("%TypeError%");return ve=function(o,i){if(o.Type(i)!=="Object")return!1;var a={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var s in i)if(e(i,s)&&!a[s])return!1;if(o.IsDataDescriptor(i)&&o.IsAccessorDescriptor(i))throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},ve}var me,vt;function Qt(){if(vt)return me;vt=1;var r=A(),e=ee,t=e(r("String.prototype.indexOf"));return me=function(o,i){var a=r(o,!!i);return typeof a=="function"&&t(o,".prototype.")>-1?e(a):a},me}var _e,mt;function on(){if(mt)return _e;mt=1;var r=A(),e=r("%Array%"),t=!e.isArray&&Qt()("Object.prototype.toString");return _e=e.isArray||function(o){return t(o)==="[object Array]"},_e}var ge,_t;function sn(){if(_t)return ge;_t=1;var r=Ht,e=A(),t=r()&&e("%Object.defineProperty%",!0),n=r.hasArrayLengthDefineBug(),o=n&&on(),i=Qt(),a=i("Object.prototype.propertyIsEnumerable");return ge=function(c,p,l,y,f,u){if(!t){if(!c(u)||!u["[[Configurable]]"]||!u["[[Writable]]"]||f in y&&a(y,f)!==!!u["[[Enumerable]]"])return!1;var d=u["[[Value]]"];return y[f]=d,p(y[f],d)}return n&&f==="length"&&"[[Value]]"in u&&o(y)&&y.length!==u["[[Value]]"]?(y.length=u["[[Value]]"],y.length===u["[[Value]]"]):(t(y,f,l(u)),!0)},ge}var be,gt;function an(){if(gt)return be;gt=1;var r=F();return be=function(t){return r(t,"[[StartIndex]]")&&r(t,"[[EndIndex]]")&&t["[[StartIndex]]"]>=0&&t["[[EndIndex]]"]>=t["[[StartIndex]]"]&&String(parseInt(t["[[StartIndex]]"],10))===String(t["[[StartIndex]]"])&&String(parseInt(t["[[EndIndex]]"],10))===String(t["[[EndIndex]]"])},be}var Pe,bt;function He(){if(bt)return Pe;bt=1;var r=A(),e=r("%TypeError%"),t=r("%SyntaxError%"),n=F(),o=an(),i={"Property Descriptor":function(s){var c={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var p in s)if(n(s,p)&&!c[p])return!1;var l=n(s,"[[Value]]"),y=n(s,"[[Get]]")||n(s,"[[Set]]");if(l&&y)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":o,"Iterator Record":function(s){return n(s,"[[Iterator]]")&&n(s,"[[NextMethod]]")&&n(s,"[[Done]]")},"PromiseCapability Record":function(s){return s&&n(s,"[[Resolve]]")&&typeof s["[[Resolve]]"]=="function"&&n(s,"[[Reject]]")&&typeof s["[[Reject]]"]=="function"&&n(s,"[[Promise]]")&&s["[[Promise]]"]&&typeof s["[[Promise]]"].then=="function"},"AsyncGeneratorRequest Record":function(s){return s&&n(s,"[[Completion]]")&&n(s,"[[Capability]]")&&i["PromiseCapability Record"](s["[[Capability]]"])}};return Pe=function(s,c,p,l){var y=i[c];if(typeof y!="function")throw new t("unknown record type: "+c);if(s(l)!=="Object"||!y(l))throw new e(p+" must be a "+c)},Pe}var we,Pt;function cn(){return Pt||(Pt=1,we=function(e){if(typeof e>"u")return e;var t={};return"[[Value]]"in e&&(t.value=e["[[Value]]"]),"[[Writable]]"in e&&(t.writable=!!e["[[Writable]]"]),"[[Get]]"in e&&(t.get=e["[[Get]]"]),"[[Set]]"in e&&(t.set=e["[[Set]]"]),"[[Enumerable]]"in e&&(t.enumerable=!!e["[[Enumerable]]"]),"[[Configurable]]"in e&&(t.configurable=!!e["[[Configurable]]"]),t}),we}var Se,wt;function un(){return wt||(wt=1,Se=function(e){if(e===null)return"Null";if(typeof e>"u")return"Undefined";if(typeof e=="function"||typeof e=="object")return"Object";if(typeof e=="number")return"Number";if(typeof e=="boolean")return"Boolean";if(typeof e=="string")return"String"}),Se}var Ae,St;function x(){if(St)return Ae;St=1;var r=un();return Ae=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":r(t)},Ae}var Re,At;function ln(){if(At)return Re;At=1;var r=He(),e=cn(),t=x();return Re=function(o){return typeof o<"u"&&r(t,"Property Descriptor","Desc",o),e(o)},Re}var Ee,Rt;function pn(){if(Rt)return Ee;Rt=1;var r=F(),e=He(),t=x();return Ee=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Get]]")&&!r(o,"[[Set]]")))},Ee}var Ie,Et;function fn(){if(Et)return Ie;Et=1;var r=F(),e=He(),t=x();return Ie=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Value]]")&&!r(o,"[[Writable]]")))},Ie}var Oe,It;function yn(){return It||(It=1,Oe=function(e){return typeof e=="string"||typeof e=="symbol"}),Oe}var ke,Ot;function hn(){return Ot||(Ot=1,ke=Number.isNaN||function(e){return e!==e}),ke}var Ce,kt;function dn(){if(kt)return Ce;kt=1;var r=hn();return Ce=function(t,n){return t===n?t===0?1/t===1/n:!0:r(t)&&r(n)},Ce}var je,Ct;function vn(){return Ct||(Ct=1,je=function(e){return!!e}),je}var Te,jt;function mn(){if(jt)return Te;jt=1;var r=F(),e=A(),t=e("%TypeError%"),n=x(),o=vn(),i=Yt();return Te=function(s){if(n(s)!=="Object")throw new t("ToPropertyDescriptor requires an object");var c={};if(r(s,"enumerable")&&(c["[[Enumerable]]"]=o(s.enumerable)),r(s,"configurable")&&(c["[[Configurable]]"]=o(s.configurable)),r(s,"value")&&(c["[[Value]]"]=s.value),r(s,"writable")&&(c["[[Writable]]"]=o(s.writable)),r(s,"get")){var p=s.get;if(typeof p<"u"&&!i(p))throw new t("getter must be a function");c["[[Get]]"]=p}if(r(s,"set")){var l=s.set;if(typeof l<"u"&&!i(l))throw new t("setter must be a function");c["[[Set]]"]=l}if((r(c,"[[Get]]")||r(c,"[[Set]]"))&&(r(c,"[[Value]]")||r(c,"[[Writable]]")))throw new t("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return c},Te}var Le,Tt;function _n(){if(Tt)return Le;Tt=1;var r=A(),e=r("%TypeError%"),t=nn(),n=sn(),o=ln(),i=pn(),a=fn(),s=yn(),c=dn(),p=mn(),l=x();return Le=function(f,u,d){if(l(f)!=="Object")throw new e("Assertion failed: Type(O) is not Object");if(!s(u))throw new e("Assertion failed: IsPropertyKey(P) is not true");var E=t({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},d)?d:p(d);if(!t({Type:l,IsDataDescriptor:a,IsAccessorDescriptor:i},E))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,c,o,f,u,E)},Le}var Lt;function gn(){if(Lt)return re;Lt=1;var r=rn(),e=r("%Reflect.construct%",!0),t=_n();try{t({},"",{"[[Get]]":function(){}})}catch{t=null}if(t&&e){var n={},o={};t(o,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),yt.exports=function(a){try{e(a,o)}catch(s){return s===n}}}else yt.exports=function(a){return typeof a=="function"&&!!a.prototype};return re}var $e,$t;function bn(){if($t)return $e;$t=1;var r=A(),e=r("%Symbol.species%",!0),t=r("%TypeError%"),n=gn(),o=x();return $e=function(a,s){if(o(a)!=="Object")throw new t("Assertion failed: Type(O) is not Object");var c=a.constructor;if(typeof c>"u")return s;if(o(c)!=="Object")throw new t("O.constructor is not an Object");var p=e?c[e]:void 0;if(p==null)return s;if(n(p))return p;throw new t("no constructor found")},$e}var Pn=Ve;Pn();var wn=Yt(),Sn=bn(),An=x(),Zt=function(e,t){return new e(function(n){n(t)})},Rn=Promise,En=function(e,t){return function(n){var o=t(),i=Zt(e,o),a=function(){return n};return i.then(a)}},In=function(e,t){return function(n){var o=t(),i=Zt(e,o),a=function(){throw n};return i.then(a)}},Be=function(e){var t=this;if(An(t)!=="Object")throw new TypeError("receiver is not an Object");var n=Sn(t,Rn),o=e,i=e;return wn(e)&&(o=En(n,e),i=In(n,e)),t.then(o,i)};if(Object.getOwnPropertyDescriptor){var qt=Object.getOwnPropertyDescriptor(Be,"name");qt&&qt.configurable&&Object.defineProperty(Be,"name",{configurable:!0,value:"finally"})}var er=Be,On=Ve,kn=er,tr=function(){return On(),typeof Promise.prototype.finally=="function"?Promise.prototype.finally:kn},Cn=Ve,jn=tr,Tn=Xt,Ln=function(){Cn();var e=jn();return Tn(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype.finally!==e}}),e},$n=ee,qn=Xt,Dn=er,rr=tr,Fn=Ln,nr=$n(rr());qn(nr,{getPolyfill:rr,implementation:Dn,shim:Fn});var xn=nr;const Mn=Ut,Wn=xn;var Bn=class{constructor(){this._items=new Map}create(e,t,n){return this._rejectExistingRequest(e),this._createNewRequest(e,t,n)}resolve(e,t){e&&this._items.has(e)&&this._items.get(e).resolve(t)}rejectAll(e){this._items.forEach(t=>t.isPending?t.reject(e):null)}_rejectExistingRequest(e){const t=this._items.get(e);t&&t.isPending&&t.reject(new Error(`WebSocket request is replaced, id: ${e}`))}_createNewRequest(e,t,n){const o=new Mn({timeout:n,timeoutReason:`WebSocket request was rejected by timeout (${n} ms). RequestId: ${e}`});return this._items.set(e,o),Wn(o.call(t),()=>this._deleteRequest(e,o))}_deleteRequest(e,t){this._items.get(e)===t&&this._items.delete(e)}},Nn={createWebSocket:r=>new WebSocket(r),packMessage:null,unpackMessage:null,attachRequestId:null,extractRequestId:null,extractMessageData:r=>r.data,timeout:0,connectionTimeout:0},Ke={};Ke.throwIf=(r,e)=>{if(r)throw new Error(e)};Ke.isPromise=r=>r&&typeof r.then=="function";const T=De,Dt=Ut,{PromisedMap:Gn}=ie,Un=Bn,Ft=Nn,{throwIf:X,isPromise:Vn}=Ke,Y={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};class Hn{constructor(e,t){this._assertOptions(t),this._url=e,this._options=Object.assign({},Ft,t),this._requests=new Un,this._promisedMap=new Gn,this._ws=null,this._wsSubscription=null,this._createOpeningController(),this._createClosingController(),this._createChannels()}get ws(){return this._ws}get url(){return this._url}get isOpening(){return Boolean(this._ws&&this._ws.readyState===Y.CONNECTING)}get isOpened(){return Boolean(this._ws&&this._ws.readyState===Y.OPEN)}get isClosing(){return Boolean(this._ws&&this._ws.readyState===Y.CLOSING)}get isClosed(){return Boolean(!this._ws||this._ws.readyState===Y.CLOSED)}get onOpen(){return this._onOpen}get onSend(){return this._onSend}get onMessage(){return this._onMessage}get onUnpackedMessage(){return this._onUnpackedMessage}get onResponse(){return this._onResponse}get onClose(){return this._onClose}get onError(){return this._onError}open(){return this.isClosing?Promise.reject(new Error("Can't open WebSocket while closing.")):this.isOpened?this._opening.promise:this._opening.call(()=>{this._opening.promise.catch(e=>this._cleanup(e)),this._createWS()})}sendRequest(e,t={}){const n=t.requestId||`${Math.random()}`,o=t.timeout!==void 0?t.timeout:this._options.timeout;return this._requests.create(n,()=>{this._assertRequestIdHandlers();const i=this._options.attachRequestId(e,n);this.sendPacked(i)},o)}sendPacked(e){this._assertPackingHandlers();const t=this._options.packMessage(e);this.send(t)}send(e){X(!this.isOpened,"Can't send data because WebSocket is not opened."),this._ws.send(e),this._onSend.dispatchAsync(e)}waitUnpackedMessage(e,t={}){return X(typeof e!="function",`Predicate must be a function, got ${typeof e}`),t.timeout&&setTimeout(()=>{if(this._promisedMap.has(e)){const n=t.timeoutError||new Error("Timeout");this._promisedMap.reject(e,n)}},t.timeout),this._promisedMap.set(e)}close(e,t){return this.isClosed?Promise.resolve(this._closing.value):this._closing.call(()=>this._ws.close(e,t))}removeAllListeners(){this._onOpen.removeAllListeners(),this._onMessage.removeAllListeners(),this._onUnpackedMessage.removeAllListeners(),this._onResponse.removeAllListeners(),this._onSend.removeAllListeners(),this._onClose.removeAllListeners(),this._onError.removeAllListeners()}_createOpeningController(){const e=this._options.connectionTimeout||this._options.timeout;this._opening=new Dt({timeout:e,timeoutReason:`Can't open WebSocket within allowed timeout: ${e} ms.`})}_createClosingController(){const e=this._options.timeout;this._closing=new Dt({timeout:e,timeoutReason:`Can't close WebSocket within allowed timeout: ${e} ms.`})}_createChannels(){this._onOpen=new T,this._onMessage=new T,this._onUnpackedMessage=new T,this._onResponse=new T,this._onSend=new T,this._onClose=new T,this._onError=new T}_createWS(){this._ws=this._options.createWebSocket(this._url),this._wsSubscription=new T.Subscription([{channel:this._ws,event:"open",listener:e=>this._handleOpen(e)},{channel:this._ws,event:"message",listener:e=>this._handleMessage(e)},{channel:this._ws,event:"error",listener:e=>this._handleError(e)},{channel:this._ws,event:"close",listener:e=>this._handleClose(e)}]).on()}_handleOpen(e){this._onOpen.dispatchAsync(e),this._opening.resolve(e)}_handleMessage(e){const t=this._options.extractMessageData(e);this._onMessage.dispatchAsync(t),this._tryUnpack(t)}_tryUnpack(e){this._options.unpackMessage&&(e=this._options.unpackMessage(e),Vn(e)?e.then(t=>this._handleUnpackedData(t)):this._handleUnpackedData(e))}_handleUnpackedData(e){e!==void 0&&(this._onUnpackedMessage.dispatchAsync(e),this._tryHandleResponse(e)),this._tryHandleWaitingMessage(e)}_tryHandleResponse(e){if(this._options.extractRequestId){const t=this._options.extractRequestId(e);t&&(this._onResponse.dispatchAsync(e,t),this._requests.resolve(t,e))}}_tryHandleWaitingMessage(e){this._promisedMap.forEach((t,n)=>{let o=!1;try{o=n(e)}catch(i){this._promisedMap.reject(n,i);return}o&&this._promisedMap.resolve(n,e)})}_handleError(e){this._onError.dispatchAsync(e)}_handleClose(e){this._onClose.dispatchAsync(e),this._closing.resolve(e);const t=new Error(`WebSocket closed with reason: ${e.reason} (${e.code}).`);this._opening.isPending&&this._opening.reject(t),this._cleanup(t)}_cleanupWS(){this._wsSubscription&&(this._wsSubscription.off(),this._wsSubscription=null),this._ws=null}_cleanup(e){this._cleanupWS(),this._requests.rejectAll(e)}_assertOptions(e){Object.keys(e||{}).forEach(t=>{if(!Ft.hasOwnProperty(t))throw new Error(`Unknown option: ${t}`)})}_assertPackingHandlers(){const{packMessage:e,unpackMessage:t}=this._options;X(!e||!t,"Please define 'options.packMessage / options.unpackMessage' for sending packed messages.")}_assertRequestIdHandlers(){const{attachRequestId:e,extractRequestId:t}=this._options;X(!e||!t,"Please define 'options.attachRequestId / options.extractRequestId' for sending requests.")}}var Kn=Hn;let L=null;const Jn=hr(pr)??null,zn=(r,e)=>{if(!r)return{hasWebsocket:!1,websocket:null,closeSocket:()=>null};try{L=new Kn(`wss://localhost:${r}/`,{packMessage:t=>Z(t),unpackMessage:t=>Ne(t),attachRequestId:(t,n)=>Object.assign({requestId:n},t),extractRequestId:t=>t&&t.requestId,...e}),L.onError.addListener(t=>{console.error(`Websocket connection error: ${t}`)})}catch(t){qe(`Error creating websocket: ${t}`)}return L==null||L.open(),{hasWebsocket:!0,websocket:L,closeSocket:()=>L?L.close():null}},Xn=zn(Jn),or=r=>Array.isArray(r)?r:[r];function q(r){var t;if(r===null)return r;const e=Xe(String(((t=r==null?void 0:r.metadata)==null?void 0:t.encoding)??""));if(r!=null&&r.metadata&&(r.metadata.encodingDecoded=e),e!=null&&e.startsWith("json/"))try{return Ne(Xe(String((r==null?void 0:r.data)??"")))}catch(n){console.warn("Could not parse payload: ",n)}return e==="binary/null"?null:r}const co=r=>{if($(r,"searchAttributes")&&$(r.searchAttributes,"indexedFields")){const e=r.searchAttributes.indexedFields;Object.entries(e).forEach(([t,n])=>{e[t]=q(n)})}if($(r,"memo")&&$(r.memo,"fields")){const e=r.memo.fields;Object.entries(e).forEach(([t,n])=>{e[t]=q(n)})}if($(r,"header")&&$(r.header,"fields")){const e=r.header.fields;Object.entries(e).forEach(([t,n])=>{e[t]=q(n)})}if($(r,"queryResult")){const e=r==null?void 0:r.queryResult;Object.entries(e).forEach(([t,n])=>{e[t]=q(n)})}return r},Yn=(r,e,t)=>async n=>{var o;if((o=e==null?void 0:e.codec)!=null&&o.endpoint){const i=await dr({payloads:{payloads:n},namespace:r,settings:e,accessToken:t});return((i==null?void 0:i.payloads)??[]).map(q)}else return n.map(q)},xt=(r,...e)=>{for(const t of e)if(r===t)return!0;return!1},ir=async(r,e,t,n)=>{const o=Yn(e,t,n);if(r)for(const i of Object.keys(r))if(xt(i,"payloads","encodedAttributes")&&r[i]){const a=or(r[i]),s=await o(a);r[i]=xt(i,"encodedAttributes")?s[0]:s}else{const a=r[i];Mt(a)&&(r[i]=await ir(a,e,t,n))}return r},sr=async(r,e)=>{if(r)for(const t of Object.keys(r))if(t==="payloads"){let n;const o=or(r[t]);e!=null&&e.hasWebsocket?n=await Promise.all((o??[]).map(async a=>await Ye(a,e.websocket))):n=o.map(q),r[t]=n}else if(t==="encodedAttributes"&&r[t]){let n;const o=r[t];e!=null&&e.hasWebsocket?n=await Ye(o,e.websocket):n=q(o),r[t]=n}else{const n=r[t];Mt(n)&&(r[t]=await sr(n,e))}return r},uo=async({attributes:r,namespace:e,settings:t,accessToken:n})=>await ir(r,e,t,n),lo=async(r,e)=>await sr(r,e??Xn);export{lo as a,q as b,uo as c,co as d,dr as e}; diff --git a/ui/assets/local/_app/immutable/chunks/error.c03b78e5.js b/ui/assets/local/_app/immutable/chunks/error.8117cc68.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/error.c03b78e5.js rename to ui/assets/local/_app/immutable/chunks/error.8117cc68.js index 24db4fc455..980d9fd955 100644 --- a/ui/assets/local/_app/immutable/chunks/error.c03b78e5.js +++ b/ui/assets/local/_app/immutable/chunks/error.8117cc68.js @@ -1,4 +1,4 @@ -import{S as O,b as z,a as A,m as S,w as g,c as y,C as N,p as x,q as T,x as $,k as p,d as P,D as U,u as _,f as q,L as o,E as F,y as B,j as H,g as I,F as K,K as G,M as J}from"./index.6779d4e2.js";import{a as Q}from"./navigation.a7086f0c.js";import{p as R}from"./stores.6ee4c480.js";import{L as M}from"./link.8030aa06.js";import{h as V}from"./has.f5323580.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function X(a){let e;return{c(){e=g("jump on our Slack Channel")},l(t){e=$(t,"jump on our Slack Channel")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,v,c,i,f,L,m,j,C;return f=new M({props:{href:a[1],target:"_self",class:"underline underline-offset-2",$$slots:{default:[W]},$$scope:{ctx:a}}}),f.$on("click",a[5]),m=new M({props:{href:"https://temporal.io/slack",$$slots:{default:[X]},$$scope:{ctx:a}}}),{c(){e=S("section"),t=S("h1"),l=g(a[0]),h=y(),n=S("p"),d=g("Uh oh. There's an error."),E=y(),u=S("p"),v=g(a[2]),c=y(),i=S("p"),N(f.$$.fragment),L=g(` +import{S as O,b as z,a as A,m as S,w as g,c as y,C as N,p as x,q as T,x as $,k as p,d as P,D as U,u as _,f as q,L as o,E as F,y as B,j as H,g as I,F as K,K as G,M as J}from"./index.6779d4e2.js";import{a as Q}from"./navigation.8e7fd3e5.js";import{p as R}from"./stores.b96d31b2.js";import{L as M}from"./link.8030aa06.js";import{h as V}from"./has.f5323580.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function X(a){let e;return{c(){e=g("jump on our Slack Channel")},l(t){e=$(t,"jump on our Slack Channel")},m(t,l){q(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,v,c,i,f,L,m,j,C;return f=new M({props:{href:a[1],target:"_self",class:"underline underline-offset-2",$$slots:{default:[W]},$$scope:{ctx:a}}}),f.$on("click",a[5]),m=new M({props:{href:"https://temporal.io/slack",$$slots:{default:[X]},$$scope:{ctx:a}}}),{c(){e=S("section"),t=S("h1"),l=g(a[0]),h=y(),n=S("p"),d=g("Uh oh. There's an error."),E=y(),u=S("p"),v=g(a[2]),c=y(),i=S("p"),N(f.$$.fragment),L=g(` or `),N(m.$$.fragment),j=g("."),this.h()},l(s){e=x(s,"SECTION",{"aria-roledescription":!0,class:!0,role:!0});var r=T(e);t=x(r,"H1",{class:!0});var k=T(t);l=$(k,a[0]),k.forEach(p),h=P(r),n=x(r,"P",{class:!0});var b=T(n);d=$(b,"Uh oh. There's an error."),b.forEach(p),E=P(r),u=x(r,"P",{class:!0});var D=T(u);v=$(D,a[2]),D.forEach(p),c=P(r),i=x(r,"P",{class:!0});var w=T(i);U(f.$$.fragment,w),L=$(w,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.9cdb1d3e.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.fffa59db.js similarity index 90% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.9cdb1d3e.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.fffa59db.js index d87377509d..d615bd028d 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.9cdb1d3e.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.fffa59db.js @@ -1 +1 @@ -import{S as C,b as I,a as L,m as k,w as A,c as w,C as T,p as F,q as x,x as B,k as f,d as S,D as N,u,f as _,L as j,E as q,Q as G,j as H,g as D,F as K,K as E,n as P}from"./index.6779d4e2.js";import{g as Q}from"./navigation.a7086f0c.js";import{p as R}from"./stores.6ee4c480.js";import{B as W}from"./button.0b50a4b4.js";import{t as y}from"./translate.29a4bc43.js";import{g as z}from"./index.de481b2a.js";import{t as J}from"./index.7a0c9a79.js";import{a as M}from"./auth-user.6f15fe0f.js";import{i as O,a as V}from"./import-events.9bea305e.js";import{l as X}from"./namespaces.65099960.js";import{t as U}from"./toaster.ef510498.js";import{p as Y}from"./parse-with-big-int.0036a80a.js";import{e as Z}from"./route-for.cec09c4c.js";function ee(p){let o=y("import")+"",s;return{c(){s=A(o)},l(a){s=B(a,o)},m(a,m){_(a,s,m)},p:P,d(a){a&&f(s)}}}function te(p){let o,s=y("events","import-event-history-file-upload")+"",a,m,n,l,r,d,h,i;return r=new W({props:{leadingIcon:"file-upload",disabled:!p[0],$$slots:{default:[ee]},$$scope:{ctx:p}}}),r.$on("click",p[2]),{c(){o=k("label"),a=A(s),m=w(),n=k("input"),l=w(),T(r.$$.fragment),this.h()},l(e){o=F(e,"LABEL",{class:!0,for:!0});var t=x(o);a=B(t,s),t.forEach(f),m=S(e),n=F(e,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),l=S(e),N(r.$$.fragment,e),this.h()},h(){u(o,"class","sr-only"),u(o,"for","import-event-history-file-upload"),u(n,"id","import-event-history-file-upload"),u(n,"class","import-input block rounded-md border border-gray-200 p-2"),u(n,"type","file"),u(n,"accept",".json")},m(e,t){_(e,o,t),j(o,a),_(e,m,t),_(e,n,t),_(e,l,t),q(r,e,t),d=!0,h||(i=G(n,"change",p[1]),h=!0)},p(e,[t]){const c={};t&1&&(c.disabled=!e[0]),t&128&&(c.$$scope={dirty:t,ctx:e}),r.$set(c)},i(e){d||(H(r.$$.fragment,e),d=!0)},o(e){D(r.$$.fragment,e),d=!1},d(e){e&&f(o),e&&f(m),e&&f(n),e&&f(l),K(r,e),h=!1,i()}}}function oe(p,o,s){let a,m,n;E(p,X,i=>s(4,a=i)),E(p,M,i=>s(5,m=i)),E(p,R,i=>s(6,n=i));let l,r=!1;return[r,async i=>{var e;const t=i.target,c=(e=t==null?void 0:t.files)===null||e===void 0?void 0:e[0],v=new FileReader;c&&(v.readAsText(c),v.onload=()=>{var g,b;try{const $=(b=(g=v==null?void 0:v.result)===null||g===void 0?void 0:g.toString())!==null&&b!==void 0?b:"";l=Y($),s(0,r=!0)}catch{U.push({variant:"error",message:y("events","event-history-load-error")}),s(0,r=!1)}})},async()=>{const{settings:i}=n.data;try{const e=await J({response:Array.isArray(l)?l:l==null?void 0:l.events,namespace:a,settings:i,accessToken:m.accessToken}),t=z(e);O.set(e),V.set(t),s(0,r=!1);const c=Z(a,"feed");Q(c)}catch(e){console.error(e),U.push({variant:"error",message:y("events","event-history-import-error")})}}]}class _e extends C{constructor(o){super(),I(this,o,oe,te,L,{})}}export{_e as E}; +import{S as C,b as I,a as L,m as k,w as A,c as w,C as T,p as F,q as x,x as B,k as f,d as S,D as N,u,f as _,L as j,E as q,Q as G,j as H,g as D,F as K,K as E,n as P}from"./index.6779d4e2.js";import{g as Q}from"./navigation.8e7fd3e5.js";import{p as R}from"./stores.b96d31b2.js";import{B as W}from"./button.0b50a4b4.js";import{t as y}from"./translate.29a4bc43.js";import{g as z}from"./index.de481b2a.js";import{t as J}from"./index.f6d255b2.js";import{a as M}from"./auth-user.6f15fe0f.js";import{i as O,a as V}from"./import-events.9bea305e.js";import{l as X}from"./namespaces.65099960.js";import{t as U}from"./toaster.ef510498.js";import{p as Y}from"./parse-with-big-int.0036a80a.js";import{e as Z}from"./route-for.31ffa191.js";function ee(p){let o=y("import")+"",s;return{c(){s=A(o)},l(a){s=B(a,o)},m(a,m){_(a,s,m)},p:P,d(a){a&&f(s)}}}function te(p){let o,s=y("events","import-event-history-file-upload")+"",a,m,n,l,r,d,h,i;return r=new W({props:{leadingIcon:"file-upload",disabled:!p[0],$$slots:{default:[ee]},$$scope:{ctx:p}}}),r.$on("click",p[2]),{c(){o=k("label"),a=A(s),m=w(),n=k("input"),l=w(),T(r.$$.fragment),this.h()},l(e){o=F(e,"LABEL",{class:!0,for:!0});var t=x(o);a=B(t,s),t.forEach(f),m=S(e),n=F(e,"INPUT",{id:!0,class:!0,type:!0,accept:!0}),l=S(e),N(r.$$.fragment,e),this.h()},h(){u(o,"class","sr-only"),u(o,"for","import-event-history-file-upload"),u(n,"id","import-event-history-file-upload"),u(n,"class","import-input block rounded-md border border-gray-200 p-2"),u(n,"type","file"),u(n,"accept",".json")},m(e,t){_(e,o,t),j(o,a),_(e,m,t),_(e,n,t),_(e,l,t),q(r,e,t),d=!0,h||(i=G(n,"change",p[1]),h=!0)},p(e,[t]){const c={};t&1&&(c.disabled=!e[0]),t&128&&(c.$$scope={dirty:t,ctx:e}),r.$set(c)},i(e){d||(H(r.$$.fragment,e),d=!0)},o(e){D(r.$$.fragment,e),d=!1},d(e){e&&f(o),e&&f(m),e&&f(n),e&&f(l),K(r,e),h=!1,i()}}}function oe(p,o,s){let a,m,n;E(p,X,i=>s(4,a=i)),E(p,M,i=>s(5,m=i)),E(p,R,i=>s(6,n=i));let l,r=!1;return[r,async i=>{var e;const t=i.target,c=(e=t==null?void 0:t.files)===null||e===void 0?void 0:e[0],v=new FileReader;c&&(v.readAsText(c),v.onload=()=>{var g,b;try{const $=(b=(g=v==null?void 0:v.result)===null||g===void 0?void 0:g.toString())!==null&&b!==void 0?b:"";l=Y($),s(0,r=!0)}catch{U.push({variant:"error",message:y("events","event-history-load-error")}),s(0,r=!1)}})},async()=>{const{settings:i}=n.data;try{const e=await J({response:Array.isArray(l)?l:l==null?void 0:l.events,namespace:a,settings:i,accessToken:m.accessToken}),t=z(e);O.set(e),V.set(t),s(0,r=!1);const c=Z(a,"feed");Q(c)}catch(e){console.error(e),U.push({variant:"error",message:y("events","event-history-import-error")})}}]}class _e extends C{constructor(o){super(),I(this,o,oe,te,L,{})}}export{_e as E}; diff --git a/ui/assets/local/_app/immutable/chunks/event-summary-table.8e1963cc.js b/ui/assets/local/_app/immutable/chunks/event-summary-table.ec2c2f15.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/event-summary-table.8e1963cc.js rename to ui/assets/local/_app/immutable/chunks/event-summary-table.ec2c2f15.js index aed90251d6..0bd9bc0b6a 100644 --- a/ui/assets/local/_app/immutable/chunks/event-summary-table.8e1963cc.js +++ b/ui/assets/local/_app/immutable/chunks/event-summary-table.ec2c2f15.js @@ -1 +1 @@ -import{S as re,b as se,a as ae,m as $,p as b,q as k,k as d,u as g,f as E,L as h,z as B,g as v,h as H,j as p,C as T,D,E as y,n as ee,F as V,G as Pt,c as C,d as S,$ as Ye,P as L,Q as Fe,H as Ct,I as St,J as Gt,N as pe,U as Ee,V as Ut,e as q,M as At,aa as Ge,ab as qe,w as N,x as O,y as R,K as te,al as Jt,a1 as Nt,ag as Kt,R as Yt,Y as Zt,A as Xt,Z as xt,_ as el,a3 as tl,a4 as ll,a5 as ye,a7 as Ot}from"./index.6779d4e2.js";import{E as nl}from"./empty-state.c8d40bbf.js";import{L as rl}from"./loading.a6f9064e.js";import{t as A}from"./translate.29a4bc43.js";import{e as sl,M as Rt,a as Mt,b as Lt,d as Be}from"./menu.7e3d54af.js";import{I as ce}from"./icon.a4e81b70.js";import{L as he}from"./link.8030aa06.js";import{e as Oe,a as Re,b as Me,i as de}from"./index.de481b2a.js";import{c as Ve,e as Le,b as al}from"./event-view.446dd84e.js";import{t as il,r as ol,b as Ze}from"./format-date.79dd40f6.js";import{a as Xe,g as je,b as fl,s as jt,c as Ft,d as qt,e as Pe,f as Bt,h as cl,i as xe}from"./format-event-attributes.f236b430.js";import{q as et}from"./format-time.8258873a.js";import{C as Ce}from"./is-event-type.4dbe973b.js";import{p as Ae}from"./stores.6ee4c480.js";import{C as He}from"./code-block.c796ec58.js";import{C as Ie}from"./index.408ca409.js";import{f as U}from"./format-camel-case.887ffc78.js";import{n as Se,g as _e}from"./route-for.cec09c4c.js";import{T as Ht,a as ul}from"./table-header-row.5433617e.js";import{c as ml,a as _l}from"./get-event-categorization.3ec93a88.js";import{e as tt}from"./filters.c175002a.js";import{t as dl}from"./versions.6b1b4529.js";import{u as Wt}from"./pagination.b9ceda84.js";import{i as pl}from"./version-check.d006b302.js";import{M as hl}from"./menu-divider.def6f259.js";import{B as vl}from"./button.0b50a4b4.js";function gl(s){let e,l;return e=new nl({props:{title:A("events","empty-state-title"),content:A("events","empty-state-description")}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function $l(s){let e,l;return e=new rl({}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function bl(s){let e,l,t,n,r;const i=[$l,gl],a=[];function c(o,f){return o[0]?0:1}return t=c(s),n=a[t]=i[t](s),{c(){e=$("tr"),l=$("td"),n.c(),this.h()},l(o){e=b(o,"TR",{class:!0});var f=k(e);l=b(f,"TD",{colspan:!0});var m=k(l);n.l(m),m.forEach(d),f.forEach(d),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(o,f){E(o,e,f),h(e,l),a[t].m(l,null),r=!0},p(o,[f]){let m=t;t=c(o),t===m?a[t].p(o,f):(B(),v(a[m],1,1,()=>{a[m]=null}),H(),n=a[t],n?n.p(o,f):(n=a[t]=i[t](o),n.c()),p(n,1),n.m(l,null))},i(o){r||(p(n),r=!0)},o(o){v(n),r=!1},d(o){o&&d(e),a[t].d()}}}function kl(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class mr extends re{constructor(e){super(),se(this,e,kl,bl,ae,{loading:0})}}function lt(s){let e,l,t;return l=new ce({props:{name:s[1]?"spinner":s[3]}}),{c(){e=$("span"),T(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);D(l.$$.fragment,r),r.forEach(d),this.h()},h(){L(e,"animate-spin",s[1])},m(n,r){E(n,e,r),y(l,e,null),t=!0},p(n,r){const i={};r&10&&(i.name=n[1]?"spinner":n[3]),l.$set(i),(!t||r&2)&&L(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&d(e),V(l)}}}function wl(s){let e,l,t,n,r,i,a=s[3]&<(s);const c=s[7].default,o=Pt(c,s,s[6],null);return{c(){e=$("button"),a&&a.c(),l=C(),o&&o.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);a&&a.l(m),l=S(m),o&&o.l(m),m.forEach(d),this.h()},h(){g(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],L(e,"active",s[2])},m(f,m){E(f,e,m),a&&a.m(e,null),h(e,l),o&&o.m(e,null),n=!0,r||(i=Fe(e,"click",s[8]),r=!0)},p(f,[m]){f[3]?a?(a.p(f,m),m&8&&p(a,1)):(a=lt(f),a.c(),p(a,1),a.m(e,l)):a&&(B(),v(a,1,1,()=>{a=null}),H()),o&&o.p&&(!n||m&64)&&Ct(o,c,f,f[6],n?Gt(c,f[6],m,null):St(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&g(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&L(e,"active",f[2])},i(f){n||(p(a),p(o,f),n=!0)},o(f){v(a),v(o,f),n=!1},d(f){f&&d(e),a&&a.d(),o&&o.d(f),r=!1,i()}}}function El(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:i=!1}=e,{active:a=!1}=e,{icon:c=null}=e,{classes:o=e.class}=e,{color:f="gray"}=e;function m(u){Ut.call(this,s,u)}return s.$$set=u=>{l(9,e=pe(pe({},e),Ee(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,i=u.loading),"active"in u&&l(2,a=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,o=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Ee(e),[r,i,a,c,o,f,n,t,m]}class Il extends re{constructor(e){super(),se(this,e,El,wl,ae,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function nt(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function rt(s){let e,l,t=[],n=new Map,r,i=Object.entries(s[0]);const a=c=>c[5];for(let c=0;c{r=null}),H())},i(i){n||(p(r),n=!0)},o(i){v(r),n=!1},d(i){i&&d(l),r&&r.d(i),i&&d(t)}}}function Dl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=q()},l(n){t&&t.l(n),e=q()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(B(),v(t,1,1,()=>{t=null}),H())},i(n){l||(p(t),l=!0)},o(n){v(t),l=!1},d(n){t&&t.d(n),n&&d(e)}}}function yl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const i=At(),a=c=>i("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,o)=>(o.length&&(c+=1),c),0))},[n,r,t,i,a]}class Qt extends re{constructor(e){super(),se(this,e,yl,Dl,ae,{attributeGrouping:0,activePill:1})}}function Vl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("p"),a=$("span"),c=N(s[1]),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"P",{class:!0});var u=k(i);a=b(u,"SPAN",{class:!0});var _=k(a);c=O(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(a,"class","select-all px-2 svelte-10e9wiy"),L(a,"badge",!Pe(s[0])),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),h(i,a),h(a,c)},p(o,f){f&1&&t!==(t=U(o[0])+"")&&R(n,t),f&2&&R(c,o[1]),f&1&&L(a,"badge",!Pe(o[0]))},i:ee,o:ee,d(o){o&&d(e)}}}function Pl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Nl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1026&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Cl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1030&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Sl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1026&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Gl(s){let e,l,t,n=U(s[0])+"",r,i,a,c,o,f;a=new He({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}});let m=s[5]&&!s[3]&&it(s);return{c(){e=$("div"),l=$("div"),t=$("p"),r=N(n),i=C(),T(a.$$.fragment),o=C(),m&&m.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);l=b(_,"DIV",{class:!0});var w=k(l);t=b(w,"P",{class:!0});var I=k(t);r=O(I,n),I.forEach(d),i=S(w),D(a.$$.fragment,w),w.forEach(d),o=S(_),m&&m.l(_),_.forEach(d),this.h()},h(){g(t,"class","text-sm"),g(l,"class",c="flex flex-col "+(s[5]?"lg:w-1/2":"")),g(e,"class","content code-block-row svelte-10e9wiy"),L(e,"code-with-stack-trace",s[5])},m(u,_){E(u,e,_),h(e,l),h(l,t),h(t,r),h(l,i),y(a,l,null),h(e,o),m&&m.m(e,null),f=!0},p(u,_){(!f||_&1)&&n!==(n=U(u[0])+"")&&R(r,n);const w={};_&16&&(w.content=u[4]),_&32&&(w.class="h-auto "+(u[5]?"mb-2":"")+" max-h-96 overflow-auto"),_&8&&(w.inline=u[3]),a.$set(w),(!f||_&32&&c!==(c="flex flex-col "+(u[5]?"lg:w-1/2":"")))&&g(l,"class",c),u[5]&&!u[3]?m?(m.p(u,_),_&40&&p(m,1)):(m=it(u),m.c(),p(m,1),m.m(e,null)):m&&(B(),v(m,1,1,()=>{m=null}),H()),(!f||_&32)&&L(e,"code-with-stack-trace",u[5])},i(u){f||(p(a.$$.fragment,u),p(m),f=!0)},o(u){v(a.$$.fragment,u),v(m),f=!1},d(u){u&&d(e),V(a),m&&m.d()}}}function Al(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Nl(s){let e,l;return e=new he({props:{newTab:!0,href:Se({namespace:s[7],queue:s[1]}),$$slots:{default:[Al]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Se({namespace:t[7],queue:t[1]})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function Ol(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Rl(s){var t;let e,l;return e=new he({props:{newTab:!0,href:_e({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ol]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){var a;const i={};r&4&&(i.href=_e({namespace:((a=n[2])==null?void 0:a.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&1026&&(i.$$scope={dirty:r,ctx:n}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function Ml(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Ll(s){let e,l;return e=new he({props:{newTab:!0,href:_e({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=_e({namespace:t[7],workflow:t[6],run:t[1]})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function it(s){let e,l,t,n,r,i;return r=new He({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=$("div"),l=$("p"),t=N("Stack trace"),n=C(),T(r.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var c=k(e);l=b(c,"P",{class:!0});var o=k(l);t=O(o,"Stack trace"),o.forEach(d),n=S(c),D(r.$$.fragment,c),c.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(a,c){E(a,e,c),h(e,l),h(l,t),h(e,n),y(r,e,null),i=!0},p(a,c){const o={};c&32&&(o.content=a[5]),r.$set(o)},i(a){i||(p(r.$$.fragment,a),i=!0)},o(a){v(r.$$.fragment,a),i=!1},d(a){a&&d(e),V(r)}}}function jl(s){let e,l,t,n,r,i,a,c;const o=[Gl,Sl,Cl,Pl,Vl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!jt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!qt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=o[r](s),{c(){e=$("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){g(e,"class",a="row "+s[8].class+" svelte-10e9wiy")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(B(),v(f[w],1,1,()=>{f[w]=null}),H(),i=f[r],i?i.p(u,_):(i=f[r]=o[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&256&&a!==(a="row "+u[8].class+" svelte-10e9wiy"))&&g(e,"class",a)},i(u){c||(p(i),c=!0)},o(u){v(i),c=!1},d(u){u&&d(e),f[r].d()}}}function Fl(s,e,l){let t,n,r;te(s,Ae,u=>l(9,r=u));let{key:i}=e,{value:a}=e,{attributes:c}=e,{inline:o=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=pe(pe({},e),Ee(u))),"key"in u&&l(0,i=u.key),"value"in u&&l(1,a=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,o=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=je(a)),s.$$.dirty&16&&l(5,n=fl(t))},e=Ee(e),[i,a,c,o,t,n,f,m,e]}class zt extends re{constructor(e){super(),se(this,e,Fl,jl,ae,{key:0,value:1,attributes:2,inline:3})}}function ot(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ft(s,e){let l,t,n,r,i,a=e[4]+"",c,o,f,m,u=(Ce(e[5])?"LocalActivity":e[5].eventType)+"",_,w,I,F,W,x;function le(){return e[3](e[4])}return{key:s,first:null,c(){l=$("tr"),t=$("td"),n=C(),r=$("td"),i=$("p"),c=N(a),o=C(),f=$("td"),m=$("p"),_=N(u),w=C(),I=$("td"),F=C(),this.h()},l(X){l=b(X,"TR",{class:!0});var j=k(l);t=b(j,"TD",{class:!0}),k(t).forEach(d),n=S(j),r=b(j,"TD",{class:!0});var ne=k(r);i=b(ne,"P",{class:!0});var oe=k(i);c=O(oe,a),oe.forEach(d),ne.forEach(d),o=S(j),f=b(j,"TD",{});var ue=k(f);m=b(ue,"P",{class:!0});var fe=k(m);_=O(fe,u),fe.forEach(d),ue.forEach(d),w=S(j),I=b(j,"TD",{}),k(I).forEach(d),F=S(j),j.forEach(d),this.h()},h(){g(t,"class","w-1/12"),g(i,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(m,"class","event-type truncate text-sm md:text-base svelte-11yead6"),g(l,"class","row svelte-11yead6"),L(l,"active",e[4]===e[1]),L(l,"failure",Oe(e[5])),L(l,"canceled",Re(e[5])),L(l,"terminated",Me(e[5])),this.first=l},m(X,j){E(X,l,j),h(l,t),h(l,n),h(l,r),h(r,i),h(i,c),h(l,o),h(l,f),h(f,m),h(m,_),h(l,w),h(l,I),h(l,F),W||(x=Fe(l,"click",Nt(Kt(le))),W=!0)},p(X,j){e=X,j&1&&a!==(a=e[4]+"")&&R(c,a),j&1&&u!==(u=(Ce(e[5])?"LocalActivity":e[5].eventType)+"")&&R(_,u),j&3&&L(l,"active",e[4]===e[1]),j&1&&L(l,"failure",Oe(e[5])),j&1&&L(l,"canceled",Re(e[5])),j&1&&L(l,"terminated",Me(e[5]))},d(X){X&&d(l),W=!1,x()}}}function ql(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=i=>i[4];for(let i=0;ir(a);return s.$$set=a=>{"eventGroup"in a&&l(0,t=a.eventGroup),"selectedId"in a&&l(1,n=a.selectedId),"onGroupClick"in a&&l(2,r=a.onGroupClick)},[t,n,r,i]}class Wl extends re{constructor(e){super(),se(this,e,Hl,Bl,ae,{eventGroup:0,selectedId:1,onGroupClick:2})}}function ct(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function ut(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function Ql(s){let e,l,t,n=[],r=new Map,i;l=new Qt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let a=s[6];const c=o=>o[10];for(let o=0;ou[10];for(let u=0;u{i=null}),H())},i(c){r||(p(i),r=!0)},o(c){v(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function pt(s,e){var a;let l,t=(a=e[4][e[5]])==null?void 0:a.includes(e[10]),n,r,i=t&&dt(e);return{key:s,first:null,c(){l=q(),i&&i.c(),n=q(),this.h()},l(c){l=q(),i&&i.l(c),n=q(),this.h()},h(){this.first=l},m(c,o){E(c,l,o),i&&i.m(c,o),E(c,n,o),r=!0},p(c,o){var f;e=c,o&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?i?(i.p(e,o),o&112&&p(i,1)):(i=dt(e),i.c(),p(i,1),i.m(n.parentNode,n)):i&&(B(),v(i,1,1,()=>{i=null}),H())},i(c){r||(p(i),r=!0)},o(c){v(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function Ul(s){let e,l,t,n,r;const i=[zl,Ql],a=[];function c(o,f){return f&6&&(e=null),e==null&&(e=!!(o[2]&&de(o[1]))),e?0:1}return l=c(s,-1),t=a[l]=i[l](s),{c(){t.c(),n=q()},l(o){t.l(o),n=q()},m(o,f){a[l].m(o,f),E(o,n,f),r=!0},p(o,[f]){let m=l;l=c(o,f),l===m?a[l].p(o,f):(B(),v(a[m],1,1,()=>{a[m]=null}),H(),t=a[l],t?t.p(o,f):(t=a[l]=i[l](o),t.c()),p(t,1),t.m(n.parentNode,n))},i(o){r||(p(t),r=!0)},o(o){v(t),r=!1},d(o){a[l].d(o),o&&d(n)}}}function Jl(s,e,l){let t,n,r,i,{event:a}=e,{currentEvent:c}=e,{compact:o=!1}=e,{selectedId:f}=e;const m=_=>{l(5,r=_.detail.key)},u=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,a=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,o=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Bt(c,{compact:o})),s.$$.dirty&10&&l(4,n=cl(a,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,i=Object.entries(t))},[f,a,o,t,n,r,i,m,u,c]}class Kl extends re{constructor(e){super(),se(this,e,Jl,Ul,ae,{event:1,currentEvent:9,compact:2,selectedId:0})}}function Yl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("p"),a=$("span"),c=N(s[1]),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"P",{class:!0});var u=k(i);a=b(u,"SPAN",{class:!0});var _=k(a);c=O(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(a,"class","w-full select-all text-gray-700 svelte-n4ehvt"),L(a,"badge",!Pe(s[0])),g(i,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),h(i,a),h(a,c)},p(o,f){f&1&&t!==(t=U(o[0])+"")&&R(n,t),f&2&&R(c,o[1]),f&1&&L(a,"badge",!Pe(o[0]))},i:ee,o:ee,d(o){o&&d(e)}}}function Zl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],$$slots:{default:[ln]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&258&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Xl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[rn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&262&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function xl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[an]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&258&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function en(s){let e,l,t=U(s[0])+"",n,r,i,a;return i=new He({props:{content:je(s[1]),inline:s[3],copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),T(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var o=k(e);l=b(o,"P",{class:!0});var f=k(l);n=O(f,t),f.forEach(d),r=S(o),D(i.$$.fragment,o),o.forEach(d),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,o){E(c,e,o),h(e,l),h(l,n),h(e,r),y(i,e,null),a=!0},p(c,o){(!a||o&1)&&t!==(t=U(c[0])+"")&&R(n,t);const f={};o&2&&(f.content=je(c[1])),o&8&&(f.inline=c[3]),i.$set(f)},i(c){a||(p(i.$$.fragment,c),a=!0)},o(c){v(i.$$.fragment,c),a=!1},d(c){c&&d(e),V(i)}}}function tn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function ln(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:Se({namespace:s[5],queue:s[1]}),$$slots:{default:[tn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Se({namespace:t[5],queue:t[1]})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function nn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function rn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:_e({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[nn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=_e({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function sn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function an(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:_e({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[sn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=_e({namespace:t[5],workflow:t[4],run:t[1]})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function on(s){let e,l,t,n,r,i,a,c;const o=[en,xl,Xl,Zl,Yl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!jt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!qt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=o[r](s),{c(){e=$("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){g(e,"class",a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(B(),v(f[w],1,1,()=>{f[w]=null}),H(),i=f[r],i?i.p(u,_):(i=f[r]=o[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&64&&a!==(a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+u[6].class+" svelte-n4ehvt"))&&g(e,"class",a)},i(u){c||(p(i),c=!0)},o(u){v(i),c=!1},d(u){u&&d(e),f[r].d()}}}function fn(s,e,l){let t;te(s,Ae,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:i}=e,{inline:a=!1}=e;const{workflow:c,namespace:o}=t.params;return s.$$set=f=>{l(6,e=pe(pe({},e),Ee(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,i=f.attributes),"inline"in f&&l(3,a=f.inline)},e=Ee(e),[n,r,i,a,c,o,e]}class cn extends re{constructor(e){super(),se(this,e,fn,on,ae,{key:0,value:1,attributes:2,inline:3})}}function un(s){let e=s[0].id+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&R(l,e)},d(t){t&&d(l)}}}function mn(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[13],{relative:s[14]})+"",t;return{c(){e=$("p"),t=N(l),this.h()},l(r){e=b(r,"P",{class:!0});var i=k(e);t=O(i,l),i.forEach(d),this.h()},h(){g(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,i){E(r,e,i),h(e,t)},p(r,i){var a;i&24577&&l!==(l=Ze((a=r[0])==null?void 0:a.eventTime,r[13],{relative:r[14]})+"")&&R(t,l)},i:ee,o:ee,d(r){r&&d(e)}}}function _n(s){let e,l,t,n,r=s[9]&&ht(s),i=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=$("p"),r&&r.c(),l=C(),i&&i.c(),t=q(),this.h()},l(a){e=b(a,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=S(a),i&&i.l(a),t=q(),this.h()},h(){g(e,"class","break-word truncate text-sm md:whitespace-normal")},m(a,c){E(a,e,c),r&&r.m(e,null),E(a,l,c),i&&i.m(a,c),E(a,t,c),n=!0},p(a,c){a[9]?r?r.p(a,c):(r=ht(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a[8]&&a[8]!=="0ms"?i?(i.p(a,c),c&256&&p(i,1)):(i=vt(a),i.c(),p(i,1),i.m(t.parentNode,t)):i&&(B(),v(i,1,1,()=>{i=null}),H())},i(a){n||(p(i),n=!0)},o(a){v(i),n=!1},d(a){a&&d(e),r&&r.d(),a&&d(l),i&&i.d(a),a&&d(t)}}}function ht(s){let e=s[12]?"-":"+",l,t;return{c(){l=N(e),t=N(s[9])},l(n){l=O(n,e),t=O(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&R(l,e),r&512&&R(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function vt(s){let e,l,t,n,r,i;return l=new ce({props:{class:"inline",name:"clock"}}),{c(){e=$("div"),T(l.$$.fragment),t=C(),n=$("p"),r=N(s[8]),this.h()},l(a){e=b(a,"DIV",{class:!0});var c=k(e);D(l.$$.fragment,c),t=S(c),n=b(c,"P",{class:!0});var o=k(n);r=O(o,s[8]),o.forEach(d),c.forEach(d),this.h()},h(){g(n,"class","break-word truncate text-sm md:whitespace-normal"),g(e,"class","flex flex-row items-center gap-0")},m(a,c){E(a,e,c),y(l,e,null),h(e,t),h(e,n),h(n,r),i=!0},p(a,c){(!i||c&256)&&R(r,a[8])},i(a){i||(p(l.$$.fragment,a),i=!0)},o(a){v(l.$$.fragment,a),i=!1},d(a){a&&d(e),V(l)}}}function gt(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function $t(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function bt(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function kt(s){let e,l,t;return l=new ce({props:{class:"inline",name:"chevron-up"}}),{c(){e=$("div"),T(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);D(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),y(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&d(e),V(l)}}}function wt(s){let e,l,t,n,r,i,a,c;const o=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let m=0;mxt(t,"selectedId",a)),{c(){e=$("tr"),l=$("td"),T(t.$$.fragment),this.h()},l(o){e=b(o,"TR",{class:!0});var f=k(e);l=b(f,"TD",{class:!0,colspan:!0});var m=k(l);D(t.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","expanded-cell svelte-bv1sbi"),g(l,"colspan","6"),g(e,"class","svelte-bv1sbi"),L(e,"typedError",s[3])},m(o,f){E(o,e,f),h(e,l),y(t,l,null),i=!0},p(o,f){const m={};f&1&&(m.event=o[0]),f&64&&(m.currentEvent=o[6]),f&2&&(m.compact=o[1]),!n&&f&32&&(n=!0,m.selectedId=o[5],el(()=>n=!1)),t.$set(m),(!i||f&8)&&L(e,"typedError",o[3])},i(o){i||(p(t.$$.fragment,o),o&&(r||tl(()=>{r=ll(e,sl,{}),r.start()})),i=!0)},o(o){v(t.$$.fragment,o),i=!1},d(o){o&&d(e),V(t)}}}function dn(s){let e,l,t,n,r,i,a,c,o,f,m,u,_,w,I,F,W,x,le,X=(de(s[0])?s[0].displayName:Ce(s[0])?"LocalActivity":s[0].name)+"",j,ne,oe,ue,fe,ve,ge,M,$e,ie,Ne,We;r=new he({props:{class:"truncate",href:"#"+s[0].id,$$slots:{default:[un]},$$scope:{ctx:s}}});const Qe=[_n,mn],me=[];function ze(P,G){return P[11]?0:1}o=ze(s),f=me[o]=Qe[o](s);let J=s[1]&&s[16]&>(),K=s[1]&&s[17]&&$t(),Y=s[1]&&s[18]&&bt(),Z=s[7]&&kt(),Q=!s[7]&&wt(s),z=s[7]&&Et(s);return{c(){e=$("tr"),l=$("td"),t=C(),n=$("td"),T(r.$$.fragment),i=C(),a=$("td"),c=$("div"),f.c(),m=C(),u=$("td"),_=$("div"),w=$("div"),J&&J.c(),I=C(),K&&K.c(),F=C(),Y&&Y.c(),W=C(),x=$("div"),le=$("p"),j=N(X),ne=C(),Z&&Z.c(),ue=C(),Q&&Q.c(),fe=C(),ve=$("td"),M=C(),z&&z.c(),$e=q(),this.h()},l(P){e=b(P,"TR",{class:!0,id:!0,"data-testid":!0});var G=k(e);l=b(G,"TD",{}),k(l).forEach(d),t=S(G),n=b(G,"TD",{class:!0});var be=k(n);D(r.$$.fragment,be),be.forEach(d),i=S(G),a=b(G,"TD",{class:!0});var ke=k(a);c=b(ke,"DIV",{class:!0});var Ue=k(c);f.l(Ue),Ue.forEach(d),ke.forEach(d),m=S(G),u=b(G,"TD",{colspan:!0,class:!0});var Je=k(u);_=b(Je,"DIV",{class:!0});var Te=k(_);w=b(Te,"DIV",{});var we=k(w);J&&J.l(we),I=S(we),K&&K.l(we),F=S(we),Y&&Y.l(we),we.forEach(d),W=S(Te),x=b(Te,"DIV",{class:!0});var De=k(x);le=b(De,"P",{class:!0});var Ke=k(le);j=O(Ke,X),Ke.forEach(d),ne=S(De),Z&&Z.l(De),De.forEach(d),Te.forEach(d),Je.forEach(d),ue=S(G),Q&&Q.l(G),fe=S(G),ve=b(G,"TD",{}),k(ve).forEach(d),G.forEach(d),M=S(P),z&&z.l(P),$e=q(),this.h()},h(){g(n,"class","w-24 text-left"),g(c,"class","flex flex-col gap-0"),g(a,"class","text-left"),g(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-bv1sbi"),g(x,"class","flex w-full items-center justify-between truncate"),g(_,"class","flex"),g(u,"colspan",oe=s[7]?2:1),g(u,"class","text-right text-sm font-normal xl:text-left"),g(e,"class","row svelte-bv1sbi"),g(e,"id",ge=s[0].id),g(e,"data-testid","event-summary-row"),L(e,"expanded",s[7]&&!s[2]),L(e,"active",s[4]),L(e,"failure",s[16]),L(e,"canceled",s[17]),L(e,"terminated",s[18]),L(e,"typedError",s[3])},m(P,G){E(P,e,G),h(e,l),h(e,t),h(e,n),y(r,n,null),h(e,i),h(e,a),h(a,c),me[o].m(c,null),h(e,m),h(e,u),h(u,_),h(_,w),J&&J.m(w,null),h(w,I),K&&K.m(w,null),h(w,F),Y&&Y.m(w,null),h(_,W),h(_,x),h(x,le),h(le,j),h(x,ne),Z&&Z.m(x,null),h(e,ue),Q&&Q.m(e,null),h(e,fe),h(e,ve),E(P,M,G),z&&z.m(P,G),E(P,$e,G),ie=!0,Ne||(We=Fe(e,"click",Nt(s[15])),Ne=!0)},p(P,[G]){const be={};G&1&&(be.href="#"+P[0].id),G&33554433&&(be.$$scope={dirty:G,ctx:P}),r.$set(be);let ke=o;o=ze(P),o===ke?me[o].p(P,G):(B(),v(me[ke],1,1,()=>{me[ke]=null}),H(),f=me[o],f?f.p(P,G):(f=me[o]=Qe[o](P),f.c()),p(f,1),f.m(c,null)),P[1]&&P[16]?J?G&2&&p(J,1):(J=gt(),J.c(),p(J,1),J.m(w,I)):J&&(B(),v(J,1,1,()=>{J=null}),H()),P[1]&&P[17]?K?G&2&&p(K,1):(K=$t(),K.c(),p(K,1),K.m(w,F)):K&&(B(),v(K,1,1,()=>{K=null}),H()),P[1]&&P[18]?Y?G&2&&p(Y,1):(Y=bt(),Y.c(),p(Y,1),Y.m(w,null)):Y&&(B(),v(Y,1,1,()=>{Y=null}),H()),(!ie||G&1)&&X!==(X=(de(P[0])?P[0].displayName:Ce(P[0])?"LocalActivity":P[0].name)+"")&&R(j,X),P[7]?Z?G&128&&p(Z,1):(Z=kt(),Z.c(),p(Z,1),Z.m(x,null)):Z&&(B(),v(Z,1,1,()=>{Z=null}),H()),(!ie||G&128&&oe!==(oe=P[7]?2:1))&&g(u,"colspan",oe),P[7]?Q&&(B(),v(Q,1,1,()=>{Q=null}),H()):Q?(Q.p(P,G),G&128&&p(Q,1)):(Q=wt(P),Q.c(),p(Q,1),Q.m(e,fe)),(!ie||G&1&&ge!==(ge=P[0].id))&&g(e,"id",ge),(!ie||G&132)&&L(e,"expanded",P[7]&&!P[2]),(!ie||G&16)&&L(e,"active",P[4]),(!ie||G&8)&&L(e,"typedError",P[3]),P[7]?z?(z.p(P,G),G&128&&p(z,1)):(z=Et(P),z.c(),p(z,1),z.m($e.parentNode,$e)):z&&(B(),v(z,1,1,()=>{z=null}),H())},i(P){ie||(p(r.$$.fragment,P),p(f),p(J),p(K),p(Y),p(Z),p(Q),p(z),ie=!0)},o(P){v(r.$$.fragment,P),v(f),v(J),v(K),v(Y),v(Z),v(Q),v(z),ie=!1},d(P){P&&d(e),V(r),me[o].d(),J&&J.d(),K&&K.d(),Y&&Y.d(),Z&&Z.d(),Q&&Q.d(),P&&d(M),z&&z.d(P),P&&d($e),Ne=!1,We()}}}function pn(s,e,l){let t,n,r,i,a,c,o,f,m,u,_,w;te(s,Ve,M=>l(22,m=M)),te(s,Le,M=>l(23,u=M)),te(s,il,M=>l(13,_=M)),te(s,ol,M=>l(14,w=M));let{event:I}=e,{initialItem:F}=e,{compact:W=!1}=e,{expandAll:x=!1}=e,{typedError:le=!1}=e,{active:X=!1}=e,{onRowClick:j=ee}=e,ne=de(I)?Array.from(I.events.keys()).pop():I.id;const oe=()=>{l(7,t=!t),j()},ue=Oe(I),fe=Re(I),ve=Me(I);function ge(M){ne=M,l(5,ne)}return s.$$set=M=>{"event"in M&&l(0,I=M.event),"initialItem"in M&&l(19,F=M.initialItem),"compact"in M&&l(1,W=M.compact),"expandAll"in M&&l(2,x=M.expandAll),"typedError"in M&&l(3,le=M.typedError),"active"in M&&l(4,X=M.active),"onRowClick"in M&&l(20,j=M.onRowClick)},s.$$.update=()=>{s.$$.dirty&20&&l(7,t=x||X),s.$$.dirty&8388608&&l(12,n=u==="descending"),s.$$.dirty&4194304&&l(21,r=m==="true"),s.$$.dirty&2621441&&l(11,i=r&&F&&I.id!==F.id),s.$$.dirty&3&&l(10,a=Bt(I,{compact:W})),s.$$.dirty&33&&l(6,c=de(I)?I.events.get(ne):I),s.$$.dirty&524353&&l(9,o=et({start:F.eventTime,end:de(I)?I.initialEvent.eventTime:c.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,f=de(I)?et({start:I.initialEvent.eventTime,end:I.lastEvent.eventTime,includeMilliseconds:!0}):"")},[I,W,x,le,X,ne,c,t,f,o,a,i,n,_,w,oe,ue,fe,ve,F,j,r,m,u,ge]}class _r extends re{constructor(e){super(),se(this,e,pn,dn,ae,{event:0,initialItem:19,compact:1,expandAll:2,typedError:3,active:4,onRowClick:20})}}function It(s,e,l){const t=s.slice();return t[3]=e[l].label,t[12]=e[l].option,t}function hn(s){let e;return{c(){e=N(s[3])},l(l){e=O(l,s[3])},m(l,t){E(l,e,t)},p(l,t){t&8&&R(e,l[3])},d(l){l&&d(e)}}}function vn(s){let e,l;return e=new ce({props:{name:"filter",slot:"trailing"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function gn(s){let e=A("events",s[3])+"",l,t;return{c(){l=N(e),t=C()},l(n){l=O(n,e),t=S(n)},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&2&&e!==(e=A("events",n[3])+"")&&R(l,e)},d(n){n&&d(l),n&&d(t)}}}function Tt(s){let e,l;function t(){return s[11](s[12])}return e=new Be({props:{"data-testid":"event-category-option",selected:s[2]===s[12],$$slots:{default:[gn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&6&&(i.selected=s[2]===s[12]),r&32770&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function $n(s){let e,l,t=s[1],n=[];for(let i=0;iv(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(9,r=I)),te(s,tt,I=>l(2,i=I)),te(s,dl,I=>l(10,a=I));var c,o;let{compact:f=!1}=e,{variant:m="table-header"}=e,u=f?ml:_l;const _=I=>{Wt({parameter:Dt,value:I,url:r.url})},w=I=>_(I);return s.$$set=I=>{"compact"in I&&l(5,f=I.compact),"variant"in I&&l(0,m=I.variant)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=f?A("events","event-type"):A("events","workflow-events")),s.$$.dirty&1026&&pl("1.21",a)&&l(1,u=u.filter(({option:I})=>I!=="update")),s.$$.dirty&514&&l(8,n=u.find(({option:I})=>{var F,W;return I===((W=(F=r.url)===null||F===void 0?void 0:F.searchParams)===null||W===void 0?void 0:W.get(Dt))})),s.$$.dirty&448&&ye(tt,i=l(7,o=l(6,c=n==null?void 0:n.option)===null||c===void 0?void 0:c.toString())!==null&&o!==void 0?o:void 0,i)},[m,u,i,t,_,f,c,o,n,r,a,w]}class En extends re{constructor(e){super(),se(this,e,wn,kn,ae,{compact:5,variant:0})}}const In=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function yt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Tn(s){let e,l,t,n=A("date-and-time")+"",r,i;return e=new ce({props:{class:"md:hidden",name:"clock"}}),{c(){T(e.$$.fragment),l=C(),t=$("span"),r=N(n),this.h()},l(a){D(e.$$.fragment,a),l=S(a),t=b(a,"SPAN",{class:!0});var c=k(t);r=O(c,n),c.forEach(d),this.h()},h(){g(t,"class","max-md:hidden")},m(a,c){y(e,a,c),E(a,l,c),E(a,t,c),h(t,r),i=!0},p:ee,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){v(e.$$.fragment,a),i=!1},d(a){V(e,a),a&&d(l),a&&d(t)}}}function Dn(s){let e=s[10]+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p:ee,d(t){t&&d(l)}}}function Vt(s){let e,l;function t(){return s[7](s[9])}return e=new Be({props:{selected:s[1]===s[9],$$slots:{default:[Dn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&2&&(i.selected=s[1]===s[9]),r&8192&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function yn(s){let e=A("events","show-elapsed-time")+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p:ee,d(t){t&&d(l)}}}function Vn(s){let e,l,t,n,r,i=s[3],a=[];for(let o=0;ov(a[o],1,1,()=>{a[o]=null});return l=new hl({}),n=new Be({props:{selected:s[0]==="true",$$slots:{default:[yn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let o=0;ol(0,n=u)),te(s,Le,u=>l(1,r=u)),te(s,Ae,u=>l(8,i=u));let{compact:a}=e,c=[{label:A("events","sort-ascending"),option:"ascending"},{label:A("events","sort-descending"),option:"descending"}];const o=u=>{ye(Le,r=u,r),Wt({parameter:"sort",value:u,url:i.url})},f=()=>{n==="true"?ye(Ve,n="false",n):ye(Ve,n="true",n)},m=u=>o(u);return s.$$set=u=>{"compact"in u&&l(6,a=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=In({compact:a,sortOrder:r,showElapsed:n}))},[n,r,t,c,o,f,a,m]}class Gn extends re{constructor(e){super(),se(this,e,Sn,Cn,ae,{compact:6})}}function An(s){let e;const l=s[4].default,t=Pt(l,s,s[5],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&32)&&Ct(t,l,n,n[5],e?Gt(l,n[5],r,null):St(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){v(t,n),e=!1},d(n){t&&t.d(n)}}}function Nn(s){let e,l=A("workflows","event-history")+"",t;return{c(){e=$("caption"),t=N(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=O(r,l),r.forEach(d),this.h()},h(){g(e,"class","sr-only"),g(e,"slot","caption")},m(n,r){E(n,e,r),h(e,t)},p:ee,d(n){n&&d(e)}}}function On(s){let e,l=(s[2]?A("collapse-all"):A("expand-all"))+"",t;return{c(){e=$("span"),t=N(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=O(r,l),r.forEach(d),this.h()},h(){g(e,"class","hidden sm:block")},m(n,r){E(n,e,r),h(e,t)},p(n,r){r&4&&l!==(l=(n[2]?A("collapse-all"):A("expand-all"))+"")&&R(t,l)},d(n){n&&d(e)}}}function Rn(s){let e,l,t,n,r,i,a,c,o,f,m,u;return n=new Gn({props:{compact:s[0]}}),a=new En({props:{compact:s[0]}}),m=new vl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",$$slots:{default:[On]},$$scope:{ctx:s}}}),m.$on("click",s[3]),{c(){e=$("td"),l=C(),t=$("th"),T(n.$$.fragment),r=C(),i=$("th"),T(a.$$.fragment),c=C(),o=$("th"),f=$("div"),T(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=S(_),t=b(_,"TH",{class:!0});var w=k(t);D(n.$$.fragment,w),w.forEach(d),r=S(_),i=b(_,"TH",{class:!0});var I=k(i);D(a.$$.fragment,I),I.forEach(d),c=S(_),o=b(_,"TH",{class:!0});var F=k(o);f=b(F,"DIV",{class:!0});var W=k(f);D(m.$$.fragment,W),W.forEach(d),F.forEach(d),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(i,"class","w-44"),g(f,"class","flex w-full justify-end"),g(o,"class","w-auto xl:w-80")},m(_,w){E(_,e,w),E(_,l,w),E(_,t,w),y(n,t,null),E(_,r,w),E(_,i,w),y(a,i,null),E(_,c,w),E(_,o,w),h(o,f),y(m,f,null),u=!0},p(_,w){const I={};w&1&&(I.compact=_[0]),n.$set(I);const F={};w&1&&(F.compact=_[0]),a.$set(F);const W={};w&4&&(W.trailingIcon=_[2]?"chevron-up":"chevron-down"),w&36&&(W.$$scope={dirty:w,ctx:_}),m.$set(W)},i(_){u||(p(n.$$.fragment,_),p(a.$$.fragment,_),p(m.$$.fragment,_),u=!0)},o(_){v(n.$$.fragment,_),v(a.$$.fragment,_),v(m.$$.fragment,_),u=!1},d(_){_&&d(e),_&&d(l),_&&d(t),V(n),_&&d(r),_&&d(i),V(a),_&&d(c),_&&d(o),V(m)}}}function Mn(s){let e,l;return e=new ul({props:{slot:"headers",$$slots:{default:[Rn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function Ln(s){let e,l;return e=new Ht({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Mn],caption:[Nn],default:[An]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function jn(s,e,l){let t;te(s,al,m=>l(6,t=m));let{$$slots:n={},$$scope:r}=e,{compact:i=!1}=e,{updating:a=!1}=e,c=t==="true";const o=At();function f(){l(2,c=!c),o("expandAll",{expanded:c?"true":"false"})}return s.$$set=m=>{"compact"in m&&l(0,i=m.compact),"updating"in m&&l(1,a=m.updating),"$$scope"in m&&l(5,r=m.$$scope)},[i,a,c,f,n,r]}class dr extends re{constructor(e){super(),se(this,e,jn,Ln,ae,{compact:0,updating:1})}}export{dr as E,mr as a,_r as b}; +import{S as re,b as se,a as ae,m as $,p as b,q as k,k as d,u as g,f as E,L as h,z as B,g as v,h as H,j as p,C as T,D,E as y,n as ee,F as V,G as Pt,c as C,d as S,$ as Ye,P as L,Q as Fe,H as Ct,I as St,J as Gt,N as pe,U as Ee,V as Ut,e as q,M as At,aa as Ge,ab as qe,w as N,x as O,y as R,K as te,al as Jt,a1 as Nt,ag as Kt,R as Yt,Y as Zt,A as Xt,Z as xt,_ as el,a3 as tl,a4 as ll,a5 as ye,a7 as Ot}from"./index.6779d4e2.js";import{E as nl}from"./empty-state.c8d40bbf.js";import{L as rl}from"./loading.a6f9064e.js";import{t as A}from"./translate.29a4bc43.js";import{e as sl,M as Rt,a as Mt,b as Lt,d as Be}from"./menu.7e3d54af.js";import{I as ce}from"./icon.a4e81b70.js";import{L as he}from"./link.8030aa06.js";import{e as Oe,a as Re,b as Me,i as de}from"./index.de481b2a.js";import{c as Ve,e as Le,b as al}from"./event-view.446dd84e.js";import{t as il,r as ol,b as Ze}from"./format-date.79dd40f6.js";import{a as Xe,g as je,b as fl,s as jt,c as Ft,d as qt,e as Pe,f as Bt,h as cl,i as xe}from"./format-event-attributes.f236b430.js";import{q as et}from"./format-time.8258873a.js";import{C as Ce}from"./is-event-type.4dbe973b.js";import{p as Ae}from"./stores.b96d31b2.js";import{C as He}from"./code-block.c796ec58.js";import{C as Ie}from"./index.408ca409.js";import{f as U}from"./format-camel-case.887ffc78.js";import{n as Se,g as _e}from"./route-for.31ffa191.js";import{T as Ht,a as ul}from"./table-header-row.5433617e.js";import{c as ml,a as _l}from"./get-event-categorization.3ec93a88.js";import{e as tt}from"./filters.291afea8.js";import{t as dl}from"./versions.6b1b4529.js";import{u as Wt}from"./pagination.46c6618d.js";import{i as pl}from"./version-check.d006b302.js";import{M as hl}from"./menu-divider.def6f259.js";import{B as vl}from"./button.0b50a4b4.js";function gl(s){let e,l;return e=new nl({props:{title:A("events","empty-state-title"),content:A("events","empty-state-description")}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function $l(s){let e,l;return e=new rl({}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function bl(s){let e,l,t,n,r;const i=[$l,gl],a=[];function c(o,f){return o[0]?0:1}return t=c(s),n=a[t]=i[t](s),{c(){e=$("tr"),l=$("td"),n.c(),this.h()},l(o){e=b(o,"TR",{class:!0});var f=k(e);l=b(f,"TD",{colspan:!0});var m=k(l);n.l(m),m.forEach(d),f.forEach(d),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(o,f){E(o,e,f),h(e,l),a[t].m(l,null),r=!0},p(o,[f]){let m=t;t=c(o),t===m?a[t].p(o,f):(B(),v(a[m],1,1,()=>{a[m]=null}),H(),n=a[t],n?n.p(o,f):(n=a[t]=i[t](o),n.c()),p(n,1),n.m(l,null))},i(o){r||(p(n),r=!0)},o(o){v(n),r=!1},d(o){o&&d(e),a[t].d()}}}function kl(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class mr extends re{constructor(e){super(),se(this,e,kl,bl,ae,{loading:0})}}function lt(s){let e,l,t;return l=new ce({props:{name:s[1]?"spinner":s[3]}}),{c(){e=$("span"),T(l.$$.fragment),this.h()},l(n){e=b(n,"SPAN",{});var r=k(e);D(l.$$.fragment,r),r.forEach(d),this.h()},h(){L(e,"animate-spin",s[1])},m(n,r){E(n,e,r),y(l,e,null),t=!0},p(n,r){const i={};r&10&&(i.name=n[1]?"spinner":n[3]),l.$set(i),(!t||r&2)&&L(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&d(e),V(l)}}}function wl(s){let e,l,t,n,r,i,a=s[3]&<(s);const c=s[7].default,o=Pt(c,s,s[6],null);return{c(){e=$("button"),a&&a.c(),l=C(),o&&o.c(),this.h()},l(f){e=b(f,"BUTTON",{class:!0});var m=k(e);a&&a.l(m),l=S(m),o&&o.l(m),m.forEach(d),this.h()},h(){g(e,"class",t=Ye(`pill ${s[5]} ${s[4]}`)+" svelte-1dt2q6k"),e.disabled=s[0],L(e,"active",s[2])},m(f,m){E(f,e,m),a&&a.m(e,null),h(e,l),o&&o.m(e,null),n=!0,r||(i=Fe(e,"click",s[8]),r=!0)},p(f,[m]){f[3]?a?(a.p(f,m),m&8&&p(a,1)):(a=lt(f),a.c(),p(a,1),a.m(e,l)):a&&(B(),v(a,1,1,()=>{a=null}),H()),o&&o.p&&(!n||m&64)&&Ct(o,c,f,f[6],n?Gt(c,f[6],m,null):St(f[6]),null),(!n||m&48&&t!==(t=Ye(`pill ${f[5]} ${f[4]}`)+" svelte-1dt2q6k"))&&g(e,"class",t),(!n||m&1)&&(e.disabled=f[0]),(!n||m&52)&&L(e,"active",f[2])},i(f){n||(p(a),p(o,f),n=!0)},o(f){v(a),v(o,f),n=!1},d(f){f&&d(e),a&&a.d(),o&&o.d(f),r=!1,i()}}}function El(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:i=!1}=e,{active:a=!1}=e,{icon:c=null}=e,{classes:o=e.class}=e,{color:f="gray"}=e;function m(u){Ut.call(this,s,u)}return s.$$set=u=>{l(9,e=pe(pe({},e),Ee(u))),"disabled"in u&&l(0,r=u.disabled),"loading"in u&&l(1,i=u.loading),"active"in u&&l(2,a=u.active),"icon"in u&&l(3,c=u.icon),"classes"in u&&l(4,o=u.classes),"color"in u&&l(5,f=u.color),"$$scope"in u&&l(6,n=u.$$scope)},e=Ee(e),[r,i,a,c,o,f,n,t,m]}class Il extends re{constructor(e){super(),se(this,e,El,wl,ae,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function nt(s,e,l){const t=s.slice();t[5]=e[l][0],t[6]=e[l][1];const n=t[1]===t[5];return t[7]=n,t}function rt(s){let e,l,t=[],n=new Map,r,i=Object.entries(s[0]);const a=c=>c[5];for(let c=0;c{r=null}),H())},i(i){n||(p(r),n=!0)},o(i){v(r),n=!1},d(i){i&&d(l),r&&r.d(i),i&&d(t)}}}function Dl(s){let e,l,t=s[2]>1&&rt(s);return{c(){t&&t.c(),e=q()},l(n){t&&t.l(n),e=q()},m(n,r){t&&t.m(n,r),E(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=rt(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(B(),v(t,1,1,()=>{t=null}),H())},i(n){l||(p(t),l=!0)},o(n){v(t),l=!1},d(n){t&&t.d(n),n&&d(e)}}}function yl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const i=At(),a=c=>i("pillChange",{key:c});return s.$$set=c=>{"attributeGrouping"in c&&l(0,n=c.attributeGrouping),"activePill"in c&&l(1,r=c.activePill)},s.$$.update=()=>{s.$$.dirty&1&&l(2,t=Object.values(n).reduce((c,o)=>(o.length&&(c+=1),c),0))},[n,r,t,i,a]}class Qt extends re{constructor(e){super(),se(this,e,yl,Dl,ae,{attributeGrouping:0,activePill:1})}}function Vl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("p"),a=$("span"),c=N(s[1]),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"P",{class:!0});var u=k(i);a=b(u,"SPAN",{class:!0});var _=k(a);c=O(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(a,"class","select-all px-2 svelte-10e9wiy"),L(a,"badge",!Pe(s[0])),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),h(i,a),h(a,c)},p(o,f){f&1&&t!==(t=U(o[0])+"")&&R(n,t),f&2&&R(c,o[1]),f&1&&L(a,"badge",!Pe(o[0]))},i:ee,o:ee,d(o){o&&d(e)}}}function Pl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Nl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1026&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Cl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Rl]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1030&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Sl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(i,"class","text-sm"),g(e,"class","content detail-row svelte-10e9wiy")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&1026&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Gl(s){let e,l,t,n=U(s[0])+"",r,i,a,c,o,f;a=new He({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":"")+" max-h-96 overflow-auto",inline:s[3],copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}});let m=s[5]&&!s[3]&&it(s);return{c(){e=$("div"),l=$("div"),t=$("p"),r=N(n),i=C(),T(a.$$.fragment),o=C(),m&&m.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);l=b(_,"DIV",{class:!0});var w=k(l);t=b(w,"P",{class:!0});var I=k(t);r=O(I,n),I.forEach(d),i=S(w),D(a.$$.fragment,w),w.forEach(d),o=S(_),m&&m.l(_),_.forEach(d),this.h()},h(){g(t,"class","text-sm"),g(l,"class",c="flex flex-col "+(s[5]?"lg:w-1/2":"")),g(e,"class","content code-block-row svelte-10e9wiy"),L(e,"code-with-stack-trace",s[5])},m(u,_){E(u,e,_),h(e,l),h(l,t),h(t,r),h(l,i),y(a,l,null),h(e,o),m&&m.m(e,null),f=!0},p(u,_){(!f||_&1)&&n!==(n=U(u[0])+"")&&R(r,n);const w={};_&16&&(w.content=u[4]),_&32&&(w.class="h-auto "+(u[5]?"mb-2":"")+" max-h-96 overflow-auto"),_&8&&(w.inline=u[3]),a.$set(w),(!f||_&32&&c!==(c="flex flex-col "+(u[5]?"lg:w-1/2":"")))&&g(l,"class",c),u[5]&&!u[3]?m?(m.p(u,_),_&40&&p(m,1)):(m=it(u),m.c(),p(m,1),m.m(e,null)):m&&(B(),v(m,1,1,()=>{m=null}),H()),(!f||_&32)&&L(e,"code-with-stack-trace",u[5])},i(u){f||(p(a.$$.fragment,u),p(m),f=!0)},o(u){v(a.$$.fragment,u),v(m),f=!1},d(u){u&&d(e),V(a),m&&m.d()}}}function Al(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Nl(s){let e,l;return e=new he({props:{newTab:!0,href:Se({namespace:s[7],queue:s[1]}),$$slots:{default:[Al]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Se({namespace:t[7],queue:t[1]})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function Ol(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Rl(s){var t;let e,l;return e=new he({props:{newTab:!0,href:_e({namespace:((t=s[2])==null?void 0:t.namespace)||s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ol]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){var a;const i={};r&4&&(i.href=_e({namespace:((a=n[2])==null?void 0:a.namespace)||n[7],workflow:n[2].workflowExecutionWorkflowId,run:n[2].workflowExecutionRunId})),r&1026&&(i.$$scope={dirty:r,ctx:n}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function Ml(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function Ll(s){let e,l;return e=new he({props:{newTab:!0,href:_e({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=_e({namespace:t[7],workflow:t[6],run:t[1]})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function it(s){let e,l,t,n,r,i;return r=new He({props:{content:s[5],language:"text",class:"mb-2 h-full lg:pr-2",copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=$("div"),l=$("p"),t=N("Stack trace"),n=C(),T(r.$$.fragment),this.h()},l(a){e=b(a,"DIV",{class:!0});var c=k(e);l=b(c,"P",{class:!0});var o=k(l);t=O(o,"Stack trace"),o.forEach(d),n=S(c),D(r.$$.fragment,c),c.forEach(d),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(a,c){E(a,e,c),h(e,l),h(l,t),h(e,n),y(r,e,null),i=!0},p(a,c){const o={};c&32&&(o.content=a[5]),r.$set(o)},i(a){i||(p(r.$$.fragment,a),i=!0)},o(a){v(r.$$.fragment,a),i=!1},d(a){a&&d(e),V(r)}}}function jl(s){let e,l,t,n,r,i,a,c;const o=[Gl,Sl,Cl,Pl,Vl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!jt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!qt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=o[r](s),{c(){e=$("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){g(e,"class",a="row "+s[8].class+" svelte-10e9wiy")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(B(),v(f[w],1,1,()=>{f[w]=null}),H(),i=f[r],i?i.p(u,_):(i=f[r]=o[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&256&&a!==(a="row "+u[8].class+" svelte-10e9wiy"))&&g(e,"class",a)},i(u){c||(p(i),c=!0)},o(u){v(i),c=!1},d(u){u&&d(e),f[r].d()}}}function Fl(s,e,l){let t,n,r;te(s,Ae,u=>l(9,r=u));let{key:i}=e,{value:a}=e,{attributes:c}=e,{inline:o=!1}=e;const{workflow:f,namespace:m}=r.params;return s.$$set=u=>{l(8,e=pe(pe({},e),Ee(u))),"key"in u&&l(0,i=u.key),"value"in u&&l(1,a=u.value),"attributes"in u&&l(2,c=u.attributes),"inline"in u&&l(3,o=u.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=je(a)),s.$$.dirty&16&&l(5,n=fl(t))},e=Ee(e),[i,a,c,o,t,n,f,m,e]}class zt extends re{constructor(e){super(),se(this,e,Fl,jl,ae,{key:0,value:1,attributes:2,inline:3})}}function ot(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ft(s,e){let l,t,n,r,i,a=e[4]+"",c,o,f,m,u=(Ce(e[5])?"LocalActivity":e[5].eventType)+"",_,w,I,F,W,x;function le(){return e[3](e[4])}return{key:s,first:null,c(){l=$("tr"),t=$("td"),n=C(),r=$("td"),i=$("p"),c=N(a),o=C(),f=$("td"),m=$("p"),_=N(u),w=C(),I=$("td"),F=C(),this.h()},l(X){l=b(X,"TR",{class:!0});var j=k(l);t=b(j,"TD",{class:!0}),k(t).forEach(d),n=S(j),r=b(j,"TD",{class:!0});var ne=k(r);i=b(ne,"P",{class:!0});var oe=k(i);c=O(oe,a),oe.forEach(d),ne.forEach(d),o=S(j),f=b(j,"TD",{});var ue=k(f);m=b(ue,"P",{class:!0});var fe=k(m);_=O(fe,u),fe.forEach(d),ue.forEach(d),w=S(j),I=b(j,"TD",{}),k(I).forEach(d),F=S(j),j.forEach(d),this.h()},h(){g(t,"class","w-1/12"),g(i,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(m,"class","event-type truncate text-sm md:text-base svelte-11yead6"),g(l,"class","row svelte-11yead6"),L(l,"active",e[4]===e[1]),L(l,"failure",Oe(e[5])),L(l,"canceled",Re(e[5])),L(l,"terminated",Me(e[5])),this.first=l},m(X,j){E(X,l,j),h(l,t),h(l,n),h(l,r),h(r,i),h(i,c),h(l,o),h(l,f),h(f,m),h(m,_),h(l,w),h(l,I),h(l,F),W||(x=Fe(l,"click",Nt(Kt(le))),W=!0)},p(X,j){e=X,j&1&&a!==(a=e[4]+"")&&R(c,a),j&1&&u!==(u=(Ce(e[5])?"LocalActivity":e[5].eventType)+"")&&R(_,u),j&3&&L(l,"active",e[4]===e[1]),j&1&&L(l,"failure",Oe(e[5])),j&1&&L(l,"canceled",Re(e[5])),j&1&&L(l,"terminated",Me(e[5]))},d(X){X&&d(l),W=!1,x()}}}function ql(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=i=>i[4];for(let i=0;ir(a);return s.$$set=a=>{"eventGroup"in a&&l(0,t=a.eventGroup),"selectedId"in a&&l(1,n=a.selectedId),"onGroupClick"in a&&l(2,r=a.onGroupClick)},[t,n,r,i]}class Wl extends re{constructor(e){super(),se(this,e,Hl,Bl,ae,{eventGroup:0,selectedId:1,onGroupClick:2})}}function ct(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function ut(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function Ql(s){let e,l,t,n=[],r=new Map,i;l=new Qt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let a=s[6];const c=o=>o[10];for(let o=0;ou[10];for(let u=0;u{i=null}),H())},i(c){r||(p(i),r=!0)},o(c){v(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function dt(s){let e,l;return e=new zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&64&&(r.key=t[10]),n&64&&(r.value=t[11]),n&8&&(r.attributes=t[3]),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function pt(s,e){var a;let l,t=(a=e[4][e[5]])==null?void 0:a.includes(e[10]),n,r,i=t&&dt(e);return{key:s,first:null,c(){l=q(),i&&i.c(),n=q(),this.h()},l(c){l=q(),i&&i.l(c),n=q(),this.h()},h(){this.first=l},m(c,o){E(c,l,o),i&&i.m(c,o),E(c,n,o),r=!0},p(c,o){var f;e=c,o&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?i?(i.p(e,o),o&112&&p(i,1)):(i=dt(e),i.c(),p(i,1),i.m(n.parentNode,n)):i&&(B(),v(i,1,1,()=>{i=null}),H())},i(c){r||(p(i),r=!0)},o(c){v(i),r=!1},d(c){c&&d(l),i&&i.d(c),c&&d(n)}}}function Ul(s){let e,l,t,n,r;const i=[zl,Ql],a=[];function c(o,f){return f&6&&(e=null),e==null&&(e=!!(o[2]&&de(o[1]))),e?0:1}return l=c(s,-1),t=a[l]=i[l](s),{c(){t.c(),n=q()},l(o){t.l(o),n=q()},m(o,f){a[l].m(o,f),E(o,n,f),r=!0},p(o,[f]){let m=l;l=c(o,f),l===m?a[l].p(o,f):(B(),v(a[m],1,1,()=>{a[m]=null}),H(),t=a[l],t?t.p(o,f):(t=a[l]=i[l](o),t.c()),p(t,1),t.m(n.parentNode,n))},i(o){r||(p(t),r=!0)},o(o){v(t),r=!1},d(o){a[l].d(o),o&&d(n)}}}function Jl(s,e,l){let t,n,r,i,{event:a}=e,{currentEvent:c}=e,{compact:o=!1}=e,{selectedId:f}=e;const m=_=>{l(5,r=_.detail.key)},u=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,a=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,o=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Bt(c,{compact:o})),s.$$.dirty&10&&l(4,n=cl(a,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,i=Object.entries(t))},[f,a,o,t,n,r,i,m,u,c]}class Kl extends re{constructor(e){super(),se(this,e,Jl,Ul,ae,{event:1,currentEvent:9,compact:2,selectedId:0})}}function Yl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("p"),a=$("span"),c=N(s[1]),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"P",{class:!0});var u=k(i);a=b(u,"SPAN",{class:!0});var _=k(a);c=O(_,s[1]),_.forEach(d),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(a,"class","w-full select-all text-gray-700 svelte-n4ehvt"),L(a,"badge",!Pe(s[0])),g(i,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),h(i,a),h(a,c)},p(o,f){f&1&&t!==(t=U(o[0])+"")&&R(n,t),f&2&&R(c,o[1]),f&1&&L(a,"badge",!Pe(o[0]))},i:ee,o:ee,d(o){o&&d(e)}}}function Zl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],$$slots:{default:[ln]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&258&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function Xl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[rn]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&262&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function xl(s){let e,l,t=U(s[0])+"",n,r,i,a,c;return a=new Ie({props:{copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title"),content:s[1],"container-class":"xl:flex-row",$$slots:{default:[an]},$$scope:{ctx:s}}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),i=$("div"),T(a.$$.fragment),this.h()},l(o){e=b(o,"DIV",{class:!0});var f=k(e);l=b(f,"P",{class:!0});var m=k(l);n=O(m,t),m.forEach(d),r=S(f),i=b(f,"DIV",{class:!0});var u=k(i);D(a.$$.fragment,u),u.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(o,f){E(o,e,f),h(e,l),h(l,n),h(e,r),h(e,i),y(a,i,null),c=!0},p(o,f){(!c||f&1)&&t!==(t=U(o[0])+"")&&R(n,t);const m={};f&2&&(m.content=o[1]),f&258&&(m.$$scope={dirty:f,ctx:o}),a.$set(m)},i(o){c||(p(a.$$.fragment,o),c=!0)},o(o){v(a.$$.fragment,o),c=!1},d(o){o&&d(e),V(a)}}}function en(s){let e,l,t=U(s[0])+"",n,r,i,a;return i=new He({props:{content:je(s[1]),inline:s[3],copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=$("div"),l=$("p"),n=N(t),r=C(),T(i.$$.fragment),this.h()},l(c){e=b(c,"DIV",{class:!0});var o=k(e);l=b(o,"P",{class:!0});var f=k(l);n=O(f,t),f.forEach(d),r=S(o),D(i.$$.fragment,o),o.forEach(d),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center justify-between gap-1 pr-1 xl:flex-nowrap xl:gap-4")},m(c,o){E(c,e,o),h(e,l),h(l,n),h(e,r),y(i,e,null),a=!0},p(c,o){(!a||o&1)&&t!==(t=U(c[0])+"")&&R(n,t);const f={};o&2&&(f.content=je(c[1])),o&8&&(f.inline=c[3]),i.$set(f)},i(c){a||(p(i.$$.fragment,c),a=!0)},o(c){v(i.$$.fragment,c),a=!1},d(c){c&&d(e),V(i)}}}function tn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function ln(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:Se({namespace:s[5],queue:s[1]}),$$slots:{default:[tn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=Se({namespace:t[5],queue:t[1]})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function nn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function rn(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:_e({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[nn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=_e({namespace:t[5],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function sn(s){let e;return{c(){e=N(s[1])},l(l){e=O(l,s[1])},m(l,t){E(l,e,t)},p(l,t){t&2&&R(e,l[1])},d(l){l&&d(e)}}}function an(s){let e,l;return e=new he({props:{class:"truncate",newTab:!0,href:_e({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[sn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=_e({namespace:t[5],workflow:t[4],run:t[1]})),n&258&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function on(s){let e,l,t,n,r,i,a,c;const o=[en,xl,Xl,Zl,Yl],f=[];function m(u,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof u[1]=="object"?0:(l==null&&(l=!!jt(u[0])),l?1:(t==null&&(t=!!Ft(u[0],u[2])),t?2:(n==null&&(n=!!qt(u[0])),n?3:4)))}return r=m(s,-1),i=f[r]=o[r](s),{c(){e=$("div"),i.c(),this.h()},l(u){e=b(u,"DIV",{class:!0});var _=k(e);i.l(_),_.forEach(d),this.h()},h(){g(e,"class",a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(u,_){E(u,e,_),f[r].m(e,null),c=!0},p(u,[_]){let w=r;r=m(u,_),r===w?f[r].p(u,_):(B(),v(f[w],1,1,()=>{f[w]=null}),H(),i=f[r],i?i.p(u,_):(i=f[r]=o[r](u),i.c()),p(i,1),i.m(e,null)),(!c||_&64&&a!==(a="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+u[6].class+" svelte-n4ehvt"))&&g(e,"class",a)},i(u){c||(p(i),c=!0)},o(u){v(i),c=!1},d(u){u&&d(e),f[r].d()}}}function fn(s,e,l){let t;te(s,Ae,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:i}=e,{inline:a=!1}=e;const{workflow:c,namespace:o}=t.params;return s.$$set=f=>{l(6,e=pe(pe({},e),Ee(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,i=f.attributes),"inline"in f&&l(3,a=f.inline)},e=Ee(e),[n,r,i,a,c,o,e]}class cn extends re{constructor(e){super(),se(this,e,fn,on,ae,{key:0,value:1,attributes:2,inline:3})}}function un(s){let e=s[0].id+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p(t,n){n&1&&e!==(e=t[0].id+"")&&R(l,e)},d(t){t&&d(l)}}}function mn(s){var n;let e,l=Ze((n=s[0])==null?void 0:n.eventTime,s[13],{relative:s[14]})+"",t;return{c(){e=$("p"),t=N(l),this.h()},l(r){e=b(r,"P",{class:!0});var i=k(e);t=O(i,l),i.forEach(d),this.h()},h(){g(e,"class","break-word truncate text-sm md:whitespace-normal md:text-base")},m(r,i){E(r,e,i),h(e,t)},p(r,i){var a;i&24577&&l!==(l=Ze((a=r[0])==null?void 0:a.eventTime,r[13],{relative:r[14]})+"")&&R(t,l)},i:ee,o:ee,d(r){r&&d(e)}}}function _n(s){let e,l,t,n,r=s[9]&&ht(s),i=s[8]&&s[8]!=="0ms"&&vt(s);return{c(){e=$("p"),r&&r.c(),l=C(),i&&i.c(),t=q(),this.h()},l(a){e=b(a,"P",{class:!0});var c=k(e);r&&r.l(c),c.forEach(d),l=S(a),i&&i.l(a),t=q(),this.h()},h(){g(e,"class","break-word truncate text-sm md:whitespace-normal")},m(a,c){E(a,e,c),r&&r.m(e,null),E(a,l,c),i&&i.m(a,c),E(a,t,c),n=!0},p(a,c){a[9]?r?r.p(a,c):(r=ht(a),r.c(),r.m(e,null)):r&&(r.d(1),r=null),a[8]&&a[8]!=="0ms"?i?(i.p(a,c),c&256&&p(i,1)):(i=vt(a),i.c(),p(i,1),i.m(t.parentNode,t)):i&&(B(),v(i,1,1,()=>{i=null}),H())},i(a){n||(p(i),n=!0)},o(a){v(i),n=!1},d(a){a&&d(e),r&&r.d(),a&&d(l),i&&i.d(a),a&&d(t)}}}function ht(s){let e=s[12]?"-":"+",l,t;return{c(){l=N(e),t=N(s[9])},l(n){l=O(n,e),t=O(n,s[9])},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&4096&&e!==(e=n[12]?"-":"+")&&R(l,e),r&512&&R(t,n[9])},d(n){n&&d(l),n&&d(t)}}}function vt(s){let e,l,t,n,r,i;return l=new ce({props:{class:"inline",name:"clock"}}),{c(){e=$("div"),T(l.$$.fragment),t=C(),n=$("p"),r=N(s[8]),this.h()},l(a){e=b(a,"DIV",{class:!0});var c=k(e);D(l.$$.fragment,c),t=S(c),n=b(c,"P",{class:!0});var o=k(n);r=O(o,s[8]),o.forEach(d),c.forEach(d),this.h()},h(){g(n,"class","break-word truncate text-sm md:whitespace-normal"),g(e,"class","flex flex-row items-center gap-0")},m(a,c){E(a,e,c),y(l,e,null),h(e,t),h(e,n),h(n,r),i=!0},p(a,c){(!i||c&256)&&R(r,a[8])},i(a){i||(p(l.$$.fragment,a),i=!0)},o(a){v(l.$$.fragment,a),i=!1},d(a){a&&d(e),V(l)}}}function gt(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function $t(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function bt(s){let e,l;return e=new ce({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function kt(s){let e,l,t;return l=new ce({props:{class:"inline",name:"chevron-up"}}),{c(){e=$("div"),T(l.$$.fragment)},l(n){e=b(n,"DIV",{});var r=k(e);D(l.$$.fragment,r),r.forEach(d)},m(n,r){E(n,e,r),y(l,e,null),t=!0},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){v(l.$$.fragment,n),t=!1},d(n){n&&d(e),V(l)}}}function wt(s){let e,l,t,n,r,i,a,c;const o=[xe(s[6]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let f={};for(let m=0;mxt(t,"selectedId",a)),{c(){e=$("tr"),l=$("td"),T(t.$$.fragment),this.h()},l(o){e=b(o,"TR",{class:!0});var f=k(e);l=b(f,"TD",{class:!0,colspan:!0});var m=k(l);D(t.$$.fragment,m),m.forEach(d),f.forEach(d),this.h()},h(){g(l,"class","expanded-cell svelte-bv1sbi"),g(l,"colspan","6"),g(e,"class","svelte-bv1sbi"),L(e,"typedError",s[3])},m(o,f){E(o,e,f),h(e,l),y(t,l,null),i=!0},p(o,f){const m={};f&1&&(m.event=o[0]),f&64&&(m.currentEvent=o[6]),f&2&&(m.compact=o[1]),!n&&f&32&&(n=!0,m.selectedId=o[5],el(()=>n=!1)),t.$set(m),(!i||f&8)&&L(e,"typedError",o[3])},i(o){i||(p(t.$$.fragment,o),o&&(r||tl(()=>{r=ll(e,sl,{}),r.start()})),i=!0)},o(o){v(t.$$.fragment,o),i=!1},d(o){o&&d(e),V(t)}}}function dn(s){let e,l,t,n,r,i,a,c,o,f,m,u,_,w,I,F,W,x,le,X=(de(s[0])?s[0].displayName:Ce(s[0])?"LocalActivity":s[0].name)+"",j,ne,oe,ue,fe,ve,ge,M,$e,ie,Ne,We;r=new he({props:{class:"truncate",href:"#"+s[0].id,$$slots:{default:[un]},$$scope:{ctx:s}}});const Qe=[_n,mn],me=[];function ze(P,G){return P[11]?0:1}o=ze(s),f=me[o]=Qe[o](s);let J=s[1]&&s[16]&>(),K=s[1]&&s[17]&&$t(),Y=s[1]&&s[18]&&bt(),Z=s[7]&&kt(),Q=!s[7]&&wt(s),z=s[7]&&Et(s);return{c(){e=$("tr"),l=$("td"),t=C(),n=$("td"),T(r.$$.fragment),i=C(),a=$("td"),c=$("div"),f.c(),m=C(),u=$("td"),_=$("div"),w=$("div"),J&&J.c(),I=C(),K&&K.c(),F=C(),Y&&Y.c(),W=C(),x=$("div"),le=$("p"),j=N(X),ne=C(),Z&&Z.c(),ue=C(),Q&&Q.c(),fe=C(),ve=$("td"),M=C(),z&&z.c(),$e=q(),this.h()},l(P){e=b(P,"TR",{class:!0,id:!0,"data-testid":!0});var G=k(e);l=b(G,"TD",{}),k(l).forEach(d),t=S(G),n=b(G,"TD",{class:!0});var be=k(n);D(r.$$.fragment,be),be.forEach(d),i=S(G),a=b(G,"TD",{class:!0});var ke=k(a);c=b(ke,"DIV",{class:!0});var Ue=k(c);f.l(Ue),Ue.forEach(d),ke.forEach(d),m=S(G),u=b(G,"TD",{colspan:!0,class:!0});var Je=k(u);_=b(Je,"DIV",{class:!0});var Te=k(_);w=b(Te,"DIV",{});var we=k(w);J&&J.l(we),I=S(we),K&&K.l(we),F=S(we),Y&&Y.l(we),we.forEach(d),W=S(Te),x=b(Te,"DIV",{class:!0});var De=k(x);le=b(De,"P",{class:!0});var Ke=k(le);j=O(Ke,X),Ke.forEach(d),ne=S(De),Z&&Z.l(De),De.forEach(d),Te.forEach(d),Je.forEach(d),ue=S(G),Q&&Q.l(G),fe=S(G),ve=b(G,"TD",{}),k(ve).forEach(d),G.forEach(d),M=S(P),z&&z.l(P),$e=q(),this.h()},h(){g(n,"class","w-24 text-left"),g(c,"class","flex flex-col gap-0"),g(a,"class","text-left"),g(le,"class","event-name truncate text-sm font-semibold md:text-base svelte-bv1sbi"),g(x,"class","flex w-full items-center justify-between truncate"),g(_,"class","flex"),g(u,"colspan",oe=s[7]?2:1),g(u,"class","text-right text-sm font-normal xl:text-left"),g(e,"class","row svelte-bv1sbi"),g(e,"id",ge=s[0].id),g(e,"data-testid","event-summary-row"),L(e,"expanded",s[7]&&!s[2]),L(e,"active",s[4]),L(e,"failure",s[16]),L(e,"canceled",s[17]),L(e,"terminated",s[18]),L(e,"typedError",s[3])},m(P,G){E(P,e,G),h(e,l),h(e,t),h(e,n),y(r,n,null),h(e,i),h(e,a),h(a,c),me[o].m(c,null),h(e,m),h(e,u),h(u,_),h(_,w),J&&J.m(w,null),h(w,I),K&&K.m(w,null),h(w,F),Y&&Y.m(w,null),h(_,W),h(_,x),h(x,le),h(le,j),h(x,ne),Z&&Z.m(x,null),h(e,ue),Q&&Q.m(e,null),h(e,fe),h(e,ve),E(P,M,G),z&&z.m(P,G),E(P,$e,G),ie=!0,Ne||(We=Fe(e,"click",Nt(s[15])),Ne=!0)},p(P,[G]){const be={};G&1&&(be.href="#"+P[0].id),G&33554433&&(be.$$scope={dirty:G,ctx:P}),r.$set(be);let ke=o;o=ze(P),o===ke?me[o].p(P,G):(B(),v(me[ke],1,1,()=>{me[ke]=null}),H(),f=me[o],f?f.p(P,G):(f=me[o]=Qe[o](P),f.c()),p(f,1),f.m(c,null)),P[1]&&P[16]?J?G&2&&p(J,1):(J=gt(),J.c(),p(J,1),J.m(w,I)):J&&(B(),v(J,1,1,()=>{J=null}),H()),P[1]&&P[17]?K?G&2&&p(K,1):(K=$t(),K.c(),p(K,1),K.m(w,F)):K&&(B(),v(K,1,1,()=>{K=null}),H()),P[1]&&P[18]?Y?G&2&&p(Y,1):(Y=bt(),Y.c(),p(Y,1),Y.m(w,null)):Y&&(B(),v(Y,1,1,()=>{Y=null}),H()),(!ie||G&1)&&X!==(X=(de(P[0])?P[0].displayName:Ce(P[0])?"LocalActivity":P[0].name)+"")&&R(j,X),P[7]?Z?G&128&&p(Z,1):(Z=kt(),Z.c(),p(Z,1),Z.m(x,null)):Z&&(B(),v(Z,1,1,()=>{Z=null}),H()),(!ie||G&128&&oe!==(oe=P[7]?2:1))&&g(u,"colspan",oe),P[7]?Q&&(B(),v(Q,1,1,()=>{Q=null}),H()):Q?(Q.p(P,G),G&128&&p(Q,1)):(Q=wt(P),Q.c(),p(Q,1),Q.m(e,fe)),(!ie||G&1&&ge!==(ge=P[0].id))&&g(e,"id",ge),(!ie||G&132)&&L(e,"expanded",P[7]&&!P[2]),(!ie||G&16)&&L(e,"active",P[4]),(!ie||G&8)&&L(e,"typedError",P[3]),P[7]?z?(z.p(P,G),G&128&&p(z,1)):(z=Et(P),z.c(),p(z,1),z.m($e.parentNode,$e)):z&&(B(),v(z,1,1,()=>{z=null}),H())},i(P){ie||(p(r.$$.fragment,P),p(f),p(J),p(K),p(Y),p(Z),p(Q),p(z),ie=!0)},o(P){v(r.$$.fragment,P),v(f),v(J),v(K),v(Y),v(Z),v(Q),v(z),ie=!1},d(P){P&&d(e),V(r),me[o].d(),J&&J.d(),K&&K.d(),Y&&Y.d(),Z&&Z.d(),Q&&Q.d(),P&&d(M),z&&z.d(P),P&&d($e),Ne=!1,We()}}}function pn(s,e,l){let t,n,r,i,a,c,o,f,m,u,_,w;te(s,Ve,M=>l(22,m=M)),te(s,Le,M=>l(23,u=M)),te(s,il,M=>l(13,_=M)),te(s,ol,M=>l(14,w=M));let{event:I}=e,{initialItem:F}=e,{compact:W=!1}=e,{expandAll:x=!1}=e,{typedError:le=!1}=e,{active:X=!1}=e,{onRowClick:j=ee}=e,ne=de(I)?Array.from(I.events.keys()).pop():I.id;const oe=()=>{l(7,t=!t),j()},ue=Oe(I),fe=Re(I),ve=Me(I);function ge(M){ne=M,l(5,ne)}return s.$$set=M=>{"event"in M&&l(0,I=M.event),"initialItem"in M&&l(19,F=M.initialItem),"compact"in M&&l(1,W=M.compact),"expandAll"in M&&l(2,x=M.expandAll),"typedError"in M&&l(3,le=M.typedError),"active"in M&&l(4,X=M.active),"onRowClick"in M&&l(20,j=M.onRowClick)},s.$$.update=()=>{s.$$.dirty&20&&l(7,t=x||X),s.$$.dirty&8388608&&l(12,n=u==="descending"),s.$$.dirty&4194304&&l(21,r=m==="true"),s.$$.dirty&2621441&&l(11,i=r&&F&&I.id!==F.id),s.$$.dirty&3&&l(10,a=Bt(I,{compact:W})),s.$$.dirty&33&&l(6,c=de(I)?I.events.get(ne):I),s.$$.dirty&524353&&l(9,o=et({start:F.eventTime,end:de(I)?I.initialEvent.eventTime:c.eventTime,includeMilliseconds:!0})),s.$$.dirty&1&&l(8,f=de(I)?et({start:I.initialEvent.eventTime,end:I.lastEvent.eventTime,includeMilliseconds:!0}):"")},[I,W,x,le,X,ne,c,t,f,o,a,i,n,_,w,oe,ue,fe,ve,F,j,r,m,u,ge]}class _r extends re{constructor(e){super(),se(this,e,pn,dn,ae,{event:0,initialItem:19,compact:1,expandAll:2,typedError:3,active:4,onRowClick:20})}}function It(s,e,l){const t=s.slice();return t[3]=e[l].label,t[12]=e[l].option,t}function hn(s){let e;return{c(){e=N(s[3])},l(l){e=O(l,s[3])},m(l,t){E(l,e,t)},p(l,t){t&8&&R(e,l[3])},d(l){l&&d(e)}}}function vn(s){let e,l;return e=new ce({props:{name:"filter",slot:"trailing"}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p:ee,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function gn(s){let e=A("events",s[3])+"",l,t;return{c(){l=N(e),t=C()},l(n){l=O(n,e),t=S(n)},m(n,r){E(n,l,r),E(n,t,r)},p(n,r){r&2&&e!==(e=A("events",n[3])+"")&&R(l,e)},d(n){n&&d(l),n&&d(t)}}}function Tt(s){let e,l;function t(){return s[11](s[12])}return e=new Be({props:{"data-testid":"event-category-option",selected:s[2]===s[12],$$slots:{default:[gn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&6&&(i.selected=s[2]===s[12]),r&32770&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function $n(s){let e,l,t=s[1],n=[];for(let i=0;iv(n[i],1,1,()=>{n[i]=null});return{c(){for(let i=0;il(9,r=I)),te(s,tt,I=>l(2,i=I)),te(s,dl,I=>l(10,a=I));var c,o;let{compact:f=!1}=e,{variant:m="table-header"}=e,u=f?ml:_l;const _=I=>{Wt({parameter:Dt,value:I,url:r.url})},w=I=>_(I);return s.$$set=I=>{"compact"in I&&l(5,f=I.compact),"variant"in I&&l(0,m=I.variant)},s.$$.update=()=>{s.$$.dirty&32&&l(3,t=f?A("events","event-type"):A("events","workflow-events")),s.$$.dirty&1026&&pl("1.21",a)&&l(1,u=u.filter(({option:I})=>I!=="update")),s.$$.dirty&514&&l(8,n=u.find(({option:I})=>{var F,W;return I===((W=(F=r.url)===null||F===void 0?void 0:F.searchParams)===null||W===void 0?void 0:W.get(Dt))})),s.$$.dirty&448&&ye(tt,i=l(7,o=l(6,c=n==null?void 0:n.option)===null||c===void 0?void 0:c.toString())!==null&&o!==void 0?o:void 0,i)},[m,u,i,t,_,f,c,o,n,r,a,w]}class En extends re{constructor(e){super(),se(this,e,wn,kn,ae,{compact:5,variant:0})}}const In=({compact:s,sortOrder:e,showElapsed:l})=>{if(!((s||e==="descending")&&l==="false"))return`${e}:${l}`};function yt(s,e,l){const t=s.slice();return t[9]=e[l].option,t[10]=e[l].label,t}function Tn(s){let e,l,t,n=A("date-and-time")+"",r,i;return e=new ce({props:{class:"md:hidden",name:"clock"}}),{c(){T(e.$$.fragment),l=C(),t=$("span"),r=N(n),this.h()},l(a){D(e.$$.fragment,a),l=S(a),t=b(a,"SPAN",{class:!0});var c=k(t);r=O(c,n),c.forEach(d),this.h()},h(){g(t,"class","max-md:hidden")},m(a,c){y(e,a,c),E(a,l,c),E(a,t,c),h(t,r),i=!0},p:ee,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){v(e.$$.fragment,a),i=!1},d(a){V(e,a),a&&d(l),a&&d(t)}}}function Dn(s){let e=s[10]+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p:ee,d(t){t&&d(l)}}}function Vt(s){let e,l;function t(){return s[7](s[9])}return e=new Be({props:{selected:s[1]===s[9],$$slots:{default:[Dn]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){T(e.$$.fragment)},l(n){D(e.$$.fragment,n)},m(n,r){y(e,n,r),l=!0},p(n,r){s=n;const i={};r&2&&(i.selected=s[1]===s[9]),r&8192&&(i.$$scope={dirty:r,ctx:s}),e.$set(i)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){v(e.$$.fragment,n),l=!1},d(n){V(e,n)}}}function yn(s){let e=A("events","show-elapsed-time")+"",l;return{c(){l=N(e)},l(t){l=O(t,e)},m(t,n){E(t,l,n)},p:ee,d(t){t&&d(l)}}}function Vn(s){let e,l,t,n,r,i=s[3],a=[];for(let o=0;ov(a[o],1,1,()=>{a[o]=null});return l=new hl({}),n=new Be({props:{selected:s[0]==="true",$$slots:{default:[yn]},$$scope:{ctx:s}}}),n.$on("click",s[5]),{c(){for(let o=0;ol(0,n=u)),te(s,Le,u=>l(1,r=u)),te(s,Ae,u=>l(8,i=u));let{compact:a}=e,c=[{label:A("events","sort-ascending"),option:"ascending"},{label:A("events","sort-descending"),option:"descending"}];const o=u=>{ye(Le,r=u,r),Wt({parameter:"sort",value:u,url:i.url})},f=()=>{n==="true"?ye(Ve,n="false",n):ye(Ve,n="true",n)},m=u=>o(u);return s.$$set=u=>{"compact"in u&&l(6,a=u.compact)},s.$$.update=()=>{s.$$.dirty&67&&l(2,t=In({compact:a,sortOrder:r,showElapsed:n}))},[n,r,t,c,o,f,a,m]}class Gn extends re{constructor(e){super(),se(this,e,Sn,Cn,ae,{compact:6})}}function An(s){let e;const l=s[4].default,t=Pt(l,s,s[5],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&32)&&Ct(t,l,n,n[5],e?Gt(l,n[5],r,null):St(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){v(t,n),e=!1},d(n){t&&t.d(n)}}}function Nn(s){let e,l=A("workflows","event-history")+"",t;return{c(){e=$("caption"),t=N(l),this.h()},l(n){e=b(n,"CAPTION",{class:!0,slot:!0});var r=k(e);t=O(r,l),r.forEach(d),this.h()},h(){g(e,"class","sr-only"),g(e,"slot","caption")},m(n,r){E(n,e,r),h(e,t)},p:ee,d(n){n&&d(e)}}}function On(s){let e,l=(s[2]?A("collapse-all"):A("expand-all"))+"",t;return{c(){e=$("span"),t=N(l),this.h()},l(n){e=b(n,"SPAN",{class:!0});var r=k(e);t=O(r,l),r.forEach(d),this.h()},h(){g(e,"class","hidden sm:block")},m(n,r){E(n,e,r),h(e,t)},p(n,r){r&4&&l!==(l=(n[2]?A("collapse-all"):A("expand-all"))+"")&&R(t,l)},d(n){n&&d(e)}}}function Rn(s){let e,l,t,n,r,i,a,c,o,f,m,u;return n=new Gn({props:{compact:s[0]}}),a=new En({props:{compact:s[0]}}),m=new vl({props:{size:"sm",variant:"table-header",trailingIcon:s[2]?"chevron-up":"chevron-down",$$slots:{default:[On]},$$scope:{ctx:s}}}),m.$on("click",s[3]),{c(){e=$("td"),l=C(),t=$("th"),T(n.$$.fragment),r=C(),i=$("th"),T(a.$$.fragment),c=C(),o=$("th"),f=$("div"),T(m.$$.fragment),this.h()},l(_){e=b(_,"TD",{class:!0}),k(e).forEach(d),l=S(_),t=b(_,"TH",{class:!0});var w=k(t);D(n.$$.fragment,w),w.forEach(d),r=S(_),i=b(_,"TH",{class:!0});var I=k(i);D(a.$$.fragment,I),I.forEach(d),c=S(_),o=b(_,"TH",{class:!0});var F=k(o);f=b(F,"DIV",{class:!0});var W=k(f);D(m.$$.fragment,W),W.forEach(d),F.forEach(d),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(i,"class","w-44"),g(f,"class","flex w-full justify-end"),g(o,"class","w-auto xl:w-80")},m(_,w){E(_,e,w),E(_,l,w),E(_,t,w),y(n,t,null),E(_,r,w),E(_,i,w),y(a,i,null),E(_,c,w),E(_,o,w),h(o,f),y(m,f,null),u=!0},p(_,w){const I={};w&1&&(I.compact=_[0]),n.$set(I);const F={};w&1&&(F.compact=_[0]),a.$set(F);const W={};w&4&&(W.trailingIcon=_[2]?"chevron-up":"chevron-down"),w&36&&(W.$$scope={dirty:w,ctx:_}),m.$set(W)},i(_){u||(p(n.$$.fragment,_),p(a.$$.fragment,_),p(m.$$.fragment,_),u=!0)},o(_){v(n.$$.fragment,_),v(a.$$.fragment,_),v(m.$$.fragment,_),u=!1},d(_){_&&d(e),_&&d(l),_&&d(t),V(n),_&&d(r),_&&d(i),V(a),_&&d(c),_&&d(o),V(m)}}}function Mn(s){let e,l;return e=new ul({props:{slot:"headers",$$slots:{default:[Rn]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,n){const r={};n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function Ln(s){let e,l;return e=new Ht({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Mn],caption:[Nn],default:[An]},$$scope:{ctx:s}}}),{c(){T(e.$$.fragment)},l(t){D(e.$$.fragment,t)},m(t,n){y(e,t,n),l=!0},p(t,[n]){const r={};n&2&&(r.updating=t[1]),n&37&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){v(e.$$.fragment,t),l=!1},d(t){V(e,t)}}}function jn(s,e,l){let t;te(s,al,m=>l(6,t=m));let{$$slots:n={},$$scope:r}=e,{compact:i=!1}=e,{updating:a=!1}=e,c=t==="true";const o=At();function f(){l(2,c=!c),o("expandAll",{expanded:c?"true":"false"})}return s.$$set=m=>{"compact"in m&&l(0,i=m.compact),"updating"in m&&l(1,a=m.updating),"$$scope"in m&&l(5,r=m.$$scope)},[i,a,c,f,n,r]}class dr extends re{constructor(e){super(),se(this,e,jn,Ln,ae,{compact:0,updating:1})}}export{dr as E,mr as a,_r as b}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.ea4ce52d.js b/ui/assets/local/_app/immutable/chunks/events-service.1c8a7c41.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/events-service.ea4ce52d.js rename to ui/assets/local/_app/immutable/chunks/events-service.1c8a7c41.js index 73d6e4ff09..1bc524aa09 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.ea4ce52d.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.1c8a7c41.js @@ -1 +1 @@ -import{d as r,w as u}from"./index.1302fd9b.js";import{p as m}from"./stores.6ee4c480.js";import{a as S}from"./auth-user.6f15fe0f.js";import{r as y}from"./workflow-run.4e335848.js";import{l as v}from"./route-for.cec09c4c.js";import{G as F}from"./is-event-type.4dbe973b.js";import{e as q}from"./event-view.446dd84e.js";import{t as f}from"./index.7a0c9a79.js";import{b as A}from"./is.ba28a1ea.js";import{p as h}from"./paginated.e34d6315.js";import{r as l,a as w}from"./route-for-api.c219d4fc.js";const H=r([m],([t])=>t.params.namespace?v(t.params.namespace):""),P=r([m],([t])=>t.params.workflow?v(t.params.workflow):""),T=r([m],([t])=>t.params.run?v(t.params.run):""),b=r([m],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),x=r([S],([t])=>t==null?void 0:t.accessToken),z=r([H,P,T,q],([t,e,s,n])=>({namespace:t,workflowId:e,runId:s,sort:n}));r([z,b,x,y],([t,e,s,n])=>({...t,settings:e,accessToken:s,refresh:y,$refresh:n}));const G={start:[],end:[]},X=u(G),Y=u(null),j=u([]),Z=r(j,t=>t.filter(F)),k=t=>!A(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",_=async({namespace:t,workflowId:e,runId:s,sort:n,onStart:o,onUpdate:a,onComplete:c})=>{const i=k(n),p=l(i,{namespace:t,workflowId:e,runId:s});return(await h(async d=>w(p,{token:d,request:fetch}),{onStart:o,onUpdate:a,onComplete:c})).history.events},U=async({namespace:t,workflowId:e,runId:s,sort:n,settings:o,accessToken:a,onStart:c,onUpdate:i,onComplete:p})=>{const E=k(n),d=l(E,{namespace:t,workflowId:e,runId:s}),I=await h(async R=>w(d,{token:R,request:fetch}),{onStart:c,onUpdate:i,onComplete:p});return await f({response:I.history.events,namespace:t,settings:o,accessToken:a})},g=async({namespace:t,workflowId:e,runId:s,sort:n})=>{const o=l(`events.${n}`,{namespace:t,workflowId:e,runId:s});try{return(await w(o,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},$=async t=>{const{settings:e,namespace:s,accessToken:n}=t,o=await g({...t,sort:"ascending"}),a=await g({...t,sort:"descending"}),[c,i]=await Promise.all([f({response:o,namespace:s,settings:e,accessToken:n}),f({response:a,namespace:s,settings:e,accessToken:n})]);return{start:c,end:i}};export{U as a,_ as b,j as c,X as e,$ as f,G as i,Z as r,Y as t}; +import{d as r,w as u}from"./index.1302fd9b.js";import{p as m}from"./stores.b96d31b2.js";import{a as S}from"./auth-user.6f15fe0f.js";import{r as y}from"./workflow-run.4e335848.js";import{l as v}from"./route-for.31ffa191.js";import{G as F}from"./is-event-type.4dbe973b.js";import{e as q}from"./event-view.446dd84e.js";import{t as f}from"./index.f6d255b2.js";import{b as A}from"./is.ba28a1ea.js";import{p as h}from"./paginated.58f7628e.js";import{r as l,a as w}from"./route-for-api.4d253eb1.js";const H=r([m],([t])=>t.params.namespace?v(t.params.namespace):""),P=r([m],([t])=>t.params.workflow?v(t.params.workflow):""),T=r([m],([t])=>t.params.run?v(t.params.run):""),b=r([m],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),x=r([S],([t])=>t==null?void 0:t.accessToken),z=r([H,P,T,q],([t,e,s,n])=>({namespace:t,workflowId:e,runId:s,sort:n}));r([z,b,x,y],([t,e,s,n])=>({...t,settings:e,accessToken:s,refresh:y,$refresh:n}));const G={start:[],end:[]},X=u(G),Y=u(null),j=u([]),Z=r(j,t=>t.filter(F)),k=t=>!A(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",_=async({namespace:t,workflowId:e,runId:s,sort:n,onStart:o,onUpdate:a,onComplete:c})=>{const i=k(n),p=l(i,{namespace:t,workflowId:e,runId:s});return(await h(async d=>w(p,{token:d,request:fetch}),{onStart:o,onUpdate:a,onComplete:c})).history.events},U=async({namespace:t,workflowId:e,runId:s,sort:n,settings:o,accessToken:a,onStart:c,onUpdate:i,onComplete:p})=>{const E=k(n),d=l(E,{namespace:t,workflowId:e,runId:s}),I=await h(async R=>w(d,{token:R,request:fetch}),{onStart:c,onUpdate:i,onComplete:p});return await f({response:I.history.events,namespace:t,settings:o,accessToken:a})},g=async({namespace:t,workflowId:e,runId:s,sort:n})=>{const o=l(`events.${n}`,{namespace:t,workflowId:e,runId:s});try{return(await w(o,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},$=async t=>{const{settings:e,namespace:s,accessToken:n}=t,o=await g({...t,sort:"ascending"}),a=await g({...t,sort:"descending"}),[c,i]=await Promise.all([f({response:o,namespace:s,settings:e,accessToken:n}),f({response:a,namespace:s,settings:e,accessToken:n})]);return{start:c,end:i}};export{U as a,_ as b,j as c,X as e,$ as f,G as i,Z as r,Y as t}; diff --git a/ui/assets/local/_app/immutable/chunks/filters.c175002a.js b/ui/assets/local/_app/immutable/chunks/filters.291afea8.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/filters.c175002a.js rename to ui/assets/local/_app/immutable/chunks/filters.291afea8.js index d27add1654..d6afd9d39b 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.c175002a.js +++ b/ui/assets/local/_app/immutable/chunks/filters.291afea8.js @@ -1 +1 @@ -import{d as t,w as o}from"./index.1302fd9b.js";import{p as s}from"./stores.6ee4c480.js";import{p as c}from"./persist-store.d8264c86.js";import{ac as a}from"./index.6779d4e2.js";const l=t([s],([r])=>r.url.searchParams.get("query")),u=t([s],([r])=>r.url.searchParams.get("category")),i=t([l,u],([r,e])=>({query:r,category:e})),n=r=>i.subscribe(({query:e})=>{!e&&a(p).length&&r([])}),v=c("workflowDateTimeFilter",void 0,!0),p=o([],n),m=r=>i.subscribe(({category:e})=>{!e&&a(g)&&r(null)}),g=o(void 0,m);export{g as e,v as p,p as w}; +import{d as t,w as o}from"./index.1302fd9b.js";import{p as s}from"./stores.b96d31b2.js";import{p as c}from"./persist-store.d8264c86.js";import{ac as a}from"./index.6779d4e2.js";const l=t([s],([r])=>r.url.searchParams.get("query")),u=t([s],([r])=>r.url.searchParams.get("category")),i=t([l,u],([r,e])=>({query:r,category:e})),n=r=>i.subscribe(({query:e})=>{!e&&a(p).length&&r([])}),v=c("workflowDateTimeFilter",void 0,!0),p=o([],n),m=r=>i.subscribe(({category:e})=>{!e&&a(g)&&r(null)}),g=o(void 0,m);export{g as e,v as p,p as w}; diff --git a/ui/assets/local/_app/immutable/chunks/index.c328f0fe.js b/ui/assets/local/_app/immutable/chunks/index.55808119.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/index.c328f0fe.js rename to ui/assets/local/_app/immutable/chunks/index.55808119.js index 9ab29b0441..c83395c3d8 100644 --- a/ui/assets/local/_app/immutable/chunks/index.c328f0fe.js +++ b/ui/assets/local/_app/immutable/chunks/index.55808119.js @@ -1 +1 @@ -import{S as Ee,b as Ie,a as de,e as Ne,f as b,j as v,z as ve,g as q,h as ge,k as c,K as he,m as E,c as D,p as I,q as S,d as F,u as y,L as k,Q as j,a1 as pe,ag as oe,n as re,r as Ge,P as Be,i as Xe,C as U,D as Q,E as A,F as M,w as C,x as H,y as le,a5 as Ye,G as Ze,H as $e,I as xe,J as et,V as Re}from"./index.6779d4e2.js";import{g as tt}from"./navigation.a7086f0c.js";import{p as lt}from"./stores.6ee4c480.js";import{W as st}from"./workflow-status.fc3d74d1.js";import{I as Je}from"./icon.a4e81b70.js";import{c as ot}from"./copy-to-clipboard.cf09df45.js";import{L as rt}from"./link.8030aa06.js";import{T as at}from"./table-row.e455010e.js";import{t as G}from"./translate.29a4bc43.js";import{t as nt,r as ft,b as Z}from"./format-date.79dd40f6.js";import{w as Oe}from"./workflows.5bb4bd2c.js";import{v as it,w as ut,x as ct,y as Ue}from"./format-time.8258873a.js";import{g as Qe}from"./workflow-service.fd47d996.js";import{d as mt,e as Pe,f as _t,g as ht,h as pt}from"./is.ba28a1ea.js";import{g as dt}from"./route-for.cec09c4c.js";import{u as wt}from"./pagination.b9ceda84.js";import{T as bt,a as kt}from"./table-header-row.5433617e.js";import{B as Tt}from"./button.0b50a4b4.js";import{I as yt}from"./input.86f6e192.js";function Ae(o){let e,s,t,l,r,f,a=o[1]&&Me(o),n=o[2]&&Ke(o);return{c(){e=E("div"),a&&a.c(),s=D(),n&&n.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var m=S(e);a&&a.l(m),s=F(m),n&&n.l(m),m.forEach(c),this.h()},h(){y(e,"class",t="copy-or-filter "+o[9]+" svelte-1f7279h")},m(u,m){b(u,e,m),a&&a.m(e,null),k(e,s),n&&n.m(e,null),l=!0,r||(f=[j(e,"click",pe(oe(re))),j(e,"keyup",pe(oe(re)))],r=!0)},p(u,m){u[1]?a?(a.p(u,m),m&2&&v(a,1)):(a=Me(u),a.c(),v(a,1),a.m(e,s)):a&&(ve(),q(a,1,1,()=>{a=null}),ge()),u[2]?n?(n.p(u,m),m&4&&v(n,1)):(n=Ke(u),n.c(),v(n,1),n.m(e,null)):n&&(ve(),q(n,1,1,()=>{n=null}),ge()),(!l||m&512&&t!==(t="copy-or-filter "+u[9]+" svelte-1f7279h"))&&y(e,"class",t)},i(u){l||(v(a),v(n),l=!0)},o(u){q(a),q(n),l=!1},d(u){u&&c(e),a&&a.d(),n&&n.d(),r=!1,Ge(f)}}}function Me(o){let e,s=o[5],t,l,r,f=ze(o);return{c(){e=E("button"),f.c(),this.h()},l(a){e=I(a,"BUTTON",{class:!0});var n=S(e);f.l(n),n.forEach(c),this.h()},h(){y(e,"class","copy-or-filter-button svelte-1f7279h"),Be(e,"filtered",o[5])},m(a,n){b(a,e,n),f.m(e,null),t=!0,l||(r=j(e,"click",pe(oe(function(){Xe(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(a,n){o=a,n&32&&de(s,s=o[5])?(ve(),q(f,1,1,re),ge(),f=ze(o),f.c(),v(f,1),f.m(e,null)):f.p(o,n),(!t||n&32)&&Be(e,"filtered",o[5])},i(a){t||(v(f),t=!0)},o(a){q(f),t=!1},d(a){a&&c(e),f.d(a),l=!1,r()}}}function ze(o){let e,s;return e=new Je({props:{title:o[8],name:"filter"}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&256&&(r.title=t[8]),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(o){let e,s,t,l,r;return s=new Je({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=E("button"),U(s.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var a=S(e);Q(s.$$.fragment,a),a.forEach(c),this.h()},h(){y(e,"class","copy-or-filter-button svelte-1f7279h")},m(f,a){b(f,e,a),A(s,e,null),t=!0,l||(r=j(e,"click",pe(oe(o[13]))),l=!0)},p(f,a){const n={};a&1216&&(n.title=f[10]?f[7]:f[6]),a&1024&&(n.name=f[10]?"checkmark":"copy"),s.$set(n)},i(f){t||(v(s.$$.fragment,f),t=!0)},o(f){q(s.$$.fragment,f),t=!1},d(f){f&&c(e),M(s),l=!1,r()}}}function vt(o){let e,s,t=o[0]&&Ae(o);return{c(){t&&t.c(),e=Ne()},l(l){t&&t.l(l),e=Ne()},m(l,r){t&&t.m(l,r),b(l,e,r),s=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&v(t,1)):(t=Ae(l),t.c(),v(t,1),t.m(e.parentNode,e)):t&&(ve(),q(t,1,1,()=>{t=null}),ge())},i(l){s||(v(t),s=!0)},o(l){q(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function gt(o,e,s){let t,{show:l=!1}=e,{filterable:r=!0}=e,{copyable:f=!0}=e,{content:a}=e,{onFilter:n=re}=e,{filtered:u=!1}=e,{copyIconTitle:m}=e,{copySuccessIconTitle:h}=e,{filterIconTitle:L}=e,{class:d=""}=e;const{copy:P,copied:B}=ot();he(o,B,p=>s(10,t=p));const W=p=>P(p,a);return o.$$set=p=>{"show"in p&&s(0,l=p.show),"filterable"in p&&s(1,r=p.filterable),"copyable"in p&&s(2,f=p.copyable),"content"in p&&s(3,a=p.content),"onFilter"in p&&s(4,n=p.onFilter),"filtered"in p&&s(5,u=p.filtered),"copyIconTitle"in p&&s(6,m=p.copyIconTitle),"copySuccessIconTitle"in p&&s(7,h=p.copySuccessIconTitle),"filterIconTitle"in p&&s(8,L=p.filterIconTitle),"class"in p&&s(9,d=p.class)},[l,r,f,a,n,u,m,h,L,d,t,P,B,W]}class Ve extends Ee{constructor(e){super(),Ie(this,e,gt,vt,de,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const Et=o=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===o.toLowerCase(),ye=(o,e)=>o[e+2],It=o=>{if(o){for(const e of ct)if(o[e])return{[e]:o[e]}}},St=Se("WorkflowType"),qt=Se("WorkflowId"),Pt=Se("StartTime"),Wt=Se("ExecutionStatus"),Dt=o=>{const e=Et(o),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(qt(t)&&(s.workflowId=ye(e,l)),St(t)&&(s.workflowType=ye(e,l)),Wt(t)){const r=ye(e,l);pt(r)&&(s.executionStatus=r)}if(Pt(t)){const r=ye(e,l);try{const f=it(r),a=It(f);s.timeRange=ut(a)}catch(f){console.error("Error parsing StartTime from query",f)}}}),s};function Ft(o){let e=o[0].id+"",s;return{c(){s=C(e)},l(t){s=H(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(s,e)},d(t){t&&c(s)}}}function Ct(o){var De,Fe,Ce;let e,s,t,l,r,f,a,n,u,m=Z(o[0].startTime,o[5],{relative:o[6]})+"",h,L,d,P,B=G("workflows","workflow-name")+"",W,p,_,T,z=o[0].name+"",J,X,g,N,$,O,x=Z(o[0].endTime,o[5],{relative:o[6]})+"",se,we,ee,ae,ne=Z(o[0].startTime,o[5],{relative:o[6]})+"",be,ke,te,fe,ie=Z(o[0].endTime,o[5],{relative:o[6]})+"",Te,K,qe,We;return s=new st({props:{status:o[0].status,delay:Ue(o[0].startTime)}}),r=new rt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),r.$on("click",o[9]),a=new Ve({props:{copyIconTitle:G("copy-icon-title"),copySuccessIconTitle:G("copy-success-icon-title"),filterIconTitle:G("filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),N=new Ve({props:{copyIconTitle:G("copy-icon-title"),copySuccessIconTitle:G("copy-success-icon-title"),filterIconTitle:G("filter-workflows"),show:o[1],content:o[0].name,onFilter:o[15],filtered:(Ce=(Fe=(De=o[3].url)==null?void 0:De.searchParams)==null?void 0:Fe.get("query"))==null?void 0:Ce.includes(o[0].name)}}),{c(){e=E("td"),U(s.$$.fragment),t=D(),l=E("td"),U(r.$$.fragment),f=D(),U(a.$$.fragment),n=D(),u=E("p"),h=C(m),L=D(),d=E("td"),P=E("h3"),W=C(B),p=C(":"),_=D(),T=E("button"),J=C(z),g=D(),U(N.$$.fragment),$=D(),O=E("p"),se=C(x),we=D(),ee=E("td"),ae=E("p"),be=C(ne),ke=D(),te=E("td"),fe=E("p"),Te=C(ie),this.h()},l(i){e=I(i,"TD",{});var w=S(e);Q(s.$$.fragment,w),w.forEach(c),t=F(i),l=I(i,"TD",{class:!0});var V=S(l);Q(r.$$.fragment,V),f=F(V),Q(a.$$.fragment,V),n=F(V),u=I(V,"P",{class:!0});var ue=S(u);h=H(ue,m),ue.forEach(c),V.forEach(c),L=F(i),d=I(i,"TD",{class:!0});var R=S(d);P=I(R,"H3",{class:!0});var Y=S(P);W=H(Y,B),p=H(Y,":"),Y.forEach(c),_=F(R),T=I(R,"BUTTON",{class:!0,"aria-label":!0});var ce=S(T);J=H(ce,z),ce.forEach(c),g=F(R),Q(N.$$.fragment,R),$=F(R),O=I(R,"P",{class:!0});var me=S(O);se=H(me,x),me.forEach(c),R.forEach(c),we=F(i),ee=I(i,"TD",{class:!0});var _e=S(ee);ae=I(_e,"P",{});var He=S(ae);be=H(He,ne),He.forEach(c),_e.forEach(c),ke=F(i),te=I(i,"TD",{class:!0});var Le=S(te);fe=I(Le,"P",{});var je=S(fe);Te=H(je,ie),je.forEach(c),Le.forEach(c),this.h()},h(){y(u,"class","inline-time-cell svelte-tyqpjy"),y(l,"class","relative break-words pr-4"),y(P,"class","md:hidden"),y(T,"class","table-link svelte-tyqpjy"),y(T,"aria-label",X=G("workflows","filter-by",{workflowName:o[0].name})),y(O,"class","inline-time-cell svelte-tyqpjy"),y(d,"class","relative truncate"),y(ee,"class","time-cell svelte-tyqpjy"),y(te,"class","time-cell svelte-tyqpjy")},m(i,w){b(i,e,w),A(s,e,null),b(i,t,w),b(i,l,w),A(r,l,null),k(l,f),A(a,l,null),k(l,n),k(l,u),k(u,h),b(i,L,w),b(i,d,w),k(d,P),k(P,W),k(P,p),k(d,_),k(d,T),k(T,J),k(d,g),A(N,d,null),k(d,$),k(d,O),k(O,se),b(i,we,w),b(i,ee,w),k(ee,ae),k(ae,be),b(i,ke,w),b(i,te,w),k(te,fe),k(fe,Te),K=!0,qe||(We=[j(l,"mouseover",o[10]),j(l,"focus",o[11]),j(l,"mouseleave",o[12]),j(l,"blur",o[13]),j(T,"click",pe(oe(o[14]))),j(d,"mouseover",o[16]),j(d,"focus",o[17]),j(d,"mouseleave",o[18]),j(d,"blur",o[19])],qe=!0)},p(i,w){var ce,me,_e;const V={};w&1&&(V.status=i[0].status),w&1&&(V.delay=Ue(i[0].startTime)),s.$set(V);const ue={};w&1048577&&(ue.$$scope={dirty:w,ctx:i}),r.$set(ue);const R={};w&2&&(R.show=i[1]),w&1&&(R.content=i[0].id),a.$set(R),(!K||w&97)&&m!==(m=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(h,m),(!K||w&1)&&z!==(z=i[0].name+"")&&le(J,z),(!K||w&1&&X!==(X=G("workflows","filter-by",{workflowName:i[0].name})))&&y(T,"aria-label",X);const Y={};w&2&&(Y.show=i[1]),w&1&&(Y.content=i[0].name),w&1&&(Y.onFilter=i[15]),w&9&&(Y.filtered=(_e=(me=(ce=i[3].url)==null?void 0:ce.searchParams)==null?void 0:me.get("query"))==null?void 0:_e.includes(i[0].name)),N.$set(Y),(!K||w&97)&&x!==(x=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(se,x),(!K||w&97)&&ne!==(ne=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(be,ne),(!K||w&97)&&ie!==(ie=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(Te,ie)},i(i){K||(v(s.$$.fragment,i),v(r.$$.fragment,i),v(a.$$.fragment,i),v(N.$$.fragment,i),K=!0)},o(i){q(s.$$.fragment,i),q(r.$$.fragment,i),q(a.$$.fragment,i),q(N.$$.fragment,i),K=!1},d(i){i&&c(e),M(s),i&&c(t),i&&c(l),M(r),M(a),i&&c(L),i&&c(d),M(N),i&&c(we),i&&c(ee),i&&c(ke),i&&c(te),qe=!1,Ge(We)}}}function Ht(o){let e,s;return e=new at({props:{class:"workflow-summary-row",$$slots:{default:[Ct]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1048703&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Lt(o,e,s){let t,l,r,f,a;he(o,lt,g=>s(3,l=g)),he(o,Oe,g=>s(4,r=g)),he(o,nt,g=>s(5,f=g)),he(o,ft,g=>s(6,a=g));let{namespace:n}=e,{workflow:u}=e,m=!1;const h=g=>{const N=Qe({timeRange:"All"}),$=l.url.searchParams.get("query"),O=Dt($??N),x=(O==null?void 0:O.workflowType)===g?"":g,se=Qe({...O,workflowType:x});wt({url:l.url,parameter:"query",value:se,allowEmpty:!0})},L=()=>{Ye(Oe,r=l.url.searchParams.toString(),r),tt(t)},d=()=>s(1,m=!0),P=()=>s(1,m=!0),B=()=>s(1,m=!1),W=()=>s(1,m=!1),p=()=>h(u.name),_=()=>h(u.name),T=()=>s(1,m=!0),z=()=>s(1,m=!0),J=()=>s(1,m=!1),X=()=>s(1,m=!1);return o.$$set=g=>{"namespace"in g&&s(8,n=g.namespace),"workflow"in g&&s(0,u=g.workflow)},o.$$.update=()=>{o.$$.dirty&257&&s(2,t=dt({namespace:n,workflow:u.id,run:u.runId}))},[u,m,t,l,r,f,a,h,n,L,d,P,B,W,p,_,T,z,J,X]}class ul extends Ee{constructor(e){super(),Ie(this,e,Lt,Ht,de,{namespace:8,workflow:0})}}function jt(o){let e;const s=o[1].default,t=Ze(s,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&4)&&$e(t,s,l,l[2],e?et(s,l[2],r,null):xe(l[2]),null)},i(l){e||(v(t,l),e=!0)},o(l){q(t,l),e=!1},d(l){t&&t.d(l)}}}function Nt(o){let e,s;return{c(){e=E("caption"),s=C("Workflows"),this.h()},l(t){e=I(t,"CAPTION",{class:!0,slot:!0});var l=S(e);s=H(l,"Workflows"),l.forEach(c),this.h()},h(){y(e,"class","sr-only"),y(e,"slot","caption")},m(t,l){b(t,e,l),k(e,s)},p:re,d(t){t&&c(e)}}}function Bt(o){let e,s,t,l,r,f,a,n,u,m,h,L,d,P,B,W,p;return{c(){e=E("th"),s=C("Status"),t=D(),l=E("th"),r=C("Workflow ID"),f=D(),a=E("th"),n=C("Type"),u=D(),m=E("th"),h=C("Start"),L=D(),d=E("th"),P=C("End"),B=D(),W=E("th"),p=C("Summary"),this.h()},l(_){e=I(_,"TH",{class:!0});var T=S(e);s=H(T,"Status"),T.forEach(c),t=F(_),l=I(_,"TH",{class:!0});var z=S(l);r=H(z,"Workflow ID"),z.forEach(c),f=F(_),a=I(_,"TH",{class:!0});var J=S(a);n=H(J,"Type"),J.forEach(c),u=F(_),m=I(_,"TH",{class:!0});var X=S(m);h=H(X,"Start"),X.forEach(c),L=F(_),d=I(_,"TH",{class:!0});var g=S(d);P=H(g,"End"),g.forEach(c),B=F(_),W=I(_,"TH",{class:!0,colspan:!0});var N=S(W);p=H(N,"Summary"),N.forEach(c),this.h()},h(){y(e,"class","w-32 max-md:hidden"),y(l,"class","max-md:hidden md:w-auto"),y(a,"class","w-60 max-md:hidden"),y(m,"class","w-60 max-xl:hidden"),y(d,"class","w-60 max-xl:hidden"),y(W,"class","md:hidden"),y(W,"colspan","3")},m(_,T){b(_,e,T),k(e,s),b(_,t,T),b(_,l,T),k(l,r),b(_,f,T),b(_,a,T),k(a,n),b(_,u,T),b(_,m,T),k(m,h),b(_,L,T),b(_,d,T),k(d,P),b(_,B,T),b(_,W,T),k(W,p)},p:re,d(_){_&&c(e),_&&c(t),_&&c(l),_&&c(f),_&&c(a),_&&c(u),_&&c(m),_&&c(L),_&&c(d),_&&c(B),_&&c(W)}}}function Rt(o){let e,s;return e=new kt({props:{slot:"headers",$$slots:{default:[Bt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ot(o){let e,s;return e=new bt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[Rt],caption:[Nt],default:[jt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.updating=t[0]),l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ut(o,e,s){let{$$slots:t={},$$scope:l}=e,{updating:r=!1}=e;return o.$$set=f=>{"updating"in f&&s(0,r=f.updating),"$$scope"in f&&s(2,l=f.$$scope)},[r,t,l]}class cl extends Ee{constructor(e){super(),Ie(this,e,Ut,Ot,de,{updating:0})}}function Qt(o){let e;return{c(){e=C(o[2])},l(s){e=H(s,o[2])},m(s,t){b(s,e,t)},p(s,t){t&4&&le(e,s[2])},d(s){s&&c(e)}}}function At(o){let e,s,t,l,r,f,a;return s=new yt({props:{class:"w-full",unroundRight:!0,label:o[2],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[1],placeholder:o[0],autocomplete:"off"}}),s.$on("input",o[7]),l=new Tt({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qt]},$$scope:{ctx:o}}}),{c(){e=E("form"),U(s.$$.fragment),t=D(),U(l.$$.fragment),this.h()},l(n){e=I(n,"FORM",{role:!0,class:!0});var u=S(e);Q(s.$$.fragment,u),t=F(u),Q(l.$$.fragment,u),u.forEach(c),this.h()},h(){y(e,"role","search"),y(e,"class","flex items-center")},m(n,u){b(n,e,u),A(s,e,null),k(e,t),A(l,e,null),r=!0,f||(a=j(e,"submit",oe(o[6])),f=!0)},p(n,[u]){const m={};u&4&&(m.label=n[2]),u&32&&(m.id=n[5]),u&16&&(m.icon=n[4]?"search":null),u&8&&(m.name=n[3]),u&2&&(m.value=n[1]),u&1&&(m.placeholder=n[0]),s.$set(m);const h={};u&260&&(h.$$scope={dirty:u,ctx:n}),l.$set(h)},i(n){r||(v(s.$$.fragment,n),v(l.$$.fragment,n),r=!0)},o(n){q(s.$$.fragment,n),q(l.$$.fragment,n),r=!1},d(n){n&&c(e),M(s),M(l),f=!1,a()}}}function Mt(o,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:r=G("search")}=e,{name:f="query"}=e,{icon:a=!1}=e,{id:n=`${r.toLocaleUpperCase()}-input`}=e;function u(h){Re.call(this,o,h)}function m(h){Re.call(this,o,h)}return o.$$set=h=>{"placeholder"in h&&s(0,t=h.placeholder),"value"in h&&s(1,l=h.value),"label"in h&&s(2,r=h.label),"name"in h&&s(3,f=h.name),"icon"in h&&s(4,a=h.icon),"id"in h&&s(5,n=h.id)},[t,l,r,f,a,n,u,m]}class ml extends Ee{constructor(e){super(),Ie(this,e,Mt,At,de,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}var _l=zt;function zt(o,e,s,t){var l,r,f;return function(){if(f=this,r=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return u(),l=setTimeout(n,e),l;l=setTimeout(u,e),o.apply(f,r);function n(){u(),o.apply(f,r)}function u(){clearTimeout(l),l=null}}}export{Ve as F,ml as S,cl as W,ul as a,Dt as b,_l as j,Et as t}; +import{S as Ee,b as Ie,a as de,e as Ne,f as b,j as v,z as ve,g as q,h as ge,k as c,K as he,m as E,c as D,p as I,q as S,d as F,u as y,L as k,Q as j,a1 as pe,ag as oe,n as re,r as Ge,P as Be,i as Xe,C as U,D as Q,E as A,F as M,w as C,x as H,y as le,a5 as Ye,G as Ze,H as $e,I as xe,J as et,V as Re}from"./index.6779d4e2.js";import{g as tt}from"./navigation.8e7fd3e5.js";import{p as lt}from"./stores.b96d31b2.js";import{W as st}from"./workflow-status.fc3d74d1.js";import{I as Je}from"./icon.a4e81b70.js";import{c as ot}from"./copy-to-clipboard.cf09df45.js";import{L as rt}from"./link.8030aa06.js";import{T as at}from"./table-row.e455010e.js";import{t as G}from"./translate.29a4bc43.js";import{t as nt,r as ft,b as Z}from"./format-date.79dd40f6.js";import{w as Oe}from"./workflows.8837af08.js";import{v as it,w as ut,x as ct,y as Ue}from"./format-time.8258873a.js";import{g as Qe}from"./workflow-service.2a5b4d45.js";import{d as mt,e as Pe,f as _t,g as ht,h as pt}from"./is.ba28a1ea.js";import{g as dt}from"./route-for.31ffa191.js";import{u as wt}from"./pagination.46c6618d.js";import{T as bt,a as kt}from"./table-header-row.5433617e.js";import{B as Tt}from"./button.0b50a4b4.js";import{I as yt}from"./input.86f6e192.js";function Ae(o){let e,s,t,l,r,f,a=o[1]&&Me(o),n=o[2]&&Ke(o);return{c(){e=E("div"),a&&a.c(),s=D(),n&&n.c(),this.h()},l(u){e=I(u,"DIV",{class:!0});var m=S(e);a&&a.l(m),s=F(m),n&&n.l(m),m.forEach(c),this.h()},h(){y(e,"class",t="copy-or-filter "+o[9]+" svelte-1f7279h")},m(u,m){b(u,e,m),a&&a.m(e,null),k(e,s),n&&n.m(e,null),l=!0,r||(f=[j(e,"click",pe(oe(re))),j(e,"keyup",pe(oe(re)))],r=!0)},p(u,m){u[1]?a?(a.p(u,m),m&2&&v(a,1)):(a=Me(u),a.c(),v(a,1),a.m(e,s)):a&&(ve(),q(a,1,1,()=>{a=null}),ge()),u[2]?n?(n.p(u,m),m&4&&v(n,1)):(n=Ke(u),n.c(),v(n,1),n.m(e,null)):n&&(ve(),q(n,1,1,()=>{n=null}),ge()),(!l||m&512&&t!==(t="copy-or-filter "+u[9]+" svelte-1f7279h"))&&y(e,"class",t)},i(u){l||(v(a),v(n),l=!0)},o(u){q(a),q(n),l=!1},d(u){u&&c(e),a&&a.d(),n&&n.d(),r=!1,Ge(f)}}}function Me(o){let e,s=o[5],t,l,r,f=ze(o);return{c(){e=E("button"),f.c(),this.h()},l(a){e=I(a,"BUTTON",{class:!0});var n=S(e);f.l(n),n.forEach(c),this.h()},h(){y(e,"class","copy-or-filter-button svelte-1f7279h"),Be(e,"filtered",o[5])},m(a,n){b(a,e,n),f.m(e,null),t=!0,l||(r=j(e,"click",pe(oe(function(){Xe(o[4])&&o[4].apply(this,arguments)}))),l=!0)},p(a,n){o=a,n&32&&de(s,s=o[5])?(ve(),q(f,1,1,re),ge(),f=ze(o),f.c(),v(f,1),f.m(e,null)):f.p(o,n),(!t||n&32)&&Be(e,"filtered",o[5])},i(a){t||(v(f),t=!0)},o(a){q(f),t=!1},d(a){a&&c(e),f.d(a),l=!1,r()}}}function ze(o){let e,s;return e=new Je({props:{title:o[8],name:"filter"}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&256&&(r.title=t[8]),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(o){let e,s,t,l,r;return s=new Je({props:{title:o[10]?o[7]:o[6],name:o[10]?"checkmark":"copy",stroke:"#000"}}),{c(){e=E("button"),U(s.$$.fragment),this.h()},l(f){e=I(f,"BUTTON",{class:!0});var a=S(e);Q(s.$$.fragment,a),a.forEach(c),this.h()},h(){y(e,"class","copy-or-filter-button svelte-1f7279h")},m(f,a){b(f,e,a),A(s,e,null),t=!0,l||(r=j(e,"click",pe(oe(o[13]))),l=!0)},p(f,a){const n={};a&1216&&(n.title=f[10]?f[7]:f[6]),a&1024&&(n.name=f[10]?"checkmark":"copy"),s.$set(n)},i(f){t||(v(s.$$.fragment,f),t=!0)},o(f){q(s.$$.fragment,f),t=!1},d(f){f&&c(e),M(s),l=!1,r()}}}function vt(o){let e,s,t=o[0]&&Ae(o);return{c(){t&&t.c(),e=Ne()},l(l){t&&t.l(l),e=Ne()},m(l,r){t&&t.m(l,r),b(l,e,r),s=!0},p(l,[r]){l[0]?t?(t.p(l,r),r&1&&v(t,1)):(t=Ae(l),t.c(),v(t,1),t.m(e.parentNode,e)):t&&(ve(),q(t,1,1,()=>{t=null}),ge())},i(l){s||(v(t),s=!0)},o(l){q(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function gt(o,e,s){let t,{show:l=!1}=e,{filterable:r=!0}=e,{copyable:f=!0}=e,{content:a}=e,{onFilter:n=re}=e,{filtered:u=!1}=e,{copyIconTitle:m}=e,{copySuccessIconTitle:h}=e,{filterIconTitle:L}=e,{class:d=""}=e;const{copy:P,copied:B}=ot();he(o,B,p=>s(10,t=p));const W=p=>P(p,a);return o.$$set=p=>{"show"in p&&s(0,l=p.show),"filterable"in p&&s(1,r=p.filterable),"copyable"in p&&s(2,f=p.copyable),"content"in p&&s(3,a=p.content),"onFilter"in p&&s(4,n=p.onFilter),"filtered"in p&&s(5,u=p.filtered),"copyIconTitle"in p&&s(6,m=p.copyIconTitle),"copySuccessIconTitle"in p&&s(7,h=p.copySuccessIconTitle),"filterIconTitle"in p&&s(8,L=p.filterIconTitle),"class"in p&&s(9,d=p.class)},[l,r,f,a,n,u,m,h,L,d,t,P,B,W]}class Ve extends Ee{constructor(e){super(),Ie(this,e,gt,vt,de,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,copyIconTitle:6,copySuccessIconTitle:7,filterIconTitle:8,class:9})}}const Et=o=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===o.toLowerCase(),ye=(o,e)=>o[e+2],It=o=>{if(o){for(const e of ct)if(o[e])return{[e]:o[e]}}},St=Se("WorkflowType"),qt=Se("WorkflowId"),Pt=Se("StartTime"),Wt=Se("ExecutionStatus"),Dt=o=>{const e=Et(o),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(qt(t)&&(s.workflowId=ye(e,l)),St(t)&&(s.workflowType=ye(e,l)),Wt(t)){const r=ye(e,l);pt(r)&&(s.executionStatus=r)}if(Pt(t)){const r=ye(e,l);try{const f=it(r),a=It(f);s.timeRange=ut(a)}catch(f){console.error("Error parsing StartTime from query",f)}}}),s};function Ft(o){let e=o[0].id+"",s;return{c(){s=C(e)},l(t){s=H(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[0].id+"")&&le(s,e)},d(t){t&&c(s)}}}function Ct(o){var De,Fe,Ce;let e,s,t,l,r,f,a,n,u,m=Z(o[0].startTime,o[5],{relative:o[6]})+"",h,L,d,P,B=G("workflows","workflow-name")+"",W,p,_,T,z=o[0].name+"",J,X,g,N,$,O,x=Z(o[0].endTime,o[5],{relative:o[6]})+"",se,we,ee,ae,ne=Z(o[0].startTime,o[5],{relative:o[6]})+"",be,ke,te,fe,ie=Z(o[0].endTime,o[5],{relative:o[6]})+"",Te,K,qe,We;return s=new st({props:{status:o[0].status,delay:Ue(o[0].startTime)}}),r=new rt({props:{$$slots:{default:[Ft]},$$scope:{ctx:o}}}),r.$on("click",o[9]),a=new Ve({props:{copyIconTitle:G("copy-icon-title"),copySuccessIconTitle:G("copy-success-icon-title"),filterIconTitle:G("filter-workflows"),show:o[1],content:o[0].id,filterable:!1}}),N=new Ve({props:{copyIconTitle:G("copy-icon-title"),copySuccessIconTitle:G("copy-success-icon-title"),filterIconTitle:G("filter-workflows"),show:o[1],content:o[0].name,onFilter:o[15],filtered:(Ce=(Fe=(De=o[3].url)==null?void 0:De.searchParams)==null?void 0:Fe.get("query"))==null?void 0:Ce.includes(o[0].name)}}),{c(){e=E("td"),U(s.$$.fragment),t=D(),l=E("td"),U(r.$$.fragment),f=D(),U(a.$$.fragment),n=D(),u=E("p"),h=C(m),L=D(),d=E("td"),P=E("h3"),W=C(B),p=C(":"),_=D(),T=E("button"),J=C(z),g=D(),U(N.$$.fragment),$=D(),O=E("p"),se=C(x),we=D(),ee=E("td"),ae=E("p"),be=C(ne),ke=D(),te=E("td"),fe=E("p"),Te=C(ie),this.h()},l(i){e=I(i,"TD",{});var w=S(e);Q(s.$$.fragment,w),w.forEach(c),t=F(i),l=I(i,"TD",{class:!0});var V=S(l);Q(r.$$.fragment,V),f=F(V),Q(a.$$.fragment,V),n=F(V),u=I(V,"P",{class:!0});var ue=S(u);h=H(ue,m),ue.forEach(c),V.forEach(c),L=F(i),d=I(i,"TD",{class:!0});var R=S(d);P=I(R,"H3",{class:!0});var Y=S(P);W=H(Y,B),p=H(Y,":"),Y.forEach(c),_=F(R),T=I(R,"BUTTON",{class:!0,"aria-label":!0});var ce=S(T);J=H(ce,z),ce.forEach(c),g=F(R),Q(N.$$.fragment,R),$=F(R),O=I(R,"P",{class:!0});var me=S(O);se=H(me,x),me.forEach(c),R.forEach(c),we=F(i),ee=I(i,"TD",{class:!0});var _e=S(ee);ae=I(_e,"P",{});var He=S(ae);be=H(He,ne),He.forEach(c),_e.forEach(c),ke=F(i),te=I(i,"TD",{class:!0});var Le=S(te);fe=I(Le,"P",{});var je=S(fe);Te=H(je,ie),je.forEach(c),Le.forEach(c),this.h()},h(){y(u,"class","inline-time-cell svelte-tyqpjy"),y(l,"class","relative break-words pr-4"),y(P,"class","md:hidden"),y(T,"class","table-link svelte-tyqpjy"),y(T,"aria-label",X=G("workflows","filter-by",{workflowName:o[0].name})),y(O,"class","inline-time-cell svelte-tyqpjy"),y(d,"class","relative truncate"),y(ee,"class","time-cell svelte-tyqpjy"),y(te,"class","time-cell svelte-tyqpjy")},m(i,w){b(i,e,w),A(s,e,null),b(i,t,w),b(i,l,w),A(r,l,null),k(l,f),A(a,l,null),k(l,n),k(l,u),k(u,h),b(i,L,w),b(i,d,w),k(d,P),k(P,W),k(P,p),k(d,_),k(d,T),k(T,J),k(d,g),A(N,d,null),k(d,$),k(d,O),k(O,se),b(i,we,w),b(i,ee,w),k(ee,ae),k(ae,be),b(i,ke,w),b(i,te,w),k(te,fe),k(fe,Te),K=!0,qe||(We=[j(l,"mouseover",o[10]),j(l,"focus",o[11]),j(l,"mouseleave",o[12]),j(l,"blur",o[13]),j(T,"click",pe(oe(o[14]))),j(d,"mouseover",o[16]),j(d,"focus",o[17]),j(d,"mouseleave",o[18]),j(d,"blur",o[19])],qe=!0)},p(i,w){var ce,me,_e;const V={};w&1&&(V.status=i[0].status),w&1&&(V.delay=Ue(i[0].startTime)),s.$set(V);const ue={};w&1048577&&(ue.$$scope={dirty:w,ctx:i}),r.$set(ue);const R={};w&2&&(R.show=i[1]),w&1&&(R.content=i[0].id),a.$set(R),(!K||w&97)&&m!==(m=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(h,m),(!K||w&1)&&z!==(z=i[0].name+"")&&le(J,z),(!K||w&1&&X!==(X=G("workflows","filter-by",{workflowName:i[0].name})))&&y(T,"aria-label",X);const Y={};w&2&&(Y.show=i[1]),w&1&&(Y.content=i[0].name),w&1&&(Y.onFilter=i[15]),w&9&&(Y.filtered=(_e=(me=(ce=i[3].url)==null?void 0:ce.searchParams)==null?void 0:me.get("query"))==null?void 0:_e.includes(i[0].name)),N.$set(Y),(!K||w&97)&&x!==(x=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(se,x),(!K||w&97)&&ne!==(ne=Z(i[0].startTime,i[5],{relative:i[6]})+"")&&le(be,ne),(!K||w&97)&&ie!==(ie=Z(i[0].endTime,i[5],{relative:i[6]})+"")&&le(Te,ie)},i(i){K||(v(s.$$.fragment,i),v(r.$$.fragment,i),v(a.$$.fragment,i),v(N.$$.fragment,i),K=!0)},o(i){q(s.$$.fragment,i),q(r.$$.fragment,i),q(a.$$.fragment,i),q(N.$$.fragment,i),K=!1},d(i){i&&c(e),M(s),i&&c(t),i&&c(l),M(r),M(a),i&&c(L),i&&c(d),M(N),i&&c(we),i&&c(ee),i&&c(ke),i&&c(te),qe=!1,Ge(We)}}}function Ht(o){let e,s;return e=new at({props:{class:"workflow-summary-row",$$slots:{default:[Ct]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1048703&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Lt(o,e,s){let t,l,r,f,a;he(o,lt,g=>s(3,l=g)),he(o,Oe,g=>s(4,r=g)),he(o,nt,g=>s(5,f=g)),he(o,ft,g=>s(6,a=g));let{namespace:n}=e,{workflow:u}=e,m=!1;const h=g=>{const N=Qe({timeRange:"All"}),$=l.url.searchParams.get("query"),O=Dt($??N),x=(O==null?void 0:O.workflowType)===g?"":g,se=Qe({...O,workflowType:x});wt({url:l.url,parameter:"query",value:se,allowEmpty:!0})},L=()=>{Ye(Oe,r=l.url.searchParams.toString(),r),tt(t)},d=()=>s(1,m=!0),P=()=>s(1,m=!0),B=()=>s(1,m=!1),W=()=>s(1,m=!1),p=()=>h(u.name),_=()=>h(u.name),T=()=>s(1,m=!0),z=()=>s(1,m=!0),J=()=>s(1,m=!1),X=()=>s(1,m=!1);return o.$$set=g=>{"namespace"in g&&s(8,n=g.namespace),"workflow"in g&&s(0,u=g.workflow)},o.$$.update=()=>{o.$$.dirty&257&&s(2,t=dt({namespace:n,workflow:u.id,run:u.runId}))},[u,m,t,l,r,f,a,h,n,L,d,P,B,W,p,_,T,z,J,X]}class ul extends Ee{constructor(e){super(),Ie(this,e,Lt,Ht,de,{namespace:8,workflow:0})}}function jt(o){let e;const s=o[1].default,t=Ze(s,o,o[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,r){t&&t.m(l,r),e=!0},p(l,r){t&&t.p&&(!e||r&4)&&$e(t,s,l,l[2],e?et(s,l[2],r,null):xe(l[2]),null)},i(l){e||(v(t,l),e=!0)},o(l){q(t,l),e=!1},d(l){t&&t.d(l)}}}function Nt(o){let e,s;return{c(){e=E("caption"),s=C("Workflows"),this.h()},l(t){e=I(t,"CAPTION",{class:!0,slot:!0});var l=S(e);s=H(l,"Workflows"),l.forEach(c),this.h()},h(){y(e,"class","sr-only"),y(e,"slot","caption")},m(t,l){b(t,e,l),k(e,s)},p:re,d(t){t&&c(e)}}}function Bt(o){let e,s,t,l,r,f,a,n,u,m,h,L,d,P,B,W,p;return{c(){e=E("th"),s=C("Status"),t=D(),l=E("th"),r=C("Workflow ID"),f=D(),a=E("th"),n=C("Type"),u=D(),m=E("th"),h=C("Start"),L=D(),d=E("th"),P=C("End"),B=D(),W=E("th"),p=C("Summary"),this.h()},l(_){e=I(_,"TH",{class:!0});var T=S(e);s=H(T,"Status"),T.forEach(c),t=F(_),l=I(_,"TH",{class:!0});var z=S(l);r=H(z,"Workflow ID"),z.forEach(c),f=F(_),a=I(_,"TH",{class:!0});var J=S(a);n=H(J,"Type"),J.forEach(c),u=F(_),m=I(_,"TH",{class:!0});var X=S(m);h=H(X,"Start"),X.forEach(c),L=F(_),d=I(_,"TH",{class:!0});var g=S(d);P=H(g,"End"),g.forEach(c),B=F(_),W=I(_,"TH",{class:!0,colspan:!0});var N=S(W);p=H(N,"Summary"),N.forEach(c),this.h()},h(){y(e,"class","w-32 max-md:hidden"),y(l,"class","max-md:hidden md:w-auto"),y(a,"class","w-60 max-md:hidden"),y(m,"class","w-60 max-xl:hidden"),y(d,"class","w-60 max-xl:hidden"),y(W,"class","md:hidden"),y(W,"colspan","3")},m(_,T){b(_,e,T),k(e,s),b(_,t,T),b(_,l,T),k(l,r),b(_,f,T),b(_,a,T),k(a,n),b(_,u,T),b(_,m,T),k(m,h),b(_,L,T),b(_,d,T),k(d,P),b(_,B,T),b(_,W,T),k(W,p)},p:re,d(_){_&&c(e),_&&c(t),_&&c(l),_&&c(f),_&&c(a),_&&c(u),_&&c(m),_&&c(L),_&&c(d),_&&c(B),_&&c(W)}}}function Rt(o){let e,s;return e=new kt({props:{slot:"headers",$$slots:{default:[Bt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,l){const r={};l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ot(o){let e,s;return e=new bt({props:{class:"w-full md:table-fixed",updating:o[0],"data-testid":"workflows-table",$$slots:{headers:[Rt],caption:[Nt],default:[jt]},$$scope:{ctx:o}}}),{c(){U(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,l){A(e,t,l),s=!0},p(t,[l]){const r={};l&1&&(r.updating=t[0]),l&4&&(r.$$scope={dirty:l,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){q(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ut(o,e,s){let{$$slots:t={},$$scope:l}=e,{updating:r=!1}=e;return o.$$set=f=>{"updating"in f&&s(0,r=f.updating),"$$scope"in f&&s(2,l=f.$$scope)},[r,t,l]}class cl extends Ee{constructor(e){super(),Ie(this,e,Ut,Ot,de,{updating:0})}}function Qt(o){let e;return{c(){e=C(o[2])},l(s){e=H(s,o[2])},m(s,t){b(s,e,t)},p(s,t){t&4&&le(e,s[2])},d(s){s&&c(e)}}}function At(o){let e,s,t,l,r,f,a;return s=new yt({props:{class:"w-full",unroundRight:!0,label:o[2],id:o[5],labelHidden:!0,icon:o[4]?"search":null,type:"search",name:o[3],value:o[1],placeholder:o[0],autocomplete:"off"}}),s.$on("input",o[7]),l=new Tt({props:{borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qt]},$$scope:{ctx:o}}}),{c(){e=E("form"),U(s.$$.fragment),t=D(),U(l.$$.fragment),this.h()},l(n){e=I(n,"FORM",{role:!0,class:!0});var u=S(e);Q(s.$$.fragment,u),t=F(u),Q(l.$$.fragment,u),u.forEach(c),this.h()},h(){y(e,"role","search"),y(e,"class","flex items-center")},m(n,u){b(n,e,u),A(s,e,null),k(e,t),A(l,e,null),r=!0,f||(a=j(e,"submit",oe(o[6])),f=!0)},p(n,[u]){const m={};u&4&&(m.label=n[2]),u&32&&(m.id=n[5]),u&16&&(m.icon=n[4]?"search":null),u&8&&(m.name=n[3]),u&2&&(m.value=n[1]),u&1&&(m.placeholder=n[0]),s.$set(m);const h={};u&260&&(h.$$scope={dirty:u,ctx:n}),l.$set(h)},i(n){r||(v(s.$$.fragment,n),v(l.$$.fragment,n),r=!0)},o(n){q(s.$$.fragment,n),q(l.$$.fragment,n),r=!1},d(n){n&&c(e),M(s),M(l),f=!1,a()}}}function Mt(o,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:r=G("search")}=e,{name:f="query"}=e,{icon:a=!1}=e,{id:n=`${r.toLocaleUpperCase()}-input`}=e;function u(h){Re.call(this,o,h)}function m(h){Re.call(this,o,h)}return o.$$set=h=>{"placeholder"in h&&s(0,t=h.placeholder),"value"in h&&s(1,l=h.value),"label"in h&&s(2,r=h.label),"name"in h&&s(3,f=h.name),"icon"in h&&s(4,a=h.icon),"id"in h&&s(5,n=h.id)},[t,l,r,f,a,n,u,m]}class ml extends Ee{constructor(e){super(),Ie(this,e,Mt,At,de,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}var _l=zt;function zt(o,e,s,t){var l,r,f;return function(){if(f=this,r=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return u(),l=setTimeout(n,e),l;l=setTimeout(u,e),o.apply(f,r);function n(){u(),o.apply(f,r)}function u(){clearTimeout(l),l=null}}}export{Ve as F,ml as S,cl as W,ul as a,Dt as b,_l as j,Et as t}; diff --git a/ui/assets/local/_app/immutable/chunks/index.7a0c9a79.js b/ui/assets/local/_app/immutable/chunks/index.f6d255b2.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/index.7a0c9a79.js rename to ui/assets/local/_app/immutable/chunks/index.f6d255b2.js index db4052a9fa..4b6397d475 100644 --- a/ui/assets/local/_app/immutable/chunks/index.7a0c9a79.js +++ b/ui/assets/local/_app/immutable/chunks/index.f6d255b2.js @@ -1 +1 @@ -import{c as y,p as T,i as g}from"./data-encoder-config.37ceca8b.js";import{c as v,a as k,d as w}from"./decode-payload.727281ed.js";import{b as P}from"./format-date.79dd40f6.js";import{g as S,a as R,b as q}from"./get-codec.658caf67.js";import{F as E}from"./is-event-type.4dbe973b.js";import{g as F}from"./get-event-categorization.3ec93a88.js";import{s as I}from"./simplify-attributes.bbb8ccfe.js";const W=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],J=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const n of W)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:s},{convertWithCodec:a=v,convertWithWebsocket:o=k,decodeAttributes:c=w,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=S(t,i),p=R(t,d),f=q(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},b=m?await a({attributes:u,namespace:n,settings:C,accessToken:s}):await o(u),A=c(b);return{type:l,...A}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:s})=>{const a=String(e.eventId),o=e.eventType,c=P(String(e.eventTime)),i=J(o),d=F(o),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:s}).then(l=>I(l));return{...e,name:o,id:a,eventType:o,timestamp:c,classification:i,category:d,attributes:r}},j=async({response:e,namespace:n,settings:t,accessToken:s})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:s})));export{j as t}; +import{c as y,p as T,i as g}from"./data-encoder-config.37ceca8b.js";import{c as v,a as k,d as w}from"./decode-payload.4c64ec1f.js";import{b as P}from"./format-date.79dd40f6.js";import{g as S,a as R,b as q}from"./get-codec.658caf67.js";import{F as E}from"./is-event-type.4dbe973b.js";import{g as F}from"./get-event-categorization.3ec93a88.js";import{s as I}from"./simplify-attributes.bbb8ccfe.js";const W=["Unspecified","Scheduled","Open","New","Started","Initiated","Running","Completed","Fired","CancelRequested","TimedOut","Signaled","Canceled","Failed","Terminated"],J=e=>{if(e.includes("RequestCancel"))return"CancelRequested";for(const n of W)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:s},{convertWithCodec:a=v,convertWithWebsocket:o=k,decodeAttributes:c=w,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=S(t,i),p=R(t,d),f=q(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},b=m?await a({attributes:u,namespace:n,settings:C,accessToken:s}):await o(u),A=c(b);return{type:l,...A}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:s})=>{const a=String(e.eventId),o=e.eventType,c=P(String(e.eventTime)),i=J(o),d=F(o),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:s}).then(l=>I(l));return{...e,name:o,id:a,eventType:o,timestamp:c,classification:i,category:d,attributes:r}},j=async({response:e,namespace:n,settings:t,accessToken:s})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:s})));export{j as t}; diff --git a/ui/assets/local/_app/immutable/chunks/logo.87b20d86.js b/ui/assets/local/_app/immutable/chunks/logo.e963defc.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/logo.87b20d86.js rename to ui/assets/local/_app/immutable/chunks/logo.e963defc.js index 499337603e..71a62197cf 100644 --- a/ui/assets/local/_app/immutable/chunks/logo.87b20d86.js +++ b/ui/assets/local/_app/immutable/chunks/logo.e963defc.js @@ -1,3 +1,3 @@ -import{S as v,b,a as g,m as f,C as k,w as $,p as m,q as p,D as x,k as d,x as w,u as r,f as y,L as _,E as F,n as L,j as E,g as I,F as D,K as q}from"./index.6779d4e2.js";import{p as C}from"./stores.6ee4c480.js";import{I as G}from"./icon.a4e81b70.js";function R(c){let e,s,n,t,o,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=f("a"),s=f("div"),n=f("div"),k(t.$$.fragment),o=$(` +import{S as v,b,a as g,m as f,C as k,w as $,p as m,q as p,D as x,k as d,x as w,u as r,f as y,L as _,E as F,n as L,j as E,g as I,F as D,K as q}from"./index.6779d4e2.js";import{p as C}from"./stores.b96d31b2.js";import{I as G}from"./icon.a4e81b70.js";function R(c){let e,s,n,t,o,i;return t=new G({props:{class:"text-purple-200",name:"feedback",height:12,width:12}}),{c(){e=f("a"),s=f("div"),n=f("div"),k(t.$$.fragment),o=$(` Give Feedback`),this.h()},l(a){e=m(a,"A",{href:!0,target:!0,"data-testid":!0,rel:!0});var l=p(e);s=m(l,"DIV",{class:!0});var u=p(s);n=m(u,"DIV",{class:!0});var h=p(n);x(t.$$.fragment,h),h.forEach(d),o=w(u,` Give Feedback`),u.forEach(d),l.forEach(d),this.h()},h(){r(n,"class","feedback-icon svelte-x1notn"),r(s,"class","feedback-button svelte-x1notn"),r(e,"href",c[0]),r(e,"target","_blank"),r(e,"data-testid","give-feedback"),r(e,"rel","noreferrer")},m(a,l){y(a,e,l),_(e,s),_(s,n),F(t,n,null),_(s,o),i=!0},p:L,i(a){i||(E(t.$$.fragment,a),i=!0)},o(a){I(t.$$.fragment,a),i=!1},d(a){a&&d(e),D(t)}}}function S(c,e,s){let n;q(c,C,a=>s(3,n=a));var t,o;return[((o=(t=n.data)===null||t===void 0?void 0:t.settings)===null||o===void 0?void 0:o.feedbackURL)||"https://github.com/temporalio/ui/issues/new/choose"]}class A extends v{constructor(e){super(),b(this,e,S,R,g,{})}}const B=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;export{A as F,B as L}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces-service.9c90147f.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.df04cc52.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/namespaces-service.9c90147f.js rename to ui/assets/local/_app/immutable/chunks/namespaces-service.df04cc52.js index f81f3eb43f..a790027ba9 100644 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.9c90147f.js +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.df04cc52.js @@ -1 +1 @@ -import{n as c}from"./namespaces.65099960.js";import{t as p}from"./toaster.ef510498.js";import{p as u}from"./paginated.e34d6315.js";import{r as f,a as i}from"./route-for-api.c219d4fc.js";const h={namespaces:[]};async function N(n,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:a}=n;if(a.isCloud){c.set([]);return}try{const s=f("namespaces"),r=await u(async m=>i(s,{request:e,token:m,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})),t=((r==null?void 0:r.namespaces)??[]).filter(m=>o||m.namespaceInfo.name!=="temporal-system");c.set(t)}catch{c.set([])}}async function d(n,e,o=fetch){var t;const[a]=h.namespaces;if((t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud)return a;const s=f("namespace",{namespace:n});return await i(s,{request:o,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})??a}export{d as a,N as f}; +import{n as c}from"./namespaces.65099960.js";import{t as p}from"./toaster.ef510498.js";import{p as u}from"./paginated.58f7628e.js";import{r as f,a as i}from"./route-for-api.4d253eb1.js";const h={namespaces:[]};async function N(n,e=fetch){const{showTemporalSystemNamespace:o,runtimeEnvironment:a}=n;if(a.isCloud){c.set([]);return}try{const s=f("namespaces"),r=await u(async m=>i(s,{request:e,token:m,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})),t=((r==null?void 0:r.namespaces)??[]).filter(m=>o||m.namespaceInfo.name!=="temporal-system");c.set(t)}catch{c.set([])}}async function d(n,e,o=fetch){var t;const[a]=h.namespaces;if((t=e==null?void 0:e.runtimeEnvironment)!=null&&t.isCloud)return a;const s=f("namespace",{namespace:n});return await i(s,{request:o,onError:()=>p.push({variant:"error",message:"Unable to fetch namespaces"})})??a}export{d as a,N as f}; diff --git a/ui/assets/local/_app/immutable/chunks/navigation.a7086f0c.js b/ui/assets/local/_app/immutable/chunks/navigation.8e7fd3e5.js similarity index 69% rename from ui/assets/local/_app/immutable/chunks/navigation.a7086f0c.js rename to ui/assets/local/_app/immutable/chunks/navigation.8e7fd3e5.js index 847f7f041a..64b9d77396 100644 --- a/ui/assets/local/_app/immutable/chunks/navigation.a7086f0c.js +++ b/ui/assets/local/_app/immutable/chunks/navigation.8e7fd3e5.js @@ -1 +1 @@ -import{h as a}from"./singletons.91a64e01.js";a.disable_scroll_handling;const t=a.goto;a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;a.before_navigate;const o=a.after_navigate;export{o as a,t as g}; +import{h as a}from"./singletons.8ade5c10.js";a.disable_scroll_handling;const t=a.goto;a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;a.before_navigate;const o=a.after_navigate;export{o as a,t as g}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.e34d6315.js b/ui/assets/local/_app/immutable/chunks/paginated.58f7628e.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/paginated.e34d6315.js rename to ui/assets/local/_app/immutable/chunks/paginated.58f7628e.js index 28ced1b13b..443b4aff84 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.e34d6315.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.58f7628e.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.c219d4fc.js";import{i as c}from"./persist-store.d8264c86.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:n}={})=>{!n&&c(e)&&e();try{const a=await i(u),{nextPageToken:f,...y}=a,o=p(n,y);return c(s)&&s(o,y),f?k(i,{onStart:e,onUpdate:s,onComplete:r,token:f,previousProps:o}):(c(r)&&r(o),o)}catch(a){t(a)}};export{k as p}; +import{h as g}from"./route-for-api.4d253eb1.js";import{i as c}from"./persist-store.d8264c86.js";const p=(i={},e={})=>{const s={...i};for(const r of Object.keys(e)){const t=s[r];Array.isArray(t)?s[r]=s[r].concat(e[r]):typeof t=="object"&&!Array.isArray(t)?s[r]=p(s[r],e[r]):s[r]=e[r]}return s},k=async(i,{onStart:e,onUpdate:s,onComplete:r,onError:t=g,token:u,previousProps:n}={})=>{!n&&c(e)&&e();try{const a=await i(u),{nextPageToken:f,...y}=a,o=p(n,y);return c(s)&&s(o,y),f?k(i,{onStart:e,onUpdate:s,onComplete:r,token:f,previousProps:o}):(c(r)&&r(o),o)}catch(a){t(a)}};export{k as p}; diff --git a/ui/assets/local/_app/immutable/chunks/pagination.b9ceda84.js b/ui/assets/local/_app/immutable/chunks/pagination.46c6618d.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/pagination.b9ceda84.js rename to ui/assets/local/_app/immutable/chunks/pagination.46c6618d.js index 773cc575f1..0fdecdedf8 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.b9ceda84.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.46c6618d.js @@ -1 +1 @@ -import{S as Ze,b as Qe,a as Xe,N as _e,A as Et,Z as Lt,C as Ie,D as we,E as Re,R as Bt,Y as jt,_ as Kt,j as R,g as S,F as ke,K as It,U as Be,G as se,H as ie,I as oe,J as re,e as lt,f as O,z as Ae,h as Pe,a7 as Tt,k as p,m as B,p as j,q as K,u as h,n as le,ac as z,a3 as nt,c as Z,d as Q,P as fe,$ as at,L as w,am as zt,Q as ce,r as wt,T as st,ah as Vt,o as Dt,s as Mt,w as ee,x as te,y as pe}from"./index.6779d4e2.js";import{p as Rt}from"./stores.6ee4c480.js";import{g as Ft}from"./navigation.a7086f0c.js";import{S as Ut,a as Ot}from"./simple-select.e8b6fede.js";import{d as Ct,w as qe}from"./index.1302fd9b.js";const Wt={keepFocus:!0,noScroll:!0},De=async({parameter:e,value:t,url:n,goto:l=Ft,allowEmpty:a=!1})=>{const i=String(t),o={};n.searchParams.forEach((u,r)=>{r!==e&&(o[r]=u)});const s=new URLSearchParams(o);t?s.set(e,i):a&&s.set(e,"");{const u=s==null?void 0:s.toString(),r=u?`${n.pathname}?${u}`:n.pathname;l(r,Wt)}return t};function it(e,t,n){const l=e.slice();return l[14]=t[n],l}function ot(e){let t,n;return t=new Ot({props:{value:e[14]}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a&1&&(i.value=l[14]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function qt(e){let t,n,l=e[0].map(rt),a=[];for(let o=0;oS(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;oLt(t,"value",i)),t.$on("change",e[3]),{c(){Ie(t.$$.fragment)},l(s){we(t.$$.fragment,s)},m(s,u){Re(t,s,u),l=!0},p(s,[u]){const r=u&20?Bt(a,[u&4&&{id:s[2]},u&16&&jt(s[4]),a[2]]):{};u&2049&&(r.$$scope={dirty:u,ctx:s}),!n&&u&2&&(n=!0,r.value=s[1],Kt(()=>n=!1)),t.$set(r)},i(s){l||(R(t.$$.fragment,s),l=!0)},o(s){S(t.$$.fragment,s),l=!1},d(s){ke(t,s)}}}const rt=e=>e.toString();function Jt(e,t,n){let l;It(e,Rt,b=>n(12,l=b));let{$$slots:a={},$$scope:i}=t,{label:o}=t,{value:s}=t,{options:u=[]}=t,{parameter:r=null}=t,{position:m=void 0}=t;const V=`${r||o}-${m?`${m}-filter`:"filter"}`;let k=r&&l.url.searchParams.get(r)||s&&s.toString();const N=()=>{De({parameter:r,value:k,url:l.url}).then(b=>n(5,s=b))};function X(b){k=b,n(1,k)}return e.$$set=b=>{n(4,t=_e(_e({},t),Be(b))),"label"in b&&n(6,o=b.label),"value"in b&&n(5,s=b.value),"options"in b&&n(0,u=b.options),"parameter"in b&&n(7,r=b.parameter),"position"in b&&n(8,m=b.position),"$$scope"in b&&n(11,i=b.$$scope)},t=Be(t),[u,k,V,N,t,s,o,r,m,a,X,i]}class kt extends Ze{constructor(t){super(),Qe(this,t,Jt,Gt,Xe,{label:6,value:5,options:0,parameter:7,position:8})}}function Zt(e){let t,n;return{c(){t=B("div"),this.h()},l(l){t=j(l,"DIV",{class:!0}),K(t).forEach(p),this.h()},h(){h(t,"class",n="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+e[0].class+" svelte-1hpjfio")},m(l,a){O(l,t,a)},p(l,[a]){a&1&&n!==(n="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+l[0].class+" svelte-1hpjfio")&&h(t,"class",n)},i:le,o:le,d(l){l&&p(t)}}}function Qt(e,t,n){return e.$$set=l=>{n(0,t=_e(_e({},t),Be(l)))},t=Be(t),[t]}class Nt extends Ze{constructor(t){super(),Qe(this,t,Qt,Zt,Xe,{})}}const Ee=100,je=["100","250","500"],Le="per-page",hl="page",ft=je[je.length-1],Me=(e,t)=>Math.floor(e/t)+1,Xt=(e,t)=>t<=9?new Array(t).fill(0).map((n,l)=>l+1):e<5?[1,2,3,4,5,NaN,t-2,t-1,t]:e>=5&&e<=t-5?[1,2,NaN,e-1,e,e+1,NaN,t-1,t]:e>=t-5?[1,2,NaN,t-5,t-4,t-3,t-2,t-1,t]:[],St=(e,t,n)=>{if(isNaN(e)||e<=1)return 0;if(e>At(t,n)){const l=n.length-t;return l>0?l:0}return Math.floor(t*(e-1))},Yt=(e,t,n)=>{const l=Me(e,t);return St(l,t,n)},ut=(e,t)=>Math.min(e-1,t-1),At=(e,t)=>Math.ceil(t.length/e),He=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,yt=(e=[],t=Ee,n=0)=>{t=Pt(t);const l=Yt(Je(n),t,e),a=qe(t),i=qe(l),o=qe(void 0),s=_=>{a.set(Je(_))},u=()=>{N(),i.update(_=>{const c=_+z(a);return Ge(c,e)?_:He(c,e)})},r=()=>{N(),i.update(_=>{const c=_-z(a);return He(c,e)})},m=_=>{const c=z(a),g=St(Number(_),c,e),A=e.slice(g,g+c).length;return z(o)>A-1&&o.set(A-1),i.set(g)},V=_=>{const c=Me(Number(_),z(a));m(c)},P=_=>{for(let c=0;c{const c=P(_);return Me(c,z(a))},N=(_=void 0)=>{_===void 0&&o.set(_);const c=e.slice(z(i),z(i)+z(a)).length,g=ut(c,z(a));_<=g&&o.set(_)},X=()=>{const _=e.slice(z(i),z(i)+z(a)).length,c=ut(_,z(a));z(o)===void 0?o.set(0):z(o){const _=z(o)>=1?z(o)-1:0;o.set(_)},{subscribe:T}=Ct([i,a,o],([_,c,g])=>{const A=At(c,e),Y=Me(_,c);return{items:e.slice(_,_+c),initialItem:e[0],hasPrevious:!Ge(_-c,e),hasNext:!Ge(_+c,e),startingIndex:_,endingIndex:He(_+c-1,e),length:e.length,pageSize:c,currentPage:Y,totalPages:A,activeRowIndex:g,pageShortcuts:Xt(Y,A)}});return{subscribe:T,adjustPageSize:s,next:u,previous:r,jumpToPage:m,jumpToIndex:V,findIndex:P,findPage:k,nextRow:X,previousRow:b,setActiveRowIndex:N}},Pt=(e=Ee)=>{const t=Je(e);return isNaN(t)||!t?Ee:t},Je=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)},xt=({width:e,height:t,screenWidth:n,breakpoint:l=1279})=>e&&t&&n>l?`position: absolute; right: ${e+20}px; top: -${t}px`:"";const $t=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),ct=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),el=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),_t=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),tl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),mt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),ll=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),dt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),nl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),bt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),al=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),gt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),sl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),vt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex});function ht(e){let t,n;return t=new kt({props:{label:e[2],parameter:Le,value:e[8],options:je,position:"top"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a[0]&4&&(i.label=l[2]),a[0]&256&&(i.value=l[8]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function il(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",n,l,a=e[9].endingIndex+1+"",i,o,s=e[9].length+"",u;return{c(){n=ee(t),l=ee("–"),i=ee(a),o=ee(" of "),u=ee(s)},l(r){n=te(r,t),l=te(r,"–"),i=te(r,a),o=te(r," of "),u=te(r,s)},m(r,m){O(r,n,m),O(r,l,m),O(r,i,m),O(r,o,m),O(r,u,m)},p(r,m){m[0]&512&&t!==(t=(r[9].length?r[9].startingIndex+1:0)+"")&&pe(n,t),m[0]&512&&a!==(a=r[9].endingIndex+1+"")&&pe(i,a),m[0]&512&&s!==(s=r[9].length+"")&&pe(u,s)},i:le,o:le,d(r){r&&p(n),r&&p(l),r&&p(i),r&&p(o),r&&p(u)}}}function ol(e){let t,n;return t=new Nt({props:{class:"block h-5 w-24"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p:le,i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function rl(e){let t,n,l,a,i,o,s,u,r,m,V,P,k,N,X;const b=[ol,il],T=[];function _(c,g){return c[1]?0:1}return s=_(e),u=T[s]=b[s](e),{c(){t=B("div"),n=B("button"),l=B("span"),i=Z(),o=B("p"),u.c(),r=Z(),m=B("button"),V=B("span"),this.h()},l(c){t=j(c,"DIV",{class:!0});var g=K(t);n=j(g,"BUTTON",{class:!0,"aria-label":!0});var A=K(n);l=j(A,"SPAN",{class:!0}),K(l).forEach(p),A.forEach(p),i=Q(g),o=j(g,"P",{});var Y=K(o);u.l(Y),Y.forEach(p),r=Q(g),m=j(g,"BUTTON",{class:!0,"aria-label":!0});var y=K(m);V=j(y,"SPAN",{class:!0}),K(V).forEach(p),y.forEach(p),g.forEach(p),this.h()},h(){h(l,"class","arrow arrow-left svelte-1780ds3"),fe(l,"arrow-left-disabled",!e[9].hasPrevious),h(n,"class","caret svelte-1780ds3"),n.disabled=a=!e[9].hasPrevious,h(n,"aria-label",e[3]),h(V,"class","arrow arrow-right svelte-1780ds3"),fe(V,"arrow-right-disabled",!e[9].hasNext),h(m,"class","caret svelte-1780ds3"),m.disabled=P=!e[9].hasNext,h(m,"aria-label",e[4]),h(t,"class","flex items-center justify-center gap-3")},m(c,g){O(c,t,g),w(t,n),w(n,l),w(t,i),w(t,o),T[s].m(o,null),w(t,r),w(t,m),w(m,V),k=!0,N||(X=[ce(n,"click",e[27]),ce(m,"click",e[28])],N=!0)},p(c,g){(!k||g[0]&512)&&fe(l,"arrow-left-disabled",!c[9].hasPrevious),(!k||g[0]&512&&a!==(a=!c[9].hasPrevious))&&(n.disabled=a),(!k||g[0]&8)&&h(n,"aria-label",c[3]);let A=s;s=_(c),s===A?T[s].p(c,g):(Ae(),S(T[A],1,1,()=>{T[A]=null}),Pe(),u=T[s],u?u.p(c,g):(u=T[s]=b[s](c),u.c()),R(u,1),u.m(o,null)),(!k||g[0]&512)&&fe(V,"arrow-right-disabled",!c[9].hasNext),(!k||g[0]&512&&P!==(P=!c[9].hasNext))&&(m.disabled=P),(!k||g[0]&16)&&h(m,"aria-label",c[4])},i(c){k||(R(u),k=!0)},o(c){S(u),k=!1},d(c){c&&p(t),T[s].d(),N=!1,wt(X)}}}function pt(e){let t,n;return t=new kt({props:{label:e[2],parameter:Le,value:e[8],options:je,position:"bottom"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a[0]&4&&(i.label=l[2]),a[0]&256&&(i.value=l[8]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function fl(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",n,l,a=e[9].endingIndex+1+"",i,o,s=e[9].length+"",u;return{c(){n=ee(t),l=ee("–"),i=ee(a),o=ee(" of "),u=ee(s)},l(r){n=te(r,t),l=te(r,"–"),i=te(r,a),o=te(r," of "),u=te(r,s)},m(r,m){O(r,n,m),O(r,l,m),O(r,i,m),O(r,o,m),O(r,u,m)},p(r,m){m[0]&512&&t!==(t=(r[9].length?r[9].startingIndex+1:0)+"")&&pe(n,t),m[0]&512&&a!==(a=r[9].endingIndex+1+"")&&pe(i,a),m[0]&512&&s!==(s=r[9].length+"")&&pe(u,s)},i:le,o:le,d(r){r&&p(n),r&&p(l),r&&p(i),r&&p(o),r&&p(u)}}}function ul(e){let t,n;return t=new Nt({props:{class:"block h-5 w-24"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p:le,i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function cl(e){let t,n,l,a,i,o,s,u,r,m,V,P,k,N,X,b,T,_,c,g,A,Y,y,D,M,ue,F,x,$,me,de,be,I,Ne,Ke;nt(e[26]);const Se=e[25]["action-top-left"],U=se(Se,e,e[24],vt),v=e[25]["action-top-center"],C=se(v,e,e[24],gt);let E=!e[0]&&ht(e);const Fe=e[25]["pagination-top"],Te=se(Fe,e,e[24],bt),W=Te||rl(e),Ue=e[25]["action-top-right"],q=se(Ue,e,e[24],dt),Oe=e[25].default,H=se(Oe,e,e[24],mt),Ce=e[25]["action-bottom-left"],G=se(Ce,e,e[24],_t);let L=!e[0]&&pt(e);const Ye=[ul,fl],ne=[];function ye(f,d){return f[1]?0:1}D=ye(e),M=ne[D]=Ye[D](e);const We=e[25]["action-bottom-right"],J=se(We,e,e[24],ct);return{c(){t=B("div"),n=B("div"),l=B("div"),U&&U.c(),a=Z(),i=B("nav"),C&&C.c(),o=Z(),s=B("div"),E&&E.c(),u=Z(),W&&W.c(),r=Z(),q&&q.c(),P=Z(),H&&H.c(),k=Z(),N=B("nav"),G&&G.c(),X=Z(),b=B("div"),L&&L.c(),T=Z(),_=B("div"),c=B("button"),g=B("span"),Y=Z(),y=B("p"),M.c(),ue=Z(),F=B("button"),x=B("span"),me=Z(),J&&J.c(),this.h()},l(f){t=j(f,"DIV",{class:!0});var d=K(t);n=j(d,"DIV",{class:!0});var ae=K(n);l=j(ae,"DIV",{class:!0});var xe=K(l);U&&U.l(xe),xe.forEach(p),a=Q(ae),i=j(ae,"NAV",{style:!0,class:!0,"aria-label":!0});var ge=K(i);C&&C.l(ge),o=Q(ge),s=j(ge,"DIV",{class:!0});var ze=K(s);E&&E.l(ze),u=Q(ze),W&&W.l(ze),ze.forEach(p),r=Q(ge),q&&q.l(ge),ge.forEach(p),ae.forEach(p),P=Q(d),H&&H.l(d),k=Q(d),N=j(d,"NAV",{class:!0,"aria-label":!0});var Ve=K(N);G&&G.l(Ve),X=Q(Ve),b=j(Ve,"DIV",{class:!0});var ve=K(b);L&&L.l(ve),T=Q(ve),_=j(ve,"DIV",{class:!0});var he=K(_);c=j(he,"BUTTON",{class:!0,"aria-label":!0});var $e=K(c);g=j($e,"SPAN",{class:!0}),K(g).forEach(p),$e.forEach(p),Y=Q(he),y=j(he,"P",{});var et=K(y);M.l(et),et.forEach(p),ue=Q(he),F=j(he,"BUTTON",{class:!0,"aria-label":!0});var tt=K(F);x=j(tt,"SPAN",{class:!0}),K(x).forEach(p),tt.forEach(p),he.forEach(p),me=Q(ve),J&&J.l(ve),ve.forEach(p),Ve.forEach(p),d.forEach(p),this.h()},h(){h(l,"class","w-full"),h(s,"class","flex gap-4"),h(i,"style",e[10]),h(i,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),h(i,"aria-label",m=e[14]["aria-label"]+" 1"),nt(()=>e[29].call(i)),h(n,"class","flex flex-col items-end justify-end gap-4 lg:flex-row lg:items-start"),h(g,"class","arrow arrow-left svelte-1780ds3"),fe(g,"arrow-left-disabled",!e[9].hasPrevious),h(c,"class","caret svelte-1780ds3"),c.disabled=A=!e[9].hasPrevious,h(c,"aria-label",e[3]),h(x,"class","arrow arrow-right svelte-1780ds3"),fe(x,"arrow-right-disabled",!e[9].hasNext),h(F,"class","caret svelte-1780ds3"),F.disabled=$=!e[9].hasNext,h(F,"aria-label",e[4]),h(_,"class","flex items-center justify-center gap-3"),h(b,"class","flex gap-4"),h(N,"class",de=at(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),h(N,"aria-label",be=e[14]["aria-label"]+" 2"),h(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(f,d){O(f,t,d),w(t,n),w(n,l),U&&U.m(l,null),w(n,a),w(n,i),C&&C.m(i,null),w(i,o),w(i,s),E&&E.m(s,null),w(s,u),W&&W.m(s,null),w(i,r),q&&q.m(i,null),V=zt(i,e[29].bind(i)),w(t,P),H&&H.m(t,null),w(t,k),w(t,N),G&&G.m(N,null),w(N,X),w(N,b),L&&L.m(b,null),w(b,T),w(b,_),w(_,c),w(c,g),w(_,Y),w(_,y),ne[D].m(y,null),w(_,ue),w(_,F),w(F,x),w(b,me),J&&J.m(b,null),I=!0,Ne||(Ke=[ce(window,"resize",e[12]),ce(window,"keydown",e[13]),ce(window,"resize",e[26]),ce(c,"click",e[30]),ce(F,"click",e[31])],Ne=!0)},p(f,d){U&&U.p&&(!I||d[0]&16777856)&&ie(U,Se,f,f[24],I?re(Se,f[24],d,sl):oe(f[24]),vt),C&&C.p&&(!I||d[0]&16777856)&&ie(C,v,f,f[24],I?re(v,f[24],d,al):oe(f[24]),gt),f[0]?E&&(Ae(),S(E,1,1,()=>{E=null}),Pe()):E?(E.p(f,d),d[0]&1&&R(E,1)):(E=ht(f),E.c(),R(E,1),E.m(s,u)),Te?Te.p&&(!I||d[0]&16777856)&&ie(Te,Fe,f,f[24],I?re(Fe,f[24],d,nl):oe(f[24]),bt):W&&W.p&&(!I||d[0]&666)&&W.p(f,I?d:[-1,-1]),q&&q.p&&(!I||d[0]&16777856)&&ie(q,Ue,f,f[24],I?re(Ue,f[24],d,ll):oe(f[24]),dt),(!I||d[0]&1024)&&h(i,"style",f[10]),(!I||d[0]&16384&&m!==(m=f[14]["aria-label"]+" 1"))&&h(i,"aria-label",m),H&&H.p&&(!I||d[0]&16777856)&&ie(H,Oe,f,f[24],I?re(Oe,f[24],d,tl):oe(f[24]),mt),G&&G.p&&(!I||d[0]&16777856)&&ie(G,Ce,f,f[24],I?re(Ce,f[24],d,el):oe(f[24]),_t),f[0]?L&&(Ae(),S(L,1,1,()=>{L=null}),Pe()):L?(L.p(f,d),d[0]&1&&R(L,1)):(L=pt(f),L.c(),R(L,1),L.m(b,T)),(!I||d[0]&512)&&fe(g,"arrow-left-disabled",!f[9].hasPrevious),(!I||d[0]&512&&A!==(A=!f[9].hasPrevious))&&(c.disabled=A),(!I||d[0]&8)&&h(c,"aria-label",f[3]);let ae=D;D=ye(f),D===ae?ne[D].p(f,d):(Ae(),S(ne[ae],1,1,()=>{ne[ae]=null}),Pe(),M=ne[D],M?M.p(f,d):(M=ne[D]=Ye[D](f),M.c()),R(M,1),M.m(y,null)),(!I||d[0]&512)&&fe(x,"arrow-right-disabled",!f[9].hasNext),(!I||d[0]&512&&$!==($=!f[9].hasNext))&&(F.disabled=$),(!I||d[0]&16)&&h(F,"aria-label",f[4]),J&&J.p&&(!I||d[0]&16777856)&&ie(J,We,f,f[24],I?re(We,f[24],d,$t):oe(f[24]),ct),(!I||d[0]&32768&&de!==(de=at(`flex ${f[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&h(N,"class",de),(!I||d[0]&16384&&be!==(be=f[14]["aria-label"]+" 2"))&&h(N,"aria-label",be)},i(f){I||(R(U,f),R(C,f),R(E),R(W,f),R(q,f),R(H,f),R(G,f),R(L),R(M),R(J,f),I=!0)},o(f){S(U,f),S(C,f),S(E),S(W,f),S(q,f),S(H,f),S(G,f),S(L),S(M),S(J,f),I=!1},d(f){f&&p(t),U&&U.d(f),C&&C.d(f),E&&E.d(),W&&W.d(f),q&&q.d(f),V(),H&&H.d(f),G&&G.d(f),L&&L.d(),ne[D].d(),J&&J.d(f),Ne=!1,wt(Ke)}}}function _l(e,t,n){let l,a,i,o;const s=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let u=st(t,s),r,m=le,V=()=>(m(),m=Mt(a,v=>n(9,r=v)),a),P;It(e,Rt,v=>n(23,P=v)),e.$$.on_destroy.push(()=>m());let{$$slots:k={},$$scope:N}=t;const X=Vt(k);var b;let{items:T}=t,{floatId:_=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:g="page"}=t,{itemsPerPage:A=null}=t,{updating:Y=!1}=t,{pageSizeSelectLabel:y}=t,{previousButtonLabel:D}=t,{nextButtonLabel:M}=t,ue,F,x;Dt(()=>{me(),Number(c)>0&&$()});const $=()=>{De({parameter:g,value:r.currentPage,url:P.url})},me=()=>{var v;_&&n(21,F=(v=document.getElementById(_))===null||v===void 0?void 0:v.clientWidth)};async function de(v){switch(v.code){case"ArrowRight":case"KeyL":r.hasNext&&(a.next(),$());break;case"ArrowLeft":case"KeyH":r.hasPrevious&&(a.previous(),$());break;case"ArrowUp":case"KeyK":a.previousRow();break;case"ArrowDown":case"KeyJ":a.nextRow();break}}function be(){n(5,ue=window.innerWidth)}const I=()=>{a.previous(),$()},Ne=()=>{a.next(),$()};function Ke(){x=this.clientHeight,n(6,x)}const Se=()=>a.previous(),U=()=>a.next();return e.$$set=v=>{t=_e(_e({},t),Be(v)),n(14,u=st(t,s)),"items"in v&&n(16,T=v.items),"floatId"in v&&n(17,_=v.floatId),"startingIndex"in v&&n(18,c=v.startingIndex),"currentPageKey"in v&&n(19,g=v.currentPageKey),"itemsPerPage"in v&&n(0,A=v.itemsPerPage),"updating"in v&&n(1,Y=v.updating),"pageSizeSelectLabel"in v&&n(2,y=v.pageSizeSelectLabel),"previousButtonLabel"in v&&n(3,D=v.previousButtonLabel),"nextButtonLabel"in v&&n(4,M=v.nextButtonLabel),"$$scope"in v&&n(24,N=v.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&n(8,l=A!==null?String(A):String(Pt(P.url.searchParams.get(Le))).toString()),e.$$.dirty[0]&8388864&&(parseInt(l,10)>parseInt(ft,10)?De({parameter:Le,value:ft,url:P.url}):je.includes(l)||De({parameter:Le,value:Ee,url:P.url})),e.$$.dirty[0]&327936&&V(n(7,a=yt(T,l,c))),e.$$.dirty[0]&9961984&&n(22,i=n(20,b=P.url.searchParams.get(g))!==null&&b!==void 0?b:r.currentPage),e.$$.dirty[0]&4194432&&a.jumpToPage(i),e.$$.dirty[0]&2097248&&n(10,o=xt({width:F,height:x,screenWidth:ue}))},[A,Y,y,D,M,ue,x,a,l,r,o,$,me,de,u,X,T,_,c,g,b,F,i,P,N,k,be,I,Ne,Ke,Se,U]}class pl extends Ze{constructor(t){super(),Qe(this,t,_l,cl,Xe,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{kt as F,ft as M,pl as P,yt as a,hl as c,Ee as d,je as o,Le as p,De as u}; +import{S as Ze,b as Qe,a as Xe,N as _e,A as Et,Z as Lt,C as Ie,D as we,E as Re,R as Bt,Y as jt,_ as Kt,j as R,g as S,F as ke,K as It,U as Be,G as se,H as ie,I as oe,J as re,e as lt,f as O,z as Ae,h as Pe,a7 as Tt,k as p,m as B,p as j,q as K,u as h,n as le,ac as z,a3 as nt,c as Z,d as Q,P as fe,$ as at,L as w,am as zt,Q as ce,r as wt,T as st,ah as Vt,o as Dt,s as Mt,w as ee,x as te,y as pe}from"./index.6779d4e2.js";import{p as Rt}from"./stores.b96d31b2.js";import{g as Ft}from"./navigation.8e7fd3e5.js";import{S as Ut,a as Ot}from"./simple-select.e8b6fede.js";import{d as Ct,w as qe}from"./index.1302fd9b.js";const Wt={keepFocus:!0,noScroll:!0},De=async({parameter:e,value:t,url:n,goto:l=Ft,allowEmpty:a=!1})=>{const i=String(t),o={};n.searchParams.forEach((u,r)=>{r!==e&&(o[r]=u)});const s=new URLSearchParams(o);t?s.set(e,i):a&&s.set(e,"");{const u=s==null?void 0:s.toString(),r=u?`${n.pathname}?${u}`:n.pathname;l(r,Wt)}return t};function it(e,t,n){const l=e.slice();return l[14]=t[n],l}function ot(e){let t,n;return t=new Ot({props:{value:e[14]}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a&1&&(i.value=l[14]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function qt(e){let t,n,l=e[0].map(rt),a=[];for(let o=0;oS(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;oLt(t,"value",i)),t.$on("change",e[3]),{c(){Ie(t.$$.fragment)},l(s){we(t.$$.fragment,s)},m(s,u){Re(t,s,u),l=!0},p(s,[u]){const r=u&20?Bt(a,[u&4&&{id:s[2]},u&16&&jt(s[4]),a[2]]):{};u&2049&&(r.$$scope={dirty:u,ctx:s}),!n&&u&2&&(n=!0,r.value=s[1],Kt(()=>n=!1)),t.$set(r)},i(s){l||(R(t.$$.fragment,s),l=!0)},o(s){S(t.$$.fragment,s),l=!1},d(s){ke(t,s)}}}const rt=e=>e.toString();function Jt(e,t,n){let l;It(e,Rt,b=>n(12,l=b));let{$$slots:a={},$$scope:i}=t,{label:o}=t,{value:s}=t,{options:u=[]}=t,{parameter:r=null}=t,{position:m=void 0}=t;const V=`${r||o}-${m?`${m}-filter`:"filter"}`;let k=r&&l.url.searchParams.get(r)||s&&s.toString();const N=()=>{De({parameter:r,value:k,url:l.url}).then(b=>n(5,s=b))};function X(b){k=b,n(1,k)}return e.$$set=b=>{n(4,t=_e(_e({},t),Be(b))),"label"in b&&n(6,o=b.label),"value"in b&&n(5,s=b.value),"options"in b&&n(0,u=b.options),"parameter"in b&&n(7,r=b.parameter),"position"in b&&n(8,m=b.position),"$$scope"in b&&n(11,i=b.$$scope)},t=Be(t),[u,k,V,N,t,s,o,r,m,a,X,i]}class kt extends Ze{constructor(t){super(),Qe(this,t,Jt,Gt,Xe,{label:6,value:5,options:0,parameter:7,position:8})}}function Zt(e){let t,n;return{c(){t=B("div"),this.h()},l(l){t=j(l,"DIV",{class:!0}),K(t).forEach(p),this.h()},h(){h(t,"class",n="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+e[0].class+" svelte-1hpjfio")},m(l,a){O(l,t,a)},p(l,[a]){a&1&&n!==(n="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+l[0].class+" svelte-1hpjfio")&&h(t,"class",n)},i:le,o:le,d(l){l&&p(t)}}}function Qt(e,t,n){return e.$$set=l=>{n(0,t=_e(_e({},t),Be(l)))},t=Be(t),[t]}class Nt extends Ze{constructor(t){super(),Qe(this,t,Qt,Zt,Xe,{})}}const Ee=100,je=["100","250","500"],Le="per-page",hl="page",ft=je[je.length-1],Me=(e,t)=>Math.floor(e/t)+1,Xt=(e,t)=>t<=9?new Array(t).fill(0).map((n,l)=>l+1):e<5?[1,2,3,4,5,NaN,t-2,t-1,t]:e>=5&&e<=t-5?[1,2,NaN,e-1,e,e+1,NaN,t-1,t]:e>=t-5?[1,2,NaN,t-5,t-4,t-3,t-2,t-1,t]:[],St=(e,t,n)=>{if(isNaN(e)||e<=1)return 0;if(e>At(t,n)){const l=n.length-t;return l>0?l:0}return Math.floor(t*(e-1))},Yt=(e,t,n)=>{const l=Me(e,t);return St(l,t,n)},ut=(e,t)=>Math.min(e-1,t-1),At=(e,t)=>Math.ceil(t.length/e),He=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,yt=(e=[],t=Ee,n=0)=>{t=Pt(t);const l=Yt(Je(n),t,e),a=qe(t),i=qe(l),o=qe(void 0),s=_=>{a.set(Je(_))},u=()=>{N(),i.update(_=>{const c=_+z(a);return Ge(c,e)?_:He(c,e)})},r=()=>{N(),i.update(_=>{const c=_-z(a);return He(c,e)})},m=_=>{const c=z(a),g=St(Number(_),c,e),A=e.slice(g,g+c).length;return z(o)>A-1&&o.set(A-1),i.set(g)},V=_=>{const c=Me(Number(_),z(a));m(c)},P=_=>{for(let c=0;c{const c=P(_);return Me(c,z(a))},N=(_=void 0)=>{_===void 0&&o.set(_);const c=e.slice(z(i),z(i)+z(a)).length,g=ut(c,z(a));_<=g&&o.set(_)},X=()=>{const _=e.slice(z(i),z(i)+z(a)).length,c=ut(_,z(a));z(o)===void 0?o.set(0):z(o){const _=z(o)>=1?z(o)-1:0;o.set(_)},{subscribe:T}=Ct([i,a,o],([_,c,g])=>{const A=At(c,e),Y=Me(_,c);return{items:e.slice(_,_+c),initialItem:e[0],hasPrevious:!Ge(_-c,e),hasNext:!Ge(_+c,e),startingIndex:_,endingIndex:He(_+c-1,e),length:e.length,pageSize:c,currentPage:Y,totalPages:A,activeRowIndex:g,pageShortcuts:Xt(Y,A)}});return{subscribe:T,adjustPageSize:s,next:u,previous:r,jumpToPage:m,jumpToIndex:V,findIndex:P,findPage:k,nextRow:X,previousRow:b,setActiveRowIndex:N}},Pt=(e=Ee)=>{const t=Je(e);return isNaN(t)||!t?Ee:t},Je=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)},xt=({width:e,height:t,screenWidth:n,breakpoint:l=1279})=>e&&t&&n>l?`position: absolute; right: ${e+20}px; top: -${t}px`:"";const $t=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),ct=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),el=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),_t=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),tl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),mt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),ll=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),dt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),nl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),bt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),al=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),gt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex}),sl=e=>({visibleItems:e[0]&512,initialItem:e[0]&512,activeRowIndex:e[0]&512,setActiveRowIndex:e[0]&128}),vt=e=>({visibleItems:e[9].items,initialItem:e[9].initialItem,activeRowIndex:e[9].activeRowIndex,setActiveRowIndex:e[7].setActiveRowIndex});function ht(e){let t,n;return t=new kt({props:{label:e[2],parameter:Le,value:e[8],options:je,position:"top"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a[0]&4&&(i.label=l[2]),a[0]&256&&(i.value=l[8]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function il(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",n,l,a=e[9].endingIndex+1+"",i,o,s=e[9].length+"",u;return{c(){n=ee(t),l=ee("–"),i=ee(a),o=ee(" of "),u=ee(s)},l(r){n=te(r,t),l=te(r,"–"),i=te(r,a),o=te(r," of "),u=te(r,s)},m(r,m){O(r,n,m),O(r,l,m),O(r,i,m),O(r,o,m),O(r,u,m)},p(r,m){m[0]&512&&t!==(t=(r[9].length?r[9].startingIndex+1:0)+"")&&pe(n,t),m[0]&512&&a!==(a=r[9].endingIndex+1+"")&&pe(i,a),m[0]&512&&s!==(s=r[9].length+"")&&pe(u,s)},i:le,o:le,d(r){r&&p(n),r&&p(l),r&&p(i),r&&p(o),r&&p(u)}}}function ol(e){let t,n;return t=new Nt({props:{class:"block h-5 w-24"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p:le,i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function rl(e){let t,n,l,a,i,o,s,u,r,m,V,P,k,N,X;const b=[ol,il],T=[];function _(c,g){return c[1]?0:1}return s=_(e),u=T[s]=b[s](e),{c(){t=B("div"),n=B("button"),l=B("span"),i=Z(),o=B("p"),u.c(),r=Z(),m=B("button"),V=B("span"),this.h()},l(c){t=j(c,"DIV",{class:!0});var g=K(t);n=j(g,"BUTTON",{class:!0,"aria-label":!0});var A=K(n);l=j(A,"SPAN",{class:!0}),K(l).forEach(p),A.forEach(p),i=Q(g),o=j(g,"P",{});var Y=K(o);u.l(Y),Y.forEach(p),r=Q(g),m=j(g,"BUTTON",{class:!0,"aria-label":!0});var y=K(m);V=j(y,"SPAN",{class:!0}),K(V).forEach(p),y.forEach(p),g.forEach(p),this.h()},h(){h(l,"class","arrow arrow-left svelte-1780ds3"),fe(l,"arrow-left-disabled",!e[9].hasPrevious),h(n,"class","caret svelte-1780ds3"),n.disabled=a=!e[9].hasPrevious,h(n,"aria-label",e[3]),h(V,"class","arrow arrow-right svelte-1780ds3"),fe(V,"arrow-right-disabled",!e[9].hasNext),h(m,"class","caret svelte-1780ds3"),m.disabled=P=!e[9].hasNext,h(m,"aria-label",e[4]),h(t,"class","flex items-center justify-center gap-3")},m(c,g){O(c,t,g),w(t,n),w(n,l),w(t,i),w(t,o),T[s].m(o,null),w(t,r),w(t,m),w(m,V),k=!0,N||(X=[ce(n,"click",e[27]),ce(m,"click",e[28])],N=!0)},p(c,g){(!k||g[0]&512)&&fe(l,"arrow-left-disabled",!c[9].hasPrevious),(!k||g[0]&512&&a!==(a=!c[9].hasPrevious))&&(n.disabled=a),(!k||g[0]&8)&&h(n,"aria-label",c[3]);let A=s;s=_(c),s===A?T[s].p(c,g):(Ae(),S(T[A],1,1,()=>{T[A]=null}),Pe(),u=T[s],u?u.p(c,g):(u=T[s]=b[s](c),u.c()),R(u,1),u.m(o,null)),(!k||g[0]&512)&&fe(V,"arrow-right-disabled",!c[9].hasNext),(!k||g[0]&512&&P!==(P=!c[9].hasNext))&&(m.disabled=P),(!k||g[0]&16)&&h(m,"aria-label",c[4])},i(c){k||(R(u),k=!0)},o(c){S(u),k=!1},d(c){c&&p(t),T[s].d(),N=!1,wt(X)}}}function pt(e){let t,n;return t=new kt({props:{label:e[2],parameter:Le,value:e[8],options:je,position:"bottom"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p(l,a){const i={};a[0]&4&&(i.label=l[2]),a[0]&256&&(i.value=l[8]),t.$set(i)},i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function fl(e){let t=(e[9].length?e[9].startingIndex+1:0)+"",n,l,a=e[9].endingIndex+1+"",i,o,s=e[9].length+"",u;return{c(){n=ee(t),l=ee("–"),i=ee(a),o=ee(" of "),u=ee(s)},l(r){n=te(r,t),l=te(r,"–"),i=te(r,a),o=te(r," of "),u=te(r,s)},m(r,m){O(r,n,m),O(r,l,m),O(r,i,m),O(r,o,m),O(r,u,m)},p(r,m){m[0]&512&&t!==(t=(r[9].length?r[9].startingIndex+1:0)+"")&&pe(n,t),m[0]&512&&a!==(a=r[9].endingIndex+1+"")&&pe(i,a),m[0]&512&&s!==(s=r[9].length+"")&&pe(u,s)},i:le,o:le,d(r){r&&p(n),r&&p(l),r&&p(i),r&&p(o),r&&p(u)}}}function ul(e){let t,n;return t=new Nt({props:{class:"block h-5 w-24"}}),{c(){Ie(t.$$.fragment)},l(l){we(t.$$.fragment,l)},m(l,a){Re(t,l,a),n=!0},p:le,i(l){n||(R(t.$$.fragment,l),n=!0)},o(l){S(t.$$.fragment,l),n=!1},d(l){ke(t,l)}}}function cl(e){let t,n,l,a,i,o,s,u,r,m,V,P,k,N,X,b,T,_,c,g,A,Y,y,D,M,ue,F,x,$,me,de,be,I,Ne,Ke;nt(e[26]);const Se=e[25]["action-top-left"],U=se(Se,e,e[24],vt),v=e[25]["action-top-center"],C=se(v,e,e[24],gt);let E=!e[0]&&ht(e);const Fe=e[25]["pagination-top"],Te=se(Fe,e,e[24],bt),W=Te||rl(e),Ue=e[25]["action-top-right"],q=se(Ue,e,e[24],dt),Oe=e[25].default,H=se(Oe,e,e[24],mt),Ce=e[25]["action-bottom-left"],G=se(Ce,e,e[24],_t);let L=!e[0]&&pt(e);const Ye=[ul,fl],ne=[];function ye(f,d){return f[1]?0:1}D=ye(e),M=ne[D]=Ye[D](e);const We=e[25]["action-bottom-right"],J=se(We,e,e[24],ct);return{c(){t=B("div"),n=B("div"),l=B("div"),U&&U.c(),a=Z(),i=B("nav"),C&&C.c(),o=Z(),s=B("div"),E&&E.c(),u=Z(),W&&W.c(),r=Z(),q&&q.c(),P=Z(),H&&H.c(),k=Z(),N=B("nav"),G&&G.c(),X=Z(),b=B("div"),L&&L.c(),T=Z(),_=B("div"),c=B("button"),g=B("span"),Y=Z(),y=B("p"),M.c(),ue=Z(),F=B("button"),x=B("span"),me=Z(),J&&J.c(),this.h()},l(f){t=j(f,"DIV",{class:!0});var d=K(t);n=j(d,"DIV",{class:!0});var ae=K(n);l=j(ae,"DIV",{class:!0});var xe=K(l);U&&U.l(xe),xe.forEach(p),a=Q(ae),i=j(ae,"NAV",{style:!0,class:!0,"aria-label":!0});var ge=K(i);C&&C.l(ge),o=Q(ge),s=j(ge,"DIV",{class:!0});var ze=K(s);E&&E.l(ze),u=Q(ze),W&&W.l(ze),ze.forEach(p),r=Q(ge),q&&q.l(ge),ge.forEach(p),ae.forEach(p),P=Q(d),H&&H.l(d),k=Q(d),N=j(d,"NAV",{class:!0,"aria-label":!0});var Ve=K(N);G&&G.l(Ve),X=Q(Ve),b=j(Ve,"DIV",{class:!0});var ve=K(b);L&&L.l(ve),T=Q(ve),_=j(ve,"DIV",{class:!0});var he=K(_);c=j(he,"BUTTON",{class:!0,"aria-label":!0});var $e=K(c);g=j($e,"SPAN",{class:!0}),K(g).forEach(p),$e.forEach(p),Y=Q(he),y=j(he,"P",{});var et=K(y);M.l(et),et.forEach(p),ue=Q(he),F=j(he,"BUTTON",{class:!0,"aria-label":!0});var tt=K(F);x=j(tt,"SPAN",{class:!0}),K(x).forEach(p),tt.forEach(p),he.forEach(p),me=Q(ve),J&&J.l(ve),ve.forEach(p),Ve.forEach(p),d.forEach(p),this.h()},h(){h(l,"class","w-full"),h(s,"class","flex gap-4"),h(i,"style",e[10]),h(i,"class","flex min-w-fit flex-col items-end gap-4 md:flex-row"),h(i,"aria-label",m=e[14]["aria-label"]+" 1"),nt(()=>e[29].call(i)),h(n,"class","flex flex-col items-end justify-end gap-4 lg:flex-row lg:items-start"),h(g,"class","arrow arrow-left svelte-1780ds3"),fe(g,"arrow-left-disabled",!e[9].hasPrevious),h(c,"class","caret svelte-1780ds3"),c.disabled=A=!e[9].hasPrevious,h(c,"aria-label",e[3]),h(x,"class","arrow arrow-right svelte-1780ds3"),fe(x,"arrow-right-disabled",!e[9].hasNext),h(F,"class","caret svelte-1780ds3"),F.disabled=$=!e[9].hasNext,h(F,"aria-label",e[4]),h(_,"class","flex items-center justify-center gap-3"),h(b,"class","flex gap-4"),h(N,"class",de=at(`flex ${e[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),h(N,"aria-label",be=e[14]["aria-label"]+" 2"),h(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(f,d){O(f,t,d),w(t,n),w(n,l),U&&U.m(l,null),w(n,a),w(n,i),C&&C.m(i,null),w(i,o),w(i,s),E&&E.m(s,null),w(s,u),W&&W.m(s,null),w(i,r),q&&q.m(i,null),V=zt(i,e[29].bind(i)),w(t,P),H&&H.m(t,null),w(t,k),w(t,N),G&&G.m(N,null),w(N,X),w(N,b),L&&L.m(b,null),w(b,T),w(b,_),w(_,c),w(c,g),w(_,Y),w(_,y),ne[D].m(y,null),w(_,ue),w(_,F),w(F,x),w(b,me),J&&J.m(b,null),I=!0,Ne||(Ke=[ce(window,"resize",e[12]),ce(window,"keydown",e[13]),ce(window,"resize",e[26]),ce(c,"click",e[30]),ce(F,"click",e[31])],Ne=!0)},p(f,d){U&&U.p&&(!I||d[0]&16777856)&&ie(U,Se,f,f[24],I?re(Se,f[24],d,sl):oe(f[24]),vt),C&&C.p&&(!I||d[0]&16777856)&&ie(C,v,f,f[24],I?re(v,f[24],d,al):oe(f[24]),gt),f[0]?E&&(Ae(),S(E,1,1,()=>{E=null}),Pe()):E?(E.p(f,d),d[0]&1&&R(E,1)):(E=ht(f),E.c(),R(E,1),E.m(s,u)),Te?Te.p&&(!I||d[0]&16777856)&&ie(Te,Fe,f,f[24],I?re(Fe,f[24],d,nl):oe(f[24]),bt):W&&W.p&&(!I||d[0]&666)&&W.p(f,I?d:[-1,-1]),q&&q.p&&(!I||d[0]&16777856)&&ie(q,Ue,f,f[24],I?re(Ue,f[24],d,ll):oe(f[24]),dt),(!I||d[0]&1024)&&h(i,"style",f[10]),(!I||d[0]&16384&&m!==(m=f[14]["aria-label"]+" 1"))&&h(i,"aria-label",m),H&&H.p&&(!I||d[0]&16777856)&&ie(H,Oe,f,f[24],I?re(Oe,f[24],d,tl):oe(f[24]),mt),G&&G.p&&(!I||d[0]&16777856)&&ie(G,Ce,f,f[24],I?re(Ce,f[24],d,el):oe(f[24]),_t),f[0]?L&&(Ae(),S(L,1,1,()=>{L=null}),Pe()):L?(L.p(f,d),d[0]&1&&R(L,1)):(L=pt(f),L.c(),R(L,1),L.m(b,T)),(!I||d[0]&512)&&fe(g,"arrow-left-disabled",!f[9].hasPrevious),(!I||d[0]&512&&A!==(A=!f[9].hasPrevious))&&(c.disabled=A),(!I||d[0]&8)&&h(c,"aria-label",f[3]);let ae=D;D=ye(f),D===ae?ne[D].p(f,d):(Ae(),S(ne[ae],1,1,()=>{ne[ae]=null}),Pe(),M=ne[D],M?M.p(f,d):(M=ne[D]=Ye[D](f),M.c()),R(M,1),M.m(y,null)),(!I||d[0]&512)&&fe(x,"arrow-right-disabled",!f[9].hasNext),(!I||d[0]&512&&$!==($=!f[9].hasNext))&&(F.disabled=$),(!I||d[0]&16)&&h(F,"aria-label",f[4]),J&&J.p&&(!I||d[0]&16777856)&&ie(J,We,f,f[24],I?re(We,f[24],d,$t):oe(f[24]),ct),(!I||d[0]&32768&&de!==(de=at(`flex ${f[15]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&h(N,"class",de),(!I||d[0]&16384&&be!==(be=f[14]["aria-label"]+" 2"))&&h(N,"aria-label",be)},i(f){I||(R(U,f),R(C,f),R(E),R(W,f),R(q,f),R(H,f),R(G,f),R(L),R(M),R(J,f),I=!0)},o(f){S(U,f),S(C,f),S(E),S(W,f),S(q,f),S(H,f),S(G,f),S(L),S(M),S(J,f),I=!1},d(f){f&&p(t),U&&U.d(f),C&&C.d(f),E&&E.d(),W&&W.d(f),q&&q.d(f),V(),H&&H.d(f),G&&G.d(f),L&&L.d(),ne[D].d(),J&&J.d(f),Ne=!1,wt(Ke)}}}function _l(e,t,n){let l,a,i,o;const s=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating","pageSizeSelectLabel","previousButtonLabel","nextButtonLabel"];let u=st(t,s),r,m=le,V=()=>(m(),m=Mt(a,v=>n(9,r=v)),a),P;It(e,Rt,v=>n(23,P=v)),e.$$.on_destroy.push(()=>m());let{$$slots:k={},$$scope:N}=t;const X=Vt(k);var b;let{items:T}=t,{floatId:_=void 0}=t,{startingIndex:c=0}=t,{currentPageKey:g="page"}=t,{itemsPerPage:A=null}=t,{updating:Y=!1}=t,{pageSizeSelectLabel:y}=t,{previousButtonLabel:D}=t,{nextButtonLabel:M}=t,ue,F,x;Dt(()=>{me(),Number(c)>0&&$()});const $=()=>{De({parameter:g,value:r.currentPage,url:P.url})},me=()=>{var v;_&&n(21,F=(v=document.getElementById(_))===null||v===void 0?void 0:v.clientWidth)};async function de(v){switch(v.code){case"ArrowRight":case"KeyL":r.hasNext&&(a.next(),$());break;case"ArrowLeft":case"KeyH":r.hasPrevious&&(a.previous(),$());break;case"ArrowUp":case"KeyK":a.previousRow();break;case"ArrowDown":case"KeyJ":a.nextRow();break}}function be(){n(5,ue=window.innerWidth)}const I=()=>{a.previous(),$()},Ne=()=>{a.next(),$()};function Ke(){x=this.clientHeight,n(6,x)}const Se=()=>a.previous(),U=()=>a.next();return e.$$set=v=>{t=_e(_e({},t),Be(v)),n(14,u=st(t,s)),"items"in v&&n(16,T=v.items),"floatId"in v&&n(17,_=v.floatId),"startingIndex"in v&&n(18,c=v.startingIndex),"currentPageKey"in v&&n(19,g=v.currentPageKey),"itemsPerPage"in v&&n(0,A=v.itemsPerPage),"updating"in v&&n(1,Y=v.updating),"pageSizeSelectLabel"in v&&n(2,y=v.pageSizeSelectLabel),"previousButtonLabel"in v&&n(3,D=v.previousButtonLabel),"nextButtonLabel"in v&&n(4,M=v.nextButtonLabel),"$$scope"in v&&n(24,N=v.$$scope)},e.$$.update=()=>{e.$$.dirty[0]&8388609&&n(8,l=A!==null?String(A):String(Pt(P.url.searchParams.get(Le))).toString()),e.$$.dirty[0]&8388864&&(parseInt(l,10)>parseInt(ft,10)?De({parameter:Le,value:ft,url:P.url}):je.includes(l)||De({parameter:Le,value:Ee,url:P.url})),e.$$.dirty[0]&327936&&V(n(7,a=yt(T,l,c))),e.$$.dirty[0]&9961984&&n(22,i=n(20,b=P.url.searchParams.get(g))!==null&&b!==void 0?b:r.currentPage),e.$$.dirty[0]&4194432&&a.jumpToPage(i),e.$$.dirty[0]&2097248&&n(10,o=xt({width:F,height:x,screenWidth:ue}))},[A,Y,y,D,M,ue,x,a,l,r,o,$,me,de,u,X,T,_,c,g,b,F,i,P,N,k,be,I,Ne,Ke,Se,U]}class pl extends Ze{constructor(t){super(),Qe(this,t,_l,cl,Xe,{items:16,floatId:17,startingIndex:18,currentPageKey:19,itemsPerPage:0,updating:1,pageSizeSelectLabel:2,previousButtonLabel:3,nextButtonLabel:4},null,[-1,-1])}}export{kt as F,ft as M,pl as P,yt as a,hl as c,Ee as d,je as o,Le as p,De as u}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.332820a7.js b/ui/assets/local/_app/immutable/chunks/paths.332820a7.js new file mode 100644 index 0000000000..143729a000 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.332820a7.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1pigugo)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1pigugo)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.d13b6714.js b/ui/assets/local/_app/immutable/chunks/paths.d13b6714.js deleted file mode 100644 index 2f46a1fd56..0000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.d13b6714.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_1ys2ikf)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1ys2ikf)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.1d9f1daf.js b/ui/assets/local/_app/immutable/chunks/pollers-service.d61f00b6.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pollers-service.1d9f1daf.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.d61f00b6.js index 4780e8a77e..301d34e754 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.1d9f1daf.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.d61f00b6.js @@ -1 +1 @@ -import{S as j,b as z,a as G,m as y,p as v,q as I,k as p,u as T,f as w,z as H,g as d,h as J,j as m,C as O,w as W,D as R,x as B,E as D,L as g,y as K,F as N,G as A,c as P,d as E,P as h,H as S,I as C,J as F}from"./index.6779d4e2.js";import{I as Y}from"./icon.a4e81b70.js";import{t as b}from"./translate.29a4bc43.js";import{r as Q,a as k}from"./route-for-api.c219d4fc.js";const U=r=>({}),L=r=>({}),q=r=>({}),V=r=>({});function M(r){let t,s,a,l;return s=new Y({props:{name:"merge"}}),{c(){t=y("span"),O(s.$$.fragment),a=W(r[2]),this.h()},l(i){t=v(i,"SPAN",{class:!0});var n=I(t);R(s.$$.fragment,n),a=B(n,r[2]),n.forEach(p),this.h()},h(){T(t,"class","version svelte-1b9fh62")},m(i,n){w(i,t,n),D(s,t,null),g(t,a),l=!0},p(i,n){(!l||n&4)&&K(a,i[2])},i(i){l||(m(s.$$.fragment,i),l=!0)},o(i){d(s.$$.fragment,i),l=!1},d(i){i&&p(t),N(s)}}}function X(r){let t,s,a,l,i,n;s=new Y({props:{name:"merge"}});const f=r[4]["overall-default-worker"],e=A(f,r,r[3],V),c=r[4]["default-worker"],u=A(c,r,r[3],L);return{c(){t=y("span"),O(s.$$.fragment),a=W(r[2]),l=P(),e&&e.c(),i=P(),u&&u.c(),this.h()},l(o){t=v(o,"SPAN",{class:!0});var _=I(t);R(s.$$.fragment,_),a=B(_,r[2]),l=E(_),e&&e.l(_),i=E(_),u&&u.l(_),_.forEach(p),this.h()},h(){T(t,"class","svelte-1b9fh62"),h(t,"active-version",r[1]),h(t,"version",!r[1])},m(o,_){w(o,t,_),D(s,t,null),g(t,a),g(t,l),e&&e.m(t,null),g(t,i),u&&u.m(t,null),n=!0},p(o,_){(!n||_&4)&&K(a,o[2]),e&&e.p&&(!n||_&8)&&S(e,f,o,o[3],n?F(f,o[3],_,q):C(o[3]),V),u&&u.p&&(!n||_&8)&&S(u,c,o,o[3],n?F(c,o[3],_,U):C(o[3]),L),(!n||_&2)&&h(t,"active-version",o[1]),(!n||_&2)&&h(t,"version",!o[1])},i(o){n||(m(s.$$.fragment,o),m(e,o),m(u,o),n=!0)},o(o){d(s.$$.fragment,o),d(e,o),d(u,o),n=!1},d(o){o&&p(t),N(s),e&&e.d(o),u&&u.d(o)}}}function Z(r){let t,s,a,l;const i=[X,M],n=[];function f(e,c){return e[0]&&e[2]?0:e[2]?1:-1}return~(s=f(r))&&(a=n[s]=i[s](r)),{c(){t=y("p"),a&&a.c(),this.h()},l(e){t=v(e,"P",{class:!0});var c=I(t);a&&a.l(c),c.forEach(p),this.h()},h(){T(t,"class","flex select-all gap-2 font-mono")},m(e,c){w(e,t,c),~s&&n[s].m(t,null),l=!0},p(e,[c]){let u=s;s=f(e),s===u?~s&&n[s].p(e,c):(a&&(H(),d(n[u],1,1,()=>{n[u]=null}),J()),~s?(a=n[s],a?a.p(e,c):(a=n[s]=i[s](e),a.c()),m(a,1),a.m(t,null)):a=null)},i(e){l||(m(a),l=!0)},o(e){d(a),l=!1},d(e){e&&p(t),~s&&n[s].d()}}}function $(r,t,s){let{$$slots:a={},$$scope:l}=t,{defaultVersion:i=!1}=t,{active:n=!1}=t,{buildId:f=""}=t;return r.$$set=e=>{"defaultVersion"in e&&s(0,i=e.defaultVersion),"active"in e&&s(1,n=e.active),"buildId"in e&&s(2,f=e.buildId),"$$scope"in e&&s(3,l=e.$$scope)},[i,n,f,l,a]}class ne extends j{constructor(t){super(),z(this,t,$,Z,G,{defaultVersion:0,active:1,buildId:2})}}async function re(r,t=fetch){const s=Q("task-queue",r),a=await k(s,{request:t,params:{taskQueueType:"1"}}),l=await k(s,{request:t,params:{taskQueueType:"2"}});l.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(c,u)=>{const o=c[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return c[u.identity]={lastAccessTime:!o.lastAccessTime||o.lastAccessTimea.pollers.some(c=>{if(e.identity===c.identity)return e.taskQueueTypes=[...c.taskQueueTypes,...e.taskQueueTypes],e})),l.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=l.pollers.length?l.pollers:a.pollers,f=l.pollers.length?l.taskQueueStatus:a.taskQueueStatus;return{pollers:n,taskQueueStatus:f}}async function le(r,t=fetch){const s=Q("task-queue.compatibility",r);return k(s,{request:t,onError:a=>console.error(a)})}async function oe(r,t=fetch){const{namespace:s,buildIds:a,taskQueue:l}=r,i=Q("worker-task-reachability",{namespace:s}),n=new URLSearchParams;if(a.length)for(const f of a)n.append("buildIds",f);else n.append("buildIds",""),n.append("taskQueues",l);return await k(i,{request:t,params:n,onError:f=>(console.error(f),{buildIdReachability:[]})})}function x(r){return!r||!r.length?b("workers","ready-to-be-retired"):r.length===1&&r.includes("CLOSED")?b("maybe"):b("no")}function ie(r,t,s){var n,f;const a=(n=r==null?void 0:r.buildIdReachability)==null?void 0:n.find(e=>e.buildId===s);if(!a)return"";const l=(f=a==null?void 0:a.taskQueueReachability)==null?void 0:f.find(e=>(e==null?void 0:e.taskQueue)===t);if(!l)return"";const i=l==null?void 0:l.reachability;return x(i)}export{ne as C,le as a,oe as b,ie as c,re as g}; +import{S as j,b as z,a as G,m as y,p as v,q as I,k as p,u as T,f as w,z as H,g as d,h as J,j as m,C as O,w as W,D as R,x as B,E as D,L as g,y as K,F as N,G as A,c as P,d as E,P as h,H as S,I as C,J as F}from"./index.6779d4e2.js";import{I as Y}from"./icon.a4e81b70.js";import{t as b}from"./translate.29a4bc43.js";import{r as Q,a as k}from"./route-for-api.4d253eb1.js";const U=r=>({}),L=r=>({}),q=r=>({}),V=r=>({});function M(r){let t,s,a,l;return s=new Y({props:{name:"merge"}}),{c(){t=y("span"),O(s.$$.fragment),a=W(r[2]),this.h()},l(i){t=v(i,"SPAN",{class:!0});var n=I(t);R(s.$$.fragment,n),a=B(n,r[2]),n.forEach(p),this.h()},h(){T(t,"class","version svelte-1b9fh62")},m(i,n){w(i,t,n),D(s,t,null),g(t,a),l=!0},p(i,n){(!l||n&4)&&K(a,i[2])},i(i){l||(m(s.$$.fragment,i),l=!0)},o(i){d(s.$$.fragment,i),l=!1},d(i){i&&p(t),N(s)}}}function X(r){let t,s,a,l,i,n;s=new Y({props:{name:"merge"}});const f=r[4]["overall-default-worker"],e=A(f,r,r[3],V),c=r[4]["default-worker"],u=A(c,r,r[3],L);return{c(){t=y("span"),O(s.$$.fragment),a=W(r[2]),l=P(),e&&e.c(),i=P(),u&&u.c(),this.h()},l(o){t=v(o,"SPAN",{class:!0});var _=I(t);R(s.$$.fragment,_),a=B(_,r[2]),l=E(_),e&&e.l(_),i=E(_),u&&u.l(_),_.forEach(p),this.h()},h(){T(t,"class","svelte-1b9fh62"),h(t,"active-version",r[1]),h(t,"version",!r[1])},m(o,_){w(o,t,_),D(s,t,null),g(t,a),g(t,l),e&&e.m(t,null),g(t,i),u&&u.m(t,null),n=!0},p(o,_){(!n||_&4)&&K(a,o[2]),e&&e.p&&(!n||_&8)&&S(e,f,o,o[3],n?F(f,o[3],_,q):C(o[3]),V),u&&u.p&&(!n||_&8)&&S(u,c,o,o[3],n?F(c,o[3],_,U):C(o[3]),L),(!n||_&2)&&h(t,"active-version",o[1]),(!n||_&2)&&h(t,"version",!o[1])},i(o){n||(m(s.$$.fragment,o),m(e,o),m(u,o),n=!0)},o(o){d(s.$$.fragment,o),d(e,o),d(u,o),n=!1},d(o){o&&p(t),N(s),e&&e.d(o),u&&u.d(o)}}}function Z(r){let t,s,a,l;const i=[X,M],n=[];function f(e,c){return e[0]&&e[2]?0:e[2]?1:-1}return~(s=f(r))&&(a=n[s]=i[s](r)),{c(){t=y("p"),a&&a.c(),this.h()},l(e){t=v(e,"P",{class:!0});var c=I(t);a&&a.l(c),c.forEach(p),this.h()},h(){T(t,"class","flex select-all gap-2 font-mono")},m(e,c){w(e,t,c),~s&&n[s].m(t,null),l=!0},p(e,[c]){let u=s;s=f(e),s===u?~s&&n[s].p(e,c):(a&&(H(),d(n[u],1,1,()=>{n[u]=null}),J()),~s?(a=n[s],a?a.p(e,c):(a=n[s]=i[s](e),a.c()),m(a,1),a.m(t,null)):a=null)},i(e){l||(m(a),l=!0)},o(e){d(a),l=!1},d(e){e&&p(t),~s&&n[s].d()}}}function $(r,t,s){let{$$slots:a={},$$scope:l}=t,{defaultVersion:i=!1}=t,{active:n=!1}=t,{buildId:f=""}=t;return r.$$set=e=>{"defaultVersion"in e&&s(0,i=e.defaultVersion),"active"in e&&s(1,n=e.active),"buildId"in e&&s(2,f=e.buildId),"$$scope"in e&&s(3,l=e.$$scope)},[i,n,f,l,a]}class ne extends j{constructor(t){super(),z(this,t,$,Z,G,{defaultVersion:0,active:1,buildId:2})}}async function re(r,t=fetch){const s=Q("task-queue",r),a=await k(s,{request:t,params:{taskQueueType:"1"}}),l=await k(s,{request:t,params:{taskQueueType:"2"}});l.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(c,u)=>{const o=c[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return c[u.identity]={lastAccessTime:!o.lastAccessTime||o.lastAccessTimea.pollers.some(c=>{if(e.identity===c.identity)return e.taskQueueTypes=[...c.taskQueueTypes,...e.taskQueueTypes],e})),l.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=l.pollers.length?l.pollers:a.pollers,f=l.pollers.length?l.taskQueueStatus:a.taskQueueStatus;return{pollers:n,taskQueueStatus:f}}async function le(r,t=fetch){const s=Q("task-queue.compatibility",r);return k(s,{request:t,onError:a=>console.error(a)})}async function oe(r,t=fetch){const{namespace:s,buildIds:a,taskQueue:l}=r,i=Q("worker-task-reachability",{namespace:s}),n=new URLSearchParams;if(a.length)for(const f of a)n.append("buildIds",f);else n.append("buildIds",""),n.append("taskQueues",l);return await k(i,{request:t,params:n,onError:f=>(console.error(f),{buildIdReachability:[]})})}function x(r){return!r||!r.length?b("workers","ready-to-be-retired"):r.length===1&&r.includes("CLOSED")?b("maybe"):b("no")}function ie(r,t,s){var n,f;const a=(n=r==null?void 0:r.buildIdReachability)==null?void 0:n.find(e=>e.buildId===s);if(!a)return"";const l=(f=a==null?void 0:a.taskQueueReachability)==null?void 0:f.find(e=>(e==null?void 0:e.taskQueue)===t);if(!l)return"";const i=l==null?void 0:l.reachability;return x(i)}export{ne as C,le as a,oe as b,ie as c,re as g}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.a85dd707.js b/ui/assets/local/_app/immutable/chunks/query-service.9e1c6e1c.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/query-service.a85dd707.js rename to ui/assets/local/_app/immutable/chunks/query-service.9e1c6e1c.js index 41119b59ac..4e62707c13 100644 --- a/ui/assets/local/_app/immutable/chunks/query-service.a85dd707.js +++ b/ui/assets/local/_app/immutable/chunks/query-service.9e1c6e1c.js @@ -1 +1 @@ -import{p as f}from"./data-encoder-config.37ceca8b.js";import{c as m,a as l}from"./decode-payload.727281ed.js";import{g as h,a as T}from"./get-codec.658caf67.js";import{h as _}from"./has.f5323580.js";import{s as d,p as g}from"./parse-with-big-int.0036a80a.js";import{r as A,a as I,e as b}from"./route-for-api.c219d4fc.js";const P=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},O=async(t,e)=>(e=await e,{namespace:t,workflowId:e.id,runId:e.runId});async function u({workflow:t,namespace:e,queryType:r},a=fetch,s){t=await t;const o=await O(e,t),n=A("query",o);return await I(n,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:s,notifyOnError:!1})}async function Q(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,s=>{b(s.body)&&s.body.message.includes("@@temporal-internal__list")?r(P(s.body.message)):a(s)})})}async function W(t,e,r,a=fetch){return u(t,a).then(async s=>{const{queryResult:o}=s??{queryResult:{payloads:[]}};let n=o.payloads;try{if(n[0]){const c=h(e),y=T(e,f),p={...e,codec:{...e==null?void 0:e.codec,endpoint:c,passAccessToken:y}},i=c?await m({attributes:o,namespace:t.namespace,settings:p,accessToken:r}):await l(o);_(i,"payloads")&&Array.isArray(i.payloads)&&(n=i.payloads[0])}return g(n)}catch{return typeof n!="string"?d(n):n}})}async function v(t,e,r){return W({...t,queryType:"__stack_trace"},e,r)}export{W as a,v as b,Q as g}; +import{p as f}from"./data-encoder-config.37ceca8b.js";import{c as m,a as l}from"./decode-payload.4c64ec1f.js";import{g as h,a as T}from"./get-codec.658caf67.js";import{h as _}from"./has.f5323580.js";import{s as d,p as g}from"./parse-with-big-int.0036a80a.js";import{r as A,a as I,e as b}from"./route-for-api.4d253eb1.js";const P=t=>{const e=t.indexOf("["),r=t.indexOf("]");return t.slice(e+1,r).split(" ").filter(a=>a!=="__stack_trace").map(a=>a.endsWith(",")?a.slice(0,a.length-1):a)},O=async(t,e)=>(e=await e,{namespace:t,workflowId:e.id,runId:e.runId});async function u({workflow:t,namespace:e,queryType:r},a=fetch,s){t=await t;const o=await O(e,t),n=A("query",o);return await I(n,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:s,notifyOnError:!1})}async function Q(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,s=>{b(s.body)&&s.body.message.includes("@@temporal-internal__list")?r(P(s.body.message)):a(s)})})}async function W(t,e,r,a=fetch){return u(t,a).then(async s=>{const{queryResult:o}=s??{queryResult:{payloads:[]}};let n=o.payloads;try{if(n[0]){const c=h(e),y=T(e,f),p={...e,codec:{...e==null?void 0:e.codec,endpoint:c,passAccessToken:y}},i=c?await m({attributes:o,namespace:t.namespace,settings:p,accessToken:r}):await l(o);_(i,"payloads")&&Array.isArray(i.payloads)&&(n=i.payloads[0])}return g(n)}catch{return typeof n!="string"?d(n):n}})}async function v(t,e,r){return W({...t,queryType:"__stack_trace"},e,r)}export{W as a,v as b,Q as g}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.c219d4fc.js b/ui/assets/local/_app/immutable/chunks/route-for-api.4d253eb1.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for-api.c219d4fc.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.4d253eb1.js index 9db9015bba..1985c8c7cd 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.c219d4fc.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.4d253eb1.js @@ -1 +1 @@ -import{B as w,f as $,t as q}from"./route-for.cec09c4c.js";import{g}from"./auth-user.6f15fe0f.js";import{w as x}from"./index.1302fd9b.js";import{t as C}from"./toaster.ef510498.js";import{h as y}from"./has.f5323580.js";import{i as R}from"./is-network-error.900fb374.js";import{i as F}from"./persist-store.d8264c86.js";import{ac as P}from"./index.6779d4e2.js";import{b as O}from"./paths.d13b6714.js";import{p as W}from"./stores.6ee4c480.js";function S(c=w){const n="",o=!n.startsWith("http");let i="";return o?i=c?window.location.origin+n:"":i=n,i.endsWith("/")&&(i=i.slice(0,-1)),i}const N=x(null),_=(c,n=C,o=N,i=w)=>{throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),v(c)&&i&&window.location.assign($(c==null?void 0:c.message)),e(c)&&i&&window.location.assign($(c==null?void 0:c.message)),R(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c)),c},cn=(c,n=w)=>{var i;const o=`${c==null?void 0:c.status} ${(i=c==null?void 0:c.body)==null?void 0:i.message}`;if(v(c)&&n){window.location.assign($(o));return}if(e(c)&&n){window.location.assign($(o));return}},v=c=>T(c,401),e=c=>T(c,403),T=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",sn=async(c,n={})=>{const{params:o={},request:i=fetch,token:u,notifyOnError:l=!0,handleError:f=_,onError:k,isBrowser:I=w}=n;let{options:t}=n,h=new URLSearchParams;if(o!=null&&o.entries)h=o,u&&h.set("nextPageToken",u);else{const s=u?{next_page_token:u}:{};h=new URLSearchParams({...o,...s})}const U=q(c,h);try{t=z(t,I),t=await L(t,I);const s=await i(U,t),d=await s.json(),{status:E,statusText:A}=s;if(!s.ok)if(k&&F(k))k({status:E,statusText:A,body:d});else throw{statusCode:s.status,statusText:s.statusText,response:s,message:(d==null?void 0:d.message)??s.statusText};return d}catch(s){if(l)f(s);else throw s}},z=(c,n=w)=>{const o={credentials:"include",...c};return o.headers=H(c==null?void 0:c.headers,n),o},L=async(c,n=w)=>(g().accessToken?(c.headers=await b(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=B(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),b=async(c,n,o=w)=>{if(c||(c={}),!o)return c;try{const i=await n();i&&(c.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return c},B=(c={},n,o=w)=>(o&&n&&(c["Authorization-Extras"]=n),c),H=(c,n=w)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const o="_csrf=",i="X-CSRF-TOKEN";try{let l=document.cookie.split(";").find(f=>f.includes(o));l&&!c[i]&&(l=l.trim().slice(o.length),c[i]=l)}catch(u){console.error(u)}return c},K=(c,n)=>c?c.replace("%namespace%",n):"",X=c=>{var l,f;let n="";const o=(l=P(W).data)==null?void 0:l.webUrl,i=o&&c,u=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return i?n=o:u?(console.warn("Using fallback api url, web url not found"),n=K(globalThis.AppConfig.apiUrl,c)):n=S(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${O}`,n},D=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),G=(c,n)=>`${X(n)}${c}`,J=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function M(c,n,o=!0){o&&(n=J(n));const i={cluster:"/cluster","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events/reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/query`,"schedule.delete":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/compatibility`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/signal`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/workflows/archived`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflows/count`,"activity.complete":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/activities/${n.activityId}/complete`,"activity.fail":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/activities/${n.activityId}/fail`,"batch-operations":`/namespaces/${n.namespace}/batch-operations`,"batch-operation.describe":`/namespaces/${n.namespace}/batch-operations/describe`};return D(i[c])}function un(c,n,o=!0){const i=M(c,n,o);return G(i,n==null?void 0:n.namespace)}export{sn as a,X as b,cn as c,e as d,on as e,S as g,_ as h,v as i,N as n,M as p,un as r}; +import{B as w,f as $,t as q}from"./route-for.31ffa191.js";import{g}from"./auth-user.6f15fe0f.js";import{w as x}from"./index.1302fd9b.js";import{t as C}from"./toaster.ef510498.js";import{h as y}from"./has.f5323580.js";import{i as R}from"./is-network-error.900fb374.js";import{i as F}from"./persist-store.d8264c86.js";import{ac as P}from"./index.6779d4e2.js";import{b as O}from"./paths.332820a7.js";import{p as W}from"./stores.b96d31b2.js";function S(c=w){const n="",o=!n.startsWith("http");let i="";return o?i=c?window.location.origin+n:"":i=n,i.endsWith("/")&&(i=i.slice(0,-1)),i}const N=x(null),_=(c,n=C,o=N,i=w)=>{throw typeof c=="string"?n.push({variant:"error",message:c}):c.report=!1,c instanceof Error&&n.push({variant:"error",message:c.message}),v(c)&&i&&window.location.assign($(c==null?void 0:c.message)),e(c)&&i&&window.location.assign($(c==null?void 0:c.message)),R(c)&&(n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c)),c},cn=(c,n=w)=>{var i;const o=`${c==null?void 0:c.status} ${(i=c==null?void 0:c.body)==null?void 0:i.message}`;if(v(c)&&n){window.location.assign($(o));return}if(e(c)&&n){window.location.assign($(o));return}},v=c=>T(c,401),e=c=>T(c,403),T=(c,n)=>y(c,"statusCode")?c.statusCode===n:y(c,"status")?c.status===n:!1,on=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",sn=async(c,n={})=>{const{params:o={},request:i=fetch,token:u,notifyOnError:l=!0,handleError:f=_,onError:k,isBrowser:I=w}=n;let{options:t}=n,h=new URLSearchParams;if(o!=null&&o.entries)h=o,u&&h.set("nextPageToken",u);else{const s=u?{next_page_token:u}:{};h=new URLSearchParams({...o,...s})}const U=q(c,h);try{t=z(t,I),t=await L(t,I);const s=await i(U,t),d=await s.json(),{status:E,statusText:A}=s;if(!s.ok)if(k&&F(k))k({status:E,statusText:A,body:d});else throw{statusCode:s.status,statusText:s.statusText,response:s,message:(d==null?void 0:d.message)??s.statusText};return d}catch(s){if(l)f(s);else throw s}},z=(c,n=w)=>{const o={credentials:"include",...c};return o.headers=H(c==null?void 0:c.headers,n),o},L=async(c,n=w)=>(g().accessToken?(c.headers=await b(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=B(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await b(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),b=async(c,n,o=w)=>{if(c||(c={}),!o)return c;try{const i=await n();i&&(c.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return c},B=(c={},n,o=w)=>(o&&n&&(c["Authorization-Extras"]=n),c),H=(c,n=w)=>{if(c||(c={}),c["Caller-Type"]="operator",!n)return c;const o="_csrf=",i="X-CSRF-TOKEN";try{let l=document.cookie.split(";").find(f=>f.includes(o));l&&!c[i]&&(l=l.trim().slice(o.length),c[i]=l)}catch(u){console.error(u)}return c},K=(c,n)=>c?c.replace("%namespace%",n):"",X=c=>{var l,f;let n="";const o=(l=P(W).data)==null?void 0:l.webUrl,i=o&&c,u=((f=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:f.apiUrl)&&c;return i?n=o:u?(console.warn("Using fallback api url, web url not found"),n=K(globalThis.AppConfig.apiUrl,c)):n=S(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${O}`,n},D=c=>(c.startsWith("/")&&(c=c.slice(1)),`/api/v1/${c}`),G=(c,n)=>`${X(n)}${c}`,J=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function M(c,n,o=!0){o&&(n=J(n));const i={cluster:"/cluster","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events/reverse`,namespaces:"/namespaces",namespace:`/namespaces/${n==null?void 0:n.namespace}`,query:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/query`,"schedule.delete":`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,schedule:`/namespaces/${n==null?void 0:n.namespace}/schedules/${n==null?void 0:n.scheduleId}`,schedules:`/namespaces/${n==null?void 0:n.namespace}/schedules`,"search-attributes":`/namespaces/${n.namespace}/search-attributes`,settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,"task-queue.compatibility":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}/compatibility`,user:"/me","worker-task-reachability":`/namespaces/${n==null?void 0:n.namespace}/worker-task-reachability`,"workflow.terminate":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/terminate`,"workflow.cancel":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/cancel`,"workflow.signal":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/signal`,"workflow.reset":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/reset`,workflow:`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}`,"workflows.archived":`/namespaces/${n==null?void 0:n.namespace}/workflows/archived`,workflows:`/namespaces/${n==null?void 0:n.namespace}/workflows`,"workflows.count":`/namespaces/${n==null?void 0:n.namespace}/workflows/count`,"activity.complete":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/activities/${n.activityId}/complete`,"activity.fail":`/namespaces/${n.namespace}/workflows/${n.workflowId}/runs/${n.runId}/activities/${n.activityId}/fail`,"batch-operations":`/namespaces/${n.namespace}/batch-operations`,"batch-operation.describe":`/namespaces/${n.namespace}/batch-operations/describe`};return D(i[c])}function un(c,n,o=!0){const i=M(c,n,o);return G(i,n==null?void 0:n.namespace)}export{sn as a,X as b,cn as c,e as d,on as e,S as g,_ as h,v as i,N as n,M as p,un as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.cec09c4c.js b/ui/assets/local/_app/immutable/chunks/route-for.31ffa191.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for.cec09c4c.js rename to ui/assets/local/_app/immutable/chunks/route-for.31ffa191.js index 2731f42594..c369e89a97 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.cec09c4c.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.31ffa191.js @@ -1 +1 @@ -import{b as o}from"./paths.d13b6714.js";const $=!0;function c(e){return e&&e.replace(/%/g,"%25").replace(/,/g,"%2C").replace(/\//g,"%2F").replace(/\\/g,"%5C").replace(/\?/g,"%3F").replace(/:/g,"%3A").replace(/@/g,"%40").replace(/&/g,"%26").replace(/=/g,"%3D").replace(/\+/g,"%2B").replace(/\$/g,"%24").replace(/#/g,"%23")}function m(e){return e&&e.replace(/%2C/g,",").replace(/%2F/g,"/").replace(/%5C/g,"\\").replace(/%3F/g,"?").replace(/%3A/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%24/g,"$").replace(/%23/g,"#").replace(/%25/g,"%")}const h=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e},d=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,w=()=>`${o}/select-namespace`,F=e=>`${u(e)}/workflows`,S=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const a=c(e);return`${F(t)}/${a}/${r}`},l=e=>`${u(e)}/schedules`,P=({namespace:e})=>`${l({namespace:e})}/create`,U=({scheduleId:e,namespace:r})=>{const t=c(e);return`${l({namespace:r})}/${t}`},k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${l({namespace:r})}/${t}/edit`},v=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return h(`${t}`,e)},R=e=>`${s(e)}/workers`,y=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},L=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,B=e=>`${s(e)}/pending-activities`,W=e=>{const{settings:r,searchParams:t,originUrl:a}=e,n=new URL(`${o}/auth/sso`,r.baseUrl);let i=r.auth.options??[];return i=[...i,"returnUrl"],i.forEach(g=>{if(!t)return;const p=t.get(g);p&&n.searchParams.set(g,p)}),!n.searchParams.get("returnUrl")&&a&&n.searchParams.set("returnUrl",a),n.toString()},q=(e="",r=$)=>{if(r){const t=new URL(`${o}/login`,window.location.origin);return t.searchParams.set("returnUrl",window.location.href),e&&t.searchParams.set("error",e),t.toString()}return`${o}/login`},A=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`,C=({namespace:e})=>`${o}/namespaces/${e}/batch-operations`,E=({namespace:e,jobId:r})=>`${o}/namespaces/${e}/batch-operations/${r}`;export{$ as B,S as a,d as b,l as c,C as d,A as e,q as f,v as g,R as h,B as i,L as j,b as k,m as l,w as m,y as n,u as o,E as p,U as q,F as r,P as s,h as t,k as u,W as v}; +import{b as o}from"./paths.332820a7.js";const $=!0;function c(e){return e&&e.replace(/%/g,"%25").replace(/,/g,"%2C").replace(/\//g,"%2F").replace(/\\/g,"%5C").replace(/\?/g,"%3F").replace(/:/g,"%3A").replace(/@/g,"%40").replace(/&/g,"%26").replace(/=/g,"%3D").replace(/\+/g,"%2B").replace(/\$/g,"%24").replace(/#/g,"%23")}function m(e){return e&&e.replace(/%2C/g,",").replace(/%2F/g,"/").replace(/%5C/g,"\\").replace(/%3F/g,"?").replace(/%3A/g,":").replace(/%40/g,"@").replace(/%26/g,"&").replace(/%3D/g,"=").replace(/%2B/g,"+").replace(/%24/g,"$").replace(/%23/g,"#").replace(/%25/g,"%")}const h=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e},d=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,w=()=>`${o}/select-namespace`,F=e=>`${u(e)}/workflows`,S=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const a=c(e);return`${F(t)}/${a}/${r}`},l=e=>`${u(e)}/schedules`,P=({namespace:e})=>`${l({namespace:e})}/create`,U=({scheduleId:e,namespace:r})=>{const t=c(e);return`${l({namespace:r})}/${t}`},k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${l({namespace:r})}/${t}/edit`},v=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return h(`${t}`,e)},R=e=>`${s(e)}/workers`,y=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},L=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,B=e=>`${s(e)}/pending-activities`,W=e=>{const{settings:r,searchParams:t,originUrl:a}=e,n=new URL(`${o}/auth/sso`,r.baseUrl);let i=r.auth.options??[];return i=[...i,"returnUrl"],i.forEach(g=>{if(!t)return;const p=t.get(g);p&&n.searchParams.set(g,p)}),!n.searchParams.get("returnUrl")&&a&&n.searchParams.set("returnUrl",a),n.toString()},q=(e="",r=$)=>{if(r){const t=new URL(`${o}/login`,window.location.origin);return t.searchParams.set("returnUrl",window.location.href),e&&t.searchParams.set("error",e),t.toString()}return`${o}/login`},A=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`,C=({namespace:e})=>`${o}/namespaces/${e}/batch-operations`,E=({namespace:e,jobId:r})=>`${o}/namespaces/${e}/batch-operations/${r}`;export{$ as B,S as a,d as b,l as c,C as d,A as e,q as f,v as g,R as h,B as i,L as j,b as k,m as l,w as m,y as n,u as o,E as p,U as q,F as r,P as s,h as t,k as u,W as v}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.e87776d2.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.0bfcac0a.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.e87776d2.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.0bfcac0a.js index f3b7f5a267..0243977987 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.e87776d2.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.0bfcac0a.js @@ -1 +1 @@ -import{S as Me,b as Se,a as We,G as Dt,N as et,m as W,p as V,q as T,k as _,O as ft,P as De,f as K,H as Mt,I as St,J as Wt,R as Ct,j as M,g as C,T as ot,af as Ht,K as je,U as Pt,u as Q,L as h,n as pe,a7 as Je,w as Y,x,Q as Xe,ag as Ye,c as H,d as P,A as j,Z as z,C as L,D as A,E as N,_ as G,F as U,z as tt,h as nt,a6 as Lt,a5 as dt,y as At}from"./index.6779d4e2.js";import{p as Vt}from"./stores.6ee4c480.js";import{I as Ie}from"./input.86f6e192.js";import{c as Nt,T as Ut,a as Bt,b as Ke}from"./tab.9e7175ff.js";import{t as q}from"./translate.29a4bc43.js";import{m as ct,g as Ze,w as ht}from"./calendar.81d1e381.js";import{I as qt}from"./icon.a4e81b70.js";import{T as Qt,a as _t}from"./toggle-buttons.1411130f.js";import{S as Ft}from"./schedule-service.80743cbe.js";import{S as Kt,O as Ge}from"./option.3359f258.js";import{A as Rt}from"./alert.dcbef44a.js";import{B as mt}from"./button.0b50a4b4.js";import{L as jt}from"./link.8030aa06.js";import{L as zt}from"./loading.a6f9064e.js";import{e as xe,l as Gt}from"./schedules.72d75a40.js";import{q as Jt,c as Zt}from"./route-for.cec09c4c.js";function Xt(n){let e,t;const l=n[7].default,i=Dt(l,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=m)),f(a),n.$$set=m=>{e=et(et({},e),Pt(m)),t(4,r=ot(e,i)),"id"in m&&t(0,a=m.id),"tabId"in m&&t(1,d=m.tabId),"$$scope"in m&&t(6,u=m.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===a)},[a,d,l,c,r,o,u,s]}class Re extends Me{constructor(e){super(),Se(this,e,Yt,Xt,We,{id:0,tabId:1})}}function gt(n,e,t){const l=n.slice();return l[4]=e[t],l}function pt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[4],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-c8o885"),De(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&3&&De(e,"active",n[0].includes(n[4]))},d(s){s&&_(e),i=!1,r()}}}function xt(n){let e,t,l=n[1],i=[];for(let r=0;ru+1);let{daysOfMonth:i}=e;const r=(s,u)=>{s.metaKey?i.includes(u)?i.filter(a=>a!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>r(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,r,o]}class tn extends Me{constructor(e){super(),Se(this,e,en,xt,We,{daysOfMonth:0})}}function vt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function bt(n){let e,t=n[3]+"",l,i,r,o;function s(...u){return n[2](n[4],...u)}return{c(){e=W("button"),l=Y(t),i=H(),this.h()},l(u){e=V(u,"BUTTON",{class:!0});var a=T(e);l=x(a,t),i=P(a),a.forEach(_),this.h()},h(){Q(e,"class","cell svelte-hc9i32"),De(e,"active",n[0].includes(n[4]))},m(u,a){K(u,e,a),h(e,l),h(e,i),r||(o=Xe(e,"click",Ye(s)),r=!0)},p(u,a){n=u,a&1&&De(e,"active",n[0].includes(n[4]))},d(u){u&&_(e),r=!1,o()}}}function nn(n){let e,t=ct,l=[];for(let i=0;i{o.metaKey&&s!=="*"?(l.includes("*")&&t(0,l=l.filter(u=>u!=="*")),l.includes(s)?t(0,l=l.filter(u=>u!==s)):t(0,l=[...l,s])):t(0,l=[s])},r=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,r]}class sn extends Me{constructor(e){super(),Se(this,e,ln,nn,We,{months:0})}}function un(n){let e=q("ante-meridiem")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function an(n){let e=q("post-meridiem")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function rn(n){let e,t,l,i;return e=new _t({props:{active:n[2]==="AM",$$slots:{default:[un]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new _t({props:{active:n[2]==="PM",$$slots:{default:[an]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment)},l(r){A(e.$$.fragment,r),t=P(r),A(l.$$.fragment,r)},m(r,o){N(e,r,o),K(r,t,o),N(l,r,o),i=!0},p(r,o){const s={};o&4&&(s.active=r[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:r}),e.$set(s);const u={};o&4&&(u.active=r[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:r}),l.$set(u)},i(r){i||(M(e.$$.fragment,r),M(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){U(e,r),r&&_(t),U(l,r)}}}function fn(n){let e,t,l=q("schedules","time-view-heading")+"",i,r,o,s=q("schedules","time-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z=q("based-on-time-preface")+"",ie,ue,ee;function ae(p){n[5](p)}let de={id:"hour-time",label:q("hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("hours-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(de.value=n[1]),c=new Ie({props:de}),j.push(()=>z(c,"value",ae));function he(p){n[6](p)}let re={id:"minute-time",label:q("minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(re.value=n[0]),B=new Ie({props:re}),j.push(()=>z(B,"value",he)),D=new Qt({props:{$$slots:{default:[rn]},$$scope:{ctx:n}}}),F=new qt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Y(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),se=H(),X=W("div"),L(F.$$.fragment),ne=H(),S=W("span"),ie=Y(Z),ue=Y(" Universal Standard Time (UTC)"),this.h()},l(p){e=V(p,"DIV",{class:!0});var te=T(e);t=V(te,"H3",{class:!0});var _e=T(t);i=x(_e,l),_e.forEach(_),r=P(te),o=V(te,"P",{});var fe=T(o);u=x(fe,s),fe.forEach(_),a=P(te),d=V(te,"DIV",{class:!0});var oe=T(d);f=V(oe,"DIV",{class:!0});var Oe=T(f);A(c.$$.fragment,Oe),Oe.forEach(_),g=P(oe),b=V(oe,"DIV",{});var Ee=T(b);y=x(Ee,":"),Ee.forEach(_),w=P(oe),I=V(oe,"DIV",{class:!0});var me=T(I);A(B.$$.fragment,me),me.forEach(_),k=P(oe),$=V(oe,"DIV",{class:!0});var ge=T($);A(D.$$.fragment,ge),ge.forEach(_),oe.forEach(_),se=P(te),X=V(te,"DIV",{class:!0});var ke=T(X);A(F.$$.fragment,ke),ne=P(ke),S=V(ke,"SPAN",{class:!0});var ye=T(S);ie=x(ye,Z),ue=x(ye," Universal Standard Time (UTC)"),ye.forEach(_),ke.forEach(_),te.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q($,"class","ml-2"),Q(d,"class","flex flex-row items-center gap-2"),Q(S,"class","text-xs font-normal text-gray-500"),Q(X,"class","flex w-full flex-row items-center gap-2"),Q(e,"class","flex flex-col gap-4")},m(p,te){K(p,e,te),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),N(D,$,null),h(e,se),h(e,X),N(F,X,null),h(X,ne),h(X,S),h(S,ie),h(S,ue),ee=!0},p(p,[te]){const _e={};te&2&&(_e.error=p[3](p[1],12)),!m&&te&2&&(m=!0,_e.value=p[1],G(()=>m=!1)),c.$set(_e);const fe={};te&1&&(fe.error=p[3](p[0],59)),!J&&te&1&&(J=!0,fe.value=p[0],G(()=>J=!1)),B.$set(fe);const oe={};te&516&&(oe.$$scope={dirty:te,ctx:p}),D.$set(oe)},i(p){ee||(M(c.$$.fragment,p),M(B.$$.fragment,p),M(D.$$.fragment,p),M(F.$$.fragment,p),ee=!0)},o(p){C(c.$$.fragment,p),C(B.$$.fragment,p),C(D.$$.fragment,p),C(F.$$.fragment,p),ee=!1},d(p){p&&_(e),U(c),U(B),U(D),U(F)}}}function on(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,r="",o="AM";const s=(c,m)=>c?isNaN(parseInt(c))||parseInt(c)>m:!1;function u(c){r=c,t(1,r)}function a(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),f=()=>t(2,o="PM");return n.$$set=c=>{"hour"in c&&t(4,l=c.hour),"minute"in c&&t(0,i=c.minute)},n.$$.update=()=>{n.$$.dirty&6&&(r?r==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(r)+12).toString()):t(4,l=r):t(4,l=""))},[i,r,o,s,l,u,a,d,f]}class Tt extends Me{constructor(e){super(),Se(this,e,on,fn,We,{hour:4,minute:0})}}function dn(n){let e,t,l=q("schedules","recurring-dates-heading")+"",i,r,o,s=q("schedules","recurring-dates-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J;function k(S){n[4](S)}let $={};n[0]!==void 0&&($.daysOfMonth=n[0]),f=new tn({props:$}),j.push(()=>z(f,"daysOfMonth",k));function D(S){n[5](S)}let se={};n[1]!==void 0&&(se.months=n[1]),g=new sn({props:se}),j.push(()=>z(g,"months",D));function X(S){n[6](S)}function F(S){n[7](S)}let ne={};return n[2]!==void 0&&(ne.hour=n[2]),n[3]!==void 0&&(ne.minute=n[3]),w=new Tt({props:ne}),j.push(()=>z(w,"hour",X)),j.push(()=>z(w,"minute",F)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),L(f.$$.fragment),m=H(),L(g.$$.fragment),y=H(),L(w.$$.fragment),this.h()},l(S){e=V(S,"DIV",{class:!0});var Z=T(e);t=V(Z,"H3",{class:!0});var ie=T(t);i=x(ie,l),ie.forEach(_),r=P(Z),o=V(Z,"P",{});var ue=T(o);u=x(ue,s),ue.forEach(_),a=P(Z),d=V(Z,"DIV",{class:!0});var ee=T(d);A(f.$$.fragment,ee),m=P(ee),A(g.$$.fragment,ee),ee.forEach(_),Z.forEach(_),y=P(S),A(w.$$.fragment,S),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(d,"class","flex w-full flex-col gap-4"),Q(e,"class","my-2 flex flex-col gap-4")},m(S,Z){K(S,e,Z),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),N(f,d,null),h(d,m),N(g,d,null),K(S,y,Z),N(w,S,Z),J=!0},p(S,[Z]){const ie={};!c&&Z&1&&(c=!0,ie.daysOfMonth=S[0],G(()=>c=!1)),f.$set(ie);const ue={};!b&&Z&2&&(b=!0,ue.months=S[1],G(()=>b=!1)),g.$set(ue);const ee={};!I&&Z&4&&(I=!0,ee.hour=S[2],G(()=>I=!1)),!B&&Z&8&&(B=!0,ee.minute=S[3],G(()=>B=!1)),w.$set(ee)},i(S){J||(M(f.$$.fragment,S),M(g.$$.fragment,S),M(w.$$.fragment,S),J=!0)},o(S){C(f.$$.fragment,S),C(g.$$.fragment,S),C(w.$$.fragment,S),J=!1},d(S){S&&_(e),U(f),U(g),S&&_(y),U(w,S)}}}function cn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:r}=e,{minute:o}=e;function s(f){l=f,t(0,l)}function u(f){i=f,t(1,i)}function a(f){r=f,t(2,r)}function d(f){o=f,t(3,o)}return n.$$set=f=>{"daysOfMonth"in f&&t(0,l=f.daysOfMonth),"months"in f&&t(1,i=f.months),"hour"in f&&t(2,r=f.hour),"minute"in f&&t(3,o=f.minute)},[l,i,r,o,s,u,a,d]}class hn extends Me{constructor(e){super(),Se(this,e,cn,dn,We,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function wt(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function kt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[2](n[5],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function It(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[5],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function _n(n){let e,t,l,i,r=Ze,o=[];for(let a=0;a{s.metaKey?(Ze.find(a=>a.value===u)?t(0,l=[u]):l.find(a=>Ze.find(d=>d.value===a))&&t(0,l=[u]),l.includes(u)?l.filter(a=>a!==u):t(0,l=[...l,u])):t(0,l=[u])},r=(s,u)=>i(u,s),o=(s,u)=>i(u,s);return n.$$set=s=>{"daysOfWeek"in s&&t(0,l=s.daysOfWeek)},[l,i,r,o]}class gn extends Me{constructor(e){super(),Se(this,e,mn,_n,We,{daysOfWeek:0})}}function pn(n){let e,t,l=q("schedules","recurring-days-heading")+"",i,r,o,s=q("schedules","recurring-days-description")+"",u,a,d,f,c,m,g,b,y;function w($){n[3]($)}let I={};n[0]!==void 0&&(I.daysOfWeek=n[0]),d=new gn({props:I}),j.push(()=>z(d,"daysOfWeek",w));function B($){n[4]($)}function J($){n[5]($)}let k={};return n[1]!==void 0&&(k.hour=n[1]),n[2]!==void 0&&(k.minute=n[2]),m=new Tt({props:k}),j.push(()=>z(m,"hour",B)),j.push(()=>z(m,"minute",J)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),L(d.$$.fragment),c=H(),L(m.$$.fragment),this.h()},l($){e=V($,"DIV",{class:!0});var D=T(e);t=V(D,"H3",{class:!0});var se=T(t);i=x(se,l),se.forEach(_),r=P(D),o=V(D,"P",{});var X=T(o);u=x(X,s),X.forEach(_),a=P(D),A(d.$$.fragment,D),D.forEach(_),c=P($),A(m.$$.fragment,$),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex flex-col gap-4")},m($,D){K($,e,D),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),K($,c,D),N(m,$,D),y=!0},p($,[D]){const se={};!f&&D&1&&(f=!0,se.daysOfWeek=$[0],G(()=>f=!1)),d.$set(se);const X={};!g&&D&2&&(g=!0,X.hour=$[1],G(()=>g=!1)),!b&&D&4&&(b=!0,X.minute=$[2],G(()=>b=!1)),m.$set(X)},i($){y||(M(d.$$.fragment,$),M(m.$$.fragment,$),y=!0)},o($){C(d.$$.fragment,$),C(m.$$.fragment,$),y=!1},d($){$&&_(e),U(d),$&&_(c),U(m,$)}}}function vn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:r}=e;function o(a){l=a,t(0,l)}function s(a){i=a,t(1,i)}function u(a){r=a,t(2,r)}return n.$$set=a=>{"daysOfWeek"in a&&t(0,l=a.daysOfWeek),"hour"in a&&t(1,i=a.hour),"minute"in a&&t(2,r=a.minute)},[l,i,r,o,s,u]}class bn extends Me{constructor(e){super(),Se(this,e,vn,pn,We,{daysOfWeek:0,hour:1,minute:2})}}function $n(n){let e=q("days")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function wn(n){let e=q("hours-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function kn(n){let e=q("minutes-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function In(n){let e=q("seconds-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function On(n){let e,t,l,i,r,o,s,u;return e=new Ge({props:{value:"days",$$slots:{default:[$n]},$$scope:{ctx:n}}}),l=new Ge({props:{value:"hrs",$$slots:{default:[wn]},$$scope:{ctx:n}}}),r=new Ge({props:{value:"min",$$slots:{default:[kn]},$$scope:{ctx:n}}}),s=new Ge({props:{value:"sec",$$slots:{default:[In]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment),i=H(),L(r.$$.fragment),o=H(),L(s.$$.fragment)},l(a){A(e.$$.fragment,a),t=P(a),A(l.$$.fragment,a),i=P(a),A(r.$$.fragment,a),o=P(a),A(s.$$.fragment,a)},m(a,d){N(e,a,d),K(a,t,d),N(l,a,d),K(a,i,d),N(r,a,d),K(a,o,d),N(s,a,d),u=!0},p(a,d){const f={};d&16384&&(f.$$scope={dirty:d,ctx:a}),e.$set(f);const c={};d&16384&&(c.$$scope={dirty:d,ctx:a}),l.$set(c);const m={};d&16384&&(m.$$scope={dirty:d,ctx:a}),r.$set(m);const g={};d&16384&&(g.$$scope={dirty:d,ctx:a}),s.$set(g)},i(a){u||(M(e.$$.fragment,a),M(l.$$.fragment,a),M(r.$$.fragment,a),M(s.$$.fragment,a),u=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(s.$$.fragment,a),u=!1},d(a){U(e,a),a&&_(t),U(l,a),a&&_(i),U(r,a),a&&_(o),U(s,a)}}}function yn(n){let e,t,l=q("schedules","interval-view-heading")+"",i,r,o,s=q("schedules","interval-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re,p=q("schedules","offset-heading")+"",te,_e,fe,oe=q("schedules","offset-description")+"",Oe,Ee,me,ge,ke,ye,$e,Pe,Ce;function Qe(E){n[8](E)}let Le={id:"days",label:q("days"),labelHidden:!0,placeholder:"00",suffix:q("days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Le.value=n[0]),c=new Ie({props:Le}),j.push(()=>z(c,"value",Qe));function Fe(E){n[9](E)}let ve={id:"hour-interval",label:q("hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(ve.value=n[1]),B=new Ie({props:ve}),j.push(()=>z(B,"value",Fe));function v(E){n[10](E)}let R={id:"minute-interval",label:q("minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(R.value=n[2]),F=new Ie({props:R}),j.push(()=>z(F,"value",v));function Ve(E){n[11](E)}let O={id:"second",label:q("seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(O.value=n[3]),ae=new Ie({props:O}),j.push(()=>z(ae,"value",Ve));function be(E){n[12](E)}let we={id:"phase",label:q("schedules","offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(we.value=n[5]),ge=new Ie({props:we}),j.push(()=>z(ge,"value",be));function He(E){n[13](E)}let Te={label:q("schedules","offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[On]},$$scope:{ctx:n}};return n[6]!==void 0&&(Te.value=n[6]),$e=new Kt({props:Te}),j.push(()=>z($e,"value",He)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Y(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),D=Y(":"),se=H(),X=W("div"),L(F.$$.fragment),S=H(),Z=W("div"),ie=Y(":"),ue=H(),ee=W("div"),L(ae.$$.fragment),he=H(),re=W("h3"),te=Y(p),_e=H(),fe=W("p"),Oe=Y(oe),Ee=H(),me=W("div"),L(ge.$$.fragment),ye=H(),L($e.$$.fragment),this.h()},l(E){e=V(E,"DIV",{class:!0});var le=T(e);t=V(le,"H3",{class:!0});var Ae=T(t);i=x(Ae,l),Ae.forEach(_),r=P(le),o=V(le,"P",{});var Ne=T(o);u=x(Ne,s),Ne.forEach(_),a=P(le),d=V(le,"DIV",{class:!0});var ce=T(d);f=V(ce,"DIV",{class:!0});var Ue=T(f);A(c.$$.fragment,Ue),Ue.forEach(_),g=P(ce),b=V(ce,"DIV",{});var Be=T(b);y=x(Be,":"),Be.forEach(_),w=P(ce),I=V(ce,"DIV",{class:!0});var qe=T(I);A(B.$$.fragment,qe),qe.forEach(_),k=P(ce),$=V(ce,"DIV",{});var lt=T($);D=x(lt,":"),lt.forEach(_),se=P(ce),X=V(ce,"DIV",{class:!0});var st=T(X);A(F.$$.fragment,st),st.forEach(_),S=P(ce),Z=V(ce,"DIV",{});var it=T(Z);ie=x(it,":"),it.forEach(_),ue=P(ce),ee=V(ce,"DIV",{class:!0});var ut=T(ee);A(ae.$$.fragment,ut),ut.forEach(_),ce.forEach(_),he=P(le),re=V(le,"H3",{class:!0});var at=T(re);te=x(at,p),at.forEach(_),_e=P(le),fe=V(le,"P",{});var rt=T(fe);Oe=x(rt,oe),rt.forEach(_),Ee=P(le),me=V(le,"DIV",{class:!0});var ze=T(me);A(ge.$$.fragment,ze),ye=P(ze),A($e.$$.fragment,ze),ze.forEach(_),le.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q(X,"class","w-24"),Q(ee,"class","w-24"),Q(d,"class","flex flex-row items-center gap-2"),Q(re,"class","mt-4 text-lg font-medium"),Q(me,"class","flex w-48 gap-0"),Q(e,"class","my-2 flex flex-col gap-4")},m(E,le){K(E,e,le),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),h($,D),h(d,se),h(d,X),N(F,X,null),h(d,S),h(d,Z),h(Z,ie),h(d,ue),h(d,ee),N(ae,ee,null),h(e,he),h(e,re),h(re,te),h(e,_e),h(e,fe),h(fe,Oe),h(e,Ee),h(e,me),N(ge,me,null),h(me,ye),N($e,me,null),Ce=!0},p(E,[le]){const Ae={};le&1&&(Ae.error=E[7](E[0])),!m&&le&1&&(m=!0,Ae.value=E[0],G(()=>m=!1)),c.$set(Ae);const Ne={};le&2&&(Ne.error=E[7](E[1])),!J&&le&2&&(J=!0,Ne.value=E[1],G(()=>J=!1)),B.$set(Ne);const ce={};le&4&&(ce.error=E[7](E[2])),!ne&&le&4&&(ne=!0,ce.value=E[2],G(()=>ne=!1)),F.$set(ce);const Ue={};le&8&&(Ue.error=E[7](E[3])),!de&&le&8&&(de=!0,Ue.value=E[3],G(()=>de=!1)),ae.$set(Ue);const Be={};le&16&&(Be.error=E[7](E[4])),!ke&&le&32&&(ke=!0,Be.value=E[5],G(()=>ke=!1)),ge.$set(Be);const qe={};le&16384&&(qe.$$scope={dirty:le,ctx:E}),!Pe&&le&64&&(Pe=!0,qe.value=E[6],G(()=>Pe=!1)),$e.$set(qe)},i(E){Ce||(M(c.$$.fragment,E),M(B.$$.fragment,E),M(F.$$.fragment,E),M(ae.$$.fragment,E),M(ge.$$.fragment,E),M($e.$$.fragment,E),Ce=!0)},o(E){C(c.$$.fragment,E),C(B.$$.fragment,E),C(F.$$.fragment,E),C(ae.$$.fragment,E),C(ge.$$.fragment,E),C($e.$$.fragment,E),Ce=!1},d(E){E&&_(e),U(c),U(B),U(F),U(ae),U(ge),U($e)}}}function En(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:r=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",a="min";const d=w=>w?isNaN(parseInt(w)):!1;function f(w){l=w,t(0,l)}function c(w){i=w,t(1,i)}function m(w){r=w,t(2,r)}function g(w){o=w,t(3,o)}function b(w){u=w,t(5,u)}function y(w){a=w,t(6,a)}return n.$$set=w=>{"days"in w&&t(0,l=w.days),"hour"in w&&t(1,i=w.hour),"minute"in w&&t(2,r=w.minute),"second"in w&&t(3,o=w.second),"phase"in w&&t(4,s=w.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(a==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):a==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):a==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):a==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,r,o,s,u,a,d,f,c,m,g,b,y]}class Dn extends Me{constructor(e){super(),Se(this,e,En,yn,We,{days:0,hour:1,minute:2,second:3,phase:4})}}const Mn=n=>({preset:n[0]&1024}),Ot=n=>({preset:n[10]});function yt(n){let e,t;return e=new Ke({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1024&&(r.onClick=l[12]),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Sn(n){let e,t,l,i,r,o,s,u,a,d=n[9]&&yt(n);return t=new Ke({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Ke({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Ke({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Ke({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=H(),L(t.$$.fragment),l=H(),L(i.$$.fragment),r=H(),L(o.$$.fragment),s=H(),L(u.$$.fragment)},l(f){d&&d.l(f),e=P(f),A(t.$$.fragment,f),l=P(f),A(i.$$.fragment,f),r=P(f),A(o.$$.fragment,f),s=P(f),A(u.$$.fragment,f)},m(f,c){d&&d.m(f,c),K(f,e,c),N(t,f,c),K(f,l,c),N(i,f,c),K(f,r,c),N(o,f,c),K(f,s,c),N(u,f,c),a=!0},p(f,c){f[9]?d?(d.p(f,c),c[0]&512&&M(d,1)):(d=yt(f),d.c(),M(d,1),d.m(e.parentNode,e)):d&&(tt(),C(d,1,1,()=>{d=null}),nt());const m={};c[0]&1024&&(m.onClick=f[13]),t.$set(m);const g={};c[0]&1024&&(g.onClick=f[14]),i.$set(g);const b={};c[0]&1024&&(b.onClick=f[15]),o.$set(b);const y={};c[0]&1024&&(y.onClick=f[16]),u.$set(y)},i(f){a||(M(d),M(t.$$.fragment,f),M(i.$$.fragment,f),M(o.$$.fragment,f),M(u.$$.fragment,f),a=!0)},o(f){C(d),C(t.$$.fragment,f),C(i.$$.fragment,f),C(o.$$.fragment,f),C(u.$$.fragment,f),a=!1},d(f){d&&d.d(f),f&&_(e),U(t,f),f&&_(l),U(i,f),f&&_(r),U(o,f),f&&_(s),U(u,f)}}}function Et(n){let e,t;return e=new Re({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Wn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073742336&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n){var l,i,r,o,s,u;let e,t;return e=new Ft({props:{calendar:(r=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:r[0],interval:(u=(s=(o=n[9])==null?void 0:o.spec)==null?void 0:s.interval)==null?void 0:u[0]}}),{c(){L(e.$$.fragment)},l(a){A(e.$$.fragment,a)},m(a,d){N(e,a,d),t=!0},p(a,d){var c,m,g,b,y,w;const f={};d[0]&512&&(f.calendar=(g=(m=(c=a[9])==null?void 0:c.spec)==null?void 0:m.structuredCalendar)==null?void 0:g[0]),d[0]&512&&(f.interval=(w=(y=(b=a[9])==null?void 0:b.spec)==null?void 0:y.interval)==null?void 0:w[0]),e.$set(f)},i(a){t||(M(e.$$.fragment,a),t=!0)},o(a){C(e.$$.fragment,a),t=!1},d(a){U(e,a)}}}function Vn(n){let e,t,l,i,r,o,s;function u(g){n[17](g)}function a(g){n[18](g)}function d(g){n[19](g)}function f(g){n[20](g)}function c(g){n[21](g)}let m={};return n[3]!==void 0&&(m.days=n[3]),n[4]!==void 0&&(m.hour=n[4]),n[5]!==void 0&&(m.minute=n[5]),n[6]!==void 0&&(m.second=n[6]),n[7]!==void 0&&(m.phase=n[7]),e=new Dn({props:m}),j.push(()=>z(e,"days",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),j.push(()=>z(e,"second",f)),j.push(()=>z(e,"phase",c)),{c(){L(e.$$.fragment)},l(g){A(e.$$.fragment,g)},m(g,b){N(e,g,b),s=!0},p(g,b){const y={};!t&&b[0]&8&&(t=!0,y.days=g[3],G(()=>t=!1)),!l&&b[0]&16&&(l=!0,y.hour=g[4],G(()=>l=!1)),!i&&b[0]&32&&(i=!0,y.minute=g[5],G(()=>i=!1)),!r&&b[0]&64&&(r=!0,y.second=g[6],G(()=>r=!1)),!o&&b[0]&128&&(o=!0,y.phase=g[7],G(()=>o=!1)),e.$set(y)},i(g){s||(M(e.$$.fragment,g),s=!0)},o(g){C(e.$$.fragment,g),s=!1},d(g){U(e,g)}}}function Tn(n){let e,t,l,i,r;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let a={};return n[0]!==void 0&&(a.daysOfWeek=n[0]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new bn({props:a}),j.push(()=>z(e,"daysOfWeek",o)),j.push(()=>z(e,"hour",s)),j.push(()=>z(e,"minute",u)),{c(){L(e.$$.fragment)},l(d){A(e.$$.fragment,d)},m(d,f){N(e,d,f),r=!0},p(d,f){const c={};!t&&f[0]&1&&(t=!0,c.daysOfWeek=d[0],G(()=>t=!1)),!l&&f[0]&16&&(l=!0,c.hour=d[4],G(()=>l=!1)),!i&&f[0]&32&&(i=!0,c.minute=d[5],G(()=>i=!1)),e.$set(c)},i(d){r||(M(e.$$.fragment,d),r=!0)},o(d){C(e.$$.fragment,d),r=!1},d(d){U(e,d)}}}function Cn(n){let e,t,l,i,r,o;function s(c){n[25](c)}function u(c){n[26](c)}function a(c){n[27](c)}function d(c){n[28](c)}let f={};return n[1]!==void 0&&(f.daysOfMonth=n[1]),n[2]!==void 0&&(f.months=n[2]),n[4]!==void 0&&(f.hour=n[4]),n[5]!==void 0&&(f.minute=n[5]),e=new hn({props:f}),j.push(()=>z(e,"daysOfMonth",s)),j.push(()=>z(e,"months",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),{c(){L(e.$$.fragment)},l(c){A(e.$$.fragment,c)},m(c,m){N(e,c,m),o=!0},p(c,m){const g={};!t&&m[0]&2&&(t=!0,g.daysOfMonth=c[1],G(()=>t=!1)),!l&&m[0]&4&&(l=!0,g.months=c[2],G(()=>l=!1)),!i&&m[0]&16&&(i=!0,g.hour=c[4],G(()=>i=!1)),!r&&m[0]&32&&(r=!0,g.minute=c[5],G(()=>r=!1)),e.$set(g)},i(c){o||(M(e.$$.fragment,c),o=!0)},o(c){C(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Hn(n){let e,t,l=q("schedules","cron-view-title")+"",i,r,o,s=q("schedules","cron-view-description")+"",u,a,d,f,c;function m(b){n[29](b)}let g={label:q("schedules","cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(g.value=n[8]),d=new Ie({props:g}),j.push(()=>z(d,"value",m)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),L(d.$$.fragment),this.h()},l(b){e=V(b,"DIV",{class:!0});var y=T(e);t=V(y,"H3",{class:!0});var w=T(t);i=x(w,l),w.forEach(_),r=P(y),o=V(y,"P",{});var I=T(o);u=x(I,s),I.forEach(_),a=P(y),A(d.$$.fragment,y),y.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex w-full flex-col gap-4")},m(b,y){K(b,e,y),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),c=!0},p(b,y){const w={};!f&&y[0]&256&&(f=!0,w.value=b[8],G(()=>f=!1)),d.$set(w)},i(b){c||(M(d.$$.fragment,b),c=!0)},o(b){C(d.$$.fragment,b),c=!1},d(b){b&&_(e),U(d)}}}function Pn(n){let e,t=q("schedules","schedule-spec")+"",l,i,r,o,s,u,a,d,f,c,m,g,b,y,w;r=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Sn]},$$scope:{ctx:n}}});let I=n[9]&&Et(n);a=new Re({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Vn]},$$scope:{ctx:n}}}),f=new Re({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),m=new Re({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),b=new Re({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Hn]},$$scope:{ctx:n}}});const B=n[11].default,J=Dt(B,n,n[30],Ot);return{c(){e=W("h2"),l=Y(t),i=H(),L(r.$$.fragment),o=H(),s=W("div"),I&&I.c(),u=H(),L(a.$$.fragment),d=H(),L(f.$$.fragment),c=H(),L(m.$$.fragment),g=H(),L(b.$$.fragment),y=H(),J&&J.c(),this.h()},l(k){e=V(k,"H2",{class:!0});var $=T(e);l=x($,t),$.forEach(_),i=P(k),A(r.$$.fragment,k),o=P(k),s=V(k,"DIV",{class:!0});var D=T(s);I&&I.l(D),u=P(D),A(a.$$.fragment,D),d=P(D),A(f.$$.fragment,D),c=P(D),A(m.$$.fragment,D),g=P(D),A(b.$$.fragment,D),D.forEach(_),y=P(k),J&&J.l(k),this.h()},h(){Q(e,"class","mb-4 text-2xl"),Q(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(k,$){K(k,e,$),h(e,l),K(k,i,$),N(r,k,$),K(k,o,$),K(k,s,$),I&&I.m(s,null),h(s,u),N(a,s,null),h(s,d),N(f,s,null),h(s,c),N(m,s,null),h(s,g),N(b,s,null),K(k,y,$),J&&J.m(k,$),w=!0},p(k,$){const D={};$[0]&1073743360&&(D.$$scope={dirty:$,ctx:k}),r.$set(D),k[9]?I?(I.p(k,$),$[0]&512&&M(I,1)):(I=Et(k),I.c(),M(I,1),I.m(s,u)):I&&(tt(),C(I,1,1,()=>{I=null}),nt());const se={};$[0]&1073742072&&(se.$$scope={dirty:$,ctx:k}),a.$set(se);const X={};$[0]&1073741873&&(X.$$scope={dirty:$,ctx:k}),f.$set(X);const F={};$[0]&1073741878&&(F.$$scope={dirty:$,ctx:k}),m.$set(F);const ne={};$[0]&1073742080&&(ne.$$scope={dirty:$,ctx:k}),b.$set(ne),J&&J.p&&(!w||$[0]&1073742848)&&Mt(J,B,k,k[30],w?Wt(B,k[30],$,Mn):St(k[30]),Ot)},i(k){w||(M(r.$$.fragment,k),M(I),M(a.$$.fragment,k),M(f.$$.fragment,k),M(m.$$.fragment,k),M(b.$$.fragment,k),M(J,k),w=!0)},o(k){C(r.$$.fragment,k),C(I),C(a.$$.fragment,k),C(f.$$.fragment,k),C(m.$$.fragment,k),C(b.$$.fragment,k),C(J,k),w=!1},d(k){k&&_(e),k&&_(i),U(r,k),k&&_(o),k&&_(s),I&&I.d(),U(a),U(f),U(m),U(b),k&&_(y),J&&J.d(k)}}}function Ln(n){let e,t;return e=new Ut({props:{class:"mt-8 w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073743871&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function An(n,e,t){let l;je(n,Vt,p=>t(31,l=p));let{$$slots:i={},$$scope:r}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:a}=e,{daysOfMonth:d}=e,{months:f}=e,{days:c}=e,{hour:m}=e,{minute:g}=e,{second:b}=e,{phase:y}=e,{cronString:w}=e;const I=()=>{t(0,a=[]),t(1,d=[]),t(2,f=[]),t(3,c=""),t(4,m=""),t(5,g=""),t(6,b=""),t(7,y=""),t(8,w="")},B=()=>t(10,s="existing"),J=()=>t(10,s="interval"),k=()=>t(10,s="week"),$=()=>t(10,s="month"),D=()=>t(10,s="string");function se(p){c=p,t(3,c)}function X(p){m=p,t(4,m)}function F(p){g=p,t(5,g)}function ne(p){b=p,t(6,b)}function S(p){y=p,t(7,y)}function Z(p){a=p,t(0,a)}function ie(p){m=p,t(4,m)}function ue(p){g=p,t(5,g)}function ee(p){d=p,t(1,d)}function ae(p){f=p,t(2,f)}function de(p){m=p,t(4,m)}function he(p){g=p,t(5,g)}function re(p){w=p,t(8,w)}return n.$$set=p=>{"schedule"in p&&t(9,u=p.schedule),"daysOfWeek"in p&&t(0,a=p.daysOfWeek),"daysOfMonth"in p&&t(1,d=p.daysOfMonth),"months"in p&&t(2,f=p.months),"days"in p&&t(3,c=p.days),"hour"in p&&t(4,m=p.hour),"minute"in p&&t(5,g=p.minute),"second"in p&&t(6,b=p.second),"phase"in p&&t(7,y=p.phase),"cronString"in p&&t(8,w=p.cronString),"$$scope"in p&&t(30,r=p.$$scope)},I(),[a,d,f,c,m,g,b,y,w,u,s,i,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re,r]}class Nn extends Me{constructor(e){super(),Se(this,e,An,Ln,We,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Un(n){let e,t,l,i,r,o,s,u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re;t=new jt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[qn]},$$scope:{ctx:n}}}),u=new Rt({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Qn]},$$scope:{ctx:n}}});function p(v){n[28](v)}let te={id:"name",label:q("schedules","name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(te.value=n[1]),f=new Ie({props:te}),j.push(()=>z(f,"value",p)),f.$on("input",n[25]),f.$on("blur",n[26]);function _e(v){n[29](v)}let fe={id:"workflowType",label:q("schedules","workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(fe.value=n[2]),b=new Ie({props:fe}),j.push(()=>z(b,"value",_e)),b.$on("input",n[25]),b.$on("blur",n[26]);function oe(v){n[30](v)}let Oe={id:"workflowId",label:q("schedules","workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(Oe.value=n[3]),B=new Ie({props:Oe}),j.push(()=>z(B,"value",oe)),B.$on("input",n[25]),B.$on("blur",n[26]);function Ee(v){n[31](v)}let me={id:"taskQueue",label:q("schedules","task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(me.value=n[4]),D=new Ie({props:me}),j.push(()=>z(D,"value",Ee)),D.$on("input",n[25]),D.$on("blur",n[26]);function ge(v){n[33](v)}function ke(v){n[34](v)}function ye(v){n[35](v)}function $e(v){n[36](v)}function Pe(v){n[37](v)}function Ce(v){n[38](v)}function Qe(v){n[39](v)}function Le(v){n[40](v)}function Fe(v){n[41](v)}let ve={schedule:n[0],$$slots:{default:[Rn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ve.daysOfWeek=n[5]),n[6]!==void 0&&(ve.daysOfMonth=n[6]),n[7]!==void 0&&(ve.months=n[7]),n[8]!==void 0&&(ve.days=n[8]),n[9]!==void 0&&(ve.hour=n[9]),n[10]!==void 0&&(ve.minute=n[10]),n[11]!==void 0&&(ve.second=n[11]),n[14]!==void 0&&(ve.phase=n[14]),n[12]!==void 0&&(ve.cronString=n[12]),F=new Nn({props:ve}),j.push(()=>z(F,"daysOfWeek",ge)),j.push(()=>z(F,"daysOfMonth",ke)),j.push(()=>z(F,"months",ye)),j.push(()=>z(F,"days",$e)),j.push(()=>z(F,"hour",Pe)),j.push(()=>z(F,"minute",Ce)),j.push(()=>z(F,"second",Qe)),j.push(()=>z(F,"phase",Le)),j.push(()=>z(F,"cronString",Fe)),{c(){e=W("header"),L(t.$$.fragment),l=H(),i=W("h1"),r=Y(n[19]),o=H(),s=W("form"),L(u.$$.fragment),a=H(),d=W("div"),L(f.$$.fragment),m=H(),g=W("div"),L(b.$$.fragment),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),X=H(),L(F.$$.fragment),this.h()},l(v){e=V(v,"HEADER",{class:!0});var R=T(e);A(t.$$.fragment,R),l=P(R),i=V(R,"H1",{class:!0});var Ve=T(i);r=x(Ve,n[19]),Ve.forEach(_),R.forEach(_),o=P(v),s=V(v,"FORM",{class:!0});var O=T(s);A(u.$$.fragment,O),a=P(O),d=V(O,"DIV",{class:!0});var be=T(d);A(f.$$.fragment,be),be.forEach(_),m=P(O),g=V(O,"DIV",{class:!0});var we=T(g);A(b.$$.fragment,we),we.forEach(_),w=P(O),I=V(O,"DIV",{class:!0});var He=T(I);A(B.$$.fragment,He),He.forEach(_),k=P(O),$=V(O,"DIV",{class:!0});var Te=T($);A(D.$$.fragment,Te),Te.forEach(_),X=P(O),A(F.$$.fragment,O),O.forEach(_),this.h()},h(){Q(i,"class","font-base text-2xl"),Q(e,"class","mb-12 flex flex-col gap-1"),Q(d,"class","w-full"),Q(g,"class","w-full"),Q(I,"class","w-full"),Q($,"class","w-full"),Q(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,R){K(v,e,R),N(t,e,null),h(e,l),h(e,i),h(i,r),K(v,o,R),K(v,s,R),N(u,s,null),h(s,a),h(s,d),N(f,d,null),h(s,m),h(s,g),N(b,g,null),h(s,w),h(s,I),N(B,I,null),h(s,k),h(s,$),N(D,$,null),h(s,X),N(F,s,null),re=!0},p(v,R){const Ve={};R[1]&33554432&&(Ve.$$scope={dirty:R,ctx:v}),t.$set(Ve);const O={};R[0]&65536&&(O.hidden=!v[16]),R[0]&65536|R[1]&33554432&&(O.$$scope={dirty:R,ctx:v}),u.$set(O);const be={};R[0]&8192&&(be.error=v[13].name),!c&&R[0]&2&&(c=!0,be.value=v[1],G(()=>c=!1)),f.$set(be);const we={};R[0]&8192&&(we.error=v[13].workflowType),!y&&R[0]&4&&(y=!0,we.value=v[2],G(()=>y=!1)),b.$set(we);const He={};R[0]&8192&&(He.error=v[13].workflowId),!J&&R[0]&8&&(J=!0,He.value=v[3],G(()=>J=!1)),B.$set(He);const Te={};R[0]&8192&&(Te.error=v[13].taskQueue),!se&&R[0]&16&&(se=!0,Te.value=v[4],G(()=>se=!1)),D.$set(Te);const E={};R[0]&1&&(E.schedule=v[0]),R[0]&32769|R[1]&50331648&&(E.$$scope={dirty:R,ctx:v}),!ne&&R[0]&32&&(ne=!0,E.daysOfWeek=v[5],G(()=>ne=!1)),!S&&R[0]&64&&(S=!0,E.daysOfMonth=v[6],G(()=>S=!1)),!Z&&R[0]&128&&(Z=!0,E.months=v[7],G(()=>Z=!1)),!ie&&R[0]&256&&(ie=!0,E.days=v[8],G(()=>ie=!1)),!ue&&R[0]&512&&(ue=!0,E.hour=v[9],G(()=>ue=!1)),!ee&&R[0]&1024&&(ee=!0,E.minute=v[10],G(()=>ee=!1)),!ae&&R[0]&2048&&(ae=!0,E.second=v[11],G(()=>ae=!1)),!de&&R[0]&16384&&(de=!0,E.phase=v[14],G(()=>de=!1)),!he&&R[0]&4096&&(he=!0,E.cronString=v[12],G(()=>he=!1)),F.$set(E)},i(v){re||(M(t.$$.fragment,v),M(u.$$.fragment,v),M(f.$$.fragment,v),M(b.$$.fragment,v),M(B.$$.fragment,v),M(D.$$.fragment,v),M(F.$$.fragment,v),re=!0)},o(v){C(t.$$.fragment,v),C(u.$$.fragment,v),C(f.$$.fragment,v),C(b.$$.fragment,v),C(B.$$.fragment,v),C(D.$$.fragment,v),C(F.$$.fragment,v),re=!1},d(v){v&&_(e),U(t),v&&_(o),v&&_(s),U(u),U(f),U(b),U(B),U(D),U(F)}}}function Bn(n){let e,t;return e=new zt({props:{title:n[20]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:pe,i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function qn(n){let e;return{c(){e=Y(n[21])},l(t){e=x(t,n[21])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Qn(n){let e;return{c(){e=Y(n[16])},l(t){e=x(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&At(e,t[16])},d(t){t&&_(e)}}}function Fn(n){let e;return{c(){e=Y(n[23])},l(t){e=x(t,n[23])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Kn(n){let e=q("cancel")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function Rn(n){let e,t,l,i,r;function o(){return n[32](n[55])}return t=new mt({props:{disabled:n[15](n[55]),$$slots:{default:[Fn]},$$scope:{ctx:n}}}),t.$on("click",o),i=new mt({props:{variant:"ghost",href:n[22],$$slots:{default:[Kn]},$$scope:{ctx:n}}}),{c(){e=W("div"),L(t.$$.fragment),l=H(),L(i.$$.fragment),this.h()},l(s){e=V(s,"DIV",{class:!0});var u=T(e);A(t.$$.fragment,u),l=P(u),A(i.$$.fragment,u),u.forEach(_),this.h()},h(){Q(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),h(e,l),N(i,e,null),r=!0},p(s,u){n=s;const a={};u[0]&32768|u[1]&16777216&&(a.disabled=n[15](n[55])),u[1]&33554432&&(a.$$scope={dirty:u,ctx:n}),t.$set(a);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){r||(M(t.$$.fragment,s),M(i.$$.fragment,s),r=!0)},o(s){C(t.$$.fragment,s),C(i.$$.fragment,s),r=!1},d(s){s&&_(e),U(t),U(i)}}}function jn(n){let e,t,l,i;const r=[Bn,Un],o=[];function s(u,a){return u[17]?0:1}return t=s(n),l=o[t]=r[t](n),{c(){e=W("div"),l.c(),this.h()},l(u){e=V(u,"DIV",{class:!0});var a=T(e);l.l(a),a.forEach(_),this.h()},h(){Q(e,"class","pb-20")},m(u,a){K(u,e,a),o[t].m(e,null),i=!0},p(u,a){let d=t;t=s(u),t===d?o[t].p(u,a):(tt(),C(o[d],1,1,()=>{o[d]=null}),nt(),l=o[t],l?l.p(u,a):(l=o[t]=r[t](u),l.c()),M(l,1),l.m(e,null))},i(u){i||(M(l),i=!0)},o(u){C(l),i=!1},d(u){u&&_(e),o[t].d()}}}function zn(n,e,t){let l,i,r,o;je(n,xe,O=>t(16,i=O)),je(n,Vt,O=>t(53,r=O)),je(n,Gt,O=>t(17,o=O));var s,u,a,d,f,c,m,g,b,y,w;let{schedule:I=null}=e,{onConfirm:B}=e,J=r.params.namespace,k=r.params.schedule,$=q("schedules",I?"edit":"create"),D=q("schedules",I?"editing":"creating"),se=q("schedules",I?"back-to-schedule":"back-to-schedules"),X=I?Jt({namespace:J,scheduleId:k}):Zt({namespace:J}),F=I?q("save"):q("schedules","create"),ne={},S=k??"",Z=(d=(a=(u=(s=I==null?void 0:I.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||a===void 0?void 0:a.name)!==null&&d!==void 0?d:"",ie=(m=(c=(f=I==null?void 0:I.action)===null||f===void 0?void 0:f.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&m!==void 0?m:"",ue=(w=(y=(b=(g=I==null?void 0:I.action)===null||g===void 0?void 0:g.startWorkflow)===null||b===void 0?void 0:b.taskQueue)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"",ee=[],ae=[],de=[],he="",re="",p="",te="",_e="",fe="";const oe=(O,be)=>{B(O,{name:S,workflowType:Z,workflowId:ie,taskQueue:ue,hour:re,minute:p,second:te,phase:_e,cronString:fe,daysOfWeek:ee,daysOfMonth:ae,days:he,months:de},be)},Oe=O=>{const{id:be}=O.target;t(13,ne[be]=!1,ne),i&&dt(xe,i="",i)},Ee=O=>{const{value:be,id:we}=O.target;be.trim()?t(13,ne[we]=!1,ne):t(13,ne[we]=!0,ne)};Lt(()=>dt(xe,i="",i));function me(O){S=O,t(1,S)}function ge(O){Z=O,t(2,Z)}function ke(O){ie=O,t(3,ie)}function ye(O){ue=O,t(4,ue)}const $e=O=>oe(O,I);function Pe(O){ee=O,t(5,ee)}function Ce(O){ae=O,t(6,ae)}function Qe(O){de=O,t(7,de)}function Le(O){he=O,t(8,he)}function Fe(O){re=O,t(9,re)}function ve(O){p=O,t(10,p)}function v(O){te=O,t(11,te)}function R(O){_e=O,t(14,_e)}function Ve(O){fe=O,t(12,fe)}return n.$$set=O=>{"schedule"in O&&t(0,I=O.schedule),"onConfirm"in O&&t(27,B=O.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=O=>!S||!Z||!ie||!ue?!0:O==="interval"?!he&&!re&&!p&&!te:O==="week"?!ee.length:O==="month"?!ae.length||!de.length:O==="string"?!fe:!1)},[I,S,Z,ie,ue,ee,ae,de,he,re,p,te,fe,ne,_e,l,i,o,k,$,D,se,X,F,oe,Oe,Ee,B,me,ge,ke,ye,$e,Pe,Ce,Qe,Le,Fe,ve,v,R,Ve]}class ol extends Me{constructor(e){super(),Se(this,e,zn,jn,We,{schedule:0,onConfirm:27},null,[-1,-1])}}export{ol as S}; +import{S as Me,b as Se,a as We,G as Dt,N as et,m as W,p as V,q as T,k as _,O as ft,P as De,f as K,H as Mt,I as St,J as Wt,R as Ct,j as M,g as C,T as ot,af as Ht,K as je,U as Pt,u as Q,L as h,n as pe,a7 as Je,w as Y,x,Q as Xe,ag as Ye,c as H,d as P,A as j,Z as z,C as L,D as A,E as N,_ as G,F as U,z as tt,h as nt,a6 as Lt,a5 as dt,y as At}from"./index.6779d4e2.js";import{p as Vt}from"./stores.b96d31b2.js";import{I as Ie}from"./input.86f6e192.js";import{c as Nt,T as Ut,a as Bt,b as Ke}from"./tab.9e7175ff.js";import{t as q}from"./translate.29a4bc43.js";import{m as ct,g as Ze,w as ht}from"./calendar.81d1e381.js";import{I as qt}from"./icon.a4e81b70.js";import{T as Qt,a as _t}from"./toggle-buttons.6c8ac659.js";import{S as Ft}from"./schedule-service.a1e87565.js";import{S as Kt,O as Ge}from"./option.3359f258.js";import{A as Rt}from"./alert.dcbef44a.js";import{B as mt}from"./button.0b50a4b4.js";import{L as jt}from"./link.8030aa06.js";import{L as zt}from"./loading.a6f9064e.js";import{e as xe,l as Gt}from"./schedules.4bb8639b.js";import{q as Jt,c as Zt}from"./route-for.31ffa191.js";function Xt(n){let e,t;const l=n[7].default,i=Dt(l,n,n[6],null);let r=[{id:n[0]},{"aria-labelledby":n[1]},{tabindex:"0"},{role:"tabpanel"},n[4]],o={};for(let s=0;st(5,o=m)),f(a),n.$$set=m=>{e=et(et({},e),Pt(m)),t(4,r=ot(e,i)),"id"in m&&t(0,a=m.id),"tabId"in m&&t(1,d=m.tabId),"$$scope"in m&&t(6,u=m.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&t(2,l=o===a)},[a,d,l,c,r,o,u,s]}class Re extends Me{constructor(e){super(),Se(this,e,Yt,Xt,We,{id:0,tabId:1})}}function gt(n,e,t){const l=n.slice();return l[4]=e[t],l}function pt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[4],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-c8o885"),De(e,"active",n[0].includes(n[4]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&3&&De(e,"active",n[0].includes(n[4]))},d(s){s&&_(e),i=!1,r()}}}function xt(n){let e,t,l=n[1],i=[];for(let r=0;ru+1);let{daysOfMonth:i}=e;const r=(s,u)=>{s.metaKey?i.includes(u)?i.filter(a=>a!==u):t(0,i=[...i,u]):t(0,i=[u])},o=(s,u)=>r(u,s);return n.$$set=s=>{"daysOfMonth"in s&&t(0,i=s.daysOfMonth)},[i,l,r,o]}class tn extends Me{constructor(e){super(),Se(this,e,en,xt,We,{daysOfMonth:0})}}function vt(n,e,t){const l=n.slice();return l[3]=e[t].label,l[4]=e[t].value,l}function bt(n){let e,t=n[3]+"",l,i,r,o;function s(...u){return n[2](n[4],...u)}return{c(){e=W("button"),l=Y(t),i=H(),this.h()},l(u){e=V(u,"BUTTON",{class:!0});var a=T(e);l=x(a,t),i=P(a),a.forEach(_),this.h()},h(){Q(e,"class","cell svelte-hc9i32"),De(e,"active",n[0].includes(n[4]))},m(u,a){K(u,e,a),h(e,l),h(e,i),r||(o=Xe(e,"click",Ye(s)),r=!0)},p(u,a){n=u,a&1&&De(e,"active",n[0].includes(n[4]))},d(u){u&&_(e),r=!1,o()}}}function nn(n){let e,t=ct,l=[];for(let i=0;i{o.metaKey&&s!=="*"?(l.includes("*")&&t(0,l=l.filter(u=>u!=="*")),l.includes(s)?t(0,l=l.filter(u=>u!==s)):t(0,l=[...l,s])):t(0,l=[s])},r=(o,s)=>i(s,o);return n.$$set=o=>{"months"in o&&t(0,l=o.months)},[l,i,r]}class sn extends Me{constructor(e){super(),Se(this,e,ln,nn,We,{months:0})}}function un(n){let e=q("ante-meridiem")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function an(n){let e=q("post-meridiem")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function rn(n){let e,t,l,i;return e=new _t({props:{active:n[2]==="AM",$$slots:{default:[un]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new _t({props:{active:n[2]==="PM",$$slots:{default:[an]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment)},l(r){A(e.$$.fragment,r),t=P(r),A(l.$$.fragment,r)},m(r,o){N(e,r,o),K(r,t,o),N(l,r,o),i=!0},p(r,o){const s={};o&4&&(s.active=r[2]==="AM"),o&512&&(s.$$scope={dirty:o,ctx:r}),e.$set(s);const u={};o&4&&(u.active=r[2]==="PM"),o&512&&(u.$$scope={dirty:o,ctx:r}),l.$set(u)},i(r){i||(M(e.$$.fragment,r),M(l.$$.fragment,r),i=!0)},o(r){C(e.$$.fragment,r),C(l.$$.fragment,r),i=!1},d(r){U(e,r),r&&_(t),U(l,r)}}}function fn(n){let e,t,l=q("schedules","time-view-heading")+"",i,r,o,s=q("schedules","time-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z=q("based-on-time-preface")+"",ie,ue,ee;function ae(p){n[5](p)}let de={id:"hour-time",label:q("hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("hours-abbreviated"),maxLength:2,error:n[3](n[1],12)};n[1]!==void 0&&(de.value=n[1]),c=new Ie({props:de}),j.push(()=>z(c,"value",ae));function he(p){n[6](p)}let re={id:"minute-time",label:q("minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("minutes-abbreviated"),maxLength:2,error:n[3](n[0],59)};return n[0]!==void 0&&(re.value=n[0]),B=new Ie({props:re}),j.push(()=>z(B,"value",he)),D=new Qt({props:{$$slots:{default:[rn]},$$scope:{ctx:n}}}),F=new qt({props:{name:"clock","aria-hidden":"true"}}),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Y(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),se=H(),X=W("div"),L(F.$$.fragment),ne=H(),S=W("span"),ie=Y(Z),ue=Y(" Universal Standard Time (UTC)"),this.h()},l(p){e=V(p,"DIV",{class:!0});var te=T(e);t=V(te,"H3",{class:!0});var _e=T(t);i=x(_e,l),_e.forEach(_),r=P(te),o=V(te,"P",{});var fe=T(o);u=x(fe,s),fe.forEach(_),a=P(te),d=V(te,"DIV",{class:!0});var oe=T(d);f=V(oe,"DIV",{class:!0});var Oe=T(f);A(c.$$.fragment,Oe),Oe.forEach(_),g=P(oe),b=V(oe,"DIV",{});var Ee=T(b);y=x(Ee,":"),Ee.forEach(_),w=P(oe),I=V(oe,"DIV",{class:!0});var me=T(I);A(B.$$.fragment,me),me.forEach(_),k=P(oe),$=V(oe,"DIV",{class:!0});var ge=T($);A(D.$$.fragment,ge),ge.forEach(_),oe.forEach(_),se=P(te),X=V(te,"DIV",{class:!0});var ke=T(X);A(F.$$.fragment,ke),ne=P(ke),S=V(ke,"SPAN",{class:!0});var ye=T(S);ie=x(ye,Z),ue=x(ye," Universal Standard Time (UTC)"),ye.forEach(_),ke.forEach(_),te.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q($,"class","ml-2"),Q(d,"class","flex flex-row items-center gap-2"),Q(S,"class","text-xs font-normal text-gray-500"),Q(X,"class","flex w-full flex-row items-center gap-2"),Q(e,"class","flex flex-col gap-4")},m(p,te){K(p,e,te),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),N(D,$,null),h(e,se),h(e,X),N(F,X,null),h(X,ne),h(X,S),h(S,ie),h(S,ue),ee=!0},p(p,[te]){const _e={};te&2&&(_e.error=p[3](p[1],12)),!m&&te&2&&(m=!0,_e.value=p[1],G(()=>m=!1)),c.$set(_e);const fe={};te&1&&(fe.error=p[3](p[0],59)),!J&&te&1&&(J=!0,fe.value=p[0],G(()=>J=!1)),B.$set(fe);const oe={};te&516&&(oe.$$scope={dirty:te,ctx:p}),D.$set(oe)},i(p){ee||(M(c.$$.fragment,p),M(B.$$.fragment,p),M(D.$$.fragment,p),M(F.$$.fragment,p),ee=!0)},o(p){C(c.$$.fragment,p),C(B.$$.fragment,p),C(D.$$.fragment,p),C(F.$$.fragment,p),ee=!1},d(p){p&&_(e),U(c),U(B),U(D),U(F)}}}function on(n,e,t){let{hour:l=""}=e,{minute:i=""}=e,r="",o="AM";const s=(c,m)=>c?isNaN(parseInt(c))||parseInt(c)>m:!1;function u(c){r=c,t(1,r)}function a(c){i=c,t(0,i)}const d=()=>t(2,o="AM"),f=()=>t(2,o="PM");return n.$$set=c=>{"hour"in c&&t(4,l=c.hour),"minute"in c&&t(0,i=c.minute)},n.$$.update=()=>{n.$$.dirty&6&&(r?r==="12"?t(4,l=o==="AM"?"00":"12"):o==="PM"?t(4,l=(parseInt(r)+12).toString()):t(4,l=r):t(4,l=""))},[i,r,o,s,l,u,a,d,f]}class Tt extends Me{constructor(e){super(),Se(this,e,on,fn,We,{hour:4,minute:0})}}function dn(n){let e,t,l=q("schedules","recurring-dates-heading")+"",i,r,o,s=q("schedules","recurring-dates-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J;function k(S){n[4](S)}let $={};n[0]!==void 0&&($.daysOfMonth=n[0]),f=new tn({props:$}),j.push(()=>z(f,"daysOfMonth",k));function D(S){n[5](S)}let se={};n[1]!==void 0&&(se.months=n[1]),g=new sn({props:se}),j.push(()=>z(g,"months",D));function X(S){n[6](S)}function F(S){n[7](S)}let ne={};return n[2]!==void 0&&(ne.hour=n[2]),n[3]!==void 0&&(ne.minute=n[3]),w=new Tt({props:ne}),j.push(()=>z(w,"hour",X)),j.push(()=>z(w,"minute",F)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),L(f.$$.fragment),m=H(),L(g.$$.fragment),y=H(),L(w.$$.fragment),this.h()},l(S){e=V(S,"DIV",{class:!0});var Z=T(e);t=V(Z,"H3",{class:!0});var ie=T(t);i=x(ie,l),ie.forEach(_),r=P(Z),o=V(Z,"P",{});var ue=T(o);u=x(ue,s),ue.forEach(_),a=P(Z),d=V(Z,"DIV",{class:!0});var ee=T(d);A(f.$$.fragment,ee),m=P(ee),A(g.$$.fragment,ee),ee.forEach(_),Z.forEach(_),y=P(S),A(w.$$.fragment,S),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(d,"class","flex w-full flex-col gap-4"),Q(e,"class","my-2 flex flex-col gap-4")},m(S,Z){K(S,e,Z),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),N(f,d,null),h(d,m),N(g,d,null),K(S,y,Z),N(w,S,Z),J=!0},p(S,[Z]){const ie={};!c&&Z&1&&(c=!0,ie.daysOfMonth=S[0],G(()=>c=!1)),f.$set(ie);const ue={};!b&&Z&2&&(b=!0,ue.months=S[1],G(()=>b=!1)),g.$set(ue);const ee={};!I&&Z&4&&(I=!0,ee.hour=S[2],G(()=>I=!1)),!B&&Z&8&&(B=!0,ee.minute=S[3],G(()=>B=!1)),w.$set(ee)},i(S){J||(M(f.$$.fragment,S),M(g.$$.fragment,S),M(w.$$.fragment,S),J=!0)},o(S){C(f.$$.fragment,S),C(g.$$.fragment,S),C(w.$$.fragment,S),J=!1},d(S){S&&_(e),U(f),U(g),S&&_(y),U(w,S)}}}function cn(n,e,t){let{daysOfMonth:l}=e,{months:i}=e,{hour:r}=e,{minute:o}=e;function s(f){l=f,t(0,l)}function u(f){i=f,t(1,i)}function a(f){r=f,t(2,r)}function d(f){o=f,t(3,o)}return n.$$set=f=>{"daysOfMonth"in f&&t(0,l=f.daysOfMonth),"months"in f&&t(1,i=f.months),"hour"in f&&t(2,r=f.hour),"minute"in f&&t(3,o=f.minute)},[l,i,r,o,s,u,a,d]}class hn extends Me{constructor(e){super(),Se(this,e,cn,dn,We,{daysOfMonth:0,months:1,hour:2,minute:3})}}function $t(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function wt(n,e,t){const l=n.slice();return l[4]=e[t].label,l[5]=e[t].value,l}function kt(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[2](n[5],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function It(n){let e,t=n[4]+"",l,i,r;function o(...s){return n[3](n[5],...s)}return{c(){e=W("button"),l=Y(t),this.h()},l(s){e=V(s,"BUTTON",{class:!0});var u=T(e);l=x(u,t),u.forEach(_),this.h()},h(){Q(e,"class","cell svelte-xr91x7"),De(e,"active",n[0].includes(n[5]))},m(s,u){K(s,e,u),h(e,l),i||(r=Xe(e,"click",Ye(o)),i=!0)},p(s,u){n=s,u&1&&De(e,"active",n[0].includes(n[5]))},d(s){s&&_(e),i=!1,r()}}}function _n(n){let e,t,l,i,r=Ze,o=[];for(let a=0;a{s.metaKey?(Ze.find(a=>a.value===u)?t(0,l=[u]):l.find(a=>Ze.find(d=>d.value===a))&&t(0,l=[u]),l.includes(u)?l.filter(a=>a!==u):t(0,l=[...l,u])):t(0,l=[u])},r=(s,u)=>i(u,s),o=(s,u)=>i(u,s);return n.$$set=s=>{"daysOfWeek"in s&&t(0,l=s.daysOfWeek)},[l,i,r,o]}class gn extends Me{constructor(e){super(),Se(this,e,mn,_n,We,{daysOfWeek:0})}}function pn(n){let e,t,l=q("schedules","recurring-days-heading")+"",i,r,o,s=q("schedules","recurring-days-description")+"",u,a,d,f,c,m,g,b,y;function w($){n[3]($)}let I={};n[0]!==void 0&&(I.daysOfWeek=n[0]),d=new gn({props:I}),j.push(()=>z(d,"daysOfWeek",w));function B($){n[4]($)}function J($){n[5]($)}let k={};return n[1]!==void 0&&(k.hour=n[1]),n[2]!==void 0&&(k.minute=n[2]),m=new Tt({props:k}),j.push(()=>z(m,"hour",B)),j.push(()=>z(m,"minute",J)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),L(d.$$.fragment),c=H(),L(m.$$.fragment),this.h()},l($){e=V($,"DIV",{class:!0});var D=T(e);t=V(D,"H3",{class:!0});var se=T(t);i=x(se,l),se.forEach(_),r=P(D),o=V(D,"P",{});var X=T(o);u=x(X,s),X.forEach(_),a=P(D),A(d.$$.fragment,D),D.forEach(_),c=P($),A(m.$$.fragment,$),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex flex-col gap-4")},m($,D){K($,e,D),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),K($,c,D),N(m,$,D),y=!0},p($,[D]){const se={};!f&&D&1&&(f=!0,se.daysOfWeek=$[0],G(()=>f=!1)),d.$set(se);const X={};!g&&D&2&&(g=!0,X.hour=$[1],G(()=>g=!1)),!b&&D&4&&(b=!0,X.minute=$[2],G(()=>b=!1)),m.$set(X)},i($){y||(M(d.$$.fragment,$),M(m.$$.fragment,$),y=!0)},o($){C(d.$$.fragment,$),C(m.$$.fragment,$),y=!1},d($){$&&_(e),U(d),$&&_(c),U(m,$)}}}function vn(n,e,t){let{daysOfWeek:l}=e,{hour:i}=e,{minute:r}=e;function o(a){l=a,t(0,l)}function s(a){i=a,t(1,i)}function u(a){r=a,t(2,r)}return n.$$set=a=>{"daysOfWeek"in a&&t(0,l=a.daysOfWeek),"hour"in a&&t(1,i=a.hour),"minute"in a&&t(2,r=a.minute)},[l,i,r,o,s,u]}class bn extends Me{constructor(e){super(),Se(this,e,vn,pn,We,{daysOfWeek:0,hour:1,minute:2})}}function $n(n){let e=q("days")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function wn(n){let e=q("hours-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function kn(n){let e=q("minutes-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function In(n){let e=q("seconds-abbreviated")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function On(n){let e,t,l,i,r,o,s,u;return e=new Ge({props:{value:"days",$$slots:{default:[$n]},$$scope:{ctx:n}}}),l=new Ge({props:{value:"hrs",$$slots:{default:[wn]},$$scope:{ctx:n}}}),r=new Ge({props:{value:"min",$$slots:{default:[kn]},$$scope:{ctx:n}}}),s=new Ge({props:{value:"sec",$$slots:{default:[In]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment),t=H(),L(l.$$.fragment),i=H(),L(r.$$.fragment),o=H(),L(s.$$.fragment)},l(a){A(e.$$.fragment,a),t=P(a),A(l.$$.fragment,a),i=P(a),A(r.$$.fragment,a),o=P(a),A(s.$$.fragment,a)},m(a,d){N(e,a,d),K(a,t,d),N(l,a,d),K(a,i,d),N(r,a,d),K(a,o,d),N(s,a,d),u=!0},p(a,d){const f={};d&16384&&(f.$$scope={dirty:d,ctx:a}),e.$set(f);const c={};d&16384&&(c.$$scope={dirty:d,ctx:a}),l.$set(c);const m={};d&16384&&(m.$$scope={dirty:d,ctx:a}),r.$set(m);const g={};d&16384&&(g.$$scope={dirty:d,ctx:a}),s.$set(g)},i(a){u||(M(e.$$.fragment,a),M(l.$$.fragment,a),M(r.$$.fragment,a),M(s.$$.fragment,a),u=!0)},o(a){C(e.$$.fragment,a),C(l.$$.fragment,a),C(r.$$.fragment,a),C(s.$$.fragment,a),u=!1},d(a){U(e,a),a&&_(t),U(l,a),a&&_(i),U(r,a),a&&_(o),U(s,a)}}}function yn(n){let e,t,l=q("schedules","interval-view-heading")+"",i,r,o,s=q("schedules","interval-view-description")+"",u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re,p=q("schedules","offset-heading")+"",te,_e,fe,oe=q("schedules","offset-description")+"",Oe,Ee,me,ge,ke,ye,$e,Pe,Ce;function Qe(E){n[8](E)}let Le={id:"days",label:q("days"),labelHidden:!0,placeholder:"00",suffix:q("days"),maxLength:3,error:n[7](n[0])};n[0]!==void 0&&(Le.value=n[0]),c=new Ie({props:Le}),j.push(()=>z(c,"value",Qe));function Fe(E){n[9](E)}let ve={id:"hour-interval",label:q("hours-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("hours-abbreviated"),maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(ve.value=n[1]),B=new Ie({props:ve}),j.push(()=>z(B,"value",Fe));function v(E){n[10](E)}let R={id:"minute-interval",label:q("minutes-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("minutes-abbreviated"),maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(R.value=n[2]),F=new Ie({props:R}),j.push(()=>z(F,"value",v));function Ve(E){n[11](E)}let O={id:"second",label:q("seconds-abbreviated"),labelHidden:!0,placeholder:"00",suffix:q("seconds-abbreviated"),maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(O.value=n[3]),ae=new Ie({props:O}),j.push(()=>z(ae,"value",Ve));function be(E){n[12](E)}let we={id:"phase",label:q("schedules","offset-heading"),labelHidden:!0,placeholder:"00",error:n[7](n[4]),unroundRight:!0};n[5]!==void 0&&(we.value=n[5]),ge=new Ie({props:we}),j.push(()=>z(ge,"value",be));function He(E){n[13](E)}let Te={label:q("schedules","offset-unit"),labelHidden:!0,unroundLeft:!0,id:"phase-unit",$$slots:{default:[On]},$$scope:{ctx:n}};return n[6]!==void 0&&(Te.value=n[6]),$e=new Kt({props:Te}),j.push(()=>z($e,"value",He)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),d=W("div"),f=W("div"),L(c.$$.fragment),g=H(),b=W("div"),y=Y(":"),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),D=Y(":"),se=H(),X=W("div"),L(F.$$.fragment),S=H(),Z=W("div"),ie=Y(":"),ue=H(),ee=W("div"),L(ae.$$.fragment),he=H(),re=W("h3"),te=Y(p),_e=H(),fe=W("p"),Oe=Y(oe),Ee=H(),me=W("div"),L(ge.$$.fragment),ye=H(),L($e.$$.fragment),this.h()},l(E){e=V(E,"DIV",{class:!0});var le=T(e);t=V(le,"H3",{class:!0});var Ae=T(t);i=x(Ae,l),Ae.forEach(_),r=P(le),o=V(le,"P",{});var Ne=T(o);u=x(Ne,s),Ne.forEach(_),a=P(le),d=V(le,"DIV",{class:!0});var ce=T(d);f=V(ce,"DIV",{class:!0});var Ue=T(f);A(c.$$.fragment,Ue),Ue.forEach(_),g=P(ce),b=V(ce,"DIV",{});var Be=T(b);y=x(Be,":"),Be.forEach(_),w=P(ce),I=V(ce,"DIV",{class:!0});var qe=T(I);A(B.$$.fragment,qe),qe.forEach(_),k=P(ce),$=V(ce,"DIV",{});var lt=T($);D=x(lt,":"),lt.forEach(_),se=P(ce),X=V(ce,"DIV",{class:!0});var st=T(X);A(F.$$.fragment,st),st.forEach(_),S=P(ce),Z=V(ce,"DIV",{});var it=T(Z);ie=x(it,":"),it.forEach(_),ue=P(ce),ee=V(ce,"DIV",{class:!0});var ut=T(ee);A(ae.$$.fragment,ut),ut.forEach(_),ce.forEach(_),he=P(le),re=V(le,"H3",{class:!0});var at=T(re);te=x(at,p),at.forEach(_),_e=P(le),fe=V(le,"P",{});var rt=T(fe);Oe=x(rt,oe),rt.forEach(_),Ee=P(le),me=V(le,"DIV",{class:!0});var ze=T(me);A(ge.$$.fragment,ze),ye=P(ze),A($e.$$.fragment,ze),ze.forEach(_),le.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(f,"class","w-24"),Q(I,"class","w-24"),Q(X,"class","w-24"),Q(ee,"class","w-24"),Q(d,"class","flex flex-row items-center gap-2"),Q(re,"class","mt-4 text-lg font-medium"),Q(me,"class","flex w-48 gap-0"),Q(e,"class","my-2 flex flex-col gap-4")},m(E,le){K(E,e,le),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),h(e,d),h(d,f),N(c,f,null),h(d,g),h(d,b),h(b,y),h(d,w),h(d,I),N(B,I,null),h(d,k),h(d,$),h($,D),h(d,se),h(d,X),N(F,X,null),h(d,S),h(d,Z),h(Z,ie),h(d,ue),h(d,ee),N(ae,ee,null),h(e,he),h(e,re),h(re,te),h(e,_e),h(e,fe),h(fe,Oe),h(e,Ee),h(e,me),N(ge,me,null),h(me,ye),N($e,me,null),Ce=!0},p(E,[le]){const Ae={};le&1&&(Ae.error=E[7](E[0])),!m&&le&1&&(m=!0,Ae.value=E[0],G(()=>m=!1)),c.$set(Ae);const Ne={};le&2&&(Ne.error=E[7](E[1])),!J&&le&2&&(J=!0,Ne.value=E[1],G(()=>J=!1)),B.$set(Ne);const ce={};le&4&&(ce.error=E[7](E[2])),!ne&&le&4&&(ne=!0,ce.value=E[2],G(()=>ne=!1)),F.$set(ce);const Ue={};le&8&&(Ue.error=E[7](E[3])),!de&&le&8&&(de=!0,Ue.value=E[3],G(()=>de=!1)),ae.$set(Ue);const Be={};le&16&&(Be.error=E[7](E[4])),!ke&&le&32&&(ke=!0,Be.value=E[5],G(()=>ke=!1)),ge.$set(Be);const qe={};le&16384&&(qe.$$scope={dirty:le,ctx:E}),!Pe&&le&64&&(Pe=!0,qe.value=E[6],G(()=>Pe=!1)),$e.$set(qe)},i(E){Ce||(M(c.$$.fragment,E),M(B.$$.fragment,E),M(F.$$.fragment,E),M(ae.$$.fragment,E),M(ge.$$.fragment,E),M($e.$$.fragment,E),Ce=!0)},o(E){C(c.$$.fragment,E),C(B.$$.fragment,E),C(F.$$.fragment,E),C(ae.$$.fragment,E),C(ge.$$.fragment,E),C($e.$$.fragment,E),Ce=!1},d(E){E&&_(e),U(c),U(B),U(F),U(ae),U(ge),U($e)}}}function En(n,e,t){let{days:l=""}=e,{hour:i=""}=e,{minute:r=""}=e,{second:o=""}=e,{phase:s=""}=e,u="",a="min";const d=w=>w?isNaN(parseInt(w)):!1;function f(w){l=w,t(0,l)}function c(w){i=w,t(1,i)}function m(w){r=w,t(2,r)}function g(w){o=w,t(3,o)}function b(w){u=w,t(5,u)}function y(w){a=w,t(6,a)}return n.$$set=w=>{"days"in w&&t(0,l=w.days),"hour"in w&&t(1,i=w.hour),"minute"in w&&t(2,r=w.minute),"second"in w&&t(3,o=w.second),"phase"in w&&t(4,s=w.phase)},n.$$.update=()=>{n.$$.dirty&96&&u&&(a==="days"?t(4,s=(parseInt(u)*60*60*24).toString()+"s"):a==="hrs"?t(4,s=(parseInt(u)*60*60).toString()+"s"):a==="min"?t(4,s=(parseInt(u)*60).toString()+"s"):a==="sec"&&t(4,s=parseInt(u).toString()+"s"))},[l,i,r,o,s,u,a,d,f,c,m,g,b,y]}class Dn extends Me{constructor(e){super(),Se(this,e,En,yn,We,{days:0,hour:1,minute:2,second:3,phase:4})}}const Mn=n=>({preset:n[0]&1024}),Ot=n=>({preset:n[10]});function yt(n){let e,t;return e=new Ke({props:{label:"Existing",id:"existing-tab",panelId:"existing-panel",onClick:n[12]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1024&&(r.onClick=l[12]),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Sn(n){let e,t,l,i,r,o,s,u,a,d=n[9]&&yt(n);return t=new Ke({props:{label:"Interval",id:"interval-tab",panelId:"interval-panel",onClick:n[13]}}),i=new Ke({props:{label:"Days of the Week",id:"daily-tab",panelId:"daily-panel",onClick:n[14]}}),o=new Ke({props:{label:"Days of the Month",id:"monthly-tab",panelId:"monthly-panel",onClick:n[15]}}),u=new Ke({props:{label:"String",id:"string-tab",panelId:"string-panel",onClick:n[16]}}),{c(){d&&d.c(),e=H(),L(t.$$.fragment),l=H(),L(i.$$.fragment),r=H(),L(o.$$.fragment),s=H(),L(u.$$.fragment)},l(f){d&&d.l(f),e=P(f),A(t.$$.fragment,f),l=P(f),A(i.$$.fragment,f),r=P(f),A(o.$$.fragment,f),s=P(f),A(u.$$.fragment,f)},m(f,c){d&&d.m(f,c),K(f,e,c),N(t,f,c),K(f,l,c),N(i,f,c),K(f,r,c),N(o,f,c),K(f,s,c),N(u,f,c),a=!0},p(f,c){f[9]?d?(d.p(f,c),c[0]&512&&M(d,1)):(d=yt(f),d.c(),M(d,1),d.m(e.parentNode,e)):d&&(tt(),C(d,1,1,()=>{d=null}),nt());const m={};c[0]&1024&&(m.onClick=f[13]),t.$set(m);const g={};c[0]&1024&&(g.onClick=f[14]),i.$set(g);const b={};c[0]&1024&&(b.onClick=f[15]),o.$set(b);const y={};c[0]&1024&&(y.onClick=f[16]),u.$set(y)},i(f){a||(M(d),M(t.$$.fragment,f),M(i.$$.fragment,f),M(o.$$.fragment,f),M(u.$$.fragment,f),a=!0)},o(f){C(d),C(t.$$.fragment,f),C(i.$$.fragment,f),C(o.$$.fragment,f),C(u.$$.fragment,f),a=!1},d(f){d&&d.d(f),f&&_(e),U(t,f),f&&_(l),U(i,f),f&&_(r),U(o,f),f&&_(s),U(u,f)}}}function Et(n){let e,t;return e=new Re({props:{id:"existing-panel",tabId:"existing-tab",class:"w-full",$$slots:{default:[Wn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073742336&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function Wn(n){var l,i,r,o,s,u;let e,t;return e=new Ft({props:{calendar:(r=(i=(l=n[9])==null?void 0:l.spec)==null?void 0:i.structuredCalendar)==null?void 0:r[0],interval:(u=(s=(o=n[9])==null?void 0:o.spec)==null?void 0:s.interval)==null?void 0:u[0]}}),{c(){L(e.$$.fragment)},l(a){A(e.$$.fragment,a)},m(a,d){N(e,a,d),t=!0},p(a,d){var c,m,g,b,y,w;const f={};d[0]&512&&(f.calendar=(g=(m=(c=a[9])==null?void 0:c.spec)==null?void 0:m.structuredCalendar)==null?void 0:g[0]),d[0]&512&&(f.interval=(w=(y=(b=a[9])==null?void 0:b.spec)==null?void 0:y.interval)==null?void 0:w[0]),e.$set(f)},i(a){t||(M(e.$$.fragment,a),t=!0)},o(a){C(e.$$.fragment,a),t=!1},d(a){U(e,a)}}}function Vn(n){let e,t,l,i,r,o,s;function u(g){n[17](g)}function a(g){n[18](g)}function d(g){n[19](g)}function f(g){n[20](g)}function c(g){n[21](g)}let m={};return n[3]!==void 0&&(m.days=n[3]),n[4]!==void 0&&(m.hour=n[4]),n[5]!==void 0&&(m.minute=n[5]),n[6]!==void 0&&(m.second=n[6]),n[7]!==void 0&&(m.phase=n[7]),e=new Dn({props:m}),j.push(()=>z(e,"days",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),j.push(()=>z(e,"second",f)),j.push(()=>z(e,"phase",c)),{c(){L(e.$$.fragment)},l(g){A(e.$$.fragment,g)},m(g,b){N(e,g,b),s=!0},p(g,b){const y={};!t&&b[0]&8&&(t=!0,y.days=g[3],G(()=>t=!1)),!l&&b[0]&16&&(l=!0,y.hour=g[4],G(()=>l=!1)),!i&&b[0]&32&&(i=!0,y.minute=g[5],G(()=>i=!1)),!r&&b[0]&64&&(r=!0,y.second=g[6],G(()=>r=!1)),!o&&b[0]&128&&(o=!0,y.phase=g[7],G(()=>o=!1)),e.$set(y)},i(g){s||(M(e.$$.fragment,g),s=!0)},o(g){C(e.$$.fragment,g),s=!1},d(g){U(e,g)}}}function Tn(n){let e,t,l,i,r;function o(d){n[22](d)}function s(d){n[23](d)}function u(d){n[24](d)}let a={};return n[0]!==void 0&&(a.daysOfWeek=n[0]),n[4]!==void 0&&(a.hour=n[4]),n[5]!==void 0&&(a.minute=n[5]),e=new bn({props:a}),j.push(()=>z(e,"daysOfWeek",o)),j.push(()=>z(e,"hour",s)),j.push(()=>z(e,"minute",u)),{c(){L(e.$$.fragment)},l(d){A(e.$$.fragment,d)},m(d,f){N(e,d,f),r=!0},p(d,f){const c={};!t&&f[0]&1&&(t=!0,c.daysOfWeek=d[0],G(()=>t=!1)),!l&&f[0]&16&&(l=!0,c.hour=d[4],G(()=>l=!1)),!i&&f[0]&32&&(i=!0,c.minute=d[5],G(()=>i=!1)),e.$set(c)},i(d){r||(M(e.$$.fragment,d),r=!0)},o(d){C(e.$$.fragment,d),r=!1},d(d){U(e,d)}}}function Cn(n){let e,t,l,i,r,o;function s(c){n[25](c)}function u(c){n[26](c)}function a(c){n[27](c)}function d(c){n[28](c)}let f={};return n[1]!==void 0&&(f.daysOfMonth=n[1]),n[2]!==void 0&&(f.months=n[2]),n[4]!==void 0&&(f.hour=n[4]),n[5]!==void 0&&(f.minute=n[5]),e=new hn({props:f}),j.push(()=>z(e,"daysOfMonth",s)),j.push(()=>z(e,"months",u)),j.push(()=>z(e,"hour",a)),j.push(()=>z(e,"minute",d)),{c(){L(e.$$.fragment)},l(c){A(e.$$.fragment,c)},m(c,m){N(e,c,m),o=!0},p(c,m){const g={};!t&&m[0]&2&&(t=!0,g.daysOfMonth=c[1],G(()=>t=!1)),!l&&m[0]&4&&(l=!0,g.months=c[2],G(()=>l=!1)),!i&&m[0]&16&&(i=!0,g.hour=c[4],G(()=>i=!1)),!r&&m[0]&32&&(r=!0,g.minute=c[5],G(()=>r=!1)),e.$set(g)},i(c){o||(M(e.$$.fragment,c),o=!0)},o(c){C(e.$$.fragment,c),o=!1},d(c){U(e,c)}}}function Hn(n){let e,t,l=q("schedules","cron-view-title")+"",i,r,o,s=q("schedules","cron-view-description")+"",u,a,d,f,c;function m(b){n[29](b)}let g={label:q("schedules","cron-view-title"),labelHidden:!0,id:"cronString",placeholder:"* * * * *"};return n[8]!==void 0&&(g.value=n[8]),d=new Ie({props:g}),j.push(()=>z(d,"value",m)),{c(){e=W("div"),t=W("h3"),i=Y(l),r=H(),o=W("p"),u=Y(s),a=H(),L(d.$$.fragment),this.h()},l(b){e=V(b,"DIV",{class:!0});var y=T(e);t=V(y,"H3",{class:!0});var w=T(t);i=x(w,l),w.forEach(_),r=P(y),o=V(y,"P",{});var I=T(o);u=x(I,s),I.forEach(_),a=P(y),A(d.$$.fragment,y),y.forEach(_),this.h()},h(){Q(t,"class","text-lg font-medium"),Q(e,"class","my-2 flex w-full flex-col gap-4")},m(b,y){K(b,e,y),h(e,t),h(t,i),h(e,r),h(e,o),h(o,u),h(e,a),N(d,e,null),c=!0},p(b,y){const w={};!f&&y[0]&256&&(f=!0,w.value=b[8],G(()=>f=!1)),d.$set(w)},i(b){c||(M(d.$$.fragment,b),c=!0)},o(b){C(d.$$.fragment,b),c=!1},d(b){b&&_(e),U(d)}}}function Pn(n){let e,t=q("schedules","schedule-spec")+"",l,i,r,o,s,u,a,d,f,c,m,g,b,y,w;r=new Bt({props:{label:"Schedule Tabs",class:"flex flex-wrap gap-6",$$slots:{default:[Sn]},$$scope:{ctx:n}}});let I=n[9]&&Et(n);a=new Re({props:{id:"interval-panel",tabId:"interval-tab",$$slots:{default:[Vn]},$$scope:{ctx:n}}}),f=new Re({props:{id:"daily-panel",tabId:"daily-tab",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),m=new Re({props:{id:"monthly-panel",tabId:"monthly-tab",$$slots:{default:[Cn]},$$scope:{ctx:n}}}),b=new Re({props:{id:"string-panel",tabId:"string-tab",$$slots:{default:[Hn]},$$scope:{ctx:n}}});const B=n[11].default,J=Dt(B,n,n[30],Ot);return{c(){e=W("h2"),l=Y(t),i=H(),L(r.$$.fragment),o=H(),s=W("div"),I&&I.c(),u=H(),L(a.$$.fragment),d=H(),L(f.$$.fragment),c=H(),L(m.$$.fragment),g=H(),L(b.$$.fragment),y=H(),J&&J.c(),this.h()},l(k){e=V(k,"H2",{class:!0});var $=T(e);l=x($,t),$.forEach(_),i=P(k),A(r.$$.fragment,k),o=P(k),s=V(k,"DIV",{class:!0});var D=T(s);I&&I.l(D),u=P(D),A(a.$$.fragment,D),d=P(D),A(f.$$.fragment,D),c=P(D),A(m.$$.fragment,D),g=P(D),A(b.$$.fragment,D),D.forEach(_),y=P(k),J&&J.l(k),this.h()},h(){Q(e,"class","mb-4 text-2xl"),Q(s,"class","mt-4 flex w-full flex-wrap gap-6")},m(k,$){K(k,e,$),h(e,l),K(k,i,$),N(r,k,$),K(k,o,$),K(k,s,$),I&&I.m(s,null),h(s,u),N(a,s,null),h(s,d),N(f,s,null),h(s,c),N(m,s,null),h(s,g),N(b,s,null),K(k,y,$),J&&J.m(k,$),w=!0},p(k,$){const D={};$[0]&1073743360&&(D.$$scope={dirty:$,ctx:k}),r.$set(D),k[9]?I?(I.p(k,$),$[0]&512&&M(I,1)):(I=Et(k),I.c(),M(I,1),I.m(s,u)):I&&(tt(),C(I,1,1,()=>{I=null}),nt());const se={};$[0]&1073742072&&(se.$$scope={dirty:$,ctx:k}),a.$set(se);const X={};$[0]&1073741873&&(X.$$scope={dirty:$,ctx:k}),f.$set(X);const F={};$[0]&1073741878&&(F.$$scope={dirty:$,ctx:k}),m.$set(F);const ne={};$[0]&1073742080&&(ne.$$scope={dirty:$,ctx:k}),b.$set(ne),J&&J.p&&(!w||$[0]&1073742848)&&Mt(J,B,k,k[30],w?Wt(B,k[30],$,Mn):St(k[30]),Ot)},i(k){w||(M(r.$$.fragment,k),M(I),M(a.$$.fragment,k),M(f.$$.fragment,k),M(m.$$.fragment,k),M(b.$$.fragment,k),M(J,k),w=!0)},o(k){C(r.$$.fragment,k),C(I),C(a.$$.fragment,k),C(f.$$.fragment,k),C(m.$$.fragment,k),C(b.$$.fragment,k),C(J,k),w=!1},d(k){k&&_(e),k&&_(i),U(r,k),k&&_(o),k&&_(s),I&&I.d(),U(a),U(f),U(m),U(b),k&&_(y),J&&J.d(k)}}}function Ln(n){let e,t;return e=new Ut({props:{class:"mt-8 w-full",$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p(l,i){const r={};i[0]&1073743871&&(r.$$scope={dirty:i,ctx:l}),e.$set(r)},i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function An(n,e,t){let l;je(n,Vt,p=>t(31,l=p));let{$$slots:i={},$$scope:r}=e,s=l.params.schedule?"existing":"interval",{schedule:u=null}=e,{daysOfWeek:a}=e,{daysOfMonth:d}=e,{months:f}=e,{days:c}=e,{hour:m}=e,{minute:g}=e,{second:b}=e,{phase:y}=e,{cronString:w}=e;const I=()=>{t(0,a=[]),t(1,d=[]),t(2,f=[]),t(3,c=""),t(4,m=""),t(5,g=""),t(6,b=""),t(7,y=""),t(8,w="")},B=()=>t(10,s="existing"),J=()=>t(10,s="interval"),k=()=>t(10,s="week"),$=()=>t(10,s="month"),D=()=>t(10,s="string");function se(p){c=p,t(3,c)}function X(p){m=p,t(4,m)}function F(p){g=p,t(5,g)}function ne(p){b=p,t(6,b)}function S(p){y=p,t(7,y)}function Z(p){a=p,t(0,a)}function ie(p){m=p,t(4,m)}function ue(p){g=p,t(5,g)}function ee(p){d=p,t(1,d)}function ae(p){f=p,t(2,f)}function de(p){m=p,t(4,m)}function he(p){g=p,t(5,g)}function re(p){w=p,t(8,w)}return n.$$set=p=>{"schedule"in p&&t(9,u=p.schedule),"daysOfWeek"in p&&t(0,a=p.daysOfWeek),"daysOfMonth"in p&&t(1,d=p.daysOfMonth),"months"in p&&t(2,f=p.months),"days"in p&&t(3,c=p.days),"hour"in p&&t(4,m=p.hour),"minute"in p&&t(5,g=p.minute),"second"in p&&t(6,b=p.second),"phase"in p&&t(7,y=p.phase),"cronString"in p&&t(8,w=p.cronString),"$$scope"in p&&t(30,r=p.$$scope)},I(),[a,d,f,c,m,g,b,y,w,u,s,i,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re,r]}class Nn extends Me{constructor(e){super(),Se(this,e,An,Ln,We,{schedule:9,daysOfWeek:0,daysOfMonth:1,months:2,days:3,hour:4,minute:5,second:6,phase:7,cronString:8},null,[-1,-1])}}function Un(n){let e,t,l,i,r,o,s,u,a,d,f,c,m,g,b,y,w,I,B,J,k,$,D,se,X,F,ne,S,Z,ie,ue,ee,ae,de,he,re;t=new jt({props:{href:n[22],icon:"chevron-left",$$slots:{default:[qn]},$$scope:{ctx:n}}}),u=new Rt({props:{intent:"error",title:"",hidden:!n[16],bold:!0,$$slots:{default:[Qn]},$$scope:{ctx:n}}});function p(v){n[28](v)}let te={id:"name",label:q("schedules","name-label"),error:n[13].name,maxLength:232,disabled:Boolean(n[18])};n[1]!==void 0&&(te.value=n[1]),f=new Ie({props:te}),j.push(()=>z(f,"value",p)),f.$on("input",n[25]),f.$on("blur",n[26]);function _e(v){n[29](v)}let fe={id:"workflowType",label:q("schedules","workflow-type-label"),error:n[13].workflowType};n[2]!==void 0&&(fe.value=n[2]),b=new Ie({props:fe}),j.push(()=>z(b,"value",_e)),b.$on("input",n[25]),b.$on("blur",n[26]);function oe(v){n[30](v)}let Oe={id:"workflowId",label:q("schedules","workflow-id-label"),error:n[13].workflowId};n[3]!==void 0&&(Oe.value=n[3]),B=new Ie({props:Oe}),j.push(()=>z(B,"value",oe)),B.$on("input",n[25]),B.$on("blur",n[26]);function Ee(v){n[31](v)}let me={id:"taskQueue",label:q("schedules","task-queue-label"),error:n[13].taskQueue};n[4]!==void 0&&(me.value=n[4]),D=new Ie({props:me}),j.push(()=>z(D,"value",Ee)),D.$on("input",n[25]),D.$on("blur",n[26]);function ge(v){n[33](v)}function ke(v){n[34](v)}function ye(v){n[35](v)}function $e(v){n[36](v)}function Pe(v){n[37](v)}function Ce(v){n[38](v)}function Qe(v){n[39](v)}function Le(v){n[40](v)}function Fe(v){n[41](v)}let ve={schedule:n[0],$$slots:{default:[Rn,({preset:v})=>({55:v}),({preset:v})=>[0,v?16777216:0]]},$$scope:{ctx:n}};return n[5]!==void 0&&(ve.daysOfWeek=n[5]),n[6]!==void 0&&(ve.daysOfMonth=n[6]),n[7]!==void 0&&(ve.months=n[7]),n[8]!==void 0&&(ve.days=n[8]),n[9]!==void 0&&(ve.hour=n[9]),n[10]!==void 0&&(ve.minute=n[10]),n[11]!==void 0&&(ve.second=n[11]),n[14]!==void 0&&(ve.phase=n[14]),n[12]!==void 0&&(ve.cronString=n[12]),F=new Nn({props:ve}),j.push(()=>z(F,"daysOfWeek",ge)),j.push(()=>z(F,"daysOfMonth",ke)),j.push(()=>z(F,"months",ye)),j.push(()=>z(F,"days",$e)),j.push(()=>z(F,"hour",Pe)),j.push(()=>z(F,"minute",Ce)),j.push(()=>z(F,"second",Qe)),j.push(()=>z(F,"phase",Le)),j.push(()=>z(F,"cronString",Fe)),{c(){e=W("header"),L(t.$$.fragment),l=H(),i=W("h1"),r=Y(n[19]),o=H(),s=W("form"),L(u.$$.fragment),a=H(),d=W("div"),L(f.$$.fragment),m=H(),g=W("div"),L(b.$$.fragment),w=H(),I=W("div"),L(B.$$.fragment),k=H(),$=W("div"),L(D.$$.fragment),X=H(),L(F.$$.fragment),this.h()},l(v){e=V(v,"HEADER",{class:!0});var R=T(e);A(t.$$.fragment,R),l=P(R),i=V(R,"H1",{class:!0});var Ve=T(i);r=x(Ve,n[19]),Ve.forEach(_),R.forEach(_),o=P(v),s=V(v,"FORM",{class:!0});var O=T(s);A(u.$$.fragment,O),a=P(O),d=V(O,"DIV",{class:!0});var be=T(d);A(f.$$.fragment,be),be.forEach(_),m=P(O),g=V(O,"DIV",{class:!0});var we=T(g);A(b.$$.fragment,we),we.forEach(_),w=P(O),I=V(O,"DIV",{class:!0});var He=T(I);A(B.$$.fragment,He),He.forEach(_),k=P(O),$=V(O,"DIV",{class:!0});var Te=T($);A(D.$$.fragment,Te),Te.forEach(_),X=P(O),A(F.$$.fragment,O),O.forEach(_),this.h()},h(){Q(i,"class","font-base text-2xl"),Q(e,"class","mb-12 flex flex-col gap-1"),Q(d,"class","w-full"),Q(g,"class","w-full"),Q(I,"class","w-full"),Q($,"class","w-full"),Q(s,"class","mb-4 flex w-full flex-col gap-4 md:w-2/3 xl:w-1/2")},m(v,R){K(v,e,R),N(t,e,null),h(e,l),h(e,i),h(i,r),K(v,o,R),K(v,s,R),N(u,s,null),h(s,a),h(s,d),N(f,d,null),h(s,m),h(s,g),N(b,g,null),h(s,w),h(s,I),N(B,I,null),h(s,k),h(s,$),N(D,$,null),h(s,X),N(F,s,null),re=!0},p(v,R){const Ve={};R[1]&33554432&&(Ve.$$scope={dirty:R,ctx:v}),t.$set(Ve);const O={};R[0]&65536&&(O.hidden=!v[16]),R[0]&65536|R[1]&33554432&&(O.$$scope={dirty:R,ctx:v}),u.$set(O);const be={};R[0]&8192&&(be.error=v[13].name),!c&&R[0]&2&&(c=!0,be.value=v[1],G(()=>c=!1)),f.$set(be);const we={};R[0]&8192&&(we.error=v[13].workflowType),!y&&R[0]&4&&(y=!0,we.value=v[2],G(()=>y=!1)),b.$set(we);const He={};R[0]&8192&&(He.error=v[13].workflowId),!J&&R[0]&8&&(J=!0,He.value=v[3],G(()=>J=!1)),B.$set(He);const Te={};R[0]&8192&&(Te.error=v[13].taskQueue),!se&&R[0]&16&&(se=!0,Te.value=v[4],G(()=>se=!1)),D.$set(Te);const E={};R[0]&1&&(E.schedule=v[0]),R[0]&32769|R[1]&50331648&&(E.$$scope={dirty:R,ctx:v}),!ne&&R[0]&32&&(ne=!0,E.daysOfWeek=v[5],G(()=>ne=!1)),!S&&R[0]&64&&(S=!0,E.daysOfMonth=v[6],G(()=>S=!1)),!Z&&R[0]&128&&(Z=!0,E.months=v[7],G(()=>Z=!1)),!ie&&R[0]&256&&(ie=!0,E.days=v[8],G(()=>ie=!1)),!ue&&R[0]&512&&(ue=!0,E.hour=v[9],G(()=>ue=!1)),!ee&&R[0]&1024&&(ee=!0,E.minute=v[10],G(()=>ee=!1)),!ae&&R[0]&2048&&(ae=!0,E.second=v[11],G(()=>ae=!1)),!de&&R[0]&16384&&(de=!0,E.phase=v[14],G(()=>de=!1)),!he&&R[0]&4096&&(he=!0,E.cronString=v[12],G(()=>he=!1)),F.$set(E)},i(v){re||(M(t.$$.fragment,v),M(u.$$.fragment,v),M(f.$$.fragment,v),M(b.$$.fragment,v),M(B.$$.fragment,v),M(D.$$.fragment,v),M(F.$$.fragment,v),re=!0)},o(v){C(t.$$.fragment,v),C(u.$$.fragment,v),C(f.$$.fragment,v),C(b.$$.fragment,v),C(B.$$.fragment,v),C(D.$$.fragment,v),C(F.$$.fragment,v),re=!1},d(v){v&&_(e),U(t),v&&_(o),v&&_(s),U(u),U(f),U(b),U(B),U(D),U(F)}}}function Bn(n){let e,t;return e=new zt({props:{title:n[20]}}),{c(){L(e.$$.fragment)},l(l){A(e.$$.fragment,l)},m(l,i){N(e,l,i),t=!0},p:pe,i(l){t||(M(e.$$.fragment,l),t=!0)},o(l){C(e.$$.fragment,l),t=!1},d(l){U(e,l)}}}function qn(n){let e;return{c(){e=Y(n[21])},l(t){e=x(t,n[21])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Qn(n){let e;return{c(){e=Y(n[16])},l(t){e=x(t,n[16])},m(t,l){K(t,e,l)},p(t,l){l[0]&65536&&At(e,t[16])},d(t){t&&_(e)}}}function Fn(n){let e;return{c(){e=Y(n[23])},l(t){e=x(t,n[23])},m(t,l){K(t,e,l)},p:pe,d(t){t&&_(e)}}}function Kn(n){let e=q("cancel")+"",t;return{c(){t=Y(e)},l(l){t=x(l,e)},m(l,i){K(l,t,i)},p:pe,d(l){l&&_(t)}}}function Rn(n){let e,t,l,i,r;function o(){return n[32](n[55])}return t=new mt({props:{disabled:n[15](n[55]),$$slots:{default:[Fn]},$$scope:{ctx:n}}}),t.$on("click",o),i=new mt({props:{variant:"ghost",href:n[22],$$slots:{default:[Kn]},$$scope:{ctx:n}}}),{c(){e=W("div"),L(t.$$.fragment),l=H(),L(i.$$.fragment),this.h()},l(s){e=V(s,"DIV",{class:!0});var u=T(e);A(t.$$.fragment,u),l=P(u),A(i.$$.fragment,u),u.forEach(_),this.h()},h(){Q(e,"class","mt-8 flex items-center gap-2")},m(s,u){K(s,e,u),N(t,e,null),h(e,l),N(i,e,null),r=!0},p(s,u){n=s;const a={};u[0]&32768|u[1]&16777216&&(a.disabled=n[15](n[55])),u[1]&33554432&&(a.$$scope={dirty:u,ctx:n}),t.$set(a);const d={};u[1]&33554432&&(d.$$scope={dirty:u,ctx:n}),i.$set(d)},i(s){r||(M(t.$$.fragment,s),M(i.$$.fragment,s),r=!0)},o(s){C(t.$$.fragment,s),C(i.$$.fragment,s),r=!1},d(s){s&&_(e),U(t),U(i)}}}function jn(n){let e,t,l,i;const r=[Bn,Un],o=[];function s(u,a){return u[17]?0:1}return t=s(n),l=o[t]=r[t](n),{c(){e=W("div"),l.c(),this.h()},l(u){e=V(u,"DIV",{class:!0});var a=T(e);l.l(a),a.forEach(_),this.h()},h(){Q(e,"class","pb-20")},m(u,a){K(u,e,a),o[t].m(e,null),i=!0},p(u,a){let d=t;t=s(u),t===d?o[t].p(u,a):(tt(),C(o[d],1,1,()=>{o[d]=null}),nt(),l=o[t],l?l.p(u,a):(l=o[t]=r[t](u),l.c()),M(l,1),l.m(e,null))},i(u){i||(M(l),i=!0)},o(u){C(l),i=!1},d(u){u&&_(e),o[t].d()}}}function zn(n,e,t){let l,i,r,o;je(n,xe,O=>t(16,i=O)),je(n,Vt,O=>t(53,r=O)),je(n,Gt,O=>t(17,o=O));var s,u,a,d,f,c,m,g,b,y,w;let{schedule:I=null}=e,{onConfirm:B}=e,J=r.params.namespace,k=r.params.schedule,$=q("schedules",I?"edit":"create"),D=q("schedules",I?"editing":"creating"),se=q("schedules",I?"back-to-schedule":"back-to-schedules"),X=I?Jt({namespace:J,scheduleId:k}):Zt({namespace:J}),F=I?q("save"):q("schedules","create"),ne={},S=k??"",Z=(d=(a=(u=(s=I==null?void 0:I.action)===null||s===void 0?void 0:s.startWorkflow)===null||u===void 0?void 0:u.workflowType)===null||a===void 0?void 0:a.name)!==null&&d!==void 0?d:"",ie=(m=(c=(f=I==null?void 0:I.action)===null||f===void 0?void 0:f.startWorkflow)===null||c===void 0?void 0:c.workflowId)!==null&&m!==void 0?m:"",ue=(w=(y=(b=(g=I==null?void 0:I.action)===null||g===void 0?void 0:g.startWorkflow)===null||b===void 0?void 0:b.taskQueue)===null||y===void 0?void 0:y.name)!==null&&w!==void 0?w:"",ee=[],ae=[],de=[],he="",re="",p="",te="",_e="",fe="";const oe=(O,be)=>{B(O,{name:S,workflowType:Z,workflowId:ie,taskQueue:ue,hour:re,minute:p,second:te,phase:_e,cronString:fe,daysOfWeek:ee,daysOfMonth:ae,days:he,months:de},be)},Oe=O=>{const{id:be}=O.target;t(13,ne[be]=!1,ne),i&&dt(xe,i="",i)},Ee=O=>{const{value:be,id:we}=O.target;be.trim()?t(13,ne[we]=!1,ne):t(13,ne[we]=!0,ne)};Lt(()=>dt(xe,i="",i));function me(O){S=O,t(1,S)}function ge(O){Z=O,t(2,Z)}function ke(O){ie=O,t(3,ie)}function ye(O){ue=O,t(4,ue)}const $e=O=>oe(O,I);function Pe(O){ee=O,t(5,ee)}function Ce(O){ae=O,t(6,ae)}function Qe(O){de=O,t(7,de)}function Le(O){he=O,t(8,he)}function Fe(O){re=O,t(9,re)}function ve(O){p=O,t(10,p)}function v(O){te=O,t(11,te)}function R(O){_e=O,t(14,_e)}function Ve(O){fe=O,t(12,fe)}return n.$$set=O=>{"schedule"in O&&t(0,I=O.schedule),"onConfirm"in O&&t(27,B=O.onConfirm)},n.$$.update=()=>{n.$$.dirty[0]&8190&&t(15,l=O=>!S||!Z||!ie||!ue?!0:O==="interval"?!he&&!re&&!p&&!te:O==="week"?!ee.length:O==="month"?!ae.length||!de.length:O==="string"?!fe:!1)},[I,S,Z,ie,ue,ee,ae,de,he,re,p,te,fe,ne,_e,l,i,o,k,$,D,se,X,F,oe,Oe,Ee,B,me,ge,ke,ye,$e,Pe,Ce,Qe,Le,Fe,ve,v,R,Ve]}class ol extends Me{constructor(e){super(),Se(this,e,zn,jn,We,{schedule:0,onConfirm:27},null,[-1,-1])}}export{ol as S}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-service.80743cbe.js b/ui/assets/local/_app/immutable/chunks/schedule-service.a1e87565.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/schedule-service.80743cbe.js rename to ui/assets/local/_app/immutable/chunks/schedule-service.a1e87565.js index 5f28e807e3..4471938025 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-service.80743cbe.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-service.a1e87565.js @@ -1 +1 @@ -import{S as T,b as v,a as S,e as g,f as E,z as q,g as f,n as P,h as C,j as h,k as m,N as y,U as k,m as A,C as I,p as D,q as F,D as j,u as p,E as x,F as H}from"./index.6779d4e2.js";import{C as N}from"./code-block.c796ec58.js";import{s as r}from"./parse-with-big-int.0036a80a.js";import{r as u,a as i}from"./route-for-api.c219d4fc.js";import{v as d}from"./toaster.ef510498.js";function b(a){let t,n,c,o;return n=new N({props:{copyable:!0,inline:a[2],testId:"schedule-calendar",language:"json",content:r(a[0]||a[1])}}),{c(){t=A("div"),I(n.$$.fragment),this.h()},l(e){t=D(e,"DIV",{class:!0});var s=F(t);j(n.$$.fragment,s),s.forEach(m),this.h()},h(){p(t,"class",c="flex flex-col "+a[3].class)},m(e,s){E(e,t,s),x(n,t,null),o=!0},p(e,s){const l={};s&4&&(l.inline=e[2]),s&3&&(l.content=r(e[0]||e[1])),n.$set(l),(!o||s&8&&c!==(c="flex flex-col "+e[3].class))&&p(t,"class",c)},i(e){o||(h(n.$$.fragment,e),o=!0)},o(e){f(n.$$.fragment,e),o=!1},d(e){e&&m(t),H(n)}}}function O(a){let t=[a[0],a[1]],n,c,o=b(a);return{c(){o.c(),n=g()},l(e){o.l(e),n=g()},m(e,s){o.m(e,s),E(e,n,s),c=!0},p(e,[s]){s&3&&S(t,t=[e[0],e[1]])?(q(),f(o,1,1,P),C(),o=b(e),o.c(),h(o,1),o.m(n.parentNode,n)):o.p(e,s)},i(e){c||(h(o),c=!0)},o(e){f(o),c=!1},d(e){e&&m(n),o.d(e)}}}function z(a,t,n){let{calendar:c=void 0}=t,{interval:o=void 0}=t,{inline:e=!1}=t;return a.$$set=s=>{n(3,t=y(y({},t),k(s))),"calendar"in s&&n(0,c=s.calendar),"interval"in s&&n(1,o=s.interval),"inline"in s&&n(2,e=s.inline)},t=k(t),[c,o,e,t]}class w extends T{constructor(t){super(),v(this,t,z,O,S,{calendar:0,interval:1,inline:2})}}const G=async(a,t=fetch)=>{let n="";const c=l=>{var _;return n=((_=l==null?void 0:l.body)==null?void 0:_.message)??`Error fetching schedules: ${l.status}: ${l.statusText}`},o=u("schedules",{namespace:a}),{schedules:e,nextPageToken:s}=await i(o,{params:{},onError:c,request:t})??{schedules:[],nextPageToken:""};return{schedules:e,nextPageToken:String(s),error:n}};async function J(a,t=fetch){const n=u("schedule",a);return i(n,{request:t})}async function K(a,t=fetch){const n=u("schedule.delete",a);return i(n,{request:t,options:{method:"DELETE"}})}async function M({namespace:a,body:t}){let n="";const c=s=>{var l;return n=((l=s==null?void 0:s.body)==null?void 0:l.message)??`Error creating schedule: ${s.status}: ${s.statusText}`},o=u("schedules",{namespace:a}),{conflictToken:e}=await i(o,{options:{method:"POST",body:r({request_id:d(),...t})},onError:c});return{conflictToken:e,error:n}}async function Q({namespace:a,scheduleId:t,body:n}){let c="";const o=s=>{var l;return c=((l=s==null?void 0:s.body)==null?void 0:l.message)??`Error editing schedule: ${s.status}: ${s.statusText}`},e=u("schedule",{namespace:a,scheduleId:t});return await i(e,{options:{method:"POST",body:r({request_id:d(),...n})},onError:o}),{error:c}}async function R({namespace:a,scheduleId:t,reason:n}){const c={patch:{pause:n}},o=u("schedule",{namespace:a,scheduleId:t});return await i(o,{options:{method:"PATCH",body:r({...c,request_id:d()})},onError:e=>console.error(e)})}async function X({namespace:a,scheduleId:t,reason:n}){const c={patch:{unpause:n}},o=u("schedule",{namespace:a,scheduleId:t});return await i(o,{options:{method:"PATCH",body:r({...c,request_id:d()})}})}export{w as S,J as a,M as c,K as d,Q as e,G as f,R as p,X as u}; +import{S as T,b as v,a as S,e as g,f as E,z as q,g as f,n as P,h as C,j as h,k as m,N as y,U as k,m as A,C as I,p as D,q as F,D as j,u as p,E as x,F as H}from"./index.6779d4e2.js";import{C as N}from"./code-block.c796ec58.js";import{s as r}from"./parse-with-big-int.0036a80a.js";import{r as u,a as i}from"./route-for-api.4d253eb1.js";import{v as d}from"./toaster.ef510498.js";function b(a){let t,n,c,o;return n=new N({props:{copyable:!0,inline:a[2],testId:"schedule-calendar",language:"json",content:r(a[0]||a[1])}}),{c(){t=A("div"),I(n.$$.fragment),this.h()},l(e){t=D(e,"DIV",{class:!0});var s=F(t);j(n.$$.fragment,s),s.forEach(m),this.h()},h(){p(t,"class",c="flex flex-col "+a[3].class)},m(e,s){E(e,t,s),x(n,t,null),o=!0},p(e,s){const l={};s&4&&(l.inline=e[2]),s&3&&(l.content=r(e[0]||e[1])),n.$set(l),(!o||s&8&&c!==(c="flex flex-col "+e[3].class))&&p(t,"class",c)},i(e){o||(h(n.$$.fragment,e),o=!0)},o(e){f(n.$$.fragment,e),o=!1},d(e){e&&m(t),H(n)}}}function O(a){let t=[a[0],a[1]],n,c,o=b(a);return{c(){o.c(),n=g()},l(e){o.l(e),n=g()},m(e,s){o.m(e,s),E(e,n,s),c=!0},p(e,[s]){s&3&&S(t,t=[e[0],e[1]])?(q(),f(o,1,1,P),C(),o=b(e),o.c(),h(o,1),o.m(n.parentNode,n)):o.p(e,s)},i(e){c||(h(o),c=!0)},o(e){f(o),c=!1},d(e){e&&m(n),o.d(e)}}}function z(a,t,n){let{calendar:c=void 0}=t,{interval:o=void 0}=t,{inline:e=!1}=t;return a.$$set=s=>{n(3,t=y(y({},t),k(s))),"calendar"in s&&n(0,c=s.calendar),"interval"in s&&n(1,o=s.interval),"inline"in s&&n(2,e=s.inline)},t=k(t),[c,o,e,t]}class w extends T{constructor(t){super(),v(this,t,z,O,S,{calendar:0,interval:1,inline:2})}}const G=async(a,t=fetch)=>{let n="";const c=l=>{var _;return n=((_=l==null?void 0:l.body)==null?void 0:_.message)??`Error fetching schedules: ${l.status}: ${l.statusText}`},o=u("schedules",{namespace:a}),{schedules:e,nextPageToken:s}=await i(o,{params:{},onError:c,request:t})??{schedules:[],nextPageToken:""};return{schedules:e,nextPageToken:String(s),error:n}};async function J(a,t=fetch){const n=u("schedule",a);return i(n,{request:t})}async function K(a,t=fetch){const n=u("schedule.delete",a);return i(n,{request:t,options:{method:"DELETE"}})}async function M({namespace:a,body:t}){let n="";const c=s=>{var l;return n=((l=s==null?void 0:s.body)==null?void 0:l.message)??`Error creating schedule: ${s.status}: ${s.statusText}`},o=u("schedules",{namespace:a}),{conflictToken:e}=await i(o,{options:{method:"POST",body:r({request_id:d(),...t})},onError:c});return{conflictToken:e,error:n}}async function Q({namespace:a,scheduleId:t,body:n}){let c="";const o=s=>{var l;return c=((l=s==null?void 0:s.body)==null?void 0:l.message)??`Error editing schedule: ${s.status}: ${s.statusText}`},e=u("schedule",{namespace:a,scheduleId:t});return await i(e,{options:{method:"POST",body:r({request_id:d(),...n})},onError:o}),{error:c}}async function R({namespace:a,scheduleId:t,reason:n}){const c={patch:{pause:n}},o=u("schedule",{namespace:a,scheduleId:t});return await i(o,{options:{method:"PATCH",body:r({...c,request_id:d()})},onError:e=>console.error(e)})}async function X({namespace:a,scheduleId:t,reason:n}){const c={patch:{unpause:n}},o=u("schedule",{namespace:a,scheduleId:t});return await i(o,{options:{method:"PATCH",body:r({...c,request_id:d()})}})}export{w as S,J as a,M as c,K as d,Q as e,G as f,R as p,X as u}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.72d75a40.js b/ui/assets/local/_app/immutable/chunks/schedules.4bb8639b.js similarity index 94% rename from ui/assets/local/_app/immutable/chunks/schedules.72d75a40.js rename to ui/assets/local/_app/immutable/chunks/schedules.4bb8639b.js index 1eca19aae0..9d1c4ae6ef 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.72d75a40.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.4bb8639b.js @@ -1 +1 @@ -import{w as k}from"./index.1302fd9b.js";import{g as S}from"./navigation.a7086f0c.js";import{c as I,e as T}from"./schedule-service.80743cbe.js";import{c as M,q as O}from"./route-for.cec09c4c.js";const f=e=>e?parseInt(e):0,Q=(e,a,s,t)=>`${f(e)*60*60*24+f(a)*60*60+f(s)*60+f(t)}s`,W=({months:e=[],daysOfMonth:a=[],daysOfWeek:s=[]})=>{var c,n;const t=e.sort((o,l)=>parseInt(o)-parseInt(l)).join(","),r=a.sort((o,l)=>o-l).join(","),u=(((n=(c=s==null?void 0:s[0])==null?void 0:c.split(","))==null?void 0:n.length)>1?s[0].split(","):s).sort((o,l)=>parseInt(o)-parseInt(l)).join(",");return{month:t,dayOfMonth:r,dayOfWeek:u}},g=(e,a,s)=>{const{hour:t,minute:r,second:i,phase:u,cronString:c}=a,{preset:n,months:o,days:l,daysOfMonth:p,daysOfWeek:m}=s;if(n==="string"){const d=`${c}#${c}`;e.schedule.spec.cronString=[d],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const d=Q(l,t,r,i);e.schedule.spec.interval=[{interval:d,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:d,dayOfMonth:v,dayOfWeek:y}=W({months:o,daysOfMonth:p,daysOfWeek:m});e.schedule.spec.calendar=[{year:"*",month:n==="month"?d:"",dayOfMonth:n==="month"?v:"",dayOfWeek:n==="week"?y:"",hour:t,minute:r,second:i}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},x=async({action:e,spec:a,presets:s})=>{const{namespace:t,name:r,workflowId:i,workflowType:u,taskQueue:c}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:i,workflowType:{name:u},taskQueue:{name:c}}}}};g(n,a,s),h.set(!0);const{error:o}=await I({namespace:t,body:n});o?(w.set(o),h.set(!1)):setTimeout(()=>{w.set(""),h.set(!1),S(M({namespace:t}))},2e3)},z=async({action:e,spec:a,presets:s},t,r)=>{const{namespace:i,name:u,workflowId:c,workflowType:n,taskQueue:o}=e,{preset:l}=s,p={schedule_id:r,schedule:{...t,action:{startWorkflow:{...t.action.startWorkflow,workflowId:c,workflowType:{name:n},taskQueue:{name:o}}}}};l==="existing"?p.schedule.spec=t.spec:(g(p,a,s),p.schedule.spec.structuredCalendar=[]),h.set(!0);const{error:m}=await T({namespace:i,scheduleId:r,body:p});m?(w.set(m),h.set(!1)):setTimeout(()=>{S(O({namespace:i,scheduleId:u})),w.set(""),h.set(!1)},2e3)},h=k(!1),w=k("");export{x as a,w as e,h as l,z as s}; +import{w as k}from"./index.1302fd9b.js";import{g as S}from"./navigation.8e7fd3e5.js";import{c as I,e as T}from"./schedule-service.a1e87565.js";import{c as M,q as O}from"./route-for.31ffa191.js";const f=e=>e?parseInt(e):0,Q=(e,a,s,t)=>`${f(e)*60*60*24+f(a)*60*60+f(s)*60+f(t)}s`,W=({months:e=[],daysOfMonth:a=[],daysOfWeek:s=[]})=>{var c,n;const t=e.sort((o,l)=>parseInt(o)-parseInt(l)).join(","),r=a.sort((o,l)=>o-l).join(","),u=(((n=(c=s==null?void 0:s[0])==null?void 0:c.split(","))==null?void 0:n.length)>1?s[0].split(","):s).sort((o,l)=>parseInt(o)-parseInt(l)).join(",");return{month:t,dayOfMonth:r,dayOfWeek:u}},g=(e,a,s)=>{const{hour:t,minute:r,second:i,phase:u,cronString:c}=a,{preset:n,months:o,days:l,daysOfMonth:p,daysOfWeek:m}=s;if(n==="string"){const d=`${c}#${c}`;e.schedule.spec.cronString=[d],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const d=Q(l,t,r,i);e.schedule.spec.interval=[{interval:d,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:d,dayOfMonth:v,dayOfWeek:y}=W({months:o,daysOfMonth:p,daysOfWeek:m});e.schedule.spec.calendar=[{year:"*",month:n==="month"?d:"",dayOfMonth:n==="month"?v:"",dayOfWeek:n==="week"?y:"",hour:t,minute:r,second:i}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},x=async({action:e,spec:a,presets:s})=>{const{namespace:t,name:r,workflowId:i,workflowType:u,taskQueue:c}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:i,workflowType:{name:u},taskQueue:{name:c}}}}};g(n,a,s),h.set(!0);const{error:o}=await I({namespace:t,body:n});o?(w.set(o),h.set(!1)):setTimeout(()=>{w.set(""),h.set(!1),S(M({namespace:t}))},2e3)},z=async({action:e,spec:a,presets:s},t,r)=>{const{namespace:i,name:u,workflowId:c,workflowType:n,taskQueue:o}=e,{preset:l}=s,p={schedule_id:r,schedule:{...t,action:{startWorkflow:{...t.action.startWorkflow,workflowId:c,workflowType:{name:n},taskQueue:{name:o}}}}};l==="existing"?p.schedule.spec=t.spec:(g(p,a,s),p.schedule.spec.structuredCalendar=[]),h.set(!0);const{error:m}=await T({namespace:i,scheduleId:r,body:p});m?(w.set(m),h.set(!1)):setTimeout(()=>{S(O({namespace:i,scheduleId:u})),w.set(""),h.set(!1)},2e3)},h=k(!1),w=k("");export{x as a,w as e,h as l,z as s}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.23aa4f31.js b/ui/assets/local/_app/immutable/chunks/settings-service.df92da83.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/settings-service.23aa4f31.js rename to ui/assets/local/_app/immutable/chunks/settings-service.df92da83.js index 20042dc87d..18c355658e 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.23aa4f31.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.df92da83.js @@ -1 +1 @@ -import{s as D}from"./settings.b49a4593.js";import{r as t,a as k,g as h}from"./route-for-api.c219d4fc.js";function A(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const w=/(tmprl\.cloud|tmprl-test\.cloud)$/,C=async(m=fetch)=>{var l,c,d,i,u,f;const b=t("settings"),r=await k(b,{request:m}),a=A(),o={auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(c=r==null?void 0:r.Auth)==null?void 0:c.Options},baseUrl:h(),codec:{endpoint:(d=r==null?void 0:r.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=r==null?void 0:r.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=r==null?void 0:r.Codec)==null?void 0:u.IncludeCredentials,decodeEventHistoryDownload:(f=r==null?void 0:r.Codec)==null?void 0:f.DecodeEventHistoryDownload},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":w.test(window.location.hostname)},get isLocal(){return a?a==="local":w.test(window.location.hostname)},envOverride:Boolean(a)},version:r==null?void 0:r.Version};return D.set(o),o};export{C as f,w as i}; +import{s as D}from"./settings.b49a4593.js";import{r as t,a as k,g as h}from"./route-for-api.4d253eb1.js";function A(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const w=/(tmprl\.cloud|tmprl-test\.cloud)$/,C=async(m=fetch)=>{var l,c,d,i,u,f;const b=t("settings"),r=await k(b,{request:m}),a=A(),o={auth:{enabled:!!((l=r==null?void 0:r.Auth)!=null&&l.Enabled),options:(c=r==null?void 0:r.Auth)==null?void 0:c.Options},baseUrl:h(),codec:{endpoint:(d=r==null?void 0:r.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=r==null?void 0:r.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=r==null?void 0:r.Codec)==null?void 0:u.IncludeCredentials,decodeEventHistoryDownload:(f=r==null?void 0:r.Codec)==null?void 0:f.DecodeEventHistoryDownload},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,workflowTerminateDisabled:!!(r!=null&&r.WorkflowTerminateDisabled),workflowCancelDisabled:!!(r!=null&&r.WorkflowCancelDisabled),workflowSignalDisabled:!!(r!=null&&r.WorkflowSignalDisabled),workflowResetDisabled:!!(r!=null&&r.WorkflowResetDisabled),batchActionsDisabled:!!(r!=null&&r.BatchActionsDisabled),hideWorkflowQueryErrors:!!(r!=null&&r.HideWorkflowQueryErrors),showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return a?a==="cloud":w.test(window.location.hostname)},get isLocal(){return a?a==="local":w.test(window.location.hostname)},envOverride:Boolean(a)},version:r==null?void 0:r.Version};return D.set(o),o};export{C as f,w as i}; diff --git a/ui/assets/local/_app/immutable/chunks/singletons.91a64e01.js b/ui/assets/local/_app/immutable/chunks/singletons.8ade5c10.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/singletons.91a64e01.js rename to ui/assets/local/_app/immutable/chunks/singletons.8ade5c10.js index a98f208556..bf8db4468f 100644 --- a/ui/assets/local/_app/immutable/chunks/singletons.91a64e01.js +++ b/ui/assets/local/_app/immutable/chunks/singletons.8ade5c10.js @@ -1 +1 @@ -import{w as u}from"./index.1302fd9b.js";import{a as h}from"./paths.d13b6714.js";const g="1697041809171",w="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function i(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function _(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function y(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_(e)}}function T(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const l=e instanceof SVGAElement?e.target.baseVal:e.target,s=!n||!!l||v(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external")||e.hasAttribute("download");return{url:n,external:s,target:l}}function x(e){let t=null,n=null,l=null,s=null,r=null,a=null,o=e;for(;o&&o!==document.documentElement;)l===null&&(l=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),t===null&&(t=i(o,"keepfocus")),n===null&&(n=i(o,"noscroll")),r===null&&(r=i(o,"reload")),a===null&&(a=i(o,"replacestate")),o=_(o);return{preload_code:d[l??"off"],preload_data:d[s??"off"],keep_focus:t==="off"?!1:t===""?!0:null,noscroll:n==="off"?!1:n===""?!0:null,reload:r==="off"?!1:r===""?!0:null,replace_state:a==="off"?!1:a===""?!0:null}}function p(e){const t=u(e);let n=!0;function l(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function r(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:l,set:s,subscribe:r}}function b(){const{set:e,subscribe:t}=u(!1);let n;async function l(){clearTimeout(n);const s=await fetch(`${h}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(s.ok){const a=(await s.json()).version!==g;return a&&(e(!0),clearTimeout(n)),a}else throw new Error(`Version check failed: ${s.status}`)}return{subscribe:t,check:l}}function v(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let k;function O(e){k=e.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,w as a,T as b,x as c,S as d,O as e,y as f,I as g,k as h,v as i,U as s}; +import{w as u}from"./index.1302fd9b.js";import{a as h}from"./paths.332820a7.js";const g="1697123814768",w="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function I(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function S(){return{x:pageXOffset,y:pageYOffset}}function i(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function _(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function y(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=_(e)}}function T(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const l=e instanceof SVGAElement?e.target.baseVal:e.target,s=!n||!!l||v(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external")||e.hasAttribute("download");return{url:n,external:s,target:l}}function x(e){let t=null,n=null,l=null,s=null,r=null,a=null,o=e;for(;o&&o!==document.documentElement;)l===null&&(l=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),t===null&&(t=i(o,"keepfocus")),n===null&&(n=i(o,"noscroll")),r===null&&(r=i(o,"reload")),a===null&&(a=i(o,"replacestate")),o=_(o);return{preload_code:d[l??"off"],preload_data:d[s??"off"],keep_focus:t==="off"?!1:t===""?!0:null,noscroll:n==="off"?!1:n===""?!0:null,reload:r==="off"?!1:r===""?!0:null,replace_state:a==="off"?!1:a===""?!0:null}}function p(e){const t=u(e);let n=!0;function l(){n=!0,t.update(a=>a)}function s(a){n=!1,t.set(a)}function r(a){let o;return t.subscribe(c=>{(o===void 0||n&&c!==o)&&a(o=c)})}return{notify:l,set:s,subscribe:r}}function b(){const{set:e,subscribe:t}=u(!1);let n;async function l(){clearTimeout(n);const s=await fetch(`${h}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(s.ok){const a=(await s.json()).version!==g;return a&&(e(!0),clearTimeout(n)),a}else throw new Error(`Version check failed: ${s.status}`)}return{subscribe:t,check:l}}function v(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let k;function O(e){k=e.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,w as a,T as b,x as c,S as d,O as e,y as f,I as g,k as h,v as i,U as s}; diff --git a/ui/assets/local/_app/immutable/chunks/stores.6ee4c480.js b/ui/assets/local/_app/immutable/chunks/stores.b96d31b2.js similarity index 69% rename from ui/assets/local/_app/immutable/chunks/stores.6ee4c480.js rename to ui/assets/local/_app/immutable/chunks/stores.b96d31b2.js index 0cd1b908db..b63796fc5c 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.6ee4c480.js +++ b/ui/assets/local/_app/immutable/chunks/stores.b96d31b2.js @@ -1 +1 @@ -import"./index.6779d4e2.js";import{s as t}from"./singletons.91a64e01.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},u={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{u as p,c as u}; +import"./index.6779d4e2.js";import{s as t}from"./singletons.8ade5c10.js";const r=()=>{const s=t;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},u={subscribe(s){return r().page.subscribe(s)}},c={subscribe(s){const e=r().updated;return c.check=e.check,e.subscribe(s)},check:()=>{throw new Error("Cannot check updated store before subscribing")}};export{u as p,c as u}; diff --git a/ui/assets/local/_app/immutable/chunks/toggle-buttons.1411130f.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.6c8ac659.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.1411130f.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.6c8ac659.js index d570174361..3f895a2b7f 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.1411130f.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.6c8ac659.js @@ -1 +1 @@ -import{af as J,S as G,b as H,a as P,e as U,f as E,j as g,g as b,k as h,T as j,K,N as T,U as L,m as k,p as C,q as y,ai as z,O as B,P as d,Q as O,z as Q,h as R,R as M,V as W,G as S,H as V,I as q,J as A,C as X,c as Y,D as Z,d as w,u as D,E as $,L as F,F as x,ae as ee}from"./index.6779d4e2.js";import{p as te}from"./stores.6ee4c480.js";import{I as le}from"./icon.a4e81b70.js";function se(n){return J(n)}function ne(n){let e;const s=n[9].default,a=S(s,n,n[8],null);return{c(){a&&a.c()},l(t){a&&a.l(t)},m(t,l){a&&a.m(t,l),e=!0},p(t,l){a&&a.p&&(!e||l&256)&&V(a,s,t,t[8],e?A(s,t[8],l,null):q(t[8]),null)},i(t){e||(g(a,t),e=!0)},o(t){b(a,t),e=!1},d(t){a&&a.d(t)}}}function ae(n){let e,s,a,t,l;s=new le({props:{name:n[1]}});const r=n[9].default,f=S(r,n,n[8],null);return{c(){e=k("div"),X(s.$$.fragment),a=Y(),t=k("span"),f&&f.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var c=y(e);Z(s.$$.fragment,c),a=w(c),t=C(c,"SPAN",{class:!0});var _=y(t);f&&f.l(_),_.forEach(h),c.forEach(h),this.h()},h(){D(t,"class","hidden md:block"),D(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),$(s,e,null),F(e,a),F(e,t),f&&f.m(t,null),l=!0},p(i,c){const _={};c&2&&(_.name=i[1]),s.$set(_),f&&f.p&&(!l||c&256)&&V(f,r,i,i[8],l?A(r,i[8],c,null):q(i[8]),null)},i(i){l||(g(s.$$.fragment,i),g(f,i),l=!0)},o(i){b(s.$$.fragment,i),b(f,i),l=!1},d(i){i&&h(e),x(s),f&&f.d(i)}}}function N(n){let e,s,a,t,l,r,f,i;const c=[ae,ne],_=[];function p(o,u){return o[1]?0:1}s=p(n),a=_[s]=c[s](n);let v=[{class:t="toggle-button "+n[0]},{href:l=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],m={};for(let o=0;o{_[I]=null}),R(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=M(v,[(!r||u&1&&t!==(t="toggle-button "+o[0]))&&{class:t},(!r||u&72&&l!==(l=o[3]?o[3]+o[6].url.search:null))&&{href:l},{role:"button"},{tabindex:"0"},u&128&&o[7]]),/-/.test(o[3]?"a":"button")?z(e,m):B(e,m),d(e,"group",o[2]),d(e,"active",o[3]?o[6].url.pathname.includes(o[4]):o[5]),d(e,"rounded-lg",!o[2]),d(e,"svelte-1yudo3l",!0)},i(o){r||(g(a),r=!0)},o(o){b(a),r=!1},d(o){o&&h(e),_[s].d(),f=!1,i()}}}function oe(n){let e=n[3]?"a":"button",s,a,t=(n[3]?"a":"button")&&N(n);return{c(){t&&t.c(),s=U()},l(l){t&&t.l(l),s=U()},m(l,r){t&&t.m(l,r),E(l,s,r),a=!0},p(l,[r]){l[3],e?P(e,l[3]?"a":"button")?(t.d(1),t=N(l),t.c(),t.m(s.parentNode,s)):t.p(l,r):(t=N(l),t.c(),t.m(s.parentNode,s)),e=l[3]?"a":"button"},i(l){a||(g(t),a=!0)},o(l){b(t),a=!1},d(l){l&&h(s),t&&t.d(l)}}}function ue(n,e,s){const a=["class","icon","group","href","base","active"];let t=j(e,a),l;K(n,te,u=>s(6,l=u));let{$$slots:r={},$$scope:f}=e,{class:i=""}=e,{icon:c=null}=e,{group:_=se("group")}=e,{href:p=""}=e,{base:v=p}=e,{active:m=!1}=e;function o(u){W.call(this,n,u)}return n.$$set=u=>{e=T(T({},e),L(u)),s(7,t=j(e,a)),"class"in u&&s(0,i=u.class),"icon"in u&&s(1,c=u.icon),"group"in u&&s(2,_=u.group),"href"in u&&s(3,p=u.href),"base"in u&&s(4,v=u.base),"active"in u&&s(5,m=u.active),"$$scope"in u&&s(8,f=u.$$scope)},[i,c,_,p,v,m,l,t,f,r,o]}class me extends G{constructor(e){super(),H(this,e,ue,oe,P,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function re(n){let e,s;const a=n[1].default,t=S(a,n,n[0],null);return{c(){e=k("div"),t&&t.c(),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=y(e);t&&t.l(r),r.forEach(h),this.h()},h(){D(e,"class","flex")},m(l,r){E(l,e,r),t&&t.m(e,null),s=!0},p(l,[r]){t&&t.p&&(!s||r&1)&&V(t,a,l,l[0],s?A(a,l[0],r,null):q(l[0]),null)},i(l){s||(g(t,l),s=!0)},o(l){b(t,l),s=!1},d(l){l&&h(e),t&&t.d(l)}}}function ie(n,e,s){let{$$slots:a={},$$scope:t}=e;return ee("group",!0),n.$$set=l=>{"$$scope"in l&&s(0,t=l.$$scope)},[t,a]}class de extends G{constructor(e){super(),H(this,e,ie,re,P,{})}}export{de as T,me as a}; +import{af as J,S as G,b as H,a as P,e as U,f as E,j as g,g as b,k as h,T as j,K,N as T,U as L,m as k,p as C,q as y,ai as z,O as B,P as d,Q as O,z as Q,h as R,R as M,V as W,G as S,H as V,I as q,J as A,C as X,c as Y,D as Z,d as w,u as D,E as $,L as F,F as x,ae as ee}from"./index.6779d4e2.js";import{p as te}from"./stores.b96d31b2.js";import{I as le}from"./icon.a4e81b70.js";function se(n){return J(n)}function ne(n){let e;const s=n[9].default,a=S(s,n,n[8],null);return{c(){a&&a.c()},l(t){a&&a.l(t)},m(t,l){a&&a.m(t,l),e=!0},p(t,l){a&&a.p&&(!e||l&256)&&V(a,s,t,t[8],e?A(s,t[8],l,null):q(t[8]),null)},i(t){e||(g(a,t),e=!0)},o(t){b(a,t),e=!1},d(t){a&&a.d(t)}}}function ae(n){let e,s,a,t,l;s=new le({props:{name:n[1]}});const r=n[9].default,f=S(r,n,n[8],null);return{c(){e=k("div"),X(s.$$.fragment),a=Y(),t=k("span"),f&&f.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var c=y(e);Z(s.$$.fragment,c),a=w(c),t=C(c,"SPAN",{class:!0});var _=y(t);f&&f.l(_),_.forEach(h),c.forEach(h),this.h()},h(){D(t,"class","hidden md:block"),D(e,"class","flex items-center gap-2")},m(i,c){E(i,e,c),$(s,e,null),F(e,a),F(e,t),f&&f.m(t,null),l=!0},p(i,c){const _={};c&2&&(_.name=i[1]),s.$set(_),f&&f.p&&(!l||c&256)&&V(f,r,i,i[8],l?A(r,i[8],c,null):q(i[8]),null)},i(i){l||(g(s.$$.fragment,i),g(f,i),l=!0)},o(i){b(s.$$.fragment,i),b(f,i),l=!1},d(i){i&&h(e),x(s),f&&f.d(i)}}}function N(n){let e,s,a,t,l,r,f,i;const c=[ae,ne],_=[];function p(o,u){return o[1]?0:1}s=p(n),a=_[s]=c[s](n);let v=[{class:t="toggle-button "+n[0]},{href:l=n[3]?n[3]+n[6].url.search:null},{role:"button"},{tabindex:"0"},n[7]],m={};for(let o=0;o{_[I]=null}),R(),a=_[s],a?a.p(o,u):(a=_[s]=c[s](o),a.c()),g(a,1),a.m(e,null)),m=M(v,[(!r||u&1&&t!==(t="toggle-button "+o[0]))&&{class:t},(!r||u&72&&l!==(l=o[3]?o[3]+o[6].url.search:null))&&{href:l},{role:"button"},{tabindex:"0"},u&128&&o[7]]),/-/.test(o[3]?"a":"button")?z(e,m):B(e,m),d(e,"group",o[2]),d(e,"active",o[3]?o[6].url.pathname.includes(o[4]):o[5]),d(e,"rounded-lg",!o[2]),d(e,"svelte-1yudo3l",!0)},i(o){r||(g(a),r=!0)},o(o){b(a),r=!1},d(o){o&&h(e),_[s].d(),f=!1,i()}}}function oe(n){let e=n[3]?"a":"button",s,a,t=(n[3]?"a":"button")&&N(n);return{c(){t&&t.c(),s=U()},l(l){t&&t.l(l),s=U()},m(l,r){t&&t.m(l,r),E(l,s,r),a=!0},p(l,[r]){l[3],e?P(e,l[3]?"a":"button")?(t.d(1),t=N(l),t.c(),t.m(s.parentNode,s)):t.p(l,r):(t=N(l),t.c(),t.m(s.parentNode,s)),e=l[3]?"a":"button"},i(l){a||(g(t),a=!0)},o(l){b(t),a=!1},d(l){l&&h(s),t&&t.d(l)}}}function ue(n,e,s){const a=["class","icon","group","href","base","active"];let t=j(e,a),l;K(n,te,u=>s(6,l=u));let{$$slots:r={},$$scope:f}=e,{class:i=""}=e,{icon:c=null}=e,{group:_=se("group")}=e,{href:p=""}=e,{base:v=p}=e,{active:m=!1}=e;function o(u){W.call(this,n,u)}return n.$$set=u=>{e=T(T({},e),L(u)),s(7,t=j(e,a)),"class"in u&&s(0,i=u.class),"icon"in u&&s(1,c=u.icon),"group"in u&&s(2,_=u.group),"href"in u&&s(3,p=u.href),"base"in u&&s(4,v=u.base),"active"in u&&s(5,m=u.active),"$$scope"in u&&s(8,f=u.$$scope)},[i,c,_,p,v,m,l,t,f,r,o]}class me extends G{constructor(e){super(),H(this,e,ue,oe,P,{class:0,icon:1,group:2,href:3,base:4,active:5})}}function re(n){let e,s;const a=n[1].default,t=S(a,n,n[0],null);return{c(){e=k("div"),t&&t.c(),this.h()},l(l){e=C(l,"DIV",{class:!0});var r=y(e);t&&t.l(r),r.forEach(h),this.h()},h(){D(e,"class","flex")},m(l,r){E(l,e,r),t&&t.m(e,null),s=!0},p(l,[r]){t&&t.p&&(!s||r&1)&&V(t,a,l,l[0],s?A(a,l[0],r,null):q(l[0]),null)},i(l){s||(g(t,l),s=!0)},o(l){b(t,l),s=!1},d(l){l&&h(e),t&&t.d(l)}}}function ie(n,e,s){let{$$slots:a={},$$scope:t}=e;return ee("group",!0),n.$$set=l=>{"$$scope"in l&&s(0,t=l.$$scope)},[t,a]}class de extends G{constructor(e){super(),H(this,e,ie,re,P,{})}}export{de as T,me as a}; diff --git a/ui/assets/local/_app/immutable/chunks/workers-list.d2e5ee2d.js b/ui/assets/local/_app/immutable/chunks/workers-list.817f7dee.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/workers-list.d2e5ee2d.js rename to ui/assets/local/_app/immutable/chunks/workers-list.817f7dee.js index 5e6d0a50a7..4fb002d6dc 100644 --- a/ui/assets/local/_app/immutable/chunks/workers-list.d2e5ee2d.js +++ b/ui/assets/local/_app/immutable/chunks/workers-list.817f7dee.js @@ -1,3 +1,3 @@ -import{S as Se,b as Ae,a as Fe,m as v,w as V,c as F,C as W,p as g,q as E,x as S,k as c,d as Q,D as L,u as k,f as h,L as w,E as K,y as re,j as T,z as J,g as D,h as U,F as M,K as ue,e as G,aa as Ne,ab as Re,n as Y,a7 as Qe,P as ce}from"./index.6779d4e2.js";import{B as Be}from"./badge.d458ea0a.js";import{c as Oe,C as ie}from"./pollers-service.1d9f1daf.js";import{E as He}from"./empty-state.c8d40bbf.js";import{I as ae}from"./icon.a4e81b70.js";import{T as Pe,a as Ce}from"./table-header-row.5433617e.js";import{T as Ve}from"./table-row.e455010e.js";import{t as A}from"./translate.29a4bc43.js";import{t as qe,r as We,b as _e}from"./format-date.79dd40f6.js";import{d as Le,a as Ke,e as Me,f as me,h as de}from"./task-queue-compatibility.cf5696f8.js";function pe(n,e,l){const t=n.slice();t[8]=e[l];const r=Me(t[8]);t[9]=r;const s=Oe(t[2],t[0],t[9]);return t[10]=s,t}function he(n,e,l){const t=n.slice();return t[13]=e[l],t[15]=l,t}function $e(n,e,l){const t=n.slice();return t[9]=e[l],t}function be(n){let e,l=A("workers","version-sets")+"",t,r,s,u;return s=new Pe({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Xe],default:[Je]},$$scope:{ctx:n}}}),{c(){e=v("h2"),t=V(l),r=F(),W(s.$$.fragment),this.h()},l(a){e=g(a,"H2",{class:!0,"data-testid":!0});var f=E(e);t=S(f,l),f.forEach(c),r=Q(a),L(s.$$.fragment,a),this.h()},h(){k(e,"class","text-base font-medium"),k(e,"data-testid","version-sets")},m(a,f){h(a,e,f),w(e,t),h(a,r,f),K(s,a,f),u=!0},p(a,f){const i={};f&262160&&(i.$$scope={dirty:f,ctx:a}),s.$set(i)},i(a){u||(T(s.$$.fragment,a),u=!0)},o(a){D(s.$$.fragment,a),u=!1},d(a){a&&c(e),a&&c(r),M(s,a)}}}function ke(n){let e,l,t,r,s;return t=new He({props:{title:A("workers","no-version-sets-found")}}),{c(){e=v("tr"),l=v("td"),W(t.$$.fragment),r=F(),this.h()},l(u){e=g(u,"TR",{class:!0});var a=E(e);l=g(a,"TD",{colspan:!0});var f=E(l);L(t.$$.fragment,f),f.forEach(c),r=Q(a),a.forEach(c),this.h()},h(){k(l,"colspan","6"),k(e,"class","w-full")},m(u,a){h(u,e,a),w(e,l),K(t,l,null),w(e,r),s=!0},p:Y,i(u){s||(T(t.$$.fragment,u),s=!0)},o(u){D(t.$$.fragment,u),s=!1},d(u){u&&c(e),M(t)}}}function we(n){let e=A("workers","overall")+"",l;return{c(){l=V(e)},l(t){l=S(t,e)},m(t,r){h(t,l,r)},p:Y,d(t){t&&c(l)}}}function je(n){let e,l=n[15]===0&&we();return{c(){l&&l.c(),e=G()},l(t){l&&l.l(t),e=G()},m(t,r){l&&l.m(t,r),h(t,e,r)},p(t,r){t[15]===0?l?l.p(t,r):(l=we(),l.c(),l.m(e.parentNode,e)):l&&(l.d(1),l=null)},d(t){l&&l.d(t),t&&c(e)}}}function ze(n){let e=A("workers","default")+"",l;return{c(){l=V(e)},l(t){l=S(t,e)},m(t,r){h(t,l,r)},p:Y,d(t){t&&c(l)}}}function Ye(n){let e=A("workers","default")+"",l,t;return{c(){l=V(e),t=F()},l(r){l=S(r,e),t=Q(r)},m(r,s){h(r,l,s),h(r,t,s)},p:Y,d(r){r&&c(l),r&&c(t)}}}function ve(n){let e,l;return e=new ie({props:{active:!1,buildId:n[9],$$slots:{"default-worker":[Ye]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,r){K(e,t,r),l=!0},p(t,r){const s={};r&16&&(s.buildId=t[9]),r&262144&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(T(e.$$.fragment,t),l=!0)},o(t){D(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Ge(n){let e,l,t,r,s,u,a;l=new ie({props:{defaultVersion:!0,active:n[15]===0,buildId:me(n[13].buildIds),$$slots:{"default-worker":[ze],"overall-default-worker":[je]},$$scope:{ctx:n}}});let f=de(n[13].buildIds),i=[];for(let o=0;oD(i[o],1,1,()=>{i[o]=null});return{c(){e=v("td"),W(l.$$.fragment),t=F(),r=v("td"),s=v("div");for(let o=0;of[15];for(let f=0;f{a=null}),U()):(a=ke(),a.c(),T(a,1),a.m(t.parentNode,t)))},i(f){if(!r){for(let i=0;i{m=null}),U()),(!q||H&98)&&i!==(i=_e(p[8].lastAccessTime,p[5],{relative:p[6]})+"")&&re(_,i);let x=b;b=X(p,H),b===x?j[b].p(p,H):(J(),D(j[x],1,1,()=>{j[x]=null}),U(),I=j[b],I?I.p(p,H):(I=j[b]=N[b](p),I.c()),T(I,1),I.m(d,null));let ee=O;O=te(p,H),O===ee?z[O].p(p,H):(J(),D(z[ee],1,1,()=>{z[ee]=null}),U(),$=z[O],$?$.p(p,H):($=z[O]=Z[O](p),$.c()),T($,1),$.m(B,null))},i(p){q||(T(m),T(I),T($),q=!0)},o(p){D(m),D(I),D($),q=!1},d(p){p&&c(e),p&&c(s),m&&m.d(p),p&&c(u),p&&c(a),p&&c(o),p&&c(d),j[b].d(),p&&c(C),p&&c(B),z[O].d(),p&&c(P)}}}function Ie(n,e){let l,t,r;return t=new Ve({props:{"data-testid":"worker-row",$$slots:{default:[at]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(s){l=G(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,u){h(s,l,u),K(t,s,u),r=!0},p(s,u){e=s;const a={};u&262255&&(a.$$scope={dirty:u,ctx:e}),t.$set(a)},i(s){r||(T(t.$$.fragment,s),r=!0)},o(s){D(t.$$.fragment,s),r=!1},d(s){s&&c(l),M(t,s)}}}function it(n){var f;let e=[],l=new Map,t,r,s=(f=n[1])==null?void 0:f.pollers;const u=i=>i[8].identity;for(let i=0;i{a=null}),U()):(a=Ee(i),a.c(),T(a,1),a.m(t.parentNode,t)))},i(i){if(!r){for(let _=0;_D(i[o],1,1,()=>{i[o]=null});return{c(){e=v("td"),W(l.$$.fragment),t=F(),r=v("td"),s=v("div");for(let o=0;of[15];for(let f=0;f{a=null}),U()):(a=ke(),a.c(),T(a,1),a.m(t.parentNode,t)))},i(f){if(!r){for(let i=0;i{m=null}),U()),(!q||H&98)&&i!==(i=_e(p[8].lastAccessTime,p[5],{relative:p[6]})+"")&&re(_,i);let x=b;b=X(p,H),b===x?j[b].p(p,H):(J(),D(j[x],1,1,()=>{j[x]=null}),U(),I=j[b],I?I.p(p,H):(I=j[b]=N[b](p),I.c()),T(I,1),I.m(d,null));let ee=O;O=te(p,H),O===ee?z[O].p(p,H):(J(),D(z[ee],1,1,()=>{z[ee]=null}),U(),$=z[O],$?$.p(p,H):($=z[O]=Z[O](p),$.c()),T($,1),$.m(B,null))},i(p){q||(T(m),T(I),T($),q=!0)},o(p){D(m),D(I),D($),q=!1},d(p){p&&c(e),p&&c(s),m&&m.d(p),p&&c(u),p&&c(a),p&&c(o),p&&c(d),j[b].d(),p&&c(C),p&&c(B),z[O].d(),p&&c(P)}}}function Ie(n,e){let l,t,r;return t=new Ve({props:{"data-testid":"worker-row",$$slots:{default:[at]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(s){l=G(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,u){h(s,l,u),K(t,s,u),r=!0},p(s,u){e=s;const a={};u&262255&&(a.$$scope={dirty:u,ctx:e}),t.$set(a)},i(s){r||(T(t.$$.fragment,s),r=!0)},o(s){D(t.$$.fragment,s),r=!1},d(s){s&&c(l),M(t,s)}}}function it(n){var f;let e=[],l=new Map,t,r,s=(f=n[1])==null?void 0:f.pollers;const u=i=>i[8].identity;for(let i=0;i{a=null}),U()):(a=Ee(i),a.c(),T(a,1),a.m(t.parentNode,t)))},i(i){if(!r){for(let _=0;_{R=null}),U());const q={};P&262146&&(q.$$scope={dirty:P,ctx:$}),b.$set(q);const m={};P&262255&&(m.$$scope={dirty:P,ctx:$}),C.$set(m)},i($){B||(T(R),T(b.$$.fragment,$),T(C.$$.fragment,$),B=!0)},o($){D(R),D(b.$$.fragment,$),D(C.$$.fragment,$),B=!1},d($){$&&c(e),R&&R.d(),M(b),M(C)}}}function ct(n,e,l){let t,r,s,u;ue(n,qe,o=>l(5,s=o)),ue(n,We,o=>l(6,u=o));let{taskQueue:a}=e,{workers:f}=e,{compatibility:i=void 0}=e,{reachability:_=void 0}=e;return n.$$set=o=>{"taskQueue"in o&&l(0,a=o.taskQueue),"workers"in o&&l(1,f=o.workers),"compatibility"in o&&l(7,i=o.compatibility),"reachability"in o&&l(2,_=o.reachability)},n.$$.update=()=>{n.$$.dirty&128&&l(4,t=Le(i)),n.$$.dirty&128&&l(3,r=Ke(i))},[a,f,_,r,t,s,u,i]}class gt extends Se{constructor(e){super(),Ae(this,e,ct,ut,Fe,{taskQueue:0,workers:1,compatibility:7,reachability:2})}}export{gt as W}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-service.fd47d996.js b/ui/assets/local/_app/immutable/chunks/workflow-service.2a5b4d45.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/workflow-service.fd47d996.js rename to ui/assets/local/_app/immutable/chunks/workflow-service.2a5b4d45.js index 699b23027c..bc2a4d7b63 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-service.fd47d996.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-service.2a5b4d45.js @@ -1 +1 @@ -import{ac as h,n as m}from"./index.6779d4e2.js";import{t as U}from"./translate.29a4bc43.js";import{b as j,e as q}from"./decode-payload.727281ed.js";import{c as F}from"./is.ba28a1ea.js";import{s as K}from"./settings.b49a4593.js";import{s as _}from"./simplify-attributes.bbb8ccfe.js";import{l as L,d as J}from"./data-encoder-config.37ceca8b.js";import{B as G}from"./route-for.cec09c4c.js";import{b as H,p as M,a as l,r as w,c as X,i as Y,d as Z}from"./route-for-api.c219d4fc.js";import{s as x}from"./parse-with-big-int.0036a80a.js";import{d as I}from"./index.1302fd9b.js";import{p as oo}from"./stores.6ee4c480.js";import{i as to}from"./version-check.d006b302.js";import{c as $}from"./cluster.cbce199d.js";import{t as no}from"./versions.6b1b4529.js";import{l as ro,m as eo,n as O,o as io}from"./format-time.8258873a.js";import{v as ao}from"./toaster.ef510498.js";const so=(o=K)=>!h(o).disableWriteActions,co=(o=[])=>o.map(t=>{const n=_(t,!0),r=t.activityId;return{...n,id:r}}),fo=o=>F(o)||F(o.indexedFields)?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:j(e)}),{})},p=o=>{var b,g,T,W,S,A,C;const t=fo(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.type.name,r=o.workflowExecutionInfo.execution.workflowId,e=o.workflowExecutionInfo.execution.runId,i=o.workflowExecutionInfo.startTime,a=o.workflowExecutionInfo.closeTime,s=o.workflowExecutionInfo.executionTime,f=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",d=o.workflowExecutionInfo.historyLength,E=o.workflowExecutionInfo.historySizeBytes,u=`/workflows/${r}/${e}`,k=((g=(b=o==null?void 0:o.executionConfig)==null?void 0:b.taskQueue)==null?void 0:g.name)||((T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.taskQueue),y=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.mostRecentWorkerVersionStamp,R=(S=o==null?void 0:o.workflowExecutionInfo)==null?void 0:S.parentNamespaceId,z=(A=o==null?void 0:o.workflowExecutionInfo)==null?void 0:A.parentExecution,V=o.workflowExecutionInfo.stateTransitionCount,D=(C=o.executionConfig)==null?void 0:C.defaultWorkflowTaskTimeout,N=co(o.pendingActivities),Q=(o==null?void 0:o.pendingChildren)??[];return{name:n,id:r,runId:e,startTime:i,endTime:a,executionTime:s,status:f,historyEvents:d,historySizeBytes:E,searchAttributes:t,url:u,taskQueue:k,mostRecentWorkerVersionStamp:y,pendingActivities:N,pendingChildren:Q,parentNamespaceId:R,parent:z,stateTransitionCount:V,isRunning:c,defaultWorkflowTaskTimeout:D,get canBeTerminated(){return c&&so()}}},v=o=>(o.executions||[]).map(t=>p({workflowExecutionInfo:t})),uo=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),P=(o,t=G)=>t?uo(o):o,lo=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||to(t,"1.19")},wo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},B=I([oo],([o])=>{var t,n,r;return(r=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),mo=I([$,no,B],([o,t,n])=>lo(o,t)||n);I([$,B],([o,t])=>wo(o)||t);const ko={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},yo=["workflowId","workflowType","timeRange","executionStatus","closeTime"],ho=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),Eo=o=>{if(typeof o!="string")return!1;for(const t of yo)if(t===o)return!0;return!1},xo=(o,t,n)=>{const r=ko[o];return t==="All"?"":ro(t)||eo(t)?n||h(mo)?`${r} > "${O(t)}"`:`${r} BETWEEN "${O(t)}" AND "${io()}"`:`${r}="${t}"`},Io=(o,t)=>Object.entries(o).map(([n,r])=>{if(Eo(n)&&ho(r))return xo(n,r,t)}).filter(Boolean),po=(o,t=!1)=>Io(o,t).join(" and "),Qo=async(o,t,n=fetch)=>{let r=0,e=0;try{const i=w("workflows.count",{namespace:o});if(t){const a=l(i,{params:{query:t},onError:m,handleError:m,request:n}),s=l(i,{params:{query:""},onError:m,handleError:m,request:n}),[f,c]=await Promise.all([a,s]);e=parseInt((f==null?void 0:f.count)??"0"),r=parseInt(c==null?void 0:c.count)}else{const a=await l(i,{params:{},onError:m,handleError:m,request:n});r=parseInt(a==null?void 0:a.count)}}catch{}return{count:e,totalCount:r}},bo=async(o,t,n=fetch,r=!1)=>{const e=t.query||po(t,r);let i;try{i=decodeURIComponent(e)}catch{i=e}const a=r?"workflows.archived":"workflows";let s="";const f=u=>{var k,y;X(u),(k=u==null?void 0:u.body)!=null&&k.message||u!=null&&u.status?s=((y=u==null?void 0:u.body)==null?void 0:y.message)??`Error fetching workflows: ${u.status}: ${u.statusText}`:s="Error fetching workflows: Server failed to respond"},c=w(a,{namespace:o}),{executions:d,nextPageToken:E}=await l(c,{params:{query:i},onError:f,handleError:f,request:n})??{executions:[],nextPageToken:""};return{workflows:v({executions:d}),nextPageToken:String(E),error:s}},Uo=async({namespace:o,workflowId:t,url:n},r=fetch)=>{var d;const e="workflows",i=n??H(o),a=M(e,{namespace:o}),s=i+a,{executions:f}=await l(s,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},c=(d=v({executions:f}))==null?void 0:d[0];return{runId:c==null?void 0:c.runId}},jo=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const i=s=>{(Y(s)||Z(s))&&(e=!1)},a=w(r,{namespace:o});return await l(a,{params:{pageSize:"1"},onError:i,handleError:i,request:t}),{authorized:e}},qo=async(o,t,n=fetch)=>bo(o,t,n,!0);async function Ko(o,t=fetch){const n=w("workflow",o);return l(n,{request:t}).then(p)}async function _o({workflow:o,namespace:t,reason:n,identity:r}){const e=w("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await l(e,{options:{method:"POST",body:x({reason:n,...r&&{identity:r}})},notifyOnError:!1})}async function Lo({namespace:o,workflowId:t,runId:n},r=fetch){const e=w("workflow.cancel",{namespace:o,workflowId:t,runId:n});return l(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function Jo({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e,settings:i,accessToken:a}){var c;const s=w("workflow.signal",{namespace:o,workflowId:t,runId:n});let f=null;if(e)if((c=i==null?void 0:i.codec)!=null&&c.endpoint){const d=await q({payloads:{payloads:[JSON.parse(e)]},namespace:o,settings:i,accessToken:a,encode:!0});if(h(L)==="error")throw new Error(h(J)||U("encode-failed"));f=(d==null?void 0:d.payloads)??null}else f=[{metadata:{encoding:P("json/plain")},data:P(e)}];return l(s,{notifyOnError:!1,options:{method:"POST",body:x({signalName:r,input:{payloads:f}})}})}async function Go({namespace:o,workflowId:t,runId:n,eventId:r,reason:e,resetReapplyType:i}){const a=w("workflow.reset",{namespace:o,workflowId:t,runId:n}),s={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,resetReapplyType:i,requestId:ao(),reason:e};return l(a,{notifyOnError:!1,options:{method:"POST",body:x(s)}})}async function Ho(o,t=fetch){const n=e=>{console.error(e)},r=w("workflow",o);return l(r,{request:t,onError:n,handleError:n}).then(p)}export{mo as a,bo as b,Lo as c,Qo as d,jo as e,Ko as f,po as g,qo as h,Ho as i,B as j,Uo as k,Go as r,Jo as s,_o as t,so as w}; +import{ac as h,n as m}from"./index.6779d4e2.js";import{t as U}from"./translate.29a4bc43.js";import{b as j,e as q}from"./decode-payload.4c64ec1f.js";import{c as F}from"./is.ba28a1ea.js";import{s as K}from"./settings.b49a4593.js";import{s as _}from"./simplify-attributes.bbb8ccfe.js";import{l as L,d as J}from"./data-encoder-config.37ceca8b.js";import{B as G}from"./route-for.31ffa191.js";import{b as H,p as M,a as l,r as w,c as X,i as Y,d as Z}from"./route-for-api.4d253eb1.js";import{s as x}from"./parse-with-big-int.0036a80a.js";import{d as I}from"./index.1302fd9b.js";import{p as oo}from"./stores.b96d31b2.js";import{i as to}from"./version-check.d006b302.js";import{c as $}from"./cluster.cbce199d.js";import{t as no}from"./versions.6b1b4529.js";import{l as ro,m as eo,n as O,o as io}from"./format-time.8258873a.js";import{v as ao}from"./toaster.ef510498.js";const so=(o=K)=>!h(o).disableWriteActions,co=(o=[])=>o.map(t=>{const n=_(t,!0),r=t.activityId;return{...n,id:r}}),fo=o=>F(o)||F(o.indexedFields)?{}:{indexedFields:Object.entries(o.indexedFields).reduce((n,[r,e])=>({...n,[r]:j(e)}),{})},p=o=>{var b,g,T,W,S,A,C;const t=fo(o.workflowExecutionInfo.searchAttributes),n=o.workflowExecutionInfo.type.name,r=o.workflowExecutionInfo.execution.workflowId,e=o.workflowExecutionInfo.execution.runId,i=o.workflowExecutionInfo.startTime,a=o.workflowExecutionInfo.closeTime,s=o.workflowExecutionInfo.executionTime,f=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",d=o.workflowExecutionInfo.historyLength,E=o.workflowExecutionInfo.historySizeBytes,u=`/workflows/${r}/${e}`,k=((g=(b=o==null?void 0:o.executionConfig)==null?void 0:b.taskQueue)==null?void 0:g.name)||((T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.taskQueue),y=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.mostRecentWorkerVersionStamp,R=(S=o==null?void 0:o.workflowExecutionInfo)==null?void 0:S.parentNamespaceId,z=(A=o==null?void 0:o.workflowExecutionInfo)==null?void 0:A.parentExecution,V=o.workflowExecutionInfo.stateTransitionCount,D=(C=o.executionConfig)==null?void 0:C.defaultWorkflowTaskTimeout,N=co(o.pendingActivities),Q=(o==null?void 0:o.pendingChildren)??[];return{name:n,id:r,runId:e,startTime:i,endTime:a,executionTime:s,status:f,historyEvents:d,historySizeBytes:E,searchAttributes:t,url:u,taskQueue:k,mostRecentWorkerVersionStamp:y,pendingActivities:N,pendingChildren:Q,parentNamespaceId:R,parent:z,stateTransitionCount:V,isRunning:c,defaultWorkflowTaskTimeout:D,get canBeTerminated(){return c&&so()}}},v=o=>(o.executions||[]).map(t=>p({workflowExecutionInfo:t})),uo=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),P=(o,t=G)=>t?uo(o):o,lo=(o,t)=>{var n;return((n=o==null?void 0:o.visibilityStore)==null?void 0:n.includes("elasticsearch"))||to(t,"1.19")},wo=o=>{var t;return(t=o==null?void 0:o.visibilityStore)==null?void 0:t.includes("elasticsearch")},B=I([oo],([o])=>{var t,n,r;return(r=(n=(t=o.data)==null?void 0:t.settings)==null?void 0:n.runtimeEnvironment)==null?void 0:r.isCloud}),mo=I([$,no,B],([o,t,n])=>lo(o,t)||n);I([$,B],([o,t])=>wo(o)||t);const ko={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},yo=["workflowId","workflowType","timeRange","executionStatus","closeTime"],ho=o=>!(o===null||o===void 0||o===""||typeof o=="string"&&o==="undefined"),Eo=o=>{if(typeof o!="string")return!1;for(const t of yo)if(t===o)return!0;return!1},xo=(o,t,n)=>{const r=ko[o];return t==="All"?"":ro(t)||eo(t)?n||h(mo)?`${r} > "${O(t)}"`:`${r} BETWEEN "${O(t)}" AND "${io()}"`:`${r}="${t}"`},Io=(o,t)=>Object.entries(o).map(([n,r])=>{if(Eo(n)&&ho(r))return xo(n,r,t)}).filter(Boolean),po=(o,t=!1)=>Io(o,t).join(" and "),Qo=async(o,t,n=fetch)=>{let r=0,e=0;try{const i=w("workflows.count",{namespace:o});if(t){const a=l(i,{params:{query:t},onError:m,handleError:m,request:n}),s=l(i,{params:{query:""},onError:m,handleError:m,request:n}),[f,c]=await Promise.all([a,s]);e=parseInt((f==null?void 0:f.count)??"0"),r=parseInt(c==null?void 0:c.count)}else{const a=await l(i,{params:{},onError:m,handleError:m,request:n});r=parseInt(a==null?void 0:a.count)}}catch{}return{count:e,totalCount:r}},bo=async(o,t,n=fetch,r=!1)=>{const e=t.query||po(t,r);let i;try{i=decodeURIComponent(e)}catch{i=e}const a=r?"workflows.archived":"workflows";let s="";const f=u=>{var k,y;X(u),(k=u==null?void 0:u.body)!=null&&k.message||u!=null&&u.status?s=((y=u==null?void 0:u.body)==null?void 0:y.message)??`Error fetching workflows: ${u.status}: ${u.statusText}`:s="Error fetching workflows: Server failed to respond"},c=w(a,{namespace:o}),{executions:d,nextPageToken:E}=await l(c,{params:{query:i},onError:f,handleError:f,request:n})??{executions:[],nextPageToken:""};return{workflows:v({executions:d}),nextPageToken:String(E),error:s}},Uo=async({namespace:o,workflowId:t,url:n},r=fetch)=>{var d;const e="workflows",i=n??H(o),a=M(e,{namespace:o}),s=i+a,{executions:f}=await l(s,{params:{query:`WorkflowId="${t}"`,pageSize:"1"},request:r})??{executions:[]},c=(d=v({executions:f}))==null?void 0:d[0];return{runId:c==null?void 0:c.runId}},jo=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const i=s=>{(Y(s)||Z(s))&&(e=!1)},a=w(r,{namespace:o});return await l(a,{params:{pageSize:"1"},onError:i,handleError:i,request:t}),{authorized:e}},qo=async(o,t,n=fetch)=>bo(o,t,n,!0);async function Ko(o,t=fetch){const n=w("workflow",o);return l(n,{request:t}).then(p)}async function _o({workflow:o,namespace:t,reason:n,identity:r}){const e=w("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await l(e,{options:{method:"POST",body:x({reason:n,...r&&{identity:r}})},notifyOnError:!1})}async function Lo({namespace:o,workflowId:t,runId:n},r=fetch){const e=w("workflow.cancel",{namespace:o,workflowId:t,runId:n});return l(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function Jo({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e,settings:i,accessToken:a}){var c;const s=w("workflow.signal",{namespace:o,workflowId:t,runId:n});let f=null;if(e)if((c=i==null?void 0:i.codec)!=null&&c.endpoint){const d=await q({payloads:{payloads:[JSON.parse(e)]},namespace:o,settings:i,accessToken:a,encode:!0});if(h(L)==="error")throw new Error(h(J)||U("encode-failed"));f=(d==null?void 0:d.payloads)??null}else f=[{metadata:{encoding:P("json/plain")},data:P(e)}];return l(s,{notifyOnError:!1,options:{method:"POST",body:x({signalName:r,input:{payloads:f}})}})}async function Go({namespace:o,workflowId:t,runId:n,eventId:r,reason:e,resetReapplyType:i}){const a=w("workflow.reset",{namespace:o,workflowId:t,runId:n}),s={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,resetReapplyType:i,requestId:ao(),reason:e};return l(a,{notifyOnError:!1,options:{method:"POST",body:x(s)}})}async function Ho(o,t=fetch){const n=e=>{console.error(e)},r=w("workflow",o);return l(r,{request:t,onError:n,handleError:n}).then(p)}export{mo as a,bo as b,Lo as c,Qo as d,jo as e,Ko as f,po as g,qo as h,Ho as i,B as j,Uo as k,Go as r,Jo as s,_o as t,so as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflows.5bb4bd2c.js b/ui/assets/local/_app/immutable/chunks/workflows.8837af08.js similarity index 82% rename from ui/assets/local/_app/immutable/chunks/workflows.5bb4bd2c.js rename to ui/assets/local/_app/immutable/chunks/workflows.8837af08.js index 43f1a42905..54cb19436a 100644 --- a/ui/assets/local/_app/immutable/chunks/workflows.5bb4bd2c.js +++ b/ui/assets/local/_app/immutable/chunks/workflows.8837af08.js @@ -1 +1 @@ -import{d as a,r as u,w as e}from"./index.1302fd9b.js";import{p as i}from"./stores.6ee4c480.js";import{t as d}from"./translate.29a4bc43.js";import{a as p,b as k,d as y}from"./workflow-service.fd47d996.js";const m=300,h=async(r,s,o)=>{s.set(!0);try{await o()}catch(t){console.error(t)}r.set(!1),setTimeout(()=>{s.set(!1)},m)},b=e(0),W=a([i],([r])=>{var s,o;return(o=(s=r.data)==null?void 0:s.settings)==null?void 0:o.hideWorkflowQueryErrors}),g=a([i],([r])=>r.params.namespace),q=a([i],([r])=>r.url.searchParams.get("query")),C=a([g,q,b,p,W],([r,s,o,t,n])=>({namespace:r,query:s,refresh:o,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:n})),E=r=>{V.set(r)},Q=r=>C.subscribe(({namespace:s,query:o,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:n})=>{h(A,v,async()=>{const{workflows:w,error:l}=await k(s,{query:o});if(r(w),t){const f=await y(s,o);E(f)}l?n?c.set(d("workflows","workflows-error-querying")):c.set(l):c.set("")})}),T=e(""),v=e(!0),A=e(!0),V=e({count:0,totalCount:0}),c=e(""),j=u([],Q),z=e("");export{z as a,c as b,V as c,j as d,A as l,b as r,v as u,T as w}; +import{d as a,r as u,w as e}from"./index.1302fd9b.js";import{p as i}from"./stores.b96d31b2.js";import{t as d}from"./translate.29a4bc43.js";import{a as p,b as k,d as y}from"./workflow-service.2a5b4d45.js";const m=300,h=async(r,s,o)=>{s.set(!0);try{await o()}catch(t){console.error(t)}r.set(!1),setTimeout(()=>{s.set(!1)},m)},b=e(0),W=a([i],([r])=>{var s,o;return(o=(s=r.data)==null?void 0:s.settings)==null?void 0:o.hideWorkflowQueryErrors}),g=a([i],([r])=>r.params.namespace),q=a([i],([r])=>r.url.searchParams.get("query")),C=a([g,q,b,p,W],([r,s,o,t,n])=>({namespace:r,query:s,refresh:o,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:n})),E=r=>{V.set(r)},Q=r=>C.subscribe(({namespace:s,query:o,supportsAdvancedVisibility:t,hideWorkflowQueryErrors:n})=>{h(A,v,async()=>{const{workflows:w,error:l}=await k(s,{query:o});if(r(w),t){const f=await y(s,o);E(f)}l?n?c.set(d("workflows","workflows-error-querying")):c.set(l):c.set("")})}),T=e(""),v=e(!0),A=e(!0),V=e({count:0,totalCount:0}),c=e(""),j=u([],Q),z=e("");export{z as a,c as b,V as c,j as d,A as l,b as r,v as u,T as w}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.9436853c.js b/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.053ab711.js similarity index 76% rename from ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.9436853c.js rename to ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.053ab711.js index 9078fbbbe6..db6d6fdd62 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.9436853c.js +++ b/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.053ab711.js @@ -1 +1 @@ -import{S as r,b as n,a as p,K as m,o as u}from"../chunks/index.6779d4e2.js";import{g as c}from"../chunks/navigation.a7086f0c.js";import{p as i}from"../chunks/stores.6ee4c480.js";import{d as l}from"../chunks/data-converter-config.abfd533c.js";import{t as f}from"../chunks/toaster.ef510498.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;l.set(t),c("/",{replaceState:!0}),f.push({message:"Successfully set encoder"})}),[]}class h extends r{constructor(o){super(),n(this,o,g,null,p,{})}}export{h as default}; +import{S as r,b as n,a as p,K as m,o as u}from"../chunks/index.6779d4e2.js";import{g as c}from"../chunks/navigation.8e7fd3e5.js";import{p as i}from"../chunks/stores.b96d31b2.js";import{d as l}from"../chunks/data-converter-config.abfd533c.js";import{t as f}from"../chunks/toaster.ef510498.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;l.set(t),c("/",{replaceState:!0}),f.push({message:"Successfully set encoder"})}),[]}class h extends r{constructor(o){super(),n(this,o,g,null,p,{})}}export{h as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js index 056307271e..8c7dbea8cc 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js @@ -1 +1 @@ -import{S as G,b as I,a as L,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as P,e as $,f as C,z as b,aa as z,h as w,k as F,ab as B}from"../chunks/index.6779d4e2.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.8e1963cc.js";import{P as D}from"../chunks/pagination.b9ceda84.js";import{t as g}from"../chunks/translate.29a4bc43.js";import{b as k,e as K}from"../chunks/event-view.446dd84e.js";import{e as M}from"../chunks/filters.c175002a.js";import{a as H}from"../chunks/import-events.9bea305e.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new j({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,o;return e=new q({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),v(e,n,f),o=!0},p(n,f){t=n;const s={};f&256&&(s.event=t[10]),f&2&&(s.expandAll=t[1]==="true"),f&512&&(s.initialItem=t[9]),e.$set(s)},i(n){o||(c(e.$$.fragment,n),o=!0)},o(n){p(e.$$.fragment,n),o=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,o,n=i[8];const f=a=>`${a[10].id}-${a[10].timestamp}`;for(let a=0;a{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(a){if(!o){for(let l=0;l({8:e,9:o}),({visibleItems:e,initialItem:o})=>(e?256:0)|(o?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},p(e,[o]){const n={};o&1&&(n.items=e[0]),o&8962&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,k,u=>r(1,f=u)),_(i,H,u=>r(5,s=u)),_(i,K,u=>r(6,a=u)),_(i,M,u=>r(7,l=u));function m(u){P(k,f=u.detail.expanded,f)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,o=a==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=o.filter(u=>e?u.category===e:u))},[n,f,m,e,o,s,a,l]}class ee extends G{constructor(t){super(),I(this,t,R,Q,L,{})}}export{ee as default}; +import{S as G,b as I,a as L,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as P,e as $,f as C,z as b,aa as z,h as w,k as F,ab as B}from"../chunks/index.6779d4e2.js";import{E as N,a as j,b as q}from"../chunks/event-summary-table.ec2c2f15.js";import{P as D}from"../chunks/pagination.46c6618d.js";import{t as g}from"../chunks/translate.29a4bc43.js";import{b as k,e as K}from"../chunks/event-view.446dd84e.js";import{e as M}from"../chunks/filters.291afea8.js";import{a as H}from"../chunks/import-events.9bea305e.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new j({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,o;return e=new q({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),v(e,n,f),o=!0},p(n,f){t=n;const s={};f&256&&(s.event=t[10]),f&2&&(s.expandAll=t[1]==="true"),f&512&&(s.initialItem=t[9]),e.$set(s)},i(n){o||(c(e.$$.fragment,n),o=!0)},o(n){p(e.$$.fragment,n),o=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,o,n=i[8];const f=a=>`${a[10].id}-${a[10].timestamp}`;for(let a=0;a{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(a){if(!o){for(let l=0;l({8:e,9:o}),({visibleItems:e,initialItem:o})=>(e?256:0)|(o?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},p(e,[o]){const n={};o&1&&(n.items=e[0]),o&8962&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,k,u=>r(1,f=u)),_(i,H,u=>r(5,s=u)),_(i,K,u=>r(6,a=u)),_(i,M,u=>r(7,l=u));function m(u){P(k,f=u.detail.expanded,f)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,o=a==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=o.filter(u=>e?u.category===e:u))},[n,f,m,e,o,s,a,l]}class ee extends G{constructor(t){super(),I(this,t,R,Q,L,{})}}export{ee as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js index 3f18c7e016..b5db6e33f3 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js @@ -1 +1 @@ -import{S as I,b as L,a as P,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as z,e as $,f as C,z as b,aa as B,h as w,k as F,ab as N}from"../chunks/index.6779d4e2.js";import{E as j,a as q,b as D}from"../chunks/event-summary-table.8e1963cc.js";import{P as K}from"../chunks/pagination.b9ceda84.js";import{t as g}from"../chunks/translate.29a4bc43.js";import{b as k,e as M}from"../chunks/event-view.446dd84e.js";import{e as G}from"../chunks/filters.c175002a.js";import{i as H}from"../chunks/import-events.9bea305e.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new q({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,o;return e=new D({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),v(e,n,f),o=!0},p(n,f){t=n;const s={};f&256&&(s.event=t[10]),f&2&&(s.expandAll=t[1]==="true"),f&512&&(s.initialItem=t[9]),e.$set(s)},i(n){o||(c(e.$$.fragment,n),o=!0)},o(n){p(e.$$.fragment,n),o=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,o,n=i[8];const f=a=>`${a[10].id}-${a[10].timestamp}`;for(let a=0;a{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(a){if(!o){for(let l=0;l({8:e,9:o}),({visibleItems:e,initialItem:o})=>(e?256:0)|(o?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},p(e,[o]){const n={};o&1&&(n.items=e[0]),o&8962&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,k,u=>r(1,f=u)),_(i,H,u=>r(5,s=u)),_(i,M,u=>r(6,a=u)),_(i,G,u=>r(7,l=u));function m(u){z(k,f=u.detail.expanded,f)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,o=a==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=o.filter(u=>e?u.category===e:u))},[n,f,m,e,o,s,a,l]}class ee extends I{constructor(t){super(),L(this,t,R,Q,P,{})}}export{ee as default}; +import{S as I,b as L,a as P,C as h,D as d,E as v,j as c,g as p,F as y,K as _,a5 as z,e as $,f as C,z as b,aa as B,h as w,k as F,ab as N}from"../chunks/index.6779d4e2.js";import{E as j,a as q,b as D}from"../chunks/event-summary-table.ec2c2f15.js";import{P as K}from"../chunks/pagination.46c6618d.js";import{t as g}from"../chunks/translate.29a4bc43.js";import{b as k,e as M}from"../chunks/event-view.446dd84e.js";import{e as G}from"../chunks/filters.291afea8.js";import{i as H}from"../chunks/import-events.9bea305e.js";function E(i,t,r){const e=i.slice();return e[10]=t[r],e}function S(i){let t,r;return t=new q({}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function A(i,t){let r,e,o;return e=new D({props:{event:t[10],compact:x,expandAll:t[1]==="true",initialItem:t[9]}}),{key:i,first:null,c(){r=$(),h(e.$$.fragment),this.h()},l(n){r=$(),d(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),v(e,n,f),o=!0},p(n,f){t=n;const s={};f&256&&(s.event=t[10]),f&2&&(s.expandAll=t[1]==="true"),f&512&&(s.initialItem=t[9]),e.$set(s)},i(n){o||(c(e.$$.fragment,n),o=!0)},o(n){p(e.$$.fragment,n),o=!1},d(n){n&&F(r),y(e,n)}}}function J(i){let t=[],r=new Map,e,o,n=i[8];const f=a=>`${a[10].id}-${a[10].timestamp}`;for(let a=0;a{s=null}),w()):s||(s=S(),s.c(),c(s,1),s.m(e.parentNode,e)))},i(a){if(!o){for(let l=0;l({8:e,9:o}),({visibleItems:e,initialItem:o})=>(e?256:0)|(o?512:0)]},$$scope:{ctx:i}}}),{c(){h(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,o){v(t,e,o),r=!0},p(e,[o]){const n={};o&1&&(n.items=e[0]),o&8962&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}let x=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,k,u=>r(1,f=u)),_(i,H,u=>r(5,s=u)),_(i,M,u=>r(6,a=u)),_(i,G,u=>r(7,l=u));function m(u){z(k,f=u.detail.expanded,f)}return i.$$.update=()=>{i.$$.dirty&128&&r(3,e=l),i.$$.dirty&96&&r(4,o=a==="descending"?[...s].reverse():s),i.$$.dirty&24&&r(0,n=o.filter(u=>e?u.category===e:u))},[n,f,m,e,o,s,a,l]}class ee extends I{constructor(t){super(),L(this,t,R,Q,P,{})}}export{ee as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js similarity index 95% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js index 551cb92717..d39f466892 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js @@ -1 +1 @@ -import{S as M,b as P,a as Q,G as R,m as j,w as A,c as q,C as T,p as I,q as N,x as F,k as c,d as y,D as V,u as _,f as S,L as g,E as C,H as W,I as X,J as Y,j as d,g as h,F as D,K as Z,n as J}from"../chunks/index.6779d4e2.js";import{E as x}from"../chunks/event-history-file-import.9cdb1d3e.js";import{T as ee,a as G}from"../chunks/toggle-buttons.1411130f.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{l as te}from"../chunks/namespaces.65099960.js";import{e as k}from"../chunks/route-for.cec09c4c.js";function se(a){let t=H("workflows","history")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ne(a){let t=H("workflows","compact")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function oe(a){let t=H("workflows","json")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ae(a){let t,s,e,o,l,i;return t=new G({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new G({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),l=new G({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=q(),T(e.$$.fragment),o=q(),T(l.$$.fragment)},l(n){V(t.$$.fragment,n),s=y(n),V(e.$$.fragment,n),o=y(n),V(l.$$.fragment,n)},m(n,r){C(t,n,r),S(n,s,r),C(e,n,r),S(n,o,r),C(l,n,r),i=!0},p(n,r){const b={};r&1&&(b.href=k(n[0],"feed")),r&4&&(b.$$scope={dirty:r,ctx:n}),t.$set(b);const m={};r&1&&(m.href=k(n[0],"compact")),r&4&&(m.$$scope={dirty:r,ctx:n}),e.$set(m);const p={};r&1&&(p.href=k(n[0],"json")),r&4&&(p.$$scope={dirty:r,ctx:n}),l.$set(p)},i(n){i||(d(t.$$.fragment,n),d(e.$$.fragment,n),d(l.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),h(e.$$.fragment,n),h(l.$$.fragment,n),i=!1},d(n){D(t,n),n&&c(s),D(e,n),n&&c(o),D(l,n)}}}function le(a){let t,s,e,o=H("events","import-event-history")+"",l,i,n,r,b,m,p,v,L,E;r=new x({}),v=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const U=a[1].default,$=R(U,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),l=A(o),i=q(),n=j("div"),T(r.$$.fragment),b=q(),m=j("nav"),p=j("div"),T(v.$$.fragment),L=q(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{class:!0});var K=N(e);l=F(K,o),K.forEach(c),i=y(w),n=I(w,"DIV",{class:!0});var O=N(n);V(r.$$.fragment,O),O.forEach(c),w.forEach(c),b=y(u),m=I(u,"NAV",{class:!0,"aria-label":!0});var z=N(m);p=I(z,"DIV",{id:!0,class:!0});var B=N(p);V(v.$$.fragment,B),B.forEach(c),z.forEach(c),L=y(u),$&&$.l(u),u.forEach(c),this.h()},h(){_(e,"class","text-lg font-medium"),_(n,"class","flex gap-4"),_(s,"class","flex items-end justify-between gap-4 pb-4"),_(s,"aria-label",H("events","import-event-history")),_(p,"id","event-view-toggle"),_(p,"class","flex gap-4 bg-white"),_(m,"class","flex items-end justify-end gap-4"),_(m,"aria-label",H("events","event-history-view")),_(t,"id","event-history")},m(f,u){S(f,t,u),g(t,s),g(s,e),g(e,l),g(s,i),g(s,n),C(r,n,null),g(t,b),g(t,m),g(m,p),C(v,p,null),g(t,L),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),v.$set(w),$&&$.p&&(!E||u&4)&&W($,U,f,f[2],E?Y(U,f[2],u,null):X(f[2]),null)},i(f){E||(d(r.$$.fragment,f),d(v.$$.fragment,f),d($,f),E=!0)},o(f){h(r.$$.fragment,f),h(v.$$.fragment,f),h($,f),E=!1},d(f){f&&c(t),D(r),D(v),$&&$.d(f)}}}function re(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:o={},$$scope:l}=t;return a.$$set=i=>{"$$scope"in i&&s(2,l=i.$$scope)},[e,o,l]}class fe extends M{constructor(t){super(),P(this,t,re,le,Q,{})}}function ie(a){let t;const s=a[0].default,e=R(s,a,a[1],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,l){e&&e.m(o,l),t=!0},p(o,l){e&&e.p&&(!t||l&2)&&W(e,s,o,o[1],t?Y(s,o[1],l,null):X(o[1]),null)},i(o){t||(d(e,o),t=!0)},o(o){h(e,o),t=!1},d(o){e&&e.d(o)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,o){C(t,e,o),s=!0},p(e,[o]){const l={};o&2&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){D(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:o}=t;return a.$$set=l=>{"$$scope"in l&&s(1,o=l.$$scope)},[e,o]}class de extends M{constructor(t){super(),P(this,t,ue,$e,Q,{})}}export{de as default}; +import{S as M,b as P,a as Q,G as R,m as j,w as A,c as q,C as T,p as I,q as N,x as F,k as c,d as y,D as V,u as _,f as S,L as g,E as C,H as W,I as X,J as Y,j as d,g as h,F as D,K as Z,n as J}from"../chunks/index.6779d4e2.js";import{E as x}from"../chunks/event-history-file-import.fffa59db.js";import{T as ee,a as G}from"../chunks/toggle-buttons.6c8ac659.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{l as te}from"../chunks/namespaces.65099960.js";import{e as k}from"../chunks/route-for.31ffa191.js";function se(a){let t=H("workflows","history")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ne(a){let t=H("workflows","compact")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function oe(a){let t=H("workflows","json")+"",s;return{c(){s=A(t)},l(e){s=F(e,t)},m(e,o){S(e,s,o)},p:J,d(e){e&&c(s)}}}function ae(a){let t,s,e,o,l,i;return t=new G({props:{icon:"feed",href:k(a[0],"feed"),$$slots:{default:[se]},$$scope:{ctx:a}}}),e=new G({props:{icon:"compact",href:k(a[0],"compact"),$$slots:{default:[ne]},$$scope:{ctx:a}}}),l=new G({props:{icon:"json",href:k(a[0],"json"),$$slots:{default:[oe]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment),s=q(),T(e.$$.fragment),o=q(),T(l.$$.fragment)},l(n){V(t.$$.fragment,n),s=y(n),V(e.$$.fragment,n),o=y(n),V(l.$$.fragment,n)},m(n,r){C(t,n,r),S(n,s,r),C(e,n,r),S(n,o,r),C(l,n,r),i=!0},p(n,r){const b={};r&1&&(b.href=k(n[0],"feed")),r&4&&(b.$$scope={dirty:r,ctx:n}),t.$set(b);const m={};r&1&&(m.href=k(n[0],"compact")),r&4&&(m.$$scope={dirty:r,ctx:n}),e.$set(m);const p={};r&1&&(p.href=k(n[0],"json")),r&4&&(p.$$scope={dirty:r,ctx:n}),l.$set(p)},i(n){i||(d(t.$$.fragment,n),d(e.$$.fragment,n),d(l.$$.fragment,n),i=!0)},o(n){h(t.$$.fragment,n),h(e.$$.fragment,n),h(l.$$.fragment,n),i=!1},d(n){D(t,n),n&&c(s),D(e,n),n&&c(o),D(l,n)}}}function le(a){let t,s,e,o=H("events","import-event-history")+"",l,i,n,r,b,m,p,v,L,E;r=new x({}),v=new ee({props:{$$slots:{default:[ae]},$$scope:{ctx:a}}});const U=a[1].default,$=R(U,a,a[2],null);return{c(){t=j("section"),s=j("nav"),e=j("h3"),l=A(o),i=q(),n=j("div"),T(r.$$.fragment),b=q(),m=j("nav"),p=j("div"),T(v.$$.fragment),L=q(),$&&$.c(),this.h()},l(f){t=I(f,"SECTION",{id:!0});var u=N(t);s=I(u,"NAV",{class:!0,"aria-label":!0});var w=N(s);e=I(w,"H3",{class:!0});var K=N(e);l=F(K,o),K.forEach(c),i=y(w),n=I(w,"DIV",{class:!0});var O=N(n);V(r.$$.fragment,O),O.forEach(c),w.forEach(c),b=y(u),m=I(u,"NAV",{class:!0,"aria-label":!0});var z=N(m);p=I(z,"DIV",{id:!0,class:!0});var B=N(p);V(v.$$.fragment,B),B.forEach(c),z.forEach(c),L=y(u),$&&$.l(u),u.forEach(c),this.h()},h(){_(e,"class","text-lg font-medium"),_(n,"class","flex gap-4"),_(s,"class","flex items-end justify-between gap-4 pb-4"),_(s,"aria-label",H("events","import-event-history")),_(p,"id","event-view-toggle"),_(p,"class","flex gap-4 bg-white"),_(m,"class","flex items-end justify-end gap-4"),_(m,"aria-label",H("events","event-history-view")),_(t,"id","event-history")},m(f,u){S(f,t,u),g(t,s),g(s,e),g(e,l),g(s,i),g(s,n),C(r,n,null),g(t,b),g(t,m),g(m,p),C(v,p,null),g(t,L),$&&$.m(t,null),E=!0},p(f,[u]){const w={};u&5&&(w.$$scope={dirty:u,ctx:f}),v.$set(w),$&&$.p&&(!E||u&4)&&W($,U,f,f[2],E?Y(U,f[2],u,null):X(f[2]),null)},i(f){E||(d(r.$$.fragment,f),d(v.$$.fragment,f),d($,f),E=!0)},o(f){h(r.$$.fragment,f),h(v.$$.fragment,f),h($,f),E=!1},d(f){f&&c(t),D(r),D(v),$&&$.d(f)}}}function re(a,t,s){let e;Z(a,te,i=>s(0,e=i));let{$$slots:o={},$$scope:l}=t;return a.$$set=i=>{"$$scope"in i&&s(2,l=i.$$scope)},[e,o,l]}class fe extends M{constructor(t){super(),P(this,t,re,le,Q,{})}}function ie(a){let t;const s=a[0].default,e=R(s,a,a[1],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,l){e&&e.m(o,l),t=!0},p(o,l){e&&e.p&&(!t||l&2)&&W(e,s,o,o[1],t?Y(s,o[1],l,null):X(o[1]),null)},i(o){t||(d(e,o),t=!0)},o(o){h(e,o),t=!1},d(o){e&&e.d(o)}}}function $e(a){let t,s;return t=new fe({props:{$$slots:{default:[ie]},$$scope:{ctx:a}}}),{c(){T(t.$$.fragment)},l(e){V(t.$$.fragment,e)},m(e,o){C(t,e,o),s=!0},p(e,[o]){const l={};o&2&&(l.$$scope={dirty:o,ctx:e}),t.$set(l)},i(e){s||(d(t.$$.fragment,e),s=!0)},o(e){h(t.$$.fragment,e),s=!1},d(e){D(t,e)}}}function ue(a,t,s){let{$$slots:e={},$$scope:o}=t;return a.$$set=l=>{"$$scope"in l&&s(1,o=l.$$scope)},[e,o]}class de extends M{constructor(t){super(),P(this,t,ue,$e,Q,{})}}export{de as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.35143581.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.35143581.js deleted file mode 100644 index 3d2c4eed0d..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.35143581.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.0ca14ca8.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.4239d48d.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.4239d48d.js new file mode 100644 index 0000000000..c9d5954e6c --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.4239d48d.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.2146a367.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.97e60250.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.9752f3ef.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.97e60250.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.9752f3ef.js index 9105704c43..f0361fbedb 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.97e60250.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.9752f3ef.js @@ -1 +1 @@ -import{S as et,b as st,a as at,m as l,w as N,c as w,C,p as m,q as f,x as O,k as i,d as H,D,u as o,f as rt,L as r,E as S,j as T,g as V,F as L,n as nt}from"../chunks/index.6779d4e2.js";import{E as ot}from"../chunks/event-history-file-import.9cdb1d3e.js";import{C as Z}from"../chunks/code-block.c796ec58.js";import{L as it}from"../chunks/link.8030aa06.js";import{t as $}from"../chunks/translate.29a4bc43.js";import{s as tt}from"../chunks/parse-with-big-int.0036a80a.js";function ct(v){let t=$("events","api-history-link")+"",s;return{c(){s=N(t)},l(e){s=O(e,t)},m(e,b){rt(e,s,b)},p:nt,d(e){e&&i(s)}}}function lt(v){let t,s,e,b=$("events","import-event-history")+"",A,B,E,h,F,n,x,P,W,I,p,z,k,M=$("events","history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),g=new Z({props:{content:tt(v[0]),inline:!0,copyIconTitle:$("copy-icon-title"),copySuccessIconTitle:$("copy-success-icon-title")}}),_=new Z({props:{content:tt(mt),inline:!0,copyIconTitle:$("copy-icon-title"),copySuccessIconTitle:$("copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),A=N(b),B=w(),E=l("div"),C(h.$$.fragment),F=w(),n=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=w(),I=l("div"),C(p.$$.fragment),z=w(),k=l("h2"),G=N(M),J=w(),u=l("div"),C(g.$$.fragment),K=w(),C(_.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var c=f(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var y=f(s);e=m(y,"H1",{class:!0,"data-testid":!0});var Q=f(e);A=O(Q,b),Q.forEach(i),B=H(y),E=m(y,"DIV",{class:!0});var R=f(E);D(h.$$.fragment,R),R.forEach(i),y.forEach(i),F=H(c),n=m(c,"DIV",{class:!0});var d=f(n);x=m(d,"CODE",{class:!0});var U=f(x);P=O(U,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),U.forEach(i),W=H(d),I=m(d,"DIV",{class:!0});var X=f(I);D(p.$$.fragment,X),X.forEach(i),z=H(d),k=m(d,"H2",{class:!0});var Y=f(k);G=O(Y,M),Y.forEach(i),J=H(d),u=m(d,"DIV",{class:!0});var q=f(u);D(g.$$.fragment,q),K=H(q),D(_.$$.fragment,q),q.forEach(i),d.forEach(i),c.forEach(i),this.h()},h(){o(e,"class","text-lg font-medium"),o(e,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(s,"id","event-history"),o(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(s,"aria-label",$("events","import-event-history")),o(x,"class","text-md bg-gray-200 p-2 font-medium"),o(I,"class","mt-4"),o(k,"class","mt-8 text-lg font-medium"),o(u,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,c){rt(a,t,c),r(t,s),r(s,e),r(e,A),r(s,B),r(s,E),S(h,E,null),r(t,F),r(t,n),r(n,x),r(x,P),r(n,W),r(n,I),S(p,I,null),r(n,z),r(n,k),r(k,G),r(n,J),r(n,u),S(g,u,null),r(u,K),S(_,u,null),j=!0},p(a,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:a}),p.$set(y)},i(a){j||(T(h.$$.fragment,a),T(p.$$.fragment,a),T(g.$$.fragment,a),T(_.$$.fragment,a),j=!0)},o(a){V(h.$$.fragment,a),V(p.$$.fragment,a),V(g.$$.fragment,a),V(_.$$.fragment,a),j=!1},d(a){a&&i(t),L(h),L(p),L(g),L(_)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends et{constructor(t){super(),st(this,t,ft,lt,at,{})}}function ut(v){let t,s;return t=new pt({}),{c(){C(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,b){S(t,e,b),s=!0},p:nt,i(e){s||(T(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}class yt extends et{constructor(t){super(),st(this,t,null,ut,at,{})}}export{yt as default}; +import{S as et,b as st,a as at,m as l,w as N,c as w,C,p as m,q as f,x as O,k as i,d as H,D,u as o,f as rt,L as r,E as S,j as T,g as V,F as L,n as nt}from"../chunks/index.6779d4e2.js";import{E as ot}from"../chunks/event-history-file-import.fffa59db.js";import{C as Z}from"../chunks/code-block.c796ec58.js";import{L as it}from"../chunks/link.8030aa06.js";import{t as $}from"../chunks/translate.29a4bc43.js";import{s as tt}from"../chunks/parse-with-big-int.0036a80a.js";function ct(v){let t=$("events","api-history-link")+"",s;return{c(){s=N(t)},l(e){s=O(e,t)},m(e,b){rt(e,s,b)},p:nt,d(e){e&&i(s)}}}function lt(v){let t,s,e,b=$("events","import-event-history")+"",A,B,E,h,F,n,x,P,W,I,p,z,k,M=$("events","history-expected-formats")+"",G,J,u,g,K,_,j;return h=new ot({}),p=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[ct]},$$scope:{ctx:v}}}),g=new Z({props:{content:tt(v[0]),inline:!0,copyIconTitle:$("copy-icon-title"),copySuccessIconTitle:$("copy-success-icon-title")}}),_=new Z({props:{content:tt(mt),inline:!0,copyIconTitle:$("copy-icon-title"),copySuccessIconTitle:$("copy-success-icon-title")}}),{c(){t=l("section"),s=l("nav"),e=l("h1"),A=N(b),B=w(),E=l("div"),C(h.$$.fragment),F=w(),n=l("div"),x=l("code"),P=N("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W=w(),I=l("div"),C(p.$$.fragment),z=w(),k=l("h2"),G=N(M),J=w(),u=l("div"),C(g.$$.fragment),K=w(),C(_.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var c=f(t);s=m(c,"NAV",{id:!0,class:!0,"aria-label":!0});var y=f(s);e=m(y,"H1",{class:!0,"data-testid":!0});var Q=f(e);A=O(Q,b),Q.forEach(i),B=H(y),E=m(y,"DIV",{class:!0});var R=f(E);D(h.$$.fragment,R),R.forEach(i),y.forEach(i),F=H(c),n=m(c,"DIV",{class:!0});var d=f(n);x=m(d,"CODE",{class:!0});var U=f(x);P=O(U,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),U.forEach(i),W=H(d),I=m(d,"DIV",{class:!0});var X=f(I);D(p.$$.fragment,X),X.forEach(i),z=H(d),k=m(d,"H2",{class:!0});var Y=f(k);G=O(Y,M),Y.forEach(i),J=H(d),u=m(d,"DIV",{class:!0});var q=f(u);D(g.$$.fragment,q),K=H(q),D(_.$$.fragment,q),q.forEach(i),d.forEach(i),c.forEach(i),this.h()},h(){o(e,"class","text-lg font-medium"),o(e,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(s,"id","event-history"),o(s,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(s,"aria-label",$("events","import-event-history")),o(x,"class","text-md bg-gray-200 p-2 font-medium"),o(I,"class","mt-4"),o(k,"class","mt-8 text-lg font-medium"),o(u,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,c){rt(a,t,c),r(t,s),r(s,e),r(e,A),r(s,B),r(s,E),S(h,E,null),r(t,F),r(t,n),r(n,x),r(x,P),r(n,W),r(n,I),S(p,I,null),r(n,z),r(n,k),r(k,G),r(n,J),r(n,u),S(g,u,null),r(u,K),S(_,u,null),j=!0},p(a,[c]){const y={};c&2&&(y.$$scope={dirty:c,ctx:a}),p.$set(y)},i(a){j||(T(h.$$.fragment,a),T(p.$$.fragment,a),T(g.$$.fragment,a),T(_.$$.fragment,a),j=!0)},o(a){V(h.$$.fragment,a),V(p.$$.fragment,a),V(g.$$.fragment,a),V(_.$$.fragment,a),j=!1},d(a){a&&i(t),L(h),L(p),L(g),L(_)}}}const mt="HistoryEvent[]";function ft(v){return[{events:"HistoryEvent[]"}]}class pt extends et{constructor(t){super(),st(this,t,ft,lt,at,{})}}function ut(v){let t,s;return t=new pt({}),{c(){C(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,b){S(t,e,b),s=!0},p:nt,i(e){s||(T(t.$$.fragment,e),s=!0)},o(e){V(t.$$.fragment,e),s=!1},d(e){L(t,e)}}}class yt extends et{constructor(t){super(),st(this,t,null,ut,at,{})}}export{yt as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.fefb9355.js b/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.f1c147ee.js similarity index 93% rename from ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.fefb9355.js rename to ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.f1c147ee.js index 395b70949c..3af50c61ea 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.fefb9355.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.f1c147ee.js @@ -1 +1 @@ -import{S as u,b as _,a as m,G as c,C as $,c as g,D as d,d as b,E as h,f as y,H as C,I as E,J as H,j as f,g as p,F as I,k as P,K as S}from"../chunks/index.6779d4e2.js";import{p as j}from"../chunks/stores.6ee4c480.js";import{P as k}from"../chunks/page-title.990af218.js";function q(n){let s,o,a;s=new k({props:{title:"Import Event History",url:n[0].url.href}});const l=n[2].default,e=c(l,n,n[1],null);return{c(){$(s.$$.fragment),o=g(),e&&e.c()},l(t){d(s.$$.fragment,t),o=b(t),e&&e.l(t)},m(t,r){h(s,t,r),y(t,o,r),e&&e.m(t,r),a=!0},p(t,[r]){const i={};r&1&&(i.url=t[0].url.href),s.$set(i),e&&e.p&&(!a||r&2)&&C(e,l,t,t[1],a?H(l,t[1],r,null):E(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){p(s.$$.fragment,t),p(e,t),a=!1},d(t){I(s,t),t&&P(o),e&&e.d(t)}}}function v(n,s,o){let a;S(n,j,t=>o(0,a=t));let{$$slots:l={},$$scope:e}=s;return n.$$set=t=>{"$$scope"in t&&o(1,e=t.$$scope)},[a,e,l]}class G extends u{constructor(s){super(),_(this,s,v,q,m,{})}}export{G as default}; +import{S as u,b as _,a as m,G as c,C as $,c as g,D as d,d as b,E as h,f as y,H as C,I as E,J as H,j as f,g as p,F as I,k as P,K as S}from"../chunks/index.6779d4e2.js";import{p as j}from"../chunks/stores.b96d31b2.js";import{P as k}from"../chunks/page-title.990af218.js";function q(n){let s,o,a;s=new k({props:{title:"Import Event History",url:n[0].url.href}});const l=n[2].default,e=c(l,n,n[1],null);return{c(){$(s.$$.fragment),o=g(),e&&e.c()},l(t){d(s.$$.fragment,t),o=b(t),e&&e.l(t)},m(t,r){h(s,t,r),y(t,o,r),e&&e.m(t,r),a=!0},p(t,[r]){const i={};r&1&&(i.url=t[0].url.href),s.$set(i),e&&e.p&&(!a||r&2)&&C(e,l,t,t[1],a?H(l,t[1],r,null):E(t[1]),null)},i(t){a||(f(s.$$.fragment,t),f(e,t),a=!0)},o(t){p(s.$$.fragment,t),p(e,t),a=!1},d(t){I(s,t),t&&P(o),e&&e.d(t)}}}function v(n,s,o){let a;S(n,j,t=>o(0,a=t));let{$$slots:l={},$$scope:e}=s;return n.$$set=t=>{"$$scope"in t&&o(1,e=t.$$scope)},[a,e,l]}class G extends u{constructor(s){super(),_(this,s,v,q,m,{})}}export{G as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.1d880dc1.js b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.1d880dc1.js new file mode 100644 index 0000000000..5eeb4ef170 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.1d880dc1.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.a0c9b579.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.8c750a1c.js b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.8c750a1c.js deleted file mode 100644 index 33b399a3d0..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.8c750a1c.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.d621a7e0.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.842d0729.js b/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.b8890c66.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-layout.svelte.842d0729.js rename to ui/assets/local/_app/immutable/entry/(app)-layout.svelte.b8890c66.js index 02069b76cf..d21c9b07eb 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.842d0729.js +++ b/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.b8890c66.js @@ -1,4 +1,4 @@ -import{S as ae,b as fe,a as ue,A as Le,Z as Ne,C,D as I,E as T,_ as Be,j as g,g as h,F as L,m as O,w as G,c as P,p as j,q as R,x as Q,k as p,d as H,u as k,P as y,$ as Re,f as w,L as N,a0 as Ct,Q as we,a1 as et,y as he,z as de,h as _e,r as pt,G as x,H as ee,I as te,J as le,V as Me,n as ne,e as ie,K as se,a2 as Ol,a3 as gt,a4 as jl,a5 as ce,W as st,X as rt,N as Ie,v as It,O as tt,R as ht,T as Ke,U as qe,i as $t,Y as Rl,a6 as ql,o as Al,a7 as bt,M as Ll,a8 as Tt,s as nt,a9 as Lt,aa as Pl,ab as Hl}from"../chunks/index.6779d4e2.js";import{a as Ml,g as Vt}from"../chunks/navigation.a7086f0c.js";import{p as He,u as Fl}from"../chunks/stores.6ee4c480.js";import{I as Vl}from"../chunks/input.86f6e192.js";import{t as S}from"../chunks/translate.29a4bc43.js";import{T as it}from"../chunks/toggle-switch.0d2aaadb.js";import{o as at,i as Dt,p as Nt,c as ft,v as Kl,a as Ul,l as Wl}from"../chunks/data-encoder-config.37ceca8b.js";import{r as Bt}from"../chunks/workflow-run.4e335848.js";import{d as ut,l as Zl}from"../chunks/data-converter-config.abfd533c.js";import{c as Gl,f as ct,M as vt,a as Dl,b as kt,d as Ue}from"../chunks/menu.7e3d54af.js";import{L as Nl}from"../chunks/link.8030aa06.js";import{B as dt}from"../chunks/button.0b50a4b4.js";import{A as Ql}from"../chunks/accordion.6253b32e.js";import{w as We,d as Xl}from"../chunks/index.1302fd9b.js";import{R as Jl,a as St}from"../chunks/radio-input.d451f838.js";import{i as Yl}from"../chunks/settings-service.23aa4f31.js";import{I as Ve}from"../chunks/icon.a4e81b70.js";import{p as yl}from"../chunks/persist-store.d8264c86.js";import{T as Ze}from"../chunks/tooltip.65a7fa6c.js";import{i as xl}from"../chunks/batch-operations.1aa6deab.js";import{l as zt}from"../chunks/labs-mode.b6f5853d.js";import{I as Ge}from"../chunks/icon-button.8252c675.js";import{a as Bl,c as en}from"../chunks/auth-user.6f15fe0f.js";import{M as Sl}from"../chunks/menu-divider.def6f259.js";import{r as Ye,t as ye,g as tn,T as Ot,a as jt,f as Rt}from"../chunks/format-date.79dd40f6.js";import{c as ln}from"../chunks/format-camel-case.887ffc78.js";import{l as lt,n as nn}from"../chunks/namespaces.65099960.js";import{n as ot}from"../chunks/route-for-api.c219d4fc.js";import{E as sn}from"../chunks/error.c03b78e5.js";import{t as qt}from"../chunks/toaster.ef510498.js";import{r as xe,a as rn,b as on,c as At,d as Pt,e as an,f as fn}from"../chunks/route-for.cec09c4c.js";function un(s){let e,l,t;function n(o){s[1](o)}let r={class:"w-96",placeholder:"Port",id:"data-encoder-port-input",label:S("data-encoder","port-title")+" ("+S("deprecated")+")",hintText:"*"+S("data-encoder","port-info")};return s[0]!==void 0&&(r.value=s[0]),e=new Vl({props:r}),Le.push(()=>Ne(e,"value",n)),{c(){C(e.$$.fragment)},l(o){I(e.$$.fragment,o)},m(o,a){T(e,o,a),t=!0},p(o,[a]){const i={};!l&&a&1&&(l=!0,i.value=o[0],Be(()=>l=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function cn(s,e,l){let{port:t=""}=e;function n(r){t=r,l(0,t)}return s.$$set=r=>{"port"in r&&l(0,t=r.port)},[t,n]}class dn extends ae{constructor(e){super(),fe(this,e,cn,un,ue,{port:0})}}const _n=s=>({}),Ht=s=>({});function Mt(s){let e,l;return{c(){e=O("p"),l=G(s[11]),this.h()},l(t){e=j(t,"P",{class:!0});var n=R(e);l=Q(n,s[11]),n.forEach(p),this.h()},h(){k(e,"class","text-sm")},m(t,n){w(t,e,n),N(e,l)},p(t,n){n&2048&&he(l,t[11])},d(t){t&&p(e)}}}function Ft(s){let e,l,t=s[2]&&Kt(s);const n=s[14].error,r=x(n,s,s[13],Ht);return{c(){t&&t.c(),e=P(),r&&r.c()},l(o){t&&t.l(o),e=H(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),w(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Kt(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&8192)&&ee(r,n,o,o[13],l?le(n,o[13],a,_n):te(o[13]),Ht)},i(o){l||(g(r,o),l=!0)},o(o){h(r,o),l=!1},d(o){t&&t.d(o),o&&p(e),r&&r.d(o)}}}function Kt(s){let e,l;return{c(){e=O("p"),l=G(s[2])},l(t){e=j(t,"P",{});var n=R(e);l=Q(n,s[2]),n.forEach(p)},m(t,n){w(t,e,n),N(e,l)},p(t,n){n&4&&he(l,t[2])},d(t){t&&p(e)}}}function mn(s){let e,l,t,n,r,o,a,i,f,u,c,d,_,m=s[11]&&Mt(s),b=!s[3]&&Ft(s);return{c(){e=O("div"),l=O("label"),t=G(s[7]),n=P(),m&&m.c(),r=P(),o=O("textarea"),a=P(),i=O("div"),b&&b.c(),this.h()},l($){e=j($,"DIV",{class:!0});var v=R(e);l=j(v,"LABEL",{for:!0,class:!0});var q=R(l);t=Q(q,s[7]),q.forEach(p),n=H(v),m&&m.l(v),r=H(v),o=j(v,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0}),R(o).forEach(p),a=H(v),i=j(v,"DIV",{class:!0,"aria-live":!0});var M=R(i);b&&b.l(M),M.forEach(p),v.forEach(p),this.h()},h(){k(l,"for",s[9]),k(l,"class","svelte-1cdabgy"),y(l,"required",s[10]),y(l,"sr-only",s[8]),k(o,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-1cdabgy"),k(o,"id",s[9]),o.disabled=s[1],k(o,"placeholder",s[4]),k(o,"rows",s[5]),k(o,"spellcheck",s[6]),y(o,"error",!s[3]),k(i,"class","error-msg svelte-1cdabgy"),k(i,"aria-live",f=s[3]?"off":"assertive"),k(e,"class",u=Re(s[12])+" svelte-1cdabgy")},m($,v){w($,e,v),N(e,l),N(l,t),N(e,n),m&&m.m(e,null),N(e,r),N(e,o),Ct(o,s[0]),N(e,a),N(e,i),b&&b.m(i,null),c=!0,d||(_=[we(o,"input",s[20]),we(o,"input",s[15]),we(o,"change",s[16]),we(o,"focus",s[17]),we(o,"blur",s[18]),we(o,"keydown",et(s[19]))],d=!0)},p($,[v]){(!c||v&128)&&he(t,$[7]),(!c||v&512)&&k(l,"for",$[9]),(!c||v&1024)&&y(l,"required",$[10]),(!c||v&256)&&y(l,"sr-only",$[8]),$[11]?m?m.p($,v):(m=Mt($),m.c(),m.m(e,r)):m&&(m.d(1),m=null),(!c||v&512)&&k(o,"id",$[9]),(!c||v&2)&&(o.disabled=$[1]),(!c||v&16)&&k(o,"placeholder",$[4]),(!c||v&32)&&k(o,"rows",$[5]),(!c||v&64)&&k(o,"spellcheck",$[6]),v&1&&Ct(o,$[0]),(!c||v&8)&&y(o,"error",!$[3]),$[3]?b&&(de(),h(b,1,1,()=>{b=null}),_e()):b?(b.p($,v),v&8&&g(b,1)):(b=Ft($),b.c(),g(b,1),b.m(i,null)),(!c||v&8&&f!==(f=$[3]?"off":"assertive"))&&k(i,"aria-live",f),(!c||v&4096&&u!==(u=Re($[12])+" svelte-1cdabgy"))&&k(e,"class",u)},i($){c||(g(b),c=!0)},o($){h(b),c=!1},d($){$&&p(e),m&&m.d(),b&&b.d(),d=!1,pt(_)}}}function pn(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{error:o=""}=e,{isValid:a=!0}=e,{placeholder:i=""}=e,{rows:f=5}=e,{spellcheck:u=null}=e,{value:c}=e,{label:d}=e,{labelHidden:_=!1}=e,{id:m}=e,{required:b=!1}=e,{description:$=""}=e,{class:v=""}=e;function q(E){Me.call(this,s,E)}function M(E){Me.call(this,s,E)}function B(E){Me.call(this,s,E)}function F(E){Me.call(this,s,E)}function W(E){Me.call(this,s,E)}function U(){c=this.value,l(0,c)}return s.$$set=E=>{"disabled"in E&&l(1,r=E.disabled),"error"in E&&l(2,o=E.error),"isValid"in E&&l(3,a=E.isValid),"placeholder"in E&&l(4,i=E.placeholder),"rows"in E&&l(5,f=E.rows),"spellcheck"in E&&l(6,u=E.spellcheck),"value"in E&&l(0,c=E.value),"label"in E&&l(7,d=E.label),"labelHidden"in E&&l(8,_=E.labelHidden),"id"in E&&l(9,m=E.id),"required"in E&&l(10,b=E.required),"description"in E&&l(11,$=E.description),"class"in E&&l(12,v=E.class),"$$scope"in E&&l(13,n=E.$$scope)},[c,r,o,a,i,f,u,d,_,m,b,$,v,n,t,q,M,B,F,W,U]}class gn extends ae{constructor(e){super(),fe(this,e,pn,mn,ue,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,class:12})}}function Ut(s){let e,l=S("data-encoder","include-cross-origin-credentials-warning")+"",t;return{c(){e=O("small"),t=G(l),this.h()},l(n){e=j(n,"SMALL",{"data-testid":!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function hn(s){let e,l,t,n,r,o,a,i,f,u,c,d;function _(B){s[4](B)}let m={id:"data-encoder-endpoint-input",rows:3,placeholder:S("data-encoder","endpoint-placeholder"),error:s[3],isValid:!s[3],label:S("data-encoder","endpoint-title"),description:S("data-encoder","endpoint-description")};s[0]!==void 0&&(m.value=s[0]),t=new gn({props:m}),Le.push(()=>Ne(t,"value",_));function b(B){s[5](B)}let $={label:S("data-encoder","pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&($.checked=s[1]),o=new it({props:$}),Le.push(()=>Ne(o,"checked",b));function v(B){s[6](B)}let q={label:S("data-encoder","include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(q.checked=s[2]),f=new it({props:q}),Le.push(()=>Ne(f,"checked",v));let M=s[2]&&Ut();return{c(){e=O("div"),l=O("div"),C(t.$$.fragment),r=P(),C(o.$$.fragment),i=P(),C(f.$$.fragment),c=P(),M&&M.c(),this.h()},l(B){e=j(B,"DIV",{class:!0});var F=R(e);l=j(F,"DIV",{class:!0});var W=R(l);I(t.$$.fragment,W),r=H(W),I(o.$$.fragment,W),i=H(W),I(f.$$.fragment,W),c=H(W),M&&M.l(W),W.forEach(p),F.forEach(p),this.h()},h(){k(l,"class","flex flex-col gap-2"),k(e,"class","flex flex-col gap-4")},m(B,F){w(B,e,F),N(e,l),T(t,l,null),N(l,r),T(o,l,null),N(l,i),T(f,l,null),N(l,c),M&&M.m(l,null),d=!0},p(B,[F]){const W={};F&8&&(W.error=B[3]),F&8&&(W.isValid=!B[3]),!n&&F&1&&(n=!0,W.value=B[0],Be(()=>n=!1)),t.$set(W);const U={};!a&&F&2&&(a=!0,U.checked=B[1],Be(()=>a=!1)),o.$set(U);const E={};!u&&F&4&&(u=!0,E.checked=B[2],Be(()=>u=!1)),f.$set(E),B[2]?M?M.p(B,F):(M=Ut(),M.c(),M.m(l,null)):M&&(M.d(1),M=null)},i(B){d||(g(t.$$.fragment,B),g(o.$$.fragment,B),g(f.$$.fragment,B),d=!0)},o(B){h(t.$$.fragment,B),h(o.$$.fragment,B),h(f.$$.fragment,B),d=!1},d(B){B&&p(e),L(t),L(o),L(f),M&&M.d()}}}function $n(s,e,l){let{endpoint:t=""}=e,{passToken:n=!1}=e,{includeCreds:r=!1}=e,{error:o=""}=e;function a(u){t=u,l(0,t)}function i(u){n=u,l(1,n)}function f(u){r=u,l(2,r)}return s.$$set=u=>{"endpoint"in u&&l(0,t=u.endpoint),"passToken"in u&&l(1,n=u.passToken),"includeCreds"in u&&l(2,r=u.includeCreds),"error"in u&&l(3,o=u.error)},[t,n,r,o,a,i,f]}class bn extends ae{constructor(e){super(),fe(this,e,$n,hn,ue,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Wt(s){let e,l,t,n,r=S("codec-server")+"",o,a,i,f=S("data-encoder","codec-server-description-prefix")+"",u,c,d,_=S("data-encoder","codec-server-description-suffix",{level:s[6]})+"",m,b,$,v,q,M,B,F,W,U,E,D,A,Y,J,pe,Z,Ee,ge,Te;c=new Nl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[vn]},$$scope:{ctx:s}}}),$=new Ql({props:{"data-testid":"override-accordion",title:s[7]?S("data-encoder","browser-override-description",{level:s[6]}):S("data-encoder","no-browser-override-description",{level:s[6]}),$$slots:{default:[wn]},$$scope:{ctx:s}}});function $e(K){s[15](K)}function Se(K){s[16](K)}function ve(K){s[17](K)}let oe={error:s[5]};s[0]!==void 0&&(oe.endpoint=s[0]),s[1]!==void 0&&(oe.passToken=s[1]),s[4]!==void 0&&(oe.includeCreds=s[4]),q=new bn({props:oe}),Le.push(()=>Ne(q,"endpoint",$e)),Le.push(()=>Ne(q,"passToken",Se)),Le.push(()=>Ne(q,"includeCreds",ve));function De(K){s[18](K)}let me={};return s[3]!==void 0&&(me.port=s[3]),U=new dn({props:me}),Le.push(()=>Ne(U,"port",De)),Y=new dt({props:{disabled:Boolean(s[5]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[En]},$$scope:{ctx:s}}}),Y.$on("click",s[10]),pe=new dt({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[Cn]},$$scope:{ctx:s}}}),pe.$on("click",s[9]),{c(){e=O("aside"),l=O("div"),t=O("div"),n=O("h3"),o=G(r),a=P(),i=O("p"),u=G(f),C(c.$$.fragment),d=P(),m=G(_),b=P(),C($.$$.fragment),v=P(),C(q.$$.fragment),W=P(),C(U.$$.fragment),D=P(),A=O("div"),C(Y.$$.fragment),J=P(),C(pe.$$.fragment),this.h()},l(K){e=j(K,"ASIDE",{class:!0});var re=R(e);l=j(re,"DIV",{class:!0});var z=R(l);t=j(z,"DIV",{class:!0});var X=R(t);n=j(X,"H3",{"data-testid":!0,class:!0});var be=R(n);o=Q(be,r),be.forEach(p),X.forEach(p),a=H(z),i=j(z,"P",{class:!0});var ke=R(i);u=Q(ke,f),I(c.$$.fragment,ke),d=H(ke),m=Q(ke,_),ke.forEach(p),b=H(z),I($.$$.fragment,z),v=H(z),I(q.$$.fragment,z),W=H(z),I(U.$$.fragment,z),D=H(z),A=j(z,"DIV",{class:!0});var Ce=R(A);I(Y.$$.fragment,Ce),J=H(Ce),I(pe.$$.fragment,Ce),Ce.forEach(p),z.forEach(p),re.forEach(p),this.h()},h(){k(n,"data-testid","data-encoder-title"),k(n,"class","text-xl"),k(t,"class","flex items-center justify-between space-x-2"),k(i,"class","text-sm"),k(A,"class","flex items-center gap-4"),k(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),k(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(K,re){w(K,e,re),N(e,l),N(l,t),N(t,n),N(n,o),N(l,a),N(l,i),N(i,u),T(c,i,null),N(i,d),N(i,m),N(l,b),T($,l,null),N(l,v),T(q,l,null),N(l,W),T(U,l,null),N(l,D),N(l,A),T(Y,A,null),N(A,J),T(pe,A,null),Ee=!0,ge||(Te=[Ol(Gl.call(null,e)),we(e,"click-outside",s[19])],ge=!0)},p(K,re){const z={};re&67108864&&(z.$$scope={dirty:re,ctx:K}),c.$set(z),(!Ee||re&64)&&_!==(_=S("data-encoder","codec-server-description-suffix",{level:K[6]})+"")&&he(m,_);const X={};re&192&&(X.title=K[7]?S("data-encoder","browser-override-description",{level:K[6]}):S("data-encoder","no-browser-override-description",{level:K[6]})),re&67108928&&(X.$$scope={dirty:re,ctx:K}),$.$set(X);const be={};re&32&&(be.error=K[5]),!M&&re&1&&(M=!0,be.endpoint=K[0],Be(()=>M=!1)),!B&&re&2&&(B=!0,be.passToken=K[1],Be(()=>B=!1)),!F&&re&16&&(F=!0,be.includeCreds=K[4],Be(()=>F=!1)),q.$set(be);const ke={};!E&&re&8&&(E=!0,ke.port=K[3],Be(()=>E=!1)),U.$set(ke);const Ce={};re&32&&(Ce.disabled=Boolean(K[5])),re&67108864&&(Ce.$$scope={dirty:re,ctx:K}),Y.$set(Ce);const ze={};re&67108864&&(ze.$$scope={dirty:re,ctx:K}),pe.$set(ze)},i(K){Ee||(g(c.$$.fragment,K),g($.$$.fragment,K),g(q.$$.fragment,K),g(U.$$.fragment,K),g(Y.$$.fragment,K),g(pe.$$.fragment,K),Z||gt(()=>{Z=jl(e,ct,{y:-50,delay:0,duration:500}),Z.start()}),Ee=!0)},o(K){h(c.$$.fragment,K),h($.$$.fragment,K),h(q.$$.fragment,K),h(U.$$.fragment,K),h(Y.$$.fragment,K),h(pe.$$.fragment,K),Ee=!1},d(K){K&&p(e),L(c),L($),L(q),L(U),L(Y),L(pe),ge=!1,pt(Te)}}}function vn(s){let e=S("codec-server")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function kn(s){let e,l,t,n;return e=new St({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:S("data-encoder","no-browser-override-description",{level:s[6]})}}),t=new St({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:S("data-encoder","browser-override-description",{level:s[6]})}}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment)},l(r){I(e.$$.fragment,r),l=H(r),I(t.$$.fragment,r)},m(r,o){T(e,r,o),w(r,l,o),T(t,r,o),n=!0},p(r,o){const a={};o&64&&(a.label=S("data-encoder","no-browser-override-description",{level:r[6]})),e.$set(a);const i={};o&64&&(i.label=S("data-encoder","browser-override-description",{level:r[6]})),t.$set(i)},i(r){n||(g(e.$$.fragment,r),g(t.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),h(t.$$.fragment,r),n=!1},d(r){L(e,r),r&&p(l),L(t,r)}}}function wn(s){let e,l;return e=new Jl({props:{name:"override",group:s[8],$$slots:{default:[kn]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&67108928&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function En(s){let e=S("apply")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function Cn(s){let e=S("cancel")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function In(s){let e,l,t=s[2]&&Wt(s);return{c(){t&&t.c(),e=ie()},l(n){t&&t.l(n),e=ie()},m(n,r){t&&t.m(n,r),w(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&g(t,1)):(t=Wt(n),t.c(),g(t,1),t.m(e.parentNode,e)):t&&(de(),h(t,1,1,()=>{t=null}),_e())},i(n){l||(g(t),l=!0)},o(n){h(t),l=!1},d(n){t&&t.d(n),n&&p(e)}}}const Fe=We(!1);function Tn(s,e,l){let t,n,r,o,a,i,f,u=ne,c,d,_,m;se(s,Bt,Z=>l(20,r=Z)),se(s,He,Z=>l(14,o=Z)),se(s,at,Z=>l(21,i=Z)),se(s,Fe,Z=>l(2,f=Z)),se(s,ut,Z=>l(22,c=Z)),se(s,Dt,Z=>l(23,d=Z)),se(s,Nt,Z=>l(24,_=Z)),se(s,ft,Z=>l(25,m=Z)),s.$$.on_destroy.push(()=>u());var b,$,v;let q=m??"",M=c??"",B=_??!1,F=d??!1,W=We(i);se(s,W,Z=>l(7,a=Z));const U=()=>{l(0,q=m),l(3,M=c),l(1,B=_),l(4,F=d),ce(W,a=i,a),ce(Fe,f=!1,f)},E=()=>{l(5,t=""),ce(ft,m=q,m),ce(Nt,_=B,_),ce(Dt,d=F,d),ce(ut,c=M,c),ce(Fe,f=!1,f),ce(at,i=a,i),o.url.pathname.endsWith("history")&&ce(Bt,r=Date.now(),r)};function D(Z){q=Z,l(0,q)}function A(Z){B=Z,l(1,B)}function Y(Z){F=Z,l(4,F)}function J(Z){M=Z,l(3,M)}const pe=()=>ce(Fe,f=!1,f);return s.$$.update=()=>{s.$$.dirty&30720&&l(6,n=!(l(13,v=l(12,$=l(11,b=o.data)===null||b===void 0?void 0:b.settings)===null||$===void 0?void 0:$.runtimeEnvironment)===null||v===void 0)&&v.isCloud?S("namespaces"):S("cluster")),s.$$.dirty&3&&(B&&!Kl(q)?l(5,t=S("data-encoder","access-token-https-error")):q&&!Ul(q)?l(5,t=S("data-encoder","prefix-error")):l(5,t="")),s.$$.dirty&4&&(f||U())},l(5,t=""),[q,B,f,M,F,t,n,a,W,U,E,b,$,v,o,D,A,Y,J,pe]}class Ln extends ae{constructor(e){super(),fe(this,e,Tn,In,ue,{})}}const Vn=s=>({}),Zt=s=>({});function Dn(s){let e;const l=s[2].fallback,t=x(l,s,s[1],Zt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,Vn):te(n[1]),Zt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Nn(s){let e;const l=s[2].default,t=x(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,null):te(n[1]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Bn(s){let e,l,t,n;const r=[Nn,Dn],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function Sn(s,e,l){let{$$slots:t={},$$scope:n}=e,{enabled:r=!1}=e;return s.$$set=o=>{"enabled"in o&&l(0,r=o.enabled),"$$scope"in o&&l(1,n=o.$$scope)},[r,n,t]}class zn extends ae{constructor(e){super(),fe(this,e,Sn,Bn,ue,{enabled:0})}}const On=s=>({}),Gt=s=>({});function jn(s){let e;const l=s[3].default,t=x(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,null):te(n[2]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Rn(s){let e;const l=s[3].fallback,t=x(l,s,s[2],Gt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,On):te(n[2]),Gt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function qn(s){let e,l,t,n;const r=[Rn,jn],o=[];function a(i,f){var u,c,d;return i[0]||(d=(c=(u=i[1].data)==null?void 0:u.settings)==null?void 0:c.runtimeEnvironment)!=null&&d.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function An(s,e,l){let t;se(s,He,a=>l(1,t=a));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e;return s.$$set=a=>{"isCloud"in a&&l(0,o=a.isCloud),"$$scope"in a&&l(2,r=a.$$scope)},[o,t,r,n]}class _t extends ae{constructor(e){super(),fe(this,e,An,qn,ue,{isCloud:0})}}function Pn(){return!0}const Hn=s=>({}),Qt=s=>({});function Mn(s){let e;const l=s[4].default,t=x(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,null):te(n[3]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Fn(s){let e;const l=s[4].fallback,t=x(l,s,s[3],Qt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,Hn):te(n[3]),Qt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e,l,t,n;const r=[Fn,Mn],o=[];function a(i,f){return i[0]&&i[1]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function Un(s,e,l){let t,n;se(s,He,i=>l(2,n=i));let{$$slots:r={},$$scope:o}=e,{isCloud:a=!0}=e;return s.$$set=i=>{"isCloud"in i&&l(0,a=i.isCloud),"$$scope"in i&&l(3,o=i.$$scope)},s.$$.update=()=>{s.$$.dirty&4&&l(1,t=Yl.test(Pn?n.url.hostname:""))},[a,t,n,o,r]}class Wn extends ae{constructor(e){super(),fe(this,e,Un,Kn,ue,{isCloud:0})}}function Zn(s){let e,l,t,n;return{c(){e=st("svg"),l=st("title"),t=G(s[2]),n=st("path"),this.h()},l(r){e=rt(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=R(e);l=rt(o,"title",{});var a=R(l);t=Q(a,s[2]),a.forEach(p),n=rt(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),R(n).forEach(p),o.forEach(p),this.h()},h(){k(n,"id","Path"),k(n,"d","M65.816 34.224 C63.684 18.251 58.288 4.917 49.999 4.917 41.711 4.917 36.314 18.251 34.182 34.224 18.208 36.357 4.874 41.753 4.874 50.042 4.874 58.33 18.211 63.727 34.182 65.859 36.314 81.83 41.711 95.167 49.999 95.167 58.288 95.167 63.684 81.83 65.816 65.859 81.79 63.727 95.124 58.33 95.124 50.042 95.124 41.753 81.788 36.357 65.816 34.224 Z M33.661 61.206 C18.363 58.997 9.44 53.939 9.44 50.042 9.44 46.144 18.363 41.087 33.661 38.877 33.324 42.56 33.149 46.319 33.149 50.042 33.149 53.764 33.324 57.526 33.661 61.206 Z M49.999 9.483 C53.897 9.483 58.954 18.405 61.164 33.703 57.483 33.367 53.721 33.191 49.999 33.191 46.277 33.191 42.515 33.367 38.835 33.703 41.044 18.405 46.102 9.483 49.999 9.483 Z M66.338 61.206 C65.585 61.316 62.496 61.678 61.715 61.755 61.638 62.539 61.273 65.625 61.166 66.378 58.956 81.676 53.899 90.598 50.001 90.598 46.104 90.598 41.047 81.676 38.837 66.378 38.73 65.625 38.365 62.536 38.288 61.755 37.932 58.129 37.717 54.234 37.717 50.042 37.717 45.85 37.932 41.954 38.288 38.326 41.914 37.97 45.809 37.755 50.001 37.755 54.194 37.755 58.089 37.97 61.715 38.326 62.499 38.403 65.585 38.767 66.338 38.875 81.636 41.085 90.56 46.144 90.56 50.039 90.56 53.935 81.636 58.997 66.338 61.206 Z"),k(n,"stroke",s[3]),k(n,"fill",s[3]),k(e,"width",s[0]),k(e,"height",s[1]),k(e,"viewBox","0 0 100 100"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),k(e,"version","1.1"),k(e,"role","img")},m(r,o){w(r,e,o),N(e,l),N(l,t),N(e,n)},p(r,[o]){o&4&&he(t,r[2]),o&1&&k(e,"width",r[0]),o&2&&k(e,"height",r[1])},i:ne,o:ne,d(r){r&&p(e)}}}function Gn(s,e,l){let{width:t="100px"}=e,{height:n="100px"}=e,{isCloud:r}=e,{title:o=""}=e,a=r?"black":"white";return s.$$set=i=>{"width"in i&&l(0,t=i.width),"height"in i&&l(1,n=i.height),"isCloud"in i&&l(4,r=i.isCloud),"title"in i&&l(2,o=i.title)},[t,n,o,a,r]}class Qn extends ae{constructor(e){super(),fe(this,e,Gn,Zn,ue,{width:0,height:1,isCloud:4,title:2})}}const mt=yl("navOpen",!1);const Xn=s=>({}),Xt=s=>({}),Jn=s=>({}),Jt=s=>({}),Yn=s=>({}),Yt=s=>({}),yn=s=>({}),yt=s=>({});function xt(s){let e,l=S("version")+"",t;return{c(){e=O("span"),t=G(l),this.h()},l(n){e=j(n,"SPAN",{class:!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"class","sr-only")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function xn(s){let e,l,t,n,r,o,a,i,f,u,c,d,_,m,b,$,v,q,M,B,F,W,U,E,D,A,Y,J,pe,Z;n=new Qn({props:{height:"24px",width:"24px",isCloud:s[0],title:S("workflows","recent-workflows-link")}}),i=new Ve({props:{name:s[3]?"chevron-left":"chevron-right"}});const Ee=s[11].top,ge=x(Ee,s,s[10],yt),Te=s[11].middle,$e=x(Te,s,s[10],Yt),Se=s[11].bottom,ve=x(Se,s,s[10],Jt);let oe=s[2]&&xt();const De=s[11].drawer,me=x(De,s,s[10],Xt);let K=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],re={};for(let z=0;zl(9,o=$)),se(s,mt,$=>l(3,a=$));let{$$slots:i={},$$scope:f}=e;var u,c,d;let{isCloud:_=!1}=e,{linkList:m}=e;function b(){ce(mt,a=!a,a)}return s.$$set=$=>{e=Ie(Ie({},e),qe($)),l(5,r=Ke(e,n)),"isCloud"in $&&l(0,_=$.isCloud),"linkList"in $&&l(1,m=$.linkList),"$$scope"in $&&l(10,f=$.$$scope)},s.$$.update=()=>{s.$$.dirty&960&&l(2,t=l(8,d=l(7,c=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||c===void 0?void 0:c.version)!==null&&d!==void 0?d:"")},[_,m,t,a,b,r,u,c,d,o,f,i]}class ts extends ae{constructor(e){super(),fe(this,e,es,xn,ue,{isCloud:0,linkList:1})}}function ls(s){let e;const l=s[9].default,t=x(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&ee(t,l,n,n[8],e?le(l,n[8],r,null):te(n[8]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function ns(s){let e,l;const t=s[9].default,n=x(t,s,s[8],null);return{c(){e=O("a"),n&&n.c(),this.h()},l(r){e=j(r,"A",{href:!0,class:!0});var o=R(e);n&&n.l(o),o.forEach(p),this.h()},h(){k(e,"href",s[0]),k(e,"class",Re(s[5])+" svelte-4ukgao")},m(r,o){w(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&k(e,"href",r[0])},i(r){l||(g(n,r),l=!0)},o(r){h(n,r),l=!1},d(r){r&&p(e),n&&n.d(r)}}}function ss(s){let e,l;const t=s[9].default,n=x(t,s,s[8],null);return{c(){e=O("a"),n&&n.c(),this.h()},l(r){e=j(r,"A",{href:!0,rel:!0,target:!0,class:!0});var o=R(e);n&&n.l(o),o.forEach(p),this.h()},h(){k(e,"href",s[0]),k(e,"rel","noreferrer"),k(e,"target","_blank"),k(e,"class",Re(s[5])+" svelte-4ukgao")},m(r,o){w(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&k(e,"href",r[0])},i(r){l||(g(n,r),l=!0)},o(r){h(n,r),l=!1},d(r){r&&p(e),n&&n.d(r)}}}function rs(s){let e,l,t,n;const r=s[9].default,o=x(r,s,s[8],null);return{c(){e=O("button"),o&&o.c(),this.h()},l(a){e=j(a,"BUTTON",{class:!0});var i=R(e);o&&o.l(i),i.forEach(p),this.h()},h(){k(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){w(a,e,i),o&&o.m(e,null),l=!0,t||(n=we(e,"click",function(){$t(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&ee(o,r,s,s[8],l?le(r,s[8],i,null):te(s[8]),null)},i(a){l||(g(o,a),l=!0)},o(a){h(o,a),l=!1},d(a){a&&p(e),o&&o.d(a),t=!1,n()}}}function os(s){let e,l,t,n,r,o;const a=[rs,ss,ns,ls],i=[];function f(u,c){return u[4]!==null?0:u[0]&&u[3]?1:u[0]?2:3}return l=f(s),t=i[l]=a[l](s),{c(){e=O("li"),t.c(),this.h()},l(u){e=j(u,"LI",{class:!0,"data-testid":!0});var c=R(e);t.l(c),c.forEach(p),this.h()},h(){k(e,"class",n=Re(s[0]?"":s[5])+" svelte-4ukgao"),k(e,"data-testid",r=s[6]["data-testid"]),y(e,"noFilter",s[1]),y(e,"wrap",s[2]),y(e,"button",s[4]!==null)},m(u,c){w(u,e,c),i[l].m(e,null),o=!0},p(u,[c]){let d=l;l=f(u),l===d?i[l].p(u,c):(de(),h(i[d],1,1,()=>{i[d]=null}),_e(),t=i[l],t?t.p(u,c):(t=i[l]=a[l](u),t.c()),g(t,1),t.m(e,null)),(!o||c&1&&n!==(n=Re(u[0]?"":u[5])+" svelte-4ukgao"))&&k(e,"class",n),(!o||c&64&&r!==(r=u[6]["data-testid"]))&&k(e,"data-testid",r),(!o||c&3)&&y(e,"noFilter",u[1]),(!o||c&5)&&y(e,"wrap",u[2]),(!o||c&17)&&y(e,"button",u[4]!==null)},i(u){o||(g(t),o=!0)},o(u){h(t),o=!1},d(u){u&&p(e),i[l].d()}}}function is(s,e,l){let{$$slots:t={},$$scope:n}=e,{link:r=null}=e,{isCloud:o}=e,{noFilter:a=!1}=e,{wrap:i=!1}=e,{externalLink:f=!1}=e,{handleClick:u=null}=e,c=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=d=>{l(6,e=Ie(Ie({},e),qe(d))),"link"in d&&l(0,r=d.link),"isCloud"in d&&l(7,o=d.isCloud),"noFilter"in d&&l(1,a=d.noFilter),"wrap"in d&&l(2,i=d.wrap),"externalLink"in d&&l(3,f=d.externalLink),"handleClick"in d&&l(4,u=d.handleClick),"$$scope"in d&&l(8,n=d.$$scope)},e=qe(e),[r,a,i,f,u,c,e,o,n,t]}class Ae extends ae{constructor(e){super(),fe(this,e,is,os,ue,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function as(s){let e;const l=s[3].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function fs(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[as]},$$scope:{ctx:s}};for(let r=0;rl(2,r=u));let{$$slots:o={},$$scope:a}=e,{props:i=n}=e,{text:f=n.text}=e;return s.$$set=u=>{e=Ie(Ie({},e),qe(u)),l(5,n=Ke(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class Pe extends ae{constructor(e){super(),fe(this,e,us,fs,ue,{props:0,text:1})}}const cs=s=>({}),el=s=>({}),ds=s=>({}),tl=s=>({}),_s=s=>({}),ll=s=>({}),ms=s=>({}),nl=s=>({}),ps=s=>({}),sl=s=>({});function gs(s){let e,l,t;return l=new Ve({props:{name:"workflow"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function hs(s){let e,l,t,n=S("workflows")+"",r,o;return e=new Pe({props:{text:S("workflows"),$$slots:{default:[gs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function $s(s){let e,l,t;return l=new Ve({props:{name:"schedules"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function bs(s){let e,l,t,n=S("schedules")+"",r,o;return e=new Pe({props:{text:S("schedules"),$$slots:{default:[$s]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function vs(s){let e,l;return e=new Ae({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[bs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].schedules),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function ks(s){var t,n;let e,l;return e=new zn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[vs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(r){I(e.$$.fragment,r)},m(r,o){T(e,r,o),l=!0},p(r,o){var i,f;const a={};o&2&&(a.enabled=Boolean((f=(i=r[1])==null?void 0:i.namespaceInfo)==null?void 0:f.supportsSchedules)),o&517&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(r){l||(g(e.$$.fragment,r),l=!0)},o(r){h(e.$$.fragment,r),l=!1},d(r){L(e,r)}}}function ws(s){let e,l,t;return l=new Ve({props:{name:"archives"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Es(s){let e,l,t,n=S("archive")+"",r,o;return e=new Pe({props:{text:S("archive"),$$slots:{default:[ws]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Cs(s){let e,l;return e=new Ae({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$slots:{default:[Es]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].archive),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Is(s){let e,l,t;return l=new Ve({props:{name:s[4]}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p(n,r){const o={};r&16&&(o.name=n[4]),l.$set(o)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Ts(s){let e,l,t,n=S("batch","nav-title")+"",r,o;return e=new Pe({props:{text:S("batch","list-page-title"),$$slots:{default:[Is]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&528&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Ls(s){let e,l,t,n,r,o,a,i,f;e=new Ae({props:{link:s[2].workflows,isCloud:s[0],"data-testid":"workflows-button",$$slots:{default:[hs]},$$scope:{ctx:s}}}),t=new _t({props:{isCloud:s[0],$$slots:{default:[ks]},$$scope:{ctx:s}}});const u=s[7].top,c=x(u,s,s[9],el);return o=new _t({props:{isCloud:s[0],$$slots:{default:[Cs]},$$scope:{ctx:s}}}),i=new Ae({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[Ts]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment),n=P(),c&&c.c(),r=P(),C(o.$$.fragment),a=P(),C(i.$$.fragment)},l(d){I(e.$$.fragment,d),l=H(d),I(t.$$.fragment,d),n=H(d),c&&c.l(d),r=H(d),I(o.$$.fragment,d),a=H(d),I(i.$$.fragment,d)},m(d,_){T(e,d,_),w(d,l,_),T(t,d,_),w(d,n,_),c&&c.m(d,_),w(d,r,_),T(o,d,_),w(d,a,_),T(i,d,_),f=!0},p(d,_){const m={};_&4&&(m.link=d[2].workflows),_&1&&(m.isCloud=d[0]),_&512&&(m.$$scope={dirty:_,ctx:d}),e.$set(m);const b={};_&1&&(b.isCloud=d[0]),_&519&&(b.$$scope={dirty:_,ctx:d}),t.$set(b),c&&c.p&&(!f||_&512)&&ee(c,u,d,d[9],f?le(u,d[9],_,cs):te(d[9]),el);const $={};_&1&&($.isCloud=d[0]),_&517&&($.$$scope={dirty:_,ctx:d}),o.$set($);const v={};_&4&&(v.link=d[2].batchOperations),_&1&&(v.isCloud=d[0]),_&528&&(v.$$scope={dirty:_,ctx:d}),i.$set(v)},i(d){f||(g(e.$$.fragment,d),g(t.$$.fragment,d),g(c,d),g(o.$$.fragment,d),g(i.$$.fragment,d),f=!0)},o(d){h(e.$$.fragment,d),h(t.$$.fragment,d),h(c,d),h(o.$$.fragment,d),h(i.$$.fragment,d),f=!1},d(d){L(e,d),d&&p(l),L(t,d),d&&p(n),c&&c.d(d),d&&p(r),L(o,d),d&&p(a),L(i,d)}}}function Vs(s){let e,l,t;return l=new Ve({props:{name:"namespace"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Ds(s){let e,l,t,n=S("namespaces")+"",r,o;return e=new Pe({props:{text:S("namespaces"),$$slots:{default:[Vs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Ns(s){let e,l;return e=new Ae({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].namespaces),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Bs(s){let e,l,t;e=new Wn({props:{isCloud:s[0],$$slots:{default:[Ns]},$$scope:{ctx:s}}});const n=s[7].middle,r=x(n,s,s[9],tl);return{c(){C(e.$$.fragment),l=P(),r&&r.c()},l(o){I(e.$$.fragment,o),l=H(o),r&&r.l(o)},m(o,a){T(e,o,a),w(o,l,a),r&&r.m(o,a),t=!0},p(o,a){const i={};a&1&&(i.isCloud=o[0]),a&517&&(i.$$scope={dirty:a,ctx:o}),e.$set(i),r&&r.p&&(!t||a&512)&&ee(r,n,o,o[9],t?le(n,o[9],a,ds):te(o[9]),tl)},i(o){t||(g(e.$$.fragment,o),g(r,o),t=!0)},o(o){h(e.$$.fragment,o),h(r,o),t=!1},d(o){L(e,o),o&&p(l),r&&r.d(o)}}}function Ss(s){let e,l,t;return l=new Ve({props:{name:"import"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function zs(s){let e,l,t,n=S("import")+"",r,o;return e=new Pe({props:{text:S("import"),$$slots:{default:[Ss]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Os(s){let e,l;return e=new Ae({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[zs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].import),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function js(s){let e,l;return e=new _t({props:{isCloud:s[0],$$slots:{default:[Os]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.isCloud=t[0]),n&517&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Rs(s){let e,l,t;return l=new Ve({props:{name:"feedback"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function qs(s){let e,l,t,n=S("feedback")+"",r,o;return e=new Pe({props:{text:S("feedback"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function As(s){let e,l;return e=new Ae({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[qs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].feedback),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ps(s){let e,l,t;return l=new Ve({props:{name:"labs",active:s[3]}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p(n,r){const o={};r&8&&(o.active=n[3]),l.$set(o)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function rl(s){let e,l=S("experimental")+"",t;return{c(){e=O("p"),t=G(l),this.h()},l(n){e=j(n,"P",{class:!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"class","text-[12px]")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function Hs(s){let e,l,t,n,r,o,a;e=new Pe({props:{right:!0,text:s[6],$$slots:{default:[Ps]},$$scope:{ctx:s}}});let i=s[3]&&rl();return{c(){C(e.$$.fragment),l=P(),t=O("div"),n=O("div"),r=G(s[5]),o=P(),i&&i.c(),this.h()},l(f){I(e.$$.fragment,f),l=H(f),t=j(f,"DIV",{class:!0});var u=R(t);n=j(u,"DIV",{});var c=R(n);r=Q(c,s[5]),c.forEach(p),o=H(u),i&&i.l(u),u.forEach(p),this.h()},h(){k(t,"class","nav-title flex flex-col leading-3 svelte-1jb7rp7")},m(f,u){T(e,f,u),w(f,l,u),w(f,t,u),N(t,n),N(n,r),N(t,o),i&&i.m(t,null),a=!0},p(f,u){const c={};u&64&&(c.text=f[6]),u&520&&(c.$$scope={dirty:u,ctx:f}),e.$set(c),(!a||u&32)&&he(r,f[5]),f[3]?i?i.p(f,u):(i=rl(),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(f){a||(g(e.$$.fragment,f),a=!0)},o(f){h(e.$$.fragment,f),a=!1},d(f){L(e,f),f&&p(l),f&&p(t),i&&i.d()}}}function Ms(s){let e,l,t,n,r;const o=s[7].bottom,a=x(o,s,s[9],sl),i=s[7].import,f=x(i,s,s[9],nl),u=f||js(s),c=s[7].feedback,d=x(c,s,s[9],ll),_=d||As(s);return n=new Ae({props:{isCloud:s[0],handleClick:s[8],$$slots:{default:[Hs]},$$scope:{ctx:s}}}),{c(){a&&a.c(),e=P(),u&&u.c(),l=P(),_&&_.c(),t=P(),C(n.$$.fragment)},l(m){a&&a.l(m),e=H(m),u&&u.l(m),l=H(m),_&&_.l(m),t=H(m),I(n.$$.fragment,m)},m(m,b){a&&a.m(m,b),w(m,e,b),u&&u.m(m,b),w(m,l,b),_&&_.m(m,b),w(m,t,b),T(n,m,b),r=!0},p(m,b){a&&a.p&&(!r||b&512)&&ee(a,o,m,m[9],r?le(o,m[9],b,ps):te(m[9]),sl),f?f.p&&(!r||b&512)&&ee(f,i,m,m[9],r?le(i,m[9],b,ms):te(m[9]),nl):u&&u.p&&(!r||b&5)&&u.p(m,r?b:-1),d?d.p&&(!r||b&512)&&ee(d,c,m,m[9],r?le(c,m[9],b,_s):te(m[9]),ll):_&&_.p&&(!r||b&5)&&_.p(m,r?b:-1);const $={};b&1&&($.isCloud=m[0]),b&8&&($.handleClick=m[8]),b&616&&($.$$scope={dirty:b,ctx:m}),n.$set($)},i(m){r||(g(a,m),g(u,m),g(_,m),g(n.$$.fragment,m),r=!0)},o(m){h(a,m),h(u,m),h(_,m),h(n.$$.fragment,m),r=!1},d(m){a&&a.d(m),m&&p(e),u&&u.d(m),m&&p(l),_&&_.d(m),m&&p(t),L(n,m)}}}function Fs(s){let e,l;return e=new ts({props:{isCloud:s[0],linkList:s[2],"aria-label":S("primary"),$$slots:{bottom:[Ms],middle:[Bs],top:[Ls]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.isCloud=t[0]),n&4&&(r.linkList=t[2]),n&639&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ks(s,e,l){let t,n,r,o;se(s,xl,b=>l(10,r=b)),se(s,zt,b=>l(3,o=b));let{$$slots:a={},$$scope:i}=e,{isCloud:f=!1}=e,{activeNamespace:u}=e,{linkList:c}=e,d="layers-3";const _=setInterval(()=>{if(!r){l(4,d="layers-3");return}setTimeout(()=>{l(4,d="layers-1")}),setTimeout(()=>{l(4,d="layers-2")},330),setTimeout(()=>{l(4,d="layers-3")},660)},2e3);ql(()=>{clearInterval(_)});const m=()=>ce(zt,o=!o,o);return s.$$set=b=>{"isCloud"in b&&l(0,f=b.isCloud),"activeNamespace"in b&&l(1,u=b.activeNamespace),"linkList"in b&&l(2,c=b.linkList),"$$scope"in b&&l(9,i=b.$$scope)},s.$$.update=()=>{s.$$.dirty&8&&l(6,t=`${S("labs")} ${o?`${S("on")} - ${S("experimental")}`:S("off")}`),s.$$.dirty&8&&l(5,n=`${S("labs")} ${o?S("on"):S("off")}`)},[f,u,c,o,d,n,t,a,m,i]}class Us extends ae{constructor(e){super(),fe(this,e,Ks,Fs,ue,{isCloud:0,activeNamespace:1,linkList:2})}}function Ws(s){let e=S("skip-nav")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function Zs(s){let e,l;return e=new Nl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[Ws]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}class Gs extends ae{constructor(e){super(),fe(this,e,null,Zs,ue,{})}}const zl=Xl([He,ft,at,Wl,ut,Zl,Bl],([s,e,l,t,n,r,o])=>{var q,M,B,F,W,U,E,D,A;const a=s.params.namespace,i=(B=(M=(q=s==null?void 0:s.data)==null?void 0:q.settings)==null?void 0:M.codec)==null?void 0:B.endpoint,f=Boolean((U=(W=(F=s==null?void 0:s.data)==null?void 0:F.settings)==null?void 0:W.codec)==null?void 0:U.passAccessToken),u=Boolean((A=(D=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:D.codec)==null?void 0:A.includeCredentials),c=l?e:i||e,d=o==null?void 0:o.accessToken,_=c?t==="notRequested":r==="notRequested",m=c?t==="error":r==="error",b=c?t==="success":r==="success",$=Boolean(c&&n),v=Boolean(c||n);return{namespace:a,settingsEndpoint:i,settingsPassAccessToken:f,settingsIncludeCredentials:u,endpoint:c,accessToken:d,hasNotRequested:_,hasError:m,hasSuccess:b,hasEndpointAndPortConfigured:$,hasEndpointOrPortConfigured:v}});function Qs(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","configure-codec-server"),$$slots:{default:[Js]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Xs(s){let e,l,t,n;const r=[xs,ys,Ys],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasNotRequested?0:i[0].hasError?1:i[0].hasSuccess?2:-1}return~(e=a(s))&&(l=o[e]=r[e](s)),{c(){l&&l.c(),t=ie()},l(i){l&&l.l(i),t=ie()},m(i,f){~e&&o[e].m(i,f),w(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(de(),h(o[u],1,1,()=>{o[u]=null}),_e()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t)):l=null)},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){~e&&o[e].d(i),i&&p(t)}}}function Js(s){let e,l;return e=new Ge({props:{label:S("data-encoder","configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ys(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-success"),$$slots:{default:[er]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function ys(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-error"),$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function xs(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-configured"),$$slots:{default:[lr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function er(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function tr(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function lr(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function nr(s){let e,l,t,n;const r=[Xs,Qs],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasEndpointOrPortConfigured?0:1}return l=a(s),t=o[l]=r[l](s),{c(){e=O("div"),t.c(),this.h()},l(i){e=j(i,"DIV",{class:!0});var f=R(e);t.l(f),f.forEach(p),this.h()},h(){k(e,"class","mx-1 flex items-center")},m(i,f){w(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),t=o[l],t?t.p(i,f):(t=o[l]=r[l](i),t.c()),g(t,1),t.m(e,null))},i(i){n||(g(t),n=!0)},o(i){h(t),n=!1},d(i){i&&p(e),o[l].d()}}}function sr(s,e,l){let t,n;return se(s,Fe,o=>l(2,t=o)),se(s,zl,o=>l(0,n=o)),[n,()=>{var o;ce(Fe,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class rr extends ae{constructor(e){super(),fe(this,e,sr,nr,ue,{})}}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function il(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function or(s){let e;return{c(){e=G(s[3])},l(l){e=Q(l,s[3])},m(l,t){w(l,e,t)},p(l,t){t&8&&he(e,l[3])},d(l){l&&p(e)}}}function ir(s){let e,l;return e=new Ve({props:{slot:"leading",name:"clock"}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function al(s){let e,l,t,n,r,o,a,i=s[7],f=[];for(let _=0;_h(f[_],1,1,()=>{f[_]=null});function c(_){s[16](_)}let d={label:S("relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(d.checked=s[5]),t=new it({props:d}),Le.push(()=>Ne(t,"checked",c)),t.$on("change",s[9]),o=new Sl({}),{c(){for(let _=0;_n=!1)),t.$set(b)},i(_){if(!a){for(let m=0;mNe(e,"value",n)),{c(){C(e.$$.fragment)},l(o){I(e.$$.fragment,o)},m(o,a){T(e,o,a),t=!0},p(o,[a]){const i={};!l&&a&1&&(l=!0,i.value=o[0],Be(()=>l=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){h(e.$$.fragment,o),t=!1},d(o){L(e,o)}}}function cn(s,e,l){let{port:t=""}=e;function n(r){t=r,l(0,t)}return s.$$set=r=>{"port"in r&&l(0,t=r.port)},[t,n]}class dn extends ae{constructor(e){super(),fe(this,e,cn,un,ue,{port:0})}}const _n=s=>({}),Ht=s=>({});function Mt(s){let e,l;return{c(){e=O("p"),l=G(s[11]),this.h()},l(t){e=j(t,"P",{class:!0});var n=R(e);l=Q(n,s[11]),n.forEach(p),this.h()},h(){k(e,"class","text-sm")},m(t,n){w(t,e,n),N(e,l)},p(t,n){n&2048&&he(l,t[11])},d(t){t&&p(e)}}}function Ft(s){let e,l,t=s[2]&&Kt(s);const n=s[14].error,r=x(n,s,s[13],Ht);return{c(){t&&t.c(),e=P(),r&&r.c()},l(o){t&&t.l(o),e=H(o),r&&r.l(o)},m(o,a){t&&t.m(o,a),w(o,e,a),r&&r.m(o,a),l=!0},p(o,a){o[2]?t?t.p(o,a):(t=Kt(o),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null),r&&r.p&&(!l||a&8192)&&ee(r,n,o,o[13],l?le(n,o[13],a,_n):te(o[13]),Ht)},i(o){l||(g(r,o),l=!0)},o(o){h(r,o),l=!1},d(o){t&&t.d(o),o&&p(e),r&&r.d(o)}}}function Kt(s){let e,l;return{c(){e=O("p"),l=G(s[2])},l(t){e=j(t,"P",{});var n=R(e);l=Q(n,s[2]),n.forEach(p)},m(t,n){w(t,e,n),N(e,l)},p(t,n){n&4&&he(l,t[2])},d(t){t&&p(e)}}}function mn(s){let e,l,t,n,r,o,a,i,f,u,c,d,_,m=s[11]&&Mt(s),b=!s[3]&&Ft(s);return{c(){e=O("div"),l=O("label"),t=G(s[7]),n=P(),m&&m.c(),r=P(),o=O("textarea"),a=P(),i=O("div"),b&&b.c(),this.h()},l($){e=j($,"DIV",{class:!0});var v=R(e);l=j(v,"LABEL",{for:!0,class:!0});var q=R(l);t=Q(q,s[7]),q.forEach(p),n=H(v),m&&m.l(v),r=H(v),o=j(v,"TEXTAREA",{class:!0,id:!0,placeholder:!0,rows:!0,spellcheck:!0}),R(o).forEach(p),a=H(v),i=j(v,"DIV",{class:!0,"aria-live":!0});var M=R(i);b&&b.l(M),M.forEach(p),v.forEach(p),this.h()},h(){k(l,"for",s[9]),k(l,"class","svelte-1cdabgy"),y(l,"required",s[10]),y(l,"sr-only",s[8]),k(o,"class","min-h-fit w-full rounded border border-gray-900 py-2 px-3 font-mono text-sm svelte-1cdabgy"),k(o,"id",s[9]),o.disabled=s[1],k(o,"placeholder",s[4]),k(o,"rows",s[5]),k(o,"spellcheck",s[6]),y(o,"error",!s[3]),k(i,"class","error-msg svelte-1cdabgy"),k(i,"aria-live",f=s[3]?"off":"assertive"),k(e,"class",u=Re(s[12])+" svelte-1cdabgy")},m($,v){w($,e,v),N(e,l),N(l,t),N(e,n),m&&m.m(e,null),N(e,r),N(e,o),Ct(o,s[0]),N(e,a),N(e,i),b&&b.m(i,null),c=!0,d||(_=[we(o,"input",s[20]),we(o,"input",s[15]),we(o,"change",s[16]),we(o,"focus",s[17]),we(o,"blur",s[18]),we(o,"keydown",et(s[19]))],d=!0)},p($,[v]){(!c||v&128)&&he(t,$[7]),(!c||v&512)&&k(l,"for",$[9]),(!c||v&1024)&&y(l,"required",$[10]),(!c||v&256)&&y(l,"sr-only",$[8]),$[11]?m?m.p($,v):(m=Mt($),m.c(),m.m(e,r)):m&&(m.d(1),m=null),(!c||v&512)&&k(o,"id",$[9]),(!c||v&2)&&(o.disabled=$[1]),(!c||v&16)&&k(o,"placeholder",$[4]),(!c||v&32)&&k(o,"rows",$[5]),(!c||v&64)&&k(o,"spellcheck",$[6]),v&1&&Ct(o,$[0]),(!c||v&8)&&y(o,"error",!$[3]),$[3]?b&&(de(),h(b,1,1,()=>{b=null}),_e()):b?(b.p($,v),v&8&&g(b,1)):(b=Ft($),b.c(),g(b,1),b.m(i,null)),(!c||v&8&&f!==(f=$[3]?"off":"assertive"))&&k(i,"aria-live",f),(!c||v&4096&&u!==(u=Re($[12])+" svelte-1cdabgy"))&&k(e,"class",u)},i($){c||(g(b),c=!0)},o($){h(b),c=!1},d($){$&&p(e),m&&m.d(),b&&b.d(),d=!1,pt(_)}}}function pn(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{error:o=""}=e,{isValid:a=!0}=e,{placeholder:i=""}=e,{rows:f=5}=e,{spellcheck:u=null}=e,{value:c}=e,{label:d}=e,{labelHidden:_=!1}=e,{id:m}=e,{required:b=!1}=e,{description:$=""}=e,{class:v=""}=e;function q(E){Me.call(this,s,E)}function M(E){Me.call(this,s,E)}function B(E){Me.call(this,s,E)}function F(E){Me.call(this,s,E)}function W(E){Me.call(this,s,E)}function U(){c=this.value,l(0,c)}return s.$$set=E=>{"disabled"in E&&l(1,r=E.disabled),"error"in E&&l(2,o=E.error),"isValid"in E&&l(3,a=E.isValid),"placeholder"in E&&l(4,i=E.placeholder),"rows"in E&&l(5,f=E.rows),"spellcheck"in E&&l(6,u=E.spellcheck),"value"in E&&l(0,c=E.value),"label"in E&&l(7,d=E.label),"labelHidden"in E&&l(8,_=E.labelHidden),"id"in E&&l(9,m=E.id),"required"in E&&l(10,b=E.required),"description"in E&&l(11,$=E.description),"class"in E&&l(12,v=E.class),"$$scope"in E&&l(13,n=E.$$scope)},[c,r,o,a,i,f,u,d,_,m,b,$,v,n,t,q,M,B,F,W,U]}class gn extends ae{constructor(e){super(),fe(this,e,pn,mn,ue,{disabled:1,error:2,isValid:3,placeholder:4,rows:5,spellcheck:6,value:0,label:7,labelHidden:8,id:9,required:10,description:11,class:12})}}function Ut(s){let e,l=S("data-encoder","include-cross-origin-credentials-warning")+"",t;return{c(){e=O("small"),t=G(l),this.h()},l(n){e=j(n,"SMALL",{"data-testid":!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"data-testid","data-encoder-cross-origin-credentials")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function hn(s){let e,l,t,n,r,o,a,i,f,u,c,d;function _(B){s[4](B)}let m={id:"data-encoder-endpoint-input",rows:3,placeholder:S("data-encoder","endpoint-placeholder"),error:s[3],isValid:!s[3],label:S("data-encoder","endpoint-title"),description:S("data-encoder","endpoint-description")};s[0]!==void 0&&(m.value=s[0]),t=new gn({props:m}),Le.push(()=>Ne(t,"value",_));function b(B){s[5](B)}let $={label:S("data-encoder","pass-access-token-label"),id:"pass-access-token","data-testid":"data-encoder-pass-access-token"};s[1]!==void 0&&($.checked=s[1]),o=new it({props:$}),Le.push(()=>Ne(o,"checked",b));function v(B){s[6](B)}let q={label:S("data-encoder","include-cross-origin-credentials-label"),id:"pass-access-credentials","data-testid":"data-encoder-include-credentials"};s[2]!==void 0&&(q.checked=s[2]),f=new it({props:q}),Le.push(()=>Ne(f,"checked",v));let M=s[2]&&Ut();return{c(){e=O("div"),l=O("div"),C(t.$$.fragment),r=P(),C(o.$$.fragment),i=P(),C(f.$$.fragment),c=P(),M&&M.c(),this.h()},l(B){e=j(B,"DIV",{class:!0});var F=R(e);l=j(F,"DIV",{class:!0});var W=R(l);I(t.$$.fragment,W),r=H(W),I(o.$$.fragment,W),i=H(W),I(f.$$.fragment,W),c=H(W),M&&M.l(W),W.forEach(p),F.forEach(p),this.h()},h(){k(l,"class","flex flex-col gap-2"),k(e,"class","flex flex-col gap-4")},m(B,F){w(B,e,F),N(e,l),T(t,l,null),N(l,r),T(o,l,null),N(l,i),T(f,l,null),N(l,c),M&&M.m(l,null),d=!0},p(B,[F]){const W={};F&8&&(W.error=B[3]),F&8&&(W.isValid=!B[3]),!n&&F&1&&(n=!0,W.value=B[0],Be(()=>n=!1)),t.$set(W);const U={};!a&&F&2&&(a=!0,U.checked=B[1],Be(()=>a=!1)),o.$set(U);const E={};!u&&F&4&&(u=!0,E.checked=B[2],Be(()=>u=!1)),f.$set(E),B[2]?M?M.p(B,F):(M=Ut(),M.c(),M.m(l,null)):M&&(M.d(1),M=null)},i(B){d||(g(t.$$.fragment,B),g(o.$$.fragment,B),g(f.$$.fragment,B),d=!0)},o(B){h(t.$$.fragment,B),h(o.$$.fragment,B),h(f.$$.fragment,B),d=!1},d(B){B&&p(e),L(t),L(o),L(f),M&&M.d()}}}function $n(s,e,l){let{endpoint:t=""}=e,{passToken:n=!1}=e,{includeCreds:r=!1}=e,{error:o=""}=e;function a(u){t=u,l(0,t)}function i(u){n=u,l(1,n)}function f(u){r=u,l(2,r)}return s.$$set=u=>{"endpoint"in u&&l(0,t=u.endpoint),"passToken"in u&&l(1,n=u.passToken),"includeCreds"in u&&l(2,r=u.includeCreds),"error"in u&&l(3,o=u.error)},[t,n,r,o,a,i,f]}class bn extends ae{constructor(e){super(),fe(this,e,$n,hn,ue,{endpoint:0,passToken:1,includeCreds:2,error:3})}}function Wt(s){let e,l,t,n,r=S("codec-server")+"",o,a,i,f=S("data-encoder","codec-server-description-prefix")+"",u,c,d,_=S("data-encoder","codec-server-description-suffix",{level:s[6]})+"",m,b,$,v,q,M,B,F,W,U,E,D,A,Y,J,pe,Z,Ee,ge,Te;c=new Nl({props:{href:"https://docs.temporal.io/dataconversion#codec-server",newTab:!0,$$slots:{default:[vn]},$$scope:{ctx:s}}}),$=new Ql({props:{"data-testid":"override-accordion",title:s[7]?S("data-encoder","browser-override-description",{level:s[6]}):S("data-encoder","no-browser-override-description",{level:s[6]}),$$slots:{default:[wn]},$$scope:{ctx:s}}});function $e(K){s[15](K)}function Se(K){s[16](K)}function ve(K){s[17](K)}let oe={error:s[5]};s[0]!==void 0&&(oe.endpoint=s[0]),s[1]!==void 0&&(oe.passToken=s[1]),s[4]!==void 0&&(oe.includeCreds=s[4]),q=new bn({props:oe}),Le.push(()=>Ne(q,"endpoint",$e)),Le.push(()=>Ne(q,"passToken",Se)),Le.push(()=>Ne(q,"includeCreds",ve));function De(K){s[18](K)}let me={};return s[3]!==void 0&&(me.port=s[3]),U=new dn({props:me}),Le.push(()=>Ne(U,"port",De)),Y=new dt({props:{disabled:Boolean(s[5]),"data-testid":"confirm-data-encoder-button",type:"submit",$$slots:{default:[En]},$$scope:{ctx:s}}}),Y.$on("click",s[10]),pe=new dt({props:{variant:"ghost","data-testid":"cancel-data-encoder-button",$$slots:{default:[Cn]},$$scope:{ctx:s}}}),pe.$on("click",s[9]),{c(){e=O("aside"),l=O("div"),t=O("div"),n=O("h3"),o=G(r),a=P(),i=O("p"),u=G(f),C(c.$$.fragment),d=P(),m=G(_),b=P(),C($.$$.fragment),v=P(),C(q.$$.fragment),W=P(),C(U.$$.fragment),D=P(),A=O("div"),C(Y.$$.fragment),J=P(),C(pe.$$.fragment),this.h()},l(K){e=j(K,"ASIDE",{class:!0});var re=R(e);l=j(re,"DIV",{class:!0});var z=R(l);t=j(z,"DIV",{class:!0});var X=R(t);n=j(X,"H3",{"data-testid":!0,class:!0});var be=R(n);o=Q(be,r),be.forEach(p),X.forEach(p),a=H(z),i=j(z,"P",{class:!0});var ke=R(i);u=Q(ke,f),I(c.$$.fragment,ke),d=H(ke),m=Q(ke,_),ke.forEach(p),b=H(z),I($.$$.fragment,z),v=H(z),I(q.$$.fragment,z),W=H(z),I(U.$$.fragment,z),D=H(z),A=j(z,"DIV",{class:!0});var Ce=R(A);I(Y.$$.fragment,Ce),J=H(Ce),I(pe.$$.fragment,Ce),Ce.forEach(p),z.forEach(p),re.forEach(p),this.h()},h(){k(n,"data-testid","data-encoder-title"),k(n,"class","text-xl"),k(t,"class","flex items-center justify-between space-x-2"),k(i,"class","text-sm"),k(A,"class","flex items-center gap-4"),k(l,"class","flex w-full flex-col gap-4 xl:w-1/2"),k(e,"class","relative flex h-auto w-full flex-col gap-6 border-b border-blue-100 bg-blue-50 p-12")},m(K,re){w(K,e,re),N(e,l),N(l,t),N(t,n),N(n,o),N(l,a),N(l,i),N(i,u),T(c,i,null),N(i,d),N(i,m),N(l,b),T($,l,null),N(l,v),T(q,l,null),N(l,W),T(U,l,null),N(l,D),N(l,A),T(Y,A,null),N(A,J),T(pe,A,null),Ee=!0,ge||(Te=[Ol(Gl.call(null,e)),we(e,"click-outside",s[19])],ge=!0)},p(K,re){const z={};re&67108864&&(z.$$scope={dirty:re,ctx:K}),c.$set(z),(!Ee||re&64)&&_!==(_=S("data-encoder","codec-server-description-suffix",{level:K[6]})+"")&&he(m,_);const X={};re&192&&(X.title=K[7]?S("data-encoder","browser-override-description",{level:K[6]}):S("data-encoder","no-browser-override-description",{level:K[6]})),re&67108928&&(X.$$scope={dirty:re,ctx:K}),$.$set(X);const be={};re&32&&(be.error=K[5]),!M&&re&1&&(M=!0,be.endpoint=K[0],Be(()=>M=!1)),!B&&re&2&&(B=!0,be.passToken=K[1],Be(()=>B=!1)),!F&&re&16&&(F=!0,be.includeCreds=K[4],Be(()=>F=!1)),q.$set(be);const ke={};!E&&re&8&&(E=!0,ke.port=K[3],Be(()=>E=!1)),U.$set(ke);const Ce={};re&32&&(Ce.disabled=Boolean(K[5])),re&67108864&&(Ce.$$scope={dirty:re,ctx:K}),Y.$set(Ce);const ze={};re&67108864&&(ze.$$scope={dirty:re,ctx:K}),pe.$set(ze)},i(K){Ee||(g(c.$$.fragment,K),g($.$$.fragment,K),g(q.$$.fragment,K),g(U.$$.fragment,K),g(Y.$$.fragment,K),g(pe.$$.fragment,K),Z||gt(()=>{Z=jl(e,ct,{y:-50,delay:0,duration:500}),Z.start()}),Ee=!0)},o(K){h(c.$$.fragment,K),h($.$$.fragment,K),h(q.$$.fragment,K),h(U.$$.fragment,K),h(Y.$$.fragment,K),h(pe.$$.fragment,K),Ee=!1},d(K){K&&p(e),L(c),L($),L(q),L(U),L(Y),L(pe),ge=!1,pt(Te)}}}function vn(s){let e=S("codec-server")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function kn(s){let e,l,t,n;return e=new St({props:{id:"use-configuration-endpoint-radio","data-testid":"use-configuration-endpoint-input",value:!1,label:S("data-encoder","no-browser-override-description",{level:s[6]})}}),t=new St({props:{id:"use-local-endpoint-radio","data-testid":"use-local-endpoint-input",value:!0,label:S("data-encoder","browser-override-description",{level:s[6]})}}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment)},l(r){I(e.$$.fragment,r),l=H(r),I(t.$$.fragment,r)},m(r,o){T(e,r,o),w(r,l,o),T(t,r,o),n=!0},p(r,o){const a={};o&64&&(a.label=S("data-encoder","no-browser-override-description",{level:r[6]})),e.$set(a);const i={};o&64&&(i.label=S("data-encoder","browser-override-description",{level:r[6]})),t.$set(i)},i(r){n||(g(e.$$.fragment,r),g(t.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),h(t.$$.fragment,r),n=!1},d(r){L(e,r),r&&p(l),L(t,r)}}}function wn(s){let e,l;return e=new Jl({props:{name:"override",group:s[8],$$slots:{default:[kn]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&67108928&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function En(s){let e=S("apply")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function Cn(s){let e=S("cancel")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function In(s){let e,l,t=s[2]&&Wt(s);return{c(){t&&t.c(),e=ie()},l(n){t&&t.l(n),e=ie()},m(n,r){t&&t.m(n,r),w(n,e,r),l=!0},p(n,[r]){n[2]?t?(t.p(n,r),r&4&&g(t,1)):(t=Wt(n),t.c(),g(t,1),t.m(e.parentNode,e)):t&&(de(),h(t,1,1,()=>{t=null}),_e())},i(n){l||(g(t),l=!0)},o(n){h(t),l=!1},d(n){t&&t.d(n),n&&p(e)}}}const Fe=We(!1);function Tn(s,e,l){let t,n,r,o,a,i,f,u=ne,c,d,_,m;se(s,Bt,Z=>l(20,r=Z)),se(s,He,Z=>l(14,o=Z)),se(s,at,Z=>l(21,i=Z)),se(s,Fe,Z=>l(2,f=Z)),se(s,ut,Z=>l(22,c=Z)),se(s,Dt,Z=>l(23,d=Z)),se(s,Nt,Z=>l(24,_=Z)),se(s,ft,Z=>l(25,m=Z)),s.$$.on_destroy.push(()=>u());var b,$,v;let q=m??"",M=c??"",B=_??!1,F=d??!1,W=We(i);se(s,W,Z=>l(7,a=Z));const U=()=>{l(0,q=m),l(3,M=c),l(1,B=_),l(4,F=d),ce(W,a=i,a),ce(Fe,f=!1,f)},E=()=>{l(5,t=""),ce(ft,m=q,m),ce(Nt,_=B,_),ce(Dt,d=F,d),ce(ut,c=M,c),ce(Fe,f=!1,f),ce(at,i=a,i),o.url.pathname.endsWith("history")&&ce(Bt,r=Date.now(),r)};function D(Z){q=Z,l(0,q)}function A(Z){B=Z,l(1,B)}function Y(Z){F=Z,l(4,F)}function J(Z){M=Z,l(3,M)}const pe=()=>ce(Fe,f=!1,f);return s.$$.update=()=>{s.$$.dirty&30720&&l(6,n=!(l(13,v=l(12,$=l(11,b=o.data)===null||b===void 0?void 0:b.settings)===null||$===void 0?void 0:$.runtimeEnvironment)===null||v===void 0)&&v.isCloud?S("namespaces"):S("cluster")),s.$$.dirty&3&&(B&&!Kl(q)?l(5,t=S("data-encoder","access-token-https-error")):q&&!Ul(q)?l(5,t=S("data-encoder","prefix-error")):l(5,t="")),s.$$.dirty&4&&(f||U())},l(5,t=""),[q,B,f,M,F,t,n,a,W,U,E,b,$,v,o,D,A,Y,J,pe]}class Ln extends ae{constructor(e){super(),fe(this,e,Tn,In,ue,{})}}const Vn=s=>({}),Zt=s=>({});function Dn(s){let e;const l=s[2].fallback,t=x(l,s,s[1],Zt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,Vn):te(n[1]),Zt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Nn(s){let e;const l=s[2].default,t=x(l,s,s[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&2)&&ee(t,l,n,n[1],e?le(l,n[1],r,null):te(n[1]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Bn(s){let e,l,t,n;const r=[Nn,Dn],o=[];function a(i,f){return i[0]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function Sn(s,e,l){let{$$slots:t={},$$scope:n}=e,{enabled:r=!1}=e;return s.$$set=o=>{"enabled"in o&&l(0,r=o.enabled),"$$scope"in o&&l(1,n=o.$$scope)},[r,n,t]}class zn extends ae{constructor(e){super(),fe(this,e,Sn,Bn,ue,{enabled:0})}}const On=s=>({}),Gt=s=>({});function jn(s){let e;const l=s[3].default,t=x(l,s,s[2],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,null):te(n[2]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Rn(s){let e;const l=s[3].fallback,t=x(l,s,s[2],Gt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&4)&&ee(t,l,n,n[2],e?le(l,n[2],r,On):te(n[2]),Gt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function qn(s){let e,l,t,n;const r=[Rn,jn],o=[];function a(i,f){var u,c,d;return i[0]||(d=(c=(u=i[1].data)==null?void 0:u.settings)==null?void 0:c.runtimeEnvironment)!=null&&d.isCloud?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function An(s,e,l){let t;se(s,He,a=>l(1,t=a));let{$$slots:n={},$$scope:r}=e,{isCloud:o=!1}=e;return s.$$set=a=>{"isCloud"in a&&l(0,o=a.isCloud),"$$scope"in a&&l(2,r=a.$$scope)},[o,t,r,n]}class _t extends ae{constructor(e){super(),fe(this,e,An,qn,ue,{isCloud:0})}}function Pn(){return!0}const Hn=s=>({}),Qt=s=>({});function Mn(s){let e;const l=s[4].default,t=x(l,s,s[3],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,null):te(n[3]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Fn(s){let e;const l=s[4].fallback,t=x(l,s,s[3],Qt);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&8)&&ee(t,l,n,n[3],e?le(l,n[3],r,Hn):te(n[3]),Qt)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Kn(s){let e,l,t,n;const r=[Fn,Mn],o=[];function a(i,f){return i[0]&&i[1]?0:1}return e=a(s),l=o[e]=r[e](s),{c(){l.c(),t=ie()},l(i){l.l(i),t=ie()},m(i,f){o[e].m(i,f),w(i,t,f),n=!0},p(i,[f]){let u=e;e=a(i),e===u?o[e].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t))},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){o[e].d(i),i&&p(t)}}}function Un(s,e,l){let t,n;se(s,He,i=>l(2,n=i));let{$$slots:r={},$$scope:o}=e,{isCloud:a=!0}=e;return s.$$set=i=>{"isCloud"in i&&l(0,a=i.isCloud),"$$scope"in i&&l(3,o=i.$$scope)},s.$$.update=()=>{s.$$.dirty&4&&l(1,t=Yl.test(Pn?n.url.hostname:""))},[a,t,n,o,r]}class Wn extends ae{constructor(e){super(),fe(this,e,Un,Kn,ue,{isCloud:0})}}function Zn(s){let e,l,t,n;return{c(){e=st("svg"),l=st("title"),t=G(s[2]),n=st("path"),this.h()},l(r){e=rt(r,"svg",{width:!0,height:!0,viewBox:!0,xmlns:!0,"xmlns:xlink":!0,version:!0,role:!0});var o=R(e);l=rt(o,"title",{});var a=R(l);t=Q(a,s[2]),a.forEach(p),n=rt(o,"path",{id:!0,d:!0,stroke:!0,fill:!0}),R(n).forEach(p),o.forEach(p),this.h()},h(){k(n,"id","Path"),k(n,"d","M65.816 34.224 C63.684 18.251 58.288 4.917 49.999 4.917 41.711 4.917 36.314 18.251 34.182 34.224 18.208 36.357 4.874 41.753 4.874 50.042 4.874 58.33 18.211 63.727 34.182 65.859 36.314 81.83 41.711 95.167 49.999 95.167 58.288 95.167 63.684 81.83 65.816 65.859 81.79 63.727 95.124 58.33 95.124 50.042 95.124 41.753 81.788 36.357 65.816 34.224 Z M33.661 61.206 C18.363 58.997 9.44 53.939 9.44 50.042 9.44 46.144 18.363 41.087 33.661 38.877 33.324 42.56 33.149 46.319 33.149 50.042 33.149 53.764 33.324 57.526 33.661 61.206 Z M49.999 9.483 C53.897 9.483 58.954 18.405 61.164 33.703 57.483 33.367 53.721 33.191 49.999 33.191 46.277 33.191 42.515 33.367 38.835 33.703 41.044 18.405 46.102 9.483 49.999 9.483 Z M66.338 61.206 C65.585 61.316 62.496 61.678 61.715 61.755 61.638 62.539 61.273 65.625 61.166 66.378 58.956 81.676 53.899 90.598 50.001 90.598 46.104 90.598 41.047 81.676 38.837 66.378 38.73 65.625 38.365 62.536 38.288 61.755 37.932 58.129 37.717 54.234 37.717 50.042 37.717 45.85 37.932 41.954 38.288 38.326 41.914 37.97 45.809 37.755 50.001 37.755 54.194 37.755 58.089 37.97 61.715 38.326 62.499 38.403 65.585 38.767 66.338 38.875 81.636 41.085 90.56 46.144 90.56 50.039 90.56 53.935 81.636 58.997 66.338 61.206 Z"),k(n,"stroke",s[3]),k(n,"fill",s[3]),k(e,"width",s[0]),k(e,"height",s[1]),k(e,"viewBox","0 0 100 100"),k(e,"xmlns","http://www.w3.org/2000/svg"),k(e,"xmlns:xlink","http://www.w3.org/1999/xlink"),k(e,"version","1.1"),k(e,"role","img")},m(r,o){w(r,e,o),N(e,l),N(l,t),N(e,n)},p(r,[o]){o&4&&he(t,r[2]),o&1&&k(e,"width",r[0]),o&2&&k(e,"height",r[1])},i:ne,o:ne,d(r){r&&p(e)}}}function Gn(s,e,l){let{width:t="100px"}=e,{height:n="100px"}=e,{isCloud:r}=e,{title:o=""}=e,a=r?"black":"white";return s.$$set=i=>{"width"in i&&l(0,t=i.width),"height"in i&&l(1,n=i.height),"isCloud"in i&&l(4,r=i.isCloud),"title"in i&&l(2,o=i.title)},[t,n,o,a,r]}class Qn extends ae{constructor(e){super(),fe(this,e,Gn,Zn,ue,{width:0,height:1,isCloud:4,title:2})}}const mt=yl("navOpen",!1);const Xn=s=>({}),Xt=s=>({}),Jn=s=>({}),Jt=s=>({}),Yn=s=>({}),Yt=s=>({}),yn=s=>({}),yt=s=>({});function xt(s){let e,l=S("version")+"",t;return{c(){e=O("span"),t=G(l),this.h()},l(n){e=j(n,"SPAN",{class:!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"class","sr-only")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function xn(s){let e,l,t,n,r,o,a,i,f,u,c,d,_,m,b,$,v,q,M,B,F,W,U,E,D,A,Y,J,pe,Z;n=new Qn({props:{height:"24px",width:"24px",isCloud:s[0],title:S("workflows","recent-workflows-link")}}),i=new Ve({props:{name:s[3]?"chevron-left":"chevron-right"}});const Ee=s[11].top,ge=x(Ee,s,s[10],yt),Te=s[11].middle,$e=x(Te,s,s[10],Yt),Se=s[11].bottom,ve=x(Se,s,s[10],Jt);let oe=s[2]&&xt();const De=s[11].drawer,me=x(De,s,s[10],Xt);let K=[{class:"nav-header transition-width"},{"data-testid":"navigation-header"},s[5]],re={};for(let z=0;zl(9,o=$)),se(s,mt,$=>l(3,a=$));let{$$slots:i={},$$scope:f}=e;var u,c,d;let{isCloud:_=!1}=e,{linkList:m}=e;function b(){ce(mt,a=!a,a)}return s.$$set=$=>{e=Ie(Ie({},e),qe($)),l(5,r=Ke(e,n)),"isCloud"in $&&l(0,_=$.isCloud),"linkList"in $&&l(1,m=$.linkList),"$$scope"in $&&l(10,f=$.$$scope)},s.$$.update=()=>{s.$$.dirty&960&&l(2,t=l(8,d=l(7,c=l(6,u=o.data)===null||u===void 0?void 0:u.settings)===null||c===void 0?void 0:c.version)!==null&&d!==void 0?d:"")},[_,m,t,a,b,r,u,c,d,o,f,i]}class ts extends ae{constructor(e){super(),fe(this,e,es,xn,ue,{isCloud:0,linkList:1})}}function ls(s){let e;const l=s[9].default,t=x(l,s,s[8],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&256)&&ee(t,l,n,n[8],e?le(l,n[8],r,null):te(n[8]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function ns(s){let e,l;const t=s[9].default,n=x(t,s,s[8],null);return{c(){e=O("a"),n&&n.c(),this.h()},l(r){e=j(r,"A",{href:!0,class:!0});var o=R(e);n&&n.l(o),o.forEach(p),this.h()},h(){k(e,"href",s[0]),k(e,"class",Re(s[5])+" svelte-4ukgao")},m(r,o){w(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&k(e,"href",r[0])},i(r){l||(g(n,r),l=!0)},o(r){h(n,r),l=!1},d(r){r&&p(e),n&&n.d(r)}}}function ss(s){let e,l;const t=s[9].default,n=x(t,s,s[8],null);return{c(){e=O("a"),n&&n.c(),this.h()},l(r){e=j(r,"A",{href:!0,rel:!0,target:!0,class:!0});var o=R(e);n&&n.l(o),o.forEach(p),this.h()},h(){k(e,"href",s[0]),k(e,"rel","noreferrer"),k(e,"target","_blank"),k(e,"class",Re(s[5])+" svelte-4ukgao")},m(r,o){w(r,e,o),n&&n.m(e,null),l=!0},p(r,o){n&&n.p&&(!l||o&256)&&ee(n,t,r,r[8],l?le(t,r[8],o,null):te(r[8]),null),(!l||o&1)&&k(e,"href",r[0])},i(r){l||(g(n,r),l=!0)},o(r){h(n,r),l=!1},d(r){r&&p(e),n&&n.d(r)}}}function rs(s){let e,l,t,n;const r=s[9].default,o=x(r,s,s[8],null);return{c(){e=O("button"),o&&o.c(),this.h()},l(a){e=j(a,"BUTTON",{class:!0});var i=R(e);o&&o.l(i),i.forEach(p),this.h()},h(){k(e,"class",s[5]+" text-left svelte-4ukgao")},m(a,i){w(a,e,i),o&&o.m(e,null),l=!0,t||(n=we(e,"click",function(){$t(s[4])&&s[4].apply(this,arguments)}),t=!0)},p(a,i){s=a,o&&o.p&&(!l||i&256)&&ee(o,r,s,s[8],l?le(r,s[8],i,null):te(s[8]),null)},i(a){l||(g(o,a),l=!0)},o(a){h(o,a),l=!1},d(a){a&&p(e),o&&o.d(a),t=!1,n()}}}function os(s){let e,l,t,n,r,o;const a=[rs,ss,ns,ls],i=[];function f(u,c){return u[4]!==null?0:u[0]&&u[3]?1:u[0]?2:3}return l=f(s),t=i[l]=a[l](s),{c(){e=O("li"),t.c(),this.h()},l(u){e=j(u,"LI",{class:!0,"data-testid":!0});var c=R(e);t.l(c),c.forEach(p),this.h()},h(){k(e,"class",n=Re(s[0]?"":s[5])+" svelte-4ukgao"),k(e,"data-testid",r=s[6]["data-testid"]),y(e,"noFilter",s[1]),y(e,"wrap",s[2]),y(e,"button",s[4]!==null)},m(u,c){w(u,e,c),i[l].m(e,null),o=!0},p(u,[c]){let d=l;l=f(u),l===d?i[l].p(u,c):(de(),h(i[d],1,1,()=>{i[d]=null}),_e(),t=i[l],t?t.p(u,c):(t=i[l]=a[l](u),t.c()),g(t,1),t.m(e,null)),(!o||c&1&&n!==(n=Re(u[0]?"":u[5])+" svelte-4ukgao"))&&k(e,"class",n),(!o||c&64&&r!==(r=u[6]["data-testid"]))&&k(e,"data-testid",r),(!o||c&3)&&y(e,"noFilter",u[1]),(!o||c&5)&&y(e,"wrap",u[2]),(!o||c&17)&&y(e,"button",u[4]!==null)},i(u){o||(g(t),o=!0)},o(u){h(t),o=!1},d(u){u&&p(e),i[l].d()}}}function is(s,e,l){let{$$slots:t={},$$scope:n}=e,{link:r=null}=e,{isCloud:o}=e,{noFilter:a=!1}=e,{wrap:i=!1}=e,{externalLink:f=!1}=e,{handleClick:u=null}=e,c=`nav-row ${e.class} ${o?"cloud":"local"}`;return s.$$set=d=>{l(6,e=Ie(Ie({},e),qe(d))),"link"in d&&l(0,r=d.link),"isCloud"in d&&l(7,o=d.isCloud),"noFilter"in d&&l(1,a=d.noFilter),"wrap"in d&&l(2,i=d.wrap),"externalLink"in d&&l(3,f=d.externalLink),"handleClick"in d&&l(4,u=d.handleClick),"$$scope"in d&&l(8,n=d.$$scope)},e=qe(e),[r,a,i,f,u,c,e,o,n,t]}class Ae extends ae{constructor(e){super(),fe(this,e,is,os,ue,{link:0,isCloud:7,noFilter:1,wrap:2,externalLink:3,handleClick:4})}}function as(s){let e;const l=s[3].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function fs(s){let e,l;const t=[{right:!0},{hide:s[2]},{text:s[1]},s[0]];let n={$$slots:{default:[as]},$$scope:{ctx:s}};for(let r=0;rl(2,r=u));let{$$slots:o={},$$scope:a}=e,{props:i=n}=e,{text:f=n.text}=e;return s.$$set=u=>{e=Ie(Ie({},e),qe(u)),l(5,n=Ke(e,t)),"props"in u&&l(0,i=u.props),"text"in u&&l(1,f=u.text),"$$scope"in u&&l(4,a=u.$$scope)},[i,f,r,o,a]}class Pe extends ae{constructor(e){super(),fe(this,e,us,fs,ue,{props:0,text:1})}}const cs=s=>({}),el=s=>({}),ds=s=>({}),tl=s=>({}),_s=s=>({}),ll=s=>({}),ms=s=>({}),nl=s=>({}),ps=s=>({}),sl=s=>({});function gs(s){let e,l,t;return l=new Ve({props:{name:"workflow"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function hs(s){let e,l,t,n=S("workflows")+"",r,o;return e=new Pe({props:{text:S("workflows"),$$slots:{default:[gs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function $s(s){let e,l,t;return l=new Ve({props:{name:"schedules"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function bs(s){let e,l,t,n=S("schedules")+"",r,o;return e=new Pe({props:{text:S("schedules"),$$slots:{default:[$s]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function vs(s){let e,l;return e=new Ae({props:{link:s[2].schedules,isCloud:s[0],"data-testid":"schedules-button",$$slots:{default:[bs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].schedules),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function ks(s){var t,n;let e,l;return e=new zn({props:{enabled:Boolean((n=(t=s[1])==null?void 0:t.namespaceInfo)==null?void 0:n.supportsSchedules),$$slots:{default:[vs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(r){I(e.$$.fragment,r)},m(r,o){T(e,r,o),l=!0},p(r,o){var i,f;const a={};o&2&&(a.enabled=Boolean((f=(i=r[1])==null?void 0:i.namespaceInfo)==null?void 0:f.supportsSchedules)),o&517&&(a.$$scope={dirty:o,ctx:r}),e.$set(a)},i(r){l||(g(e.$$.fragment,r),l=!0)},o(r){h(e.$$.fragment,r),l=!1},d(r){L(e,r)}}}function ws(s){let e,l,t;return l=new Ve({props:{name:"archives"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Es(s){let e,l,t,n=S("archive")+"",r,o;return e=new Pe({props:{text:S("archive"),$$slots:{default:[ws]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Cs(s){let e,l;return e=new Ae({props:{link:s[2].archive,isCloud:s[0],"data-testid":"archive-button",$$slots:{default:[Es]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].archive),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Is(s){let e,l,t;return l=new Ve({props:{name:s[4]}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p(n,r){const o={};r&16&&(o.name=n[4]),l.$set(o)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Ts(s){let e,l,t,n=S("batch","nav-title")+"",r,o;return e=new Pe({props:{text:S("batch","list-page-title"),$$slots:{default:[Is]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&528&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Ls(s){let e,l,t,n,r,o,a,i,f;e=new Ae({props:{link:s[2].workflows,isCloud:s[0],"data-testid":"workflows-button",$$slots:{default:[hs]},$$scope:{ctx:s}}}),t=new _t({props:{isCloud:s[0],$$slots:{default:[ks]},$$scope:{ctx:s}}});const u=s[7].top,c=x(u,s,s[9],el);return o=new _t({props:{isCloud:s[0],$$slots:{default:[Cs]},$$scope:{ctx:s}}}),i=new Ae({props:{link:s[2].batchOperations,isCloud:s[0],$$slots:{default:[Ts]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment),n=P(),c&&c.c(),r=P(),C(o.$$.fragment),a=P(),C(i.$$.fragment)},l(d){I(e.$$.fragment,d),l=H(d),I(t.$$.fragment,d),n=H(d),c&&c.l(d),r=H(d),I(o.$$.fragment,d),a=H(d),I(i.$$.fragment,d)},m(d,_){T(e,d,_),w(d,l,_),T(t,d,_),w(d,n,_),c&&c.m(d,_),w(d,r,_),T(o,d,_),w(d,a,_),T(i,d,_),f=!0},p(d,_){const m={};_&4&&(m.link=d[2].workflows),_&1&&(m.isCloud=d[0]),_&512&&(m.$$scope={dirty:_,ctx:d}),e.$set(m);const b={};_&1&&(b.isCloud=d[0]),_&519&&(b.$$scope={dirty:_,ctx:d}),t.$set(b),c&&c.p&&(!f||_&512)&&ee(c,u,d,d[9],f?le(u,d[9],_,cs):te(d[9]),el);const $={};_&1&&($.isCloud=d[0]),_&517&&($.$$scope={dirty:_,ctx:d}),o.$set($);const v={};_&4&&(v.link=d[2].batchOperations),_&1&&(v.isCloud=d[0]),_&528&&(v.$$scope={dirty:_,ctx:d}),i.$set(v)},i(d){f||(g(e.$$.fragment,d),g(t.$$.fragment,d),g(c,d),g(o.$$.fragment,d),g(i.$$.fragment,d),f=!0)},o(d){h(e.$$.fragment,d),h(t.$$.fragment,d),h(c,d),h(o.$$.fragment,d),h(i.$$.fragment,d),f=!1},d(d){L(e,d),d&&p(l),L(t,d),d&&p(n),c&&c.d(d),d&&p(r),L(o,d),d&&p(a),L(i,d)}}}function Vs(s){let e,l,t;return l=new Ve({props:{name:"namespace"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function Ds(s){let e,l,t,n=S("namespaces")+"",r,o;return e=new Pe({props:{text:S("namespaces"),$$slots:{default:[Vs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Ns(s){let e,l;return e=new Ae({props:{link:s[2].namespaces,isCloud:s[0],"data-testid":"namespaces-button",$$slots:{default:[Ds]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].namespaces),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Bs(s){let e,l,t;e=new Wn({props:{isCloud:s[0],$$slots:{default:[Ns]},$$scope:{ctx:s}}});const n=s[7].middle,r=x(n,s,s[9],tl);return{c(){C(e.$$.fragment),l=P(),r&&r.c()},l(o){I(e.$$.fragment,o),l=H(o),r&&r.l(o)},m(o,a){T(e,o,a),w(o,l,a),r&&r.m(o,a),t=!0},p(o,a){const i={};a&1&&(i.isCloud=o[0]),a&517&&(i.$$scope={dirty:a,ctx:o}),e.$set(i),r&&r.p&&(!t||a&512)&&ee(r,n,o,o[9],t?le(n,o[9],a,ds):te(o[9]),tl)},i(o){t||(g(e.$$.fragment,o),g(r,o),t=!0)},o(o){h(e.$$.fragment,o),h(r,o),t=!1},d(o){L(e,o),o&&p(l),r&&r.d(o)}}}function Ss(s){let e,l,t;return l=new Ve({props:{name:"import"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function zs(s){let e,l,t,n=S("import")+"",r,o;return e=new Pe({props:{text:S("import"),$$slots:{default:[Ss]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function Os(s){let e,l;return e=new Ae({props:{link:s[2].import,isCloud:s[0],"data-testid":"import-button",$$slots:{default:[zs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].import),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function js(s){let e,l;return e=new _t({props:{isCloud:s[0],$$slots:{default:[Os]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&1&&(r.isCloud=t[0]),n&517&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Rs(s){let e,l,t;return l=new Ve({props:{name:"feedback"}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p:ne,i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function qs(s){let e,l,t,n=S("feedback")+"",r,o;return e=new Pe({props:{text:S("feedback"),$$slots:{default:[Rs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),t=O("div"),r=G(n),this.h()},l(a){I(e.$$.fragment,a),l=H(a),t=j(a,"DIV",{class:!0});var i=R(t);r=Q(i,n),i.forEach(p),this.h()},h(){k(t,"class","nav-title svelte-1jb7rp7")},m(a,i){T(e,a,i),w(a,l,i),w(a,t,i),N(t,r),o=!0},p(a,i){const f={};i&512&&(f.$$scope={dirty:i,ctx:a}),e.$set(f)},i(a){o||(g(e.$$.fragment,a),o=!0)},o(a){h(e.$$.fragment,a),o=!1},d(a){L(e,a),a&&p(l),a&&p(t)}}}function As(s){let e,l;return e=new Ae({props:{link:s[2].feedback,isCloud:s[0],externalLink:!0,$$slots:{default:[qs]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.link=t[2].feedback),n&1&&(r.isCloud=t[0]),n&512&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ps(s){let e,l,t;return l=new Ve({props:{name:"labs",active:s[3]}}),{c(){e=O("div"),C(l.$$.fragment),this.h()},l(n){e=j(n,"DIV",{class:!0});var r=R(e);I(l.$$.fragment,r),r.forEach(p),this.h()},h(){k(e,"class","nav-icon svelte-1jb7rp7")},m(n,r){w(n,e,r),T(l,e,null),t=!0},p(n,r){const o={};r&8&&(o.active=n[3]),l.$set(o)},i(n){t||(g(l.$$.fragment,n),t=!0)},o(n){h(l.$$.fragment,n),t=!1},d(n){n&&p(e),L(l)}}}function rl(s){let e,l=S("experimental")+"",t;return{c(){e=O("p"),t=G(l),this.h()},l(n){e=j(n,"P",{class:!0});var r=R(e);t=Q(r,l),r.forEach(p),this.h()},h(){k(e,"class","text-[12px]")},m(n,r){w(n,e,r),N(e,t)},p:ne,d(n){n&&p(e)}}}function Hs(s){let e,l,t,n,r,o,a;e=new Pe({props:{right:!0,text:s[6],$$slots:{default:[Ps]},$$scope:{ctx:s}}});let i=s[3]&&rl();return{c(){C(e.$$.fragment),l=P(),t=O("div"),n=O("div"),r=G(s[5]),o=P(),i&&i.c(),this.h()},l(f){I(e.$$.fragment,f),l=H(f),t=j(f,"DIV",{class:!0});var u=R(t);n=j(u,"DIV",{});var c=R(n);r=Q(c,s[5]),c.forEach(p),o=H(u),i&&i.l(u),u.forEach(p),this.h()},h(){k(t,"class","nav-title flex flex-col leading-3 svelte-1jb7rp7")},m(f,u){T(e,f,u),w(f,l,u),w(f,t,u),N(t,n),N(n,r),N(t,o),i&&i.m(t,null),a=!0},p(f,u){const c={};u&64&&(c.text=f[6]),u&520&&(c.$$scope={dirty:u,ctx:f}),e.$set(c),(!a||u&32)&&he(r,f[5]),f[3]?i?i.p(f,u):(i=rl(),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(f){a||(g(e.$$.fragment,f),a=!0)},o(f){h(e.$$.fragment,f),a=!1},d(f){L(e,f),f&&p(l),f&&p(t),i&&i.d()}}}function Ms(s){let e,l,t,n,r;const o=s[7].bottom,a=x(o,s,s[9],sl),i=s[7].import,f=x(i,s,s[9],nl),u=f||js(s),c=s[7].feedback,d=x(c,s,s[9],ll),_=d||As(s);return n=new Ae({props:{isCloud:s[0],handleClick:s[8],$$slots:{default:[Hs]},$$scope:{ctx:s}}}),{c(){a&&a.c(),e=P(),u&&u.c(),l=P(),_&&_.c(),t=P(),C(n.$$.fragment)},l(m){a&&a.l(m),e=H(m),u&&u.l(m),l=H(m),_&&_.l(m),t=H(m),I(n.$$.fragment,m)},m(m,b){a&&a.m(m,b),w(m,e,b),u&&u.m(m,b),w(m,l,b),_&&_.m(m,b),w(m,t,b),T(n,m,b),r=!0},p(m,b){a&&a.p&&(!r||b&512)&&ee(a,o,m,m[9],r?le(o,m[9],b,ps):te(m[9]),sl),f?f.p&&(!r||b&512)&&ee(f,i,m,m[9],r?le(i,m[9],b,ms):te(m[9]),nl):u&&u.p&&(!r||b&5)&&u.p(m,r?b:-1),d?d.p&&(!r||b&512)&&ee(d,c,m,m[9],r?le(c,m[9],b,_s):te(m[9]),ll):_&&_.p&&(!r||b&5)&&_.p(m,r?b:-1);const $={};b&1&&($.isCloud=m[0]),b&8&&($.handleClick=m[8]),b&616&&($.$$scope={dirty:b,ctx:m}),n.$set($)},i(m){r||(g(a,m),g(u,m),g(_,m),g(n.$$.fragment,m),r=!0)},o(m){h(a,m),h(u,m),h(_,m),h(n.$$.fragment,m),r=!1},d(m){a&&a.d(m),m&&p(e),u&&u.d(m),m&&p(l),_&&_.d(m),m&&p(t),L(n,m)}}}function Fs(s){let e,l;return e=new ts({props:{isCloud:s[0],linkList:s[2],"aria-label":S("primary"),$$slots:{bottom:[Ms],middle:[Bs],top:[Ls]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.isCloud=t[0]),n&4&&(r.linkList=t[2]),n&639&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ks(s,e,l){let t,n,r,o;se(s,xl,b=>l(10,r=b)),se(s,zt,b=>l(3,o=b));let{$$slots:a={},$$scope:i}=e,{isCloud:f=!1}=e,{activeNamespace:u}=e,{linkList:c}=e,d="layers-3";const _=setInterval(()=>{if(!r){l(4,d="layers-3");return}setTimeout(()=>{l(4,d="layers-1")}),setTimeout(()=>{l(4,d="layers-2")},330),setTimeout(()=>{l(4,d="layers-3")},660)},2e3);ql(()=>{clearInterval(_)});const m=()=>ce(zt,o=!o,o);return s.$$set=b=>{"isCloud"in b&&l(0,f=b.isCloud),"activeNamespace"in b&&l(1,u=b.activeNamespace),"linkList"in b&&l(2,c=b.linkList),"$$scope"in b&&l(9,i=b.$$scope)},s.$$.update=()=>{s.$$.dirty&8&&l(6,t=`${S("labs")} ${o?`${S("on")} - ${S("experimental")}`:S("off")}`),s.$$.dirty&8&&l(5,n=`${S("labs")} ${o?S("on"):S("off")}`)},[f,u,c,o,d,n,t,a,m,i]}class Us extends ae{constructor(e){super(),fe(this,e,Ks,Fs,ue,{isCloud:0,activeNamespace:1,linkList:2})}}function Ws(s){let e=S("skip-nav")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function Zs(s){let e,l;return e=new Nl({props:{id:"skip-nav",href:"#content",class:"absolute left-1/2 z-100 -translate-y-full p-1 focus:translate-y-0",$$slots:{default:[Ws]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}class Gs extends ae{constructor(e){super(),fe(this,e,null,Zs,ue,{})}}const zl=Xl([He,ft,at,Wl,ut,Zl,Bl],([s,e,l,t,n,r,o])=>{var q,M,B,F,W,U,E,D,A;const a=s.params.namespace,i=(B=(M=(q=s==null?void 0:s.data)==null?void 0:q.settings)==null?void 0:M.codec)==null?void 0:B.endpoint,f=Boolean((U=(W=(F=s==null?void 0:s.data)==null?void 0:F.settings)==null?void 0:W.codec)==null?void 0:U.passAccessToken),u=Boolean((A=(D=(E=s==null?void 0:s.data)==null?void 0:E.settings)==null?void 0:D.codec)==null?void 0:A.includeCredentials),c=l?e:i||e,d=o==null?void 0:o.accessToken,_=c?t==="notRequested":r==="notRequested",m=c?t==="error":r==="error",b=c?t==="success":r==="success",$=Boolean(c&&n),v=Boolean(c||n);return{namespace:a,settingsEndpoint:i,settingsPassAccessToken:f,settingsIncludeCredentials:u,endpoint:c,accessToken:d,hasNotRequested:_,hasError:m,hasSuccess:b,hasEndpointAndPortConfigured:$,hasEndpointOrPortConfigured:v}});function Qs(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","configure-codec-server"),$$slots:{default:[Js]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Xs(s){let e,l,t,n;const r=[xs,ys,Ys],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasNotRequested?0:i[0].hasError?1:i[0].hasSuccess?2:-1}return~(e=a(s))&&(l=o[e]=r[e](s)),{c(){l&&l.c(),t=ie()},l(i){l&&l.l(i),t=ie()},m(i,f){~e&&o[e].m(i,f),w(i,t,f),n=!0},p(i,f){let u=e;e=a(i),e===u?~e&&o[e].p(i,f):(l&&(de(),h(o[u],1,1,()=>{o[u]=null}),_e()),~e?(l=o[e],l?l.p(i,f):(l=o[e]=r[e](i),l.c()),g(l,1),l.m(t.parentNode,t)):l=null)},i(i){n||(g(l),n=!0)},o(i){h(l),n=!1},d(i){~e&&o[e].d(i),i&&p(t)}}}function Js(s){let e,l;return e=new Ge({props:{label:S("data-encoder","configure-codec-server"),class:"relative flex items-center","data-testid":"data-encoder-status",icon:"transcoder-off"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Ys(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-success"),$$slots:{default:[er]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function ys(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-error"),$$slots:{default:[tr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function xs(s){let e,l;return e=new Ze({props:{bottomRight:!0,text:S("data-encoder","codec-server-configured"),$$slots:{default:[lr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&8&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function er(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-success"),class:"relative flex items-center","data-testid":"data-encoder-status-success",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function tr(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-error"),class:"relative flex items-center","data-testid":"data-encoder-status-error",icon:"transcoder-error"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function lr(s){let e,l;return e=new Ge({props:{label:S("data-encoder","codec-server-configured"),class:"relative flex items-center","data-testid":"data-encoder-status-configured",icon:"transcoder-on"}}),e.$on("click",s[1]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function nr(s){let e,l,t,n;const r=[Xs,Qs],o=[];function a(i,f){var u;return(u=i[0])!=null&&u.hasEndpointOrPortConfigured?0:1}return l=a(s),t=o[l]=r[l](s),{c(){e=O("div"),t.c(),this.h()},l(i){e=j(i,"DIV",{class:!0});var f=R(e);t.l(f),f.forEach(p),this.h()},h(){k(e,"class","mx-1 flex items-center")},m(i,f){w(i,e,f),o[l].m(e,null),n=!0},p(i,[f]){let u=l;l=a(i),l===u?o[l].p(i,f):(de(),h(o[u],1,1,()=>{o[u]=null}),_e(),t=o[l],t?t.p(i,f):(t=o[l]=r[l](i),t.c()),g(t,1),t.m(e,null))},i(i){n||(g(t),n=!0)},o(i){h(t),n=!1},d(i){i&&p(e),o[l].d()}}}function sr(s,e,l){let t,n;return se(s,Fe,o=>l(2,t=o)),se(s,zl,o=>l(0,n=o)),[n,()=>{var o;ce(Fe,t=!t,t),t&&((o=document.getElementById("content-wrapper"))===null||o===void 0||o.scrollTo(0,0))}]}class rr extends ae{constructor(e){super(),fe(this,e,sr,nr,ue,{})}}function ol(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t[20]=e[l].offset,t[21]=e[l].abbr,t}function il(s,e,l){const t=s.slice();return t[18]=e[l].value,t[19]=e[l].label,t}function or(s){let e;return{c(){e=G(s[3])},l(l){e=Q(l,s[3])},m(l,t){w(l,e,t)},p(l,t){t&8&&he(e,l[3])},d(l){l&&p(e)}}}function ir(s){let e,l;return e=new Ve({props:{slot:"leading",name:"clock"}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p:ne,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function al(s){let e,l,t,n,r,o,a,i=s[7],f=[];for(let _=0;_h(f[_],1,1,()=>{f[_]=null});function c(_){s[16](_)}let d={label:S("relative"),id:"relative-toggle",labelPosition:"left","data-testid":"timezones-relative-toggle"};return s[5]!==void 0&&(d.checked=s[5]),t=new it({props:d}),Le.push(()=>Ne(t,"checked",c)),t.$on("change",s[9]),o=new Sl({}),{c(){for(let _=0;_n=!1)),t.$set(b)},i(_){if(!a){for(let m=0;mNe(e,"value",f)),n=new Sl({});let c=!s[1]&&al(s),d=s[4],_=[];for(let $=0;$h(_[$],1,1,()=>{_[$]=null});let b=null;return d.length||(b=ul(s)),{c(){C(e.$$.fragment),t=P(),C(n.$$.fragment),r=P(),c&&c.c(),o=P();for(let $=0;$<_.length;$+=1)_[$].c();a=ie(),b&&b.c()},l($){I(e.$$.fragment,$),t=H($),I(n.$$.fragment,$),r=H($),c&&c.l($),o=H($);for(let v=0;v<_.length;v+=1)_[v].l($);a=ie(),b&&b.l($)},m($,v){T(e,$,v),w($,t,v),T(n,$,v),w($,r,v),c&&c.m($,v),w($,o,v);for(let q=0;q<_.length;q+=1)_[q].m($,v);w($,a,v),b&&b.m($,v),i=!0},p($,v){const q={};if(!l&&v&2&&(l=!0,q.value=$[1],Be(()=>l=!1)),e.$set(q),$[1]?c&&(de(),h(c,1,1,()=>{c=null}),_e()):c?(c.p($,v),v&2&&g(c,1)):(c=al($),c.c(),g(c,1),c.m(o.parentNode,o)),v&276){d=$[4];let M;for(M=0;M{b=null}),_e()):(b=ul($),b.c(),g(b,1),b.m(a.parentNode,a))}},i($){if(!i){g(e.$$.fragment,$),g(n.$$.fragment,$),g(c);for(let v=0;vl(5,r=F)),se(s,ye,F=>l(2,o=F));var a,i,f,u;let{position:c="right"}=e;const d=tn(),_=[{label:S("utc"),value:"UTC"},{label:S("local"),value:"local"}];let m="";const b=F=>{r&&F!=="local"&&ce(Ye,r=!1,r),ce(ye,o=F,o),l(1,m="")},$=F=>{F.target.checked&&o!=="local"&&ce(ye,o="local",o)};Al(()=>{String(o)==="relative"&&(ce(ye,o="local",o),ce(Ye,r=!0,r))});function v(F){m=F,l(1,m)}const q=F=>b(F);function M(F){r=F,Ye.set(r)}const B=F=>b(F);return s.$$set=F=>{"position"in F&&l(0,c=F.position)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=m?Ot.filter(({abbr:F,value:W,zones:U})=>{const E=m.trim().toLowerCase();return W.toLowerCase().includes(E)||(F==null?void 0:F.toLowerCase().includes(E))||(U==null?void 0:U.some(D=>D.toLowerCase().includes(E)))}):Ot),s.$$.dirty&15364&&l(3,n=l(13,u=l(11,i=l(10,a=jt[o])===null||a===void 0?void 0:a.abbr)!==null&&i!==void 0?i:l(12,f=jt[o])===null||f===void 0?void 0:f.label)!==null&&u!==void 0?u:ln(o))},[c,m,o,n,t,r,d,_,b,$,a,i,f,u,v,q,M,B]}class pr extends ae{constructor(e){super(),fe(this,e,mr,_r,ue,{position:0})}}const gr=s=>({}),dl=s=>({slot:"leading"}),hr=s=>({}),_l=s=>({slot:"trailing"});function $r(s){let e;const l=s[2].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function br(s){let e;const l=s[2].leading,t=x(l,s,s[4],dl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,gr):te(n[4]),dl)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function vr(s){let e;const l=s[2].trailing,t=x(l,s,s[4],_l);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,hr):te(n[4]),_l)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function kr(s){let e,l;return e=new Ue({props:{role:"option",class:"break-all","aria-selected":s[0],"aria-disabled":s[1],disabled:s[1],selected:s[0],$$slots:{trailing:[vr],leading:[br],default:[$r]},$$scope:{ctx:s}}}),e.$on("click",s[3]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,[n]){const r={};n&1&&(r["aria-selected"]=t[0]),n&2&&(r["aria-disabled"]=t[1]),n&2&&(r.disabled=t[1]),n&1&&(r.selected=t[0]),n&16&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function wr(s,e,l){let{$$slots:t={},$$scope:n}=e,{selected:r=!1}=e,{disabled:o=!1}=e;function a(i){Me.call(this,s,i)}return s.$$set=i=>{"selected"in i&&l(0,r=i.selected),"disabled"in i&&l(1,o=i.disabled),"$$scope"in i&&l(4,n=i.$$scope)},[r,o,t,a,n]}class wt extends ae{constructor(e){super(),fe(this,e,wr,kr,ue,{selected:0,disabled:1})}}function ml(s,e,l){const t=s.slice();return t[48]=e[l],t}const Er=s=>({option:s[0]&131072}),pl=s=>({option:s[22](s[48])});function gl(s){let e,l;return e=new Ve({props:{width:20,height:20,class:"ml-2 shrink-0 text-gray-500",name:s[11]}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n[0]&2048&&(r.name=t[11]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function hl(s){let e,l;return e=new wt({props:{disabled:!0,$$slots:{default:[Cr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n[0]&32|n[1]&1024&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Cr(s){let e;return{c(){e=G(s[5])},l(l){e=Q(l,s[5])},m(l,t){w(l,e,t)},p(l,t){t[0]&32&&he(e,l[5])},d(l){l&&p(e)}}}function Ir(s){let e,l,t,n,r;const o=[Vr,Lr],a=[];function i(f,u){return u[0]&131072&&(e=null),e==null&&(e=!!f[25](f[48])),e?0:1}return l=i(s,[-1,-1]),t=a[l]=o[l](s),{c(){t.c(),n=ie()},l(f){t.l(f),n=ie()},m(f,u){a[l].m(f,u),w(f,n,u),r=!0},p(f,u){let c=l;l=i(f,u),l===c?a[l].p(f,u):(de(),h(a[c],1,1,()=>{a[c]=null}),_e(),t=a[l],t?t.p(f,u):(t=a[l]=o[l](f),t.c()),g(t,1),t.m(n.parentNode,n))},i(f){r||(g(t),r=!0)},o(f){h(t),r=!1},d(f){a[l].d(f),f&&p(n)}}}function Tr(s){let e,l;function t(){return s[38](s[48])}return e=new wt({props:{selected:s[0]===s[48],$$slots:{default:[Nr]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){C(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,r){T(e,n,r),l=!0},p(n,r){s=n;const o={};r[0]&131073&&(o.selected=s[0]===s[48]),r[0]&131072|r[1]&1024&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){L(e,n)}}}function Lr(s){let e;const l=s[36].default,t=x(l,s,s[41],pl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r[0]&131072|r[1]&1024)&&ee(t,l,n,n[41],e?le(l,n[41],r,Er):te(n[41]),pl)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Vr(s){let e,l;function t(){return s[39](s[48])}return e=new wt({props:{selected:s[0]===s[48][s[12]],$$slots:{default:[Dr]},$$scope:{ctx:s}}}),e.$on("click",t),{c(){C(e.$$.fragment)},l(n){I(e.$$.fragment,n)},m(n,r){T(e,n,r),l=!0},p(n,r){s=n;const o={};r[0]&135169&&(o.selected=s[0]===s[48][s[12]]),r[0]&139264|r[1]&1024&&(o.$$scope={dirty:r,ctx:s}),e.$set(o)},i(n){l||(g(e.$$.fragment,n),l=!0)},o(n){h(e.$$.fragment,n),l=!1},d(n){L(e,n)}}}function Dr(s){let e=s[48][s[13]]+"",l,t;return{c(){l=G(e),t=P()},l(n){l=Q(n,e),t=H(n)},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r[0]&139264&&e!==(e=n[48][n[13]]+"")&&he(l,e)},d(n){n&&p(l),n&&p(t)}}}function Nr(s){let e=s[48]+"",l,t;return{c(){l=G(e),t=P()},l(n){l=Q(n,e),t=H(n)},m(n,r){w(n,l,r),w(n,t,r)},p(n,r){r[0]&131072&&e!==(e=n[48]+"")&&he(l,e)},d(n){n&&p(l),n&&p(t)}}}function $l(s){let e,l,t,n,r,o;const a=[Tr,Ir],i=[];function f(u,c){return c[0]&131072&&(e=null),c[0]&131072&&(l=null),e==null&&(e=!!u[23](u[48])),e?0:(l==null&&(l=!!u[24](u[48])),l?1:-1)}return~(t=f(s,[-1,-1]))&&(n=i[t]=a[t](s)),{c(){n&&n.c(),r=ie()},l(u){n&&n.l(u),r=ie()},m(u,c){~t&&i[t].m(u,c),w(u,r,c),o=!0},p(u,c){let d=t;t=f(u,c),t===d?~t&&i[t].p(u,c):(n&&(de(),h(i[d],1,1,()=>{i[d]=null}),_e()),~t?(n=i[t],n?n.p(u,c):(n=i[t]=a[t](u),n.c()),g(n,1),n.m(r.parentNode,r)):n=null)},i(u){o||(g(n),o=!0)},o(u){h(n),o=!1},d(u){~t&&i[t].d(u),u&&p(r)}}}function Br(s){let e,l,t=s[17],n=[];for(let a=0;ah(n[a],1,1,()=>{n[a]=null});let o=null;return t.length||(o=hl(s)),{c(){for(let a=0;a{o=null}),_e()):(o=hl(a),o.c(),g(o,1),o.m(e.parentNode,e))}},i(a){if(!l){for(let i=0;iNe(b,"menuElement",U)),{c(){e=O("label"),l=G(s[3]),t=P(),n=O("div"),B&&B.c(),r=P(),o=O("input"),u=P(),c=O("button"),C(d.$$.fragment),m=P(),C(b.$$.fragment),this.h()},l(D){e=j(D,"LABEL",{class:!0,for:!0});var A=R(e);l=Q(A,s[3]),A.forEach(p),t=H(D),n=j(D,"DIV",{class:!0});var Y=R(n);B&&B.l(Y),r=H(Y),o=j(Y,"INPUT",{id:!0,placeholder:!0,type:!0,class:!0,role:!0,autocomplete:!0,autocapitalize:!0,spellcheck:!0,"data-lpignore":!0,"aria-controls":!0,"aria-expanded":!0,"aria-required":!0,"aria-autocomplete":!0,"data-testid":!0}),u=H(Y),c=j(Y,"BUTTON",{"aria-label":!0,class:!0,tabindex:!0,"aria-controls":!0,"aria-expanded":!0});var J=R(c);I(d.$$.fragment,J),J.forEach(p),Y.forEach(p),m=H(D),I(b.$$.fragment,D),this.h()},h(){k(e,"class","combobox-label svelte-1nqx354"),k(e,"for",s[2]),y(e,"sr-only",s[7]),tt(o,W),y(o,"disabled",s[6]),y(o,"svelte-1nqx354",!0),k(c,"aria-label",s[4]),k(c,"class","combobox-button svelte-1nqx354"),k(c,"tabindex",-1),k(c,"aria-controls",_=s[2]+"-listbox"),k(c,"aria-expanded",s[18]),k(n,"class","combobox-wrapper svelte-1nqx354")},m(D,A){w(D,e,A),N(e,l),w(D,t,A),w(D,n,A),B&&B.m(n,null),N(n,r),N(n,o),o.value=W.value,o.autofocus&&o.focus(),s[37](o),N(n,u),N(n,c),T(d,c,null),w(D,m,A),T(b,D,A),v=!0,q||(M=[we(o,"input",et(s[28])),we(o,"keydown",et(s[27])),we(o,"click",et(s[29])),we(c,"click",s[20])],q=!0)},p(D,A){(!v||A[0]&8)&&he(l,D[3]),(!v||A[0]&4)&&k(e,"for",D[2]),(!v||A[0]&128)&&y(e,"sr-only",D[7]),D[11]?B?(B.p(D,A),A[0]&2048&&g(B,1)):(B=gl(D),B.c(),g(B,1),B.m(n,r)):B&&(de(),h(B,1,1,()=>{B=null}),_e()),tt(o,W=ht(F,[(!v||A[0]&4)&&{id:D[2]},(!v||A[0]&256)&&{placeholder:D[8]},(!v||A[0]&1024)&&{required:D[10]},(!v||A[0]&512)&&{readOnly:D[9]},(!v||A[0]&64)&&{disabled:D[6]},{type:"text"},(!v||A[0]&16384&&o.value!==D[14])&&{value:D[14]},(!v||A[0]&2&&a!==(a="combobox-input "+D[1]))&&{class:a},{role:"combobox"},{autocomplete:"off"},{autocapitalize:"off"},{spellcheck:"false"},{"data-lpignore":"true"},(!v||A[0]&4&&i!==(i=D[2]+"-listbox"))&&{"aria-controls":i},(!v||A[0]&262144)&&{"aria-expanded":D[18]},(!v||A[0]&1024)&&{"aria-required":D[10]},{"aria-autocomplete":"list"},(!v||A[0]&1073741828&&f!==(f=D[30]["data-testid"]??D[2]))&&{"data-testid":f},A[1]&1&&D[31]])),"value"in W&&(o.value=W.value),y(o,"disabled",D[6]),y(o,"svelte-1nqx354",!0);const Y={};A[0]&262144&&(Y.name=D[18]?"chevron-up":"chevron-down"),d.$set(Y),(!v||A[0]&16)&&k(c,"aria-label",D[4]),(!v||A[0]&4&&_!==(_=D[2]+"-listbox"))&&k(c,"aria-controls",_),(!v||A[0]&262144)&&k(c,"aria-expanded",D[18]);const J={};A[0]&4&&(J.id=D[2]+"-listbox"),A[0]&143393|A[1]&1024&&(J.$$scope={dirty:A,ctx:D}),!$&&A[0]&65536&&($=!0,J.menuElement=D[16],Be(()=>$=!1)),b.$set(J)},i(D){v||(g(B),g(d.$$.fragment,D),g(b.$$.fragment,D),v=!0)},o(D){h(B),h(d.$$.fragment,D),h(b.$$.fragment,D),v=!1},d(D){D&&p(e),D&&p(t),D&&p(n),B&&B.d(),s[37](null),L(d),D&&p(m),L(b,D),q=!1,pt(M)}}}function zr(s){let e,l;return e=new vt({props:{open:s[19],$$slots:{default:[Sr]},$$scope:{ctx:s}}}),e.$on("close",s[21]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n[0]&1074266111|n[1]&1025&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function Or(s,e,l){let t;const n=["class","id","label","value","toggleLabel","noResultsText","disabled","labelHidden","options","placeholder","readonly","required","leadingIcon","optionValueKey","optionLabelKey","minSize","maxSize"];let r=Ke(e,n),o,{$$slots:a={},$$scope:i}=e;const f=Ll();let{class:u=""}=e,{id:c}=e,{label:d}=e,{value:_=void 0}=e,{toggleLabel:m}=e,{noResultsText:b}=e,{disabled:$=!1}=e,{labelHidden:v=!1}=e,{options:q}=e,{placeholder:M=null}=e,{readonly:B=!1}=e,{required:F=!1}=e,{leadingIcon:W=null}=e,{optionValueKey:U=null}=e,{optionLabelKey:E=U}=e,{minSize:D=0}=e,{maxSize:A=120}=e,Y,J,pe,Z;const Ee=We(!1);se(s,Ee,V=>l(18,o=V));const ge=()=>{o?$e():Te()},Te=()=>{ce(Ee,o=!0,o),Z.focus(),Z.select()},$e=()=>{o&&(ce(Ee,o=!1,o),Se())},Se=()=>{l(14,Y=K(J)),l(17,t=q)},ve=V=>V,oe=V=>typeof V=="string",De=V=>typeof V=="object",me=V=>V===null||typeof V!="object"?!1:U!==null&&E!==null&&U in V&&E in V,K=V=>{if(!V)return _??"";if(oe(V))return V;if(De(V)&&me(V))return String(V[E])},re=V=>{oe(V)&&l(0,_=V),De(V)&&me(V)&&l(0,_=String(V[U]))},z=V=>{f("change",V),re(V),Se()},X=()=>{const V=pe.querySelector('li[role="option"]:not([aria-disabled="true"])');V&&requestAnimationFrame(()=>V.focus())},be=V=>{switch(V.key){case"Escape":$e();break;case"ArrowDown":Te(),X();break;case"Enter":Te(),X();break}},ke=V=>{l(14,Y=V.currentTarget.value),f("filter",Y),o||Te(),l(17,t=q.filter(je=>{if(oe(je))return je.toLowerCase().includes(V.currentTarget.value.toLowerCase());if(De(je)&&me(je))return String(je[E]).toLowerCase().includes(V.currentTarget.value.toLowerCase())}))},Ce=()=>{o||Te()};function ze(V){Le[V?"unshift":"push"](()=>{Z=V,l(15,Z),l(14,Y),l(33,D),l(34,A),l(32,q),l(0,_),l(12,U),l(35,J)})}const Oe=V=>z(V),Qe=V=>z(V);function Xe(V){pe=V,l(16,pe)}return s.$$set=V=>{l(30,e=Ie(Ie({},e),qe(V))),l(31,r=Ke(e,n)),"class"in V&&l(1,u=V.class),"id"in V&&l(2,c=V.id),"label"in V&&l(3,d=V.label),"value"in V&&l(0,_=V.value),"toggleLabel"in V&&l(4,m=V.toggleLabel),"noResultsText"in V&&l(5,b=V.noResultsText),"disabled"in V&&l(6,$=V.disabled),"labelHidden"in V&&l(7,v=V.labelHidden),"options"in V&&l(32,q=V.options),"placeholder"in V&&l(8,M=V.placeholder),"readonly"in V&&l(9,B=V.readonly),"required"in V&&l(10,F=V.required),"leadingIcon"in V&&l(11,W=V.leadingIcon),"optionValueKey"in V&&l(12,U=V.optionValueKey),"optionLabelKey"in V&&l(13,E=V.optionLabelKey),"minSize"in V&&l(33,D=V.minSize),"maxSize"in V&&l(34,A=V.maxSize),"$$scope"in V&&l(41,i=V.$$scope)},s.$$.update=()=>{s.$$.dirty[1]&2&&l(17,t=q),s.$$.dirty[0]&4097|s.$$.dirty[1]&18&&(l(35,J=q.find(V=>{if(oe(V))return V===_;if(De(V)&&me(V))return V[U]===_})),l(14,Y=K(J))),s.$$.dirty[0]&49152|s.$$.dirty[1]&12&&Z&&Y&&(Y.lengthA?l(15,Z.size=A,Z):l(15,Z.size=Y.length,Z))},e=qe(e),[_,u,c,d,m,b,$,v,M,B,F,W,U,E,Y,Z,pe,t,o,Ee,ge,Se,ve,oe,De,me,z,be,ke,Ce,e,r,q,D,A,J,a,ze,Oe,Qe,Xe,i]}class jr extends ae{constructor(e){super(),fe(this,e,Or,zr,ue,{class:1,id:2,label:3,value:0,toggleLabel:4,noResultsText:5,disabled:6,labelHidden:7,options:32,placeholder:8,readonly:9,required:10,leadingIcon:11,optionValueKey:12,optionLabelKey:13,minSize:33,maxSize:34},null,[-1,-1])}}function bl(s){let e,l;return e=new jr({props:{label:S("namespaces","namespace-label",{namespace:s[2]}),toggleLabel:S("namespaces"),noResultsText:S("no-results"),labelHidden:!0,value:s[2],id:"namespace-switcher",leadingIcon:"namespace-switcher",options:s[1],optionValueKey:"namespace",minSize:32}}),e.$on("change",s[9]),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.label=S("namespaces","namespace-label",{namespace:t[2]})),n&4&&(r.value=t[2]),n&2&&(r.options=t[1]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function vl(s){let e,l;return e=new rr({}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function kl(s){let e,l;return e=new vt({props:{$$slots:{default:[Hr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,n){T(e,t,n),l=!0},p(t,n){const r={};n&16529&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){h(e.$$.fragment,t),l=!1},d(t){L(e,t)}}}function wl(s){var n;let e,l=((n=s[7])==null?void 0:n.name.trim().charAt(0))+"",t;return{c(){e=O("div"),t=G(l),this.h()},l(r){e=j(r,"DIV",{class:!0});var o=R(e);t=Q(o,l),o.forEach(p),this.h()},h(){k(e,"class","text-center text-sm text-black")},m(r,o){w(r,e,o),N(e,t)},p(r,o){var a;o&128&&l!==(l=((a=r[7])==null?void 0:a.name.trim().charAt(0))+"")&&he(t,l)},d(r){r&&p(e)}}}function Rr(s){var f;let e,l,t,n,r,o,a,i=((f=s[7])==null?void 0:f.name)&&wl(s);return{c(){e=O("img"),n=P(),r=O("div"),i&&i.c(),this.h()},l(u){e=j(u,"IMG",{src:!0,alt:!0,class:!0}),n=H(u),r=j(u,"DIV",{class:!0});var c=R(r);i&&i.l(c),c.forEach(p),this.h()},h(){var u,c;Tt(e.src,l=(u=s[7])==null?void 0:u.picture)||k(e,"src",l),k(e,"alt",t=((c=s[7])==null?void 0:c.profile)??S("user-profile")),k(e,"class","h-[24px] w-[24px] cursor-pointer rounded-md"),y(e,"hidden",!s[4]),k(r,"class","aspect-square h-full w-[24px] rounded-md bg-blue-200 p-0.5"),y(r,"hidden",s[4])},m(u,c){w(u,e,c),w(u,n,c),w(u,r,c),i&&i.m(r,null),o||(a=we(e,"error",s[8]),o=!0)},p(u,c){var d,_,m;c&128&&!Tt(e.src,l=(d=u[7])==null?void 0:d.picture)&&k(e,"src",l),c&128&&t!==(t=((_=u[7])==null?void 0:_.profile)??S("user-profile"))&&k(e,"alt",t),c&16&&y(e,"hidden",!u[4]),(m=u[7])!=null&&m.name?i?i.p(u,c):(i=wl(u),i.c(),i.m(r,null)):i&&(i.d(1),i=null),c&16&&y(r,"hidden",u[4])},d(u){u&&p(e),u&&p(n),u&&p(r),i&&i.d(),o=!1,a()}}}function qr(s){let e=s[7].email+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p(t,n){n&128&&e!==(e=t[7].email+"")&&he(l,e)},d(t){t&&p(l)}}}function Ar(s){let e=S("log-out")+"",l;return{c(){l=G(e)},l(t){l=Q(t,e)},m(t,n){w(t,l,n)},p:ne,d(t){t&&p(l)}}}function Pr(s){let e,l,t,n;return e=new Ue({props:{disabled:!0,$$slots:{default:[qr]},$$scope:{ctx:s}}}),t=new Ue({props:{$$slots:{default:[Ar]},$$scope:{ctx:s}}}),t.$on("click",function(){$t(s[0])&&s[0].apply(this,arguments)}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment)},l(r){I(e.$$.fragment,r),l=H(r),I(t.$$.fragment,r)},m(r,o){T(e,r,o),w(r,l,o),T(t,r,o),n=!0},p(r,o){s=r;const a={};o&16512&&(a.$$scope={dirty:o,ctx:s}),e.$set(a);const i={};o&16384&&(i.$$scope={dirty:o,ctx:s}),t.$set(i)},i(r){n||(g(e.$$.fragment,r),g(t.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),h(t.$$.fragment,r),n=!1},d(r){L(e,r),r&&p(l),L(t,r)}}}function Hr(s){let e,l,t,n;return e=new Dl({props:{variant:"ghost",hasIndicator:!0,controls:"user-menu",$$slots:{default:[Rr]},$$scope:{ctx:s}}}),t=new kt({props:{id:"user-menu",position:"right",$$slots:{default:[Pr]},$$scope:{ctx:s}}}),{c(){C(e.$$.fragment),l=P(),C(t.$$.fragment)},l(r){I(e.$$.fragment,r),l=H(r),I(t.$$.fragment,r)},m(r,o){T(e,r,o),w(r,l,o),T(t,r,o),n=!0},p(r,o){const a={};o&16528&&(a.$$scope={dirty:o,ctx:r}),e.$set(a);const i={};o&16513&&(i.$$scope={dirty:o,ctx:r}),t.$set(i)},i(r){n||(g(e.$$.fragment,r),g(t.$$.fragment,r),n=!0)},o(r){h(e.$$.fragment,r),h(t.$$.fragment,r),n=!1},d(r){L(e,r),r&&p(l),L(t,r)}}}function Mr(s){let e,l,t,n,r,o,a,i,f,u;gt(s[12]);let c=s[5]&&bl(s);r=new pr({props:{position:s[3]<768?"left":"right"}});let d=s[5]&&vl(),_=s[7].accessToken&&kl(s);return{c(){e=O("nav"),l=O("div"),c&&c.c(),t=P(),n=O("div"),C(r.$$.fragment),o=P(),d&&d.c(),a=P(),_&&_.c(),this.h()},l(m){e=j(m,"NAV",{class:!0,"data-testid":!0,"aria-label":!0});var b=R(e);l=j(b,"DIV",{class:!0});var $=R(l);c&&c.l($),$.forEach(p),t=H(b),n=j(b,"DIV",{class:!0});var v=R(n);I(r.$$.fragment,v),o=H(v),d&&d.l(v),a=H(v),_&&_.l(v),v.forEach(p),b.forEach(p),this.h()},h(){k(l,"class","flex grow items-center"),k(n,"class","flex items-center gap-2"),k(e,"class","sticky top-0 z-30 flex w-full flex-col items-center justify-end border-b-2 bg-gray-100 p-1 px-4 md:flex-row md:px-8"),k(e,"data-testid","top-nav"),k(e,"aria-label",S("main")),y(e,"bg-red-50",s[6].hasError&&s[5])},m(m,b){w(m,e,b),N(e,l),c&&c.m(l,null),N(e,t),N(e,n),T(r,n,null),N(n,o),d&&d.m(n,null),N(n,a),_&&_.m(n,null),i=!0,f||(u=we(window,"resize",s[12]),f=!0)},p(m,[b]){m[5]?c?(c.p(m,b),b&32&&g(c,1)):(c=bl(m),c.c(),g(c,1),c.m(l,null)):c&&(de(),h(c,1,1,()=>{c=null}),_e());const $={};b&8&&($.position=m[3]<768?"left":"right"),r.$set($),m[5]?d?b&32&&g(d,1):(d=vl(),d.c(),g(d,1),d.m(n,a)):d&&(de(),h(d,1,1,()=>{d=null}),_e()),m[7].accessToken?_?(_.p(m,b),b&128&&g(_,1)):(_=kl(m),_.c(),g(_,1),_.m(n,null)):_&&(de(),h(_,1,1,()=>{_=null}),_e()),(!i||b&96)&&y(e,"bg-red-50",m[6].hasError&&m[5])},i(m){i||(g(c),g(r.$$.fragment,m),g(d),g(_),i=!0)},o(m){h(c),h(r.$$.fragment,m),h(d),h(_),i=!1},d(m){m&&p(e),c&&c.d(),L(r),d&&d.d(),_&&_.d(),f=!1,u()}}}function Fr(s,e,l){let t,n,r,o,a,i,f;se(s,lt,v=>l(13,o=v)),se(s,He,v=>l(11,a=v)),se(s,zl,v=>l(6,i=v)),se(s,Bl,v=>l(7,f=v));let{logout:u}=e,{namespaceList:c=[]}=e,d,_=!0;function m(){l(4,_=!1)}const b=v=>{const q=v.detail;ce(lt,o=q.namespace,o),q==null||q.onClick(q.namespace)};function $(){l(3,d=window.innerWidth)}return s.$$set=v=>{"logout"in v&&l(0,u=v.logout),"namespaceList"in v&&l(1,c=v.namespaceList)},s.$$.update=()=>{s.$$.dirty&2048&&l(2,t=a.params.namespace),s.$$.dirty&2048&&l(10,n=a.url.pathname.split("/")),s.$$.dirty&1028&&l(5,r=t&&(n.includes("workflows")||n.includes("schedules")||n.includes("batch-operations")||n.includes("task-queues")))},[u,c,t,d,_,r,i,f,m,b,n,a,$]}class Kr extends ae{constructor(e){super(),fe(this,e,Fr,Mr,ue,{logout:0,namespaceList:1})}}function Ur(s){let e;const l=s[5].default,t=x(l,s,s[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,r){t&&t.m(n,r),e=!0},p(n,r){t&&t.p&&(!e||r&16)&&ee(t,l,n,n[4],e?le(l,n[4],r,null):te(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){h(t,n),e=!1},d(n){t&&t.d(n)}}}function Wr(s){let e,l,t=s[1].message+"",n,r,o,a,i=(s[2]?s[1].stack:"")+"",f,u;return{c(){e=O("div"),l=O("b"),n=G(t),r=P(),o=O("pre"),a=G(" "),f=G(i),u=G(` `),this.h()},l(c){e=j(c,"DIV",{class:!0});var d=R(e);l=j(d,"B",{});var _=R(l);n=Q(_,t),_.forEach(p),r=H(d),o=j(d,"PRE",{class:!0});var m=R(o);a=Q(m," "),f=Q(m,i),u=Q(m,` diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.4776fa0a.js b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.4776fa0a.js new file mode 100644 index 0000000000..59bb3b70be --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.4776fa0a.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.e5ba1cbe.js";import"../chunks/namespaces-service.df04cc52.js";import"../chunks/settings-service.df92da83.js";import"../chunks/auth-user.6f15fe0f.js";import"../chunks/route-for.31ffa191.js";/* empty css */export{d as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.71b1fca5.js b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.71b1fca5.js deleted file mode 100644 index b4c472d33f..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.71b1fca5.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.54689e5e.js";import"../chunks/namespaces-service.9c90147f.js";import"../chunks/settings-service.23aa4f31.js";import"../chunks/auth-user.6f15fe0f.js";import"../chunks/route-for.cec09c4c.js";/* empty css */export{d as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js index fc10709c76..a8143354fd 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js @@ -1 +1 @@ -import{S as U,b as K,a as M,m as q,w as N,c as F,C as P,p as L,q as j,x as C,k as d,d as A,D as S,u as v,f as w,L as y,E as I,a0 as J,Q as R,a1 as pe,y as me,j as g,g as b,F as T,r as _e,K as V,V as $e,z as O,h as Q,n as W,A as he,Z as de,_ as ge,e as B,a7 as ce,aa as be,ab as ke}from"../chunks/index.6779d4e2.js";import{p as Z}from"../chunks/stores.6ee4c480.js";import{P as we}from"../chunks/page-title.990af218.js";import{j as ve,S as ye,W as Ee,a as Pe}from"../chunks/index.c328f0fe.js";import{C as G}from"../chunks/code-block.c796ec58.js";import{E as Se}from"../chunks/empty-state.c8d40bbf.js";import{u as Ie,F as X,P as Te}from"../chunks/pagination.b9ceda84.js";import{t as k}from"../chunks/translate.29a4bc43.js";import{g as Y}from"../chunks/navigation.a7086f0c.js";import{L as ue}from"../chunks/link.8030aa06.js";import{S as Ne,a as H}from"../chunks/simple-select.e8b6fede.js";import{t as x}from"../chunks/format-date.79dd40f6.js";import{u as ee}from"../chunks/format-time.8258873a.js";import{I as Ce}from"../chunks/icon.a4e81b70.js";function Fe(c){let t,r,e,l,f,s,a,n,m,i,$;return s=new Ce({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){t=q("div"),r=q("label"),e=N(c[0]),l=F(),f=q("span"),P(s.$$.fragment),a=F(),n=q("input"),this.h()},l(u){t=L(u,"DIV",{class:!0});var h=j(t);r=L(h,"LABEL",{for:!0,class:!0});var _=j(r);e=C(_,c[0]),_.forEach(d),l=A(h),f=L(h,"SPAN",{class:!0});var o=j(f);S(s.$$.fragment,o),o.forEach(d),a=A(h),n=L(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(d),this.h()},h(){v(r,"for",c[2]),v(r,"class","hidden"),v(f,"class","svelte-fxm0nn"),v(n,"type","search"),v(n,"class","block w-full focus:outline-none"),v(n,"placeholder",c[0]),v(n,"id",c[2]),v(t,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m(u,h){w(u,t,h),y(t,r),y(r,e),y(t,l),y(t,f),I(s,f,null),y(t,a),y(t,n),J(n,c[1]),m=!0,i||($=[R(n,"input",c[7]),R(n,"keydown",pe(c[6]))],i=!0)},p(u,[h]){(!m||h&1)&&me(e,u[0]),(!m||h&1)&&v(n,"placeholder",u[0]),h&2&&J(n,u[1])},i(u){m||(g(s.$$.fragment,u),m=!0)},o(u){b(s.$$.fragment,u),m=!1},d(u){u&&d(t),T(s),i=!1,_e($)}}}function Ae(c,t,r){let e;V(c,Z,u=>r(5,e=u));let{parameter:l}=t,{name:f}=t,{value:s}=t,a=l&&e.url.searchParams.get(l)||s;const n=`${l||f}-filter`,m=ve(Ie,300);function i(u){$e.call(this,c,u)}function $(){a=this.value,r(1,a)}return c.$$set=u=>{"parameter"in u&&r(3,l=u.parameter),"name"in u&&r(0,f=u.name),"value"in u&&r(4,s=u.value)},c.$$.update=()=>{c.$$.dirty&42&&m({parameter:l,value:a,url:e.url})},[f,a,n,l,s,e,i,$]}class te extends U{constructor(t){super(),K(this,t,Ae,Fe,M,{parameter:3,name:0,value:4})}}function le(c,t,r){const e=c.slice();return e[7]=t[r].value,e[8]=t[r].label,e}function re(c,t,r){const e=c.slice();return e[7]=t[r],e}function qe(c){let t,r;return t=new ue({props:{class:"text-blue-700",$$slots:{default:[je]},$$scope:{ctx:c}}}),t.$on("click",c[5]("advanced")),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function Le(c){let t,r;return t=new ue({props:{href:c[1].url.pathname,$$slots:{default:[Be]},$$scope:{ctx:c}}}),t.$on("click",c[5]("basic")),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&2&&(f.href=e[1].url.pathname),l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function je(c){let t=k("workflows","advanced-search")+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function Be(c){let t=k("workflows","basic-search")+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function De(c){let t,r,e,l,f,s,a,n,m,i,$,u;r=new te({props:{parameter:"workflow-id",name:k("workflow-id"),value:Ge}}),l=new te({props:{parameter:"workflow-type",name:k("workflow-type"),value:Je}}),s=new X({props:{label:k("workflows","time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[We]},$$scope:{ctx:c}}}),n=new X({props:{label:k("status"),parameter:"status",value:null,$$slots:{default:[Ve]},$$scope:{ctx:c}}});function h(o){c[6](o)}let _={id:"filter-by-relative-time",$$slots:{default:[Me]},$$scope:{ctx:c}};return c[2]!==void 0&&(_.value=c[2]),i=new Ne({props:_}),he.push(()=>de(i,"value",h)),{c(){t=q("div"),P(r.$$.fragment),e=F(),P(l.$$.fragment),f=F(),P(s.$$.fragment),a=F(),P(n.$$.fragment),m=F(),P(i.$$.fragment),this.h()},l(o){t=L(o,"DIV",{class:!0,role:!0});var p=j(t);S(r.$$.fragment,p),e=A(p),S(l.$$.fragment,p),f=A(p),S(s.$$.fragment,p),a=A(p),S(n.$$.fragment,p),m=A(p),S(i.$$.fragment,p),p.forEach(d),this.h()},h(){v(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(t,"role","search")},m(o,p){w(o,t,p),I(r,t,null),y(t,e),I(l,t,null),y(t,f),I(s,t,null),y(t,a),I(n,t,null),y(t,m),I(i,t,null),u=!0},p(o,p){const E={};p&8192&&(E.$$scope={dirty:p,ctx:o}),s.$set(E);const D={};p&8192&&(D.$$scope={dirty:p,ctx:o}),n.$set(D);const z={};p&8192&&(z.$$scope={dirty:p,ctx:o}),!$&&p&4&&($=!0,z.value=o[2],ge(()=>$=!1)),i.$set(z)},i(o){u||(g(r.$$.fragment,o),g(l.$$.fragment,o),g(s.$$.fragment,o),g(n.$$.fragment,o),g(i.$$.fragment,o),u=!0)},o(o){b(r.$$.fragment,o),b(l.$$.fragment,o),b(s.$$.fragment,o),b(n.$$.fragment,o),b(i.$$.fragment,o),u=!1},d(o){o&&d(t),T(r),T(l),T(s),T(n),T(i)}}}function Oe(c){let t,r;return t=new ye({props:{icon:!0,placeholder:k("search"),value:c[1].url.searchParams.get("query")}}),t.$on("submit",c[4]),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&2&&(f.value=e[1].url.searchParams.get("query")),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function Qe(c){let t=c[7]+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function ae(c){let t,r;return t=new H({props:{value:c[7],$$slots:{default:[Qe]},$$scope:{ctx:c}}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function We(c){let t,r,e=ee,l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sa[8];for(let a=0;a{i[E]=null}),Q(),l=i[e],l?l.p(o,p):(l=i[e]=m[e](o),l.c()),g(l,1),l.m(r,null));let D=s;s=_(o),s===D?h[s].p(o,p):(O(),b(h[D],1,1,()=>{h[D]=null}),Q(),a=h[s],a?a.p(o,p):(a=h[s]=u[s](o),a.c()),g(a,1),a.m(t,null))},i(o){n||(g(l),g(a),n=!0)},o(o){b(l),b(a),n=!1},d(o){o&&d(t),i[e].d(),h[s].d()}}}let Ge="",Je="";function Re(c,t,r){let e,l;V(c,Z,i=>r(1,e=i)),V(c,x,i=>r(2,l=i));const f={All:{value:null,label:k("workflows","all-statuses")},"Timed Out":{value:"TimedOut",label:k("workflows","timed-out")},Completed:{value:"Completed",label:k("workflows","completed")},Failed:{value:"Failed",label:k("workflows","failed")},"Continued as New":{value:"ContinuedAsNew",label:k("workflows","continued-as-new")},Canceled:{value:"Canceled",label:k("workflows","canceled")},Terminated:{value:"Terminated",label:k("workflows","terminated")}};let s=e.url.searchParams.has("query");const a=i=>{const u=new FormData(i.target).get("query");e.url.searchParams.set("query",String(u)),Y(e.url.toString())},n=i=>$=>{const u=$.target;r(0,s=i==="advanced"),s||e.url.searchParams.delete("query"),Y(u.href)};function m(i){l=i,x.set(l)}return[s,e,l,f,a,n,m]}class Xe extends U{constructor(t){super(),K(this,t,Re,Ze,M,{})}}function se(c,t,r){const e=c.slice();return e[8]=t[r],e}function Ye(c){let t,r=k("workflows","archival-disabled-title")+"",e,l,f,s=k("workflows","archival-disabled-details")+"",a,n,m,i,$,u,h;i=new G({props:{content:`temporal operator namespace update --history-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}});let _=!c[1]&&oe(c);return{c(){t=q("h1"),e=N(r),l=F(),f=q("p"),a=N(s),n=N(":"),m=F(),P(i.$$.fragment),$=F(),_&&_.c(),u=B(),this.h()},l(o){t=L(o,"H1",{class:!0,"data-testid":!0});var p=j(t);e=C(p,r),p.forEach(d),l=A(o),f=L(o,"P",{});var E=j(f);a=C(E,s),n=C(E,":"),E.forEach(d),m=A(o),S(i.$$.fragment,o),$=A(o),_&&_.l(o),u=B(),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","archived-disabled-title")},m(o,p){w(o,t,p),y(t,e),w(o,l,p),w(o,f,p),y(f,a),y(f,n),w(o,m,p),I(i,o,p),w(o,$,p),_&&_.m(o,p),w(o,u,p),h=!0},p(o,p){const E={};p&16&&(E.content=`temporal operator namespace update --history-archival-state enabled ${o[4]}`),i.$set(E),o[1]?_&&(O(),b(_,1,1,()=>{_=null}),Q()):_?(_.p(o,p),p&2&&g(_,1)):(_=oe(o),_.c(),g(_,1),_.m(u.parentNode,u))},i(o){h||(g(i.$$.fragment,o),g(_),h=!0)},o(o){b(i.$$.fragment,o),b(_),h=!1},d(o){o&&d(t),o&&d(l),o&&d(f),o&&d(m),T(i,o),o&&d($),_&&_.d(o),o&&d(u)}}}function xe(c){let t,r=k("workflows","visibility-disabled-archival")+"",e,l,f,s=k("workflows","archival-link-preface")+"",a,n,m=k("workflows","archival-link")+"",i,$,u,h,_;return h=new G({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}}),{c(){t=q("h1"),e=N(r),l=F(),f=q("p"),a=N(s),n=q("a"),i=N(m),$=N(":"),u=F(),P(h.$$.fragment),this.h()},l(o){t=L(o,"H1",{class:!0,"data-testid":!0});var p=j(t);e=C(p,r),p.forEach(d),l=A(o),f=L(o,"P",{});var E=j(f);a=C(E,s),n=L(E,"A",{class:!0,href:!0,target:!0,rel:!0});var D=j(n);i=C(D,m),D.forEach(d),$=C(E,":"),E.forEach(d),u=A(o),S(h.$$.fragment,o),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","visibility-disabled-title"),v(n,"class","text-blue-700 underline"),v(n,"href","https://docs.temporal.io/clusters#archival"),v(n,"target","_blank"),v(n,"rel","noreferrer")},m(o,p){w(o,t,p),y(t,e),w(o,l,p),w(o,f,p),y(f,a),y(f,n),y(n,i),y(f,$),w(o,u,p),I(h,o,p),_=!0},p(o,p){const E={};p&16&&(E.content=`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`),h.$set(E)},i(o){_||(g(h.$$.fragment,o),_=!0)},o(o){b(h.$$.fragment,o),_=!1},d(o){o&&d(t),o&&d(l),o&&d(f),o&&d(u),T(h,o)}}}function et(c){let t,r=k("workflows","archived-workflows")+"",e,l,f,s,a,n,m,i=!c[0]&&fe();const $=[lt,tt],u=[];function h(_,o){var p;return(p=_[3])!=null&&p.length?0:1}return s=h(c),a=u[s]=$[s](c),{c(){t=q("h1"),e=N(r),l=F(),i&&i.c(),f=F(),a.c(),n=B(),this.h()},l(_){t=L(_,"H1",{class:!0,"data-testid":!0});var o=j(t);e=C(o,r),o.forEach(d),l=A(_),i&&i.l(_),f=A(_),a.l(_),n=B(),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","archived-enabled-title")},m(_,o){w(_,t,o),y(t,e),w(_,l,o),i&&i.m(_,o),w(_,f,o),u[s].m(_,o),w(_,n,o),m=!0},p(_,o){_[0]?i&&(O(),b(i,1,1,()=>{i=null}),Q()):i?o&1&&g(i,1):(i=fe(),i.c(),g(i,1),i.m(f.parentNode,f));let p=s;s=h(_),s===p?u[s].p(_,o):(O(),b(u[p],1,1,()=>{u[p]=null}),Q(),a=u[s],a?a.p(_,o):(a=u[s]=$[s](_),a.c()),g(a,1),a.m(n.parentNode,n))},i(_){m||(g(i),g(a),m=!0)},o(_){b(i),b(a),m=!1},d(_){_&&d(t),_&&d(l),i&&i.d(_),_&&d(f),u[s].d(_),_&&d(n)}}}function oe(c){let t,r=k("workflows","archival-link-preface")+"",e,l,f=k("workflows","archival-link")+"",s,a,n,m,i;return m=new G({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}}),{c(){t=q("p"),e=N(r),l=q("a"),s=N(f),a=N(":"),n=F(),P(m.$$.fragment),this.h()},l($){t=L($,"P",{});var u=j(t);e=C(u,r),l=L(u,"A",{class:!0,href:!0,target:!0,rel:!0});var h=j(l);s=C(h,f),h.forEach(d),a=C(u,":"),u.forEach(d),n=A($),S(m.$$.fragment,$),this.h()},h(){v(l,"class","text-blue-700 underline"),v(l,"href","https://docs.temporal.io/clusters#archival"),v(l,"target","_blank"),v(l,"rel","noreferrer")},m($,u){w($,t,u),y(t,e),y(t,l),y(l,s),y(t,a),w($,n,u),I(m,$,u),i=!0},p($,u){const h={};u&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${$[4]}`),m.$set(h)},i($){i||(g(m.$$.fragment,$),i=!0)},o($){b(m.$$.fragment,$),i=!1},d($){$&&d(t),$&&d(n),T(m,$)}}}function fe(c){let t,r;return t=new Xe({}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function tt(c){let t,r;return t=new Se({props:{title:k("workflows","workflow-empty-state-title"),content:k("workflows","archival-empty-state-description")}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p:W,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function lt(c){let t,r;return t=new Te({props:{items:c[3],"aria-label":k("workflows","archived-workflows"),pageSizeSelectLabel:k("per-page"),previousButtonLabel:k("previous"),nextButtonLabel:k("next"),$$slots:{default:[at,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:c}}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8&&(f.items=e[3]),l&2192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function ie(c){let t,r;return t=new Pe({props:{workflow:c[8],namespace:c[4]}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&128&&(f.workflow=e[8]),l&16&&(f.namespace=e[4]),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function rt(c){let t,r,e=c[7],l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{n[h]=null}),Q(),l=n[e],l?l.p(i,$):(l=n[e]=a[e](i),l.c()),g(l,1),l.m(f.parentNode,f))},i(i){s||(g(t.$$.fragment,i),g(l),s=!0)},o(i){b(t.$$.fragment,i),b(l),s=!1},d(i){T(t,i),i&&d(r),n[e].d(i),i&&d(f)}}}function st(c,t,r){let e,l,f,s,a,n;V(c,Z,i=>r(5,n=i));let{data:m}=t;return c.$$set=i=>{"data"in i&&r(6,m=i.data)},c.$$.update=()=>{c.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:f,visibilityArchivalEnabled:s,archivalQueryingNotSupported:a}=m,e,(r(3,l),r(6,m)),(r(2,f),r(6,m)),(r(1,s),r(6,m)),(r(0,a),r(6,m)))},[a,s,f,l,e,n,m]}class wt extends U{constructor(t){super(),K(this,t,st,nt,M,{data:6})}}export{wt as default}; +import{S as U,b as K,a as M,m as q,w as N,c as F,C as P,p as L,q as j,x as C,k as d,d as A,D as S,u as v,f as w,L as y,E as I,a0 as J,Q as R,a1 as pe,y as me,j as g,g as b,F as T,r as _e,K as V,V as $e,z as O,h as Q,n as W,A as he,Z as de,_ as ge,e as B,a7 as ce,aa as be,ab as ke}from"../chunks/index.6779d4e2.js";import{p as Z}from"../chunks/stores.b96d31b2.js";import{P as we}from"../chunks/page-title.990af218.js";import{j as ve,S as ye,W as Ee,a as Pe}from"../chunks/index.55808119.js";import{C as G}from"../chunks/code-block.c796ec58.js";import{E as Se}from"../chunks/empty-state.c8d40bbf.js";import{u as Ie,F as X,P as Te}from"../chunks/pagination.46c6618d.js";import{t as k}from"../chunks/translate.29a4bc43.js";import{g as Y}from"../chunks/navigation.8e7fd3e5.js";import{L as ue}from"../chunks/link.8030aa06.js";import{S as Ne,a as H}from"../chunks/simple-select.e8b6fede.js";import{t as x}from"../chunks/format-date.79dd40f6.js";import{u as ee}from"../chunks/format-time.8258873a.js";import{I as Ce}from"../chunks/icon.a4e81b70.js";function Fe(c){let t,r,e,l,f,s,a,n,m,i,$;return s=new Ce({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){t=q("div"),r=q("label"),e=N(c[0]),l=F(),f=q("span"),P(s.$$.fragment),a=F(),n=q("input"),this.h()},l(u){t=L(u,"DIV",{class:!0});var h=j(t);r=L(h,"LABEL",{for:!0,class:!0});var _=j(r);e=C(_,c[0]),_.forEach(d),l=A(h),f=L(h,"SPAN",{class:!0});var o=j(f);S(s.$$.fragment,o),o.forEach(d),a=A(h),n=L(h,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),h.forEach(d),this.h()},h(){v(r,"for",c[2]),v(r,"class","hidden"),v(f,"class","svelte-fxm0nn"),v(n,"type","search"),v(n,"class","block w-full focus:outline-none"),v(n,"placeholder",c[0]),v(n,"id",c[2]),v(t,"class","input-container bg-white focus-within:border-blue-700 svelte-fxm0nn")},m(u,h){w(u,t,h),y(t,r),y(r,e),y(t,l),y(t,f),I(s,f,null),y(t,a),y(t,n),J(n,c[1]),m=!0,i||($=[R(n,"input",c[7]),R(n,"keydown",pe(c[6]))],i=!0)},p(u,[h]){(!m||h&1)&&me(e,u[0]),(!m||h&1)&&v(n,"placeholder",u[0]),h&2&&J(n,u[1])},i(u){m||(g(s.$$.fragment,u),m=!0)},o(u){b(s.$$.fragment,u),m=!1},d(u){u&&d(t),T(s),i=!1,_e($)}}}function Ae(c,t,r){let e;V(c,Z,u=>r(5,e=u));let{parameter:l}=t,{name:f}=t,{value:s}=t,a=l&&e.url.searchParams.get(l)||s;const n=`${l||f}-filter`,m=ve(Ie,300);function i(u){$e.call(this,c,u)}function $(){a=this.value,r(1,a)}return c.$$set=u=>{"parameter"in u&&r(3,l=u.parameter),"name"in u&&r(0,f=u.name),"value"in u&&r(4,s=u.value)},c.$$.update=()=>{c.$$.dirty&42&&m({parameter:l,value:a,url:e.url})},[f,a,n,l,s,e,i,$]}class te extends U{constructor(t){super(),K(this,t,Ae,Fe,M,{parameter:3,name:0,value:4})}}function le(c,t,r){const e=c.slice();return e[7]=t[r].value,e[8]=t[r].label,e}function re(c,t,r){const e=c.slice();return e[7]=t[r],e}function qe(c){let t,r;return t=new ue({props:{class:"text-blue-700",$$slots:{default:[je]},$$scope:{ctx:c}}}),t.$on("click",c[5]("advanced")),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function Le(c){let t,r;return t=new ue({props:{href:c[1].url.pathname,$$slots:{default:[Be]},$$scope:{ctx:c}}}),t.$on("click",c[5]("basic")),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&2&&(f.href=e[1].url.pathname),l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function je(c){let t=k("workflows","advanced-search")+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function Be(c){let t=k("workflows","basic-search")+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function De(c){let t,r,e,l,f,s,a,n,m,i,$,u;r=new te({props:{parameter:"workflow-id",name:k("workflow-id"),value:Ge}}),l=new te({props:{parameter:"workflow-type",name:k("workflow-type"),value:Je}}),s=new X({props:{label:k("workflows","time-range"),parameter:"time-range",value:"24 hours",$$slots:{default:[We]},$$scope:{ctx:c}}}),n=new X({props:{label:k("status"),parameter:"status",value:null,$$slots:{default:[Ve]},$$scope:{ctx:c}}});function h(o){c[6](o)}let _={id:"filter-by-relative-time",$$slots:{default:[Me]},$$scope:{ctx:c}};return c[2]!==void 0&&(_.value=c[2]),i=new Ne({props:_}),he.push(()=>de(i,"value",h)),{c(){t=q("div"),P(r.$$.fragment),e=F(),P(l.$$.fragment),f=F(),P(s.$$.fragment),a=F(),P(n.$$.fragment),m=F(),P(i.$$.fragment),this.h()},l(o){t=L(o,"DIV",{class:!0,role:!0});var p=j(t);S(r.$$.fragment,p),e=A(p),S(l.$$.fragment,p),f=A(p),S(s.$$.fragment,p),a=A(p),S(n.$$.fragment,p),m=A(p),S(i.$$.fragment,p),p.forEach(d),this.h()},h(){v(t,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(t,"role","search")},m(o,p){w(o,t,p),I(r,t,null),y(t,e),I(l,t,null),y(t,f),I(s,t,null),y(t,a),I(n,t,null),y(t,m),I(i,t,null),u=!0},p(o,p){const E={};p&8192&&(E.$$scope={dirty:p,ctx:o}),s.$set(E);const D={};p&8192&&(D.$$scope={dirty:p,ctx:o}),n.$set(D);const z={};p&8192&&(z.$$scope={dirty:p,ctx:o}),!$&&p&4&&($=!0,z.value=o[2],ge(()=>$=!1)),i.$set(z)},i(o){u||(g(r.$$.fragment,o),g(l.$$.fragment,o),g(s.$$.fragment,o),g(n.$$.fragment,o),g(i.$$.fragment,o),u=!0)},o(o){b(r.$$.fragment,o),b(l.$$.fragment,o),b(s.$$.fragment,o),b(n.$$.fragment,o),b(i.$$.fragment,o),u=!1},d(o){o&&d(t),T(r),T(l),T(s),T(n),T(i)}}}function Oe(c){let t,r;return t=new ye({props:{icon:!0,placeholder:k("search"),value:c[1].url.searchParams.get("query")}}),t.$on("submit",c[4]),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&2&&(f.value=e[1].url.searchParams.get("query")),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function Qe(c){let t=c[7]+"",r;return{c(){r=N(t)},l(e){r=C(e,t)},m(e,l){w(e,r,l)},p:W,d(e){e&&d(r)}}}function ae(c){let t,r;return t=new H({props:{value:c[7],$$slots:{default:[Qe]},$$scope:{ctx:c}}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function We(c){let t,r,e=ee,l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;sa[8];for(let a=0;a{i[E]=null}),Q(),l=i[e],l?l.p(o,p):(l=i[e]=m[e](o),l.c()),g(l,1),l.m(r,null));let D=s;s=_(o),s===D?h[s].p(o,p):(O(),b(h[D],1,1,()=>{h[D]=null}),Q(),a=h[s],a?a.p(o,p):(a=h[s]=u[s](o),a.c()),g(a,1),a.m(t,null))},i(o){n||(g(l),g(a),n=!0)},o(o){b(l),b(a),n=!1},d(o){o&&d(t),i[e].d(),h[s].d()}}}let Ge="",Je="";function Re(c,t,r){let e,l;V(c,Z,i=>r(1,e=i)),V(c,x,i=>r(2,l=i));const f={All:{value:null,label:k("workflows","all-statuses")},"Timed Out":{value:"TimedOut",label:k("workflows","timed-out")},Completed:{value:"Completed",label:k("workflows","completed")},Failed:{value:"Failed",label:k("workflows","failed")},"Continued as New":{value:"ContinuedAsNew",label:k("workflows","continued-as-new")},Canceled:{value:"Canceled",label:k("workflows","canceled")},Terminated:{value:"Terminated",label:k("workflows","terminated")}};let s=e.url.searchParams.has("query");const a=i=>{const u=new FormData(i.target).get("query");e.url.searchParams.set("query",String(u)),Y(e.url.toString())},n=i=>$=>{const u=$.target;r(0,s=i==="advanced"),s||e.url.searchParams.delete("query"),Y(u.href)};function m(i){l=i,x.set(l)}return[s,e,l,f,a,n,m]}class Xe extends U{constructor(t){super(),K(this,t,Re,Ze,M,{})}}function se(c,t,r){const e=c.slice();return e[8]=t[r],e}function Ye(c){let t,r=k("workflows","archival-disabled-title")+"",e,l,f,s=k("workflows","archival-disabled-details")+"",a,n,m,i,$,u,h;i=new G({props:{content:`temporal operator namespace update --history-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}});let _=!c[1]&&oe(c);return{c(){t=q("h1"),e=N(r),l=F(),f=q("p"),a=N(s),n=N(":"),m=F(),P(i.$$.fragment),$=F(),_&&_.c(),u=B(),this.h()},l(o){t=L(o,"H1",{class:!0,"data-testid":!0});var p=j(t);e=C(p,r),p.forEach(d),l=A(o),f=L(o,"P",{});var E=j(f);a=C(E,s),n=C(E,":"),E.forEach(d),m=A(o),S(i.$$.fragment,o),$=A(o),_&&_.l(o),u=B(),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","archived-disabled-title")},m(o,p){w(o,t,p),y(t,e),w(o,l,p),w(o,f,p),y(f,a),y(f,n),w(o,m,p),I(i,o,p),w(o,$,p),_&&_.m(o,p),w(o,u,p),h=!0},p(o,p){const E={};p&16&&(E.content=`temporal operator namespace update --history-archival-state enabled ${o[4]}`),i.$set(E),o[1]?_&&(O(),b(_,1,1,()=>{_=null}),Q()):_?(_.p(o,p),p&2&&g(_,1)):(_=oe(o),_.c(),g(_,1),_.m(u.parentNode,u))},i(o){h||(g(i.$$.fragment,o),g(_),h=!0)},o(o){b(i.$$.fragment,o),b(_),h=!1},d(o){o&&d(t),o&&d(l),o&&d(f),o&&d(m),T(i,o),o&&d($),_&&_.d(o),o&&d(u)}}}function xe(c){let t,r=k("workflows","visibility-disabled-archival")+"",e,l,f,s=k("workflows","archival-link-preface")+"",a,n,m=k("workflows","archival-link")+"",i,$,u,h,_;return h=new G({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}}),{c(){t=q("h1"),e=N(r),l=F(),f=q("p"),a=N(s),n=q("a"),i=N(m),$=N(":"),u=F(),P(h.$$.fragment),this.h()},l(o){t=L(o,"H1",{class:!0,"data-testid":!0});var p=j(t);e=C(p,r),p.forEach(d),l=A(o),f=L(o,"P",{});var E=j(f);a=C(E,s),n=L(E,"A",{class:!0,href:!0,target:!0,rel:!0});var D=j(n);i=C(D,m),D.forEach(d),$=C(E,":"),E.forEach(d),u=A(o),S(h.$$.fragment,o),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","visibility-disabled-title"),v(n,"class","text-blue-700 underline"),v(n,"href","https://docs.temporal.io/clusters#archival"),v(n,"target","_blank"),v(n,"rel","noreferrer")},m(o,p){w(o,t,p),y(t,e),w(o,l,p),w(o,f,p),y(f,a),y(f,n),y(n,i),y(f,$),w(o,u,p),I(h,o,p),_=!0},p(o,p){const E={};p&16&&(E.content=`temporal operator namespace update --visibility-archival-state enabled ${o[4]}`),h.$set(E)},i(o){_||(g(h.$$.fragment,o),_=!0)},o(o){b(h.$$.fragment,o),_=!1},d(o){o&&d(t),o&&d(l),o&&d(f),o&&d(u),T(h,o)}}}function et(c){let t,r=k("workflows","archived-workflows")+"",e,l,f,s,a,n,m,i=!c[0]&&fe();const $=[lt,tt],u=[];function h(_,o){var p;return(p=_[3])!=null&&p.length?0:1}return s=h(c),a=u[s]=$[s](c),{c(){t=q("h1"),e=N(r),l=F(),i&&i.c(),f=F(),a.c(),n=B(),this.h()},l(_){t=L(_,"H1",{class:!0,"data-testid":!0});var o=j(t);e=C(o,r),o.forEach(d),l=A(_),i&&i.l(_),f=A(_),a.l(_),n=B(),this.h()},h(){v(t,"class","text-2xl"),v(t,"data-testid","archived-enabled-title")},m(_,o){w(_,t,o),y(t,e),w(_,l,o),i&&i.m(_,o),w(_,f,o),u[s].m(_,o),w(_,n,o),m=!0},p(_,o){_[0]?i&&(O(),b(i,1,1,()=>{i=null}),Q()):i?o&1&&g(i,1):(i=fe(),i.c(),g(i,1),i.m(f.parentNode,f));let p=s;s=h(_),s===p?u[s].p(_,o):(O(),b(u[p],1,1,()=>{u[p]=null}),Q(),a=u[s],a?a.p(_,o):(a=u[s]=$[s](_),a.c()),g(a,1),a.m(n.parentNode,n))},i(_){m||(g(i),g(a),m=!0)},o(_){b(i),b(a),m=!1},d(_){_&&d(t),_&&d(l),i&&i.d(_),_&&d(f),u[s].d(_),_&&d(n)}}}function oe(c){let t,r=k("workflows","archival-link-preface")+"",e,l,f=k("workflows","archival-link")+"",s,a,n,m,i;return m=new G({props:{content:`temporal operator namespace update --visibility-archival-state enabled ${c[4]}`,language:"text",inline:!0,copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title")}}),{c(){t=q("p"),e=N(r),l=q("a"),s=N(f),a=N(":"),n=F(),P(m.$$.fragment),this.h()},l($){t=L($,"P",{});var u=j(t);e=C(u,r),l=L(u,"A",{class:!0,href:!0,target:!0,rel:!0});var h=j(l);s=C(h,f),h.forEach(d),a=C(u,":"),u.forEach(d),n=A($),S(m.$$.fragment,$),this.h()},h(){v(l,"class","text-blue-700 underline"),v(l,"href","https://docs.temporal.io/clusters#archival"),v(l,"target","_blank"),v(l,"rel","noreferrer")},m($,u){w($,t,u),y(t,e),y(t,l),y(l,s),y(t,a),w($,n,u),I(m,$,u),i=!0},p($,u){const h={};u&16&&(h.content=`temporal operator namespace update --visibility-archival-state enabled ${$[4]}`),m.$set(h)},i($){i||(g(m.$$.fragment,$),i=!0)},o($){b(m.$$.fragment,$),i=!1},d($){$&&d(t),$&&d(n),T(m,$)}}}function fe(c){let t,r;return t=new Xe({}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function tt(c){let t,r;return t=new Se({props:{title:k("workflows","workflow-empty-state-title"),content:k("workflows","archival-empty-state-description")}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p:W,i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function lt(c){let t,r;return t=new Te({props:{items:c[3],"aria-label":k("workflows","archived-workflows"),pageSizeSelectLabel:k("per-page"),previousButtonLabel:k("previous"),nextButtonLabel:k("next"),$$slots:{default:[at,({visibleItems:e})=>({7:e}),({visibleItems:e})=>e?128:0]},$$scope:{ctx:c}}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&8&&(f.items=e[3]),l&2192&&(f.$$scope={dirty:l,ctx:e}),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function ie(c){let t,r;return t=new Pe({props:{workflow:c[8],namespace:c[4]}}),{c(){P(t.$$.fragment)},l(e){S(t.$$.fragment,e)},m(e,l){I(t,e,l),r=!0},p(e,l){const f={};l&128&&(f.workflow=e[8]),l&16&&(f.namespace=e[4]),t.$set(f)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){b(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function rt(c){let t,r,e=c[7],l=[];for(let s=0;sb(l[s],1,1,()=>{l[s]=null});return{c(){for(let s=0;s{n[h]=null}),Q(),l=n[e],l?l.p(i,$):(l=n[e]=a[e](i),l.c()),g(l,1),l.m(f.parentNode,f))},i(i){s||(g(t.$$.fragment,i),g(l),s=!0)},o(i){b(t.$$.fragment,i),b(l),s=!1},d(i){T(t,i),i&&d(r),n[e].d(i),i&&d(f)}}}function st(c,t,r){let e,l,f,s,a,n;V(c,Z,i=>r(5,n=i));let{data:m}=t;return c.$$set=i=>{"data"in i&&r(6,m=i.data)},c.$$.update=()=>{c.$$.dirty&64&&r(4,{namespace:{namespaceInfo:{name:e}},workflows:l,archivalEnabled:f,visibilityArchivalEnabled:s,archivalQueryingNotSupported:a}=m,e,(r(3,l),r(6,m)),(r(2,f),r(6,m)),(r(1,s),r(6,m)),(r(0,a),r(6,m)))},[a,s,f,l,e,n,m]}class wt extends U{constructor(t){super(),K(this,t,st,nt,M,{data:6})}}export{wt as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.9c40fdf0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.9c40fdf0.js new file mode 100644 index 0000000000..e4a1b12776 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.9c40fdf0.js @@ -0,0 +1 @@ +import"../chunks/namespaces-service.df04cc52.js";import"../chunks/workflow-service.2a5b4d45.js";import{l as t}from"../chunks/_page.7b7bdabf.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.ee3cbbd9.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.ee3cbbd9.js deleted file mode 100644 index 085c131e48..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.ee3cbbd9.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/namespaces-service.9c90147f.js";import"../chunks/workflow-service.fd47d996.js";import{l as t}from"../chunks/_page.0f97749e.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js index 472b14cb4f..d075c368fd 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js @@ -1 +1 @@ -import{S as we,b as De,a as Ee,m as u,w as E,c as b,p,q as m,x as k,k as f,d as g,u as v,f as se,L as r,y as L,n as D,K as Ie,C as X,D as Y,E as Z,j as O,z as st,g as y,h as ot,F as x,M as nt,a5 as it,v as ge,P as xe,ar as ct,e as et,as as ft}from"../chunks/index.6779d4e2.js";import{p as ut}from"../chunks/stores.6ee4c480.js";import{P as pt}from"../chunks/page-title.990af218.js";import{t as V}from"../chunks/translate.29a4bc43.js";import{b as Fe,t as mt,r as dt}from"../chunks/format-date.79dd40f6.js";import{B as vt}from"../chunks/badge.d458ea0a.js";import{T as ht}from"../chunks/toggle-switch.0d2aaadb.js";import{T as _t}from"../chunks/tooltip.65a7fa6c.js";import{a as Be,d as $t}from"../chunks/batch-operations.1aa6deab.js";import{C as tt}from"../chunks/card.f7f654dd.js";import{L as bt}from"../chunks/link.8030aa06.js";import{d as at}from"../chunks/route-for.cec09c4c.js";function gt(l){let e,a,t=V("batch","details")+"",n,s,c,o,i=V("batch","operation-type")+"",d,h,S,C=l[0].operationType+"",U,M,_,$,P=V("batch","identity")+"",R,A,j,q=l[0].identity+"",K,z,B,G,me=V("reason")+"",de,J,Q,ee=l[0].reason+"",fe,W,F,te,ae=V("start-time")+"",T,w,oe,le=Fe(l[0].startTime,l[1],{relative:l[2]})+"",ne,he,H,ie,ve=V("close-time")+"",ue,_e,ce,re=Fe(l[0].closeTime,l[1],{relative:l[2]})+"",Pe,Ne,pe,$e,Ue=V("batch","total-operations")+"",ye,Ae,be,ke=Intl.NumberFormat("en-US").format(l[0].totalOperationCount)+"",Ve;return{c(){e=u("div"),a=u("p"),n=E(t),s=b(),c=u("div"),o=u("p"),d=E(i),h=b(),S=u("p"),U=E(C),M=b(),_=u("div"),$=u("p"),R=E(P),A=b(),j=u("p"),K=E(q),z=b(),B=u("div"),G=u("p"),de=E(me),J=b(),Q=u("p"),fe=E(ee),W=b(),F=u("div"),te=u("p"),T=E(ae),w=b(),oe=u("p"),ne=E(le),he=b(),H=u("div"),ie=u("p"),ue=E(ve),_e=b(),ce=u("p"),Pe=E(re),Ne=b(),pe=u("div"),$e=u("p"),ye=E(Ue),Ae=b(),be=u("p"),Ve=E(ke),this.h()},l(N){e=p(N,"DIV",{class:!0});var I=m(e);a=p(I,"P",{});var Me=m(a);n=k(Me,t),Me.forEach(f),s=g(I),c=p(I,"DIV",{class:!0});var Ce=m(c);o=p(Ce,"P",{class:!0});var He=m(o);d=k(He,i),He.forEach(f),h=g(Ce),S=p(Ce,"P",{class:!0});var Le=m(S);U=k(Le,C),Le.forEach(f),Ce.forEach(f),M=g(I),_=p(I,"DIV",{class:!0});var Te=m(_);$=p(Te,"P",{class:!0});var qe=m($);R=k(qe,P),qe.forEach(f),A=g(Te),j=p(Te,"P",{class:!0});var Ke=m(j);K=k(Ke,q),Ke.forEach(f),Te.forEach(f),z=g(I),B=p(I,"DIV",{class:!0});var je=m(B);G=p(je,"P",{class:!0});var ze=m(G);de=k(ze,me),ze.forEach(f),J=g(je),Q=p(je,"P",{class:!0});var Ge=m(Q);fe=k(Ge,ee),Ge.forEach(f),je.forEach(f),W=g(I),F=p(I,"DIV",{class:!0});var Oe=m(F);te=p(Oe,"P",{class:!0});var Je=m(te);T=k(Je,ae),Je.forEach(f),w=g(Oe),oe=p(Oe,"P",{class:!0});var Qe=m(oe);ne=k(Qe,le),Qe.forEach(f),Oe.forEach(f),he=g(I),H=p(I,"DIV",{class:!0});var Se=m(H);ie=p(Se,"P",{class:!0});var We=m(ie);ue=k(We,ve),We.forEach(f),_e=g(Se),ce=p(Se,"P",{class:!0});var Xe=m(ce);Pe=k(Xe,re),Xe.forEach(f),Se.forEach(f),Ne=g(I),pe=p(I,"DIV",{class:!0});var Re=m(pe);$e=p(Re,"P",{class:!0});var Ye=m($e);ye=k(Ye,Ue),Ye.forEach(f),Ae=g(Re),be=p(Re,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Re.forEach(f),I.forEach(f),this.h()},h(){v(o,"class","batch-operation-key svelte-1vorilm"),v(S,"class","batch-operation-value svelte-1vorilm"),v(c,"class","batch-operation-detail svelte-1vorilm"),v($,"class","batch-operation-key svelte-1vorilm"),v(j,"class","batch-operation-value svelte-1vorilm"),v(_,"class","batch-operation-detail svelte-1vorilm"),v(G,"class","batch-operation-key svelte-1vorilm"),v(Q,"class","batch-operation-value svelte-1vorilm"),v(B,"class","batch-operation-detail svelte-1vorilm"),v(te,"class","batch-operation-key svelte-1vorilm"),v(oe,"class","batch-operation-value svelte-1vorilm"),v(F,"class","batch-operation-detail svelte-1vorilm"),v(ie,"class","batch-operation-key svelte-1vorilm"),v(ce,"class","batch-operation-value svelte-1vorilm"),v(H,"class","batch-operation-detail svelte-1vorilm"),v($e,"class","batch-operation-key svelte-1vorilm"),v(be,"class","batch-operation-value svelte-1vorilm"),v(pe,"class","batch-operation-detail svelte-1vorilm"),v(e,"class","flex flex-col gap-2")},m(N,I){se(N,e,I),r(e,a),r(a,n),r(e,s),r(e,c),r(c,o),r(o,d),r(c,h),r(c,S),r(S,U),r(e,M),r(e,_),r(_,$),r($,R),r(_,A),r(_,j),r(j,K),r(e,z),r(e,B),r(B,G),r(G,de),r(B,J),r(B,Q),r(Q,fe),r(e,W),r(e,F),r(F,te),r(te,T),r(F,w),r(F,oe),r(oe,ne),r(e,he),r(e,H),r(H,ie),r(ie,ue),r(H,_e),r(H,ce),r(ce,Pe),r(e,Ne),r(e,pe),r(pe,$e),r($e,ye),r(pe,Ae),r(pe,be),r(be,Ve)},p(N,[I]){I&1&&C!==(C=N[0].operationType+"")&&L(U,C),I&1&&q!==(q=N[0].identity+"")&&L(K,q),I&1&&ee!==(ee=N[0].reason+"")&&L(fe,ee),I&7&&le!==(le=Fe(N[0].startTime,N[1],{relative:N[2]})+"")&&L(ne,le),I&7&&re!==(re=Fe(N[0].closeTime,N[1],{relative:N[2]})+"")&&L(Pe,re),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&L(Ve,ke)},i:D,o:D,d(N){N&&f(e)}}}function Et(l,e,a){let t,n;Ie(l,mt,c=>a(1,t=c)),Ie(l,dt,c=>a(2,n=c));let{operation:s}=e;return l.$$set=c=>{"operation"in c&&a(0,s=c.operation)},[s,t,n]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(l){let e=l[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){se(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&L(a,e)},d(t){t&&f(a)}}}function lt(l){let e,a;return e=new _t({props:{top:!0,text:V("auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const s={};n&34&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(l){let e,a;return e=new ht({props:{id:"batch-operation-auto-refresh",label:V("auto-refresh"),labelPosition:"left",checked:l[1]}}),e.$on("change",l[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const s={};n&2&&(s.checked=t[1]),e.$set(s)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(l){let e,a,t,n,s=V("batch","describe-page-title")+"",c,o,i,d,h,S=l[0].jobId+"",C,U,M;i=new vt({props:{type:l[3][l[0].state],$$slots:{default:[It]},$$scope:{ctx:l}}});let _=l[0].state==="Running"&<(l);return{c(){e=u("div"),a=u("div"),t=u("div"),n=u("h1"),c=E(s),o=b(),X(i.$$.fragment),d=b(),h=u("h2"),C=E(S),U=b(),_&&_.c(),this.h()},l($){e=p($,"DIV",{class:!0});var P=m(e);a=p(P,"DIV",{class:!0});var R=m(a);t=p(R,"DIV",{class:!0});var A=m(t);n=p(A,"H1",{class:!0});var j=m(n);c=k(j,s),j.forEach(f),o=g(A),Y(i.$$.fragment,A),A.forEach(f),d=g(R),h=p(R,"H2",{class:!0});var q=m(h);C=k(q,S),q.forEach(f),R.forEach(f),U=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){v(n,"class","text-2xl"),v(t,"class","flex flex-row gap-2"),v(h,"class","text-sm"),v(a,"class","flex flex-col gap-2"),v(e,"class","flex items-center justify-between")},m($,P){se($,e,P),r(e,a),r(a,t),r(t,n),r(n,c),r(t,o),Z(i,t,null),r(a,d),r(a,h),r(h,C),r(e,U),_&&_.m(e,null),M=!0},p($,[P]){const R={};P&1&&(R.type=$[3][$[0].state]),P&33&&(R.$$scope={dirty:P,ctx:$}),i.$set(R),(!M||P&1)&&S!==(S=$[0].jobId+"")&&L(C,S),$[0].state==="Running"?_?(_.p($,P),P&1&&O(_,1)):(_=lt($),_.c(),O(_,1),_.m(e,null)):_&&(st(),y(_,1,1,()=>{_=null}),ot())},i($){M||(O(i.$$.fragment,$),O(_),M=!0)},o($){y(i.$$.fragment,$),y(_),M=!1},d($){$&&f(e),x(i),_&&_.d()}}}function Pt(l,e,a){let t;Ie(l,Be,i=>a(1,t=i));let{operation:n}=e;const s=nt(),c=i=>{const{checked:d}=i.target;s("toggleAutoRefresh",{checked:d}),it(Be,t=d,t)},o={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return l.$$set=i=>{"operation"in i&&a(0,n=i.operation)},[n,t,c,o]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function Ct(l){let e,a,t=V("batch","results")+"",n,s,c,o,i,d=V("batch","operations-progress",{percent:l[3]})+"",h,S,C,U=Intl.NumberFormat("en-US").format(l[0].completeOperationCount)+"",M,_,$=Intl.NumberFormat("en-US").format(l[0].totalOperationCount)+"",P,R,A,j,q,K,z,B,G=V("batch","operations-succeeded",{count:l[0].completeOperationCount})+"",me,de,J,Q=V("batch","operations-failed",{count:l[0].failureOperationCount})+"",ee,fe,W,F,te,ae;return{c(){e=u("div"),a=u("p"),n=E(t),s=b(),c=u("div"),o=u("div"),i=u("span"),h=E(d),S=b(),C=u("span"),M=E(U),_=E(" / "),P=E($),R=b(),A=u("div"),j=u("div"),q=b(),K=u("div"),z=u("div"),B=u("span"),me=E(G),de=b(),J=u("span"),ee=E(Q),fe=b(),W=u("div"),F=u("div"),te=b(),ae=u("div"),this.h()},l(T){e=p(T,"DIV",{class:!0});var w=m(e);a=p(w,"P",{});var oe=m(a);n=k(oe,t),oe.forEach(f),s=g(w),c=p(w,"DIV",{});var le=m(c);o=p(le,"DIV",{class:!0});var ne=m(o);i=p(ne,"SPAN",{class:!0});var he=m(i);h=k(he,d),he.forEach(f),S=g(ne),C=p(ne,"SPAN",{class:!0});var H=m(C);M=k(H,U),_=k(H," / "),P=k(H,$),H.forEach(f),ne.forEach(f),R=g(le),A=p(le,"DIV",{class:!0});var ie=m(A);j=p(ie,"DIV",{class:!0,style:!0}),m(j).forEach(f),ie.forEach(f),le.forEach(f),q=g(w),K=p(w,"DIV",{});var ve=m(K);z=p(ve,"DIV",{class:!0});var ue=m(z);B=p(ue,"SPAN",{class:!0});var _e=m(B);me=k(_e,G),_e.forEach(f),de=g(ue),J=p(ue,"SPAN",{class:!0});var ce=m(J);ee=k(ce,Q),ce.forEach(f),ue.forEach(f),fe=g(ve),W=p(ve,"DIV",{class:!0});var re=m(W);F=p(re,"DIV",{style:!0,class:!0}),m(F).forEach(f),te=g(re),ae=p(re,"DIV",{style:!0,class:!0}),m(ae).forEach(f),re.forEach(f),ve.forEach(f),w.forEach(f),this.h()},h(){v(i,"class","text-xs font-semibold"),v(C,"class","text-xs font-semibold"),v(o,"class","flex justify-between"),v(j,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(j,"width",l[3]+"%"),v(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),v(B,"class","text-xs font-semibold text-green-700"),v(J,"class","text-xs font-semibold"),xe(J,"text-red-700",l[2]>0),v(z,"class","flex justify-between"),ge(F,"width",l[1]+"%"),v(F,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",l[2]+"%"),v(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),v(W,"class","relative h-2 w-full overflow-hidden rounded"),v(e,"class","flex flex-col gap-4")},m(T,w){se(T,e,w),r(e,a),r(a,n),r(e,s),r(e,c),r(c,o),r(o,i),r(i,h),r(o,S),r(o,C),r(C,M),r(C,_),r(C,P),r(c,R),r(c,A),r(A,j),r(e,q),r(e,K),r(K,z),r(z,B),r(B,me),r(z,de),r(z,J),r(J,ee),r(K,fe),r(K,W),r(W,F),r(W,te),r(W,ae)},p(T,[w]){w&8&&d!==(d=V("batch","operations-progress",{percent:T[3]})+"")&&L(h,d),w&1&&U!==(U=Intl.NumberFormat("en-US").format(T[0].completeOperationCount)+"")&&L(M,U),w&1&&$!==($=Intl.NumberFormat("en-US").format(T[0].totalOperationCount)+"")&&L(P,$),w&8&&ge(j,"width",T[3]+"%"),w&1&&G!==(G=V("batch","operations-succeeded",{count:T[0].completeOperationCount})+"")&&L(me,G),w&1&&Q!==(Q=V("batch","operations-failed",{count:T[0].failureOperationCount})+"")&&L(ee,Q),w&4&&xe(J,"text-red-700",T[2]>0),w&2&&ge(F,"width",T[1]+"%"),w&4&&ge(ae,"width",T[2]+"%")},i:D,o:D,d(T){T&&f(e)}}}function Tt(l,e,a){let{operation:t}=e,n,s,c;return l.$$set=o=>{"operation"in o&&a(0,t=o.operation)},l.$$.update=()=>{if(l.$$.dirty&1){const{completeOperationCount:o,failureOperationCount:i,totalOperationCount:d}=t;a(1,n=Math.round(o/d*100)),a(2,s=Math.round(i/d*100)),a(3,c=Math.round((o+i)/d*100))}},[t,n,s,c]}class jt extends we{constructor(e){super(),De(this,e,Tt,Ct,Ee,{operation:0})}}function Ot(l){let e=V("batch","back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){se(t,a,n)},p:D,d(t){t&&f(a)}}}function St(l){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function Rt(l){let e,a,t,n,s,c;return e=new Vt({props:{operation:l[7]}}),e.$on("toggleAutoRefresh",l[2]),t=new tt({props:{$$slots:{default:[Ft]},$$scope:{ctx:l}}}),s=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(s.$$.fragment)},l(o){Y(e.$$.fragment,o),a=g(o),Y(t.$$.fragment,o),n=g(o),Y(s.$$.fragment,o)},m(o,i){Z(e,o,i),se(o,a,i),Z(t,o,i),se(o,n,i),Z(s,o,i),c=!0},p(o,i){const d={};i&256&&(d.$$scope={dirty:i,ctx:o}),t.$set(d);const h={};i&256&&(h.$$scope={dirty:i,ctx:o}),s.$set(h)},i(o){c||(O(e.$$.fragment,o),O(t.$$.fragment,o),O(s.$$.fragment,o),c=!0)},o(o){y(e.$$.fragment,o),y(t.$$.fragment,o),y(s.$$.fragment,o),c=!1},d(o){x(e,o),o&&f(a),x(t,o),o&&f(n),x(s,o)}}}function Ft(l){let e,a;return e=new kt({props:{operation:l[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(l){let e,a;return e=new jt({props:{operation:l[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function yt(l){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function rt(l){let e,a,t={ctx:l,current:null,token:null,hasCatch:!1,pending:yt,then:Rt,catch:St,value:7,blocks:[,,,]};return ct(l[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,s){se(n,e,s),t.block.m(n,t.anchor=s),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,s){l=n,ft(t,l,s)},i(n){a||(O(t.block),a=!0)},o(n){for(let s=0;s<3;s+=1){const c=t.blocks[s];y(c)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function At(l){let e,a,t,n,s=l[1],c;t=new bt({props:{href:at({namespace:l[0]}),icon:"chevron-left",$$slots:{default:[Ot]},$$scope:{ctx:l}}});let o=rt(l);return{c(){e=u("div"),a=u("div"),X(t.$$.fragment),n=b(),o.c(),this.h()},l(i){e=p(i,"DIV",{class:!0});var d=m(e);a=p(d,"DIV",{class:!0});var h=m(a);Y(t.$$.fragment,h),h.forEach(f),n=g(d),o.l(d),d.forEach(f),this.h()},h(){v(a,"class","flex flex-row"),v(e,"class","flex flex-col gap-4")},m(i,d){se(i,e,d),r(e,a),Z(t,a,null),r(e,n),o.m(e,null),c=!0},p(i,[d]){const h={};d&1&&(h.href=at({namespace:i[0]})),d&256&&(h.$$scope={dirty:d,ctx:i}),t.$set(h),d&2&&Ee(s,s=i[1])?(st(),y(o,1,1,D),ot(),o=rt(i),o.c(),O(o,1),o.m(e,null)):o.p(i,d)},i(i){c||(O(t.$$.fragment,i),O(o),c=!0)},o(i){y(t.$$.fragment,i),y(o),c=!1},d(i){i&&f(e),x(t),o.d(i)}}}function Bt(l,e,a){let t;Ie(l,Be,h=>a(6,t=h));let{namespace:n}=e,{jobId:s}=e,c=0,o;const i=h=>{h.detail.checked?a(1,c+=1):o&&window.clearTimeout(o)},d=()=>$t({jobId:s,namespace:n}).then(h=>(t&&h.state==="Running"&&(o=window.setTimeout(()=>{a(1,c+=1)},5e3)),h));return l.$$set=h=>{"namespace"in h&&a(0,n=h.namespace),"jobId"in h&&a(4,s=h.jobId)},[n,c,i,d,s]}class Ut extends we{constructor(e){super(),De(this,e,Bt,At,Ee,{namespace:0,jobId:4})}}function Mt(l){let e,a,t,n;return e=new pt({props:{title:V("batch","describe-page-title")+" | "+l[0]}}),t=new Ut({props:{jobId:l[0],namespace:l[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(s){Y(e.$$.fragment,s),a=g(s),Y(t.$$.fragment,s)},m(s,c){Z(e,s,c),se(s,a,c),Z(t,s,c),n=!0},p(s,[c]){const o={};c&1&&(o.title=V("batch","describe-page-title")+" | "+s[0]),e.$set(o);const i={};c&1&&(i.jobId=s[0]),c&2&&(i.namespace=s[1]),t.$set(i)},i(s){n||(O(e.$$.fragment,s),O(t.$$.fragment,s),n=!0)},o(s){y(e.$$.fragment,s),y(t.$$.fragment,s),n=!1},d(s){x(e,s),s&&f(a),x(t,s)}}}function Ht(l,e,a){let t,n,s;return Ie(l,ut,c=>a(2,s=c)),l.$$.update=()=>{l.$$.dirty&4&&a(1,t=s.params.namespace),l.$$.dirty&4&&a(0,n=s.params.jobId)},[n,t,s]}class ea extends we{constructor(e){super(),De(this,e,Ht,Mt,Ee,{})}}export{ea as default}; +import{S as we,b as De,a as Ee,m as u,w as E,c as b,p,q as m,x as k,k as f,d as g,u as v,f as se,L as r,y as L,n as D,K as Ie,C as X,D as Y,E as Z,j as O,z as st,g as y,h as ot,F as x,M as nt,a5 as it,v as ge,P as xe,ar as ct,e as et,as as ft}from"../chunks/index.6779d4e2.js";import{p as ut}from"../chunks/stores.b96d31b2.js";import{P as pt}from"../chunks/page-title.990af218.js";import{t as V}from"../chunks/translate.29a4bc43.js";import{b as Fe,t as mt,r as dt}from"../chunks/format-date.79dd40f6.js";import{B as vt}from"../chunks/badge.d458ea0a.js";import{T as ht}from"../chunks/toggle-switch.0d2aaadb.js";import{T as _t}from"../chunks/tooltip.65a7fa6c.js";import{a as Be,d as $t}from"../chunks/batch-operations.852cc113.js";import{C as tt}from"../chunks/card.f7f654dd.js";import{L as bt}from"../chunks/link.8030aa06.js";import{d as at}from"../chunks/route-for.31ffa191.js";function gt(l){let e,a,t=V("batch","details")+"",n,s,c,o,i=V("batch","operation-type")+"",d,h,S,C=l[0].operationType+"",U,M,_,$,P=V("batch","identity")+"",R,A,j,q=l[0].identity+"",K,z,B,G,me=V("reason")+"",de,J,Q,ee=l[0].reason+"",fe,W,F,te,ae=V("start-time")+"",T,w,oe,le=Fe(l[0].startTime,l[1],{relative:l[2]})+"",ne,he,H,ie,ve=V("close-time")+"",ue,_e,ce,re=Fe(l[0].closeTime,l[1],{relative:l[2]})+"",Pe,Ne,pe,$e,Ue=V("batch","total-operations")+"",ye,Ae,be,ke=Intl.NumberFormat("en-US").format(l[0].totalOperationCount)+"",Ve;return{c(){e=u("div"),a=u("p"),n=E(t),s=b(),c=u("div"),o=u("p"),d=E(i),h=b(),S=u("p"),U=E(C),M=b(),_=u("div"),$=u("p"),R=E(P),A=b(),j=u("p"),K=E(q),z=b(),B=u("div"),G=u("p"),de=E(me),J=b(),Q=u("p"),fe=E(ee),W=b(),F=u("div"),te=u("p"),T=E(ae),w=b(),oe=u("p"),ne=E(le),he=b(),H=u("div"),ie=u("p"),ue=E(ve),_e=b(),ce=u("p"),Pe=E(re),Ne=b(),pe=u("div"),$e=u("p"),ye=E(Ue),Ae=b(),be=u("p"),Ve=E(ke),this.h()},l(N){e=p(N,"DIV",{class:!0});var I=m(e);a=p(I,"P",{});var Me=m(a);n=k(Me,t),Me.forEach(f),s=g(I),c=p(I,"DIV",{class:!0});var Ce=m(c);o=p(Ce,"P",{class:!0});var He=m(o);d=k(He,i),He.forEach(f),h=g(Ce),S=p(Ce,"P",{class:!0});var Le=m(S);U=k(Le,C),Le.forEach(f),Ce.forEach(f),M=g(I),_=p(I,"DIV",{class:!0});var Te=m(_);$=p(Te,"P",{class:!0});var qe=m($);R=k(qe,P),qe.forEach(f),A=g(Te),j=p(Te,"P",{class:!0});var Ke=m(j);K=k(Ke,q),Ke.forEach(f),Te.forEach(f),z=g(I),B=p(I,"DIV",{class:!0});var je=m(B);G=p(je,"P",{class:!0});var ze=m(G);de=k(ze,me),ze.forEach(f),J=g(je),Q=p(je,"P",{class:!0});var Ge=m(Q);fe=k(Ge,ee),Ge.forEach(f),je.forEach(f),W=g(I),F=p(I,"DIV",{class:!0});var Oe=m(F);te=p(Oe,"P",{class:!0});var Je=m(te);T=k(Je,ae),Je.forEach(f),w=g(Oe),oe=p(Oe,"P",{class:!0});var Qe=m(oe);ne=k(Qe,le),Qe.forEach(f),Oe.forEach(f),he=g(I),H=p(I,"DIV",{class:!0});var Se=m(H);ie=p(Se,"P",{class:!0});var We=m(ie);ue=k(We,ve),We.forEach(f),_e=g(Se),ce=p(Se,"P",{class:!0});var Xe=m(ce);Pe=k(Xe,re),Xe.forEach(f),Se.forEach(f),Ne=g(I),pe=p(I,"DIV",{class:!0});var Re=m(pe);$e=p(Re,"P",{class:!0});var Ye=m($e);ye=k(Ye,Ue),Ye.forEach(f),Ae=g(Re),be=p(Re,"P",{class:!0});var Ze=m(be);Ve=k(Ze,ke),Ze.forEach(f),Re.forEach(f),I.forEach(f),this.h()},h(){v(o,"class","batch-operation-key svelte-1vorilm"),v(S,"class","batch-operation-value svelte-1vorilm"),v(c,"class","batch-operation-detail svelte-1vorilm"),v($,"class","batch-operation-key svelte-1vorilm"),v(j,"class","batch-operation-value svelte-1vorilm"),v(_,"class","batch-operation-detail svelte-1vorilm"),v(G,"class","batch-operation-key svelte-1vorilm"),v(Q,"class","batch-operation-value svelte-1vorilm"),v(B,"class","batch-operation-detail svelte-1vorilm"),v(te,"class","batch-operation-key svelte-1vorilm"),v(oe,"class","batch-operation-value svelte-1vorilm"),v(F,"class","batch-operation-detail svelte-1vorilm"),v(ie,"class","batch-operation-key svelte-1vorilm"),v(ce,"class","batch-operation-value svelte-1vorilm"),v(H,"class","batch-operation-detail svelte-1vorilm"),v($e,"class","batch-operation-key svelte-1vorilm"),v(be,"class","batch-operation-value svelte-1vorilm"),v(pe,"class","batch-operation-detail svelte-1vorilm"),v(e,"class","flex flex-col gap-2")},m(N,I){se(N,e,I),r(e,a),r(a,n),r(e,s),r(e,c),r(c,o),r(o,d),r(c,h),r(c,S),r(S,U),r(e,M),r(e,_),r(_,$),r($,R),r(_,A),r(_,j),r(j,K),r(e,z),r(e,B),r(B,G),r(G,de),r(B,J),r(B,Q),r(Q,fe),r(e,W),r(e,F),r(F,te),r(te,T),r(F,w),r(F,oe),r(oe,ne),r(e,he),r(e,H),r(H,ie),r(ie,ue),r(H,_e),r(H,ce),r(ce,Pe),r(e,Ne),r(e,pe),r(pe,$e),r($e,ye),r(pe,Ae),r(pe,be),r(be,Ve)},p(N,[I]){I&1&&C!==(C=N[0].operationType+"")&&L(U,C),I&1&&q!==(q=N[0].identity+"")&&L(K,q),I&1&&ee!==(ee=N[0].reason+"")&&L(fe,ee),I&7&&le!==(le=Fe(N[0].startTime,N[1],{relative:N[2]})+"")&&L(ne,le),I&7&&re!==(re=Fe(N[0].closeTime,N[1],{relative:N[2]})+"")&&L(Pe,re),I&1&&ke!==(ke=Intl.NumberFormat("en-US").format(N[0].totalOperationCount)+"")&&L(Ve,ke)},i:D,o:D,d(N){N&&f(e)}}}function Et(l,e,a){let t,n;Ie(l,mt,c=>a(1,t=c)),Ie(l,dt,c=>a(2,n=c));let{operation:s}=e;return l.$$set=c=>{"operation"in c&&a(0,s=c.operation)},[s,t,n]}class kt extends we{constructor(e){super(),De(this,e,Et,gt,Ee,{operation:0})}}function It(l){let e=l[0].state+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){se(t,a,n)},p(t,n){n&1&&e!==(e=t[0].state+"")&&L(a,e)},d(t){t&&f(a)}}}function lt(l){let e,a;return e=new _t({props:{top:!0,text:V("auto-refresh-tooltip",{interval:"5"}),$$slots:{default:[wt]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const s={};n&34&&(s.$$scope={dirty:n,ctx:t}),e.$set(s)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function wt(l){let e,a;return e=new ht({props:{id:"batch-operation-auto-refresh",label:V("auto-refresh"),labelPosition:"left",checked:l[1]}}),e.$on("change",l[2]),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p(t,n){const s={};n&2&&(s.checked=t[1]),e.$set(s)},i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Dt(l){let e,a,t,n,s=V("batch","describe-page-title")+"",c,o,i,d,h,S=l[0].jobId+"",C,U,M;i=new vt({props:{type:l[3][l[0].state],$$slots:{default:[It]},$$scope:{ctx:l}}});let _=l[0].state==="Running"&<(l);return{c(){e=u("div"),a=u("div"),t=u("div"),n=u("h1"),c=E(s),o=b(),X(i.$$.fragment),d=b(),h=u("h2"),C=E(S),U=b(),_&&_.c(),this.h()},l($){e=p($,"DIV",{class:!0});var P=m(e);a=p(P,"DIV",{class:!0});var R=m(a);t=p(R,"DIV",{class:!0});var A=m(t);n=p(A,"H1",{class:!0});var j=m(n);c=k(j,s),j.forEach(f),o=g(A),Y(i.$$.fragment,A),A.forEach(f),d=g(R),h=p(R,"H2",{class:!0});var q=m(h);C=k(q,S),q.forEach(f),R.forEach(f),U=g(P),_&&_.l(P),P.forEach(f),this.h()},h(){v(n,"class","text-2xl"),v(t,"class","flex flex-row gap-2"),v(h,"class","text-sm"),v(a,"class","flex flex-col gap-2"),v(e,"class","flex items-center justify-between")},m($,P){se($,e,P),r(e,a),r(a,t),r(t,n),r(n,c),r(t,o),Z(i,t,null),r(a,d),r(a,h),r(h,C),r(e,U),_&&_.m(e,null),M=!0},p($,[P]){const R={};P&1&&(R.type=$[3][$[0].state]),P&33&&(R.$$scope={dirty:P,ctx:$}),i.$set(R),(!M||P&1)&&S!==(S=$[0].jobId+"")&&L(C,S),$[0].state==="Running"?_?(_.p($,P),P&1&&O(_,1)):(_=lt($),_.c(),O(_,1),_.m(e,null)):_&&(st(),y(_,1,1,()=>{_=null}),ot())},i($){M||(O(i.$$.fragment,$),O(_),M=!0)},o($){y(i.$$.fragment,$),y(_),M=!1},d($){$&&f(e),x(i),_&&_.d()}}}function Pt(l,e,a){let t;Ie(l,Be,i=>a(1,t=i));let{operation:n}=e;const s=nt(),c=i=>{const{checked:d}=i.target;s("toggleAutoRefresh",{checked:d}),it(Be,t=d,t)},o={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return l.$$set=i=>{"operation"in i&&a(0,n=i.operation)},[n,t,c,o]}class Vt extends we{constructor(e){super(),De(this,e,Pt,Dt,Ee,{operation:0})}}function Ct(l){let e,a,t=V("batch","results")+"",n,s,c,o,i,d=V("batch","operations-progress",{percent:l[3]})+"",h,S,C,U=Intl.NumberFormat("en-US").format(l[0].completeOperationCount)+"",M,_,$=Intl.NumberFormat("en-US").format(l[0].totalOperationCount)+"",P,R,A,j,q,K,z,B,G=V("batch","operations-succeeded",{count:l[0].completeOperationCount})+"",me,de,J,Q=V("batch","operations-failed",{count:l[0].failureOperationCount})+"",ee,fe,W,F,te,ae;return{c(){e=u("div"),a=u("p"),n=E(t),s=b(),c=u("div"),o=u("div"),i=u("span"),h=E(d),S=b(),C=u("span"),M=E(U),_=E(" / "),P=E($),R=b(),A=u("div"),j=u("div"),q=b(),K=u("div"),z=u("div"),B=u("span"),me=E(G),de=b(),J=u("span"),ee=E(Q),fe=b(),W=u("div"),F=u("div"),te=b(),ae=u("div"),this.h()},l(T){e=p(T,"DIV",{class:!0});var w=m(e);a=p(w,"P",{});var oe=m(a);n=k(oe,t),oe.forEach(f),s=g(w),c=p(w,"DIV",{});var le=m(c);o=p(le,"DIV",{class:!0});var ne=m(o);i=p(ne,"SPAN",{class:!0});var he=m(i);h=k(he,d),he.forEach(f),S=g(ne),C=p(ne,"SPAN",{class:!0});var H=m(C);M=k(H,U),_=k(H," / "),P=k(H,$),H.forEach(f),ne.forEach(f),R=g(le),A=p(le,"DIV",{class:!0});var ie=m(A);j=p(ie,"DIV",{class:!0,style:!0}),m(j).forEach(f),ie.forEach(f),le.forEach(f),q=g(w),K=p(w,"DIV",{});var ve=m(K);z=p(ve,"DIV",{class:!0});var ue=m(z);B=p(ue,"SPAN",{class:!0});var _e=m(B);me=k(_e,G),_e.forEach(f),de=g(ue),J=p(ue,"SPAN",{class:!0});var ce=m(J);ee=k(ce,Q),ce.forEach(f),ue.forEach(f),fe=g(ve),W=p(ve,"DIV",{class:!0});var re=m(W);F=p(re,"DIV",{style:!0,class:!0}),m(F).forEach(f),te=g(re),ae=p(re,"DIV",{style:!0,class:!0}),m(ae).forEach(f),re.forEach(f),ve.forEach(f),w.forEach(f),this.h()},h(){v(i,"class","text-xs font-semibold"),v(C,"class","text-xs font-semibold"),v(o,"class","flex justify-between"),v(j,"class","absolute left-0 flex h-full items-center bg-indigo-600"),ge(j,"width",l[3]+"%"),v(A,"class","relative h-2 w-full overflow-hidden rounded bg-indigo-100"),v(B,"class","text-xs font-semibold text-green-700"),v(J,"class","text-xs font-semibold"),xe(J,"text-red-700",l[2]>0),v(z,"class","flex justify-between"),ge(F,"width",l[1]+"%"),v(F,"class","absolute left-0 flex h-full items-center bg-green-200"),ge(ae,"width",l[2]+"%"),v(ae,"class","absolute right-0 flex h-full items-center justify-end bg-red-200"),v(W,"class","relative h-2 w-full overflow-hidden rounded"),v(e,"class","flex flex-col gap-4")},m(T,w){se(T,e,w),r(e,a),r(a,n),r(e,s),r(e,c),r(c,o),r(o,i),r(i,h),r(o,S),r(o,C),r(C,M),r(C,_),r(C,P),r(c,R),r(c,A),r(A,j),r(e,q),r(e,K),r(K,z),r(z,B),r(B,me),r(z,de),r(z,J),r(J,ee),r(K,fe),r(K,W),r(W,F),r(W,te),r(W,ae)},p(T,[w]){w&8&&d!==(d=V("batch","operations-progress",{percent:T[3]})+"")&&L(h,d),w&1&&U!==(U=Intl.NumberFormat("en-US").format(T[0].completeOperationCount)+"")&&L(M,U),w&1&&$!==($=Intl.NumberFormat("en-US").format(T[0].totalOperationCount)+"")&&L(P,$),w&8&&ge(j,"width",T[3]+"%"),w&1&&G!==(G=V("batch","operations-succeeded",{count:T[0].completeOperationCount})+"")&&L(me,G),w&1&&Q!==(Q=V("batch","operations-failed",{count:T[0].failureOperationCount})+"")&&L(ee,Q),w&4&&xe(J,"text-red-700",T[2]>0),w&2&&ge(F,"width",T[1]+"%"),w&4&&ge(ae,"width",T[2]+"%")},i:D,o:D,d(T){T&&f(e)}}}function Tt(l,e,a){let{operation:t}=e,n,s,c;return l.$$set=o=>{"operation"in o&&a(0,t=o.operation)},l.$$.update=()=>{if(l.$$.dirty&1){const{completeOperationCount:o,failureOperationCount:i,totalOperationCount:d}=t;a(1,n=Math.round(o/d*100)),a(2,s=Math.round(i/d*100)),a(3,c=Math.round((o+i)/d*100))}},[t,n,s,c]}class jt extends we{constructor(e){super(),De(this,e,Tt,Ct,Ee,{operation:0})}}function Ot(l){let e=V("batch","back-link")+"",a;return{c(){a=E(e)},l(t){a=k(t,e)},m(t,n){se(t,a,n)},p:D,d(t){t&&f(a)}}}function St(l){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function Rt(l){let e,a,t,n,s,c;return e=new Vt({props:{operation:l[7]}}),e.$on("toggleAutoRefresh",l[2]),t=new tt({props:{$$slots:{default:[Ft]},$$scope:{ctx:l}}}),s=new tt({props:{$$slots:{default:[Nt]},$$scope:{ctx:l}}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment),n=b(),X(s.$$.fragment)},l(o){Y(e.$$.fragment,o),a=g(o),Y(t.$$.fragment,o),n=g(o),Y(s.$$.fragment,o)},m(o,i){Z(e,o,i),se(o,a,i),Z(t,o,i),se(o,n,i),Z(s,o,i),c=!0},p(o,i){const d={};i&256&&(d.$$scope={dirty:i,ctx:o}),t.$set(d);const h={};i&256&&(h.$$scope={dirty:i,ctx:o}),s.$set(h)},i(o){c||(O(e.$$.fragment,o),O(t.$$.fragment,o),O(s.$$.fragment,o),c=!0)},o(o){y(e.$$.fragment,o),y(t.$$.fragment,o),y(s.$$.fragment,o),c=!1},d(o){x(e,o),o&&f(a),x(t,o),o&&f(n),x(s,o)}}}function Ft(l){let e,a;return e=new kt({props:{operation:l[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function Nt(l){let e,a;return e=new jt({props:{operation:l[7]}}),{c(){X(e.$$.fragment)},l(t){Y(e.$$.fragment,t)},m(t,n){Z(e,t,n),a=!0},p:D,i(t){a||(O(e.$$.fragment,t),a=!0)},o(t){y(e.$$.fragment,t),a=!1},d(t){x(e,t)}}}function yt(l){return{c:D,l:D,m:D,p:D,i:D,o:D,d:D}}function rt(l){let e,a,t={ctx:l,current:null,token:null,hasCatch:!1,pending:yt,then:Rt,catch:St,value:7,blocks:[,,,]};return ct(l[3](),t),{c(){e=et(),t.block.c()},l(n){e=et(),t.block.l(n)},m(n,s){se(n,e,s),t.block.m(n,t.anchor=s),t.mount=()=>e.parentNode,t.anchor=e,a=!0},p(n,s){l=n,ft(t,l,s)},i(n){a||(O(t.block),a=!0)},o(n){for(let s=0;s<3;s+=1){const c=t.blocks[s];y(c)}a=!1},d(n){n&&f(e),t.block.d(n),t.token=null,t=null}}}function At(l){let e,a,t,n,s=l[1],c;t=new bt({props:{href:at({namespace:l[0]}),icon:"chevron-left",$$slots:{default:[Ot]},$$scope:{ctx:l}}});let o=rt(l);return{c(){e=u("div"),a=u("div"),X(t.$$.fragment),n=b(),o.c(),this.h()},l(i){e=p(i,"DIV",{class:!0});var d=m(e);a=p(d,"DIV",{class:!0});var h=m(a);Y(t.$$.fragment,h),h.forEach(f),n=g(d),o.l(d),d.forEach(f),this.h()},h(){v(a,"class","flex flex-row"),v(e,"class","flex flex-col gap-4")},m(i,d){se(i,e,d),r(e,a),Z(t,a,null),r(e,n),o.m(e,null),c=!0},p(i,[d]){const h={};d&1&&(h.href=at({namespace:i[0]})),d&256&&(h.$$scope={dirty:d,ctx:i}),t.$set(h),d&2&&Ee(s,s=i[1])?(st(),y(o,1,1,D),ot(),o=rt(i),o.c(),O(o,1),o.m(e,null)):o.p(i,d)},i(i){c||(O(t.$$.fragment,i),O(o),c=!0)},o(i){y(t.$$.fragment,i),y(o),c=!1},d(i){i&&f(e),x(t),o.d(i)}}}function Bt(l,e,a){let t;Ie(l,Be,h=>a(6,t=h));let{namespace:n}=e,{jobId:s}=e,c=0,o;const i=h=>{h.detail.checked?a(1,c+=1):o&&window.clearTimeout(o)},d=()=>$t({jobId:s,namespace:n}).then(h=>(t&&h.state==="Running"&&(o=window.setTimeout(()=>{a(1,c+=1)},5e3)),h));return l.$$set=h=>{"namespace"in h&&a(0,n=h.namespace),"jobId"in h&&a(4,s=h.jobId)},[n,c,i,d,s]}class Ut extends we{constructor(e){super(),De(this,e,Bt,At,Ee,{namespace:0,jobId:4})}}function Mt(l){let e,a,t,n;return e=new pt({props:{title:V("batch","describe-page-title")+" | "+l[0]}}),t=new Ut({props:{jobId:l[0],namespace:l[1]}}),{c(){X(e.$$.fragment),a=b(),X(t.$$.fragment)},l(s){Y(e.$$.fragment,s),a=g(s),Y(t.$$.fragment,s)},m(s,c){Z(e,s,c),se(s,a,c),Z(t,s,c),n=!0},p(s,[c]){const o={};c&1&&(o.title=V("batch","describe-page-title")+" | "+s[0]),e.$set(o);const i={};c&1&&(i.jobId=s[0]),c&2&&(i.namespace=s[1]),t.$set(i)},i(s){n||(O(e.$$.fragment,s),O(t.$$.fragment,s),n=!0)},o(s){y(e.$$.fragment,s),y(t.$$.fragment,s),n=!1},d(s){x(e,s),s&&f(a),x(t,s)}}}function Ht(l,e,a){let t,n,s;return Ie(l,ut,c=>a(2,s=c)),l.$$.update=()=>{l.$$.dirty&4&&a(1,t=s.params.namespace),l.$$.dirty&4&&a(0,n=s.params.jobId)},[n,t,s]}class ea extends we{constructor(e){super(),De(this,e,Ht,Mt,Ee,{})}}export{ea as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js similarity index 97% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js index 62ea99b9a3..5c8f799e26 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js @@ -1 +1 @@ -import{S as J,b as M,a as Q,C as g,D as d,E as k,j as _,g as h,F as w,K as V,e as K,f as p,z as U,h as G,a7 as le,k as u,m as F,c as E,p as H,q as L,d as B,u as ae,n as T,w as P,x as C,L as q,y as R,ar as W,as as ne}from"../chunks/index.6779d4e2.js";import{p as oe}from"../chunks/stores.6ee4c480.js";import{P as se}from"../chunks/page-title.990af218.js";import{t as I}from"../chunks/translate.29a4bc43.js";import{B as fe}from"../chunks/badge.d458ea0a.js";import{E as ie}from"../chunks/empty-state.c8d40bbf.js";import{L as ce}from"../chunks/link.8030aa06.js";import{T as ue,a as me}from"../chunks/table-header-row.5433617e.js";import{T as re}from"../chunks/table-row.e455010e.js";import{t as pe,b as z}from"../chunks/format-date.79dd40f6.js";import{p as X}from"../chunks/route-for.cec09c4c.js";import{A as $e}from"../chunks/alert.dcbef44a.js";import{L as _e}from"../chunks/loading.a6f9064e.js";import{l as Y,i as he}from"../chunks/batch-operations.1aa6deab.js";function Z(o,t,l){const e=o.slice();return e[4]=t[l].state,e[5]=t[l].jobId,e[6]=t[l].startTime,e[7]=t[l].closeTime,e}function y(o){let t,l;return t=new re({props:{$$slots:{default:[be]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&1024&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function be(o){let t,l,e,a;return l=new ie({props:{title:I("batch","empty-state-title")}}),{c(){t=F("td"),g(l.$$.fragment),e=E(),this.h()},l(r){t=H(r,"TD",{colspan:!0});var f=L(t);d(l.$$.fragment,f),f.forEach(u),e=B(r),this.h()},h(){ae(t,"colspan","4")},m(r,f){p(r,t,f),k(l,t,null),p(r,e,f),a=!0},p:T,i(r){a||(_(l.$$.fragment,r),a=!0)},o(r){h(l.$$.fragment,r),a=!1},d(r){r&&u(t),w(l),r&&u(e)}}}function ge(o){let t=o[4]+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[4]+"")&&R(l,t)},d(e){e&&u(l)}}}function de(o){let t=o[5]+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&R(l,t)},d(e){e&&u(l)}}}function ke(o){let t,l,e,a,r,f,s,c=z(o[6],o[2])+"",i,$,b,D=z(o[7],o[2])+"",v,S,j;return l=new fe({props:{type:o[3][o[4]],$$slots:{default:[ge]},$$scope:{ctx:o}}}),r=new ce({props:{href:X({namespace:o[0],jobId:o[5]}),$$slots:{default:[de]},$$scope:{ctx:o}}}),{c(){t=F("td"),g(l.$$.fragment),e=E(),a=F("td"),g(r.$$.fragment),f=E(),s=F("td"),i=P(c),$=E(),b=F("td"),v=P(D),S=E()},l(n){t=H(n,"TD",{});var m=L(t);d(l.$$.fragment,m),m.forEach(u),e=B(n),a=H(n,"TD",{});var N=L(a);d(r.$$.fragment,N),N.forEach(u),f=B(n),s=H(n,"TD",{});var O=L(s);i=C(O,c),O.forEach(u),$=B(n),b=H(n,"TD",{});var A=L(b);v=C(A,D),A.forEach(u),S=B(n)},m(n,m){p(n,t,m),k(l,t,null),p(n,e,m),p(n,a,m),k(r,a,null),p(n,f,m),p(n,s,m),q(s,i),p(n,$,m),p(n,b,m),q(b,v),p(n,S,m),j=!0},p(n,m){const N={};m&2&&(N.type=n[3][n[4]]),m&1026&&(N.$$scope={dirty:m,ctx:n}),l.$set(N);const O={};m&3&&(O.href=X({namespace:n[0],jobId:n[5]})),m&1026&&(O.$$scope={dirty:m,ctx:n}),r.$set(O),(!j||m&6)&&c!==(c=z(n[6],n[2])+"")&&R(i,c),(!j||m&6)&&D!==(D=z(n[7],n[2])+"")&&R(v,D)},i(n){j||(_(l.$$.fragment,n),_(r.$$.fragment,n),j=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),j=!1},d(n){n&&u(t),w(l),n&&u(e),n&&u(a),w(r),n&&u(f),n&&u(s),n&&u($),n&&u(b),n&&u(S)}}}function x(o){let t,l;return t=new re({props:{$$slots:{default:[ke]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&1031&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function we(o){let t,l,e=o[1],a=[];for(let s=0;sh(a[s],1,1,()=>{a[s]=null});let f=null;return e.length||(f=y(o)),{c(){for(let s=0;s{f=null}),G()):(f=y(s),f.c(),_(f,1),f.m(t.parentNode,t))}},i(s){if(!l){for(let c=0;cl(2,e=s));let{namespace:a}=t,{operations:r}=t;const f={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return o.$$set=s=>{"namespace"in s&&l(0,a=s.namespace),"operations"in s&&l(1,r=s.operations)},[a,r,e,f]}class De extends J{constructor(t){super(),M(this,t,Be,Ee,Q,{namespace:0,operations:1})}}function ee(o){o[2]=o[3].operations}function je(o){return{c:T,l:T,m:T,p:T,i:T,o:T,d:T}}function Fe(o){ee(o);let t,l,e,a=o[1]&&te(o);return l=new De({props:{operations:o[2],namespace:o[0]}}),{c(){a&&a.c(),t=E(),g(l.$$.fragment)},l(r){a&&a.l(r),t=B(r),d(l.$$.fragment,r)},m(r,f){a&&a.m(r,f),p(r,t,f),k(l,r,f),e=!0},p(r,f){ee(r),r[1]?a?(a.p(r,f),f&2&&_(a,1)):(a=te(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(U(),h(a,1,1,()=>{a=null}),G());const s={};f&1&&(s.operations=r[2]),f&1&&(s.namespace=r[0]),l.$set(s)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){a&&a.d(r),r&&u(t),w(l,r)}}}function te(o){let t,l;return t=new $e({props:{icon:"info",intent:"info",title:I("batch","max-concurrent-alert-title"),$$slots:{default:[He]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function He(o){let t=I("batch","max-concurrent-alert-description")+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p:T,d(e){e&&u(l)}}}function Le(o){let t,l;return t=new _e({}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p:T,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Pe(o){let t,l=I("batch","list-page-title")+"",e,a,r,f,s,c={ctx:o,current:null,token:null,hasCatch:!1,pending:Le,then:Fe,catch:je,value:3,blocks:[,,,]};return W(f=Y(o[0]),c),{c(){t=F("h1"),e=P(l),a=E(),r=K(),c.block.c(),this.h()},l(i){t=H(i,"H1",{class:!0});var $=L(t);e=C($,l),$.forEach(u),a=B(i),r=K(),c.block.l(i),this.h()},h(){ae(t,"class","text-2xl")},m(i,$){p(i,t,$),q(t,e),p(i,a,$),p(i,r,$),c.block.m(i,c.anchor=$),c.mount=()=>r.parentNode,c.anchor=r,s=!0},p(i,[$]){o=i,c.ctx=o,$&1&&f!==(f=Y(o[0]))&&W(f,c)||ne(c,o,$)},i(i){s||(_(c.block),s=!0)},o(i){for(let $=0;$<3;$+=1){const b=c.blocks[$];h(b)}s=!1},d(i){i&&u(t),i&&u(a),i&&u(r),c.block.d(i),c.token=null,c=null}}}function Ce(o,t,l){let e;V(o,he,r=>l(1,e=r));let{namespace:a}=t;return o.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ne extends J{constructor(t){super(),M(this,t,Ce,Pe,Q,{namespace:0})}}function Oe(o){let t,l,e,a;return t=new se({props:{title:I("batch","list-page-title")}}),e=new Ne({props:{namespace:o[0]}}),{c(){g(t.$$.fragment),l=E(),g(e.$$.fragment)},l(r){d(t.$$.fragment,r),l=B(r),d(e.$$.fragment,r)},m(r,f){k(t,r,f),p(r,l,f),k(e,r,f),a=!0},p(r,[f]){const s={};f&1&&(s.namespace=r[0]),e.$set(s)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){w(t,r),r&&u(l),w(e,r)}}}function Ie(o,t,l){let e,a;return V(o,oe,r=>l(1,a=r)),o.$$.update=()=>{o.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class Ye extends J{constructor(t){super(),M(this,t,Ie,Oe,Q,{})}}export{Ye as default}; +import{S as J,b as M,a as Q,C as g,D as d,E as k,j as _,g as h,F as w,K as V,e as K,f as p,z as U,h as G,a7 as le,k as u,m as F,c as E,p as H,q as L,d as B,u as ae,n as T,w as P,x as C,L as q,y as R,ar as W,as as ne}from"../chunks/index.6779d4e2.js";import{p as oe}from"../chunks/stores.b96d31b2.js";import{P as se}from"../chunks/page-title.990af218.js";import{t as I}from"../chunks/translate.29a4bc43.js";import{B as fe}from"../chunks/badge.d458ea0a.js";import{E as ie}from"../chunks/empty-state.c8d40bbf.js";import{L as ce}from"../chunks/link.8030aa06.js";import{T as ue,a as me}from"../chunks/table-header-row.5433617e.js";import{T as re}from"../chunks/table-row.e455010e.js";import{t as pe,b as z}from"../chunks/format-date.79dd40f6.js";import{p as X}from"../chunks/route-for.31ffa191.js";import{A as $e}from"../chunks/alert.dcbef44a.js";import{L as _e}from"../chunks/loading.a6f9064e.js";import{l as Y,i as he}from"../chunks/batch-operations.852cc113.js";function Z(o,t,l){const e=o.slice();return e[4]=t[l].state,e[5]=t[l].jobId,e[6]=t[l].startTime,e[7]=t[l].closeTime,e}function y(o){let t,l;return t=new re({props:{$$slots:{default:[be]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&1024&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function be(o){let t,l,e,a;return l=new ie({props:{title:I("batch","empty-state-title")}}),{c(){t=F("td"),g(l.$$.fragment),e=E(),this.h()},l(r){t=H(r,"TD",{colspan:!0});var f=L(t);d(l.$$.fragment,f),f.forEach(u),e=B(r),this.h()},h(){ae(t,"colspan","4")},m(r,f){p(r,t,f),k(l,t,null),p(r,e,f),a=!0},p:T,i(r){a||(_(l.$$.fragment,r),a=!0)},o(r){h(l.$$.fragment,r),a=!1},d(r){r&&u(t),w(l),r&&u(e)}}}function ge(o){let t=o[4]+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[4]+"")&&R(l,t)},d(e){e&&u(l)}}}function de(o){let t=o[5]+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p(e,a){a&2&&t!==(t=e[5]+"")&&R(l,t)},d(e){e&&u(l)}}}function ke(o){let t,l,e,a,r,f,s,c=z(o[6],o[2])+"",i,$,b,D=z(o[7],o[2])+"",v,S,j;return l=new fe({props:{type:o[3][o[4]],$$slots:{default:[ge]},$$scope:{ctx:o}}}),r=new ce({props:{href:X({namespace:o[0],jobId:o[5]}),$$slots:{default:[de]},$$scope:{ctx:o}}}),{c(){t=F("td"),g(l.$$.fragment),e=E(),a=F("td"),g(r.$$.fragment),f=E(),s=F("td"),i=P(c),$=E(),b=F("td"),v=P(D),S=E()},l(n){t=H(n,"TD",{});var m=L(t);d(l.$$.fragment,m),m.forEach(u),e=B(n),a=H(n,"TD",{});var N=L(a);d(r.$$.fragment,N),N.forEach(u),f=B(n),s=H(n,"TD",{});var O=L(s);i=C(O,c),O.forEach(u),$=B(n),b=H(n,"TD",{});var A=L(b);v=C(A,D),A.forEach(u),S=B(n)},m(n,m){p(n,t,m),k(l,t,null),p(n,e,m),p(n,a,m),k(r,a,null),p(n,f,m),p(n,s,m),q(s,i),p(n,$,m),p(n,b,m),q(b,v),p(n,S,m),j=!0},p(n,m){const N={};m&2&&(N.type=n[3][n[4]]),m&1026&&(N.$$scope={dirty:m,ctx:n}),l.$set(N);const O={};m&3&&(O.href=X({namespace:n[0],jobId:n[5]})),m&1026&&(O.$$scope={dirty:m,ctx:n}),r.$set(O),(!j||m&6)&&c!==(c=z(n[6],n[2])+"")&&R(i,c),(!j||m&6)&&D!==(D=z(n[7],n[2])+"")&&R(v,D)},i(n){j||(_(l.$$.fragment,n),_(r.$$.fragment,n),j=!0)},o(n){h(l.$$.fragment,n),h(r.$$.fragment,n),j=!1},d(n){n&&u(t),w(l),n&&u(e),n&&u(a),w(r),n&&u(f),n&&u(s),n&&u($),n&&u(b),n&&u(S)}}}function x(o){let t,l;return t=new re({props:{$$slots:{default:[ke]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&1031&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function we(o){let t,l,e=o[1],a=[];for(let s=0;sh(a[s],1,1,()=>{a[s]=null});let f=null;return e.length||(f=y(o)),{c(){for(let s=0;s{f=null}),G()):(f=y(s),f.c(),_(f,1),f.m(t.parentNode,t))}},i(s){if(!l){for(let c=0;cl(2,e=s));let{namespace:a}=t,{operations:r}=t;const f={Completed:"green",Running:"blue",Failed:"red",Unspecified:"gray"};return o.$$set=s=>{"namespace"in s&&l(0,a=s.namespace),"operations"in s&&l(1,r=s.operations)},[a,r,e,f]}class De extends J{constructor(t){super(),M(this,t,Be,Ee,Q,{namespace:0,operations:1})}}function ee(o){o[2]=o[3].operations}function je(o){return{c:T,l:T,m:T,p:T,i:T,o:T,d:T}}function Fe(o){ee(o);let t,l,e,a=o[1]&&te(o);return l=new De({props:{operations:o[2],namespace:o[0]}}),{c(){a&&a.c(),t=E(),g(l.$$.fragment)},l(r){a&&a.l(r),t=B(r),d(l.$$.fragment,r)},m(r,f){a&&a.m(r,f),p(r,t,f),k(l,r,f),e=!0},p(r,f){ee(r),r[1]?a?(a.p(r,f),f&2&&_(a,1)):(a=te(r),a.c(),_(a,1),a.m(t.parentNode,t)):a&&(U(),h(a,1,1,()=>{a=null}),G());const s={};f&1&&(s.operations=r[2]),f&1&&(s.namespace=r[0]),l.$set(s)},i(r){e||(_(a),_(l.$$.fragment,r),e=!0)},o(r){h(a),h(l.$$.fragment,r),e=!1},d(r){a&&a.d(r),r&&u(t),w(l,r)}}}function te(o){let t,l;return t=new $e({props:{icon:"info",intent:"info",title:I("batch","max-concurrent-alert-title"),$$slots:{default:[He]},$$scope:{ctx:o}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p(e,a){const r={};a&16&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function He(o){let t=I("batch","max-concurrent-alert-description")+"",l;return{c(){l=P(t)},l(e){l=C(e,t)},m(e,a){p(e,l,a)},p:T,d(e){e&&u(l)}}}function Le(o){let t,l;return t=new _e({}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){k(t,e,a),l=!0},p:T,i(e){l||(_(t.$$.fragment,e),l=!0)},o(e){h(t.$$.fragment,e),l=!1},d(e){w(t,e)}}}function Pe(o){let t,l=I("batch","list-page-title")+"",e,a,r,f,s,c={ctx:o,current:null,token:null,hasCatch:!1,pending:Le,then:Fe,catch:je,value:3,blocks:[,,,]};return W(f=Y(o[0]),c),{c(){t=F("h1"),e=P(l),a=E(),r=K(),c.block.c(),this.h()},l(i){t=H(i,"H1",{class:!0});var $=L(t);e=C($,l),$.forEach(u),a=B(i),r=K(),c.block.l(i),this.h()},h(){ae(t,"class","text-2xl")},m(i,$){p(i,t,$),q(t,e),p(i,a,$),p(i,r,$),c.block.m(i,c.anchor=$),c.mount=()=>r.parentNode,c.anchor=r,s=!0},p(i,[$]){o=i,c.ctx=o,$&1&&f!==(f=Y(o[0]))&&W(f,c)||ne(c,o,$)},i(i){s||(_(c.block),s=!0)},o(i){for(let $=0;$<3;$+=1){const b=c.blocks[$];h(b)}s=!1},d(i){i&&u(t),i&&u(a),i&&u(r),c.block.d(i),c.token=null,c=null}}}function Ce(o,t,l){let e;V(o,he,r=>l(1,e=r));let{namespace:a}=t;return o.$$set=r=>{"namespace"in r&&l(0,a=r.namespace)},[a,e]}class Ne extends J{constructor(t){super(),M(this,t,Ce,Pe,Q,{namespace:0})}}function Oe(o){let t,l,e,a;return t=new se({props:{title:I("batch","list-page-title")}}),e=new Ne({props:{namespace:o[0]}}),{c(){g(t.$$.fragment),l=E(),g(e.$$.fragment)},l(r){d(t.$$.fragment,r),l=B(r),d(e.$$.fragment,r)},m(r,f){k(t,r,f),p(r,l,f),k(e,r,f),a=!0},p(r,[f]){const s={};f&1&&(s.namespace=r[0]),e.$set(s)},i(r){a||(_(t.$$.fragment,r),_(e.$$.fragment,r),a=!0)},o(r){h(t.$$.fragment,r),h(e.$$.fragment,r),a=!1},d(r){w(t,r),r&&u(l),w(e,r)}}}function Ie(o,t,l){let e,a;return V(o,oe,r=>l(1,a=r)),o.$$.update=()=>{o.$$.dirty&2&&l(0,e=a.params.namespace)},[e,a]}class Ye extends J{constructor(t){super(),M(this,t,Ie,Oe,Q,{})}}export{Ye as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.6f8d1f36.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.6f8d1f36.js deleted file mode 100644 index 3cba8f8e09..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.6f8d1f36.js +++ /dev/null @@ -1 +0,0 @@ -import{l}from"../chunks/_layout.99ff77df.js";import"../chunks/search-attributes.75837f76.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.8ed676ff.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.8ed676ff.js new file mode 100644 index 0000000000..5ad952bf3b --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-layout.ts.8ed676ff.js @@ -0,0 +1 @@ +import{l}from"../chunks/_layout.690114a8.js";import"../chunks/search-attributes.75837f76.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.32bb158c.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.605a1a89.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.32bb158c.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.605a1a89.js index 0db5da9435..e5d6eb103f 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.32bb158c.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.605a1a89.js @@ -1 +1 @@ -import{S as mt,b as $t,a as ht,C as J,c as I,m as p,w as b,e as Ke,D as Q,d as S,p as _,q as d,x as g,k as s,u as V,E as X,f as E,L as n,y as K,j as U,g as j,h as _t,F as Y,K as Ve,o as vt,a5 as Et,z as dt,a7 as Tt,n as be}from"../chunks/index.6779d4e2.js";import{p as wt}from"../chunks/stores.6ee4c480.js";import{P as bt}from"../chunks/page-title.990af218.js";import{B as we}from"../chunks/badge.d458ea0a.js";import{C as gt}from"../chunks/card.f7f654dd.js";import{T as ze,a as Dt}from"../chunks/table-header-row.5433617e.js";import{T as At}from"../chunks/table-row.e455010e.js";import{t as N}from"../chunks/translate.29a4bc43.js";import{l as nt}from"../chunks/namespaces.65099960.js";import{s as Rt}from"../chunks/search-attributes.75837f76.js";import{s as kt}from"../chunks/settings.b49a4593.js";import{t as It,u as St}from"../chunks/versions.6b1b4529.js";import{s as it}from"../chunks/format-time.8258873a.js";function ct(o,e,l){const t=o.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(o){var t;let e=((t=o[0])!=null&&t.isGlobalNamespace?N("yes"):N("no"))+"",l;return{c(){l=b(e)},l(a){l=g(a,e)},m(a,r){E(a,l,r)},p(a,r){var i;r&1&&e!==(e=((i=a[0])!=null&&i.isGlobalNamespace?N("yes"):N("no"))+"")&&K(l,e)},d(a){a&&s(l)}}}function Ht(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,f;i&1&&e!==(e=((f=(u=r[0])==null?void 0:u.config)==null?void 0:f.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,f;i&1&&e!==(e=((f=(u=r[0])==null?void 0:u.config)==null?void 0:f.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(o){var Me,Je,Qe,Xe,Ye,Ze,xe,et,tt,lt;let e,l,t=N("namespaces","owner")+"",a,r,i,u=(((Je=(Me=o[0])==null?void 0:Me.namespaceInfo)==null?void 0:Je.ownerEmail)||N("unknown"))+"",f,c,T,y,O=N("namespaces","global")+"",B,k,D,h,P,w,z,G=N("namespaces","retention-period")+"",Z,A,C,q=it((Xe=(Qe=o[0])==null?void 0:Qe.config)==null?void 0:Xe.workflowExecutionRetentionTtl.toString())+"",m,R,F,x,_e=N("namespaces","history-archival")+"",ae,ee,te,W,le,se,de,Ie=N("namespaces","visibility-archival")+"",me,re,ie,$,H,M,oe,ne=N("namespaces","failover-version")+"",ce,ue,pe,he=((Ye=o[0])==null?void 0:Ye.failoverVersion)+"",ge,$e,fe,ve,De=N("namespaces","clusters")+"",Se,Ce,Le,We,Ee;return h=new we({props:{class:"px-1 py-0",type:o[8]((Ze=o[0])==null?void 0:Ze.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:o}}}),W=new we({props:{class:"px-1 py-0",type:o[7]((et=(xe=o[0])==null?void 0:xe.config)==null?void 0:et.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:o}}}),$=new we({props:{class:"px-1 py-0",type:o[7]((lt=(tt=o[0])==null?void 0:tt.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),f=b(u),c=I(),T=p("tr"),y=p("td"),B=b(O),k=I(),D=p("td"),J(h.$$.fragment),P=I(),w=p("tr"),z=p("td"),Z=b(G),A=I(),C=p("td"),m=b(q),R=I(),F=p("tr"),x=p("td"),ae=b(_e),ee=I(),te=p("td"),J(W.$$.fragment),le=I(),se=p("tr"),de=p("td"),me=b(Ie),re=I(),ie=p("td"),J($.$$.fragment),H=I(),M=p("tr"),oe=p("td"),ce=b(ne),ue=I(),pe=p("td"),ge=b(he),$e=I(),fe=p("tr"),ve=p("td"),Se=b(De),Ce=I(),Le=p("td"),We=b(o[1]),this.h()},l(v){e=_(v,"TR",{"data-testid":!0});var L=d(e);l=_(L,"TD",{});var He=d(l);a=g(He,t),He.forEach(s),r=S(L),i=_(L,"TD",{});var Ne=d(i);f=g(Ne,u),Ne.forEach(s),L.forEach(s),c=S(v),T=_(v,"TR",{"data-testid":!0});var Te=d(T);y=_(Te,"TD",{});var ye=d(y);B=g(ye,O),ye.forEach(s),k=S(Te),D=_(Te,"TD",{});var Be=d(D);Q(h.$$.fragment,Be),Be.forEach(s),Te.forEach(s),P=S(v),w=_(v,"TR",{"data-testid":!0});var Ae=d(w);z=_(Ae,"TD",{});var Pe=d(z);Z=g(Pe,G),Pe.forEach(s),A=S(Ae),C=_(Ae,"TD",{});var Oe=d(C);m=g(Oe,q),Oe.forEach(s),Ae.forEach(s),R=S(v),F=_(v,"TR",{"data-testid":!0});var Re=d(F);x=_(Re,"TD",{});var Fe=d(x);ae=g(Fe,_e),Fe.forEach(s),ee=S(Re),te=_(Re,"TD",{});var Ue=d(te);Q(W.$$.fragment,Ue),Ue.forEach(s),Re.forEach(s),le=S(v),se=_(v,"TR",{"data-testid":!0});var ke=d(se);de=_(ke,"TD",{});var Ge=d(de);me=g(Ge,Ie),Ge.forEach(s),re=S(ke),ie=_(ke,"TD",{});var at=d(ie);Q($.$$.fragment,at),at.forEach(s),ke.forEach(s),H=S(v),M=_(v,"TR",{"data-testid":!0});var je=d(M);oe=_(je,"TD",{});var st=d(oe);ce=g(st,ne),st.forEach(s),ue=S(je),pe=_(je,"TD",{});var rt=d(pe);ge=g(rt,he),rt.forEach(s),je.forEach(s),$e=S(v),fe=_(v,"TR",{"data-testid":!0});var qe=d(fe);ve=_(qe,"TD",{});var ot=d(ve);Se=g(ot,De),ot.forEach(s),Ce=S(qe),Le=_(qe,"TD",{});var ft=d(Le);We=g(ft,o[1]),ft.forEach(s),qe.forEach(s),this.h()},h(){V(e,"data-testid","namespace-owner"),V(T,"data-testid","namespace-global"),V(w,"data-testid","namespace-retention"),V(F,"data-testid","namespace-history"),V(se,"data-testid","namespace-visibility"),V(M,"data-testid","namespace-failover"),V(fe,"data-testid","namespace-clusters")},m(v,L){E(v,e,L),n(e,l),n(l,a),n(e,r),n(e,i),n(i,f),E(v,c,L),E(v,T,L),n(T,y),n(y,B),n(T,k),n(T,D),X(h,D,null),E(v,P,L),E(v,w,L),n(w,z),n(z,Z),n(w,A),n(w,C),n(C,m),E(v,R,L),E(v,F,L),n(F,x),n(x,ae),n(F,ee),n(F,te),X(W,te,null),E(v,le,L),E(v,se,L),n(se,de),n(de,me),n(se,re),n(se,ie),X($,ie,null),E(v,H,L),E(v,M,L),n(M,oe),n(oe,ce),n(M,ue),n(M,pe),n(pe,ge),E(v,$e,L),E(v,fe,L),n(fe,ve),n(ve,Se),n(fe,Ce),n(fe,Le),n(Le,We),Ee=!0},p(v,L){var ye,Be,Ae,Pe,Oe,Re,Fe,Ue,ke,Ge;(!Ee||L&1)&&u!==(u=(((Be=(ye=v[0])==null?void 0:ye.namespaceInfo)==null?void 0:Be.ownerEmail)||N("unknown"))+"")&&K(f,u);const He={};L&1&&(He.type=v[8]((Ae=v[0])==null?void 0:Ae.isGlobalNamespace,!1)),L&131073&&(He.$$scope={dirty:L,ctx:v}),h.$set(He),(!Ee||L&1)&&q!==(q=it((Oe=(Pe=v[0])==null?void 0:Pe.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&K(m,q);const Ne={};L&1&&(Ne.type=v[7]((Fe=(Re=v[0])==null?void 0:Re.config)==null?void 0:Fe.historyArchivalState)),L&131073&&(Ne.$$scope={dirty:L,ctx:v}),W.$set(Ne);const Te={};L&1&&(Te.type=v[7]((ke=(Ue=v[0])==null?void 0:Ue.config)==null?void 0:ke.visibilityArchivalState)),L&131073&&(Te.$$scope={dirty:L,ctx:v}),$.$set(Te),(!Ee||L&1)&&he!==(he=((Ge=v[0])==null?void 0:Ge.failoverVersion)+"")&&K(ge,he),(!Ee||L&2)&&K(We,v[1])},i(v){Ee||(U(h.$$.fragment,v),U(W.$$.fragment,v),U($.$$.fragment,v),Ee=!0)},o(v){j(h.$$.fragment,v),j(W.$$.fragment,v),j($.$$.fragment,v),Ee=!1},d(v){v&&s(e),v&&s(c),v&&s(T),Y(h),v&&s(P),v&&s(w),v&&s(R),v&&s(F),Y(W),v&&s(le),v&&s(se),Y($),v&&s(H),v&&s(M),v&&s($e),v&&s(fe)}}}function Lt(o){let e,l=`${N("namespaces","namespace")} ${N("details")}`,t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function yt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Bt(o){let e,l,t,a,r,i,u,f,c,T,y,O,B;return{c(){e=p("tr"),l=p("td"),t=b("Temporal Server Version"),a=I(),r=p("td"),i=b(o[3]),u=I(),f=p("tr"),c=p("td"),T=b("Temporal UI Version"),y=I(),O=p("td"),B=b(o[4]),this.h()},l(k){e=_(k,"TR",{"data-testid":!0});var D=d(e);l=_(D,"TD",{});var h=d(l);t=g(h,"Temporal Server Version"),h.forEach(s),a=S(D),r=_(D,"TD",{});var P=d(r);i=g(P,o[3]),P.forEach(s),D.forEach(s),u=S(k),f=_(k,"TR",{"data-testid":!0});var w=d(f);c=_(w,"TD",{});var z=d(c);T=g(z,"Temporal UI Version"),z.forEach(s),y=S(w),O=_(w,"TD",{});var G=d(O);B=g(G,o[4]),G.forEach(s),w.forEach(s),this.h()},h(){V(e,"data-testid","server-version"),V(f,"data-testid","ui-version")},m(k,D){E(k,e,D),n(e,l),n(l,t),n(e,a),n(e,r),n(r,i),E(k,u,D),E(k,f,D),n(f,c),n(c,T),n(f,y),n(f,O),n(O,B)},p(k,D){D&8&&K(i,k[3]),D&16&&K(B,k[4])},d(k){k&&s(e),k&&s(u),k&&s(f)}}}function Pt(o){let e,l=N("namespaces","versions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function Ot(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/4"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Ft(o){let e=o[9](o[5].disableWriteActions)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(o){let e=o[9](o[5].workflowTerminateDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(o){let e=o[9](o[5].workflowCancelDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Wt(o){let e=o[9](o[5].workflowSignalDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function jt(o){let e=o[9](o[5].workflowResetDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function qt(o){let e,l,t=N("namespaces","client-actions")+"",a,r,i,u,f,c,T,y=N("workflows","terminate-modal-title")+"",O,B,k,D,h,P,w,z=N("workflows","cancel-modal-title")+"",G,Z,A,C,q,m,R,F=N("namespaces","signal-workflow")+"",x,_e,ae,ee,te,W,le,se=N("workflows","reset-modal-title")+"",de,Ie,me,re,ie;return u=new we({props:{class:"px-1 py-0",type:o[8](o[5].disableWriteActions),$$slots:{default:[Ft]},$$scope:{ctx:o}}}),D=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowTerminateDisabled),$$slots:{default:[Ut]},$$scope:{ctx:o}}}),C=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowCancelDisabled),$$slots:{default:[Gt]},$$scope:{ctx:o}}}),ee=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowSignalDisabled),$$slots:{default:[Wt]},$$scope:{ctx:o}}}),re=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowResetDisabled),$$slots:{default:[jt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),J(u.$$.fragment),f=I(),c=p("tr"),T=p("td"),O=b(y),B=I(),k=p("td"),J(D.$$.fragment),h=I(),P=p("tr"),w=p("td"),G=b(z),Z=I(),A=p("td"),J(C.$$.fragment),q=I(),m=p("tr"),R=p("td"),x=b(F),_e=I(),ae=p("td"),J(ee.$$.fragment),te=I(),W=p("tr"),le=p("td"),de=b(se),Ie=I(),me=p("td"),J(re.$$.fragment)},l($){e=_($,"TR",{});var H=d(e);l=_(H,"TD",{});var M=d(l);a=g(M,t),M.forEach(s),r=S(H),i=_(H,"TD",{});var oe=d(i);Q(u.$$.fragment,oe),oe.forEach(s),H.forEach(s),f=S($),c=_($,"TR",{});var ne=d(c);T=_(ne,"TD",{});var ce=d(T);O=g(ce,y),ce.forEach(s),B=S(ne),k=_(ne,"TD",{});var ue=d(k);Q(D.$$.fragment,ue),ue.forEach(s),ne.forEach(s),h=S($),P=_($,"TR",{});var pe=d(P);w=_(pe,"TD",{});var he=d(w);G=g(he,z),he.forEach(s),Z=S(pe),A=_(pe,"TD",{});var ge=d(A);Q(C.$$.fragment,ge),ge.forEach(s),pe.forEach(s),q=S($),m=_($,"TR",{});var $e=d(m);R=_($e,"TD",{});var fe=d(R);x=g(fe,F),fe.forEach(s),_e=S($e),ae=_($e,"TD",{});var ve=d(ae);Q(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=S($),W=_($,"TR",{});var De=d(W);le=_(De,"TD",{});var Se=d(le);de=g(Se,se),Se.forEach(s),Ie=S(De),me=_(De,"TD",{});var Ce=d(me);Q(re.$$.fragment,Ce),Ce.forEach(s),De.forEach(s)},m($,H){E($,e,H),n(e,l),n(l,a),n(e,r),n(e,i),X(u,i,null),E($,f,H),E($,c,H),n(c,T),n(T,O),n(c,B),n(c,k),X(D,k,null),E($,h,H),E($,P,H),n(P,w),n(w,G),n(P,Z),n(P,A),X(C,A,null),E($,q,H),E($,m,H),n(m,R),n(R,x),n(m,_e),n(m,ae),X(ee,ae,null),E($,te,H),E($,W,H),n(W,le),n(le,de),n(W,Ie),n(W,me),X(re,me,null),ie=!0},p($,H){const M={};H&32&&(M.type=$[8]($[5].disableWriteActions)),H&131104&&(M.$$scope={dirty:H,ctx:$}),u.$set(M);const oe={};H&32&&(oe.type=$[8]($[5].workflowTerminateDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:$}),D.$set(oe);const ne={};H&32&&(ne.type=$[8]($[5].workflowCancelDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:$}),C.$set(ne);const ce={};H&32&&(ce.type=$[8]($[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:$}),ee.$set(ce);const ue={};H&32&&(ue.type=$[8]($[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:$}),re.$set(ue)},i($){ie||(U(u.$$.fragment,$),U(D.$$.fragment,$),U(C.$$.fragment,$),U(ee.$$.fragment,$),U(re.$$.fragment,$),ie=!0)},o($){j(u.$$.fragment,$),j(D.$$.fragment,$),j(C.$$.fragment,$),j(ee.$$.fragment,$),j(re.$$.fragment,$),ie=!1},d($){$&&s(e),Y(u),$&&s(f),$&&s(c),Y(D),$&&s(h),$&&s(P),Y(C),$&&s(q),$&&s(m),Y(ee),$&&s(te),$&&s(W),Y(re)}}}function zt(o){let e,l=N("namespaces","client-actions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function Kt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Mt(o){let e,l,t=N("details")+"",a,r,i,u,f,c,T=N("namespaces","versions")+"",y,O,B,k,D,h,P=N("namespaces","client-actions")+"",w,z,G,Z;return i=new ze({props:{variant:"simple",$$slots:{headers:[yt],caption:[Lt],default:[Vt]},$$scope:{ctx:o}}}),B=new ze({props:{variant:"simple",$$slots:{headers:[Ot],caption:[Pt],default:[Bt]},$$scope:{ctx:o}}}),G=new ze({props:{variant:"simple",$$slots:{headers:[Kt],caption:[zt],default:[qt]},$$scope:{ctx:o}}}),{c(){e=p("article"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),u=I(),f=p("article"),c=p("h3"),y=b(T),O=I(),J(B.$$.fragment),k=I(),D=p("article"),h=p("h3"),w=b(P),z=I(),J(G.$$.fragment),this.h()},l(A){e=_(A,"ARTICLE",{class:!0});var C=d(e);l=_(C,"H3",{class:!0});var q=d(l);a=g(q,t),q.forEach(s),r=S(C),Q(i.$$.fragment,C),C.forEach(s),u=S(A),f=_(A,"ARTICLE",{class:!0});var m=d(f);c=_(m,"H3",{class:!0});var R=d(c);y=g(R,T),R.forEach(s),O=S(m),Q(B.$$.fragment,m),m.forEach(s),k=S(A),D=_(A,"ARTICLE",{class:!0});var F=d(D);h=_(F,"H3",{class:!0});var x=d(h);w=g(x,P),x.forEach(s),z=S(F),Q(G.$$.fragment,F),F.forEach(s),this.h()},h(){V(l,"class","text-lg font-medium"),V(e,"class","namespace-info flex w-full flex-col"),V(c,"class","text-lg font-medium"),V(f,"class","namespace-info flex w-full flex-col"),V(h,"class","text-lg font-medium"),V(D,"class","namespace-info flex w-full flex-col")},m(A,C){E(A,e,C),n(e,l),n(l,a),n(e,r),X(i,e,null),E(A,u,C),E(A,f,C),n(f,c),n(c,y),n(f,O),X(B,f,null),E(A,k,C),E(A,D,C),n(D,h),n(h,w),n(D,z),X(G,D,null),Z=!0},p(A,C){const q={};C&131075&&(q.$$scope={dirty:C,ctx:A}),i.$set(q);const m={};C&131096&&(m.$$scope={dirty:C,ctx:A}),B.$set(m);const R={};C&131104&&(R.$$scope={dirty:C,ctx:A}),G.$set(R)},i(A){Z||(U(i.$$.fragment,A),U(B.$$.fragment,A),U(G.$$.fragment,A),Z=!0)},o(A){j(i.$$.fragment,A),j(B.$$.fragment,A),j(G.$$.fragment,A),Z=!1},d(A){A&&s(e),Y(i),A&&s(u),A&&s(f),Y(B),A&&s(k),A&&s(D),Y(G)}}}function ut(o){let e,l,t=N("events","attribute-group-search-attributes")+"",a,r,i,u;return i=new ze({props:{class:"w-full",$$slots:{headers:[Zt],caption:[Xt],default:[Qt]},$$scope:{ctx:o}}}),{c(){e=p("section"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),this.h()},l(f){e=_(f,"SECTION",{});var c=d(e);l=_(c,"H3",{class:!0});var T=d(l);a=g(T,t),T.forEach(s),r=S(c),Q(i.$$.fragment,c),c.forEach(s),this.h()},h(){V(l,"class","my-4 text-lg font-medium")},m(f,c){E(f,e,c),n(e,l),n(l,a),n(e,r),X(i,e,null),u=!0},p(f,c){const T={};c&131136&&(T.$$scope={dirty:c,ctx:f}),i.$set(T)},i(f){u||(U(i.$$.fragment,f),u=!0)},o(f){j(i.$$.fragment,f),u=!1},d(f){f&&s(e),Y(i)}}}function Jt(o){let e,l=o[13]+"",t,a,r,i=o[14]+"",u,f;return{c(){e=p("td"),t=b(l),a=I(),r=p("td"),u=b(i),f=I()},l(c){e=_(c,"TD",{});var T=d(e);t=g(T,l),T.forEach(s),a=S(c),r=_(c,"TD",{});var y=d(r);u=g(y,i),y.forEach(s),f=S(c)},m(c,T){E(c,e,T),n(e,t),E(c,a,T),E(c,r,T),n(r,u),E(c,f,T)},p(c,T){T&64&&l!==(l=c[13]+"")&&K(t,l),T&64&&i!==(i=c[14]+"")&&K(u,i)},d(c){c&&s(e),c&&s(a),c&&s(r),c&&s(f)}}}function pt(o){let e,l;return e=new At({props:{$$slots:{default:[Jt]},$$scope:{ctx:o}}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,a){X(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(U(e.$$.fragment,t),l=!0)},o(t){j(e.$$.fragment,t),l=!1},d(t){Y(e,t)}}}function Qt(o){let e,l,t=Object.entries(o[6]),a=[];for(let i=0;ij(a[i],1,1,()=>{a[i]=null});return{c(){for(let i=0;i{w=null}),_t())},i(m){P||(U(e.$$.fragment,m),U(k.$$.fragment,m),U(w),P=!0)},o(m){j(e.$$.fragment,m),j(k.$$.fragment,m),j(w),P=!1},d(m){Y(e,m),m&&s(l),m&&s(t),m&&s(c),m&&s(T),m&&s(B),Y(k,m),m&&s(D),w&&w.d(m),m&&s(h)}}}function el(o,e,l){let t,a,r,i,u,f,c,T;Ve(o,nt,h=>l(12,r=h)),Ve(o,wt,h=>l(2,i=h)),Ve(o,It,h=>l(3,u=h)),Ve(o,St,h=>l(4,f=h)),Ve(o,kt,h=>l(5,c=h)),Ve(o,Rt,h=>l(6,T=h));let{data:y}=e;var O;(function(h){h[h.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",h[h.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",h[h.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const B=h=>h===O.ARCHIVAL_STATE_ENABLED?"green":"default",k=(h,P=!0)=>P?h?"default":"green":h?"green":"default",D=h=>h?N("disabled"):N("enabled");return vt(()=>{var h;Et(nt,r=(h=t==null?void 0:t.namespaceInfo)===null||h===void 0?void 0:h.name,r)}),o.$$set=h=>{"data"in h&&l(10,y=h.data)},o.$$.update=()=>{o.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=y,t,(l(1,a),l(10,y)))},[t,a,i,u,f,c,T,B,k,D,y]}class dl extends mt{constructor(e){super(),$t(this,e,el,xt,ht,{data:10})}}export{dl as default}; +import{S as mt,b as $t,a as ht,C as J,c as I,m as p,w as b,e as Ke,D as Q,d as S,p as _,q as d,x as g,k as s,u as V,E as X,f as E,L as n,y as K,j as U,g as j,h as _t,F as Y,K as Ve,o as vt,a5 as Et,z as dt,a7 as Tt,n as be}from"../chunks/index.6779d4e2.js";import{p as wt}from"../chunks/stores.b96d31b2.js";import{P as bt}from"../chunks/page-title.990af218.js";import{B as we}from"../chunks/badge.d458ea0a.js";import{C as gt}from"../chunks/card.f7f654dd.js";import{T as ze,a as Dt}from"../chunks/table-header-row.5433617e.js";import{T as At}from"../chunks/table-row.e455010e.js";import{t as N}from"../chunks/translate.29a4bc43.js";import{l as nt}from"../chunks/namespaces.65099960.js";import{s as Rt}from"../chunks/search-attributes.75837f76.js";import{s as kt}from"../chunks/settings.b49a4593.js";import{t as It,u as St}from"../chunks/versions.6b1b4529.js";import{s as it}from"../chunks/format-time.8258873a.js";function ct(o,e,l){const t=o.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(o){var t;let e=((t=o[0])!=null&&t.isGlobalNamespace?N("yes"):N("no"))+"",l;return{c(){l=b(e)},l(a){l=g(a,e)},m(a,r){E(a,l,r)},p(a,r){var i;r&1&&e!==(e=((i=a[0])!=null&&i.isGlobalNamespace?N("yes"):N("no"))+"")&&K(l,e)},d(a){a&&s(l)}}}function Ht(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,f;i&1&&e!==(e=((f=(u=r[0])==null?void 0:u.config)==null?void 0:f.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(o){var t,a;let e=((a=(t=o[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=b(e)},l(r){l=g(r,e)},m(r,i){E(r,l,i)},p(r,i){var u,f;i&1&&e!==(e=((f=(u=r[0])==null?void 0:u.config)==null?void 0:f.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(o){var Me,Je,Qe,Xe,Ye,Ze,xe,et,tt,lt;let e,l,t=N("namespaces","owner")+"",a,r,i,u=(((Je=(Me=o[0])==null?void 0:Me.namespaceInfo)==null?void 0:Je.ownerEmail)||N("unknown"))+"",f,c,T,y,O=N("namespaces","global")+"",B,k,D,h,P,w,z,G=N("namespaces","retention-period")+"",Z,A,C,q=it((Xe=(Qe=o[0])==null?void 0:Qe.config)==null?void 0:Xe.workflowExecutionRetentionTtl.toString())+"",m,R,F,x,_e=N("namespaces","history-archival")+"",ae,ee,te,W,le,se,de,Ie=N("namespaces","visibility-archival")+"",me,re,ie,$,H,M,oe,ne=N("namespaces","failover-version")+"",ce,ue,pe,he=((Ye=o[0])==null?void 0:Ye.failoverVersion)+"",ge,$e,fe,ve,De=N("namespaces","clusters")+"",Se,Ce,Le,We,Ee;return h=new we({props:{class:"px-1 py-0",type:o[8]((Ze=o[0])==null?void 0:Ze.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:o}}}),W=new we({props:{class:"px-1 py-0",type:o[7]((et=(xe=o[0])==null?void 0:xe.config)==null?void 0:et.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:o}}}),$=new we({props:{class:"px-1 py-0",type:o[7]((lt=(tt=o[0])==null?void 0:tt.config)==null?void 0:lt.visibilityArchivalState),$$slots:{default:[Nt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),f=b(u),c=I(),T=p("tr"),y=p("td"),B=b(O),k=I(),D=p("td"),J(h.$$.fragment),P=I(),w=p("tr"),z=p("td"),Z=b(G),A=I(),C=p("td"),m=b(q),R=I(),F=p("tr"),x=p("td"),ae=b(_e),ee=I(),te=p("td"),J(W.$$.fragment),le=I(),se=p("tr"),de=p("td"),me=b(Ie),re=I(),ie=p("td"),J($.$$.fragment),H=I(),M=p("tr"),oe=p("td"),ce=b(ne),ue=I(),pe=p("td"),ge=b(he),$e=I(),fe=p("tr"),ve=p("td"),Se=b(De),Ce=I(),Le=p("td"),We=b(o[1]),this.h()},l(v){e=_(v,"TR",{"data-testid":!0});var L=d(e);l=_(L,"TD",{});var He=d(l);a=g(He,t),He.forEach(s),r=S(L),i=_(L,"TD",{});var Ne=d(i);f=g(Ne,u),Ne.forEach(s),L.forEach(s),c=S(v),T=_(v,"TR",{"data-testid":!0});var Te=d(T);y=_(Te,"TD",{});var ye=d(y);B=g(ye,O),ye.forEach(s),k=S(Te),D=_(Te,"TD",{});var Be=d(D);Q(h.$$.fragment,Be),Be.forEach(s),Te.forEach(s),P=S(v),w=_(v,"TR",{"data-testid":!0});var Ae=d(w);z=_(Ae,"TD",{});var Pe=d(z);Z=g(Pe,G),Pe.forEach(s),A=S(Ae),C=_(Ae,"TD",{});var Oe=d(C);m=g(Oe,q),Oe.forEach(s),Ae.forEach(s),R=S(v),F=_(v,"TR",{"data-testid":!0});var Re=d(F);x=_(Re,"TD",{});var Fe=d(x);ae=g(Fe,_e),Fe.forEach(s),ee=S(Re),te=_(Re,"TD",{});var Ue=d(te);Q(W.$$.fragment,Ue),Ue.forEach(s),Re.forEach(s),le=S(v),se=_(v,"TR",{"data-testid":!0});var ke=d(se);de=_(ke,"TD",{});var Ge=d(de);me=g(Ge,Ie),Ge.forEach(s),re=S(ke),ie=_(ke,"TD",{});var at=d(ie);Q($.$$.fragment,at),at.forEach(s),ke.forEach(s),H=S(v),M=_(v,"TR",{"data-testid":!0});var je=d(M);oe=_(je,"TD",{});var st=d(oe);ce=g(st,ne),st.forEach(s),ue=S(je),pe=_(je,"TD",{});var rt=d(pe);ge=g(rt,he),rt.forEach(s),je.forEach(s),$e=S(v),fe=_(v,"TR",{"data-testid":!0});var qe=d(fe);ve=_(qe,"TD",{});var ot=d(ve);Se=g(ot,De),ot.forEach(s),Ce=S(qe),Le=_(qe,"TD",{});var ft=d(Le);We=g(ft,o[1]),ft.forEach(s),qe.forEach(s),this.h()},h(){V(e,"data-testid","namespace-owner"),V(T,"data-testid","namespace-global"),V(w,"data-testid","namespace-retention"),V(F,"data-testid","namespace-history"),V(se,"data-testid","namespace-visibility"),V(M,"data-testid","namespace-failover"),V(fe,"data-testid","namespace-clusters")},m(v,L){E(v,e,L),n(e,l),n(l,a),n(e,r),n(e,i),n(i,f),E(v,c,L),E(v,T,L),n(T,y),n(y,B),n(T,k),n(T,D),X(h,D,null),E(v,P,L),E(v,w,L),n(w,z),n(z,Z),n(w,A),n(w,C),n(C,m),E(v,R,L),E(v,F,L),n(F,x),n(x,ae),n(F,ee),n(F,te),X(W,te,null),E(v,le,L),E(v,se,L),n(se,de),n(de,me),n(se,re),n(se,ie),X($,ie,null),E(v,H,L),E(v,M,L),n(M,oe),n(oe,ce),n(M,ue),n(M,pe),n(pe,ge),E(v,$e,L),E(v,fe,L),n(fe,ve),n(ve,Se),n(fe,Ce),n(fe,Le),n(Le,We),Ee=!0},p(v,L){var ye,Be,Ae,Pe,Oe,Re,Fe,Ue,ke,Ge;(!Ee||L&1)&&u!==(u=(((Be=(ye=v[0])==null?void 0:ye.namespaceInfo)==null?void 0:Be.ownerEmail)||N("unknown"))+"")&&K(f,u);const He={};L&1&&(He.type=v[8]((Ae=v[0])==null?void 0:Ae.isGlobalNamespace,!1)),L&131073&&(He.$$scope={dirty:L,ctx:v}),h.$set(He),(!Ee||L&1)&&q!==(q=it((Oe=(Pe=v[0])==null?void 0:Pe.config)==null?void 0:Oe.workflowExecutionRetentionTtl.toString())+"")&&K(m,q);const Ne={};L&1&&(Ne.type=v[7]((Fe=(Re=v[0])==null?void 0:Re.config)==null?void 0:Fe.historyArchivalState)),L&131073&&(Ne.$$scope={dirty:L,ctx:v}),W.$set(Ne);const Te={};L&1&&(Te.type=v[7]((ke=(Ue=v[0])==null?void 0:Ue.config)==null?void 0:ke.visibilityArchivalState)),L&131073&&(Te.$$scope={dirty:L,ctx:v}),$.$set(Te),(!Ee||L&1)&&he!==(he=((Ge=v[0])==null?void 0:Ge.failoverVersion)+"")&&K(ge,he),(!Ee||L&2)&&K(We,v[1])},i(v){Ee||(U(h.$$.fragment,v),U(W.$$.fragment,v),U($.$$.fragment,v),Ee=!0)},o(v){j(h.$$.fragment,v),j(W.$$.fragment,v),j($.$$.fragment,v),Ee=!1},d(v){v&&s(e),v&&s(c),v&&s(T),Y(h),v&&s(P),v&&s(w),v&&s(R),v&&s(F),Y(W),v&&s(le),v&&s(se),Y($),v&&s(H),v&&s(M),v&&s($e),v&&s(fe)}}}function Lt(o){let e,l=`${N("namespaces","namespace")} ${N("details")}`,t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function yt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Bt(o){let e,l,t,a,r,i,u,f,c,T,y,O,B;return{c(){e=p("tr"),l=p("td"),t=b("Temporal Server Version"),a=I(),r=p("td"),i=b(o[3]),u=I(),f=p("tr"),c=p("td"),T=b("Temporal UI Version"),y=I(),O=p("td"),B=b(o[4]),this.h()},l(k){e=_(k,"TR",{"data-testid":!0});var D=d(e);l=_(D,"TD",{});var h=d(l);t=g(h,"Temporal Server Version"),h.forEach(s),a=S(D),r=_(D,"TD",{});var P=d(r);i=g(P,o[3]),P.forEach(s),D.forEach(s),u=S(k),f=_(k,"TR",{"data-testid":!0});var w=d(f);c=_(w,"TD",{});var z=d(c);T=g(z,"Temporal UI Version"),z.forEach(s),y=S(w),O=_(w,"TD",{});var G=d(O);B=g(G,o[4]),G.forEach(s),w.forEach(s),this.h()},h(){V(e,"data-testid","server-version"),V(f,"data-testid","ui-version")},m(k,D){E(k,e,D),n(e,l),n(l,t),n(e,a),n(e,r),n(r,i),E(k,u,D),E(k,f,D),n(f,c),n(c,T),n(f,y),n(f,O),n(O,B)},p(k,D){D&8&&K(i,k[3]),D&16&&K(B,k[4])},d(k){k&&s(e),k&&s(u),k&&s(f)}}}function Pt(o){let e,l=N("namespaces","versions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function Ot(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/4"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Ft(o){let e=o[9](o[5].disableWriteActions)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(o){let e=o[9](o[5].workflowTerminateDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(o){let e=o[9](o[5].workflowCancelDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Wt(o){let e=o[9](o[5].workflowSignalDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function jt(o){let e=o[9](o[5].workflowResetDisabled)+"",l;return{c(){l=b(e)},l(t){l=g(t,e)},m(t,a){E(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function qt(o){let e,l,t=N("namespaces","client-actions")+"",a,r,i,u,f,c,T,y=N("workflows","terminate-modal-title")+"",O,B,k,D,h,P,w,z=N("workflows","cancel-modal-title")+"",G,Z,A,C,q,m,R,F=N("namespaces","signal-workflow")+"",x,_e,ae,ee,te,W,le,se=N("workflows","reset-modal-title")+"",de,Ie,me,re,ie;return u=new we({props:{class:"px-1 py-0",type:o[8](o[5].disableWriteActions),$$slots:{default:[Ft]},$$scope:{ctx:o}}}),D=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowTerminateDisabled),$$slots:{default:[Ut]},$$scope:{ctx:o}}}),C=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowCancelDisabled),$$slots:{default:[Gt]},$$scope:{ctx:o}}}),ee=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowSignalDisabled),$$slots:{default:[Wt]},$$scope:{ctx:o}}}),re=new we({props:{class:"px-1 py-0",type:o[8](o[5].workflowResetDisabled),$$slots:{default:[jt]},$$scope:{ctx:o}}}),{c(){e=p("tr"),l=p("td"),a=b(t),r=I(),i=p("td"),J(u.$$.fragment),f=I(),c=p("tr"),T=p("td"),O=b(y),B=I(),k=p("td"),J(D.$$.fragment),h=I(),P=p("tr"),w=p("td"),G=b(z),Z=I(),A=p("td"),J(C.$$.fragment),q=I(),m=p("tr"),R=p("td"),x=b(F),_e=I(),ae=p("td"),J(ee.$$.fragment),te=I(),W=p("tr"),le=p("td"),de=b(se),Ie=I(),me=p("td"),J(re.$$.fragment)},l($){e=_($,"TR",{});var H=d(e);l=_(H,"TD",{});var M=d(l);a=g(M,t),M.forEach(s),r=S(H),i=_(H,"TD",{});var oe=d(i);Q(u.$$.fragment,oe),oe.forEach(s),H.forEach(s),f=S($),c=_($,"TR",{});var ne=d(c);T=_(ne,"TD",{});var ce=d(T);O=g(ce,y),ce.forEach(s),B=S(ne),k=_(ne,"TD",{});var ue=d(k);Q(D.$$.fragment,ue),ue.forEach(s),ne.forEach(s),h=S($),P=_($,"TR",{});var pe=d(P);w=_(pe,"TD",{});var he=d(w);G=g(he,z),he.forEach(s),Z=S(pe),A=_(pe,"TD",{});var ge=d(A);Q(C.$$.fragment,ge),ge.forEach(s),pe.forEach(s),q=S($),m=_($,"TR",{});var $e=d(m);R=_($e,"TD",{});var fe=d(R);x=g(fe,F),fe.forEach(s),_e=S($e),ae=_($e,"TD",{});var ve=d(ae);Q(ee.$$.fragment,ve),ve.forEach(s),$e.forEach(s),te=S($),W=_($,"TR",{});var De=d(W);le=_(De,"TD",{});var Se=d(le);de=g(Se,se),Se.forEach(s),Ie=S(De),me=_(De,"TD",{});var Ce=d(me);Q(re.$$.fragment,Ce),Ce.forEach(s),De.forEach(s)},m($,H){E($,e,H),n(e,l),n(l,a),n(e,r),n(e,i),X(u,i,null),E($,f,H),E($,c,H),n(c,T),n(T,O),n(c,B),n(c,k),X(D,k,null),E($,h,H),E($,P,H),n(P,w),n(w,G),n(P,Z),n(P,A),X(C,A,null),E($,q,H),E($,m,H),n(m,R),n(R,x),n(m,_e),n(m,ae),X(ee,ae,null),E($,te,H),E($,W,H),n(W,le),n(le,de),n(W,Ie),n(W,me),X(re,me,null),ie=!0},p($,H){const M={};H&32&&(M.type=$[8]($[5].disableWriteActions)),H&131104&&(M.$$scope={dirty:H,ctx:$}),u.$set(M);const oe={};H&32&&(oe.type=$[8]($[5].workflowTerminateDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:$}),D.$set(oe);const ne={};H&32&&(ne.type=$[8]($[5].workflowCancelDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:$}),C.$set(ne);const ce={};H&32&&(ce.type=$[8]($[5].workflowSignalDisabled)),H&131104&&(ce.$$scope={dirty:H,ctx:$}),ee.$set(ce);const ue={};H&32&&(ue.type=$[8]($[5].workflowResetDisabled)),H&131104&&(ue.$$scope={dirty:H,ctx:$}),re.$set(ue)},i($){ie||(U(u.$$.fragment,$),U(D.$$.fragment,$),U(C.$$.fragment,$),U(ee.$$.fragment,$),U(re.$$.fragment,$),ie=!0)},o($){j(u.$$.fragment,$),j(D.$$.fragment,$),j(C.$$.fragment,$),j(ee.$$.fragment,$),j(re.$$.fragment,$),ie=!1},d($){$&&s(e),Y(u),$&&s(f),$&&s(c),Y(D),$&&s(h),$&&s(P),Y(C),$&&s(q),$&&s(m),Y(ee),$&&s(te),$&&s(W),Y(re)}}}function zt(o){let e,l=N("namespaces","client-actions")+"",t;return{c(){e=p("caption"),t=b(l),this.h()},l(a){e=_(a,"CAPTION",{class:!0,slot:!0});var r=d(e);t=g(r,l),r.forEach(s),this.h()},h(){V(e,"class","sr-only"),V(e,"slot","caption")},m(a,r){E(a,e,r),n(e,t)},p:be,d(a){a&&s(e)}}}function Kt(o){let e,l,t;return{c(){e=p("tr"),l=p("th"),t=p("th"),this.h()},l(a){e=_(a,"TR",{slot:!0});var r=d(e);l=_(r,"TH",{class:!0}),d(l).forEach(s),t=_(r,"TH",{}),d(t).forEach(s),r.forEach(s),this.h()},h(){V(l,"class","w-1/2 lg:w-3/5"),V(e,"slot","headers")},m(a,r){E(a,e,r),n(e,l),n(e,t)},p:be,d(a){a&&s(e)}}}function Mt(o){let e,l,t=N("details")+"",a,r,i,u,f,c,T=N("namespaces","versions")+"",y,O,B,k,D,h,P=N("namespaces","client-actions")+"",w,z,G,Z;return i=new ze({props:{variant:"simple",$$slots:{headers:[yt],caption:[Lt],default:[Vt]},$$scope:{ctx:o}}}),B=new ze({props:{variant:"simple",$$slots:{headers:[Ot],caption:[Pt],default:[Bt]},$$scope:{ctx:o}}}),G=new ze({props:{variant:"simple",$$slots:{headers:[Kt],caption:[zt],default:[qt]},$$scope:{ctx:o}}}),{c(){e=p("article"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),u=I(),f=p("article"),c=p("h3"),y=b(T),O=I(),J(B.$$.fragment),k=I(),D=p("article"),h=p("h3"),w=b(P),z=I(),J(G.$$.fragment),this.h()},l(A){e=_(A,"ARTICLE",{class:!0});var C=d(e);l=_(C,"H3",{class:!0});var q=d(l);a=g(q,t),q.forEach(s),r=S(C),Q(i.$$.fragment,C),C.forEach(s),u=S(A),f=_(A,"ARTICLE",{class:!0});var m=d(f);c=_(m,"H3",{class:!0});var R=d(c);y=g(R,T),R.forEach(s),O=S(m),Q(B.$$.fragment,m),m.forEach(s),k=S(A),D=_(A,"ARTICLE",{class:!0});var F=d(D);h=_(F,"H3",{class:!0});var x=d(h);w=g(x,P),x.forEach(s),z=S(F),Q(G.$$.fragment,F),F.forEach(s),this.h()},h(){V(l,"class","text-lg font-medium"),V(e,"class","namespace-info flex w-full flex-col"),V(c,"class","text-lg font-medium"),V(f,"class","namespace-info flex w-full flex-col"),V(h,"class","text-lg font-medium"),V(D,"class","namespace-info flex w-full flex-col")},m(A,C){E(A,e,C),n(e,l),n(l,a),n(e,r),X(i,e,null),E(A,u,C),E(A,f,C),n(f,c),n(c,y),n(f,O),X(B,f,null),E(A,k,C),E(A,D,C),n(D,h),n(h,w),n(D,z),X(G,D,null),Z=!0},p(A,C){const q={};C&131075&&(q.$$scope={dirty:C,ctx:A}),i.$set(q);const m={};C&131096&&(m.$$scope={dirty:C,ctx:A}),B.$set(m);const R={};C&131104&&(R.$$scope={dirty:C,ctx:A}),G.$set(R)},i(A){Z||(U(i.$$.fragment,A),U(B.$$.fragment,A),U(G.$$.fragment,A),Z=!0)},o(A){j(i.$$.fragment,A),j(B.$$.fragment,A),j(G.$$.fragment,A),Z=!1},d(A){A&&s(e),Y(i),A&&s(u),A&&s(f),Y(B),A&&s(k),A&&s(D),Y(G)}}}function ut(o){let e,l,t=N("events","attribute-group-search-attributes")+"",a,r,i,u;return i=new ze({props:{class:"w-full",$$slots:{headers:[Zt],caption:[Xt],default:[Qt]},$$scope:{ctx:o}}}),{c(){e=p("section"),l=p("h3"),a=b(t),r=I(),J(i.$$.fragment),this.h()},l(f){e=_(f,"SECTION",{});var c=d(e);l=_(c,"H3",{class:!0});var T=d(l);a=g(T,t),T.forEach(s),r=S(c),Q(i.$$.fragment,c),c.forEach(s),this.h()},h(){V(l,"class","my-4 text-lg font-medium")},m(f,c){E(f,e,c),n(e,l),n(l,a),n(e,r),X(i,e,null),u=!0},p(f,c){const T={};c&131136&&(T.$$scope={dirty:c,ctx:f}),i.$set(T)},i(f){u||(U(i.$$.fragment,f),u=!0)},o(f){j(i.$$.fragment,f),u=!1},d(f){f&&s(e),Y(i)}}}function Jt(o){let e,l=o[13]+"",t,a,r,i=o[14]+"",u,f;return{c(){e=p("td"),t=b(l),a=I(),r=p("td"),u=b(i),f=I()},l(c){e=_(c,"TD",{});var T=d(e);t=g(T,l),T.forEach(s),a=S(c),r=_(c,"TD",{});var y=d(r);u=g(y,i),y.forEach(s),f=S(c)},m(c,T){E(c,e,T),n(e,t),E(c,a,T),E(c,r,T),n(r,u),E(c,f,T)},p(c,T){T&64&&l!==(l=c[13]+"")&&K(t,l),T&64&&i!==(i=c[14]+"")&&K(u,i)},d(c){c&&s(e),c&&s(a),c&&s(r),c&&s(f)}}}function pt(o){let e,l;return e=new At({props:{$$slots:{default:[Jt]},$$scope:{ctx:o}}}),{c(){J(e.$$.fragment)},l(t){Q(e.$$.fragment,t)},m(t,a){X(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(U(e.$$.fragment,t),l=!0)},o(t){j(e.$$.fragment,t),l=!1},d(t){Y(e,t)}}}function Qt(o){let e,l,t=Object.entries(o[6]),a=[];for(let i=0;ij(a[i],1,1,()=>{a[i]=null});return{c(){for(let i=0;i{w=null}),_t())},i(m){P||(U(e.$$.fragment,m),U(k.$$.fragment,m),U(w),P=!0)},o(m){j(e.$$.fragment,m),j(k.$$.fragment,m),j(w),P=!1},d(m){Y(e,m),m&&s(l),m&&s(t),m&&s(c),m&&s(T),m&&s(B),Y(k,m),m&&s(D),w&&w.d(m),m&&s(h)}}}function el(o,e,l){let t,a,r,i,u,f,c,T;Ve(o,nt,h=>l(12,r=h)),Ve(o,wt,h=>l(2,i=h)),Ve(o,It,h=>l(3,u=h)),Ve(o,St,h=>l(4,f=h)),Ve(o,kt,h=>l(5,c=h)),Ve(o,Rt,h=>l(6,T=h));let{data:y}=e;var O;(function(h){h[h.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",h[h.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",h[h.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(O||(O={}));const B=h=>h===O.ARCHIVAL_STATE_ENABLED?"green":"default",k=(h,P=!0)=>P?h?"default":"green":h?"green":"default",D=h=>h?N("disabled"):N("enabled");return vt(()=>{var h;Et(nt,r=(h=t==null?void 0:t.namespaceInfo)===null||h===void 0?void 0:h.name,r)}),o.$$set=h=>{"data"in h&&l(10,y=h.data)},o.$$.update=()=>{o.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=y,t,(l(1,a),l(10,y)))},[t,a,i,u,f,c,T,B,k,D,y]}class dl extends mt{constructor(e){super(),$t(this,e,el,xt,ht,{data:10})}}export{dl as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20f3d541.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20f3d541.js new file mode 100644 index 0000000000..a8ecbb5543 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20f3d541.js @@ -0,0 +1 @@ +import"../chunks/namespaces-service.df04cc52.js";import{l}from"../chunks/_page.91795e49.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.6316ee18.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.6316ee18.js deleted file mode 100644 index cd51afe7a6..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.6316ee18.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/namespaces-service.9c90147f.js";import{l}from"../chunks/_page.ebdb6c84.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js similarity index 86% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js index d60a1fcd4d..bfc703e260 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js @@ -1 +1 @@ -import{S as g,b as k,a as b,ar as T,e as h,f as w,as as U,j as l,g as u,k as S,K as y,n as c,C as m,D as f,E as p,F as d,c as W,d as z}from"../chunks/index.6779d4e2.js";import{p as E}from"../chunks/stores.6ee4c480.js";import{P as A}from"../chunks/page-title.990af218.js";import{S as B}from"../chunks/schedule-form-view.e87776d2.js";import{L as G}from"../chunks/loading.a6f9064e.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{a as J}from"../chunks/schedule-service.80743cbe.js";import{s as V}from"../chunks/schedules.72d75a40.js";import{l as X}from"../chunks/route-for.cec09c4c.js";function _(o){o[6]=o[7].schedule}function Y(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Z(o){_(o);let t,a;return t=new B({props:{onConfirm:o[1],schedule:o[6]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p(e,r){_(e)},i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function x(o){let t,a;return t=new G({props:{title:H("schedules","loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p:c,i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function ee(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:7,blocks:[,,,]};return T(o[0],e),{c(){t=h(),e.block.c()},l(r){t=h(),e.block.l(r)},m(r,n){w(r,t,n),e.block.m(r,e.anchor=n),e.mount=()=>t.parentNode,e.anchor=t,a=!0},p(r,[n]){o=r,U(e,o,n)},i(r){a||(l(e.block),a=!0)},o(r){for(let n=0;n<3;n+=1){const s=e.blocks[n];u(s)}a=!1},d(r){r&&S(t),e.block.d(r),e.token=null,e=null}}}function te(o,t,a){let e;y(o,E,$=>a(2,e=$));let r=e.params.namespace,n=e.params.schedule;const s={namespace:r,scheduleId:X(n)};return[J(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:P,taskQueue:L,hour:O,minute:j,second:q,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;V({action:{namespace:r,name:F,workflowType:I,workflowId:P,taskQueue:L},spec:{hour:O,minute:j,second:q,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class ne extends g{constructor(t){super(),k(this,t,te,ee,b,{})}}function re(o){let t,a,e,r;return t=new A({props:{title:`Schedule Edit | ${o[0].params.schedule}`,url:o[0].url.href}}),e=new ne({}),{c(){m(t.$$.fragment),a=W(),m(e.$$.fragment)},l(n){f(t.$$.fragment,n),a=z(n),f(e.$$.fragment,n)},m(n,s){p(t,n,s),w(n,a,s),p(e,n,s),r=!0},p(n,[s]){const i={};s&1&&(i.title=`Schedule Edit | ${n[0].params.schedule}`),s&1&&(i.url=n[0].url.href),t.$set(i)},i(n){r||(l(t.$$.fragment,n),l(e.$$.fragment,n),r=!0)},o(n){u(t.$$.fragment,n),u(e.$$.fragment,n),r=!1},d(n){d(t,n),n&&S(a),d(e,n)}}}function ae(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class ge extends g{constructor(t){super(),k(this,t,ae,re,b,{})}}export{ge as default}; +import{S as g,b as k,a as b,ar as T,e as h,f as w,as as U,j as l,g as u,k as S,K as y,n as c,C as m,D as f,E as p,F as d,c as W,d as z}from"../chunks/index.6779d4e2.js";import{p as E}from"../chunks/stores.b96d31b2.js";import{P as A}from"../chunks/page-title.990af218.js";import{S as B}from"../chunks/schedule-form-view.0bfcac0a.js";import{L as G}from"../chunks/loading.a6f9064e.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{a as J}from"../chunks/schedule-service.a1e87565.js";import{s as V}from"../chunks/schedules.4bb8639b.js";import{l as X}from"../chunks/route-for.31ffa191.js";function _(o){o[6]=o[7].schedule}function Y(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Z(o){_(o);let t,a;return t=new B({props:{onConfirm:o[1],schedule:o[6]}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p(e,r){_(e)},i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function x(o){let t,a;return t=new G({props:{title:H("schedules","loading")}}),{c(){m(t.$$.fragment)},l(e){f(t.$$.fragment,e)},m(e,r){p(t,e,r),a=!0},p:c,i(e){a||(l(t.$$.fragment,e),a=!0)},o(e){u(t.$$.fragment,e),a=!1},d(e){d(t,e)}}}function ee(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:x,then:Z,catch:Y,value:7,blocks:[,,,]};return T(o[0],e),{c(){t=h(),e.block.c()},l(r){t=h(),e.block.l(r)},m(r,n){w(r,t,n),e.block.m(r,e.anchor=n),e.mount=()=>t.parentNode,e.anchor=t,a=!0},p(r,[n]){o=r,U(e,o,n)},i(r){a||(l(e.block),a=!0)},o(r){for(let n=0;n<3;n+=1){const s=e.blocks[n];u(s)}a=!1},d(r){r&&S(t),e.block.d(r),e.token=null,e=null}}}function te(o,t,a){let e;y(o,E,$=>a(2,e=$));let r=e.params.namespace,n=e.params.schedule;const s={namespace:r,scheduleId:X(n)};return[J(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:P,taskQueue:L,hour:O,minute:j,second:q,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;V({action:{namespace:r,name:F,workflowType:I,workflowId:P,taskQueue:L},spec:{hour:O,minute:j,second:q,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class ne extends g{constructor(t){super(),k(this,t,te,ee,b,{})}}function re(o){let t,a,e,r;return t=new A({props:{title:`Schedule Edit | ${o[0].params.schedule}`,url:o[0].url.href}}),e=new ne({}),{c(){m(t.$$.fragment),a=W(),m(e.$$.fragment)},l(n){f(t.$$.fragment,n),a=z(n),f(e.$$.fragment,n)},m(n,s){p(t,n,s),w(n,a,s),p(e,n,s),r=!0},p(n,[s]){const i={};s&1&&(i.title=`Schedule Edit | ${n[0].params.schedule}`),s&1&&(i.url=n[0].url.href),t.$set(i)},i(n){r||(l(t.$$.fragment,n),l(e.$$.fragment,n),r=!0)},o(n){u(t.$$.fragment,n),u(e.$$.fragment,n),r=!1},d(n){d(t,n),n&&S(a),d(e,n)}}}function ae(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class ge extends g{constructor(t){super(),k(this,t,ae,re,b,{})}}export{ge as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js index c0fe55840a..80f2c54f9e 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js @@ -1 +1 @@ -import{S as Ie,b as Te,a as De,m as k,w as D,c as W,p as w,q as b,x as P,k as f,d as A,u as V,f as g,L as d,y as J,n as Z,C as U,D as O,E as z,j as H,g as C,F as G,e as ie,G as Jl,P as $l,H as Kl,I as Ql,J as Zl,N as vl,U as gl,K as ve,z as Le,aa as Bl,ab as Xl,h as Ue,ar as Oe,as as Ml,a7 as Yl,a5 as Ke,V as yl,A as Qe,Z as Ze,_ as Be,a0 as kl,Q as wl,a1 as xl,r as es}from"../chunks/index.6779d4e2.js";import{p as Fl}from"../chunks/stores.6ee4c480.js";import{P as ts}from"../chunks/page-title.990af218.js";import{g as Fe}from"../chunks/navigation.a7086f0c.js";import{A as ls}from"../chunks/accordion.6253b32e.js";import{t as _}from"../chunks/translate.29a4bc43.js";import{S as ss,a as bl,d as rs,u as ns,p as as}from"../chunks/schedule-service.80743cbe.js";import{E as os}from"../chunks/empty-state.c8d40bbf.js";import{L as ze}from"../chunks/link.8030aa06.js";import{i as El}from"../chunks/workflow-service.fd47d996.js";import{t as Ye,r as ye,b as ge}from"../chunks/format-date.79dd40f6.js";import{l as Xe,g as Il,c as Ne,u as us}from"../chunks/route-for.cec09c4c.js";import{W as Nl}from"../chunks/workflow-status.fc3d74d1.js";import{L as jl}from"../chunks/loading.a6f9064e.js";import{d as Tl}from"../chunks/menu.7e3d54af.js";import{M as Dl}from"../chunks/modal.118648f9.js";import{S as fs}from"../chunks/split-button.9aad1ebf.js";import{c as is}from"../chunks/core-user.1973d180.js";import{l as je}from"../chunks/schedules.72d75a40.js";function cs(r){let e,l,t=_("notes")+"",o,s,n,u;return{c(){e=k("div"),l=k("h2"),o=D(t),s=W(),n=k("p"),u=D(r[0]),this.h()},l(a){e=w(a,"DIV",{});var m=b(e);l=w(m,"H2",{class:!0});var p=b(l);o=P(p,t),p.forEach(f),s=A(m),n=w(m,"P",{});var v=b(n);u=P(v,r[0]),v.forEach(f),m.forEach(f),this.h()},h(){V(l,"class","mb-4 text-2xl")},m(a,m){g(a,e,m),d(e,l),d(l,o),d(e,s),d(e,n),d(n,u)},p(a,[m]){m&1&&J(u,a[0])},i:Z,o:Z,d(a){a&&f(e)}}}function ds(r,e,l){let{notes:t=""}=e;return r.$$set=o=>{"notes"in o&&l(0,t=o.notes)},[t]}class ms extends Ie{constructor(e){super(),Te(this,e,ds,cs,De,{notes:0})}}function Pl(r){var x,S,N,ce,ee,de,_e;let e,l=_("schedules","start-time")+"",t,o,s=(((x=r[0])==null?void 0:x.startTime)??_("none"))+"",n,u,a,m=_("schedules","end-time")+"",p,v=(((S=r[0])==null?void 0:S.endTime)??_("none"))+"",h,i,c,$=_("schedules","jitter")+"",R,M=(((N=r[0])==null?void 0:N.jitter)??_("none"))+"",j,le,K,fe=_("schedules","exclusion-calendar")+"",ae,B=(((ee=(ce=r[0])==null?void 0:ce.excludeCalendar)==null?void 0:ee[0])??_("none"))+"",re,oe,X,F,pe=_("schedules","overlap-policy")+"",Y,ue=(((de=r[2])==null?void 0:de.overlapPolicy)??_("none"))+"",se,E=((_e=r[1])==null?void 0:_e.limitedActions)&&Rl(r);return{c(){e=k("p"),t=D(l),o=W(),n=D(s),u=W(),a=k("p"),p=D(m),h=D(v),i=W(),c=k("p"),R=D($),j=D(M),le=W(),K=k("p"),ae=D(fe),re=D(B),oe=W(),E&&E.c(),X=W(),F=k("p"),Y=D(pe),se=D(ue)},l(I){e=w(I,"P",{});var L=b(e);t=P(L,l),o=A(L),n=P(L,s),L.forEach(f),u=A(I),a=w(I,"P",{});var te=b(a);p=P(te,m),h=P(te,v),te.forEach(f),i=A(I),c=w(I,"P",{});var $e=b(c);R=P($e,$),j=P($e,M),$e.forEach(f),le=A(I),K=w(I,"P",{});var he=b(K);ae=P(he,fe),re=P(he,B),he.forEach(f),oe=A(I),E&&E.l(I),X=A(I),F=w(I,"P",{});var y=b(F);Y=P(y,pe),se=P(y,ue),y.forEach(f)},m(I,L){g(I,e,L),d(e,t),d(e,o),d(e,n),g(I,u,L),g(I,a,L),d(a,p),d(a,h),g(I,i,L),g(I,c,L),d(c,R),d(c,j),g(I,le,L),g(I,K,L),d(K,ae),d(K,re),g(I,oe,L),E&&E.m(I,L),g(I,X,L),g(I,F,L),d(F,Y),d(F,se)},p(I,L){var te,$e,he,y,We,Ae,ke;L&1&&s!==(s=(((te=I[0])==null?void 0:te.startTime)??_("none"))+"")&&J(n,s),L&1&&v!==(v=((($e=I[0])==null?void 0:$e.endTime)??_("none"))+"")&&J(h,v),L&1&&M!==(M=(((he=I[0])==null?void 0:he.jitter)??_("none"))+"")&&J(j,M),L&1&&B!==(B=(((We=(y=I[0])==null?void 0:y.excludeCalendar)==null?void 0:We[0])??_("none"))+"")&&J(re,B),(Ae=I[1])!=null&&Ae.limitedActions?E?E.p(I,L):(E=Rl(I),E.c(),E.m(X.parentNode,X)):E&&(E.d(1),E=null),L&4&&ue!==(ue=(((ke=I[2])==null?void 0:ke.overlapPolicy)??_("none"))+"")&&J(se,ue)},d(I){I&&f(e),I&&f(u),I&&f(a),I&&f(i),I&&f(c),I&&f(le),I&&f(K),I&&f(oe),E&&E.d(I),I&&f(X),I&&f(F)}}}function Rl(r){var n;let e,l=_("schedules","remaining-actions")+"",t,o=(((n=r[1])==null?void 0:n.remainingActions)??_("none"))+"",s;return{c(){e=k("p"),t=D(l),s=D(o)},l(u){e=w(u,"P",{});var a=b(e);t=P(a,l),s=P(a,o),a.forEach(f)},m(u,a){g(u,e,a),d(e,t),d(e,s)},p(u,a){var m;a&2&&o!==(o=(((m=u[1])==null?void 0:m.remainingActions)??_("none"))+"")&&J(s,o)},d(u){u&&f(e)}}}function ps(r){var pe,Y,ue,se,E,x;let e,l=_("schedules","start-time")+"",t,o,s=(((pe=r[0])==null?void 0:pe.startTime)??_("none"))+"",n,u,a,m=_("schedules","end-time")+"",p,v=(((Y=r[0])==null?void 0:Y.endTime)??_("none"))+"",h,i,c,$=_("schedules","jitter")+"",R,M=(((ue=r[0])==null?void 0:ue.jitter)??_("none"))+"",j,le,K,fe=_("schedules","exclusion-calendar")+"",ae,B=(((E=(se=r[0])==null?void 0:se.excludeCalendar)==null?void 0:E[0])??_("none"))+"",re,oe,X,F=((x=r[1])==null?void 0:x.limitedActions)&&Pl(r);return{c(){e=k("p"),t=D(l),o=W(),n=D(s),u=W(),a=k("p"),p=D(m),h=D(v),i=W(),c=k("p"),R=D($),j=D(M),le=W(),K=k("p"),ae=D(fe),re=D(B),oe=W(),F&&F.c(),X=ie()},l(S){e=w(S,"P",{});var N=b(e);t=P(N,l),o=A(N),n=P(N,s),N.forEach(f),u=A(S),a=w(S,"P",{});var ce=b(a);p=P(ce,m),h=P(ce,v),ce.forEach(f),i=A(S),c=w(S,"P",{});var ee=b(c);R=P(ee,$),j=P(ee,M),ee.forEach(f),le=A(S),K=w(S,"P",{});var de=b(K);ae=P(de,fe),re=P(de,B),de.forEach(f),oe=A(S),F&&F.l(S),X=ie()},m(S,N){g(S,e,N),d(e,t),d(e,o),d(e,n),g(S,u,N),g(S,a,N),d(a,p),d(a,h),g(S,i,N),g(S,c,N),d(c,R),d(c,j),g(S,le,N),g(S,K,N),d(K,ae),d(K,re),g(S,oe,N),F&&F.m(S,N),g(S,X,N)},p(S,N){var ce,ee,de,_e,I,L;N&1&&s!==(s=(((ce=S[0])==null?void 0:ce.startTime)??_("none"))+"")&&J(n,s),N&1&&v!==(v=(((ee=S[0])==null?void 0:ee.endTime)??_("none"))+"")&&J(h,v),N&1&&M!==(M=(((de=S[0])==null?void 0:de.jitter)??_("none"))+"")&&J(j,M),N&1&&B!==(B=(((I=(_e=S[0])==null?void 0:_e.excludeCalendar)==null?void 0:I[0])??_("none"))+"")&&J(re,B),(L=S[1])!=null&&L.limitedActions?F?F.p(S,N):(F=Pl(S),F.c(),F.m(X.parentNode,X)):F&&(F.d(1),F=null)},d(S){S&&f(e),S&&f(u),S&&f(a),S&&f(i),S&&f(c),S&&f(le),S&&f(K),S&&f(oe),F&&F.d(S),S&&f(X)}}}function _s(r){let e,l,t,o;return e=new ms({props:{notes:r[3]}}),t=new ls({props:{title:_("schedules","advanced-settings"),$$slots:{default:[ps]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,[n]){const u={};n&8&&(u.notes=s[3]),e.$set(u);const a={};n&23&&(a.$$scope={dirty:n,ctx:s}),t.$set(a)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function hs(r,e,l){let{spec:t}=e,{state:o}=e,{policies:s}=e,{notes:n=""}=e;return r.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,o=u.state),"policies"in u&&l(2,s=u.policies),"notes"in u&&l(3,n=u.notes)},[t,o,s,n]}class $s extends Ie{constructor(e){super(),Te(this,e,hs,_s,De,{spec:0,state:1,policies:2,notes:3})}}function vs(r){let e,l,t;const o=r[3].default,s=Jl(o,r,r[2],null);return{c(){e=k("div"),s&&s.c(),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);s&&s.l(u),u.forEach(f),this.h()},h(){V(e,"class",l="panel bg-white "+r[1].class+" svelte-11fqqfg"),$l(e,"error",r[0])},m(n,u){g(n,e,u),s&&s.m(e,null),t=!0},p(n,[u]){s&&s.p&&(!t||u&4)&&Kl(s,o,n,n[2],t?Zl(o,n[2],u,null):Ql(n[2]),null),(!t||u&2&&l!==(l="panel bg-white "+n[1].class+" svelte-11fqqfg"))&&V(e,"class",l),(!t||u&3)&&$l(e,"error",n[0])},i(n){t||(H(s,n),t=!0)},o(n){C(s,n),t=!1},d(n){n&&f(e),s&&s.d(n)}}}function gs(r,e,l){let{$$slots:t={},$$scope:o}=e,{error:s=!1}=e;return r.$$set=n=>{l(1,e=vl(vl({},e),gl(n))),"error"in n&&l(0,s=n.error),"$$scope"in n&&l(2,o=n.$$scope)},e=gl(e),[s,e,o,t]}class Ge extends Ie{constructor(e){super(),Te(this,e,gs,vs,De,{error:0})}}function ks(r){let e,l=_("schedules","error-title")+"",t,o,s,n;return{c(){e=k("p"),t=D(l),o=W(),s=k("p"),n=D(r[0]),this.h()},l(u){e=w(u,"P",{class:!0});var a=b(e);t=P(a,l),a.forEach(f),o=A(u),s=w(u,"P",{class:!0});var m=b(s);n=P(m,r[0]),m.forEach(f),this.h()},h(){V(e,"class","error-text svelte-1lke5yx"),V(s,"class","error-text svelte-1lke5yx")},m(u,a){g(u,e,a),d(e,t),g(u,o,a),g(u,s,a),d(s,n)},p(u,a){a&1&&J(n,u[0])},d(u){u&&f(e),u&&f(o),u&&f(s)}}}function ws(r){let e,l;return e=new Ge({props:{error:!0,$$slots:{default:[ks]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p(t,[o]){const s={};o&3&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function bs(r,e,l){let{error:t=""}=e;return r.$$set=o=>{"error"in o&&l(0,t=o.error)},[t]}class Ll extends Ie{constructor(e){super(),Te(this,e,bs,ws,De,{error:0})}}function Es(r){let e,l=_("schedules","schedule-spec")+"",t,o,s,n,u;return n=new ss({props:{calendar:r[0],interval:r[1],class:"text-base"}}),{c(){e=k("h2"),t=D(l),o=W(),s=k("div"),U(n.$$.fragment),this.h()},l(a){e=w(a,"H2",{class:!0});var m=b(e);t=P(m,l),m.forEach(f),o=A(a),s=w(a,"DIV",{class:!0});var p=b(s);O(n.$$.fragment,p),p.forEach(f),this.h()},h(){V(e,"class","mb-4 text-2xl"),V(s,"class","pr-2")},m(a,m){g(a,e,m),d(e,t),g(a,o,m),g(a,s,m),z(n,s,null),u=!0},p(a,m){const p={};m&1&&(p.calendar=a[0]),m&2&&(p.interval=a[1]),n.$set(p)},i(a){u||(H(n.$$.fragment,a),u=!0)},o(a){C(n.$$.fragment,a),u=!1},d(a){a&&f(e),a&&f(o),a&&f(s),G(n)}}}function Is(r){let e,l;return e=new Ge({props:{$$slots:{default:[Es]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p(t,[o]){const s={};o&7&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Ts(r,e,l){let{calendar:t=void 0}=e,{interval:o=void 0}=e;return r.$$set=s=>{"calendar"in s&&l(0,t=s.calendar),"interval"in s&&l(1,o=s.interval)},[t,o]}class Ds extends Ie{constructor(e){super(),Te(this,e,Ts,Is,De,{calendar:0,interval:1})}}function Sl(r,e,l){const t=r.slice();return t[5]=e[l],t}function Ps(r){let e,l,t,o,s=r[5].startWorkflowResult.workflowId+"",n,u,a,m,p=ge(r[5].actualTime,r[2],{relative:r[3]})+"",v;return{c(){e=k("div"),l=k("div"),t=W(),o=k("div"),n=D(s),u=W(),a=k("div"),m=k("p"),v=D(p),this.h()},l(h){e=w(h,"DIV",{class:!0});var i=b(e);l=w(i,"DIV",{class:!0}),b(l).forEach(f),t=A(i),o=w(i,"DIV",{class:!0});var c=b(o);n=P(c,s),c.forEach(f),u=A(i),a=w(i,"DIV",{class:!0});var $=b(a);m=w($,"P",{});var R=b(m);v=P(R,p),R.forEach(f),$.forEach(f),i.forEach(f),this.h()},h(){V(l,"class","w-28"),V(o,"class","w-96"),V(a,"class","ml-auto"),V(e,"class","row svelte-lqpjgu")},m(h,i){g(h,e,i),d(e,l),d(e,t),d(e,o),d(o,n),d(e,u),d(e,a),d(a,m),d(m,v)},p(h,i){i&1&&s!==(s=h[5].startWorkflowResult.workflowId+"")&&J(n,s),i&13&&p!==(p=ge(h[5].actualTime,h[2],{relative:h[3]})+"")&&J(v,p)},i:Z,o:Z,d(h){h&&f(e)}}}function Rs(r){let e,l,t,o,s,n,u,a,m,p=ge(r[5].actualTime,r[2],{relative:r[3]})+"",v,h;return t=new Nl({props:{status:r[8].status}}),n=new ze({props:{newTab:!0,href:Il({workflow:r[5].startWorkflowResult.workflowId,run:r[5].startWorkflowResult.runId,namespace:r[1]}),$$slots:{default:[Ss]},$$scope:{ctx:r}}}),{c(){e=k("div"),l=k("div"),U(t.$$.fragment),o=W(),s=k("div"),U(n.$$.fragment),u=W(),a=k("div"),m=k("p"),v=D(p),this.h()},l(i){e=w(i,"DIV",{class:!0});var c=b(e);l=w(c,"DIV",{class:!0});var $=b(l);O(t.$$.fragment,$),$.forEach(f),o=A(c),s=w(c,"DIV",{class:!0});var R=b(s);O(n.$$.fragment,R),R.forEach(f),u=A(c),a=w(c,"DIV",{class:!0});var M=b(a);m=w(M,"P",{});var j=b(m);v=P(j,p),j.forEach(f),M.forEach(f),c.forEach(f),this.h()},h(){V(l,"class","w-28"),V(s,"class","mx-2 w-auto break-words"),V(a,"class","ml-auto"),V(e,"class","row svelte-lqpjgu")},m(i,c){g(i,e,c),d(e,l),z(t,l,null),d(e,o),d(e,s),z(n,s,null),d(e,u),d(e,a),d(a,m),d(m,v),h=!0},p(i,c){const $={};c&3&&($.status=i[8].status),t.$set($);const R={};c&3&&(R.href=Il({workflow:i[5].startWorkflowResult.workflowId,run:i[5].startWorkflowResult.runId,namespace:i[1]})),c&513&&(R.$$scope={dirty:c,ctx:i}),n.$set(R),(!h||c&13)&&p!==(p=ge(i[5].actualTime,i[2],{relative:i[3]})+"")&&J(v,p)},i(i){h||(H(t.$$.fragment,i),H(n.$$.fragment,i),h=!0)},o(i){C(t.$$.fragment,i),C(n.$$.fragment,i),h=!1},d(i){i&&f(e),G(t),G(n)}}}function Ss(r){let e=r[5].startWorkflowResult.workflowId+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p(t,o){o&1&&e!==(e=t[5].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&f(l)}}}function Vs(r){return{c:Z,l:Z,m:Z,p:Z,i:Z,o:Z,d:Z}}function Vl(r,e){let l,t,o,s,n={ctx:e,current:null,token:null,hasCatch:!0,pending:Vs,then:Rs,catch:Ps,value:8,blocks:[,,,]};return Oe(o=El({namespace:e[1],workflowId:Xe(e[5].startWorkflowResult.workflowId),runId:e[5].startWorkflowResult.runId},fetch),n),{key:r,first:null,c(){l=ie(),t=ie(),n.block.c(),this.h()},l(u){l=ie(),t=ie(),n.block.l(u),this.h()},h(){this.first=l},m(u,a){g(u,l,a),g(u,t,a),n.block.m(u,n.anchor=a),n.mount=()=>t.parentNode,n.anchor=t,s=!0},p(u,a){e=u,n.ctx=e,a&3&&o!==(o=El({namespace:e[1],workflowId:Xe(e[5].startWorkflowResult.workflowId),runId:e[5].startWorkflowResult.runId},fetch))&&Oe(o,n)||Ml(n,e,a)},i(u){s||(H(n.block),s=!0)},o(u){for(let a=0;a<3;a+=1){const m=n.blocks[a];C(m)}s=!1},d(u){u&&f(l),u&&f(t),n.block.d(u),n.token=null,n=null}}}function Wl(r){let e,l;return e=new os({props:{title:_("schedules","recent-runs-empty-state-title")}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p:Z,i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Ws(r){let e,l=_("schedules","recent-runs")+"",t,o,s=[],n=new Map,u,a,m,p=r[4](r[0]);const v=i=>{var c,$;return($=(c=i[5])==null?void 0:c.startWorkflowResult)==null?void 0:$.workflowId};for(let i=0;i{h=null}),Ue()):h?(h.p(i,c),c&1&&H(h,1)):(h=Wl(),h.c(),H(h,1),h.m(a.parentNode,a))},i(i){if(!m){for(let c=0;cl(2,t=a)),ve(r,ye,a=>l(3,o=a));let{recentRuns:s=[]}=e,{namespace:n}=e;const u=a=>{var m,p;return(p=(m=a==null?void 0:a.sort((v,h)=>new Date(h.actualTime).getTime()-new Date(v.actualTime).getTime()))===null||m===void 0?void 0:m.slice(0,5))!==null&&p!==void 0?p:[]};return r.$$set=a=>{"recentRuns"in a&&l(0,s=a.recentRuns),"namespace"in a&&l(1,n=a.namespace)},[s,n,t,o,u]}class Hs extends Ie{constructor(e){super(),Te(this,e,qs,As,De,{recentRuns:0,namespace:1})}}function Al(r,e,l){const t=r.slice();return t[3]=e[l],t}function ql(r){let e,l,t=ge(r[3],r[1],{relative:r[2],relativeLabel:_("from-now")})+"",o,s;return{c(){e=k("div"),l=k("p"),o=D(t),s=W(),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);l=w(u,"P",{});var a=b(l);o=P(a,t),a.forEach(f),s=A(u),u.forEach(f),this.h()},h(){V(e,"class","row svelte-kbuuws")},m(n,u){g(n,e,u),d(e,l),d(l,o),d(e,s)},p(n,u){u&7&&t!==(t=ge(n[3],n[1],{relative:n[2],relativeLabel:_("from-now")})+"")&&J(o,t)},d(n){n&&f(e)}}}function Cs(r){let e,l=_("schedules","upcoming-runs")+"",t,o,s,n=r[0].slice(0,5),u=[];for(let a=0;al(1,t=n)),ve(r,ye,n=>l(2,o=n));let{futureRuns:s=[]}=e;return r.$$set=n=>{"futureRuns"in n&&l(0,s=n.futureRuns)},[s,t,o]}class Ns extends Ie{constructor(e){super(),Te(this,e,Fs,Ms,De,{futureRuns:0})}}function js(r){var i;let e,l,t,o,s,n,u,a,m,p,v,h;return t=new ze({props:{icon:"chevron-left",$$slots:{default:[Ls]},$$scope:{ctx:r}}}),t.$on("click",r[25]),v=new Ll({props:{error:(i=r[7])==null?void 0:i.message}}),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),n=D(r[9]),u=W(),a=k("p"),m=D(r[8]),p=W(),U(v.$$.fragment),this.h()},l(c){e=w(c,"HEADER",{class:!0});var $=b(e);l=w($,"DIV",{class:!0});var R=b(l);O(t.$$.fragment,R),o=A(R),s=w(R,"H1",{class:!0,"data-testid":!0});var M=b(s);n=P(M,r[9]),M.forEach(f),u=A(R),a=w(R,"P",{class:!0});var j=b(a);m=P(j,r[8]),j.forEach(f),R.forEach(f),$.forEach(f),p=A(c),O(v.$$.fragment,c),this.h()},h(){V(s,"class","mt-8 select-all text-2xl font-medium"),V(s,"data-testid","schedule-name"),V(a,"class","text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8")},m(c,$){g(c,e,$),d(e,l),z(t,l,null),d(l,o),d(l,s),d(s,n),d(l,u),d(l,a),d(a,m),g(c,p,$),z(v,c,$),h=!0},p(c,$){var j;const R={};$&1073741824&&(R.$$scope={dirty:$,ctx:c}),t.$set(R);const M={};$&1&&(M.error=(j=c[7])==null?void 0:j.message),v.$set(M)},i(c){h||(H(t.$$.fragment,c),H(v.$$.fragment,c),h=!0)},o(c){C(t.$$.fragment,c),C(v.$$.fragment,c),h=!1},d(c){c&&f(e),G(t),c&&f(p),G(v,c)}}}function Ls(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Us(r){let e,l,t,o;const s=[zs,Os],n=[];function u(a,m){return a[4]?0:1}return e=u(r),l=n[e]=s[e](r),{c(){l.c(),t=ie()},l(a){l.l(a),t=ie()},m(a,m){n[e].m(a,m),g(a,t,m),o=!0},p(a,m){let p=e;e=u(a),e===p?n[e].p(a,m):(Le(),C(n[p],1,1,()=>{n[p]=null}),Ue(),l=n[e],l?l.p(a,m):(l=n[e]=s[e](a),l.c()),H(l,1),l.m(t.parentNode,t))},i(a){o||(H(l),o=!0)},o(a){C(l),o=!1},d(a){n[e].d(a),a&&f(t)}}}function Os(r){var et,tt,lt,st,rt,nt,at,ot,ut,ft,it,ct,dt,mt,pt,_t,ht,$t,vt,gt,kt,wt,bt,Et,It,Tt,Dt,Pt,Rt,St,Vt,Wt,At,qt,Ht,Ct,Mt;let e,l,t,o,s,n,u,a,m,p,v,h,i,c,$,R,M,j=((rt=(st=(lt=(tt=(et=r[29])==null?void 0:et.schedule)==null?void 0:tt.action)==null?void 0:lt.startWorkflow)==null?void 0:st.workflowType)==null?void 0:rt.name)+"",le,K,fe,ae,B=_("created",{created:ge((at=(nt=r[29])==null?void 0:nt.info)==null?void 0:at.createTime,r[5],{relative:r[6]})})+"",re,oe,X,F,pe,Y,ue,se,E,x,S,N,ce,ee,de,_e,I,L,te,$e,he,y,We,Ae,ke;t=new ze({props:{icon:"chevron-left",$$slots:{default:[Gs]},$$scope:{ctx:r}}}),t.$on("click",r[17]),n=new Nl({props:{status:(ot=r[29])!=null&&ot.schedule.state.paused?"Paused":"Running"}});let ne=((ft=(ut=r[29])==null?void 0:ut.info)==null?void 0:ft.updateTime)&&Hl(r);F=new fs({props:{position:"right",label:(dt=(ct=(it=r[29])==null?void 0:it.schedule)==null?void 0:ct.state)!=null&&dt.paused?_("schedules","unpause"):_("schedules","pause"),menuLabel:_("schedules","schedule-actions"),id:"schedule-actions",disabled:r[11],$$slots:{default:[Qs]},$$scope:{ctx:r}}}),F.$on("click",r[19]);let Q=((pt=(mt=r[29])==null?void 0:mt.info)==null?void 0:pt.invalidScheduleError)&&Cl(r);x=new Hs({props:{namespace:r[8],recentRuns:(ht=(_t=r[29])==null?void 0:_t.info)==null?void 0:ht.recentActions}}),N=new Ns({props:{futureRuns:(vt=($t=r[29])==null?void 0:$t.info)==null?void 0:vt.futureActionTimes}}),ee=new $s({props:{spec:(kt=(gt=r[29])==null?void 0:gt.schedule)==null?void 0:kt.spec,state:(bt=(wt=r[29])==null?void 0:wt.schedule)==null?void 0:bt.state,policies:(It=(Et=r[29])==null?void 0:Et.schedule)==null?void 0:It.policies,notes:(Pt=(Dt=(Tt=r[29])==null?void 0:Tt.schedule)==null?void 0:Dt.state)==null?void 0:Pt.notes}}),I=new Ds({props:{calendar:(Wt=(Vt=(St=(Rt=r[29])==null?void 0:Rt.schedule)==null?void 0:St.spec)==null?void 0:Vt.structuredCalendar)==null?void 0:Wt[0],interval:(Ct=(Ht=(qt=(At=r[29])==null?void 0:At.schedule)==null?void 0:qt.spec)==null?void 0:Ht.interval)==null?void 0:Ct[0]}});function Ul(T){r[21](T)}function Ol(){return r[22](r[29])}let xe={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Mt=r[29])!=null&&Mt.schedule.state.paused?_("schedules","unpause"):_("schedules","pause"),cancelText:_("cancel"),confirmDisabled:!r[3],$$slots:{content:[Bs],title:[Zs]},$$scope:{ctx:r}};r[1]!==void 0&&(xe.open=r[1]),te=new Dl({props:xe}),Qe.push(()=>Ze(te,"open",Ul)),te.$on("confirmModal",Ol),te.$on("cancelModal",r[14]);function zl(T){r[23](T)}function Gl(T){r[24](T)}let Je={id:"delete-schedule-modal",confirmType:"destructive",confirmText:_("delete"),cancelText:_("cancel"),$$slots:{content:[Ys],title:[Xs]},$$scope:{ctx:r}};return r[2]!==void 0&&(Je.open=r[2]),r[7]!==void 0&&(Je.error=r[7]),y=new Dl({props:Je}),Qe.push(()=>Ze(y,"open",zl)),Qe.push(()=>Ze(y,"error",Gl)),y.$on("confirmModal",r[12]),y.$on("cancelModal",r[14]),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),U(n.$$.fragment),u=W(),a=k("span"),m=D(r[9]),p=W(),v=k("div"),h=k("p"),i=D(r[8]),c=W(),$=k("div"),R=W(),M=k("p"),le=D(j),K=W(),fe=k("div"),ae=k("p"),re=D(B),oe=W(),ne&&ne.c(),X=W(),U(F.$$.fragment),pe=W(),Y=k("div"),Q&&Q.c(),ue=W(),se=k("div"),E=k("div"),U(x.$$.fragment),S=W(),U(N.$$.fragment),ce=W(),U(ee.$$.fragment),de=W(),_e=k("div"),U(I.$$.fragment),L=W(),U(te.$$.fragment),he=W(),U(y.$$.fragment),this.h()},l(T){e=w(T,"HEADER",{class:!0});var q=b(e);l=w(q,"DIV",{class:!0});var me=b(l);O(t.$$.fragment,me),o=A(me),s=w(me,"H1",{class:!0});var Se=b(s);O(n.$$.fragment,Se),u=A(Se),a=w(Se,"SPAN",{class:!0,"data-testid":!0});var qe=b(a);m=P(qe,r[9]),qe.forEach(f),Se.forEach(f),p=A(me),v=w(me,"DIV",{class:!0});var we=b(v);h=w(we,"P",{});var Ce=b(h);i=P(Ce,r[8]),Ce.forEach(f),c=A(we),$=w(we,"DIV",{class:!0}),b($).forEach(f),R=A(we),M=w(we,"P",{});var Pe=b(M);le=P(Pe,j),Pe.forEach(f),we.forEach(f),K=A(me),fe=w(me,"DIV",{class:!0});var He=b(fe);ae=w(He,"P",{});var Re=b(ae);re=P(Re,B),Re.forEach(f),He.forEach(f),oe=A(me),ne&&ne.l(me),me.forEach(f),X=A(q),O(F.$$.fragment,q),q.forEach(f),pe=A(T),Y=w(T,"DIV",{class:!0});var be=b(Y);Q&&Q.l(be),ue=A(be),se=w(be,"DIV",{class:!0});var Ve=b(se);E=w(Ve,"DIV",{class:!0});var Ee=b(E);O(x.$$.fragment,Ee),S=A(Ee),O(N.$$.fragment,Ee),ce=A(Ee),O(ee.$$.fragment,Ee),Ee.forEach(f),de=A(Ve),_e=w(Ve,"DIV",{class:!0});var Me=b(_e);O(I.$$.fragment,Me),Me.forEach(f),Ve.forEach(f),be.forEach(f),L=A(T),O(te.$$.fragment,T),he=A(T),O(y.$$.fragment,T),this.h()},h(){V(a,"class","select-all font-medium"),V(a,"data-testid","schedule-name"),V(s,"class","relative mt-8 flex items-center gap-4 text-2xl"),V($,"class","h-1 w-1 rounded-full bg-gray-900"),V(v,"class","flex items-center gap-2 text-sm"),V(fe,"class","flex items-center gap-2 text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8 flex flex-row justify-between gap-4"),V(E,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),V(_e,"class","w-full xl:w-1/3"),V(se,"class","flex flex-col gap-4 xl:flex-row"),V(Y,"class","flex flex-col gap-4 pb-24")},m(T,q){g(T,e,q),d(e,l),z(t,l,null),d(l,o),d(l,s),z(n,s,null),d(s,u),d(s,a),d(a,m),d(l,p),d(l,v),d(v,h),d(h,i),d(v,c),d(v,$),d(v,R),d(v,M),d(M,le),d(l,K),d(l,fe),d(fe,ae),d(ae,re),d(l,oe),ne&&ne.m(l,null),d(e,X),z(F,e,null),g(T,pe,q),g(T,Y,q),Q&&Q.m(Y,null),d(Y,ue),d(Y,se),d(se,E),z(x,E,null),d(E,S),z(N,E,null),d(E,ce),z(ee,E,null),d(se,de),d(se,_e),z(I,_e,null),g(T,L,q),z(te,T,q),g(T,he,q),z(y,T,q),ke=!0},p(T,q){var Ve,Ee,Me,Ft,Nt,jt,Lt,Ut,Ot,zt,Gt,Jt,Kt,Qt,Zt,Bt,Xt,Yt,yt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,fl,il,cl,dl,ml,pl,_l,hl;r=T;const me={};q&1073741824&&(me.$$scope={dirty:q,ctx:r}),t.$set(me);const Se={};q&1&&(Se.status=(Ve=r[29])!=null&&Ve.schedule.state.paused?"Paused":"Running"),n.$set(Se),(!ke||q&1)&&j!==(j=((jt=(Nt=(Ft=(Me=(Ee=r[29])==null?void 0:Ee.schedule)==null?void 0:Me.action)==null?void 0:Ft.startWorkflow)==null?void 0:Nt.workflowType)==null?void 0:jt.name)+"")&&J(le,j),(!ke||q&97)&&B!==(B=_("created",{created:ge((Ut=(Lt=r[29])==null?void 0:Lt.info)==null?void 0:Ut.createTime,r[5],{relative:r[6]})})+"")&&J(re,B),(zt=(Ot=r[29])==null?void 0:Ot.info)!=null&&zt.updateTime?ne?ne.p(r,q):(ne=Hl(r),ne.c(),ne.m(l,null)):ne&&(ne.d(1),ne=null);const qe={};q&1&&(qe.label=(Kt=(Jt=(Gt=r[29])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?_("schedules","unpause"):_("schedules","pause")),q&1073741828&&(qe.$$scope={dirty:q,ctx:r}),F.$set(qe),(Zt=(Qt=r[29])==null?void 0:Qt.info)!=null&&Zt.invalidScheduleError?Q?(Q.p(r,q),q&1&&H(Q,1)):(Q=Cl(r),Q.c(),H(Q,1),Q.m(Y,ue)):Q&&(Le(),C(Q,1,1,()=>{Q=null}),Ue());const we={};q&1&&(we.recentRuns=(Xt=(Bt=r[29])==null?void 0:Bt.info)==null?void 0:Xt.recentActions),x.$set(we);const Ce={};q&1&&(Ce.futureRuns=(yt=(Yt=r[29])==null?void 0:Yt.info)==null?void 0:yt.futureActionTimes),N.$set(Ce);const Pe={};q&1&&(Pe.spec=(el=(xt=r[29])==null?void 0:xt.schedule)==null?void 0:el.spec),q&1&&(Pe.state=(ll=(tl=r[29])==null?void 0:tl.schedule)==null?void 0:ll.state),q&1&&(Pe.policies=(rl=(sl=r[29])==null?void 0:sl.schedule)==null?void 0:rl.policies),q&1&&(Pe.notes=(ol=(al=(nl=r[29])==null?void 0:nl.schedule)==null?void 0:al.state)==null?void 0:ol.notes),ee.$set(Pe);const He={};q&1&&(He.calendar=(cl=(il=(fl=(ul=r[29])==null?void 0:ul.schedule)==null?void 0:fl.spec)==null?void 0:il.structuredCalendar)==null?void 0:cl[0]),q&1&&(He.interval=(_l=(pl=(ml=(dl=r[29])==null?void 0:dl.schedule)==null?void 0:ml.spec)==null?void 0:pl.interval)==null?void 0:_l[0]),I.$set(He);const Re={};q&1&&(Re.confirmText=(hl=r[29])!=null&&hl.schedule.state.paused?_("schedules","unpause"):_("schedules","pause")),q&8&&(Re.confirmDisabled=!r[3]),q&1073741833&&(Re.$$scope={dirty:q,ctx:r}),!$e&&q&2&&($e=!0,Re.open=r[1],Be(()=>$e=!1)),te.$set(Re);const be={};q&1073741824&&(be.$$scope={dirty:q,ctx:r}),!We&&q&4&&(We=!0,be.open=r[2],Be(()=>We=!1)),!Ae&&q&128&&(Ae=!0,be.error=r[7],Be(()=>Ae=!1)),y.$set(be)},i(T){ke||(H(t.$$.fragment,T),H(n.$$.fragment,T),H(F.$$.fragment,T),H(Q),H(x.$$.fragment,T),H(N.$$.fragment,T),H(ee.$$.fragment,T),H(I.$$.fragment,T),H(te.$$.fragment,T),H(y.$$.fragment,T),ke=!0)},o(T){C(t.$$.fragment,T),C(n.$$.fragment,T),C(F.$$.fragment,T),C(Q),C(x.$$.fragment,T),C(N.$$.fragment,T),C(ee.$$.fragment,T),C(I.$$.fragment,T),C(te.$$.fragment,T),C(y.$$.fragment,T),ke=!1},d(T){T&&f(e),G(t),G(n),ne&&ne.d(),G(F),T&&f(pe),T&&f(Y),Q&&Q.d(),G(x),G(N),G(ee),G(I),T&&f(L),G(te,T),T&&f(he),G(y,T)}}}function zs(r){let e,l;return e=new jl({props:{title:_("schedules","deleting"),class:"my-2"}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p:Z,i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Gs(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Hl(r){var s,n;let e,l,t=_("last-updated",{updated:ge((n=(s=r[29])==null?void 0:s.info)==null?void 0:n.updateTime,r[5],{relative:r[6]})})+"",o;return{c(){e=k("div"),l=k("p"),o=D(t),this.h()},l(u){e=w(u,"DIV",{class:!0});var a=b(e);l=w(a,"P",{});var m=b(l);o=P(m,t),m.forEach(f),a.forEach(f),this.h()},h(){V(e,"class","flex items-center gap-2 text-sm")},m(u,a){g(u,e,a),d(e,l),d(l,o)},p(u,a){var m,p;a&97&&t!==(t=_("last-updated",{updated:ge((p=(m=u[29])==null?void 0:m.info)==null?void 0:p.updateTime,u[5],{relative:u[6]})})+"")&&J(o,t)},d(u){u&&f(e)}}}function Js(r){let e=_("edit")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Ks(r){let e=_("delete")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Qs(r){let e,l,t,o;return e=new Tl({props:{"data-testid":"edit-schedule",href:us({namespace:r[8],scheduleId:r[9]}),$$slots:{default:[Js]},$$scope:{ctx:r}}}),t=new Tl({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[Ks]},$$scope:{ctx:r}}}),t.$on("click",r[18]),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,n){const u={};n&1073741824&&(u.$$scope={dirty:n,ctx:s}),e.$set(u);const a={};n&1073741824&&(a.$$scope={dirty:n,ctx:s}),t.$set(a)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function Cl(r){var o,s;let e,l,t;return l=new Ll({props:{error:(s=(o=r[29])==null?void 0:o.info)==null?void 0:s.invalidScheduleError}}),{c(){e=k("div"),U(l.$$.fragment),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);O(l.$$.fragment,u),u.forEach(f),this.h()},h(){V(e,"class","w-full xl:w-1/2")},m(n,u){g(n,e,u),z(l,e,null),t=!0},p(n,u){var m,p;const a={};u&1&&(a.error=(p=(m=n[29])==null?void 0:m.info)==null?void 0:p.invalidScheduleError),l.$set(a)},i(n){t||(H(l.$$.fragment,n),t=!0)},o(n){C(l.$$.fragment,n),t=!1},d(n){n&&f(e),G(l)}}}function Zs(r){var o;let e,l=((o=r[29])!=null&&o.schedule.state.paused?_("schedules","unpause-modal-title"):_("schedules","pause-modal-title"))+"",t;return{c(){e=k("h3"),t=D(l),this.h()},l(s){e=w(s,"H3",{slot:!0});var n=b(e);t=P(n,l),n.forEach(f),this.h()},h(){V(e,"slot","title")},m(s,n){g(s,e,n),d(e,t)},p(s,n){var u;n&1&&l!==(l=((u=s[29])!=null&&u.schedule.state.paused?_("schedules","unpause-modal-title"):_("schedules","pause-modal-title"))+"")&&J(t,l)},d(s){s&&f(e)}}}function Bs(r){var i,c;let e,l,t=((i=r[29])!=null&&i.schedule.state.paused?_("schedules","unpause-modal-confirmation",{schedule:r[9]}):_("schedules","pause-modal-confirmation",{schedule:r[9]}))+"",o,s,n,u=((c=r[29])!=null&&c.schedule.state.paused?_("schedules","unpause-reason"):_("schedules","pause-reason"))+"",a,m,p,v,h;return{c(){e=k("div"),l=k("p"),o=D(t),s=W(),n=k("p"),a=D(u),m=W(),p=k("input"),this.h()},l($){e=w($,"DIV",{slot:!0});var R=b(e);l=w(R,"P",{});var M=b(l);o=P(M,t),M.forEach(f),s=A(R),n=w(R,"P",{class:!0});var j=b(n);a=P(j,u),j.forEach(f),m=A(R),p=w(R,"INPUT",{class:!0,placeholder:!0}),R.forEach(f),this.h()},h(){V(n,"class","my-4"),V(p,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),V(p,"placeholder",_("reason")),V(e,"slot","content")},m($,R){g($,e,R),d(e,l),d(l,o),d(e,s),d(e,n),d(n,a),d(e,m),d(e,p),kl(p,r[3]),v||(h=[wl(p,"input",r[20]),wl(p,"keydown",xl(r[15]))],v=!0)},p($,R){var M,j;R&1&&t!==(t=((M=$[29])!=null&&M.schedule.state.paused?_("schedules","unpause-modal-confirmation",{schedule:$[9]}):_("schedules","pause-modal-confirmation",{schedule:$[9]}))+"")&&J(o,t),R&1&&u!==(u=((j=$[29])!=null&&j.schedule.state.paused?_("schedules","unpause-reason"):_("schedules","pause-reason"))+"")&&J(a,u),R&8&&p.value!==$[3]&&kl(p,$[3])},d($){$&&f(e),v=!1,es(h)}}}function Xs(r){let e,l=_("schedules","delete-modal-title")+"",t;return{c(){e=k("h3"),t=D(l),this.h()},l(o){e=w(o,"H3",{slot:!0});var s=b(e);t=P(s,l),s.forEach(f),this.h()},h(){V(e,"slot","title")},m(o,s){g(o,e,s),d(e,t)},p:Z,d(o){o&&f(e)}}}function Ys(r){let e,l,t=_("schedules","delete-modal-confirmation",{schedule:r[9]})+"",o;return{c(){e=k("div"),l=k("p"),o=D(t),this.h()},l(s){e=w(s,"DIV",{slot:!0});var n=b(e);l=w(n,"P",{});var u=b(l);o=P(u,t),u.forEach(f),n.forEach(f),this.h()},h(){V(e,"slot","content")},m(s,n){g(s,e,n),d(e,l),d(l,o)},p:Z,d(s){s&&f(e)}}}function ys(r){let e,l,t,o,s,n,u,a,m,p,v,h;return t=new ze({props:{icon:"chevron-left",$$slots:{default:[xs]},$$scope:{ctx:r}}}),t.$on("click",r[16]),v=new jl({}),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),n=D(r[9]),u=W(),a=k("p"),m=D(r[8]),p=W(),U(v.$$.fragment),this.h()},l(i){e=w(i,"HEADER",{class:!0});var c=b(e);l=w(c,"DIV",{class:!0});var $=b(l);O(t.$$.fragment,$),o=A($),s=w($,"H1",{class:!0,"data-testid":!0});var R=b(s);n=P(R,r[9]),R.forEach(f),u=A($),a=w($,"P",{class:!0});var M=b(a);m=P(M,r[8]),M.forEach(f),$.forEach(f),c.forEach(f),p=A(i),O(v.$$.fragment,i),this.h()},h(){V(s,"class","mt-8 select-all text-2xl font-medium"),V(s,"data-testid","schedule-name"),V(a,"class","text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8")},m(i,c){g(i,e,c),d(e,l),z(t,l,null),d(l,o),d(l,s),d(s,n),d(l,u),d(l,a),d(a,m),g(i,p,c),z(v,i,c),h=!0},p(i,c){const $={};c&1073741824&&($.$$scope={dirty:c,ctx:i}),t.$set($)},i(i){h||(H(t.$$.fragment,i),H(v.$$.fragment,i),h=!0)},o(i){C(t.$$.fragment,i),C(v.$$.fragment,i),h=!1},d(i){i&&f(e),G(t),i&&f(p),G(v,i)}}}function xs(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function er(r){let e,l,t,o={ctx:r,current:null,token:null,hasCatch:!0,pending:ys,then:Us,catch:js,value:29,error:7,blocks:[,,,]};return Oe(l=r[0],o),{c(){e=ie(),o.block.c()},l(s){e=ie(),o.block.l(s)},m(s,n){g(s,e,n),o.block.m(s,o.anchor=n),o.mount=()=>e.parentNode,o.anchor=e,t=!0},p(s,[n]){r=s,o.ctx=r,n&1&&l!==(l=r[0])&&Oe(l,o)||Ml(o,r,n)},i(s){t||(H(o.block),t=!0)},o(s){for(let n=0;n<3;n+=1){const u=o.blocks[n];C(u)}t=!1},d(s){s&&f(e),o.block.d(s),o.token=null,o=null}}}function tr(r,e,l){let t,o,s,n,u;ve(r,je,E=>l(4,t=E)),ve(r,Fl,E=>l(27,s=E)),ve(r,Ye,E=>l(5,n=E)),ve(r,ye,E=>l(6,u=E));let a=s.params.namespace,m=s.params.schedule;const p={namespace:a,scheduleId:Xe(m)};let v=bl(p),h=!1,i=!1,c="",$="",R=is();ve(r,R,E=>l(26,o=E));let M=o.namespaceWriteDisabled(a);const j=async()=>{l(7,$="");try{Ke(je,t=!0,t),await rs({namespace:a,scheduleId:m}),l(2,i=!1),setTimeout(()=>{Ke(je,t=!1,t),Fe(Ne({namespace:a}))},2e3),l(3,c="")}catch(E){l(7,$=_("schedules","delete-schedule-error",{error:E==null?void 0:E.message})),Ke(je,t=!1,t)}},le=async E=>{var x,S;!((S=(x=E==null?void 0:E.schedule)===null||x===void 0?void 0:x.state)===null||S===void 0)&&S.paused?await ns({namespace:a,scheduleId:m,reason:c}):await as({namespace:a,scheduleId:m,reason:c}),l(0,v=bl(p,fetch)),l(3,c=""),l(1,h=!1)},K=()=>{l(3,c="")};function fe(E){yl.call(this,r,E)}const ae=()=>{Fe(Ne({namespace:a}))},B=()=>{Fe(Ne({namespace:a}))},re=()=>l(2,i=!0),oe=()=>l(1,h=!0);function X(){c=this.value,l(3,c)}function F(E){h=E,l(1,h)}const pe=E=>le(E);function Y(E){i=E,l(2,i)}function ue(E){$=E,l(7,$)}return[v,h,i,c,t,n,u,$,a,m,R,M,j,le,K,fe,ae,B,re,oe,X,F,pe,Y,ue,()=>{Fe(Ne({namespace:a}))}]}class lr extends Ie{constructor(e){super(),Te(this,e,tr,er,De,{})}}function sr(r){let e,l,t,o;return e=new ts({props:{title:`Schedule | ${r[1]}`,url:r[0].url.href}}),t=new lr({}),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,[n]){const u={};n&1&&(u.url=s[0].url.href),e.$set(u)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function rr(r,e,l){let t;ve(r,Fl,s=>l(0,t=s));const o=t.params.schedule;return[t,o]}class Ir extends Ie{constructor(e){super(),Te(this,e,rr,sr,De,{})}}export{Ir as default}; +import{S as Ie,b as Te,a as De,m as k,w as D,c as W,p as w,q as b,x as P,k as f,d as A,u as V,f as g,L as d,y as J,n as Z,C as U,D as O,E as z,j as H,g as C,F as G,e as ie,G as Jl,P as $l,H as Kl,I as Ql,J as Zl,N as vl,U as gl,K as ve,z as Le,aa as Bl,ab as Xl,h as Ue,ar as Oe,as as Ml,a7 as Yl,a5 as Ke,V as yl,A as Qe,Z as Ze,_ as Be,a0 as kl,Q as wl,a1 as xl,r as es}from"../chunks/index.6779d4e2.js";import{p as Fl}from"../chunks/stores.b96d31b2.js";import{P as ts}from"../chunks/page-title.990af218.js";import{g as Fe}from"../chunks/navigation.8e7fd3e5.js";import{A as ls}from"../chunks/accordion.6253b32e.js";import{t as _}from"../chunks/translate.29a4bc43.js";import{S as ss,a as bl,d as rs,u as ns,p as as}from"../chunks/schedule-service.a1e87565.js";import{E as os}from"../chunks/empty-state.c8d40bbf.js";import{L as ze}from"../chunks/link.8030aa06.js";import{i as El}from"../chunks/workflow-service.2a5b4d45.js";import{t as Ye,r as ye,b as ge}from"../chunks/format-date.79dd40f6.js";import{l as Xe,g as Il,c as Ne,u as us}from"../chunks/route-for.31ffa191.js";import{W as Nl}from"../chunks/workflow-status.fc3d74d1.js";import{L as jl}from"../chunks/loading.a6f9064e.js";import{d as Tl}from"../chunks/menu.7e3d54af.js";import{M as Dl}from"../chunks/modal.118648f9.js";import{S as fs}from"../chunks/split-button.9aad1ebf.js";import{c as is}from"../chunks/core-user.1973d180.js";import{l as je}from"../chunks/schedules.4bb8639b.js";function cs(r){let e,l,t=_("notes")+"",o,s,n,u;return{c(){e=k("div"),l=k("h2"),o=D(t),s=W(),n=k("p"),u=D(r[0]),this.h()},l(a){e=w(a,"DIV",{});var m=b(e);l=w(m,"H2",{class:!0});var p=b(l);o=P(p,t),p.forEach(f),s=A(m),n=w(m,"P",{});var v=b(n);u=P(v,r[0]),v.forEach(f),m.forEach(f),this.h()},h(){V(l,"class","mb-4 text-2xl")},m(a,m){g(a,e,m),d(e,l),d(l,o),d(e,s),d(e,n),d(n,u)},p(a,[m]){m&1&&J(u,a[0])},i:Z,o:Z,d(a){a&&f(e)}}}function ds(r,e,l){let{notes:t=""}=e;return r.$$set=o=>{"notes"in o&&l(0,t=o.notes)},[t]}class ms extends Ie{constructor(e){super(),Te(this,e,ds,cs,De,{notes:0})}}function Pl(r){var x,S,N,ce,ee,de,_e;let e,l=_("schedules","start-time")+"",t,o,s=(((x=r[0])==null?void 0:x.startTime)??_("none"))+"",n,u,a,m=_("schedules","end-time")+"",p,v=(((S=r[0])==null?void 0:S.endTime)??_("none"))+"",h,i,c,$=_("schedules","jitter")+"",R,M=(((N=r[0])==null?void 0:N.jitter)??_("none"))+"",j,le,K,fe=_("schedules","exclusion-calendar")+"",ae,B=(((ee=(ce=r[0])==null?void 0:ce.excludeCalendar)==null?void 0:ee[0])??_("none"))+"",re,oe,X,F,pe=_("schedules","overlap-policy")+"",Y,ue=(((de=r[2])==null?void 0:de.overlapPolicy)??_("none"))+"",se,E=((_e=r[1])==null?void 0:_e.limitedActions)&&Rl(r);return{c(){e=k("p"),t=D(l),o=W(),n=D(s),u=W(),a=k("p"),p=D(m),h=D(v),i=W(),c=k("p"),R=D($),j=D(M),le=W(),K=k("p"),ae=D(fe),re=D(B),oe=W(),E&&E.c(),X=W(),F=k("p"),Y=D(pe),se=D(ue)},l(I){e=w(I,"P",{});var L=b(e);t=P(L,l),o=A(L),n=P(L,s),L.forEach(f),u=A(I),a=w(I,"P",{});var te=b(a);p=P(te,m),h=P(te,v),te.forEach(f),i=A(I),c=w(I,"P",{});var $e=b(c);R=P($e,$),j=P($e,M),$e.forEach(f),le=A(I),K=w(I,"P",{});var he=b(K);ae=P(he,fe),re=P(he,B),he.forEach(f),oe=A(I),E&&E.l(I),X=A(I),F=w(I,"P",{});var y=b(F);Y=P(y,pe),se=P(y,ue),y.forEach(f)},m(I,L){g(I,e,L),d(e,t),d(e,o),d(e,n),g(I,u,L),g(I,a,L),d(a,p),d(a,h),g(I,i,L),g(I,c,L),d(c,R),d(c,j),g(I,le,L),g(I,K,L),d(K,ae),d(K,re),g(I,oe,L),E&&E.m(I,L),g(I,X,L),g(I,F,L),d(F,Y),d(F,se)},p(I,L){var te,$e,he,y,We,Ae,ke;L&1&&s!==(s=(((te=I[0])==null?void 0:te.startTime)??_("none"))+"")&&J(n,s),L&1&&v!==(v=((($e=I[0])==null?void 0:$e.endTime)??_("none"))+"")&&J(h,v),L&1&&M!==(M=(((he=I[0])==null?void 0:he.jitter)??_("none"))+"")&&J(j,M),L&1&&B!==(B=(((We=(y=I[0])==null?void 0:y.excludeCalendar)==null?void 0:We[0])??_("none"))+"")&&J(re,B),(Ae=I[1])!=null&&Ae.limitedActions?E?E.p(I,L):(E=Rl(I),E.c(),E.m(X.parentNode,X)):E&&(E.d(1),E=null),L&4&&ue!==(ue=(((ke=I[2])==null?void 0:ke.overlapPolicy)??_("none"))+"")&&J(se,ue)},d(I){I&&f(e),I&&f(u),I&&f(a),I&&f(i),I&&f(c),I&&f(le),I&&f(K),I&&f(oe),E&&E.d(I),I&&f(X),I&&f(F)}}}function Rl(r){var n;let e,l=_("schedules","remaining-actions")+"",t,o=(((n=r[1])==null?void 0:n.remainingActions)??_("none"))+"",s;return{c(){e=k("p"),t=D(l),s=D(o)},l(u){e=w(u,"P",{});var a=b(e);t=P(a,l),s=P(a,o),a.forEach(f)},m(u,a){g(u,e,a),d(e,t),d(e,s)},p(u,a){var m;a&2&&o!==(o=(((m=u[1])==null?void 0:m.remainingActions)??_("none"))+"")&&J(s,o)},d(u){u&&f(e)}}}function ps(r){var pe,Y,ue,se,E,x;let e,l=_("schedules","start-time")+"",t,o,s=(((pe=r[0])==null?void 0:pe.startTime)??_("none"))+"",n,u,a,m=_("schedules","end-time")+"",p,v=(((Y=r[0])==null?void 0:Y.endTime)??_("none"))+"",h,i,c,$=_("schedules","jitter")+"",R,M=(((ue=r[0])==null?void 0:ue.jitter)??_("none"))+"",j,le,K,fe=_("schedules","exclusion-calendar")+"",ae,B=(((E=(se=r[0])==null?void 0:se.excludeCalendar)==null?void 0:E[0])??_("none"))+"",re,oe,X,F=((x=r[1])==null?void 0:x.limitedActions)&&Pl(r);return{c(){e=k("p"),t=D(l),o=W(),n=D(s),u=W(),a=k("p"),p=D(m),h=D(v),i=W(),c=k("p"),R=D($),j=D(M),le=W(),K=k("p"),ae=D(fe),re=D(B),oe=W(),F&&F.c(),X=ie()},l(S){e=w(S,"P",{});var N=b(e);t=P(N,l),o=A(N),n=P(N,s),N.forEach(f),u=A(S),a=w(S,"P",{});var ce=b(a);p=P(ce,m),h=P(ce,v),ce.forEach(f),i=A(S),c=w(S,"P",{});var ee=b(c);R=P(ee,$),j=P(ee,M),ee.forEach(f),le=A(S),K=w(S,"P",{});var de=b(K);ae=P(de,fe),re=P(de,B),de.forEach(f),oe=A(S),F&&F.l(S),X=ie()},m(S,N){g(S,e,N),d(e,t),d(e,o),d(e,n),g(S,u,N),g(S,a,N),d(a,p),d(a,h),g(S,i,N),g(S,c,N),d(c,R),d(c,j),g(S,le,N),g(S,K,N),d(K,ae),d(K,re),g(S,oe,N),F&&F.m(S,N),g(S,X,N)},p(S,N){var ce,ee,de,_e,I,L;N&1&&s!==(s=(((ce=S[0])==null?void 0:ce.startTime)??_("none"))+"")&&J(n,s),N&1&&v!==(v=(((ee=S[0])==null?void 0:ee.endTime)??_("none"))+"")&&J(h,v),N&1&&M!==(M=(((de=S[0])==null?void 0:de.jitter)??_("none"))+"")&&J(j,M),N&1&&B!==(B=(((I=(_e=S[0])==null?void 0:_e.excludeCalendar)==null?void 0:I[0])??_("none"))+"")&&J(re,B),(L=S[1])!=null&&L.limitedActions?F?F.p(S,N):(F=Pl(S),F.c(),F.m(X.parentNode,X)):F&&(F.d(1),F=null)},d(S){S&&f(e),S&&f(u),S&&f(a),S&&f(i),S&&f(c),S&&f(le),S&&f(K),S&&f(oe),F&&F.d(S),S&&f(X)}}}function _s(r){let e,l,t,o;return e=new ms({props:{notes:r[3]}}),t=new ls({props:{title:_("schedules","advanced-settings"),$$slots:{default:[ps]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,[n]){const u={};n&8&&(u.notes=s[3]),e.$set(u);const a={};n&23&&(a.$$scope={dirty:n,ctx:s}),t.$set(a)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function hs(r,e,l){let{spec:t}=e,{state:o}=e,{policies:s}=e,{notes:n=""}=e;return r.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,o=u.state),"policies"in u&&l(2,s=u.policies),"notes"in u&&l(3,n=u.notes)},[t,o,s,n]}class $s extends Ie{constructor(e){super(),Te(this,e,hs,_s,De,{spec:0,state:1,policies:2,notes:3})}}function vs(r){let e,l,t;const o=r[3].default,s=Jl(o,r,r[2],null);return{c(){e=k("div"),s&&s.c(),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);s&&s.l(u),u.forEach(f),this.h()},h(){V(e,"class",l="panel bg-white "+r[1].class+" svelte-11fqqfg"),$l(e,"error",r[0])},m(n,u){g(n,e,u),s&&s.m(e,null),t=!0},p(n,[u]){s&&s.p&&(!t||u&4)&&Kl(s,o,n,n[2],t?Zl(o,n[2],u,null):Ql(n[2]),null),(!t||u&2&&l!==(l="panel bg-white "+n[1].class+" svelte-11fqqfg"))&&V(e,"class",l),(!t||u&3)&&$l(e,"error",n[0])},i(n){t||(H(s,n),t=!0)},o(n){C(s,n),t=!1},d(n){n&&f(e),s&&s.d(n)}}}function gs(r,e,l){let{$$slots:t={},$$scope:o}=e,{error:s=!1}=e;return r.$$set=n=>{l(1,e=vl(vl({},e),gl(n))),"error"in n&&l(0,s=n.error),"$$scope"in n&&l(2,o=n.$$scope)},e=gl(e),[s,e,o,t]}class Ge extends Ie{constructor(e){super(),Te(this,e,gs,vs,De,{error:0})}}function ks(r){let e,l=_("schedules","error-title")+"",t,o,s,n;return{c(){e=k("p"),t=D(l),o=W(),s=k("p"),n=D(r[0]),this.h()},l(u){e=w(u,"P",{class:!0});var a=b(e);t=P(a,l),a.forEach(f),o=A(u),s=w(u,"P",{class:!0});var m=b(s);n=P(m,r[0]),m.forEach(f),this.h()},h(){V(e,"class","error-text svelte-1lke5yx"),V(s,"class","error-text svelte-1lke5yx")},m(u,a){g(u,e,a),d(e,t),g(u,o,a),g(u,s,a),d(s,n)},p(u,a){a&1&&J(n,u[0])},d(u){u&&f(e),u&&f(o),u&&f(s)}}}function ws(r){let e,l;return e=new Ge({props:{error:!0,$$slots:{default:[ks]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p(t,[o]){const s={};o&3&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function bs(r,e,l){let{error:t=""}=e;return r.$$set=o=>{"error"in o&&l(0,t=o.error)},[t]}class Ll extends Ie{constructor(e){super(),Te(this,e,bs,ws,De,{error:0})}}function Es(r){let e,l=_("schedules","schedule-spec")+"",t,o,s,n,u;return n=new ss({props:{calendar:r[0],interval:r[1],class:"text-base"}}),{c(){e=k("h2"),t=D(l),o=W(),s=k("div"),U(n.$$.fragment),this.h()},l(a){e=w(a,"H2",{class:!0});var m=b(e);t=P(m,l),m.forEach(f),o=A(a),s=w(a,"DIV",{class:!0});var p=b(s);O(n.$$.fragment,p),p.forEach(f),this.h()},h(){V(e,"class","mb-4 text-2xl"),V(s,"class","pr-2")},m(a,m){g(a,e,m),d(e,t),g(a,o,m),g(a,s,m),z(n,s,null),u=!0},p(a,m){const p={};m&1&&(p.calendar=a[0]),m&2&&(p.interval=a[1]),n.$set(p)},i(a){u||(H(n.$$.fragment,a),u=!0)},o(a){C(n.$$.fragment,a),u=!1},d(a){a&&f(e),a&&f(o),a&&f(s),G(n)}}}function Is(r){let e,l;return e=new Ge({props:{$$slots:{default:[Es]},$$scope:{ctx:r}}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p(t,[o]){const s={};o&7&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Ts(r,e,l){let{calendar:t=void 0}=e,{interval:o=void 0}=e;return r.$$set=s=>{"calendar"in s&&l(0,t=s.calendar),"interval"in s&&l(1,o=s.interval)},[t,o]}class Ds extends Ie{constructor(e){super(),Te(this,e,Ts,Is,De,{calendar:0,interval:1})}}function Sl(r,e,l){const t=r.slice();return t[5]=e[l],t}function Ps(r){let e,l,t,o,s=r[5].startWorkflowResult.workflowId+"",n,u,a,m,p=ge(r[5].actualTime,r[2],{relative:r[3]})+"",v;return{c(){e=k("div"),l=k("div"),t=W(),o=k("div"),n=D(s),u=W(),a=k("div"),m=k("p"),v=D(p),this.h()},l(h){e=w(h,"DIV",{class:!0});var i=b(e);l=w(i,"DIV",{class:!0}),b(l).forEach(f),t=A(i),o=w(i,"DIV",{class:!0});var c=b(o);n=P(c,s),c.forEach(f),u=A(i),a=w(i,"DIV",{class:!0});var $=b(a);m=w($,"P",{});var R=b(m);v=P(R,p),R.forEach(f),$.forEach(f),i.forEach(f),this.h()},h(){V(l,"class","w-28"),V(o,"class","w-96"),V(a,"class","ml-auto"),V(e,"class","row svelte-lqpjgu")},m(h,i){g(h,e,i),d(e,l),d(e,t),d(e,o),d(o,n),d(e,u),d(e,a),d(a,m),d(m,v)},p(h,i){i&1&&s!==(s=h[5].startWorkflowResult.workflowId+"")&&J(n,s),i&13&&p!==(p=ge(h[5].actualTime,h[2],{relative:h[3]})+"")&&J(v,p)},i:Z,o:Z,d(h){h&&f(e)}}}function Rs(r){let e,l,t,o,s,n,u,a,m,p=ge(r[5].actualTime,r[2],{relative:r[3]})+"",v,h;return t=new Nl({props:{status:r[8].status}}),n=new ze({props:{newTab:!0,href:Il({workflow:r[5].startWorkflowResult.workflowId,run:r[5].startWorkflowResult.runId,namespace:r[1]}),$$slots:{default:[Ss]},$$scope:{ctx:r}}}),{c(){e=k("div"),l=k("div"),U(t.$$.fragment),o=W(),s=k("div"),U(n.$$.fragment),u=W(),a=k("div"),m=k("p"),v=D(p),this.h()},l(i){e=w(i,"DIV",{class:!0});var c=b(e);l=w(c,"DIV",{class:!0});var $=b(l);O(t.$$.fragment,$),$.forEach(f),o=A(c),s=w(c,"DIV",{class:!0});var R=b(s);O(n.$$.fragment,R),R.forEach(f),u=A(c),a=w(c,"DIV",{class:!0});var M=b(a);m=w(M,"P",{});var j=b(m);v=P(j,p),j.forEach(f),M.forEach(f),c.forEach(f),this.h()},h(){V(l,"class","w-28"),V(s,"class","mx-2 w-auto break-words"),V(a,"class","ml-auto"),V(e,"class","row svelte-lqpjgu")},m(i,c){g(i,e,c),d(e,l),z(t,l,null),d(e,o),d(e,s),z(n,s,null),d(e,u),d(e,a),d(a,m),d(m,v),h=!0},p(i,c){const $={};c&3&&($.status=i[8].status),t.$set($);const R={};c&3&&(R.href=Il({workflow:i[5].startWorkflowResult.workflowId,run:i[5].startWorkflowResult.runId,namespace:i[1]})),c&513&&(R.$$scope={dirty:c,ctx:i}),n.$set(R),(!h||c&13)&&p!==(p=ge(i[5].actualTime,i[2],{relative:i[3]})+"")&&J(v,p)},i(i){h||(H(t.$$.fragment,i),H(n.$$.fragment,i),h=!0)},o(i){C(t.$$.fragment,i),C(n.$$.fragment,i),h=!1},d(i){i&&f(e),G(t),G(n)}}}function Ss(r){let e=r[5].startWorkflowResult.workflowId+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p(t,o){o&1&&e!==(e=t[5].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&f(l)}}}function Vs(r){return{c:Z,l:Z,m:Z,p:Z,i:Z,o:Z,d:Z}}function Vl(r,e){let l,t,o,s,n={ctx:e,current:null,token:null,hasCatch:!0,pending:Vs,then:Rs,catch:Ps,value:8,blocks:[,,,]};return Oe(o=El({namespace:e[1],workflowId:Xe(e[5].startWorkflowResult.workflowId),runId:e[5].startWorkflowResult.runId},fetch),n),{key:r,first:null,c(){l=ie(),t=ie(),n.block.c(),this.h()},l(u){l=ie(),t=ie(),n.block.l(u),this.h()},h(){this.first=l},m(u,a){g(u,l,a),g(u,t,a),n.block.m(u,n.anchor=a),n.mount=()=>t.parentNode,n.anchor=t,s=!0},p(u,a){e=u,n.ctx=e,a&3&&o!==(o=El({namespace:e[1],workflowId:Xe(e[5].startWorkflowResult.workflowId),runId:e[5].startWorkflowResult.runId},fetch))&&Oe(o,n)||Ml(n,e,a)},i(u){s||(H(n.block),s=!0)},o(u){for(let a=0;a<3;a+=1){const m=n.blocks[a];C(m)}s=!1},d(u){u&&f(l),u&&f(t),n.block.d(u),n.token=null,n=null}}}function Wl(r){let e,l;return e=new os({props:{title:_("schedules","recent-runs-empty-state-title")}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p:Z,i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Ws(r){let e,l=_("schedules","recent-runs")+"",t,o,s=[],n=new Map,u,a,m,p=r[4](r[0]);const v=i=>{var c,$;return($=(c=i[5])==null?void 0:c.startWorkflowResult)==null?void 0:$.workflowId};for(let i=0;i{h=null}),Ue()):h?(h.p(i,c),c&1&&H(h,1)):(h=Wl(),h.c(),H(h,1),h.m(a.parentNode,a))},i(i){if(!m){for(let c=0;cl(2,t=a)),ve(r,ye,a=>l(3,o=a));let{recentRuns:s=[]}=e,{namespace:n}=e;const u=a=>{var m,p;return(p=(m=a==null?void 0:a.sort((v,h)=>new Date(h.actualTime).getTime()-new Date(v.actualTime).getTime()))===null||m===void 0?void 0:m.slice(0,5))!==null&&p!==void 0?p:[]};return r.$$set=a=>{"recentRuns"in a&&l(0,s=a.recentRuns),"namespace"in a&&l(1,n=a.namespace)},[s,n,t,o,u]}class Hs extends Ie{constructor(e){super(),Te(this,e,qs,As,De,{recentRuns:0,namespace:1})}}function Al(r,e,l){const t=r.slice();return t[3]=e[l],t}function ql(r){let e,l,t=ge(r[3],r[1],{relative:r[2],relativeLabel:_("from-now")})+"",o,s;return{c(){e=k("div"),l=k("p"),o=D(t),s=W(),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);l=w(u,"P",{});var a=b(l);o=P(a,t),a.forEach(f),s=A(u),u.forEach(f),this.h()},h(){V(e,"class","row svelte-kbuuws")},m(n,u){g(n,e,u),d(e,l),d(l,o),d(e,s)},p(n,u){u&7&&t!==(t=ge(n[3],n[1],{relative:n[2],relativeLabel:_("from-now")})+"")&&J(o,t)},d(n){n&&f(e)}}}function Cs(r){let e,l=_("schedules","upcoming-runs")+"",t,o,s,n=r[0].slice(0,5),u=[];for(let a=0;al(1,t=n)),ve(r,ye,n=>l(2,o=n));let{futureRuns:s=[]}=e;return r.$$set=n=>{"futureRuns"in n&&l(0,s=n.futureRuns)},[s,t,o]}class Ns extends Ie{constructor(e){super(),Te(this,e,Fs,Ms,De,{futureRuns:0})}}function js(r){var i;let e,l,t,o,s,n,u,a,m,p,v,h;return t=new ze({props:{icon:"chevron-left",$$slots:{default:[Ls]},$$scope:{ctx:r}}}),t.$on("click",r[25]),v=new Ll({props:{error:(i=r[7])==null?void 0:i.message}}),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),n=D(r[9]),u=W(),a=k("p"),m=D(r[8]),p=W(),U(v.$$.fragment),this.h()},l(c){e=w(c,"HEADER",{class:!0});var $=b(e);l=w($,"DIV",{class:!0});var R=b(l);O(t.$$.fragment,R),o=A(R),s=w(R,"H1",{class:!0,"data-testid":!0});var M=b(s);n=P(M,r[9]),M.forEach(f),u=A(R),a=w(R,"P",{class:!0});var j=b(a);m=P(j,r[8]),j.forEach(f),R.forEach(f),$.forEach(f),p=A(c),O(v.$$.fragment,c),this.h()},h(){V(s,"class","mt-8 select-all text-2xl font-medium"),V(s,"data-testid","schedule-name"),V(a,"class","text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8")},m(c,$){g(c,e,$),d(e,l),z(t,l,null),d(l,o),d(l,s),d(s,n),d(l,u),d(l,a),d(a,m),g(c,p,$),z(v,c,$),h=!0},p(c,$){var j;const R={};$&1073741824&&(R.$$scope={dirty:$,ctx:c}),t.$set(R);const M={};$&1&&(M.error=(j=c[7])==null?void 0:j.message),v.$set(M)},i(c){h||(H(t.$$.fragment,c),H(v.$$.fragment,c),h=!0)},o(c){C(t.$$.fragment,c),C(v.$$.fragment,c),h=!1},d(c){c&&f(e),G(t),c&&f(p),G(v,c)}}}function Ls(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Us(r){let e,l,t,o;const s=[zs,Os],n=[];function u(a,m){return a[4]?0:1}return e=u(r),l=n[e]=s[e](r),{c(){l.c(),t=ie()},l(a){l.l(a),t=ie()},m(a,m){n[e].m(a,m),g(a,t,m),o=!0},p(a,m){let p=e;e=u(a),e===p?n[e].p(a,m):(Le(),C(n[p],1,1,()=>{n[p]=null}),Ue(),l=n[e],l?l.p(a,m):(l=n[e]=s[e](a),l.c()),H(l,1),l.m(t.parentNode,t))},i(a){o||(H(l),o=!0)},o(a){C(l),o=!1},d(a){n[e].d(a),a&&f(t)}}}function Os(r){var et,tt,lt,st,rt,nt,at,ot,ut,ft,it,ct,dt,mt,pt,_t,ht,$t,vt,gt,kt,wt,bt,Et,It,Tt,Dt,Pt,Rt,St,Vt,Wt,At,qt,Ht,Ct,Mt;let e,l,t,o,s,n,u,a,m,p,v,h,i,c,$,R,M,j=((rt=(st=(lt=(tt=(et=r[29])==null?void 0:et.schedule)==null?void 0:tt.action)==null?void 0:lt.startWorkflow)==null?void 0:st.workflowType)==null?void 0:rt.name)+"",le,K,fe,ae,B=_("created",{created:ge((at=(nt=r[29])==null?void 0:nt.info)==null?void 0:at.createTime,r[5],{relative:r[6]})})+"",re,oe,X,F,pe,Y,ue,se,E,x,S,N,ce,ee,de,_e,I,L,te,$e,he,y,We,Ae,ke;t=new ze({props:{icon:"chevron-left",$$slots:{default:[Gs]},$$scope:{ctx:r}}}),t.$on("click",r[17]),n=new Nl({props:{status:(ot=r[29])!=null&&ot.schedule.state.paused?"Paused":"Running"}});let ne=((ft=(ut=r[29])==null?void 0:ut.info)==null?void 0:ft.updateTime)&&Hl(r);F=new fs({props:{position:"right",label:(dt=(ct=(it=r[29])==null?void 0:it.schedule)==null?void 0:ct.state)!=null&&dt.paused?_("schedules","unpause"):_("schedules","pause"),menuLabel:_("schedules","schedule-actions"),id:"schedule-actions",disabled:r[11],$$slots:{default:[Qs]},$$scope:{ctx:r}}}),F.$on("click",r[19]);let Q=((pt=(mt=r[29])==null?void 0:mt.info)==null?void 0:pt.invalidScheduleError)&&Cl(r);x=new Hs({props:{namespace:r[8],recentRuns:(ht=(_t=r[29])==null?void 0:_t.info)==null?void 0:ht.recentActions}}),N=new Ns({props:{futureRuns:(vt=($t=r[29])==null?void 0:$t.info)==null?void 0:vt.futureActionTimes}}),ee=new $s({props:{spec:(kt=(gt=r[29])==null?void 0:gt.schedule)==null?void 0:kt.spec,state:(bt=(wt=r[29])==null?void 0:wt.schedule)==null?void 0:bt.state,policies:(It=(Et=r[29])==null?void 0:Et.schedule)==null?void 0:It.policies,notes:(Pt=(Dt=(Tt=r[29])==null?void 0:Tt.schedule)==null?void 0:Dt.state)==null?void 0:Pt.notes}}),I=new Ds({props:{calendar:(Wt=(Vt=(St=(Rt=r[29])==null?void 0:Rt.schedule)==null?void 0:St.spec)==null?void 0:Vt.structuredCalendar)==null?void 0:Wt[0],interval:(Ct=(Ht=(qt=(At=r[29])==null?void 0:At.schedule)==null?void 0:qt.spec)==null?void 0:Ht.interval)==null?void 0:Ct[0]}});function Ul(T){r[21](T)}function Ol(){return r[22](r[29])}let xe={id:"pause-schedule-modal",confirmType:"primary",confirmText:(Mt=r[29])!=null&&Mt.schedule.state.paused?_("schedules","unpause"):_("schedules","pause"),cancelText:_("cancel"),confirmDisabled:!r[3],$$slots:{content:[Bs],title:[Zs]},$$scope:{ctx:r}};r[1]!==void 0&&(xe.open=r[1]),te=new Dl({props:xe}),Qe.push(()=>Ze(te,"open",Ul)),te.$on("confirmModal",Ol),te.$on("cancelModal",r[14]);function zl(T){r[23](T)}function Gl(T){r[24](T)}let Je={id:"delete-schedule-modal",confirmType:"destructive",confirmText:_("delete"),cancelText:_("cancel"),$$slots:{content:[Ys],title:[Xs]},$$scope:{ctx:r}};return r[2]!==void 0&&(Je.open=r[2]),r[7]!==void 0&&(Je.error=r[7]),y=new Dl({props:Je}),Qe.push(()=>Ze(y,"open",zl)),Qe.push(()=>Ze(y,"error",Gl)),y.$on("confirmModal",r[12]),y.$on("cancelModal",r[14]),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),U(n.$$.fragment),u=W(),a=k("span"),m=D(r[9]),p=W(),v=k("div"),h=k("p"),i=D(r[8]),c=W(),$=k("div"),R=W(),M=k("p"),le=D(j),K=W(),fe=k("div"),ae=k("p"),re=D(B),oe=W(),ne&&ne.c(),X=W(),U(F.$$.fragment),pe=W(),Y=k("div"),Q&&Q.c(),ue=W(),se=k("div"),E=k("div"),U(x.$$.fragment),S=W(),U(N.$$.fragment),ce=W(),U(ee.$$.fragment),de=W(),_e=k("div"),U(I.$$.fragment),L=W(),U(te.$$.fragment),he=W(),U(y.$$.fragment),this.h()},l(T){e=w(T,"HEADER",{class:!0});var q=b(e);l=w(q,"DIV",{class:!0});var me=b(l);O(t.$$.fragment,me),o=A(me),s=w(me,"H1",{class:!0});var Se=b(s);O(n.$$.fragment,Se),u=A(Se),a=w(Se,"SPAN",{class:!0,"data-testid":!0});var qe=b(a);m=P(qe,r[9]),qe.forEach(f),Se.forEach(f),p=A(me),v=w(me,"DIV",{class:!0});var we=b(v);h=w(we,"P",{});var Ce=b(h);i=P(Ce,r[8]),Ce.forEach(f),c=A(we),$=w(we,"DIV",{class:!0}),b($).forEach(f),R=A(we),M=w(we,"P",{});var Pe=b(M);le=P(Pe,j),Pe.forEach(f),we.forEach(f),K=A(me),fe=w(me,"DIV",{class:!0});var He=b(fe);ae=w(He,"P",{});var Re=b(ae);re=P(Re,B),Re.forEach(f),He.forEach(f),oe=A(me),ne&&ne.l(me),me.forEach(f),X=A(q),O(F.$$.fragment,q),q.forEach(f),pe=A(T),Y=w(T,"DIV",{class:!0});var be=b(Y);Q&&Q.l(be),ue=A(be),se=w(be,"DIV",{class:!0});var Ve=b(se);E=w(Ve,"DIV",{class:!0});var Ee=b(E);O(x.$$.fragment,Ee),S=A(Ee),O(N.$$.fragment,Ee),ce=A(Ee),O(ee.$$.fragment,Ee),Ee.forEach(f),de=A(Ve),_e=w(Ve,"DIV",{class:!0});var Me=b(_e);O(I.$$.fragment,Me),Me.forEach(f),Ve.forEach(f),be.forEach(f),L=A(T),O(te.$$.fragment,T),he=A(T),O(y.$$.fragment,T),this.h()},h(){V(a,"class","select-all font-medium"),V(a,"data-testid","schedule-name"),V(s,"class","relative mt-8 flex items-center gap-4 text-2xl"),V($,"class","h-1 w-1 rounded-full bg-gray-900"),V(v,"class","flex items-center gap-2 text-sm"),V(fe,"class","flex items-center gap-2 text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8 flex flex-row justify-between gap-4"),V(E,"class","flex w-full flex-col items-start gap-4 xl:w-2/3"),V(_e,"class","w-full xl:w-1/3"),V(se,"class","flex flex-col gap-4 xl:flex-row"),V(Y,"class","flex flex-col gap-4 pb-24")},m(T,q){g(T,e,q),d(e,l),z(t,l,null),d(l,o),d(l,s),z(n,s,null),d(s,u),d(s,a),d(a,m),d(l,p),d(l,v),d(v,h),d(h,i),d(v,c),d(v,$),d(v,R),d(v,M),d(M,le),d(l,K),d(l,fe),d(fe,ae),d(ae,re),d(l,oe),ne&&ne.m(l,null),d(e,X),z(F,e,null),g(T,pe,q),g(T,Y,q),Q&&Q.m(Y,null),d(Y,ue),d(Y,se),d(se,E),z(x,E,null),d(E,S),z(N,E,null),d(E,ce),z(ee,E,null),d(se,de),d(se,_e),z(I,_e,null),g(T,L,q),z(te,T,q),g(T,he,q),z(y,T,q),ke=!0},p(T,q){var Ve,Ee,Me,Ft,Nt,jt,Lt,Ut,Ot,zt,Gt,Jt,Kt,Qt,Zt,Bt,Xt,Yt,yt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,fl,il,cl,dl,ml,pl,_l,hl;r=T;const me={};q&1073741824&&(me.$$scope={dirty:q,ctx:r}),t.$set(me);const Se={};q&1&&(Se.status=(Ve=r[29])!=null&&Ve.schedule.state.paused?"Paused":"Running"),n.$set(Se),(!ke||q&1)&&j!==(j=((jt=(Nt=(Ft=(Me=(Ee=r[29])==null?void 0:Ee.schedule)==null?void 0:Me.action)==null?void 0:Ft.startWorkflow)==null?void 0:Nt.workflowType)==null?void 0:jt.name)+"")&&J(le,j),(!ke||q&97)&&B!==(B=_("created",{created:ge((Ut=(Lt=r[29])==null?void 0:Lt.info)==null?void 0:Ut.createTime,r[5],{relative:r[6]})})+"")&&J(re,B),(zt=(Ot=r[29])==null?void 0:Ot.info)!=null&&zt.updateTime?ne?ne.p(r,q):(ne=Hl(r),ne.c(),ne.m(l,null)):ne&&(ne.d(1),ne=null);const qe={};q&1&&(qe.label=(Kt=(Jt=(Gt=r[29])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?_("schedules","unpause"):_("schedules","pause")),q&1073741828&&(qe.$$scope={dirty:q,ctx:r}),F.$set(qe),(Zt=(Qt=r[29])==null?void 0:Qt.info)!=null&&Zt.invalidScheduleError?Q?(Q.p(r,q),q&1&&H(Q,1)):(Q=Cl(r),Q.c(),H(Q,1),Q.m(Y,ue)):Q&&(Le(),C(Q,1,1,()=>{Q=null}),Ue());const we={};q&1&&(we.recentRuns=(Xt=(Bt=r[29])==null?void 0:Bt.info)==null?void 0:Xt.recentActions),x.$set(we);const Ce={};q&1&&(Ce.futureRuns=(yt=(Yt=r[29])==null?void 0:Yt.info)==null?void 0:yt.futureActionTimes),N.$set(Ce);const Pe={};q&1&&(Pe.spec=(el=(xt=r[29])==null?void 0:xt.schedule)==null?void 0:el.spec),q&1&&(Pe.state=(ll=(tl=r[29])==null?void 0:tl.schedule)==null?void 0:ll.state),q&1&&(Pe.policies=(rl=(sl=r[29])==null?void 0:sl.schedule)==null?void 0:rl.policies),q&1&&(Pe.notes=(ol=(al=(nl=r[29])==null?void 0:nl.schedule)==null?void 0:al.state)==null?void 0:ol.notes),ee.$set(Pe);const He={};q&1&&(He.calendar=(cl=(il=(fl=(ul=r[29])==null?void 0:ul.schedule)==null?void 0:fl.spec)==null?void 0:il.structuredCalendar)==null?void 0:cl[0]),q&1&&(He.interval=(_l=(pl=(ml=(dl=r[29])==null?void 0:dl.schedule)==null?void 0:ml.spec)==null?void 0:pl.interval)==null?void 0:_l[0]),I.$set(He);const Re={};q&1&&(Re.confirmText=(hl=r[29])!=null&&hl.schedule.state.paused?_("schedules","unpause"):_("schedules","pause")),q&8&&(Re.confirmDisabled=!r[3]),q&1073741833&&(Re.$$scope={dirty:q,ctx:r}),!$e&&q&2&&($e=!0,Re.open=r[1],Be(()=>$e=!1)),te.$set(Re);const be={};q&1073741824&&(be.$$scope={dirty:q,ctx:r}),!We&&q&4&&(We=!0,be.open=r[2],Be(()=>We=!1)),!Ae&&q&128&&(Ae=!0,be.error=r[7],Be(()=>Ae=!1)),y.$set(be)},i(T){ke||(H(t.$$.fragment,T),H(n.$$.fragment,T),H(F.$$.fragment,T),H(Q),H(x.$$.fragment,T),H(N.$$.fragment,T),H(ee.$$.fragment,T),H(I.$$.fragment,T),H(te.$$.fragment,T),H(y.$$.fragment,T),ke=!0)},o(T){C(t.$$.fragment,T),C(n.$$.fragment,T),C(F.$$.fragment,T),C(Q),C(x.$$.fragment,T),C(N.$$.fragment,T),C(ee.$$.fragment,T),C(I.$$.fragment,T),C(te.$$.fragment,T),C(y.$$.fragment,T),ke=!1},d(T){T&&f(e),G(t),G(n),ne&&ne.d(),G(F),T&&f(pe),T&&f(Y),Q&&Q.d(),G(x),G(N),G(ee),G(I),T&&f(L),G(te,T),T&&f(he),G(y,T)}}}function zs(r){let e,l;return e=new jl({props:{title:_("schedules","deleting"),class:"my-2"}}),{c(){U(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,o){z(e,t,o),l=!0},p:Z,i(t){l||(H(e.$$.fragment,t),l=!0)},o(t){C(e.$$.fragment,t),l=!1},d(t){G(e,t)}}}function Gs(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Hl(r){var s,n;let e,l,t=_("last-updated",{updated:ge((n=(s=r[29])==null?void 0:s.info)==null?void 0:n.updateTime,r[5],{relative:r[6]})})+"",o;return{c(){e=k("div"),l=k("p"),o=D(t),this.h()},l(u){e=w(u,"DIV",{class:!0});var a=b(e);l=w(a,"P",{});var m=b(l);o=P(m,t),m.forEach(f),a.forEach(f),this.h()},h(){V(e,"class","flex items-center gap-2 text-sm")},m(u,a){g(u,e,a),d(e,l),d(l,o)},p(u,a){var m,p;a&97&&t!==(t=_("last-updated",{updated:ge((p=(m=u[29])==null?void 0:m.info)==null?void 0:p.updateTime,u[5],{relative:u[6]})})+"")&&J(o,t)},d(u){u&&f(e)}}}function Js(r){let e=_("edit")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Ks(r){let e=_("delete")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function Qs(r){let e,l,t,o;return e=new Tl({props:{"data-testid":"edit-schedule",href:us({namespace:r[8],scheduleId:r[9]}),$$slots:{default:[Js]},$$scope:{ctx:r}}}),t=new Tl({props:{"data-testid":"delete-schedule",destructive:!0,$$slots:{default:[Ks]},$$scope:{ctx:r}}}),t.$on("click",r[18]),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,n){const u={};n&1073741824&&(u.$$scope={dirty:n,ctx:s}),e.$set(u);const a={};n&1073741824&&(a.$$scope={dirty:n,ctx:s}),t.$set(a)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function Cl(r){var o,s;let e,l,t;return l=new Ll({props:{error:(s=(o=r[29])==null?void 0:o.info)==null?void 0:s.invalidScheduleError}}),{c(){e=k("div"),U(l.$$.fragment),this.h()},l(n){e=w(n,"DIV",{class:!0});var u=b(e);O(l.$$.fragment,u),u.forEach(f),this.h()},h(){V(e,"class","w-full xl:w-1/2")},m(n,u){g(n,e,u),z(l,e,null),t=!0},p(n,u){var m,p;const a={};u&1&&(a.error=(p=(m=n[29])==null?void 0:m.info)==null?void 0:p.invalidScheduleError),l.$set(a)},i(n){t||(H(l.$$.fragment,n),t=!0)},o(n){C(l.$$.fragment,n),t=!1},d(n){n&&f(e),G(l)}}}function Zs(r){var o;let e,l=((o=r[29])!=null&&o.schedule.state.paused?_("schedules","unpause-modal-title"):_("schedules","pause-modal-title"))+"",t;return{c(){e=k("h3"),t=D(l),this.h()},l(s){e=w(s,"H3",{slot:!0});var n=b(e);t=P(n,l),n.forEach(f),this.h()},h(){V(e,"slot","title")},m(s,n){g(s,e,n),d(e,t)},p(s,n){var u;n&1&&l!==(l=((u=s[29])!=null&&u.schedule.state.paused?_("schedules","unpause-modal-title"):_("schedules","pause-modal-title"))+"")&&J(t,l)},d(s){s&&f(e)}}}function Bs(r){var i,c;let e,l,t=((i=r[29])!=null&&i.schedule.state.paused?_("schedules","unpause-modal-confirmation",{schedule:r[9]}):_("schedules","pause-modal-confirmation",{schedule:r[9]}))+"",o,s,n,u=((c=r[29])!=null&&c.schedule.state.paused?_("schedules","unpause-reason"):_("schedules","pause-reason"))+"",a,m,p,v,h;return{c(){e=k("div"),l=k("p"),o=D(t),s=W(),n=k("p"),a=D(u),m=W(),p=k("input"),this.h()},l($){e=w($,"DIV",{slot:!0});var R=b(e);l=w(R,"P",{});var M=b(l);o=P(M,t),M.forEach(f),s=A(R),n=w(R,"P",{class:!0});var j=b(n);a=P(j,u),j.forEach(f),m=A(R),p=w(R,"INPUT",{class:!0,placeholder:!0}),R.forEach(f),this.h()},h(){V(n,"class","my-4"),V(p,"class","mt-4 block w-full rounded-md border border-gray-200 p-2"),V(p,"placeholder",_("reason")),V(e,"slot","content")},m($,R){g($,e,R),d(e,l),d(l,o),d(e,s),d(e,n),d(n,a),d(e,m),d(e,p),kl(p,r[3]),v||(h=[wl(p,"input",r[20]),wl(p,"keydown",xl(r[15]))],v=!0)},p($,R){var M,j;R&1&&t!==(t=((M=$[29])!=null&&M.schedule.state.paused?_("schedules","unpause-modal-confirmation",{schedule:$[9]}):_("schedules","pause-modal-confirmation",{schedule:$[9]}))+"")&&J(o,t),R&1&&u!==(u=((j=$[29])!=null&&j.schedule.state.paused?_("schedules","unpause-reason"):_("schedules","pause-reason"))+"")&&J(a,u),R&8&&p.value!==$[3]&&kl(p,$[3])},d($){$&&f(e),v=!1,es(h)}}}function Xs(r){let e,l=_("schedules","delete-modal-title")+"",t;return{c(){e=k("h3"),t=D(l),this.h()},l(o){e=w(o,"H3",{slot:!0});var s=b(e);t=P(s,l),s.forEach(f),this.h()},h(){V(e,"slot","title")},m(o,s){g(o,e,s),d(e,t)},p:Z,d(o){o&&f(e)}}}function Ys(r){let e,l,t=_("schedules","delete-modal-confirmation",{schedule:r[9]})+"",o;return{c(){e=k("div"),l=k("p"),o=D(t),this.h()},l(s){e=w(s,"DIV",{slot:!0});var n=b(e);l=w(n,"P",{});var u=b(l);o=P(u,t),u.forEach(f),n.forEach(f),this.h()},h(){V(e,"slot","content")},m(s,n){g(s,e,n),d(e,l),d(l,o)},p:Z,d(s){s&&f(e)}}}function ys(r){let e,l,t,o,s,n,u,a,m,p,v,h;return t=new ze({props:{icon:"chevron-left",$$slots:{default:[xs]},$$scope:{ctx:r}}}),t.$on("click",r[16]),v=new jl({}),{c(){e=k("header"),l=k("div"),U(t.$$.fragment),o=W(),s=k("h1"),n=D(r[9]),u=W(),a=k("p"),m=D(r[8]),p=W(),U(v.$$.fragment),this.h()},l(i){e=w(i,"HEADER",{class:!0});var c=b(e);l=w(c,"DIV",{class:!0});var $=b(l);O(t.$$.fragment,$),o=A($),s=w($,"H1",{class:!0,"data-testid":!0});var R=b(s);n=P(R,r[9]),R.forEach(f),u=A($),a=w($,"P",{class:!0});var M=b(a);m=P(M,r[8]),M.forEach(f),$.forEach(f),c.forEach(f),p=A(i),O(v.$$.fragment,i),this.h()},h(){V(s,"class","mt-8 select-all text-2xl font-medium"),V(s,"data-testid","schedule-name"),V(a,"class","text-sm"),V(l,"class","relative flex flex-col gap-1"),V(e,"class","mb-8")},m(i,c){g(i,e,c),d(e,l),z(t,l,null),d(l,o),d(l,s),d(s,n),d(l,u),d(l,a),d(a,m),g(i,p,c),z(v,i,c),h=!0},p(i,c){const $={};c&1073741824&&($.$$scope={dirty:c,ctx:i}),t.$set($)},i(i){h||(H(t.$$.fragment,i),H(v.$$.fragment,i),h=!0)},o(i){C(t.$$.fragment,i),C(v.$$.fragment,i),h=!1},d(i){i&&f(e),G(t),i&&f(p),G(v,i)}}}function xs(r){let e=_("schedules","back-to-schedules")+"",l;return{c(){l=D(e)},l(t){l=P(t,e)},m(t,o){g(t,l,o)},p:Z,d(t){t&&f(l)}}}function er(r){let e,l,t,o={ctx:r,current:null,token:null,hasCatch:!0,pending:ys,then:Us,catch:js,value:29,error:7,blocks:[,,,]};return Oe(l=r[0],o),{c(){e=ie(),o.block.c()},l(s){e=ie(),o.block.l(s)},m(s,n){g(s,e,n),o.block.m(s,o.anchor=n),o.mount=()=>e.parentNode,o.anchor=e,t=!0},p(s,[n]){r=s,o.ctx=r,n&1&&l!==(l=r[0])&&Oe(l,o)||Ml(o,r,n)},i(s){t||(H(o.block),t=!0)},o(s){for(let n=0;n<3;n+=1){const u=o.blocks[n];C(u)}t=!1},d(s){s&&f(e),o.block.d(s),o.token=null,o=null}}}function tr(r,e,l){let t,o,s,n,u;ve(r,je,E=>l(4,t=E)),ve(r,Fl,E=>l(27,s=E)),ve(r,Ye,E=>l(5,n=E)),ve(r,ye,E=>l(6,u=E));let a=s.params.namespace,m=s.params.schedule;const p={namespace:a,scheduleId:Xe(m)};let v=bl(p),h=!1,i=!1,c="",$="",R=is();ve(r,R,E=>l(26,o=E));let M=o.namespaceWriteDisabled(a);const j=async()=>{l(7,$="");try{Ke(je,t=!0,t),await rs({namespace:a,scheduleId:m}),l(2,i=!1),setTimeout(()=>{Ke(je,t=!1,t),Fe(Ne({namespace:a}))},2e3),l(3,c="")}catch(E){l(7,$=_("schedules","delete-schedule-error",{error:E==null?void 0:E.message})),Ke(je,t=!1,t)}},le=async E=>{var x,S;!((S=(x=E==null?void 0:E.schedule)===null||x===void 0?void 0:x.state)===null||S===void 0)&&S.paused?await ns({namespace:a,scheduleId:m,reason:c}):await as({namespace:a,scheduleId:m,reason:c}),l(0,v=bl(p,fetch)),l(3,c=""),l(1,h=!1)},K=()=>{l(3,c="")};function fe(E){yl.call(this,r,E)}const ae=()=>{Fe(Ne({namespace:a}))},B=()=>{Fe(Ne({namespace:a}))},re=()=>l(2,i=!0),oe=()=>l(1,h=!0);function X(){c=this.value,l(3,c)}function F(E){h=E,l(1,h)}const pe=E=>le(E);function Y(E){i=E,l(2,i)}function ue(E){$=E,l(7,$)}return[v,h,i,c,t,n,u,$,a,m,R,M,j,le,K,fe,ae,B,re,oe,X,F,pe,Y,ue,()=>{Fe(Ne({namespace:a}))}]}class lr extends Ie{constructor(e){super(),Te(this,e,tr,er,De,{})}}function sr(r){let e,l,t,o;return e=new ts({props:{title:`Schedule | ${r[1]}`,url:r[0].url.href}}),t=new lr({}),{c(){U(e.$$.fragment),l=W(),U(t.$$.fragment)},l(s){O(e.$$.fragment,s),l=A(s),O(t.$$.fragment,s)},m(s,n){z(e,s,n),g(s,l,n),z(t,s,n),o=!0},p(s,[n]){const u={};n&1&&(u.url=s[0].url.href),e.$set(u)},i(s){o||(H(e.$$.fragment,s),H(t.$$.fragment,s),o=!0)},o(s){C(e.$$.fragment,s),C(t.$$.fragment,s),o=!1},d(s){G(e,s),s&&f(l),G(t,s)}}}function rr(r,e,l){let t;ve(r,Fl,s=>l(0,t=s));const o=t.params.schedule;return[t,o]}class Ir extends Ie{constructor(e){super(),Te(this,e,rr,sr,De,{})}}export{Ir as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js similarity index 88% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js index 653569b133..b146e53fc8 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js @@ -1 +1 @@ -import{S as $,b as g,a as d,C as m,D as p,E as f,n as E,j as i,g as u,F as l,K as _,c as F,d as I,f as K,k as M}from"../chunks/index.6779d4e2.js";import{p as h}from"../chunks/stores.6ee4c480.js";import{P as Q}from"../chunks/page-title.990af218.js";import{S as T}from"../chunks/schedule-form-view.e87776d2.js";import{a as W}from"../chunks/schedules.72d75a40.js";function z(a){let t,n;return t=new T({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,s){f(t,e,s),n=!0},p:E,i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function A(a,t,n){let e;_(a,h,o=>n(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:C,taskQueue:y,hour:k,minute:b,second:v,phase:P,cronString:x,daysOfWeek:O,daysOfMonth:j,days:q,months:D}=c;W({action:{namespace:s,name:w,workflowType:S,workflowId:C,taskQueue:y},spec:{hour:k,minute:b,second:v,phase:P,cronString:x},presets:{preset:o,daysOfWeek:O,daysOfMonth:j,months:D,days:q}})}]}class B extends ${constructor(t){super(),g(this,t,A,z,d,{})}}function G(a){let t,n,e,s;return t=new Q({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new B({}),{c(){m(t.$$.fragment),n=F(),m(e.$$.fragment)},l(r){p(t.$$.fragment,r),n=I(r),p(e.$$.fragment,r)},m(r,o){f(t,r,o),K(r,n,o),f(e,r,o),s=!0},p(r,[o]){const c={};o&1&&(c.url=r[0].url.href),t.$set(c)},i(r){s||(i(t.$$.fragment,r),i(e.$$.fragment,r),s=!0)},o(r){u(t.$$.fragment,r),u(e.$$.fragment,r),s=!1},d(r){l(t,r),r&&M(n),l(e,r)}}}function H(a,t,n){let e;_(a,h,r=>n(0,e=r));const s=e.params.namespace;return[e,s]}class Z extends ${constructor(t){super(),g(this,t,H,G,d,{})}}export{Z as default}; +import{S as $,b as g,a as d,C as m,D as p,E as f,n as E,j as i,g as u,F as l,K as _,c as F,d as I,f as K,k as M}from"../chunks/index.6779d4e2.js";import{p as h}from"../chunks/stores.b96d31b2.js";import{P as Q}from"../chunks/page-title.990af218.js";import{S as T}from"../chunks/schedule-form-view.0bfcac0a.js";import{a as W}from"../chunks/schedules.4bb8639b.js";function z(a){let t,n;return t=new T({props:{onConfirm:a[0]}}),{c(){m(t.$$.fragment)},l(e){p(t.$$.fragment,e)},m(e,s){f(t,e,s),n=!0},p:E,i(e){n||(i(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){l(t,e)}}}function A(a,t,n){let e;_(a,h,o=>n(1,e=o));let{namespace:s}=e.params;return[(o,c)=>{const{name:w,workflowType:S,workflowId:C,taskQueue:y,hour:k,minute:b,second:v,phase:P,cronString:x,daysOfWeek:O,daysOfMonth:j,days:q,months:D}=c;W({action:{namespace:s,name:w,workflowType:S,workflowId:C,taskQueue:y},spec:{hour:k,minute:b,second:v,phase:P,cronString:x},presets:{preset:o,daysOfWeek:O,daysOfMonth:j,months:D,days:q}})}]}class B extends ${constructor(t){super(),g(this,t,A,z,d,{})}}function G(a){let t,n,e,s;return t=new Q({props:{title:`Create Schedule | ${a[1]}`,url:a[0].url.href}}),e=new B({}),{c(){m(t.$$.fragment),n=F(),m(e.$$.fragment)},l(r){p(t.$$.fragment,r),n=I(r),p(e.$$.fragment,r)},m(r,o){f(t,r,o),K(r,n,o),f(e,r,o),s=!0},p(r,[o]){const c={};o&1&&(c.url=r[0].url.href),t.$set(c)},i(r){s||(i(t.$$.fragment,r),i(e.$$.fragment,r),s=!0)},o(r){u(t.$$.fragment,r),u(e.$$.fragment,r),s=!1},d(r){l(t,r),r&&M(n),l(e,r)}}}function H(a,t,n){let e;_(a,h,r=>n(0,e=r));const s=e.params.namespace;return[e,s]}class Z extends ${constructor(t){super(),g(this,t,H,G,d,{})}}export{Z as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js index 40239e88a0..a8534140ea 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js @@ -1 +1 @@ -import{S as fe,b as ue,a as ce,C as R,c as F,D as q,d as N,E as A,f as d,j as b,g as k,F as W,k as i,K as Z,m as B,w as j,p as P,q as C,x as U,u as L,L as V,y as re,z as M,h as Q,a7 as $e,n as G,G as je,H as Ue,I as ze,J as Ge,ar as Ie,e as O,as as Je,A as Ke,Z as Oe,_ as Ze,at as Me}from"../chunks/index.6779d4e2.js";import{p as pe}from"../chunks/stores.6ee4c480.js";import{P as Qe}from"../chunks/page-title.990af218.js";import{g as Xe}from"../chunks/navigation.a7086f0c.js";import{W as Ye}from"../chunks/workflow-status.fc3d74d1.js";import{L as ae}from"../chunks/link.8030aa06.js";import{T as me}from"../chunks/table-row.e455010e.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{t as ye,r as xe,b as ne}from"../chunks/format-date.79dd40f6.js";import{q as et,g as Se,s as oe}from"../chunks/route-for.cec09c4c.js";import{S as ie,f as tt}from"../chunks/schedule-service.80743cbe.js";import{T as lt,a as st}from"../chunks/table-header-row.5433617e.js";import{B as rt}from"../chunks/badge.d458ea0a.js";import{B as Ne}from"../chunks/button.0b50a4b4.js";import{E as Ve}from"../chunks/empty-state.c8d40bbf.js";import{I as at}from"../chunks/input.86f6e192.js";import{L as nt}from"../chunks/loading.a6f9064e.js";import{P as ot}from"../chunks/pagination.b9ceda84.js";import{c as ft}from"../chunks/core-user.1973d180.js";function Le(a,t,l){const e=a.slice();return e[14]=t[l],e}function Be(a,t,l){const e=a.slice();return e[14]=t[l],e}function ut(a){let t=a[0].scheduleId+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p(e,s){s&1&&t!==(t=e[0].scheduleId+"")&&re(l,t)},d(e){e&&i(l)}}}function ct(a){var e;let t=ne((e=a[14])==null?void 0:e.actualTime,a[2],{relative:a[3]})+"",l;return{c(){l=j(t)},l(s){l=U(s,t)},m(s,r){d(s,l,r)},p(s,r){var n;r&13&&t!==(t=ne((n=s[14])==null?void 0:n.actualTime,s[2],{relative:s[3]})+"")&&re(l,t)},d(s){s&&i(l)}}}function Pe(a){var r,n,f,u;let t,l,e,s;return l=new ae({props:{href:Se({namespace:a[4],workflow:(n=(r=a[14])==null?void 0:r.startWorkflowResult)==null?void 0:n.workflowId,run:(u=(f=a[14])==null?void 0:f.startWorkflowResult)==null?void 0:u.runId}),$$slots:{default:[ct]},$$scope:{ctx:a}}}),{c(){t=B("p"),R(l.$$.fragment),e=F()},l(o){t=P(o,"P",{});var c=C(t);q(l.$$.fragment,c),e=N(c),c.forEach(i)},m(o,c){d(o,t,c),A(l,t,null),V(t,e),s=!0},p(o,c){var T,g,D,_;const h={};c&1&&(h.href=Se({namespace:o[4],workflow:(g=(T=o[14])==null?void 0:T.startWorkflowResult)==null?void 0:g.workflowId,run:(_=(D=o[14])==null?void 0:D.startWorkflowResult)==null?void 0:_.runId})),c&524301&&(h.$$scope={dirty:c,ctx:o}),l.$set(h)},i(o){s||(b(l.$$.fragment,o),s=!0)},o(o){k(l.$$.fragment,o),s=!1},d(o){o&&i(t),W(l)}}}function Ce(a){let t,l=ne(a[14],a[2],{relative:a[3],relativeLabel:H("from-now")})+"",e,s;return{c(){t=B("div"),e=j(l),s=F()},l(r){t=P(r,"DIV",{});var n=C(t);e=U(n,l),s=N(n),n.forEach(i)},m(r,n){d(r,t,n),V(t,e),V(t,s)},p(r,n){n&13&&l!==(l=ne(r[14],r[2],{relative:r[3],relativeLabel:H("from-now")})+"")&&re(e,l)},d(r){r&&i(t)}}}function it(a){var v,z,X,Y,y,x,_e,de,he,ge;let t,l,e,s,r,n,f,u=(((X=(z=(v=a[0])==null?void 0:v.info)==null?void 0:z.workflowType)==null?void 0:X.name)??"")+"",o,c,h,T,g,D;l=new Ye({props:{status:(y=(Y=a[0])==null?void 0:Y.info)!=null&&y.paused?"Paused":"Running"}}),r=new ae({props:{class:"text-base",$$slots:{default:[ut]},$$scope:{ctx:a}}}),r.$on("click",a[8]);let _=a[7]((_e=(x=a[0])==null?void 0:x.info)==null?void 0:_e.recentActions),$=[];for(let m=0;m<_.length;m+=1)$[m]=Pe(Be(a,_,m));const p=m=>k($[m],1,1,()=>{$[m]=null});let w=((ge=(he=(de=a[0])==null?void 0:de.info)==null?void 0:he.futureActionTimes)==null?void 0:ge.slice(0,5))??[],E=[];for(let m=0;ml(12,s=p)),Z(a,ye,p=>l(2,r=p)),Z(a,xe,p=>l(3,n=p));var f,u,o;let{namespace:c}=s.params,{schedule:h}=t;const T=(f=h==null?void 0:h.info)===null||f===void 0?void 0:f.spec,g=(u=T==null?void 0:T.structuredCalendar)===null||u===void 0?void 0:u[0],D=(o=T==null?void 0:T.interval)===null||o===void 0?void 0:o[0],_=p=>{var w;return(w=p==null?void 0:p.sort((E,v)=>new Date(v.actualTime).getTime()-new Date(E.actualTime).getTime()).slice(0,5))!==null&&w!==void 0?w:[]},$=()=>{Xe(e)};return a.$$set=p=>{"schedule"in p&&l(0,h=p.schedule)},a.$$.update=()=>{a.$$.dirty&1&&l(1,e=et({namespace:c,scheduleId:h==null?void 0:h.scheduleId}))},[h,e,r,n,c,g,D,_,$]}class _t extends fe{constructor(t){super(),ue(this,t,pt,mt,ce,{schedule:0})}}function dt(a){let t;const l=a[0].default,e=je(l,a,a[1],null);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,r){e&&e.m(s,r),t=!0},p(s,r){e&&e.p&&(!t||r&2)&&Ue(e,l,s,s[1],t?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){t||(b(e,s),t=!0)},o(s){k(e,s),t=!1},d(s){e&&e.d(s)}}}function ht(a){let t,l=H("schedules")+"",e;return{c(){t=B("caption"),e=j(l),this.h()},l(s){t=P(s,"CAPTION",{class:!0,slot:!0});var r=C(t);e=U(r,l),r.forEach(i),this.h()},h(){L(t,"class","sr-only"),L(t,"slot","caption")},m(s,r){d(s,t,r),V(t,e)},p:G,d(s){s&&i(t)}}}function gt(a){let t,l=H("status")+"",e,s,r,n=H("schedules","name")+"",f,u,o,c=H("workflow-type")+"",h,T,g,D=H("schedules","recent-runs")+"",_,$,p,w=H("schedules","upcoming-runs")+"",E;return{c(){t=B("th"),e=j(l),s=F(),r=B("th"),f=j(n),u=F(),o=B("th"),h=j(c),T=F(),g=B("th"),_=j(D),$=F(),p=B("th"),E=j(w),this.h()},l(v){t=P(v,"TH",{class:!0});var z=C(t);e=U(z,l),z.forEach(i),s=N(v),r=P(v,"TH",{class:!0});var X=C(r);f=U(X,n),X.forEach(i),u=N(v),o=P(v,"TH",{class:!0});var Y=C(o);h=U(Y,c),Y.forEach(i),T=N(v),g=P(v,"TH",{class:!0});var y=C(g);_=U(y,D),y.forEach(i),$=N(v),p=P(v,"TH",{class:!0});var x=C(p);E=U(x,w),x.forEach(i),this.h()},h(){L(t,"class","w-28"),L(r,"class","md:w-80 xl:w-auto"),L(o,"class","w-60 max-md:hidden xl:w-80"),L(g,"class","w-56 max-xl:hidden"),L(p,"class","w-56 max-xl:hidden")},m(v,z){d(v,t,z),V(t,e),d(v,s,z),d(v,r,z),V(r,f),d(v,u,z),d(v,o,z),V(o,h),d(v,T,z),d(v,g,z),V(g,_),d(v,$,z),d(v,p,z),V(p,E)},p:G,d(v){v&&i(t),v&&i(s),v&&i(r),v&&i(u),v&&i(o),v&&i(T),v&&i(g),v&&i($),v&&i(p)}}}function bt(a){let t,l;return t=new st({props:{slot:"headers",$$slots:{default:[gt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function wt(a){let t,l;return t=new lt({props:{class:"w-full table-fixed",$$slots:{headers:[bt],caption:[ht],default:[dt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function vt(a,t,l){let{$$slots:e={},$$scope:s}=t;return a.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[e,s]}class kt extends fe{constructor(t){super(),ue(this,t,vt,wt,ce,{})}}const{Boolean:Tt}=Me;function He(a){a[10]=a[12].schedules,a[11]=a[12].error}function Re(a,t,l){const e=a.slice();return e[14]=t[l],e}function Et(a){let t=H("preview")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function qe(a){let t,l;return t=new Ne({props:{"data-testid":"create-schedule",href:oe({namespace:a[1]}),$$slots:{default:[Dt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.href=oe({namespace:e[1]})),s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Dt(a){let t=H("schedules","create")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function It(a){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function St(a){He(a);let t,l,e,s;const r=[Bt,Lt],n=[];function f(u,o){var c;return(c=u[10])!=null&&c.length?0:1}return t=f(a),l=n[t]=r[t](a),{c(){l.c(),e=O()},l(u){l.l(u),e=O()},m(u,o){n[t].m(u,o),d(u,e,o),s=!0},p(u,o){He(u);let c=t;t=f(u),t===c?n[t].p(u,o):(M(),k(n[c],1,1,()=>{n[c]=null}),Q(),l=n[t],l?l.p(u,o):(l=n[t]=r[t](u),l.c()),b(l,1),l.m(e.parentNode,e))},i(u){s||(b(l),s=!0)},o(u){k(l),s=!1},d(u){n[t].d(u),u&&i(e)}}}function Lt(a){let t,l,e;return l=new Ve({props:{title:H("schedules","empty-state-title"),error:a[11],$$slots:{default:[Rt]},$$scope:{ctx:a}}}),{c(){t=B("div"),R(l.$$.fragment),this.h()},l(s){t=P(s,"DIV",{class:!0});var r=C(t);q(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(t,"class","my-12 flex flex-col items-center justify-start gap-2")},m(s,r){d(s,t,r),A(l,t,null),e=!0},p(s,r){const n={};r&32&&(n.error=s[11]),r&131122&&(n.$$scope={dirty:r,ctx:s}),l.$set(n)},i(s){e||(b(l.$$.fragment,s),e=!0)},o(s){k(l.$$.fragment,s),e=!1},d(s){s&&i(t),W(l)}}}function Bt(a){let t,l;return t=new ot({props:{items:a[3](a[10]),"aria-label":H("schedules"),pageSizeSelectLabel:H("per-page"),previousButtonLabel:H("previous"),nextButtonLabel:H("next"),$$slots:{"action-top-left":[Ft,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],default:[Wt,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&40&&(r.items=e[3](e[10])),s&139265&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Pt(a){let t=H("schedules","getting-started-docs-link")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function Ct(a){let t;return{c(){t=j("Temporal CLI")},l(l){t=U(l,"Temporal CLI")},m(l,e){d(l,t,e)},d(l){l&&i(t)}}}function Ae(a){let t,l;return t=new Ne({props:{"data-testid":"create-schedule",href:oe({namespace:a[1]}),$$slots:{default:[Ht]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.href=oe({namespace:e[1]})),s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Ht(a){let t=H("schedules","create")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function Rt(a){let t,l=H("schedules","getting-started-docs-link-preface")+"",e,s,r,n,f=H("schedules","getting-started-cli-link-preface")+"",u,o,c,h,T,g,D;r=new ae({props:{target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Pt]},$$scope:{ctx:a}}}),c=new ae({props:{target:"_external",href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[Ct]},$$scope:{ctx:a}}});let _=!a[11]&&!a[4]&&Ae(a);return{c(){t=B("p"),e=j(l),s=F(),R(r.$$.fragment),n=F(),u=j(f),o=F(),R(c.$$.fragment),h=j("."),T=F(),_&&_.c(),g=O()},l($){t=P($,"P",{});var p=C(t);e=U(p,l),s=N(p),q(r.$$.fragment,p),n=N(p),u=U(p,f),o=N(p),q(c.$$.fragment,p),h=U(p,"."),p.forEach(i),T=N($),_&&_.l($),g=O()},m($,p){d($,t,p),V(t,e),V(t,s),A(r,t,null),V(t,n),V(t,u),V(t,o),A(c,t,null),V(t,h),d($,T,p),_&&_.m($,p),d($,g,p),D=!0},p($,p){const w={};p&131072&&(w.$$scope={dirty:p,ctx:$}),r.$set(w);const E={};p&131072&&(E.$$scope={dirty:p,ctx:$}),c.$set(E),!$[11]&&!$[4]?_?(_.p($,p),p&48&&b(_,1)):(_=Ae($),_.c(),b(_,1),_.m(g.parentNode,g)):_&&(M(),k(_,1,1,()=>{_=null}),Q())},i($){D||(b(r.$$.fragment,$),b(c.$$.fragment,$),b(_),D=!0)},o($){k(r.$$.fragment,$),k(c.$$.fragment,$),k(_),D=!1},d($){$&&i(t),W(r),W(c),$&&i(T),_&&_.d($),$&&i(g)}}}function We(a){let t,l;return t=new me({props:{$$slots:{default:[qt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function qt(a){let t,l,e,s,r,n,f,u;return s=new Ve({props:{title:H("schedules","empty-state-title"),content:H("schedules","empty-state-description")}}),{c(){t=B("td"),l=F(),e=B("td"),R(s.$$.fragment),r=F(),n=B("td"),f=F(),this.h()},l(o){t=P(o,"TD",{class:!0}),C(t).forEach(i),l=N(o),e=P(o,"TD",{colspan:!0});var c=C(e);q(s.$$.fragment,c),c.forEach(i),r=N(o),n=P(o,"TD",{class:!0}),C(n).forEach(i),f=N(o),this.h()},h(){L(t,"class","hidden xl:table-cell"),L(e,"colspan","3"),L(n,"class","hidden xl:table-cell")},m(o,c){d(o,t,c),d(o,l,c),d(o,e,c),A(s,e,null),d(o,r,c),d(o,n,c),d(o,f,c),u=!0},p:G,i(o){u||(b(s.$$.fragment,o),u=!0)},o(o){k(s.$$.fragment,o),u=!1},d(o){o&&i(t),o&&i(l),o&&i(e),W(s),o&&i(r),o&&i(n),o&&i(f)}}}function Fe(a){let t,l;return t=new _t({props:{schedule:a[14]}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&8192&&(r.schedule=e[14]),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function At(a){let t,l,e=a[13],s=[];for(let f=0;fk(s[f],1,1,()=>{s[f]=null});let n=null;return e.length||(n=We(a)),{c(){for(let f=0;f{n=null}),Q()):(n=We(f),n.c(),b(n,1),n.m(t.parentNode,t))}},i(f){if(!l){for(let u=0;uOe(l,"value",r)),l.$on("submit",G),{c(){t=B("div"),R(l.$$.fragment),this.h()},l(f){t=P(f,"DIV",{class:!0});var u=C(t);q(l.$$.fragment,u),u.forEach(i),this.h()},h(){L(t,"class","w-full xl:w-1/2")},m(f,u){d(f,t,u),A(l,t,null),s=!0},p(f,u){const o={};!e&&u&1&&(e=!0,o.value=f[0],Ze(()=>e=!1)),l.$set(o)},i(f){s||(b(l.$$.fragment,f),s=!0)},o(f){k(l.$$.fragment,f),s=!1},d(f){f&&i(t),W(l)}}}function Nt(a){let t,l;return t=new nt({}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p:G,i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Vt(a){let t,l,e,s=H("schedules")+"",r,n,f,u,o,c,h,T,g,D;n=new rt({props:{type:"beta",$$slots:{default:[Et]},$$scope:{ctx:a}}});let _=a[2]&&!a[4]&&qe(a),$={ctx:a,current:null,token:null,hasCatch:!1,pending:Nt,then:St,catch:It,value:12,blocks:[,,,]};return Ie(g=a[5],$),{c(){t=B("header"),l=B("div"),e=B("h1"),r=j(s),R(n.$$.fragment),f=F(),u=B("p"),o=j(a[1]),c=F(),_&&_.c(),h=F(),T=O(),$.block.c(),this.h()},l(p){t=P(p,"HEADER",{class:!0});var w=C(t);l=P(w,"DIV",{});var E=C(l);e=P(E,"H1",{class:!0});var v=C(e);r=U(v,s),q(n.$$.fragment,v),v.forEach(i),f=N(E),u=P(E,"P",{class:!0,"data-testid":!0});var z=C(u);o=U(z,a[1]),z.forEach(i),E.forEach(i),c=N(w),_&&_.l(w),w.forEach(i),h=N(p),T=O(),$.block.l(p),this.h()},h(){L(e,"class","flex flex-col gap-0 text-lg md:flex-row md:items-center md:gap-2 md:text-2xl"),L(u,"class","text-sm text-gray-600"),L(u,"data-testid","namespace-name"),L(t,"class","flex flex-row justify-between gap-2")},m(p,w){d(p,t,w),V(t,l),V(l,e),V(e,r),A(n,e,null),V(l,f),V(l,u),V(u,o),V(t,c),_&&_.m(t,null),d(p,h,w),d(p,T,w),$.block.m(p,$.anchor=w),$.mount=()=>T.parentNode,$.anchor=T,D=!0},p(p,[w]){a=p;const E={};w&131072&&(E.$$scope={dirty:w,ctx:a}),n.$set(E),(!D||w&2)&&re(o,a[1]),a[2]&&!a[4]?_?(_.p(a,w),w&20&&b(_,1)):(_=qe(a),_.c(),b(_,1),_.m(t,null)):_&&(M(),k(_,1,1,()=>{_=null}),Q()),$.ctx=a,w&32&&g!==(g=a[5])&&Ie(g,$)||Je($,a,w)},i(p){D||(b(n.$$.fragment,p),b(_),b($.block),D=!0)},o(p){k(n.$$.fragment,p),k(_);for(let w=0;w<3;w+=1){const E=$.blocks[w];k(E)}D=!1},d(p){p&&i(t),W(n),_&&_.d(),p&&i(h),p&&i(T),$.block.d(p),$.token=null,$=null}}}function jt(a,t,l){let e,s,r,n,f,u;Z(a,pe,g=>l(8,u=g));let o=!1,c=ft();Z(a,c,g=>l(7,f=g));let h="";function T(g){h=g,l(0,h)}return a.$$.update=()=>{a.$$.dirty&256&&l(1,e=u.params.namespace),a.$$.dirty&2&&l(5,s=tt(e).then(g=>{const{schedules:D}=g;return l(2,o=Boolean(D==null?void 0:D.length)),g})),a.$$.dirty&130&&l(4,r=f.namespaceWriteDisabled(e)),a.$$.dirty&1&&l(3,n=g=>h?g.filter(D=>D.scheduleId.toLowerCase().includes(h.toLowerCase())):g)},[h,e,o,n,r,s,c,f,u,T]}class Ut extends fe{constructor(t){super(),ue(this,t,jt,Vt,ce,{})}}function zt(a){let t,l,e,s;return t=new Qe({props:{title:`Schedules | ${a[0].params.namespace}`,url:a[0].url.href}}),e=new Ut({}),{c(){R(t.$$.fragment),l=F(),R(e.$$.fragment)},l(r){q(t.$$.fragment,r),l=N(r),q(e.$$.fragment,r)},m(r,n){A(t,r,n),d(r,l,n),A(e,r,n),s=!0},p(r,[n]){const f={};n&1&&(f.title=`Schedules | ${r[0].params.namespace}`),n&1&&(f.url=r[0].url.href),t.$set(f)},i(r){s||(b(t.$$.fragment,r),b(e.$$.fragment,r),s=!0)},o(r){k(t.$$.fragment,r),k(e.$$.fragment,r),s=!1},d(r){W(t,r),r&&i(l),W(e,r)}}}function Gt(a,t,l){let e;return Z(a,pe,s=>l(0,e=s)),[e]}class ul extends fe{constructor(t){super(),ue(this,t,Gt,zt,ce,{})}}export{ul as default}; +import{S as fe,b as ue,a as ce,C as R,c as F,D as q,d as N,E as A,f as d,j as b,g as k,F as W,k as i,K as Z,m as B,w as j,p as P,q as C,x as U,u as L,L as V,y as re,z as M,h as Q,a7 as $e,n as G,G as je,H as Ue,I as ze,J as Ge,ar as Ie,e as O,as as Je,A as Ke,Z as Oe,_ as Ze,at as Me}from"../chunks/index.6779d4e2.js";import{p as pe}from"../chunks/stores.b96d31b2.js";import{P as Qe}from"../chunks/page-title.990af218.js";import{g as Xe}from"../chunks/navigation.8e7fd3e5.js";import{W as Ye}from"../chunks/workflow-status.fc3d74d1.js";import{L as ae}from"../chunks/link.8030aa06.js";import{T as me}from"../chunks/table-row.e455010e.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{t as ye,r as xe,b as ne}from"../chunks/format-date.79dd40f6.js";import{q as et,g as Se,s as oe}from"../chunks/route-for.31ffa191.js";import{S as ie,f as tt}from"../chunks/schedule-service.a1e87565.js";import{T as lt,a as st}from"../chunks/table-header-row.5433617e.js";import{B as rt}from"../chunks/badge.d458ea0a.js";import{B as Ne}from"../chunks/button.0b50a4b4.js";import{E as Ve}from"../chunks/empty-state.c8d40bbf.js";import{I as at}from"../chunks/input.86f6e192.js";import{L as nt}from"../chunks/loading.a6f9064e.js";import{P as ot}from"../chunks/pagination.46c6618d.js";import{c as ft}from"../chunks/core-user.1973d180.js";function Le(a,t,l){const e=a.slice();return e[14]=t[l],e}function Be(a,t,l){const e=a.slice();return e[14]=t[l],e}function ut(a){let t=a[0].scheduleId+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p(e,s){s&1&&t!==(t=e[0].scheduleId+"")&&re(l,t)},d(e){e&&i(l)}}}function ct(a){var e;let t=ne((e=a[14])==null?void 0:e.actualTime,a[2],{relative:a[3]})+"",l;return{c(){l=j(t)},l(s){l=U(s,t)},m(s,r){d(s,l,r)},p(s,r){var n;r&13&&t!==(t=ne((n=s[14])==null?void 0:n.actualTime,s[2],{relative:s[3]})+"")&&re(l,t)},d(s){s&&i(l)}}}function Pe(a){var r,n,f,u;let t,l,e,s;return l=new ae({props:{href:Se({namespace:a[4],workflow:(n=(r=a[14])==null?void 0:r.startWorkflowResult)==null?void 0:n.workflowId,run:(u=(f=a[14])==null?void 0:f.startWorkflowResult)==null?void 0:u.runId}),$$slots:{default:[ct]},$$scope:{ctx:a}}}),{c(){t=B("p"),R(l.$$.fragment),e=F()},l(o){t=P(o,"P",{});var c=C(t);q(l.$$.fragment,c),e=N(c),c.forEach(i)},m(o,c){d(o,t,c),A(l,t,null),V(t,e),s=!0},p(o,c){var T,g,D,_;const h={};c&1&&(h.href=Se({namespace:o[4],workflow:(g=(T=o[14])==null?void 0:T.startWorkflowResult)==null?void 0:g.workflowId,run:(_=(D=o[14])==null?void 0:D.startWorkflowResult)==null?void 0:_.runId})),c&524301&&(h.$$scope={dirty:c,ctx:o}),l.$set(h)},i(o){s||(b(l.$$.fragment,o),s=!0)},o(o){k(l.$$.fragment,o),s=!1},d(o){o&&i(t),W(l)}}}function Ce(a){let t,l=ne(a[14],a[2],{relative:a[3],relativeLabel:H("from-now")})+"",e,s;return{c(){t=B("div"),e=j(l),s=F()},l(r){t=P(r,"DIV",{});var n=C(t);e=U(n,l),s=N(n),n.forEach(i)},m(r,n){d(r,t,n),V(t,e),V(t,s)},p(r,n){n&13&&l!==(l=ne(r[14],r[2],{relative:r[3],relativeLabel:H("from-now")})+"")&&re(e,l)},d(r){r&&i(t)}}}function it(a){var v,z,X,Y,y,x,_e,de,he,ge;let t,l,e,s,r,n,f,u=(((X=(z=(v=a[0])==null?void 0:v.info)==null?void 0:z.workflowType)==null?void 0:X.name)??"")+"",o,c,h,T,g,D;l=new Ye({props:{status:(y=(Y=a[0])==null?void 0:Y.info)!=null&&y.paused?"Paused":"Running"}}),r=new ae({props:{class:"text-base",$$slots:{default:[ut]},$$scope:{ctx:a}}}),r.$on("click",a[8]);let _=a[7]((_e=(x=a[0])==null?void 0:x.info)==null?void 0:_e.recentActions),$=[];for(let m=0;m<_.length;m+=1)$[m]=Pe(Be(a,_,m));const p=m=>k($[m],1,1,()=>{$[m]=null});let w=((ge=(he=(de=a[0])==null?void 0:de.info)==null?void 0:he.futureActionTimes)==null?void 0:ge.slice(0,5))??[],E=[];for(let m=0;ml(12,s=p)),Z(a,ye,p=>l(2,r=p)),Z(a,xe,p=>l(3,n=p));var f,u,o;let{namespace:c}=s.params,{schedule:h}=t;const T=(f=h==null?void 0:h.info)===null||f===void 0?void 0:f.spec,g=(u=T==null?void 0:T.structuredCalendar)===null||u===void 0?void 0:u[0],D=(o=T==null?void 0:T.interval)===null||o===void 0?void 0:o[0],_=p=>{var w;return(w=p==null?void 0:p.sort((E,v)=>new Date(v.actualTime).getTime()-new Date(E.actualTime).getTime()).slice(0,5))!==null&&w!==void 0?w:[]},$=()=>{Xe(e)};return a.$$set=p=>{"schedule"in p&&l(0,h=p.schedule)},a.$$.update=()=>{a.$$.dirty&1&&l(1,e=et({namespace:c,scheduleId:h==null?void 0:h.scheduleId}))},[h,e,r,n,c,g,D,_,$]}class _t extends fe{constructor(t){super(),ue(this,t,pt,mt,ce,{schedule:0})}}function dt(a){let t;const l=a[0].default,e=je(l,a,a[1],null);return{c(){e&&e.c()},l(s){e&&e.l(s)},m(s,r){e&&e.m(s,r),t=!0},p(s,r){e&&e.p&&(!t||r&2)&&Ue(e,l,s,s[1],t?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){t||(b(e,s),t=!0)},o(s){k(e,s),t=!1},d(s){e&&e.d(s)}}}function ht(a){let t,l=H("schedules")+"",e;return{c(){t=B("caption"),e=j(l),this.h()},l(s){t=P(s,"CAPTION",{class:!0,slot:!0});var r=C(t);e=U(r,l),r.forEach(i),this.h()},h(){L(t,"class","sr-only"),L(t,"slot","caption")},m(s,r){d(s,t,r),V(t,e)},p:G,d(s){s&&i(t)}}}function gt(a){let t,l=H("status")+"",e,s,r,n=H("schedules","name")+"",f,u,o,c=H("workflow-type")+"",h,T,g,D=H("schedules","recent-runs")+"",_,$,p,w=H("schedules","upcoming-runs")+"",E;return{c(){t=B("th"),e=j(l),s=F(),r=B("th"),f=j(n),u=F(),o=B("th"),h=j(c),T=F(),g=B("th"),_=j(D),$=F(),p=B("th"),E=j(w),this.h()},l(v){t=P(v,"TH",{class:!0});var z=C(t);e=U(z,l),z.forEach(i),s=N(v),r=P(v,"TH",{class:!0});var X=C(r);f=U(X,n),X.forEach(i),u=N(v),o=P(v,"TH",{class:!0});var Y=C(o);h=U(Y,c),Y.forEach(i),T=N(v),g=P(v,"TH",{class:!0});var y=C(g);_=U(y,D),y.forEach(i),$=N(v),p=P(v,"TH",{class:!0});var x=C(p);E=U(x,w),x.forEach(i),this.h()},h(){L(t,"class","w-28"),L(r,"class","md:w-80 xl:w-auto"),L(o,"class","w-60 max-md:hidden xl:w-80"),L(g,"class","w-56 max-xl:hidden"),L(p,"class","w-56 max-xl:hidden")},m(v,z){d(v,t,z),V(t,e),d(v,s,z),d(v,r,z),V(r,f),d(v,u,z),d(v,o,z),V(o,h),d(v,T,z),d(v,g,z),V(g,_),d(v,$,z),d(v,p,z),V(p,E)},p:G,d(v){v&&i(t),v&&i(s),v&&i(r),v&&i(u),v&&i(o),v&&i(T),v&&i(g),v&&i($),v&&i(p)}}}function bt(a){let t,l;return t=new st({props:{slot:"headers",$$slots:{default:[gt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function wt(a){let t,l;return t=new lt({props:{class:"w-full table-fixed",$$slots:{headers:[bt],caption:[ht],default:[dt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function vt(a,t,l){let{$$slots:e={},$$scope:s}=t;return a.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[e,s]}class kt extends fe{constructor(t){super(),ue(this,t,vt,wt,ce,{})}}const{Boolean:Tt}=Me;function He(a){a[10]=a[12].schedules,a[11]=a[12].error}function Re(a,t,l){const e=a.slice();return e[14]=t[l],e}function Et(a){let t=H("preview")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function qe(a){let t,l;return t=new Ne({props:{"data-testid":"create-schedule",href:oe({namespace:a[1]}),$$slots:{default:[Dt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.href=oe({namespace:e[1]})),s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Dt(a){let t=H("schedules","create")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function It(a){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function St(a){He(a);let t,l,e,s;const r=[Bt,Lt],n=[];function f(u,o){var c;return(c=u[10])!=null&&c.length?0:1}return t=f(a),l=n[t]=r[t](a),{c(){l.c(),e=O()},l(u){l.l(u),e=O()},m(u,o){n[t].m(u,o),d(u,e,o),s=!0},p(u,o){He(u);let c=t;t=f(u),t===c?n[t].p(u,o):(M(),k(n[c],1,1,()=>{n[c]=null}),Q(),l=n[t],l?l.p(u,o):(l=n[t]=r[t](u),l.c()),b(l,1),l.m(e.parentNode,e))},i(u){s||(b(l),s=!0)},o(u){k(l),s=!1},d(u){n[t].d(u),u&&i(e)}}}function Lt(a){let t,l,e;return l=new Ve({props:{title:H("schedules","empty-state-title"),error:a[11],$$slots:{default:[Rt]},$$scope:{ctx:a}}}),{c(){t=B("div"),R(l.$$.fragment),this.h()},l(s){t=P(s,"DIV",{class:!0});var r=C(t);q(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(t,"class","my-12 flex flex-col items-center justify-start gap-2")},m(s,r){d(s,t,r),A(l,t,null),e=!0},p(s,r){const n={};r&32&&(n.error=s[11]),r&131122&&(n.$$scope={dirty:r,ctx:s}),l.$set(n)},i(s){e||(b(l.$$.fragment,s),e=!0)},o(s){k(l.$$.fragment,s),e=!1},d(s){s&&i(t),W(l)}}}function Bt(a){let t,l;return t=new ot({props:{items:a[3](a[10]),"aria-label":H("schedules"),pageSizeSelectLabel:H("per-page"),previousButtonLabel:H("previous"),nextButtonLabel:H("next"),$$slots:{"action-top-left":[Ft,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0],default:[Wt,({visibleItems:e})=>({13:e}),({visibleItems:e})=>e?8192:0]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&40&&(r.items=e[3](e[10])),s&139265&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Pt(a){let t=H("schedules","getting-started-docs-link")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function Ct(a){let t;return{c(){t=j("Temporal CLI")},l(l){t=U(l,"Temporal CLI")},m(l,e){d(l,t,e)},d(l){l&&i(t)}}}function Ae(a){let t,l;return t=new Ne({props:{"data-testid":"create-schedule",href:oe({namespace:a[1]}),$$slots:{default:[Ht]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&2&&(r.href=oe({namespace:e[1]})),s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Ht(a){let t=H("schedules","create")+"",l;return{c(){l=j(t)},l(e){l=U(e,t)},m(e,s){d(e,l,s)},p:G,d(e){e&&i(l)}}}function Rt(a){let t,l=H("schedules","getting-started-docs-link-preface")+"",e,s,r,n,f=H("schedules","getting-started-cli-link-preface")+"",u,o,c,h,T,g,D;r=new ae({props:{target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Pt]},$$scope:{ctx:a}}}),c=new ae({props:{target:"_external",href:"https://docs.temporal.io/cli/schedule",$$slots:{default:[Ct]},$$scope:{ctx:a}}});let _=!a[11]&&!a[4]&&Ae(a);return{c(){t=B("p"),e=j(l),s=F(),R(r.$$.fragment),n=F(),u=j(f),o=F(),R(c.$$.fragment),h=j("."),T=F(),_&&_.c(),g=O()},l($){t=P($,"P",{});var p=C(t);e=U(p,l),s=N(p),q(r.$$.fragment,p),n=N(p),u=U(p,f),o=N(p),q(c.$$.fragment,p),h=U(p,"."),p.forEach(i),T=N($),_&&_.l($),g=O()},m($,p){d($,t,p),V(t,e),V(t,s),A(r,t,null),V(t,n),V(t,u),V(t,o),A(c,t,null),V(t,h),d($,T,p),_&&_.m($,p),d($,g,p),D=!0},p($,p){const w={};p&131072&&(w.$$scope={dirty:p,ctx:$}),r.$set(w);const E={};p&131072&&(E.$$scope={dirty:p,ctx:$}),c.$set(E),!$[11]&&!$[4]?_?(_.p($,p),p&48&&b(_,1)):(_=Ae($),_.c(),b(_,1),_.m(g.parentNode,g)):_&&(M(),k(_,1,1,()=>{_=null}),Q())},i($){D||(b(r.$$.fragment,$),b(c.$$.fragment,$),b(_),D=!0)},o($){k(r.$$.fragment,$),k(c.$$.fragment,$),k(_),D=!1},d($){$&&i(t),W(r),W(c),$&&i(T),_&&_.d($),$&&i(g)}}}function We(a){let t,l;return t=new me({props:{$$slots:{default:[qt]},$$scope:{ctx:a}}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&131072&&(r.$$scope={dirty:s,ctx:e}),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function qt(a){let t,l,e,s,r,n,f,u;return s=new Ve({props:{title:H("schedules","empty-state-title"),content:H("schedules","empty-state-description")}}),{c(){t=B("td"),l=F(),e=B("td"),R(s.$$.fragment),r=F(),n=B("td"),f=F(),this.h()},l(o){t=P(o,"TD",{class:!0}),C(t).forEach(i),l=N(o),e=P(o,"TD",{colspan:!0});var c=C(e);q(s.$$.fragment,c),c.forEach(i),r=N(o),n=P(o,"TD",{class:!0}),C(n).forEach(i),f=N(o),this.h()},h(){L(t,"class","hidden xl:table-cell"),L(e,"colspan","3"),L(n,"class","hidden xl:table-cell")},m(o,c){d(o,t,c),d(o,l,c),d(o,e,c),A(s,e,null),d(o,r,c),d(o,n,c),d(o,f,c),u=!0},p:G,i(o){u||(b(s.$$.fragment,o),u=!0)},o(o){k(s.$$.fragment,o),u=!1},d(o){o&&i(t),o&&i(l),o&&i(e),W(s),o&&i(r),o&&i(n),o&&i(f)}}}function Fe(a){let t,l;return t=new _t({props:{schedule:a[14]}}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p(e,s){const r={};s&8192&&(r.schedule=e[14]),t.$set(r)},i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function At(a){let t,l,e=a[13],s=[];for(let f=0;fk(s[f],1,1,()=>{s[f]=null});let n=null;return e.length||(n=We(a)),{c(){for(let f=0;f{n=null}),Q()):(n=We(f),n.c(),b(n,1),n.m(t.parentNode,t))}},i(f){if(!l){for(let u=0;uOe(l,"value",r)),l.$on("submit",G),{c(){t=B("div"),R(l.$$.fragment),this.h()},l(f){t=P(f,"DIV",{class:!0});var u=C(t);q(l.$$.fragment,u),u.forEach(i),this.h()},h(){L(t,"class","w-full xl:w-1/2")},m(f,u){d(f,t,u),A(l,t,null),s=!0},p(f,u){const o={};!e&&u&1&&(e=!0,o.value=f[0],Ze(()=>e=!1)),l.$set(o)},i(f){s||(b(l.$$.fragment,f),s=!0)},o(f){k(l.$$.fragment,f),s=!1},d(f){f&&i(t),W(l)}}}function Nt(a){let t,l;return t=new nt({}),{c(){R(t.$$.fragment)},l(e){q(t.$$.fragment,e)},m(e,s){A(t,e,s),l=!0},p:G,i(e){l||(b(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){W(t,e)}}}function Vt(a){let t,l,e,s=H("schedules")+"",r,n,f,u,o,c,h,T,g,D;n=new rt({props:{type:"beta",$$slots:{default:[Et]},$$scope:{ctx:a}}});let _=a[2]&&!a[4]&&qe(a),$={ctx:a,current:null,token:null,hasCatch:!1,pending:Nt,then:St,catch:It,value:12,blocks:[,,,]};return Ie(g=a[5],$),{c(){t=B("header"),l=B("div"),e=B("h1"),r=j(s),R(n.$$.fragment),f=F(),u=B("p"),o=j(a[1]),c=F(),_&&_.c(),h=F(),T=O(),$.block.c(),this.h()},l(p){t=P(p,"HEADER",{class:!0});var w=C(t);l=P(w,"DIV",{});var E=C(l);e=P(E,"H1",{class:!0});var v=C(e);r=U(v,s),q(n.$$.fragment,v),v.forEach(i),f=N(E),u=P(E,"P",{class:!0,"data-testid":!0});var z=C(u);o=U(z,a[1]),z.forEach(i),E.forEach(i),c=N(w),_&&_.l(w),w.forEach(i),h=N(p),T=O(),$.block.l(p),this.h()},h(){L(e,"class","flex flex-col gap-0 text-lg md:flex-row md:items-center md:gap-2 md:text-2xl"),L(u,"class","text-sm text-gray-600"),L(u,"data-testid","namespace-name"),L(t,"class","flex flex-row justify-between gap-2")},m(p,w){d(p,t,w),V(t,l),V(l,e),V(e,r),A(n,e,null),V(l,f),V(l,u),V(u,o),V(t,c),_&&_.m(t,null),d(p,h,w),d(p,T,w),$.block.m(p,$.anchor=w),$.mount=()=>T.parentNode,$.anchor=T,D=!0},p(p,[w]){a=p;const E={};w&131072&&(E.$$scope={dirty:w,ctx:a}),n.$set(E),(!D||w&2)&&re(o,a[1]),a[2]&&!a[4]?_?(_.p(a,w),w&20&&b(_,1)):(_=qe(a),_.c(),b(_,1),_.m(t,null)):_&&(M(),k(_,1,1,()=>{_=null}),Q()),$.ctx=a,w&32&&g!==(g=a[5])&&Ie(g,$)||Je($,a,w)},i(p){D||(b(n.$$.fragment,p),b(_),b($.block),D=!0)},o(p){k(n.$$.fragment,p),k(_);for(let w=0;w<3;w+=1){const E=$.blocks[w];k(E)}D=!1},d(p){p&&i(t),W(n),_&&_.d(),p&&i(h),p&&i(T),$.block.d(p),$.token=null,$=null}}}function jt(a,t,l){let e,s,r,n,f,u;Z(a,pe,g=>l(8,u=g));let o=!1,c=ft();Z(a,c,g=>l(7,f=g));let h="";function T(g){h=g,l(0,h)}return a.$$.update=()=>{a.$$.dirty&256&&l(1,e=u.params.namespace),a.$$.dirty&2&&l(5,s=tt(e).then(g=>{const{schedules:D}=g;return l(2,o=Boolean(D==null?void 0:D.length)),g})),a.$$.dirty&130&&l(4,r=f.namespaceWriteDisabled(e)),a.$$.dirty&1&&l(3,n=g=>h?g.filter(D=>D.scheduleId.toLowerCase().includes(h.toLowerCase())):g)},[h,e,o,n,r,s,c,f,u,T]}class Ut extends fe{constructor(t){super(),ue(this,t,jt,Vt,ce,{})}}function zt(a){let t,l,e,s;return t=new Qe({props:{title:`Schedules | ${a[0].params.namespace}`,url:a[0].url.href}}),e=new Ut({}),{c(){R(t.$$.fragment),l=F(),R(e.$$.fragment)},l(r){q(t.$$.fragment,r),l=N(r),q(e.$$.fragment,r)},m(r,n){A(t,r,n),d(r,l,n),A(e,r,n),s=!0},p(r,[n]){const f={};n&1&&(f.title=`Schedules | ${r[0].params.namespace}`),n&1&&(f.url=r[0].url.href),t.$set(f)},i(r){s||(b(t.$$.fragment,r),b(e.$$.fragment,r),s=!0)},o(r){k(t.$$.fragment,r),k(e.$$.fragment,r),s=!1},d(r){W(t,r),r&&i(l),W(e,r)}}}function Gt(a,t,l){let e;return Z(a,pe,s=>l(0,e=s)),[e]}class ul extends fe{constructor(t){super(),ue(this,t,Gt,zt,ce,{})}}export{ul as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js similarity index 92% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js index d5a9a5d88b..c230e1ef68 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js @@ -1 +1 @@ -import{S as Q,b as P,a as C,ar as T,e as p,f as g,as as v,j as u,g as i,k as d,K as W,n as a,C as _,D as k,E as $,F as b,c as I,d as N}from"../chunks/index.6779d4e2.js";import{p as F}from"../chunks/stores.6ee4c480.js";import{P as S}from"../chunks/page-title.990af218.js";import{W as h}from"../chunks/workers-list.d2e5ee2d.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.1d9f1daf.js";import{p as E,c as H}from"../chunks/task-queue-compatibility.cf5696f8.js";function y(r){const t=E(r[4].pollers);r[5]=t}function q(r){r[7]=r[9][0],r[8]=r[9][1]}function K(r){const t=r.slice(),l=H(t[4].pollers);return t[6]=l,t}function R(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function U(r){y(r);let t,l,e,n;const o=[z,V],c=[];function m(s,f){return s[5]?0:1}function w(s,f){return f===0?K(s):s}return t=m(r),l=c[t]=o[t](w(r,t)),{c(){l.c(),e=p()},l(s){l.l(s),e=p()},m(s,f){c[t].m(s,f),g(s,e,f),n=!0},p(s,f){y(s),l.p(w(s,t),f)},i(s){n||(u(l),n=!0)},o(s){i(l),n=!1},d(s){c[t].d(s),s&&d(e)}}}function V(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function z(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!0,pending:J,then:G,catch:A,value:9,blocks:[,,,]};return T(Promise.all([B({queue:r[0],namespace:r[1]}),D({namespace:r[1],buildIds:r[6],taskQueue:r[2]})]),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,o){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function A(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function G(r){q(r);let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4],compatibility:r[7],reachability:r[8]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p(e,n){q(e)},i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function J(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function L(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function M(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!1,pending:L,then:U,catch:R,value:4,blocks:[,,,]};return T(j({queue:r[0],namespace:r[1]}),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,[o]){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function O(r,t,l){let e;W(r,F,m=>l(3,e=m));let{queue:n,namespace:o,taskQueue:c}=e.params;return[n,o,c]}class X extends Q{constructor(t){super(),P(this,t,O,M,C,{})}}function Y(r){let t,l,e,n;return t=new S({props:{title:`Task Queue | ${r[1]}`,url:r[0].url.href}}),e=new X({}),{c(){_(t.$$.fragment),l=I(),_(e.$$.fragment)},l(o){k(t.$$.fragment,o),l=N(o),k(e.$$.fragment,o)},m(o,c){$(t,o,c),g(o,l,c),$(e,o,c),n=!0},p(o,[c]){const m={};c&1&&(m.url=o[0].url.href),t.$set(m)},i(o){n||(u(t.$$.fragment,o),u(e.$$.fragment,o),n=!0)},o(o){i(t.$$.fragment,o),i(e.$$.fragment,o),n=!1},d(o){b(t,o),o&&d(l),b(e,o)}}}function Z(r,t,l){let e;W(r,F,o=>l(0,e=o));const n=e.params.queue;return[e,n]}class le extends Q{constructor(t){super(),P(this,t,Z,Y,C,{})}}export{le as default}; +import{S as Q,b as P,a as C,ar as T,e as p,f as g,as as v,j as u,g as i,k as d,K as W,n as a,C as _,D as k,E as $,F as b,c as I,d as N}from"../chunks/index.6779d4e2.js";import{p as F}from"../chunks/stores.b96d31b2.js";import{P as S}from"../chunks/page-title.990af218.js";import{W as h}from"../chunks/workers-list.817f7dee.js";import{g as j,a as B,b as D}from"../chunks/pollers-service.d61f00b6.js";import{p as E,c as H}from"../chunks/task-queue-compatibility.cf5696f8.js";function y(r){const t=E(r[4].pollers);r[5]=t}function q(r){r[7]=r[9][0],r[8]=r[9][1]}function K(r){const t=r.slice(),l=H(t[4].pollers);return t[6]=l,t}function R(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function U(r){y(r);let t,l,e,n;const o=[z,V],c=[];function m(s,f){return s[5]?0:1}function w(s,f){return f===0?K(s):s}return t=m(r),l=c[t]=o[t](w(r,t)),{c(){l.c(),e=p()},l(s){l.l(s),e=p()},m(s,f){c[t].m(s,f),g(s,e,f),n=!0},p(s,f){y(s),l.p(w(s,t),f)},i(s){n||(u(l),n=!0)},o(s){i(l),n=!1},d(s){c[t].d(s),s&&d(e)}}}function V(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function z(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!0,pending:J,then:G,catch:A,value:9,blocks:[,,,]};return T(Promise.all([B({queue:r[0],namespace:r[1]}),D({namespace:r[1],buildIds:r[6],taskQueue:r[2]})]),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,o){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function A(r){let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p:a,i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function G(r){q(r);let t,l;return t=new h({props:{taskQueue:r[0],workers:r[4],compatibility:r[7],reachability:r[8]}}),{c(){_(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,n){$(t,e,n),l=!0},p(e,n){q(e)},i(e){l||(u(t.$$.fragment,e),l=!0)},o(e){i(t.$$.fragment,e),l=!1},d(e){b(t,e)}}}function J(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function L(r){return{c:a,l:a,m:a,p:a,i:a,o:a,d:a}}function M(r){let t,l,e={ctx:r,current:null,token:null,hasCatch:!1,pending:L,then:U,catch:R,value:4,blocks:[,,,]};return T(j({queue:r[0],namespace:r[1]}),e),{c(){t=p(),e.block.c()},l(n){t=p(),e.block.l(n)},m(n,o){g(n,t,o),e.block.m(n,e.anchor=o),e.mount=()=>t.parentNode,e.anchor=t,l=!0},p(n,[o]){r=n,v(e,r,o)},i(n){l||(u(e.block),l=!0)},o(n){for(let o=0;o<3;o+=1){const c=e.blocks[o];i(c)}l=!1},d(n){n&&d(t),e.block.d(n),e.token=null,e=null}}}function O(r,t,l){let e;W(r,F,m=>l(3,e=m));let{queue:n,namespace:o,taskQueue:c}=e.params;return[n,o,c]}class X extends Q{constructor(t){super(),P(this,t,O,M,C,{})}}function Y(r){let t,l,e,n;return t=new S({props:{title:`Task Queue | ${r[1]}`,url:r[0].url.href}}),e=new X({}),{c(){_(t.$$.fragment),l=I(),_(e.$$.fragment)},l(o){k(t.$$.fragment,o),l=N(o),k(e.$$.fragment,o)},m(o,c){$(t,o,c),g(o,l,c),$(e,o,c),n=!0},p(o,[c]){const m={};c&1&&(m.url=o[0].url.href),t.$set(m)},i(o){n||(u(t.$$.fragment,o),u(e.$$.fragment,o),n=!0)},o(o){i(t.$$.fragment,o),i(e.$$.fragment,o),n=!1},d(o){b(t,o),o&&d(l),b(e,o)}}}function Z(r,t,l){let e;W(r,F,o=>l(0,e=o));const n=e.params.queue;return[e,n]}class le extends Q{constructor(t){super(),P(this,t,Z,Y,C,{})}}export{le as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.120311a5.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.120311a5.js new file mode 100644 index 0000000000..4e0d70a09a --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.120311a5.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.f629d15d.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.b1b77967.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.b1b77967.js deleted file mode 100644 index 4962a2fe50..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.b1b77967.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.30c281df.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.120311a5.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.120311a5.js new file mode 100644 index 0000000000..764609b34c --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.120311a5.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.fb15a3aa.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.b1b77967.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.b1b77967.js deleted file mode 100644 index d24f229cec..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.b1b77967.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.07b19c47.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.120311a5.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.120311a5.js new file mode 100644 index 0000000000..e2f52bbfc6 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.120311a5.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.85980bdc.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.b1b77967.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.b1b77967.js deleted file mode 100644 index 3237627bc4..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.b1b77967.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.62d54b09.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js index 95a364e512..fb4d48d3ed 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js @@ -1,4 +1,4 @@ -import{ac as ei,S as kt,b as St,a as xt,C as G,D as q,E as z,j as D,g as P,F as V,K as Le,o as Qx,m as Z,c as ae,p as J,q as X,k as x,d as se,u as W,f as L,L as M,A as U_,a5 as ca,w as oe,x as le,W as Mr,X as Ar,y as qe,n as Fe,z as He,h as We,G as X_,H as K_,I as q_,J as Q_,B as Jo,e as lt,i as Zx,N as el,O as fp,R as Z_,T as hp,U as Jx,a7 as eT,aa as dd,ab as vd,au as tT,a3 as J_,a4 as eb,Y as rT,Z as iT,_ as nT}from"../chunks/index.6779d4e2.js";import{p as Dn}from"../chunks/stores.6ee4c480.js";import{P as aT}from"../chunks/page-title.990af218.js";import{t as U}from"../chunks/translate.29a4bc43.js";import{A as Ml}from"../chunks/accordion.6253b32e.js";import{I as Ss}from"../chunks/icon.a4e81b70.js";import{T as tb,a as dn}from"../chunks/toggle-buttons.1411130f.js";import{g as Kc}from"../chunks/index.de481b2a.js";import{C as rb}from"../chunks/get-event-categorization.3ec93a88.js";import{d as tl,e as ib,b as dp}from"../chunks/event-view.446dd84e.js";import{e as nb}from"../chunks/filters.c175002a.js";import{w as Ta,a as vp,b as pp,r as sT}from"../chunks/workflow-run.4e335848.js";import{c as oT}from"../chunks/format-camel-case.887ffc78.js";import{C as ab,H as sb,I as lT,J as uT,u as cT,f as fT,n as hT,g as dT,p as vT}from"../chunks/is-event-type.4dbe973b.js";import{s as zi}from"../chunks/parse-with-big-int.0036a80a.js";import{b as Vr,r as bn,t as wn}from"../chunks/format-date.79dd40f6.js";import{r as ob,t as lb,q as pd,k as mp,E as gp}from"../chunks/format-time.8258873a.js";import{B as pT}from"../chunks/button.0b50a4b4.js";import{D as mT}from"../chunks/drawer.03c324ce.js";import{T as ub}from"../chunks/tooltip.65a7fa6c.js";import{B as br}from"../chunks/badge.d458ea0a.js";import{C as xs}from"../chunks/code-block.c796ec58.js";import{L as Nr}from"../chunks/link.8030aa06.js";import{j as yp,k as _p}from"../chunks/format-event-attributes.f236b430.js";import{i as gT,g as hr,q as bp,h as wp,l as gi}from"../chunks/route-for.cec09c4c.js";import{t as $p}from"../chunks/to-time-difference.be87d1bf.js";import{P as cb}from"../chunks/pagination.b9ceda84.js";import{T as Ts,a as Es}from"../chunks/table-header-row.5433617e.js";import{T as Al}from"../chunks/table-row.e455010e.js";import{W as yT}from"../chunks/workflow-status.fc3d74d1.js";import{C as Cn}from"../chunks/index.408ca409.js";import{f as fb}from"../chunks/menu.7e3d54af.js";import{A as md}from"../chunks/alert.dcbef44a.js";import{w as _T}from"../chunks/task-queue-compatibility.cf5696f8.js";import{b as hb,E as bT,a as wT}from"../chunks/event-summary-table.8e1963cc.js";import{a as gd}from"../chunks/auth-user.6f15fe0f.js";import{a as yd,b as db,c as zo,e as vb}from"../chunks/events-service.ea4ce52d.js";import{n as $T}from"../chunks/namespaces.65099960.js";import{h as kT}from"../chunks/has.f5323580.js";import{a as ST}from"../chunks/is.ba28a1ea.js";import{W as xT}from"../chunks/workflow-json-navigator.d40ac0c8.js";import{T as TT}from"../chunks/toggle-switch.0d2aaadb.js";function ET(e){ob(1,arguments);var n=lb(e);return n.setSeconds(0,0),n}function DT(e){ob(1,arguments);var n=lb(e);return n.setSeconds(59,999),n}/** +import{ac as ei,S as kt,b as St,a as xt,C as G,D as q,E as z,j as D,g as P,F as V,K as Le,o as Qx,m as Z,c as ae,p as J,q as X,k as x,d as se,u as W,f as L,L as M,A as U_,a5 as ca,w as oe,x as le,W as Mr,X as Ar,y as qe,n as Fe,z as He,h as We,G as X_,H as K_,I as q_,J as Q_,B as Jo,e as lt,i as Zx,N as el,O as fp,R as Z_,T as hp,U as Jx,a7 as eT,aa as dd,ab as vd,au as tT,a3 as J_,a4 as eb,Y as rT,Z as iT,_ as nT}from"../chunks/index.6779d4e2.js";import{p as Dn}from"../chunks/stores.b96d31b2.js";import{P as aT}from"../chunks/page-title.990af218.js";import{t as U}from"../chunks/translate.29a4bc43.js";import{A as Ml}from"../chunks/accordion.6253b32e.js";import{I as Ss}from"../chunks/icon.a4e81b70.js";import{T as tb,a as dn}from"../chunks/toggle-buttons.6c8ac659.js";import{g as Kc}from"../chunks/index.de481b2a.js";import{C as rb}from"../chunks/get-event-categorization.3ec93a88.js";import{d as tl,e as ib,b as dp}from"../chunks/event-view.446dd84e.js";import{e as nb}from"../chunks/filters.291afea8.js";import{w as Ta,a as vp,b as pp,r as sT}from"../chunks/workflow-run.4e335848.js";import{c as oT}from"../chunks/format-camel-case.887ffc78.js";import{C as ab,H as sb,I as lT,J as uT,u as cT,f as fT,n as hT,g as dT,p as vT}from"../chunks/is-event-type.4dbe973b.js";import{s as zi}from"../chunks/parse-with-big-int.0036a80a.js";import{b as Vr,r as bn,t as wn}from"../chunks/format-date.79dd40f6.js";import{r as ob,t as lb,q as pd,k as mp,E as gp}from"../chunks/format-time.8258873a.js";import{B as pT}from"../chunks/button.0b50a4b4.js";import{D as mT}from"../chunks/drawer.03c324ce.js";import{T as ub}from"../chunks/tooltip.65a7fa6c.js";import{B as br}from"../chunks/badge.d458ea0a.js";import{C as xs}from"../chunks/code-block.c796ec58.js";import{L as Nr}from"../chunks/link.8030aa06.js";import{j as yp,k as _p}from"../chunks/format-event-attributes.f236b430.js";import{i as gT,g as hr,q as bp,h as wp,l as gi}from"../chunks/route-for.31ffa191.js";import{t as $p}from"../chunks/to-time-difference.be87d1bf.js";import{P as cb}from"../chunks/pagination.46c6618d.js";import{T as Ts,a as Es}from"../chunks/table-header-row.5433617e.js";import{T as Al}from"../chunks/table-row.e455010e.js";import{W as yT}from"../chunks/workflow-status.fc3d74d1.js";import{C as Cn}from"../chunks/index.408ca409.js";import{f as fb}from"../chunks/menu.7e3d54af.js";import{A as md}from"../chunks/alert.dcbef44a.js";import{w as _T}from"../chunks/task-queue-compatibility.cf5696f8.js";import{b as hb,E as bT,a as wT}from"../chunks/event-summary-table.ec2c2f15.js";import{a as gd}from"../chunks/auth-user.6f15fe0f.js";import{a as yd,b as db,c as zo,e as vb}from"../chunks/events-service.1c8a7c41.js";import{n as $T}from"../chunks/namespaces.65099960.js";import{h as kT}from"../chunks/has.f5323580.js";import{a as ST}from"../chunks/is.ba28a1ea.js";import{W as xT}from"../chunks/workflow-json-navigator.d40ac0c8.js";import{T as TT}from"../chunks/toggle-switch.0d2aaadb.js";function ET(e){ob(1,arguments);var n=lb(e);return n.setSeconds(0,0),n}function DT(e){ob(1,arguments);var n=lb(e);return n.setSeconds(59,999),n}/** * vis-timeline and vis-graph2d * https://visjs.github.io/vis-timeline/ * diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js index 041cf63087..4cb5161818 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js @@ -1 +1 @@ -import{S as ke,b as ve,a as Ie,C,D,E as P,j as _,g as b,F as W,K as G,i as mt,A as te,Z as le,m as j,c as L,p as Q,q as J,d as O,k as g,u as K,f as A,L as N,_ as se,e as we,z as pe,h as me,a7 as Me,w as Y,x as z,n as re,s as oo,a5 as oe,y as Se,o as dt,a6 as Ue,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as bt}from"../chunks/index.6779d4e2.js";import{p as qe}from"../chunks/stores.6ee4c480.js";import{L as ro}from"../chunks/loading.a6f9064e.js";import{d as no,f as kt}from"../chunks/menu.7e3d54af.js";import{T as lo}from"../chunks/toggle-switch.0d2aaadb.js";import{T as Ne}from"../chunks/tooltip.65a7fa6c.js";import{t as k}from"../chunks/translate.29a4bc43.js";import{a as De,e as Qe}from"../chunks/event-view.446dd84e.js";import{w as vt}from"../chunks/index.1302fd9b.js";import{I as Be}from"../chunks/input.86f6e192.js";import{R as so,a as ao}from"../chunks/radio-input.d451f838.js";import{S as fo,O as io}from"../chunks/option.3359f258.js";import{R as $e,A as Je}from"../chunks/workflow-actions.6f88149c.js";import{r as It,e as Pe,t as Ye,i as uo,f as co}from"../chunks/events-service.ea4ce52d.js";import{B as po}from"../chunks/button.0b50a4b4.js";import{C as mo}from"../chunks/code-block.c796ec58.js";import{B as Fe}from"../chunks/badge.d458ea0a.js";import{I as _o}from"../chunks/icon.a4e81b70.js";import{M as go}from"../chunks/menu-divider.def6f259.js";import{M as Ee}from"../chunks/modal.118648f9.js";import{S as wo}from"../chunks/split-button.9aad1ebf.js";import{w as ho,t as $o,c as bo,s as ko,r as vo,f as Io}from"../chunks/workflow-service.fd47d996.js";import{a as Tt}from"../chunks/auth-user.6f15fe0f.js";import{c as To}from"../chunks/core-user.1973d180.js";import{p as Et,i as Eo,c as Rt}from"../chunks/data-encoder-config.37ceca8b.js";import{p as Ro}from"../chunks/persist-store.d8264c86.js";import{s as yo}from"../chunks/settings.b49a4593.js";import{t as Ve}from"../chunks/toaster.ef510498.js";import{r as ge,w as We,i as Ao}from"../chunks/workflow-run.4e335848.js";import{w as Co,a as Do,f as ze}from"../chunks/workflow-terminate-enabled.ed0d90c2.js";import{W as Po}from"../chunks/workflow-status.fc3d74d1.js";import{A as yt}from"../chunks/alert.dcbef44a.js";import{C as Ge,g as Wo,a as So,b as Vo}from"../chunks/pollers-service.1d9f1daf.js";import{C as Mo}from"../chunks/index.408ca409.js";import{L as At}from"../chunks/link.8030aa06.js";import{T as Uo,a as qo,b as Te}from"../chunks/tab.9e7175ff.js";import{w as No}from"../chunks/workflows.5bb4bd2c.js";import{h as Bo}from"../chunks/has.f5323580.js";import{r as Ke,g as be,h as Re,i as ye,j as Ae,k as Ce}from"../chunks/route-for.cec09c4c.js";import{g as Fo,a as Ho,b as Lo,p as Oo,c as jo}from"../chunks/task-queue-compatibility.cf5696f8.js";import{c as Qo,a as Jo,d as Yo}from"../chunks/decode-payload.727281ed.js";import{g as zo,a as Go}from"../chunks/get-codec.658caf67.js";function Ko(n){let o,e;return o=new lo({props:{label:k("auto-refresh"),labelPosition:"left",id:"autorefresh",checked:n[1]}}),o.$on("change",function(){mt(n[0])&&n[0].apply(this,arguments)}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){n=t;const l={};r&2&&(l.checked=n[1]),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Zo(n){let o,e;return o=new Ne({props:{bottomLeft:!0,text:k("auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Ko]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,[r]){const l={};r&11&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Xo(n,o,e){let t,r;G(n,De,s=>e(2,r=s));let{onChange:l}=o;return n.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},n.$$.update=()=>{n.$$.dirty&4&&e(1,t=r==="on")},[l,t,r]}class xo extends ke{constructor(o){super(),ve(this,o,Xo,Zo,Ie,{onChange:0})}}function Ze(n,o,e){const t=n.slice();return t[7]=o[e].value,t[8]=o[e].label,t}function Xe(n,o,e){const t=n.slice();return t[11]=o[e],t}function xe(n){let o,e;return o=new ao({props:{id:"reset-event-"+n[11].id,value:n[11].id,label:n[11].id+" - "+n[11].eventType}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&8&&(l.id="reset-event-"+t[11].id),r&8&&(l.value=t[11].id),r&8&&(l.label=t[11].id+" - "+t[11].eventType),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function er(n){let o,e,t=n[3],r=[];for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sle(r,"value",u));function m(d){n[6](d)}let h={id:"reset-reason",label:k("reason")};return n[1]!==void 0&&(h.value=n[1]),a=new Be({props:h}),te.push(()=>le(a,"value",m)),{c(){o=j("div"),C(e.$$.fragment),t=L(),C(r.$$.fragment),s=L(),C(a.$$.fragment),this.h()},l(d){o=Q(d,"DIV",{class:!0});var $=J(o);D(e.$$.fragment,$),t=O($),D(r.$$.fragment,$),s=O($),D(a.$$.fragment,$),$.forEach(g),this.h()},h(){K(o,"class","flex w-full flex-col gap-4")},m(d,$){A(d,o,$),P(e,o,null),N(o,t),P(r,o,null),N(o,s),P(a,o,null),p=!0},p(d,[$]){const R={};$&4&&(R.group=d[2]),$&16392&&(R.$$scope={dirty:$,ctx:d}),e.$set(R);const H={};$&16384&&(H.$$scope={dirty:$,ctx:d}),!l&&$&1&&(l=!0,H.value=d[0],se(()=>l=!1)),r.$set(H);const T={};!f&&$&2&&(f=!0,T.value=d[1],se(()=>f=!1)),a.$set(T)},i(d){p||(_(e.$$.fragment,d),_(r.$$.fragment,d),_(a.$$.fragment,d),p=!0)},o(d){b(e.$$.fragment,d),b(r.$$.fragment,d),b(a.$$.fragment,d),p=!1},d(d){d&&g(o),W(e),W(r),W(a)}}}function nr(n,o,e){let t;G(n,It,u=>e(3,t=u));let{resetReapplyType:r=$e.Unspecified}=o,{reason:l=""}=o,{eventId:s}=o;const a=[{value:$e.Unspecified,label:k("workflows","reset-reapply-all")},{value:$e.Signal,label:k("workflows","reset-reapply-signals-only")},{value:$e.None,label:k("workflows","reset-reapply-none")}];function f(u){r=u,e(0,r)}function p(u){l=u,e(1,l)}return n.$$set=u=>{"resetReapplyType"in u&&e(0,r=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[r,l,s,t,a,f,p]}class lr extends ke{constructor(o){super(),ve(this,o,nr,rr,Ie,{resetReapplyType:0,reason:1,eventId:2})}}const Ct=Ro("resetWorkflows",{}),sr=n=>!n.disableWriteActions&&!n.workflowResetDisabled,ar=n=>!n.disableWriteActions&&!n.workflowSignalDisabled;function tt(n,o,e){const t=n.slice();return t[65]=o[e].onClick,t[66]=o[e].destructive,t[67]=o[e].label,t[68]=o[e].allowed,t[69]=o[e].testId,t[70]=o[e].tooltip,t}function fr(n){let o,e;return o=new Ne({props:{bottomRight:!0,width:200,text:n[2],hide:n[3],$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&4&&(l.text=t[2]),r[0]&8&&(l.hide=t[3]),r[0]&520|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ir(n){let o,e;return o=new wo({props:{id:"workflow-actions",position:"right",disabled:n[18],primaryActionDisabled:!n[19]||n[0],label:k("workflows","request-cancellation"),menuLabel:k("workflows","workflow-actions"),$$slots:{default:[dr]},$$scope:{ctx:n}}}),o.$on("click",n[41]),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&262144&&(l.disabled=t[18]),r[0]&524289&&(l.primaryActionDisabled=!t[19]||t[0]),r[0]&131072|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ur(n){let o=k("workflows","reset")+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p:re,d(t){t&&g(e)}}}function cr(n){let o,e;return o=new po({props:{"aria-label":k("workflows","reset"),disabled:!n[3],variant:"primary",$$slots:{default:[ur]},$$scope:{ctx:n}}}),o.$on("click",n[42]),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&8&&(l.disabled=!t[3]),r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ot(n){let o,e;return o=new go({}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function pr(n){let o=n[67]+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p(t,r){r[0]&131072&&o!==(o=t[67]+"")&&Se(e,o)},d(t){t&&g(e)}}}function mr(n){let o,e,t;return o=new no({props:{destructive:n[66],disabled:!n[68],"data-testid":n[69],$$slots:{default:[pr]},$$scope:{ctx:n}}}),o.$on("click",function(){mt(n[65])&&n[65].apply(this,arguments)}),{c(){C(o.$$.fragment),e=L()},l(r){D(o.$$.fragment,r),e=O(r)},m(r,l){P(o,r,l),A(r,e,l),t=!0},p(r,l){n=r;const s={};l[0]&131072&&(s.destructive=n[66]),l[0]&131072&&(s.disabled=!n[68]),l[0]&131072&&(s["data-testid"]=n[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:n}),o.$set(s)},i(r){t||(_(o.$$.fragment,r),t=!0)},o(r){b(o.$$.fragment,r),t=!1},d(r){W(o,r),r&&g(e)}}}function rt(n){let o,e,t,r=n[66]&&ot();return e=new Ne({props:{text:n[70],hide:!n[70],width:200,left:!0,$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){r&&r.c(),o=L(),C(e.$$.fragment)},l(l){r&&r.l(l),o=O(l),D(e.$$.fragment,l)},m(l,s){r&&r.m(l,s),A(l,o,s),P(e,l,s),t=!0},p(l,s){l[66]?r?s[0]&131072&&_(r,1):(r=ot(),r.c(),_(r,1),r.m(o.parentNode,o)):r&&(pe(),b(r,1,1,()=>{r=null}),me());const a={};s[0]&131072&&(a.text=l[70]),s[0]&131072&&(a.hide=!l[70]),s[0]&131072|s[2]&2048&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){t||(_(r),_(e.$$.fragment,l),t=!0)},o(l){b(r),b(e.$$.fragment,l),t=!1},d(l){r&&r.d(l),l&&g(o),W(e,l)}}}function dr(n){let o,e,t=n[17],r=[];for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sle(o,"eventId",s)),te.push(()=>le(o,"resetReapplyType",a)),te.push(()=>le(o,"reason",f)),{c(){C(o.$$.fragment)},l(u){D(o.$$.fragment,u)},m(u,i){P(o,u,i),l=!0},p(u,i){const m={};!e&&i[0]&8192&&(e=!0,m.eventId=u[13],se(()=>e=!1)),!t&&i[0]&4096&&(t=!0,m.resetReapplyType=u[12],se(()=>t=!1)),!r&&i[0]&16384&&(r=!0,m.reason=u[14],se(()=>r=!1)),o.$set(m)},i(u){l||(_(o.$$.fragment,u),l=!0)},o(u){b(o.$$.fragment,u),l=!1},d(u){W(o,u)}}}function wr(n){let o,e=k("workflows","cancel-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function hr(n){let o,e=k("workflows","cancel-modal-confirmation")+"",t;return{c(){o=j("p"),t=Y(e)},l(r){o=Q(r,"P",{});var l=J(o);t=z(l,e),l.forEach(g)},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function $r(n){let o,e=k("workflows","terminate-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function br(n){let o,e,t=k("workflows","terminate-modal-confirmation")+"",r,l,s,a,f;function p(i){n[50](i)}let u={id:"workflow-termination-reason",class:"mt-4",placeholder:k("reason-placeholder"),label:k("reason-placeholder"),labelHidden:!0};return n[4]!==void 0&&(u.value=n[4]),s=new Be({props:u}),te.push(()=>le(s,"value",p)),{c(){o=j("div"),e=j("p"),r=Y(t),l=L(),C(s.$$.fragment),this.h()},l(i){o=Q(i,"DIV",{slot:!0});var m=J(o);e=Q(m,"P",{});var h=J(e);r=z(h,t),h.forEach(g),l=O(m),D(s.$$.fragment,m),m.forEach(g),this.h()},h(){K(o,"slot","content")},m(i,m){A(i,o,m),N(o,e),N(e,r),N(o,l),P(s,o,null),f=!0},p(i,m){const h={};!a&&m[0]&16&&(a=!0,h.value=i[4],se(()=>a=!1)),s.$set(h)},i(i){f||(_(s.$$.fragment,i),f=!0)},o(i){b(s.$$.fragment,i),f=!1},d(i){i&&g(o),W(s)}}}function kr(n){let o,e=k("workflows","signal-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function vr(n){let o,e,t,r,l,s,a=k("workflows","signal-payload-input-label")+"",f,p,u,i=k("workflows","signal-payload-input-label-hint")+"",m,h,d,$;function R(E){n[53](E)}let H={id:"signal-name",label:k("workflows","signal-name-label"),required:!0};n[6]!==void 0&&(H.value=n[6]),e=new Be({props:H}),te.push(()=>le(e,"value",R));let T={class:"max-h-80 overflow-y-scroll overscroll-contain",content:n[5],editable:!0,copyable:!1};return d=new mo({props:T}),n[54](d),d.$on("change",n[26]),{c(){o=j("div"),C(e.$$.fragment),r=L(),l=j("div"),s=j("span"),f=Y(a),p=L(),u=j("span"),m=Y(i),h=L(),C(d.$$.fragment),this.h()},l(E){o=Q(E,"DIV",{slot:!0,class:!0});var M=J(o);D(e.$$.fragment,M),r=O(M),l=Q(M,"DIV",{});var U=J(l);s=Q(U,"SPAN",{class:!0});var y=J(s);f=z(y,a),y.forEach(g),p=O(U),u=Q(U,"SPAN",{class:!0});var I=J(u);m=z(I,i),I.forEach(g),h=O(U),D(d.$$.fragment,U),U.forEach(g),M.forEach(g),this.h()},h(){K(s,"class","font-secondary text-sm font-medium"),K(u,"class","font-secondary text-xs font-light italic"),K(o,"slot","content"),K(o,"class","flex flex-col gap-4")},m(E,M){A(E,o,M),P(e,o,null),N(o,r),N(o,l),N(l,s),N(s,f),N(l,p),N(l,u),N(u,m),N(l,h),P(d,l,null),$=!0},p(E,M){const U={};!t&&M[0]&64&&(t=!0,U.value=E[6],se(()=>t=!1)),e.$set(U);const y={};M[0]&32&&(y.content=E[5]),d.$set(y)},i(E){$||(_(e.$$.fragment,E),_(d.$$.fragment,E),$=!0)},o(E){b(e.$$.fragment,E),b(d.$$.fragment,E),$=!1},d(E){E&&g(o),W(e),n[54](null),W(d)}}}function Ir(n){let o,e,t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E;const M=[ir,fr],U=[];function y(c,S){return c[1]?0:1}o=y(n),e=U[o]=M[o](n);function I(c){n[46](c)}function q(c){n[47](c)}let B={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:k("confirm"),cancelText:k("cancel"),confirmDisabled:!n[20],$$slots:{content:[gr],title:[_r]},$$scope:{ctx:n}};n[11]!==void 0&&(B.error=n[11]),n[9]!==void 0&&(B.open=n[9]),r=new Ee({props:B}),te.push(()=>le(r,"error",I)),te.push(()=>le(r,"open",q)),r.$on("confirmModal",n[28]),r.$on("cancelModal",n[23]);function ae(c){n[48](c)}function fe(c){n[49](c)}let v={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:k("confirm"),cancelText:k("cancel"),loading:n[15],confirmType:"destructive",$$slots:{content:[hr],title:[wr]},$$scope:{ctx:n}};n[11]!==void 0&&(v.error=n[11]),n[7]!==void 0&&(v.open=n[7]),f=new Ee({props:v}),te.push(()=>le(f,"error",ae)),te.push(()=>le(f,"open",fe)),f.$on("confirmModal",n[25]);function V(c){n[51](c)}function F(c){n[52](c)}let X={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:k("workflows","terminate"),cancelText:k("cancel"),confirmType:"destructive",$$slots:{content:[br],title:[$r]},$$scope:{ctx:n}};n[11]!==void 0&&(X.error=n[11]),n[8]!==void 0&&(X.open=n[8]),m=new Ee({props:X}),te.push(()=>le(m,"error",V)),te.push(()=>le(m,"open",F)),m.$on("cancelModal",n[21]),m.$on("confirmModal",n[24]);function ne(c){n[55](c)}function x(c){n[56](c)}let ee={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:k("submit"),cancelText:k("cancel"),confirmDisabled:!n[6],$$slots:{content:[vr],title:[kr]},$$scope:{ctx:n}};return n[11]!==void 0&&(ee.error=n[11]),n[10]!==void 0&&(ee.open=n[10]),R=new Ee({props:ee}),te.push(()=>le(R,"error",ne)),te.push(()=>le(R,"open",x)),R.$on("cancelModal",n[22]),R.$on("confirmModal",n[27]),{c(){e.c(),t=L(),C(r.$$.fragment),a=L(),C(f.$$.fragment),i=L(),C(m.$$.fragment),$=L(),C(R.$$.fragment)},l(c){e.l(c),t=O(c),D(r.$$.fragment,c),a=O(c),D(f.$$.fragment,c),i=O(c),D(m.$$.fragment,c),$=O(c),D(R.$$.fragment,c)},m(c,S){U[o].m(c,S),A(c,t,S),P(r,c,S),A(c,a,S),P(f,c,S),A(c,i,S),P(m,c,S),A(c,$,S),P(R,c,S),E=!0},p(c,S){let de=o;o=y(c),o===de?U[o].p(c,S):(pe(),b(U[de],1,1,()=>{U[de]=null}),me(),e=U[o],e?e.p(c,S):(e=U[o]=M[o](c),e.c()),_(e,1),e.m(t.parentNode,t));const ce={};S[0]&1048576&&(ce.confirmDisabled=!c[20]),S[0]&28672|S[2]&2048&&(ce.$$scope={dirty:S,ctx:c}),!l&&S[0]&2048&&(l=!0,ce.error=c[11],se(()=>l=!1)),!s&&S[0]&512&&(s=!0,ce.open=c[9],se(()=>s=!1)),r.$set(ce);const he={};S[0]&32768&&(he.loading=c[15]),S[2]&2048&&(he.$$scope={dirty:S,ctx:c}),!p&&S[0]&2048&&(p=!0,he.error=c[11],se(()=>p=!1)),!u&&S[0]&128&&(u=!0,he.open=c[7],se(()=>u=!1)),f.$set(he);const ie={};S[0]&16|S[2]&2048&&(ie.$$scope={dirty:S,ctx:c}),!h&&S[0]&2048&&(h=!0,ie.error=c[11],se(()=>h=!1)),!d&&S[0]&256&&(d=!0,ie.open=c[8],se(()=>d=!1)),m.$set(ie);const ue={};S[0]&64&&(ue.confirmDisabled=!c[6]),S[0]&65632|S[2]&2048&&(ue.$$scope={dirty:S,ctx:c}),!H&&S[0]&2048&&(H=!0,ue.error=c[11],se(()=>H=!1)),!T&&S[0]&1024&&(T=!0,ue.open=c[10],se(()=>T=!1)),R.$set(ue)},i(c){E||(_(e),_(r.$$.fragment,c),_(f.$$.fragment,c),_(m.$$.fragment,c),_(R.$$.fragment,c),E=!0)},o(c){b(e),b(r.$$.fragment,c),b(f.$$.fragment,c),b(m.$$.fragment,c),b(R.$$.fragment,c),E=!1},d(c){U[o].d(c),c&&g(t),W(r,c),c&&g(a),W(f,c),c&&g(i),W(m,c),c&&g($),W(R,c)}}}function Tr(n,o,e){let t,r,l,s,a,f,p,u,i,m,h,d=re,$=()=>(d(),d=oo(de,w=>e(20,h=w)),de),R,H,T,E;G(n,It,w=>e(39,u=w)),G(n,ge,w=>e(57,i=w)),G(n,Tt,w=>e(58,m=w)),G(n,Et,w=>e(59,R=w)),G(n,Eo,w=>e(60,H=w)),G(n,Rt,w=>e(61,T=w)),G(n,qe,w=>e(40,E=w)),n.$$.on_destroy.push(()=>d());var M,U,y;let{workflow:I}=o,{namespace:q}=o,{cancelInProgress:B}=o,{isRunning:ae}=o;const fe=()=>T?'{"metadata": {"encoding": ""}, "data": ""}':"";let v="",V=fe(),F="",X=!1,ne=!1,x=!1,ee=!1,c="",S=$e.Unspecified,de=vt();$();let ce,he=!1,ie,ue;const Pt=()=>{e(4,v="")},He=()=>{e(5,V=fe()),e(6,F=""),ue==null||ue.resetView(V)},Le=()=>{e(12,S=$e.Unspecified),oe(de,h=void 0,h),e(14,ce=void 0)},Wt=async()=>{e(8,ne=!1),oe(ge,i=Date.now(),i),Ve.push({id:"workflow-termination-success-toast",message:k("workflows","terminate-success")})},St=w=>{var Z;e(4,v=""),e(11,c=(Z=w==null?void 0:w.message)!==null&&Z!==void 0?Z:k("unknown-error"))},Vt=()=>{e(11,c=""),I.canBeTerminated&&$o({workflow:I,namespace:q,reason:ze({action:Je.Terminate,reason:v,email:m.email}),identity:m.email}).then(Wt).catch(St)},Mt=async()=>{var w;e(15,he=!0),e(11,c="");try{await bo({namespace:q,workflowId:I.id,runId:I.runId}),e(7,X=!1),e(15,he=!1),oe(ge,i=Date.now(),i),Ve.push({id:"workflow-cancelation-success-toast",message:k("workflows","cancel-success")})}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}},Ut=w=>{e(5,V=w.detail)},qt=async()=>{var w;e(11,c="");try{await ko({namespace:q,workflowId:I.id,runId:I.runId,signalInput:V,signalName:F,settings:{...E.data.settings,codec:{endpoint:T,includeCredentials:H,passAccessToken:R}},accessToken:m.accessToken}),e(10,ee=!1),oe(ge,i=Date.now(),i),Ve.push({message:k("workflows","signal-success"),id:"workflow-signal-success-toast"}),He()}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}},Nt=async()=>{var w;e(11,c="");try{const Z=await vo({namespace:q,workflowId:I.id,runId:I.runId,eventId:h,reason:ze({action:Je.Reset,reason:ce,email:m.email}),resetReapplyType:S});Z&&Z.runId&&Ct.update(to=>({...to,[I.runId]:Z.runId})),e(9,x=!1),oe(ge,i=Date.now(),i)}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}Le()};let Oe,je=To();G(n,je,w=>e(38,p=w));const Bt=()=>e(7,X=!0),Ft=()=>e(9,x=!0);function Ht(w){de=w,$(e(13,de))}function Lt(w){S=w,e(12,S)}function Ot(w){ce=w,e(14,ce)}function jt(w){c=w,e(11,c)}function Qt(w){x=w,e(9,x),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}function Jt(w){c=w,e(11,c)}function Yt(w){X=w,e(7,X)}function zt(w){v=w,e(4,v)}function Gt(w){c=w,e(11,c)}function Kt(w){ne=w,e(8,ne),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}function Zt(w){F=w,e(6,F)}function Xt(w){te[w?"unshift":"push"](()=>{ue=w,e(16,ue)})}function xt(w){c=w,e(11,c)}function eo(w){ee=w,e(10,ee),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}return n.$$set=w=>{"workflow"in w&&e(30,I=w.workflow),"namespace"in w&&e(31,q=w.namespace),"cancelInProgress"in w&&e(0,B=w.cancelInProgress),"isRunning"in w&&e(1,ae=w.isRunning)},n.$$.update=()=>{n.$$.dirty[1]&512&&e(19,t=Co(E.data.settings)),n.$$.dirty[1]&512&&e(36,r=ar(E.data.settings)),n.$$.dirty[1]&512&&e(35,l=Do(E.data.settings)),n.$$.dirty[1]&512&&e(37,s=sr(E.data.settings)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&326&&(s?s&&(e(32,M=I==null?void 0:I.pendingChildren)===null||M===void 0?void 0:M.length)>0?e(2,ie=k("workflows","reset-disabled-pending-children")):s&&(e(33,U=I==null?void 0:I.pendingChildren)===null||U===void 0?void 0:U.length)===0&&u.length===0&&e(2,ie=k("workflows","reset-disabled-no-events")):e(2,ie=k("workflows","reset-disabled"))),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&328&&e(3,a=s&&(e(34,y=I==null?void 0:I.pendingChildren)===null||y===void 0?void 0:y.length)===0&&u.length>0),n.$$.dirty[0]&12|n.$$.dirty[1]&48&&e(17,Oe=[{label:k("workflows","reset"),onClick:()=>e(9,x=!0),testId:"reset-button",allowed:a,tooltip:a?"":ie},{label:k("workflows","signal"),onClick:()=>e(10,ee=!0),testId:"signal-button",allowed:r,tooltip:r?"":k("workflows","signal-disabled")},{label:k("workflows","terminate"),onClick:()=>e(8,ne=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":k("workflows","terminate-disabled")}]),n.$$.dirty[1]&129&&e(18,f=p.namespaceWriteDisabled(q)||!ho(yo))},[B,ae,ie,a,v,V,F,X,ne,x,ee,c,S,de,ce,he,ue,Oe,f,t,h,Pt,He,Le,Vt,Mt,Ut,qt,Nt,je,I,q,M,U,y,l,r,s,p,u,E,Bt,Ft,Ht,Lt,Ot,jt,Qt,Jt,Yt,zt,Gt,Kt,Zt,Xt,xt,eo]}class Er extends ke{constructor(o){super(),ve(this,o,Tr,Ir,Ie,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const Rr=(n,o)=>{var r;const e=n==="Running",t=(r=o==null?void 0:o.end)==null?void 0:r.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&t},nt=n=>{const o=n==null?void 0:n.indexOf("?");return o>-1?n.slice(0,o):n},_e=(n,o,e=!1)=>{const t=nt(n).split("/"),r=nt(o).split("/");if(e&&t.length!==r.length)return!1;for(let l=0;l{t=gt(o,kt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){l&&g(o),W(e)}}}function Wr(n){let o=k("workflows","cancel-request-sent-description")+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p:re,d(t){t&&g(e)}}}function ut(n){let o,e,t,r;return e=new yt({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:k("workflows","reset-success-alert-title"),$$slots:{default:[Vr]},$$scope:{ctx:n}}}),{c(){o=j("div"),C(e.$$.fragment),this.h()},l(l){o=Q(l,"DIV",{class:!0});var s=J(o);D(e.$$.fragment,s),s.forEach(g),this.h()},h(){K(o,"class","mb-4")},m(l,s){A(l,o,s),P(e,o,null),r=!0},p(l,s){const a={};s&134217777&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){r||(_(e.$$.fragment,l),t||_t(()=>{t=gt(o,kt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){l&&g(o),W(e)}}}function Sr(n){let o;return{c(){o=Y("here")},l(e){o=z(e,"here")},m(e,t){A(e,o,t)},d(e){e&&g(o)}}}function Vr(n){var l,s,a,f;let o,e,t,r;return e=new At({props:{href:be({namespace:n[0],workflow:(s=(l=n[4])==null?void 0:l.workflow)==null?void 0:s.id,run:n[5][(f=(a=n[4])==null?void 0:a.workflow)==null?void 0:f.runId]}),$$slots:{default:[Sr]},$$scope:{ctx:n}}}),{c(){o=Y("You can find the resulting Workflow Execution "),C(e.$$.fragment),t=Y(".")},l(p){o=z(p,"You can find the resulting Workflow Execution "),D(e.$$.fragment,p),t=z(p,".")},m(p,u){A(p,o,u),P(e,p,u),A(p,t,u),r=!0},p(p,u){var m,h,d,$;const i={};u&49&&(i.href=be({namespace:p[0],workflow:(h=(m=p[4])==null?void 0:m.workflow)==null?void 0:h.id,run:p[5][($=(d=p[4])==null?void 0:d.workflow)==null?void 0:$.runId]})),u&134217728&&(i.$$scope={dirty:u,ctx:p}),e.$set(i)},i(p){r||(_(e.$$.fragment,p),r=!0)},o(p){b(e.$$.fragment,p),r=!1},d(p){p&&g(o),W(e,p),p&&g(t)}}}function Mr(n){var t;let o=((t=n[2])==null?void 0:t.historyEvents)+"",e;return{c(){e=Y(o)},l(r){e=z(r,o)},m(r,l){A(r,e,l)},p(r,l){var s;l&4&&o!==(o=((s=r[2])==null?void 0:s.historyEvents)+"")&&Se(e,o)},d(r){r&&g(e)}}}function Ur(n){let o,e;return o=new Fe({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Mr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134217732&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function qr(n){var t,r;let o=((r=(t=n[13])==null?void 0:t.pollers)==null?void 0:r.length)+"",e;return{c(){e=Y(o)},l(l){e=z(l,o)},m(l,s){A(l,e,s)},p(l,s){var a,f;s&8192&&o!==(o=((f=(a=l[13])==null?void 0:a.pollers)==null?void 0:f.length)+"")&&Se(e,o)},d(l){l&&g(e)}}}function Nr(n){let o,e;return o=new Fe({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[qr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134225920&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ct(n){let o,e;return o=new _o({props:{name:"canceled",width:20,height:20}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Br(n){var s,a;let o,e=((a=(s=n[2])==null?void 0:s.pendingActivities)==null?void 0:a.length)+"",t,r,l=n[11]&&ct();return{c(){l&&l.c(),o=L(),t=Y(e)},l(f){l&&l.l(f),o=O(f),t=z(f,e)},m(f,p){l&&l.m(f,p),A(f,o,p),A(f,t,p),r=!0},p(f,p){var u,i;f[11]?l?p&2048&&_(l,1):(l=ct(),l.c(),_(l,1),l.m(o.parentNode,o)):l&&(pe(),b(l,1,1,()=>{l=null}),me()),(!r||p&4)&&e!==(e=((i=(u=f[2])==null?void 0:u.pendingActivities)==null?void 0:i.length)+"")&&Se(t,e)},i(f){r||(_(l),r=!0)},o(f){b(l),r=!1},d(f){l&&l.d(f),f&&g(o),f&&g(t)}}}function Fr(n){let o,e;return o=new Fe({props:{type:n[11]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[Br]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&2048&&(l.type=t[11]?"warning":"blue"),r&134219780&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Hr(n){let o,e,t,r,l,s,a,f,p,u;return o=new Te({props:{label:k("workflows","history-tab"),id:"history-tab",href:be({...n[12]}),active:_e(n[15].url.pathname,be({...n[12]})),$$slots:{default:[Ur]},$$scope:{ctx:n}}}),t=new Te({props:{label:k("workflows","workers-tab"),id:"workers-tab",href:Re(n[12]),active:_e(n[15].url.pathname,Re(n[12])),$$slots:{default:[Nr]},$$scope:{ctx:n}}}),l=new Te({props:{label:k("workflows","pending-activities-tab"),id:"pending-activities-tab",href:ye(n[12]),active:_e(n[15].url.pathname,ye(n[12])),$$slots:{default:[Fr]},$$scope:{ctx:n}}}),a=new Te({props:{label:k("workflows","stack-trace-tab"),id:"stack-trace-tab",href:Ae(n[12]),active:_e(n[15].url.pathname,Ae(n[12]))}}),p=new Te({props:{label:k("workflows","queries-tab"),id:"queries-tab",href:Ce(n[12]),active:_e(n[15].url.pathname,Ce(n[12]))}}),{c(){C(o.$$.fragment),e=L(),C(t.$$.fragment),r=L(),C(l.$$.fragment),s=L(),C(a.$$.fragment),f=L(),C(p.$$.fragment)},l(i){D(o.$$.fragment,i),e=O(i),D(t.$$.fragment,i),r=O(i),D(l.$$.fragment,i),s=O(i),D(a.$$.fragment,i),f=O(i),D(p.$$.fragment,i)},m(i,m){P(o,i,m),A(i,e,m),P(t,i,m),A(i,r,m),P(l,i,m),A(i,s,m),P(a,i,m),A(i,f,m),P(p,i,m),u=!0},p(i,m){const h={};m&4096&&(h.href=be({...i[12]})),m&36864&&(h.active=_e(i[15].url.pathname,be({...i[12]}))),m&134217732&&(h.$$scope={dirty:m,ctx:i}),o.$set(h);const d={};m&4096&&(d.href=Re(i[12])),m&36864&&(d.active=_e(i[15].url.pathname,Re(i[12]))),m&134225920&&(d.$$scope={dirty:m,ctx:i}),t.$set(d);const $={};m&4096&&($.href=ye(i[12])),m&36864&&($.active=_e(i[15].url.pathname,ye(i[12]))),m&134219780&&($.$$scope={dirty:m,ctx:i}),l.$set($);const R={};m&4096&&(R.href=Ae(i[12])),m&36864&&(R.active=_e(i[15].url.pathname,Ae(i[12]))),a.$set(R);const H={};m&4096&&(H.href=Ce(i[12])),m&36864&&(H.active=_e(i[15].url.pathname,Ce(i[12]))),p.$set(H)},i(i){u||(_(o.$$.fragment,i),_(t.$$.fragment,i),_(l.$$.fragment,i),_(a.$$.fragment,i),_(p.$$.fragment,i),u=!0)},o(i){b(o.$$.fragment,i),b(t.$$.fragment,i),b(l.$$.fragment,i),b(a.$$.fragment,i),b(p.$$.fragment,i),u=!1},d(i){W(o,i),i&&g(e),W(t,i),i&&g(r),W(l,i),i&&g(s),W(a,i),i&&g(f),W(p,i)}}}function Lr(n){let o,e;return o=new qo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Hr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134264836&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Or(n){var ae,fe;let o,e,t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E,M,U;t=new At({props:{href:`${Ke({namespace:n[0]})}?${n[14]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[yr]},$$scope:{ctx:n}}}),f=new Mo({props:{copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title"),content:(ae=n[2])==null?void 0:ae.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),i=new Po({props:{status:(fe=n[2])==null?void 0:fe.status}});let y=n[8]&<(n),I=n[3]&&ft(n);R=new Er({props:{isRunning:n[3],cancelInProgress:n[10],workflow:n[2],namespace:n[0]}});let q=n[10]&&it(n),B=n[9]&&ut(n);return M=new Uo({props:{$$slots:{default:[Lr]},$$scope:{ctx:n}}}),{c(){o=j("header"),e=j("div"),C(t.$$.fragment),r=L(),l=j("div"),s=j("div"),a=j("h1"),C(f.$$.fragment),p=L(),u=j("div"),C(i.$$.fragment),m=L(),y&&y.c(),h=L(),d=j("div"),I&&I.c(),$=L(),C(R.$$.fragment),H=L(),q&&q.c(),T=L(),B&&B.c(),E=L(),C(M.$$.fragment),this.h()},l(v){o=Q(v,"HEADER",{class:!0});var V=J(o);e=Q(V,"DIV",{class:!0});var F=J(e);D(t.$$.fragment,F),F.forEach(g),r=O(V),l=Q(V,"DIV",{class:!0});var X=J(l);s=Q(X,"DIV",{class:!0});var ne=J(s);a=Q(ne,"H1",{"data-testid":!0,class:!0});var x=J(a);D(f.$$.fragment,x),x.forEach(g),p=O(ne),u=Q(ne,"DIV",{class:!0});var ee=J(u);D(i.$$.fragment,ee),m=O(ee),y&&y.l(ee),ee.forEach(g),ne.forEach(g),h=O(X),d=Q(X,"DIV",{class:!0});var c=J(d);I&&I.l(c),$=O(c),D(R.$$.fragment,c),c.forEach(g),X.forEach(g),H=O(V),q&&q.l(V),T=O(V),B&&B.l(V),E=O(V),D(M.$$.fragment,V),V.forEach(g),this.h()},h(){K(e,"class","mb-4 block"),K(a,"data-testid","workflow-id-heading"),K(a,"class","overflow-hidden text-2xl font-medium"),K(u,"class","flex flex-wrap items-center gap-4"),K(s,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),K(d,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),K(l,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),K(o,"class","mb-4 flex flex-col gap-1")},m(v,V){A(v,o,V),N(o,e),P(t,e,null),N(o,r),N(o,l),N(l,s),N(s,a),P(f,a,null),N(s,p),N(s,u),P(i,u,null),N(u,m),y&&y.m(u,null),N(l,h),N(l,d),I&&I.m(d,null),N(d,$),P(R,d,null),N(o,H),q&&q.m(o,null),N(o,T),B&&B.m(o,null),N(o,E),P(M,o,null),U=!0},p(v,[V]){var c,S;const F={};V&16385&&(F.href=`${Ke({namespace:v[0]})}?${v[14]}`),V&134217728&&(F.$$scope={dirty:V,ctx:v}),t.$set(F);const X={};V&4&&(X.content=(c=v[2])==null?void 0:c.id),f.$set(X);const ne={};V&4&&(ne.status=(S=v[2])==null?void 0:S.status),i.$set(ne),v[8]?y?(y.p(v,V),V&256&&_(y,1)):(y=lt(v),y.c(),_(y,1),y.m(u,null)):y&&(pe(),b(y,1,1,()=>{y=null}),me()),v[3]?I?(I.p(v,V),V&8&&_(I,1)):(I=ft(v),I.c(),_(I,1),I.m(d,$)):I&&(pe(),b(I,1,1,()=>{I=null}),me());const x={};V&8&&(x.isRunning=v[3]),V&1024&&(x.cancelInProgress=v[10]),V&4&&(x.workflow=v[2]),V&1&&(x.namespace=v[0]),R.$set(x),v[10]?q?(q.p(v,V),V&1024&&_(q,1)):(q=it(v),q.c(),_(q,1),q.m(o,T)):q&&(pe(),b(q,1,1,()=>{q=null}),me()),v[9]?B?(B.p(v,V),V&512&&_(B,1)):(B=ut(v),B.c(),_(B,1),B.m(o,E)):B&&(pe(),b(B,1,1,()=>{B=null}),me());const ee={};V&134264836&&(ee.$$scope={dirty:V,ctx:v}),M.$set(ee)},i(v){U||(_(t.$$.fragment,v),_(f.$$.fragment,v),_(i.$$.fragment,v),_(y),_(I),_(R.$$.fragment,v),_(q),_(B),_(M.$$.fragment,v),U=!0)},o(v){b(t.$$.fragment,v),b(f.$$.fragment,v),b(i.$$.fragment,v),b(y),b(I),b(R.$$.fragment,v),b(q),b(B),b(M.$$.fragment,v),U=!1},d(v){v&&g(o),W(t),W(f),W(i),y&&y.d(),I&&I.d(),W(R),q&&q.d(),B&&B.d(),W(M)}}}const pt=15e3;function jr(n,o,e){let t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E,M,U;G(n,We,F=>e(4,$=F)),G(n,Ct,F=>e(5,R=F)),G(n,Pe,F=>e(24,H=F)),G(n,ge,F=>e(25,T=F)),G(n,De,F=>e(26,E=F)),G(n,No,F=>e(14,M=F)),G(n,qe,F=>e(15,U=F));var y,I,q,B,ae;let{namespace:fe}=o,v;dt(()=>{a&&E==="on"&&(clearInterval(v),e(22,v=setInterval(()=>oe(ge,T=Date.now(),T),pt)))});const V=()=>{E==="on"?(oe(De,E="off",E),clearInterval(v)):(oe(ge,T=Date.now(),T),oe(De,E="on",E),clearInterval(v),e(22,v=setInterval(()=>oe(ge,T=Date.now(),T),pt)))};return Ue(()=>{clearInterval(v)}),n.$$set=F=>{"namespace"in F&&e(0,fe=F.namespace)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{workflow:t,workers:r,compatibility:l}=$,t,(e(13,r),e(4,$)),(e(23,l),e(4,$))),n.$$.dirty&5&&e(12,s={namespace:fe,workflow:t==null?void 0:t.id,run:t==null?void 0:t.runId}),n.$$.dirty&131088&&e(3,a=e(17,y=$==null?void 0:$.workflow)===null||y===void 0?void 0:y.isRunning),n.$$.dirty&262160&&e(11,f=["Terminated","TimedOut","Canceled"].includes(e(18,I=$.workflow)===null||I===void 0?void 0:I.status)),n.$$.dirty&4194312&&(a||clearInterval(v)),n.$$.dirty&17301520&&e(10,p=Rr(e(19,q=$==null?void 0:$.workflow)===null||q===void 0?void 0:q.status,H)),n.$$.dirty&1048624&&e(9,u=Bo(R,e(20,B=$==null?void 0:$.workflow)===null||B===void 0?void 0:B.runId)),n.$$.dirty&2097156&&e(8,i=e(21,ae=t==null?void 0:t.mostRecentWorkerVersionStamp)===null||ae===void 0?void 0:ae.useVersioning),n.$$.dirty&4&&e(1,m=Fo(t)),n.$$.dirty&8388608&&e(7,h=Ho(l)),n.$$.dirty&8388610&&e(6,d=Lo(l,m))},[fe,m,t,a,$,R,d,h,i,u,p,f,s,r,M,U,V,y,I,q,B,ae,v,l,H]}class Qr extends ke{constructor(o){super(),ve(this,o,jr,Or,Ie,{namespace:0})}}async function Jr({activity:n,namespace:o,settings:e,accessToken:t},{convertWithCodec:r=Qo,convertWithWebsocket:l=Jo,decodeAttributes:s=Yo,encoderEndpoint:a=Rt}={}){const f=zo(e,a),p=Go(e,Et),u={...e,codec:{...e==null?void 0:e.codec,endpoint:f,passAccessToken:p}},i=f?await r({attributes:n,namespace:o,settings:u,accessToken:t}):await l(n);return s(i)}const Yr=async({activity:n,namespace:o,settings:e,accessToken:t})=>await Jr({activity:n,namespace:o,settings:e,accessToken:t}),zr=async(n,o,e,t)=>{const r=(n==null?void 0:n.pendingActivities)??[],l=[];for(const s of r){const a=await Yr({activity:s,namespace:o,settings:e,accessToken:t});l.push(a)}return l};function Gr(n){let o,e,t;o=new Qr({props:{namespace:n[0].params.namespace}});const r=n[7].default,l=wt(r,n,n[6],null);return{c(){C(o.$$.fragment),e=L(),l&&l.c()},l(s){D(o.$$.fragment,s),e=O(s),l&&l.l(s)},m(s,a){P(o,s,a),A(s,e,a),l&&l.m(s,a),t=!0},p(s,a){const f={};a&1&&(f.namespace=s[0].params.namespace),o.$set(f),l&&l.p&&(!t||a&64)&&ht(l,r,s,s[6],t?bt(r,s[6],a,null):$t(s[6]),null)},i(s){t||(_(o.$$.fragment,s),_(l,s),t=!0)},o(s){b(o.$$.fragment,s),b(l,s),t=!1},d(s){W(o,s),s&&g(e),l&&l.d(s)}}}function Kr(n){let o,e;return o=new ro({}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p:re,i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Zr(n){let o,e,t,r;const l=[Kr,Gr],s=[];function a(f,p){return f[1].workflow?1:0}return e=a(n),t=s[e]=l[e](n),{c(){o=j("div"),t.c(),this.h()},l(f){o=Q(f,"DIV",{class:!0});var p=J(o);t.l(p),p.forEach(g),this.h()},h(){K(o,"class","flex h-full flex-col gap-6")},m(f,p){A(f,o,p),s[e].m(o,null),r=!0},p(f,[p]){let u=e;e=a(f),e===u?s[e].p(f,p):(pe(),b(s[u],1,1,()=>{s[u]=null}),me(),t=s[e],t?t.p(f,p):(t=s[e]=l[e](f),t.c()),_(t,1),t.m(o,null))},i(f){r||(_(t),r=!0)},o(f){b(t),r=!1},d(f){f&&g(o),s[e].d()}}}function Xr(n,o,e){let t,r,l,s,a,f,p,u,i,m;G(n,Pe,T=>e(8,s=T)),G(n,We,T=>e(1,a=T)),G(n,Ye,T=>e(9,f=T)),G(n,Qe,T=>e(10,p=T)),G(n,qe,T=>e(0,u=T)),G(n,ge,T=>e(5,i=T)),G(n,Tt,T=>e(11,m=T));let{$$slots:h={},$$scope:d}=o;const $=async(T,E)=>{var M;if(!((M=T==null?void 0:T.mostRecentWorkerVersionStamp)===null||M===void 0)&&M.useVersioning)return await So({queue:E,namespace:t})},R=async({namespace:T,workers:E,taskQueue:M})=>{if(!Oo(E.pollers))return;const y=jo(E.pollers);return await Vo({namespace:T,buildIds:y,taskQueue:M})},H=async(T,E,M)=>{const{settings:U}=u.data,y=await Io({namespace:T,workflowId:E,runId:M}),{taskQueue:I}=y,q=await Wo({queue:I,namespace:T}),B=await $(y,I),ae=await R({namespace:T,workers:q,taskQueue:I});y.pendingActivities=await zr(y,T,U,m==null?void 0:m.accessToken),oe(We,a={workflow:y,workers:q,compatibility:B,reachability:ae},a);const fe=await co({namespace:T,workflowId:E,runId:M,settings:U,accessToken:m==null?void 0:m.accessToken});oe(Pe,s=fe,s)};return dt(()=>{const T=u.url.searchParams.get("sort");T&&oe(Qe,p=T,p)}),Ue(()=>{oe(Ye,f=null,f),oe(We,a=Ao,a),oe(Pe,s=uo,s)}),n.$$set=T=>{"$$scope"in T&&e(6,d=T.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&e(4,{namespace:t,workflow:r,run:l}=u.params,t,(e(3,r),e(0,u)),(e(2,l),e(0,u))),n.$$.dirty&60&&H(t,r,l)},[u,a,l,r,t,i,d,h]}class xr extends ke{constructor(o){super(),ve(this,o,Xr,Zr,Ie,{})}}const Dt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},en=vt(Dt),tn=()=>{en.set(Dt)};function on(n){let o;const e=n[0].default,t=wt(e,n,n[1],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),o=!0},p(r,l){t&&t.p&&(!o||l&2)&&ht(t,e,r,r[1],o?bt(e,r[1],l,null):$t(r[1]),null)},i(r){o||(_(t,r),o=!0)},o(r){b(t,r),o=!1},d(r){t&&t.d(r)}}}function rn(n){let o,e;return o=new xr({props:{$$slots:{default:[on]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,[r]){const l={};r&2&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function nn(n,o,e){let{$$slots:t={},$$scope:r}=o;return Ue(()=>{tn()}),n.$$set=l=>{"$$scope"in l&&e(1,r=l.$$scope)},[t,r]}class zn extends ke{constructor(o){super(),ve(this,o,nn,rn,Ie,{})}}export{zn as default}; +import{S as ke,b as ve,a as Ie,C,D,E as P,j as _,g as b,F as W,K as G,i as mt,A as te,Z as le,m as j,c as L,p as Q,q as J,d as O,k as g,u as K,f as A,L as N,_ as se,e as we,z as pe,h as me,a7 as Me,w as Y,x as z,n as re,s as oo,a5 as oe,y as Se,o as dt,a6 as Ue,a3 as _t,a4 as gt,G as wt,H as ht,I as $t,J as bt}from"../chunks/index.6779d4e2.js";import{p as qe}from"../chunks/stores.b96d31b2.js";import{L as ro}from"../chunks/loading.a6f9064e.js";import{d as no,f as kt}from"../chunks/menu.7e3d54af.js";import{T as lo}from"../chunks/toggle-switch.0d2aaadb.js";import{T as Ne}from"../chunks/tooltip.65a7fa6c.js";import{t as k}from"../chunks/translate.29a4bc43.js";import{a as De,e as Qe}from"../chunks/event-view.446dd84e.js";import{w as vt}from"../chunks/index.1302fd9b.js";import{I as Be}from"../chunks/input.86f6e192.js";import{R as so,a as ao}from"../chunks/radio-input.d451f838.js";import{S as fo,O as io}from"../chunks/option.3359f258.js";import{R as $e,A as Je}from"../chunks/workflow-actions.6f88149c.js";import{r as It,e as Pe,t as Ye,i as uo,f as co}from"../chunks/events-service.1c8a7c41.js";import{B as po}from"../chunks/button.0b50a4b4.js";import{C as mo}from"../chunks/code-block.c796ec58.js";import{B as Fe}from"../chunks/badge.d458ea0a.js";import{I as _o}from"../chunks/icon.a4e81b70.js";import{M as go}from"../chunks/menu-divider.def6f259.js";import{M as Ee}from"../chunks/modal.118648f9.js";import{S as wo}from"../chunks/split-button.9aad1ebf.js";import{w as ho,t as $o,c as bo,s as ko,r as vo,f as Io}from"../chunks/workflow-service.2a5b4d45.js";import{a as Tt}from"../chunks/auth-user.6f15fe0f.js";import{c as To}from"../chunks/core-user.1973d180.js";import{p as Et,i as Eo,c as Rt}from"../chunks/data-encoder-config.37ceca8b.js";import{p as Ro}from"../chunks/persist-store.d8264c86.js";import{s as yo}from"../chunks/settings.b49a4593.js";import{t as Ve}from"../chunks/toaster.ef510498.js";import{r as ge,w as We,i as Ao}from"../chunks/workflow-run.4e335848.js";import{w as Co,a as Do,f as ze}from"../chunks/workflow-terminate-enabled.ed0d90c2.js";import{W as Po}from"../chunks/workflow-status.fc3d74d1.js";import{A as yt}from"../chunks/alert.dcbef44a.js";import{C as Ge,g as Wo,a as So,b as Vo}from"../chunks/pollers-service.d61f00b6.js";import{C as Mo}from"../chunks/index.408ca409.js";import{L as At}from"../chunks/link.8030aa06.js";import{T as Uo,a as qo,b as Te}from"../chunks/tab.9e7175ff.js";import{w as No}from"../chunks/workflows.8837af08.js";import{h as Bo}from"../chunks/has.f5323580.js";import{r as Ke,g as be,h as Re,i as ye,j as Ae,k as Ce}from"../chunks/route-for.31ffa191.js";import{g as Fo,a as Ho,b as Lo,p as Oo,c as jo}from"../chunks/task-queue-compatibility.cf5696f8.js";import{c as Qo,a as Jo,d as Yo}from"../chunks/decode-payload.4c64ec1f.js";import{g as zo,a as Go}from"../chunks/get-codec.658caf67.js";function Ko(n){let o,e;return o=new lo({props:{label:k("auto-refresh"),labelPosition:"left",id:"autorefresh",checked:n[1]}}),o.$on("change",function(){mt(n[0])&&n[0].apply(this,arguments)}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){n=t;const l={};r&2&&(l.checked=n[1]),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Zo(n){let o,e;return o=new Ne({props:{bottomLeft:!0,text:k("auto-refresh-tooltip",{interval:"15"}),$$slots:{default:[Ko]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,[r]){const l={};r&11&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Xo(n,o,e){let t,r;G(n,De,s=>e(2,r=s));let{onChange:l}=o;return n.$$set=s=>{"onChange"in s&&e(0,l=s.onChange)},n.$$.update=()=>{n.$$.dirty&4&&e(1,t=r==="on")},[l,t,r]}class xo extends ke{constructor(o){super(),ve(this,o,Xo,Zo,Ie,{onChange:0})}}function Ze(n,o,e){const t=n.slice();return t[7]=o[e].value,t[8]=o[e].label,t}function Xe(n,o,e){const t=n.slice();return t[11]=o[e],t}function xe(n){let o,e;return o=new ao({props:{id:"reset-event-"+n[11].id,value:n[11].id,label:n[11].id+" - "+n[11].eventType}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&8&&(l.id="reset-event-"+t[11].id),r&8&&(l.value=t[11].id),r&8&&(l.label=t[11].id+" - "+t[11].eventType),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function er(n){let o,e,t=n[3],r=[];for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sle(r,"value",u));function m(d){n[6](d)}let h={id:"reset-reason",label:k("reason")};return n[1]!==void 0&&(h.value=n[1]),a=new Be({props:h}),te.push(()=>le(a,"value",m)),{c(){o=j("div"),C(e.$$.fragment),t=L(),C(r.$$.fragment),s=L(),C(a.$$.fragment),this.h()},l(d){o=Q(d,"DIV",{class:!0});var $=J(o);D(e.$$.fragment,$),t=O($),D(r.$$.fragment,$),s=O($),D(a.$$.fragment,$),$.forEach(g),this.h()},h(){K(o,"class","flex w-full flex-col gap-4")},m(d,$){A(d,o,$),P(e,o,null),N(o,t),P(r,o,null),N(o,s),P(a,o,null),p=!0},p(d,[$]){const R={};$&4&&(R.group=d[2]),$&16392&&(R.$$scope={dirty:$,ctx:d}),e.$set(R);const H={};$&16384&&(H.$$scope={dirty:$,ctx:d}),!l&&$&1&&(l=!0,H.value=d[0],se(()=>l=!1)),r.$set(H);const T={};!f&&$&2&&(f=!0,T.value=d[1],se(()=>f=!1)),a.$set(T)},i(d){p||(_(e.$$.fragment,d),_(r.$$.fragment,d),_(a.$$.fragment,d),p=!0)},o(d){b(e.$$.fragment,d),b(r.$$.fragment,d),b(a.$$.fragment,d),p=!1},d(d){d&&g(o),W(e),W(r),W(a)}}}function nr(n,o,e){let t;G(n,It,u=>e(3,t=u));let{resetReapplyType:r=$e.Unspecified}=o,{reason:l=""}=o,{eventId:s}=o;const a=[{value:$e.Unspecified,label:k("workflows","reset-reapply-all")},{value:$e.Signal,label:k("workflows","reset-reapply-signals-only")},{value:$e.None,label:k("workflows","reset-reapply-none")}];function f(u){r=u,e(0,r)}function p(u){l=u,e(1,l)}return n.$$set=u=>{"resetReapplyType"in u&&e(0,r=u.resetReapplyType),"reason"in u&&e(1,l=u.reason),"eventId"in u&&e(2,s=u.eventId)},[r,l,s,t,a,f,p]}class lr extends ke{constructor(o){super(),ve(this,o,nr,rr,Ie,{resetReapplyType:0,reason:1,eventId:2})}}const Ct=Ro("resetWorkflows",{}),sr=n=>!n.disableWriteActions&&!n.workflowResetDisabled,ar=n=>!n.disableWriteActions&&!n.workflowSignalDisabled;function tt(n,o,e){const t=n.slice();return t[65]=o[e].onClick,t[66]=o[e].destructive,t[67]=o[e].label,t[68]=o[e].allowed,t[69]=o[e].testId,t[70]=o[e].tooltip,t}function fr(n){let o,e;return o=new Ne({props:{bottomRight:!0,width:200,text:n[2],hide:n[3],$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&4&&(l.text=t[2]),r[0]&8&&(l.hide=t[3]),r[0]&520|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ir(n){let o,e;return o=new wo({props:{id:"workflow-actions",position:"right",disabled:n[18],primaryActionDisabled:!n[19]||n[0],label:k("workflows","request-cancellation"),menuLabel:k("workflows","workflow-actions"),$$slots:{default:[dr]},$$scope:{ctx:n}}}),o.$on("click",n[41]),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&262144&&(l.disabled=t[18]),r[0]&524289&&(l.primaryActionDisabled=!t[19]||t[0]),r[0]&131072|r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ur(n){let o=k("workflows","reset")+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p:re,d(t){t&&g(e)}}}function cr(n){let o,e;return o=new po({props:{"aria-label":k("workflows","reset"),disabled:!n[3],variant:"primary",$$slots:{default:[ur]},$$scope:{ctx:n}}}),o.$on("click",n[42]),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r[0]&8&&(l.disabled=!t[3]),r[2]&2048&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ot(n){let o,e;return o=new go({}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function pr(n){let o=n[67]+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p(t,r){r[0]&131072&&o!==(o=t[67]+"")&&Se(e,o)},d(t){t&&g(e)}}}function mr(n){let o,e,t;return o=new no({props:{destructive:n[66],disabled:!n[68],"data-testid":n[69],$$slots:{default:[pr]},$$scope:{ctx:n}}}),o.$on("click",function(){mt(n[65])&&n[65].apply(this,arguments)}),{c(){C(o.$$.fragment),e=L()},l(r){D(o.$$.fragment,r),e=O(r)},m(r,l){P(o,r,l),A(r,e,l),t=!0},p(r,l){n=r;const s={};l[0]&131072&&(s.destructive=n[66]),l[0]&131072&&(s.disabled=!n[68]),l[0]&131072&&(s["data-testid"]=n[69]),l[0]&131072|l[2]&2048&&(s.$$scope={dirty:l,ctx:n}),o.$set(s)},i(r){t||(_(o.$$.fragment,r),t=!0)},o(r){b(o.$$.fragment,r),t=!1},d(r){W(o,r),r&&g(e)}}}function rt(n){let o,e,t,r=n[66]&&ot();return e=new Ne({props:{text:n[70],hide:!n[70],width:200,left:!0,$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){r&&r.c(),o=L(),C(e.$$.fragment)},l(l){r&&r.l(l),o=O(l),D(e.$$.fragment,l)},m(l,s){r&&r.m(l,s),A(l,o,s),P(e,l,s),t=!0},p(l,s){l[66]?r?s[0]&131072&&_(r,1):(r=ot(),r.c(),_(r,1),r.m(o.parentNode,o)):r&&(pe(),b(r,1,1,()=>{r=null}),me());const a={};s[0]&131072&&(a.text=l[70]),s[0]&131072&&(a.hide=!l[70]),s[0]&131072|s[2]&2048&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){t||(_(r),_(e.$$.fragment,l),t=!0)},o(l){b(r),b(e.$$.fragment,l),t=!1},d(l){r&&r.d(l),l&&g(o),W(e,l)}}}function dr(n){let o,e,t=n[17],r=[];for(let s=0;sb(r[s],1,1,()=>{r[s]=null});return{c(){for(let s=0;sle(o,"eventId",s)),te.push(()=>le(o,"resetReapplyType",a)),te.push(()=>le(o,"reason",f)),{c(){C(o.$$.fragment)},l(u){D(o.$$.fragment,u)},m(u,i){P(o,u,i),l=!0},p(u,i){const m={};!e&&i[0]&8192&&(e=!0,m.eventId=u[13],se(()=>e=!1)),!t&&i[0]&4096&&(t=!0,m.resetReapplyType=u[12],se(()=>t=!1)),!r&&i[0]&16384&&(r=!0,m.reason=u[14],se(()=>r=!1)),o.$set(m)},i(u){l||(_(o.$$.fragment,u),l=!0)},o(u){b(o.$$.fragment,u),l=!1},d(u){W(o,u)}}}function wr(n){let o,e=k("workflows","cancel-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function hr(n){let o,e=k("workflows","cancel-modal-confirmation")+"",t;return{c(){o=j("p"),t=Y(e)},l(r){o=Q(r,"P",{});var l=J(o);t=z(l,e),l.forEach(g)},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function $r(n){let o,e=k("workflows","terminate-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function br(n){let o,e,t=k("workflows","terminate-modal-confirmation")+"",r,l,s,a,f;function p(i){n[50](i)}let u={id:"workflow-termination-reason",class:"mt-4",placeholder:k("reason-placeholder"),label:k("reason-placeholder"),labelHidden:!0};return n[4]!==void 0&&(u.value=n[4]),s=new Be({props:u}),te.push(()=>le(s,"value",p)),{c(){o=j("div"),e=j("p"),r=Y(t),l=L(),C(s.$$.fragment),this.h()},l(i){o=Q(i,"DIV",{slot:!0});var m=J(o);e=Q(m,"P",{});var h=J(e);r=z(h,t),h.forEach(g),l=O(m),D(s.$$.fragment,m),m.forEach(g),this.h()},h(){K(o,"slot","content")},m(i,m){A(i,o,m),N(o,e),N(e,r),N(o,l),P(s,o,null),f=!0},p(i,m){const h={};!a&&m[0]&16&&(a=!0,h.value=i[4],se(()=>a=!1)),s.$set(h)},i(i){f||(_(s.$$.fragment,i),f=!0)},o(i){b(s.$$.fragment,i),f=!1},d(i){i&&g(o),W(s)}}}function kr(n){let o,e=k("workflows","signal-modal-title")+"",t;return{c(){o=j("h3"),t=Y(e),this.h()},l(r){o=Q(r,"H3",{slot:!0});var l=J(o);t=z(l,e),l.forEach(g),this.h()},h(){K(o,"slot","title")},m(r,l){A(r,o,l),N(o,t)},p:re,d(r){r&&g(o)}}}function vr(n){let o,e,t,r,l,s,a=k("workflows","signal-payload-input-label")+"",f,p,u,i=k("workflows","signal-payload-input-label-hint")+"",m,h,d,$;function R(E){n[53](E)}let H={id:"signal-name",label:k("workflows","signal-name-label"),required:!0};n[6]!==void 0&&(H.value=n[6]),e=new Be({props:H}),te.push(()=>le(e,"value",R));let T={class:"max-h-80 overflow-y-scroll overscroll-contain",content:n[5],editable:!0,copyable:!1};return d=new mo({props:T}),n[54](d),d.$on("change",n[26]),{c(){o=j("div"),C(e.$$.fragment),r=L(),l=j("div"),s=j("span"),f=Y(a),p=L(),u=j("span"),m=Y(i),h=L(),C(d.$$.fragment),this.h()},l(E){o=Q(E,"DIV",{slot:!0,class:!0});var M=J(o);D(e.$$.fragment,M),r=O(M),l=Q(M,"DIV",{});var U=J(l);s=Q(U,"SPAN",{class:!0});var y=J(s);f=z(y,a),y.forEach(g),p=O(U),u=Q(U,"SPAN",{class:!0});var I=J(u);m=z(I,i),I.forEach(g),h=O(U),D(d.$$.fragment,U),U.forEach(g),M.forEach(g),this.h()},h(){K(s,"class","font-secondary text-sm font-medium"),K(u,"class","font-secondary text-xs font-light italic"),K(o,"slot","content"),K(o,"class","flex flex-col gap-4")},m(E,M){A(E,o,M),P(e,o,null),N(o,r),N(o,l),N(l,s),N(s,f),N(l,p),N(l,u),N(u,m),N(l,h),P(d,l,null),$=!0},p(E,M){const U={};!t&&M[0]&64&&(t=!0,U.value=E[6],se(()=>t=!1)),e.$set(U);const y={};M[0]&32&&(y.content=E[5]),d.$set(y)},i(E){$||(_(e.$$.fragment,E),_(d.$$.fragment,E),$=!0)},o(E){b(e.$$.fragment,E),b(d.$$.fragment,E),$=!1},d(E){E&&g(o),W(e),n[54](null),W(d)}}}function Ir(n){let o,e,t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E;const M=[ir,fr],U=[];function y(c,S){return c[1]?0:1}o=y(n),e=U[o]=M[o](n);function I(c){n[46](c)}function q(c){n[47](c)}let B={id:"reset-confirmation-modal","data-testid":"reset-confirmation-modal",confirmText:k("confirm"),cancelText:k("cancel"),confirmDisabled:!n[20],$$slots:{content:[gr],title:[_r]},$$scope:{ctx:n}};n[11]!==void 0&&(B.error=n[11]),n[9]!==void 0&&(B.open=n[9]),r=new Ee({props:B}),te.push(()=>le(r,"error",I)),te.push(()=>le(r,"open",q)),r.$on("confirmModal",n[28]),r.$on("cancelModal",n[23]);function ae(c){n[48](c)}function fe(c){n[49](c)}let v={id:"cancel-confirmation-modal","data-testid":"cancel-confirmation-modal",confirmText:k("confirm"),cancelText:k("cancel"),loading:n[15],confirmType:"destructive",$$slots:{content:[hr],title:[wr]},$$scope:{ctx:n}};n[11]!==void 0&&(v.error=n[11]),n[7]!==void 0&&(v.open=n[7]),f=new Ee({props:v}),te.push(()=>le(f,"error",ae)),te.push(()=>le(f,"open",fe)),f.$on("confirmModal",n[25]);function V(c){n[51](c)}function F(c){n[52](c)}let X={id:"terminate-confirmation-modal","data-testid":"terminate-confirmation-modal",confirmText:k("workflows","terminate"),cancelText:k("cancel"),confirmType:"destructive",$$slots:{content:[br],title:[$r]},$$scope:{ctx:n}};n[11]!==void 0&&(X.error=n[11]),n[8]!==void 0&&(X.open=n[8]),m=new Ee({props:X}),te.push(()=>le(m,"error",V)),te.push(()=>le(m,"open",F)),m.$on("cancelModal",n[21]),m.$on("confirmModal",n[24]);function ne(c){n[55](c)}function x(c){n[56](c)}let ee={id:"signal-confirmation-modal","data-testid":"signal-confirmation-modal",confirmText:k("submit"),cancelText:k("cancel"),confirmDisabled:!n[6],$$slots:{content:[vr],title:[kr]},$$scope:{ctx:n}};return n[11]!==void 0&&(ee.error=n[11]),n[10]!==void 0&&(ee.open=n[10]),R=new Ee({props:ee}),te.push(()=>le(R,"error",ne)),te.push(()=>le(R,"open",x)),R.$on("cancelModal",n[22]),R.$on("confirmModal",n[27]),{c(){e.c(),t=L(),C(r.$$.fragment),a=L(),C(f.$$.fragment),i=L(),C(m.$$.fragment),$=L(),C(R.$$.fragment)},l(c){e.l(c),t=O(c),D(r.$$.fragment,c),a=O(c),D(f.$$.fragment,c),i=O(c),D(m.$$.fragment,c),$=O(c),D(R.$$.fragment,c)},m(c,S){U[o].m(c,S),A(c,t,S),P(r,c,S),A(c,a,S),P(f,c,S),A(c,i,S),P(m,c,S),A(c,$,S),P(R,c,S),E=!0},p(c,S){let de=o;o=y(c),o===de?U[o].p(c,S):(pe(),b(U[de],1,1,()=>{U[de]=null}),me(),e=U[o],e?e.p(c,S):(e=U[o]=M[o](c),e.c()),_(e,1),e.m(t.parentNode,t));const ce={};S[0]&1048576&&(ce.confirmDisabled=!c[20]),S[0]&28672|S[2]&2048&&(ce.$$scope={dirty:S,ctx:c}),!l&&S[0]&2048&&(l=!0,ce.error=c[11],se(()=>l=!1)),!s&&S[0]&512&&(s=!0,ce.open=c[9],se(()=>s=!1)),r.$set(ce);const he={};S[0]&32768&&(he.loading=c[15]),S[2]&2048&&(he.$$scope={dirty:S,ctx:c}),!p&&S[0]&2048&&(p=!0,he.error=c[11],se(()=>p=!1)),!u&&S[0]&128&&(u=!0,he.open=c[7],se(()=>u=!1)),f.$set(he);const ie={};S[0]&16|S[2]&2048&&(ie.$$scope={dirty:S,ctx:c}),!h&&S[0]&2048&&(h=!0,ie.error=c[11],se(()=>h=!1)),!d&&S[0]&256&&(d=!0,ie.open=c[8],se(()=>d=!1)),m.$set(ie);const ue={};S[0]&64&&(ue.confirmDisabled=!c[6]),S[0]&65632|S[2]&2048&&(ue.$$scope={dirty:S,ctx:c}),!H&&S[0]&2048&&(H=!0,ue.error=c[11],se(()=>H=!1)),!T&&S[0]&1024&&(T=!0,ue.open=c[10],se(()=>T=!1)),R.$set(ue)},i(c){E||(_(e),_(r.$$.fragment,c),_(f.$$.fragment,c),_(m.$$.fragment,c),_(R.$$.fragment,c),E=!0)},o(c){b(e),b(r.$$.fragment,c),b(f.$$.fragment,c),b(m.$$.fragment,c),b(R.$$.fragment,c),E=!1},d(c){U[o].d(c),c&&g(t),W(r,c),c&&g(a),W(f,c),c&&g(i),W(m,c),c&&g($),W(R,c)}}}function Tr(n,o,e){let t,r,l,s,a,f,p,u,i,m,h,d=re,$=()=>(d(),d=oo(de,w=>e(20,h=w)),de),R,H,T,E;G(n,It,w=>e(39,u=w)),G(n,ge,w=>e(57,i=w)),G(n,Tt,w=>e(58,m=w)),G(n,Et,w=>e(59,R=w)),G(n,Eo,w=>e(60,H=w)),G(n,Rt,w=>e(61,T=w)),G(n,qe,w=>e(40,E=w)),n.$$.on_destroy.push(()=>d());var M,U,y;let{workflow:I}=o,{namespace:q}=o,{cancelInProgress:B}=o,{isRunning:ae}=o;const fe=()=>T?'{"metadata": {"encoding": ""}, "data": ""}':"";let v="",V=fe(),F="",X=!1,ne=!1,x=!1,ee=!1,c="",S=$e.Unspecified,de=vt();$();let ce,he=!1,ie,ue;const Pt=()=>{e(4,v="")},He=()=>{e(5,V=fe()),e(6,F=""),ue==null||ue.resetView(V)},Le=()=>{e(12,S=$e.Unspecified),oe(de,h=void 0,h),e(14,ce=void 0)},Wt=async()=>{e(8,ne=!1),oe(ge,i=Date.now(),i),Ve.push({id:"workflow-termination-success-toast",message:k("workflows","terminate-success")})},St=w=>{var Z;e(4,v=""),e(11,c=(Z=w==null?void 0:w.message)!==null&&Z!==void 0?Z:k("unknown-error"))},Vt=()=>{e(11,c=""),I.canBeTerminated&&$o({workflow:I,namespace:q,reason:ze({action:Je.Terminate,reason:v,email:m.email}),identity:m.email}).then(Wt).catch(St)},Mt=async()=>{var w;e(15,he=!0),e(11,c="");try{await bo({namespace:q,workflowId:I.id,runId:I.runId}),e(7,X=!1),e(15,he=!1),oe(ge,i=Date.now(),i),Ve.push({id:"workflow-cancelation-success-toast",message:k("workflows","cancel-success")})}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}},Ut=w=>{e(5,V=w.detail)},qt=async()=>{var w;e(11,c="");try{await ko({namespace:q,workflowId:I.id,runId:I.runId,signalInput:V,signalName:F,settings:{...E.data.settings,codec:{endpoint:T,includeCredentials:H,passAccessToken:R}},accessToken:m.accessToken}),e(10,ee=!1),oe(ge,i=Date.now(),i),Ve.push({message:k("workflows","signal-success"),id:"workflow-signal-success-toast"}),He()}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}},Nt=async()=>{var w;e(11,c="");try{const Z=await vo({namespace:q,workflowId:I.id,runId:I.runId,eventId:h,reason:ze({action:Je.Reset,reason:ce,email:m.email}),resetReapplyType:S});Z&&Z.runId&&Ct.update(to=>({...to,[I.runId]:Z.runId})),e(9,x=!1),oe(ge,i=Date.now(),i)}catch(Z){e(11,c=(w=Z==null?void 0:Z.message)!==null&&w!==void 0?w:k("unknown-error"))}Le()};let Oe,je=To();G(n,je,w=>e(38,p=w));const Bt=()=>e(7,X=!0),Ft=()=>e(9,x=!0);function Ht(w){de=w,$(e(13,de))}function Lt(w){S=w,e(12,S)}function Ot(w){ce=w,e(14,ce)}function jt(w){c=w,e(11,c)}function Qt(w){x=w,e(9,x),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}function Jt(w){c=w,e(11,c)}function Yt(w){X=w,e(7,X)}function zt(w){v=w,e(4,v)}function Gt(w){c=w,e(11,c)}function Kt(w){ne=w,e(8,ne),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}function Zt(w){F=w,e(6,F)}function Xt(w){te[w?"unshift":"push"](()=>{ue=w,e(16,ue)})}function xt(w){c=w,e(11,c)}function eo(w){ee=w,e(10,ee),e(3,a),e(2,ie),e(36,r),e(35,l),e(37,s),e(30,I),e(34,y),e(39,u),e(32,M),e(33,U),e(40,E)}return n.$$set=w=>{"workflow"in w&&e(30,I=w.workflow),"namespace"in w&&e(31,q=w.namespace),"cancelInProgress"in w&&e(0,B=w.cancelInProgress),"isRunning"in w&&e(1,ae=w.isRunning)},n.$$.update=()=>{n.$$.dirty[1]&512&&e(19,t=Co(E.data.settings)),n.$$.dirty[1]&512&&e(36,r=ar(E.data.settings)),n.$$.dirty[1]&512&&e(35,l=Do(E.data.settings)),n.$$.dirty[1]&512&&e(37,s=sr(E.data.settings)),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&326&&(s?s&&(e(32,M=I==null?void 0:I.pendingChildren)===null||M===void 0?void 0:M.length)>0?e(2,ie=k("workflows","reset-disabled-pending-children")):s&&(e(33,U=I==null?void 0:I.pendingChildren)===null||U===void 0?void 0:U.length)===0&&u.length===0&&e(2,ie=k("workflows","reset-disabled-no-events")):e(2,ie=k("workflows","reset-disabled"))),n.$$.dirty[0]&1073741824|n.$$.dirty[1]&328&&e(3,a=s&&(e(34,y=I==null?void 0:I.pendingChildren)===null||y===void 0?void 0:y.length)===0&&u.length>0),n.$$.dirty[0]&12|n.$$.dirty[1]&48&&e(17,Oe=[{label:k("workflows","reset"),onClick:()=>e(9,x=!0),testId:"reset-button",allowed:a,tooltip:a?"":ie},{label:k("workflows","signal"),onClick:()=>e(10,ee=!0),testId:"signal-button",allowed:r,tooltip:r?"":k("workflows","signal-disabled")},{label:k("workflows","terminate"),onClick:()=>e(8,ne=!0),testId:"terminate-button",allowed:l,destructive:!0,tooltip:l?"":k("workflows","terminate-disabled")}]),n.$$.dirty[1]&129&&e(18,f=p.namespaceWriteDisabled(q)||!ho(yo))},[B,ae,ie,a,v,V,F,X,ne,x,ee,c,S,de,ce,he,ue,Oe,f,t,h,Pt,He,Le,Vt,Mt,Ut,qt,Nt,je,I,q,M,U,y,l,r,s,p,u,E,Bt,Ft,Ht,Lt,Ot,jt,Qt,Jt,Yt,zt,Gt,Kt,Zt,Xt,xt,eo]}class Er extends ke{constructor(o){super(),ve(this,o,Tr,Ir,Ie,{workflow:30,namespace:31,cancelInProgress:0,isRunning:1},null,[-1,-1,-1])}}const Rr=(n,o)=>{var r;const e=n==="Running",t=(r=o==null?void 0:o.end)==null?void 0:r.some(l=>(l==null?void 0:l.eventType)==="WorkflowExecutionCancelRequested");return e&&t},nt=n=>{const o=n==null?void 0:n.indexOf("?");return o>-1?n.slice(0,o):n},_e=(n,o,e=!1)=>{const t=nt(n).split("/"),r=nt(o).split("/");if(e&&t.length!==r.length)return!1;for(let l=0;l{t=gt(o,kt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){l&&g(o),W(e)}}}function Wr(n){let o=k("workflows","cancel-request-sent-description")+"",e;return{c(){e=Y(o)},l(t){e=z(t,o)},m(t,r){A(t,e,r)},p:re,d(t){t&&g(e)}}}function ut(n){let o,e,t,r;return e=new yt({props:{bold:!0,icon:"info",intent:"info","data-testid":"workflow-reset-alert",title:k("workflows","reset-success-alert-title"),$$slots:{default:[Vr]},$$scope:{ctx:n}}}),{c(){o=j("div"),C(e.$$.fragment),this.h()},l(l){o=Q(l,"DIV",{class:!0});var s=J(o);D(e.$$.fragment,s),s.forEach(g),this.h()},h(){K(o,"class","mb-4")},m(l,s){A(l,o,s),P(e,o,null),r=!0},p(l,s){const a={};s&134217777&&(a.$$scope={dirty:s,ctx:l}),e.$set(a)},i(l){r||(_(e.$$.fragment,l),t||_t(()=>{t=gt(o,kt,{duration:200,delay:100}),t.start()}),r=!0)},o(l){b(e.$$.fragment,l),r=!1},d(l){l&&g(o),W(e)}}}function Sr(n){let o;return{c(){o=Y("here")},l(e){o=z(e,"here")},m(e,t){A(e,o,t)},d(e){e&&g(o)}}}function Vr(n){var l,s,a,f;let o,e,t,r;return e=new At({props:{href:be({namespace:n[0],workflow:(s=(l=n[4])==null?void 0:l.workflow)==null?void 0:s.id,run:n[5][(f=(a=n[4])==null?void 0:a.workflow)==null?void 0:f.runId]}),$$slots:{default:[Sr]},$$scope:{ctx:n}}}),{c(){o=Y("You can find the resulting Workflow Execution "),C(e.$$.fragment),t=Y(".")},l(p){o=z(p,"You can find the resulting Workflow Execution "),D(e.$$.fragment,p),t=z(p,".")},m(p,u){A(p,o,u),P(e,p,u),A(p,t,u),r=!0},p(p,u){var m,h,d,$;const i={};u&49&&(i.href=be({namespace:p[0],workflow:(h=(m=p[4])==null?void 0:m.workflow)==null?void 0:h.id,run:p[5][($=(d=p[4])==null?void 0:d.workflow)==null?void 0:$.runId]})),u&134217728&&(i.$$scope={dirty:u,ctx:p}),e.$set(i)},i(p){r||(_(e.$$.fragment,p),r=!0)},o(p){b(e.$$.fragment,p),r=!1},d(p){p&&g(o),W(e,p),p&&g(t)}}}function Mr(n){var t;let o=((t=n[2])==null?void 0:t.historyEvents)+"",e;return{c(){e=Y(o)},l(r){e=z(r,o)},m(r,l){A(r,e,l)},p(r,l){var s;l&4&&o!==(o=((s=r[2])==null?void 0:s.historyEvents)+"")&&Se(e,o)},d(r){r&&g(e)}}}function Ur(n){let o,e;return o=new Fe({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[Mr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134217732&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function qr(n){var t,r;let o=((r=(t=n[13])==null?void 0:t.pollers)==null?void 0:r.length)+"",e;return{c(){e=Y(o)},l(l){e=z(l,o)},m(l,s){A(l,e,s)},p(l,s){var a,f;s&8192&&o!==(o=((f=(a=l[13])==null?void 0:a.pollers)==null?void 0:f.length)+"")&&Se(e,o)},d(l){l&&g(e)}}}function Nr(n){let o,e;return o=new Fe({props:{type:"blue",class:"px-2 py-0",$$slots:{default:[qr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134225920&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function ct(n){let o,e;return o=new _o({props:{name:"canceled",width:20,height:20}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Br(n){var s,a;let o,e=((a=(s=n[2])==null?void 0:s.pendingActivities)==null?void 0:a.length)+"",t,r,l=n[11]&&ct();return{c(){l&&l.c(),o=L(),t=Y(e)},l(f){l&&l.l(f),o=O(f),t=z(f,e)},m(f,p){l&&l.m(f,p),A(f,o,p),A(f,t,p),r=!0},p(f,p){var u,i;f[11]?l?p&2048&&_(l,1):(l=ct(),l.c(),_(l,1),l.m(o.parentNode,o)):l&&(pe(),b(l,1,1,()=>{l=null}),me()),(!r||p&4)&&e!==(e=((i=(u=f[2])==null?void 0:u.pendingActivities)==null?void 0:i.length)+"")&&Se(t,e)},i(f){r||(_(l),r=!0)},o(f){b(l),r=!1},d(f){l&&l.d(f),f&&g(o),f&&g(t)}}}function Fr(n){let o,e;return o=new Fe({props:{type:n[11]?"warning":"blue",class:"px-2 py-0",$$slots:{default:[Br]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&2048&&(l.type=t[11]?"warning":"blue"),r&134219780&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Hr(n){let o,e,t,r,l,s,a,f,p,u;return o=new Te({props:{label:k("workflows","history-tab"),id:"history-tab",href:be({...n[12]}),active:_e(n[15].url.pathname,be({...n[12]})),$$slots:{default:[Ur]},$$scope:{ctx:n}}}),t=new Te({props:{label:k("workflows","workers-tab"),id:"workers-tab",href:Re(n[12]),active:_e(n[15].url.pathname,Re(n[12])),$$slots:{default:[Nr]},$$scope:{ctx:n}}}),l=new Te({props:{label:k("workflows","pending-activities-tab"),id:"pending-activities-tab",href:ye(n[12]),active:_e(n[15].url.pathname,ye(n[12])),$$slots:{default:[Fr]},$$scope:{ctx:n}}}),a=new Te({props:{label:k("workflows","stack-trace-tab"),id:"stack-trace-tab",href:Ae(n[12]),active:_e(n[15].url.pathname,Ae(n[12]))}}),p=new Te({props:{label:k("workflows","queries-tab"),id:"queries-tab",href:Ce(n[12]),active:_e(n[15].url.pathname,Ce(n[12]))}}),{c(){C(o.$$.fragment),e=L(),C(t.$$.fragment),r=L(),C(l.$$.fragment),s=L(),C(a.$$.fragment),f=L(),C(p.$$.fragment)},l(i){D(o.$$.fragment,i),e=O(i),D(t.$$.fragment,i),r=O(i),D(l.$$.fragment,i),s=O(i),D(a.$$.fragment,i),f=O(i),D(p.$$.fragment,i)},m(i,m){P(o,i,m),A(i,e,m),P(t,i,m),A(i,r,m),P(l,i,m),A(i,s,m),P(a,i,m),A(i,f,m),P(p,i,m),u=!0},p(i,m){const h={};m&4096&&(h.href=be({...i[12]})),m&36864&&(h.active=_e(i[15].url.pathname,be({...i[12]}))),m&134217732&&(h.$$scope={dirty:m,ctx:i}),o.$set(h);const d={};m&4096&&(d.href=Re(i[12])),m&36864&&(d.active=_e(i[15].url.pathname,Re(i[12]))),m&134225920&&(d.$$scope={dirty:m,ctx:i}),t.$set(d);const $={};m&4096&&($.href=ye(i[12])),m&36864&&($.active=_e(i[15].url.pathname,ye(i[12]))),m&134219780&&($.$$scope={dirty:m,ctx:i}),l.$set($);const R={};m&4096&&(R.href=Ae(i[12])),m&36864&&(R.active=_e(i[15].url.pathname,Ae(i[12]))),a.$set(R);const H={};m&4096&&(H.href=Ce(i[12])),m&36864&&(H.active=_e(i[15].url.pathname,Ce(i[12]))),p.$set(H)},i(i){u||(_(o.$$.fragment,i),_(t.$$.fragment,i),_(l.$$.fragment,i),_(a.$$.fragment,i),_(p.$$.fragment,i),u=!0)},o(i){b(o.$$.fragment,i),b(t.$$.fragment,i),b(l.$$.fragment,i),b(a.$$.fragment,i),b(p.$$.fragment,i),u=!1},d(i){W(o,i),i&&g(e),W(t,i),i&&g(r),W(l,i),i&&g(s),W(a,i),i&&g(f),W(p,i)}}}function Lr(n){let o,e;return o=new qo({props:{class:"flex flex-wrap gap-6",label:"workflow detail",$$slots:{default:[Hr]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,r){const l={};r&134264836&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Or(n){var ae,fe;let o,e,t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E,M,U;t=new At({props:{href:`${Ke({namespace:n[0]})}?${n[14]}`,"data-testid":"back-to-workflows",icon:"chevron-left",$$slots:{default:[yr]},$$scope:{ctx:n}}}),f=new Mo({props:{copyIconTitle:k("copy-icon-title"),copySuccessIconTitle:k("copy-success-icon-title"),content:(ae=n[2])==null?void 0:ae.id,clickAllToCopy:!0,"container-class":"w-full",class:"overflow-hidden text-ellipsis"}}),i=new Po({props:{status:(fe=n[2])==null?void 0:fe.status}});let y=n[8]&<(n),I=n[3]&&ft(n);R=new Er({props:{isRunning:n[3],cancelInProgress:n[10],workflow:n[2],namespace:n[0]}});let q=n[10]&&it(n),B=n[9]&&ut(n);return M=new Uo({props:{$$slots:{default:[Lr]},$$scope:{ctx:n}}}),{c(){o=j("header"),e=j("div"),C(t.$$.fragment),r=L(),l=j("div"),s=j("div"),a=j("h1"),C(f.$$.fragment),p=L(),u=j("div"),C(i.$$.fragment),m=L(),y&&y.c(),h=L(),d=j("div"),I&&I.c(),$=L(),C(R.$$.fragment),H=L(),q&&q.c(),T=L(),B&&B.c(),E=L(),C(M.$$.fragment),this.h()},l(v){o=Q(v,"HEADER",{class:!0});var V=J(o);e=Q(V,"DIV",{class:!0});var F=J(e);D(t.$$.fragment,F),F.forEach(g),r=O(V),l=Q(V,"DIV",{class:!0});var X=J(l);s=Q(X,"DIV",{class:!0});var ne=J(s);a=Q(ne,"H1",{"data-testid":!0,class:!0});var x=J(a);D(f.$$.fragment,x),x.forEach(g),p=O(ne),u=Q(ne,"DIV",{class:!0});var ee=J(u);D(i.$$.fragment,ee),m=O(ee),y&&y.l(ee),ee.forEach(g),ne.forEach(g),h=O(X),d=Q(X,"DIV",{class:!0});var c=J(d);I&&I.l(c),$=O(c),D(R.$$.fragment,c),c.forEach(g),X.forEach(g),H=O(V),q&&q.l(V),T=O(V),B&&B.l(V),E=O(V),D(M.$$.fragment,V),V.forEach(g),this.h()},h(){K(e,"class","mb-4 block"),K(a,"data-testid","workflow-id-heading"),K(a,"class","overflow-hidden text-2xl font-medium"),K(u,"class","flex flex-wrap items-center gap-4"),K(s,"class","flex w-full flex-col justify-start gap-4 overflow-hidden whitespace-nowrap lg:w-auto"),K(d,"class","flex flex-col items-center justify-center gap-4 whitespace-nowrap sm:flex-row lg:justify-end"),K(l,"class","mb-8 flex w-full flex-col items-center justify-between gap-4 lg:flex-row"),K(o,"class","mb-4 flex flex-col gap-1")},m(v,V){A(v,o,V),N(o,e),P(t,e,null),N(o,r),N(o,l),N(l,s),N(s,a),P(f,a,null),N(s,p),N(s,u),P(i,u,null),N(u,m),y&&y.m(u,null),N(l,h),N(l,d),I&&I.m(d,null),N(d,$),P(R,d,null),N(o,H),q&&q.m(o,null),N(o,T),B&&B.m(o,null),N(o,E),P(M,o,null),U=!0},p(v,[V]){var c,S;const F={};V&16385&&(F.href=`${Ke({namespace:v[0]})}?${v[14]}`),V&134217728&&(F.$$scope={dirty:V,ctx:v}),t.$set(F);const X={};V&4&&(X.content=(c=v[2])==null?void 0:c.id),f.$set(X);const ne={};V&4&&(ne.status=(S=v[2])==null?void 0:S.status),i.$set(ne),v[8]?y?(y.p(v,V),V&256&&_(y,1)):(y=lt(v),y.c(),_(y,1),y.m(u,null)):y&&(pe(),b(y,1,1,()=>{y=null}),me()),v[3]?I?(I.p(v,V),V&8&&_(I,1)):(I=ft(v),I.c(),_(I,1),I.m(d,$)):I&&(pe(),b(I,1,1,()=>{I=null}),me());const x={};V&8&&(x.isRunning=v[3]),V&1024&&(x.cancelInProgress=v[10]),V&4&&(x.workflow=v[2]),V&1&&(x.namespace=v[0]),R.$set(x),v[10]?q?(q.p(v,V),V&1024&&_(q,1)):(q=it(v),q.c(),_(q,1),q.m(o,T)):q&&(pe(),b(q,1,1,()=>{q=null}),me()),v[9]?B?(B.p(v,V),V&512&&_(B,1)):(B=ut(v),B.c(),_(B,1),B.m(o,E)):B&&(pe(),b(B,1,1,()=>{B=null}),me());const ee={};V&134264836&&(ee.$$scope={dirty:V,ctx:v}),M.$set(ee)},i(v){U||(_(t.$$.fragment,v),_(f.$$.fragment,v),_(i.$$.fragment,v),_(y),_(I),_(R.$$.fragment,v),_(q),_(B),_(M.$$.fragment,v),U=!0)},o(v){b(t.$$.fragment,v),b(f.$$.fragment,v),b(i.$$.fragment,v),b(y),b(I),b(R.$$.fragment,v),b(q),b(B),b(M.$$.fragment,v),U=!1},d(v){v&&g(o),W(t),W(f),W(i),y&&y.d(),I&&I.d(),W(R),q&&q.d(),B&&B.d(),W(M)}}}const pt=15e3;function jr(n,o,e){let t,r,l,s,a,f,p,u,i,m,h,d,$,R,H,T,E,M,U;G(n,We,F=>e(4,$=F)),G(n,Ct,F=>e(5,R=F)),G(n,Pe,F=>e(24,H=F)),G(n,ge,F=>e(25,T=F)),G(n,De,F=>e(26,E=F)),G(n,No,F=>e(14,M=F)),G(n,qe,F=>e(15,U=F));var y,I,q,B,ae;let{namespace:fe}=o,v;dt(()=>{a&&E==="on"&&(clearInterval(v),e(22,v=setInterval(()=>oe(ge,T=Date.now(),T),pt)))});const V=()=>{E==="on"?(oe(De,E="off",E),clearInterval(v)):(oe(ge,T=Date.now(),T),oe(De,E="on",E),clearInterval(v),e(22,v=setInterval(()=>oe(ge,T=Date.now(),T),pt)))};return Ue(()=>{clearInterval(v)}),n.$$set=F=>{"namespace"in F&&e(0,fe=F.namespace)},n.$$.update=()=>{n.$$.dirty&16&&e(2,{workflow:t,workers:r,compatibility:l}=$,t,(e(13,r),e(4,$)),(e(23,l),e(4,$))),n.$$.dirty&5&&e(12,s={namespace:fe,workflow:t==null?void 0:t.id,run:t==null?void 0:t.runId}),n.$$.dirty&131088&&e(3,a=e(17,y=$==null?void 0:$.workflow)===null||y===void 0?void 0:y.isRunning),n.$$.dirty&262160&&e(11,f=["Terminated","TimedOut","Canceled"].includes(e(18,I=$.workflow)===null||I===void 0?void 0:I.status)),n.$$.dirty&4194312&&(a||clearInterval(v)),n.$$.dirty&17301520&&e(10,p=Rr(e(19,q=$==null?void 0:$.workflow)===null||q===void 0?void 0:q.status,H)),n.$$.dirty&1048624&&e(9,u=Bo(R,e(20,B=$==null?void 0:$.workflow)===null||B===void 0?void 0:B.runId)),n.$$.dirty&2097156&&e(8,i=e(21,ae=t==null?void 0:t.mostRecentWorkerVersionStamp)===null||ae===void 0?void 0:ae.useVersioning),n.$$.dirty&4&&e(1,m=Fo(t)),n.$$.dirty&8388608&&e(7,h=Ho(l)),n.$$.dirty&8388610&&e(6,d=Lo(l,m))},[fe,m,t,a,$,R,d,h,i,u,p,f,s,r,M,U,V,y,I,q,B,ae,v,l,H]}class Qr extends ke{constructor(o){super(),ve(this,o,jr,Or,Ie,{namespace:0})}}async function Jr({activity:n,namespace:o,settings:e,accessToken:t},{convertWithCodec:r=Qo,convertWithWebsocket:l=Jo,decodeAttributes:s=Yo,encoderEndpoint:a=Rt}={}){const f=zo(e,a),p=Go(e,Et),u={...e,codec:{...e==null?void 0:e.codec,endpoint:f,passAccessToken:p}},i=f?await r({attributes:n,namespace:o,settings:u,accessToken:t}):await l(n);return s(i)}const Yr=async({activity:n,namespace:o,settings:e,accessToken:t})=>await Jr({activity:n,namespace:o,settings:e,accessToken:t}),zr=async(n,o,e,t)=>{const r=(n==null?void 0:n.pendingActivities)??[],l=[];for(const s of r){const a=await Yr({activity:s,namespace:o,settings:e,accessToken:t});l.push(a)}return l};function Gr(n){let o,e,t;o=new Qr({props:{namespace:n[0].params.namespace}});const r=n[7].default,l=wt(r,n,n[6],null);return{c(){C(o.$$.fragment),e=L(),l&&l.c()},l(s){D(o.$$.fragment,s),e=O(s),l&&l.l(s)},m(s,a){P(o,s,a),A(s,e,a),l&&l.m(s,a),t=!0},p(s,a){const f={};a&1&&(f.namespace=s[0].params.namespace),o.$set(f),l&&l.p&&(!t||a&64)&&ht(l,r,s,s[6],t?bt(r,s[6],a,null):$t(s[6]),null)},i(s){t||(_(o.$$.fragment,s),_(l,s),t=!0)},o(s){b(o.$$.fragment,s),b(l,s),t=!1},d(s){W(o,s),s&&g(e),l&&l.d(s)}}}function Kr(n){let o,e;return o=new ro({}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p:re,i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function Zr(n){let o,e,t,r;const l=[Kr,Gr],s=[];function a(f,p){return f[1].workflow?1:0}return e=a(n),t=s[e]=l[e](n),{c(){o=j("div"),t.c(),this.h()},l(f){o=Q(f,"DIV",{class:!0});var p=J(o);t.l(p),p.forEach(g),this.h()},h(){K(o,"class","flex h-full flex-col gap-6")},m(f,p){A(f,o,p),s[e].m(o,null),r=!0},p(f,[p]){let u=e;e=a(f),e===u?s[e].p(f,p):(pe(),b(s[u],1,1,()=>{s[u]=null}),me(),t=s[e],t?t.p(f,p):(t=s[e]=l[e](f),t.c()),_(t,1),t.m(o,null))},i(f){r||(_(t),r=!0)},o(f){b(t),r=!1},d(f){f&&g(o),s[e].d()}}}function Xr(n,o,e){let t,r,l,s,a,f,p,u,i,m;G(n,Pe,T=>e(8,s=T)),G(n,We,T=>e(1,a=T)),G(n,Ye,T=>e(9,f=T)),G(n,Qe,T=>e(10,p=T)),G(n,qe,T=>e(0,u=T)),G(n,ge,T=>e(5,i=T)),G(n,Tt,T=>e(11,m=T));let{$$slots:h={},$$scope:d}=o;const $=async(T,E)=>{var M;if(!((M=T==null?void 0:T.mostRecentWorkerVersionStamp)===null||M===void 0)&&M.useVersioning)return await So({queue:E,namespace:t})},R=async({namespace:T,workers:E,taskQueue:M})=>{if(!Oo(E.pollers))return;const y=jo(E.pollers);return await Vo({namespace:T,buildIds:y,taskQueue:M})},H=async(T,E,M)=>{const{settings:U}=u.data,y=await Io({namespace:T,workflowId:E,runId:M}),{taskQueue:I}=y,q=await Wo({queue:I,namespace:T}),B=await $(y,I),ae=await R({namespace:T,workers:q,taskQueue:I});y.pendingActivities=await zr(y,T,U,m==null?void 0:m.accessToken),oe(We,a={workflow:y,workers:q,compatibility:B,reachability:ae},a);const fe=await co({namespace:T,workflowId:E,runId:M,settings:U,accessToken:m==null?void 0:m.accessToken});oe(Pe,s=fe,s)};return dt(()=>{const T=u.url.searchParams.get("sort");T&&oe(Qe,p=T,p)}),Ue(()=>{oe(Ye,f=null,f),oe(We,a=Ao,a),oe(Pe,s=uo,s)}),n.$$set=T=>{"$$scope"in T&&e(6,d=T.$$scope)},n.$$.update=()=>{n.$$.dirty&1&&e(4,{namespace:t,workflow:r,run:l}=u.params,t,(e(3,r),e(0,u)),(e(2,l),e(0,u))),n.$$.dirty&60&&H(t,r,l)},[u,a,l,r,t,i,d,h]}class xr extends ke{constructor(o){super(),ve(this,o,Xr,Zr,Ie,{})}}const Dt={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},en=vt(Dt),tn=()=>{en.set(Dt)};function on(n){let o;const e=n[0].default,t=wt(e,n,n[1],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,l){t&&t.m(r,l),o=!0},p(r,l){t&&t.p&&(!o||l&2)&&ht(t,e,r,r[1],o?bt(e,r[1],l,null):$t(r[1]),null)},i(r){o||(_(t,r),o=!0)},o(r){b(t,r),o=!1},d(r){t&&t.d(r)}}}function rn(n){let o,e;return o=new xr({props:{$$slots:{default:[on]},$$scope:{ctx:n}}}),{c(){C(o.$$.fragment)},l(t){D(o.$$.fragment,t)},m(t,r){P(o,t,r),e=!0},p(t,[r]){const l={};r&2&&(l.$$scope={dirty:r,ctx:t}),o.$set(l)},i(t){e||(_(o.$$.fragment,t),e=!0)},o(t){b(o.$$.fragment,t),e=!1},d(t){W(o,t)}}}function nn(n,o,e){let{$$slots:t={},$$scope:r}=o;return Ue(()=>{tn()}),n.$$set=l=>{"$$scope"in l&&e(1,r=l.$$scope)},[t,r]}class zn extends ke{constructor(o){super(),ve(this,o,nn,rn,Ie,{})}}export{zn as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js index 374aa08a96..4e5494ad20 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js @@ -1 +1 @@ -import{S as ut,b as ct,a as mt,e as J,f as k,z as Q,g as I,h as X,j as b,k as m,K as Ee,C as B,D as R,E as q,n as Ce,F as M,aa as _t,ab as $t,m as h,w as L,p as d,q as v,x as H,u as N,L as c,au as ht,c as E,d as T,y as z}from"../chunks/index.6779d4e2.js";import{p as dt}from"../chunks/stores.6ee4c480.js";import{P as vt}from"../chunks/page-title.990af218.js";import{t as A}from"../chunks/translate.29a4bc43.js";import{B as ce}from"../chunks/badge.d458ea0a.js";import{C as pt}from"../chunks/code-block.c796ec58.js";import{E as wt}from"../chunks/empty-state.c8d40bbf.js";import{I as bt}from"../chunks/icon.a4e81b70.js";import{L as kt}from"../chunks/link.8030aa06.js";import{T as gt,a as Et}from"../chunks/table-header-row.5433617e.js";import{T as Tt}from"../chunks/table-row.e455010e.js";import{t as It,r as yt,b as le}from"../chunks/format-date.79dd40f6.js";import{w as Lt}from"../chunks/workflow-run.4e335848.js";import{k as Ge,l as Je,j as Qe}from"../chunks/format-event-attributes.f236b430.js";import{k as Xe,E as Ye}from"../chunks/format-time.8258873a.js";import{s as Te}from"../chunks/parse-with-big-int.0036a80a.js";import{t as Ze}from"../chunks/to-time-difference.be87d1bf.js";function xe(f,e,l){const t=f.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=ht(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Ht(f){let e,l;return e=new wt({props:{title:A("workflows","pending-activities-empty-state")}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p:Ce,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Dt(f){let e,l;return e=new gt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[qt],caption:[Bt],default:[jt]},$$scope:{ctx:f}}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function At(f){let e=f[6]+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&z(l,e)},d(t){t&&m(l)}}}function Pt(f){let e=f[7].activityType+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&z(l,e)},d(t){t&&m(l)}}}function et(f){let e,l;return e=new bt({props:{class:"mr-1",name:"retry"}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function St(f){let e,l=f[7].attempt+"",t,o,s=f[8]&&et();return{c(){s&&s.c(),e=E(),t=L(l)},l(r){s&&s.l(r),e=T(r),t=H(r,l)},m(r,i){s&&s.m(r,i),k(r,e,i),k(r,t,i),o=!0},p(r,i){r[8]?s?i&1&&b(s,1):(s=et(),s.c(),b(s,1),s.m(e.parentNode,e)):s&&(Q(),I(s,1,1,()=>{s=null}),X()),(!o||i&1)&&l!==(l=r[7].attempt+"")&&z(t,l)},i(r){o||(b(s),o=!0)},o(r){I(s),o=!1},d(r){s&&s.d(r),r&&m(e),r&&m(t)}}}function tt(f){let e,l,t=A("workflows","attempts-left")+"",o,s,r,i,a,n;r=new ce({props:{type:"error",$$slots:{default:[Ft]},$$scope:{ctx:f}}});let u=f[7].scheduledTime&<(f);return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),i=E(),u&&u.c(),a=J(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var g=v(l);o=H(g,t),g.forEach(m),s=T(p),R(r.$$.fragment,p),p.forEach(m),i=T($),u&&u.l($),a=J(),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),q(r,e,null),k($,i,p),u&&u.m($,p),k($,a,p),n=!0},p($,p){const g={};p&2049&&(g.$$scope={dirty:p,ctx:$}),r.$set(g),$[7].scheduledTime?u?(u.p($,p),p&1&&b(u,1)):(u=lt($),u.c(),b(u,1),u.m(a.parentNode,a)):u&&(Q(),I(u,1,1,()=>{u=null}),X())},i($){n||(b(r.$$.fragment,$),b(u),n=!0)},o($){I(r.$$.fragment,$),I(u),n=!1},d($){$&&m(e),M(r),$&&m(i),u&&u.d($),$&&m(a)}}}function Ft(f){let e=Ge(f[7].maximumAttempts,f[7].attempt)+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ge(t[7].maximumAttempts,t[7].attempt)+"")&&z(l,e)},d(t){t&&m(l)}}}function lt(f){let e,l,t=A("workflows","next-retry")+"",o,s,r,i;return r=new ce({props:{type:"error",$$slots:{default:[Nt]},$$scope:{ctx:f}}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&2049&&(u.$$scope={dirty:n,ctx:a}),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function Nt(f){let e=Ze({date:f[7].scheduledTime,negativeDefault:A("workflows","no-retry")})+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ze({date:t[7].scheduledTime,negativeDefault:A("workflows","no-retry")})+"")&&z(l,e)},d(t){t&&m(l)}}}function Wt(f){let e=Je(f[7].maximumAttempts)+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Je(t[7].maximumAttempts)+"")&&z(l,e)},d(t){t&&m(l)}}}function rt(f){let e,l,t,o,s=A("workflows","retry-expiration")+"",r,i,a,n=Qe(f[7].maximumAttempts,Xe(Ye({start:Date.now(),end:f[7].expirationTime})))+"",u,$,p=f[7].heartbeatDetails&&at(f),g=f[7].lastFailure&&st(f);return{c(){p&&p.c(),e=E(),g&&g.c(),l=E(),t=h("li"),o=h("h4"),r=L(s),i=E(),a=h("p"),u=L(n),this.h()},l(w){p&&p.l(w),e=T(w),g&&g.l(w),l=T(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var re=v(o);r=H(re,s),re.forEach(m),i=T(P),a=d(P,"P",{});var Z=v(a);u=H(Z,n),Z.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-pnunl5")},m(w,P){p&&p.m(w,P),k(w,e,P),g&&g.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,r),c(t,i),c(t,a),c(a,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&b(p,1)):(p=at(w),p.c(),b(p,1),p.m(e.parentNode,e)):p&&(Q(),I(p,1,1,()=>{p=null}),X()),w[7].lastFailure?g?(g.p(w,P),P&1&&b(g,1)):(g=st(w),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(Q(),I(g,1,1,()=>{g=null}),X()),(!$||P&1)&&n!==(n=Qe(w[7].maximumAttempts,Xe(Ye({start:Date.now(),end:w[7].expirationTime})))+"")&&z(u,n)},i(w){$||(b(p),b(g),$=!0)},o(w){I(p),I(g),$=!1},d(w){p&&p.d(w),w&&m(e),g&&g.d(w),w&&m(l),w&&m(t)}}}function at(f){let e,l,t=A("workflows","heartbeat-details")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(f[7].heartbeatDetails),copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&1&&(u.content=Te(a[7].heartbeatDetails)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function st(f){let e,l,t=A("workflows","last-failure")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(f[7].lastFailure),copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&1&&(u.content=Te(a[7].lastFailure)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function ot(f){let e,l,t=A("workflows","last-started-time")+"",o,s,r,i=le(f[7].lastStartedTime,f[1],{relative:f[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&7&&i!==(i=le(n[7].lastStartedTime,n[1],{relative:n[2]})+"")&&z(a,i)},d(n){n&&m(e)}}}function it(f){let e,l,t=A("workflows","scheduled-time")+"",o,s,r,i=le(f[7].scheduledTime,f[1],{relative:f[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&7&&i!==(i=le(n[7].scheduledTime,n[1],{relative:n[2]})+"")&&z(a,i)},d(n){n&&m(e)}}}function ft(f){let e,l,t=A("workflows","last-worker-identity")+"",o,s,r,i=f[7].lastWorkerIdentity+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&1&&i!==(i=n[7].lastWorkerIdentity+"")&&z(a,i)},d(n){n&&m(e)}}}function Ct(f){let e,l,t,o,s,r,i,a,n=A("workflows","activity-type")+"",u,$,p,g,w,P,re=A("workflows","attempt")+"",Z,Ie,K,ye,me,O,ae,je=A("workflows","maximum-attempts")+"",Le,He,U,De,pe,V,se,Be=A("workflows","last-heartbeat")+"",Ae,Pe,oe,ie=le(f[7].lastHeartbeatTime,f[1],{relative:f[2],relativeStrict:!0})+"",_e,Se,G,fe,Re=A("workflows","state")+"",Fe,Ne,ne,ue=f[7].state+"",$e,We,he,de,ve,x;t=new kt({props:{href:"#"+f[5],$$slots:{default:[At]},$$scope:{ctx:f}}}),p=new ce({props:{type:f[8]?"error":"default",$$slots:{default:[Pt]},$$scope:{ctx:f}}}),K=new ce({props:{type:f[8]?"error":"default",$$slots:{default:[St]},$$scope:{ctx:f}}});let S=f[8]&&tt(f);U=new ce({props:{$$slots:{default:[Wt]},$$scope:{ctx:f}}});let F=f[8]&&rt(f),W=f[7].lastStartedTime&&ot(f),C=f[7].scheduledTime&&it(f),j=f[7].lastWorkerIdentity&&ft(f);return{c(){e=h("td"),l=h("div"),B(t.$$.fragment),o=E(),s=h("td"),r=h("ul"),i=h("li"),a=h("h4"),u=L(n),$=E(),B(p.$$.fragment),g=E(),w=h("li"),P=h("h4"),Z=L(re),Ie=E(),B(K.$$.fragment),ye=E(),S&&S.c(),me=E(),O=h("li"),ae=h("h4"),Le=L(je),He=E(),B(U.$$.fragment),De=E(),F&&F.c(),pe=E(),V=h("li"),se=h("h4"),Ae=L(Be),Pe=E(),oe=h("p"),_e=L(ie),Se=E(),G=h("li"),fe=h("h4"),Fe=L(Re),Ne=E(),ne=h("p"),$e=L(ue),We=E(),W&&W.c(),he=E(),C&&C.c(),de=E(),j&&j.c(),ve=E(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var ee=v(l);R(t.$$.fragment,ee),ee.forEach(m),y.forEach(m),o=T(_),s=d(_,"TD",{class:!0});var te=v(s);r=d(te,"UL",{});var D=v(r);i=d(D,"LI",{class:!0});var Y=v(i);a=d(Y,"H4",{class:!0});var qe=v(a);u=H(qe,n),qe.forEach(m),$=T(Y),R(p.$$.fragment,Y),Y.forEach(m),g=T(D),w=d(D,"LI",{class:!0});var we=v(w);P=d(we,"H4",{});var Me=v(P);Z=H(Me,re),Me.forEach(m),Ie=T(we),R(K.$$.fragment,we),we.forEach(m),ye=T(D),S&&S.l(D),me=T(D),O=d(D,"LI",{class:!0});var be=v(O);ae=d(be,"H4",{});var ze=v(ae);Le=H(ze,je),ze.forEach(m),He=T(be),R(U.$$.fragment,be),be.forEach(m),De=T(D),F&&F.l(D),pe=T(D),V=d(D,"LI",{class:!0});var ke=v(V);se=d(ke,"H4",{});var Ke=v(se);Ae=H(Ke,Be),Ke.forEach(m),Pe=T(ke),oe=d(ke,"P",{});var Oe=v(oe);_e=H(Oe,ie),Oe.forEach(m),ke.forEach(m),Se=T(D),G=d(D,"LI",{class:!0});var ge=v(G);fe=d(ge,"H4",{});var Ue=v(fe);Fe=H(Ue,Re),Ue.forEach(m),Ne=T(ge),ne=d(ge,"P",{});var Ve=v(ne);$e=H(Ve,ue),Ve.forEach(m),ge.forEach(m),We=T(D),W&&W.l(D),he=T(D),C&&C.l(D),de=T(D),j&&j.l(D),D.forEach(m),te.forEach(m),ve=T(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(a,"class","font-semibold"),N(i,"class","event-table-row svelte-pnunl5"),N(w,"class","event-table-row svelte-pnunl5"),N(O,"class","event-table-row svelte-pnunl5"),N(V,"class","event-table-row svelte-pnunl5"),N(G,"class","event-table-row svelte-pnunl5"),N(s,"class","py-4 px-5")},m(_,y){k(_,e,y),c(e,l),q(t,l,null),k(_,o,y),k(_,s,y),c(s,r),c(r,i),c(i,a),c(a,u),c(i,$),q(p,i,null),c(r,g),c(r,w),c(w,P),c(P,Z),c(w,Ie),q(K,w,null),c(r,ye),S&&S.m(r,null),c(r,me),c(r,O),c(O,ae),c(ae,Le),c(O,He),q(U,O,null),c(r,De),F&&F.m(r,null),c(r,pe),c(r,V),c(V,se),c(se,Ae),c(V,Pe),c(V,oe),c(oe,_e),c(r,Se),c(r,G),c(G,fe),c(fe,Fe),c(G,Ne),c(G,ne),c(ne,$e),c(r,We),W&&W.m(r,null),c(r,he),C&&C.m(r,null),c(r,de),j&&j.m(r,null),k(_,ve,y),x=!0},p(_,y){const ee={};y&1&&(ee.href="#"+_[5]),y&2049&&(ee.$$scope={dirty:y,ctx:_}),t.$set(ee);const te={};y&1&&(te.type=_[8]?"error":"default"),y&2049&&(te.$$scope={dirty:y,ctx:_}),p.$set(te);const D={};y&1&&(D.type=_[8]?"error":"default"),y&2049&&(D.$$scope={dirty:y,ctx:_}),K.$set(D),_[8]?S?(S.p(_,y),y&1&&b(S,1)):(S=tt(_),S.c(),b(S,1),S.m(r,me)):S&&(Q(),I(S,1,1,()=>{S=null}),X());const Y={};y&2049&&(Y.$$scope={dirty:y,ctx:_}),U.$set(Y),_[8]?F?(F.p(_,y),y&1&&b(F,1)):(F=rt(_),F.c(),b(F,1),F.m(r,pe)):F&&(Q(),I(F,1,1,()=>{F=null}),X()),(!x||y&7)&&ie!==(ie=le(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&z(_e,ie),(!x||y&1)&&ue!==(ue=_[7].state+"")&&z($e,ue),_[7].lastStartedTime?W?W.p(_,y):(W=ot(_),W.c(),W.m(r,he)):W&&(W.d(1),W=null),_[7].scheduledTime?C?C.p(_,y):(C=it(_),C.c(),C.m(r,de)):C&&(C.d(1),C=null),_[7].lastWorkerIdentity?j?j.p(_,y):(j=ft(_),j.c(),j.m(r,null)):j&&(j.d(1),j=null)},i(_){x||(b(t.$$.fragment,_),b(p.$$.fragment,_),b(K.$$.fragment,_),b(S),b(U.$$.fragment,_),b(F),x=!0)},o(_){I(t.$$.fragment,_),I(p.$$.fragment,_),I(K.$$.fragment,_),I(S),I(U.$$.fragment,_),I(F),x=!1},d(_){_&&m(e),M(t),_&&m(o),_&&m(s),M(p),M(K),S&&S.d(),M(U),F&&F.d(),W&&W.d(),C&&C.d(),j&&j.d(),_&&m(ve)}}}function nt(f,e){let l,t,o;return t=new Tt({props:{$$slots:{default:[Ct]},$$scope:{ctx:e}}}),{key:f,first:null,c(){l=J(),B(t.$$.fragment),this.h()},l(s){l=J(),R(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,r){k(s,l,r),q(t,s,r),o=!0},p(s,r){e=s;const i={};r&2055&&(i.$$scope={dirty:r,ctx:e}),t.$set(i)},i(s){o||(b(t.$$.fragment,s),o=!0)},o(s){I(t.$$.fragment,s),o=!1},d(s){s&&m(l),M(t,s)}}}function jt(f){let e=[],l=new Map,t,o,s=f[0];const r=i=>i[5];for(let i=0;i{r[u]=null}),X(),l=r[e],l?l.p(a,n):(l=r[e]=s[e](a),l.c()),b(l,1),l.m(t.parentNode,t))},i(a){o||(b(l),o=!0)},o(a){I(l),o=!1},d(a){r[e].d(a),a&&m(t)}}}function zt(f,e,l){let t,o,s,r;Ee(f,Lt,a=>l(4,o=a)),Ee(f,It,a=>l(1,s=a)),Ee(f,yt,a=>l(2,r=a));var i;return f.$$.update=()=>{f.$$.dirty&24&&l(0,t=l(3,i=o.workflow)===null||i===void 0?void 0:i.pendingActivities)},[t,s,r,i,o]}class Kt extends ut{constructor(e){super(),ct(this,e,zt,Mt,mt,{})}}function Ot(f){let e,l,t,o;return e=new vt({props:{title:`${A("workflows","pending-activities-tab")} | ${f[1]}`,url:f[0].url.href}}),t=new Kt({}),{c(){B(e.$$.fragment),l=E(),B(t.$$.fragment)},l(s){R(e.$$.fragment,s),l=T(s),R(t.$$.fragment,s)},m(s,r){q(e,s,r),k(s,l,r),q(t,s,r),o=!0},p(s,[r]){const i={};r&1&&(i.url=s[0].url.href),e.$set(i)},i(s){o||(b(e.$$.fragment,s),b(t.$$.fragment,s),o=!0)},o(s){I(e.$$.fragment,s),I(t.$$.fragment,s),o=!1},d(s){M(e,s),s&&m(l),M(t,s)}}}function Ut(f,e,l){let t;Ee(f,dt,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class nl extends ut{constructor(e){super(),ct(this,e,Ut,Ot,mt,{})}}export{nl as default}; +import{S as ut,b as ct,a as mt,e as J,f as k,z as Q,g as I,h as X,j as b,k as m,K as Ee,C as B,D as R,E as q,n as Ce,F as M,aa as _t,ab as $t,m as h,w as L,p as d,q as v,x as H,u as N,L as c,au as ht,c as E,d as T,y as z}from"../chunks/index.6779d4e2.js";import{p as dt}from"../chunks/stores.b96d31b2.js";import{P as vt}from"../chunks/page-title.990af218.js";import{t as A}from"../chunks/translate.29a4bc43.js";import{B as ce}from"../chunks/badge.d458ea0a.js";import{C as pt}from"../chunks/code-block.c796ec58.js";import{E as wt}from"../chunks/empty-state.c8d40bbf.js";import{I as bt}from"../chunks/icon.a4e81b70.js";import{L as kt}from"../chunks/link.8030aa06.js";import{T as gt,a as Et}from"../chunks/table-header-row.5433617e.js";import{T as Tt}from"../chunks/table-row.e455010e.js";import{t as It,r as yt,b as le}from"../chunks/format-date.79dd40f6.js";import{w as Lt}from"../chunks/workflow-run.4e335848.js";import{k as Ge,l as Je,j as Qe}from"../chunks/format-event-attributes.f236b430.js";import{k as Xe,E as Ye}from"../chunks/format-time.8258873a.js";import{s as Te}from"../chunks/parse-with-big-int.0036a80a.js";import{t as Ze}from"../chunks/to-time-difference.be87d1bf.js";function xe(f,e,l){const t=f.slice();t[5]=e[l].id,t[6]=e[l].activityId,t[7]=ht(e[l],["id","activityId"]);const o=t[7].attempt>1;return t[8]=o,t}function Ht(f){let e,l;return e=new wt({props:{title:A("workflows","pending-activities-empty-state")}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p:Ce,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function Dt(f){let e,l;return e=new gt({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[qt],caption:[Bt],default:[jt]},$$scope:{ctx:f}}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},p(t,o){const s={};o&2055&&(s.$$scope={dirty:o,ctx:t}),e.$set(s)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function At(f){let e=f[6]+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[6]+"")&&z(l,e)},d(t){t&&m(l)}}}function Pt(f){let e=f[7].activityType+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=t[7].activityType+"")&&z(l,e)},d(t){t&&m(l)}}}function et(f){let e,l;return e=new bt({props:{class:"mr-1",name:"retry"}}),{c(){B(e.$$.fragment)},l(t){R(e.$$.fragment,t)},m(t,o){q(e,t,o),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){I(e.$$.fragment,t),l=!1},d(t){M(e,t)}}}function St(f){let e,l=f[7].attempt+"",t,o,s=f[8]&&et();return{c(){s&&s.c(),e=E(),t=L(l)},l(r){s&&s.l(r),e=T(r),t=H(r,l)},m(r,i){s&&s.m(r,i),k(r,e,i),k(r,t,i),o=!0},p(r,i){r[8]?s?i&1&&b(s,1):(s=et(),s.c(),b(s,1),s.m(e.parentNode,e)):s&&(Q(),I(s,1,1,()=>{s=null}),X()),(!o||i&1)&&l!==(l=r[7].attempt+"")&&z(t,l)},i(r){o||(b(s),o=!0)},o(r){I(s),o=!1},d(r){s&&s.d(r),r&&m(e),r&&m(t)}}}function tt(f){let e,l,t=A("workflows","attempts-left")+"",o,s,r,i,a,n;r=new ce({props:{type:"error",$$slots:{default:[Ft]},$$scope:{ctx:f}}});let u=f[7].scheduledTime&<(f);return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),i=E(),u&&u.c(),a=J(),this.h()},l($){e=d($,"LI",{class:!0});var p=v(e);l=d(p,"H4",{});var g=v(l);o=H(g,t),g.forEach(m),s=T(p),R(r.$$.fragment,p),p.forEach(m),i=T($),u&&u.l($),a=J(),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m($,p){k($,e,p),c(e,l),c(l,o),c(e,s),q(r,e,null),k($,i,p),u&&u.m($,p),k($,a,p),n=!0},p($,p){const g={};p&2049&&(g.$$scope={dirty:p,ctx:$}),r.$set(g),$[7].scheduledTime?u?(u.p($,p),p&1&&b(u,1)):(u=lt($),u.c(),b(u,1),u.m(a.parentNode,a)):u&&(Q(),I(u,1,1,()=>{u=null}),X())},i($){n||(b(r.$$.fragment,$),b(u),n=!0)},o($){I(r.$$.fragment,$),I(u),n=!1},d($){$&&m(e),M(r),$&&m(i),u&&u.d($),$&&m(a)}}}function Ft(f){let e=Ge(f[7].maximumAttempts,f[7].attempt)+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ge(t[7].maximumAttempts,t[7].attempt)+"")&&z(l,e)},d(t){t&&m(l)}}}function lt(f){let e,l,t=A("workflows","next-retry")+"",o,s,r,i;return r=new ce({props:{type:"error",$$slots:{default:[Nt]},$$scope:{ctx:f}}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&2049&&(u.$$scope={dirty:n,ctx:a}),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function Nt(f){let e=Ze({date:f[7].scheduledTime,negativeDefault:A("workflows","no-retry")})+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Ze({date:t[7].scheduledTime,negativeDefault:A("workflows","no-retry")})+"")&&z(l,e)},d(t){t&&m(l)}}}function Wt(f){let e=Je(f[7].maximumAttempts)+"",l;return{c(){l=L(e)},l(t){l=H(t,e)},m(t,o){k(t,l,o)},p(t,o){o&1&&e!==(e=Je(t[7].maximumAttempts)+"")&&z(l,e)},d(t){t&&m(l)}}}function rt(f){let e,l,t,o,s=A("workflows","retry-expiration")+"",r,i,a,n=Qe(f[7].maximumAttempts,Xe(Ye({start:Date.now(),end:f[7].expirationTime})))+"",u,$,p=f[7].heartbeatDetails&&at(f),g=f[7].lastFailure&&st(f);return{c(){p&&p.c(),e=E(),g&&g.c(),l=E(),t=h("li"),o=h("h4"),r=L(s),i=E(),a=h("p"),u=L(n),this.h()},l(w){p&&p.l(w),e=T(w),g&&g.l(w),l=T(w),t=d(w,"LI",{class:!0});var P=v(t);o=d(P,"H4",{});var re=v(o);r=H(re,s),re.forEach(m),i=T(P),a=d(P,"P",{});var Z=v(a);u=H(Z,n),Z.forEach(m),P.forEach(m),this.h()},h(){N(t,"class","event-table-row svelte-pnunl5")},m(w,P){p&&p.m(w,P),k(w,e,P),g&&g.m(w,P),k(w,l,P),k(w,t,P),c(t,o),c(o,r),c(t,i),c(t,a),c(a,u),$=!0},p(w,P){w[7].heartbeatDetails?p?(p.p(w,P),P&1&&b(p,1)):(p=at(w),p.c(),b(p,1),p.m(e.parentNode,e)):p&&(Q(),I(p,1,1,()=>{p=null}),X()),w[7].lastFailure?g?(g.p(w,P),P&1&&b(g,1)):(g=st(w),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(Q(),I(g,1,1,()=>{g=null}),X()),(!$||P&1)&&n!==(n=Qe(w[7].maximumAttempts,Xe(Ye({start:Date.now(),end:w[7].expirationTime})))+"")&&z(u,n)},i(w){$||(b(p),b(g),$=!0)},o(w){I(p),I(g),$=!1},d(w){p&&p.d(w),w&&m(e),g&&g.d(w),w&&m(l),w&&m(t)}}}function at(f){let e,l,t=A("workflows","heartbeat-details")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(f[7].heartbeatDetails),copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&1&&(u.content=Te(a[7].heartbeatDetails)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function st(f){let e,l,t=A("workflows","last-failure")+"",o,s,r,i;return r=new pt({props:{slot:"value",class:"pb-2",content:Te(f[7].lastFailure),copyIconTitle:A("copy-icon-title"),copySuccessIconTitle:A("copy-success-icon-title")}}),{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),B(r.$$.fragment),this.h()},l(a){e=d(a,"LI",{class:!0});var n=v(e);l=d(n,"H4",{});var u=v(l);o=H(u,t),u.forEach(m),s=T(n),R(r.$$.fragment,n),n.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(a,n){k(a,e,n),c(e,l),c(l,o),c(e,s),q(r,e,null),i=!0},p(a,n){const u={};n&1&&(u.content=Te(a[7].lastFailure)),r.$set(u)},i(a){i||(b(r.$$.fragment,a),i=!0)},o(a){I(r.$$.fragment,a),i=!1},d(a){a&&m(e),M(r)}}}function ot(f){let e,l,t=A("workflows","last-started-time")+"",o,s,r,i=le(f[7].lastStartedTime,f[1],{relative:f[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&7&&i!==(i=le(n[7].lastStartedTime,n[1],{relative:n[2]})+"")&&z(a,i)},d(n){n&&m(e)}}}function it(f){let e,l,t=A("workflows","scheduled-time")+"",o,s,r,i=le(f[7].scheduledTime,f[1],{relative:f[2]})+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&7&&i!==(i=le(n[7].scheduledTime,n[1],{relative:n[2]})+"")&&z(a,i)},d(n){n&&m(e)}}}function ft(f){let e,l,t=A("workflows","last-worker-identity")+"",o,s,r,i=f[7].lastWorkerIdentity+"",a;return{c(){e=h("li"),l=h("h4"),o=L(t),s=E(),r=h("p"),a=L(i),this.h()},l(n){e=d(n,"LI",{class:!0});var u=v(e);l=d(u,"H4",{});var $=v(l);o=H($,t),$.forEach(m),s=T(u),r=d(u,"P",{});var p=v(r);a=H(p,i),p.forEach(m),u.forEach(m),this.h()},h(){N(e,"class","event-table-row svelte-pnunl5")},m(n,u){k(n,e,u),c(e,l),c(l,o),c(e,s),c(e,r),c(r,a)},p(n,u){u&1&&i!==(i=n[7].lastWorkerIdentity+"")&&z(a,i)},d(n){n&&m(e)}}}function Ct(f){let e,l,t,o,s,r,i,a,n=A("workflows","activity-type")+"",u,$,p,g,w,P,re=A("workflows","attempt")+"",Z,Ie,K,ye,me,O,ae,je=A("workflows","maximum-attempts")+"",Le,He,U,De,pe,V,se,Be=A("workflows","last-heartbeat")+"",Ae,Pe,oe,ie=le(f[7].lastHeartbeatTime,f[1],{relative:f[2],relativeStrict:!0})+"",_e,Se,G,fe,Re=A("workflows","state")+"",Fe,Ne,ne,ue=f[7].state+"",$e,We,he,de,ve,x;t=new kt({props:{href:"#"+f[5],$$slots:{default:[At]},$$scope:{ctx:f}}}),p=new ce({props:{type:f[8]?"error":"default",$$slots:{default:[Pt]},$$scope:{ctx:f}}}),K=new ce({props:{type:f[8]?"error":"default",$$slots:{default:[St]},$$scope:{ctx:f}}});let S=f[8]&&tt(f);U=new ce({props:{$$slots:{default:[Wt]},$$scope:{ctx:f}}});let F=f[8]&&rt(f),W=f[7].lastStartedTime&&ot(f),C=f[7].scheduledTime&&it(f),j=f[7].lastWorkerIdentity&&ft(f);return{c(){e=h("td"),l=h("div"),B(t.$$.fragment),o=E(),s=h("td"),r=h("ul"),i=h("li"),a=h("h4"),u=L(n),$=E(),B(p.$$.fragment),g=E(),w=h("li"),P=h("h4"),Z=L(re),Ie=E(),B(K.$$.fragment),ye=E(),S&&S.c(),me=E(),O=h("li"),ae=h("h4"),Le=L(je),He=E(),B(U.$$.fragment),De=E(),F&&F.c(),pe=E(),V=h("li"),se=h("h4"),Ae=L(Be),Pe=E(),oe=h("p"),_e=L(ie),Se=E(),G=h("li"),fe=h("h4"),Fe=L(Re),Ne=E(),ne=h("p"),$e=L(ue),We=E(),W&&W.c(),he=E(),C&&C.c(),de=E(),j&&j.c(),ve=E(),this.h()},l(_){e=d(_,"TD",{class:!0});var y=v(e);l=d(y,"DIV",{class:!0});var ee=v(l);R(t.$$.fragment,ee),ee.forEach(m),y.forEach(m),o=T(_),s=d(_,"TD",{class:!0});var te=v(s);r=d(te,"UL",{});var D=v(r);i=d(D,"LI",{class:!0});var Y=v(i);a=d(Y,"H4",{class:!0});var qe=v(a);u=H(qe,n),qe.forEach(m),$=T(Y),R(p.$$.fragment,Y),Y.forEach(m),g=T(D),w=d(D,"LI",{class:!0});var we=v(w);P=d(we,"H4",{});var Me=v(P);Z=H(Me,re),Me.forEach(m),Ie=T(we),R(K.$$.fragment,we),we.forEach(m),ye=T(D),S&&S.l(D),me=T(D),O=d(D,"LI",{class:!0});var be=v(O);ae=d(be,"H4",{});var ze=v(ae);Le=H(ze,je),ze.forEach(m),He=T(be),R(U.$$.fragment,be),be.forEach(m),De=T(D),F&&F.l(D),pe=T(D),V=d(D,"LI",{class:!0});var ke=v(V);se=d(ke,"H4",{});var Ke=v(se);Ae=H(Ke,Be),Ke.forEach(m),Pe=T(ke),oe=d(ke,"P",{});var Oe=v(oe);_e=H(Oe,ie),Oe.forEach(m),ke.forEach(m),Se=T(D),G=d(D,"LI",{class:!0});var ge=v(G);fe=d(ge,"H4",{});var Ue=v(fe);Fe=H(Ue,Re),Ue.forEach(m),Ne=T(ge),ne=d(ge,"P",{});var Ve=v(ne);$e=H(Ve,ue),Ve.forEach(m),ge.forEach(m),We=T(D),W&&W.l(D),he=T(D),C&&C.l(D),de=T(D),j&&j.l(D),D.forEach(m),te.forEach(m),ve=T(_),this.h()},h(){N(l,"class","pt-1"),N(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),N(a,"class","font-semibold"),N(i,"class","event-table-row svelte-pnunl5"),N(w,"class","event-table-row svelte-pnunl5"),N(O,"class","event-table-row svelte-pnunl5"),N(V,"class","event-table-row svelte-pnunl5"),N(G,"class","event-table-row svelte-pnunl5"),N(s,"class","py-4 px-5")},m(_,y){k(_,e,y),c(e,l),q(t,l,null),k(_,o,y),k(_,s,y),c(s,r),c(r,i),c(i,a),c(a,u),c(i,$),q(p,i,null),c(r,g),c(r,w),c(w,P),c(P,Z),c(w,Ie),q(K,w,null),c(r,ye),S&&S.m(r,null),c(r,me),c(r,O),c(O,ae),c(ae,Le),c(O,He),q(U,O,null),c(r,De),F&&F.m(r,null),c(r,pe),c(r,V),c(V,se),c(se,Ae),c(V,Pe),c(V,oe),c(oe,_e),c(r,Se),c(r,G),c(G,fe),c(fe,Fe),c(G,Ne),c(G,ne),c(ne,$e),c(r,We),W&&W.m(r,null),c(r,he),C&&C.m(r,null),c(r,de),j&&j.m(r,null),k(_,ve,y),x=!0},p(_,y){const ee={};y&1&&(ee.href="#"+_[5]),y&2049&&(ee.$$scope={dirty:y,ctx:_}),t.$set(ee);const te={};y&1&&(te.type=_[8]?"error":"default"),y&2049&&(te.$$scope={dirty:y,ctx:_}),p.$set(te);const D={};y&1&&(D.type=_[8]?"error":"default"),y&2049&&(D.$$scope={dirty:y,ctx:_}),K.$set(D),_[8]?S?(S.p(_,y),y&1&&b(S,1)):(S=tt(_),S.c(),b(S,1),S.m(r,me)):S&&(Q(),I(S,1,1,()=>{S=null}),X());const Y={};y&2049&&(Y.$$scope={dirty:y,ctx:_}),U.$set(Y),_[8]?F?(F.p(_,y),y&1&&b(F,1)):(F=rt(_),F.c(),b(F,1),F.m(r,pe)):F&&(Q(),I(F,1,1,()=>{F=null}),X()),(!x||y&7)&&ie!==(ie=le(_[7].lastHeartbeatTime,_[1],{relative:_[2],relativeStrict:!0})+"")&&z(_e,ie),(!x||y&1)&&ue!==(ue=_[7].state+"")&&z($e,ue),_[7].lastStartedTime?W?W.p(_,y):(W=ot(_),W.c(),W.m(r,he)):W&&(W.d(1),W=null),_[7].scheduledTime?C?C.p(_,y):(C=it(_),C.c(),C.m(r,de)):C&&(C.d(1),C=null),_[7].lastWorkerIdentity?j?j.p(_,y):(j=ft(_),j.c(),j.m(r,null)):j&&(j.d(1),j=null)},i(_){x||(b(t.$$.fragment,_),b(p.$$.fragment,_),b(K.$$.fragment,_),b(S),b(U.$$.fragment,_),b(F),x=!0)},o(_){I(t.$$.fragment,_),I(p.$$.fragment,_),I(K.$$.fragment,_),I(S),I(U.$$.fragment,_),I(F),x=!1},d(_){_&&m(e),M(t),_&&m(o),_&&m(s),M(p),M(K),S&&S.d(),M(U),F&&F.d(),W&&W.d(),C&&C.d(),j&&j.d(),_&&m(ve)}}}function nt(f,e){let l,t,o;return t=new Tt({props:{$$slots:{default:[Ct]},$$scope:{ctx:e}}}),{key:f,first:null,c(){l=J(),B(t.$$.fragment),this.h()},l(s){l=J(),R(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,r){k(s,l,r),q(t,s,r),o=!0},p(s,r){e=s;const i={};r&2055&&(i.$$scope={dirty:r,ctx:e}),t.$set(i)},i(s){o||(b(t.$$.fragment,s),o=!0)},o(s){I(t.$$.fragment,s),o=!1},d(s){s&&m(l),M(t,s)}}}function jt(f){let e=[],l=new Map,t,o,s=f[0];const r=i=>i[5];for(let i=0;i{r[u]=null}),X(),l=r[e],l?l.p(a,n):(l=r[e]=s[e](a),l.c()),b(l,1),l.m(t.parentNode,t))},i(a){o||(b(l),o=!0)},o(a){I(l),o=!1},d(a){r[e].d(a),a&&m(t)}}}function zt(f,e,l){let t,o,s,r;Ee(f,Lt,a=>l(4,o=a)),Ee(f,It,a=>l(1,s=a)),Ee(f,yt,a=>l(2,r=a));var i;return f.$$.update=()=>{f.$$.dirty&24&&l(0,t=l(3,i=o.workflow)===null||i===void 0?void 0:i.pendingActivities)},[t,s,r,i,o]}class Kt extends ut{constructor(e){super(),ct(this,e,zt,Mt,mt,{})}}function Ot(f){let e,l,t,o;return e=new vt({props:{title:`${A("workflows","pending-activities-tab")} | ${f[1]}`,url:f[0].url.href}}),t=new Kt({}),{c(){B(e.$$.fragment),l=E(),B(t.$$.fragment)},l(s){R(e.$$.fragment,s),l=T(s),R(t.$$.fragment,s)},m(s,r){q(e,s,r),k(s,l,r),q(t,s,r),o=!0},p(s,[r]){const i={};r&1&&(i.url=s[0].url.href),e.$set(i)},i(s){o||(b(e.$$.fragment,s),b(t.$$.fragment,s),o=!0)},o(s){I(e.$$.fragment,s),I(t.$$.fragment,s),o=!1},d(s){M(e,s),s&&m(l),M(t,s)}}}function Ut(f,e,l){let t;Ee(f,dt,s=>l(0,t=s));const o=t.params.workflow;return[t,o]}class nl extends ut{constructor(e){super(),ct(this,e,Ut,Ot,mt,{})}}export{nl as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js index fc4cba0714..eeba10a04f 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js @@ -1 +1 @@ -import{S as Z,b as G,a as H,ar as U,m as T,p as C,q as S,k as $,f as b,as as J,j as _,g,K as z,C as w,D as v,E as y,n as m,F as q,A as X,Z as Y,c as B,d as F,u as L,L as D,_ as x,e as O,z as ee,h as te,a7 as ne,w as A,x as K}from"../chunks/index.6779d4e2.js";import{p as M}from"../chunks/stores.6ee4c480.js";import{P as re}from"../chunks/page-title.990af218.js";import{t as E}from"../chunks/translate.29a4bc43.js";import{B as le}from"../chunks/button.0b50a4b4.js";import{C as oe}from"../chunks/code-block.c796ec58.js";import{E as ae}from"../chunks/empty-state.c8d40bbf.js";import{L as se}from"../chunks/loading.a6f9064e.js";import{S as ce,a as ue}from"../chunks/simple-select.e8b6fede.js";import{T as ie}from"../chunks/toggle-switch.0d2aaadb.js";import{g as fe,a as me}from"../chunks/query-service.a85dd707.js";import{a as pe}from"../chunks/auth-user.6f15fe0f.js";function R(l,t,r){const e=l.slice();return e[16]=t[r],e}function $e(l){var e;let t,r;return t=new ae({props:{title:E("error-occurred"),content:E("workflows","no-workers-running-message"),error:(e=l[19])==null?void 0:e.message}}),{c(){w(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,o){y(t,n,o),r=!0},p:m,i(n){r||(_(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){q(t,n)}}}function _e(l){let t,r,e,n,o,a,u,s,i,k,h,I,j;function Q(c){l[5](c)}let N={id:"query-select",label:E("workflows","query-type"),"data-testid":"query-select",$$slots:{default:[he]},$$scope:{ctx:l}};l[0]!==void 0&&(N.value=l[0]),e=new ce({props:N}),X.push(()=>Y(e,"value",Q)),a=new le({props:{leadingIcon:"retry",loading:qe,$$slots:{default:[de]},$$scope:{ctx:l}}}),a.$on("click",l[6]),i=new ie({props:{label:E("workflows","json-formatting"),labelPosition:"left",id:"json-formatting",checked:l[2]}}),i.$on("change",l[7]);let p={ctx:l,current:null,token:null,hasCatch:!1,pending:we,then:be,catch:ke,value:15,blocks:[,,,]};return U(I=l[1],p),{c(){t=T("div"),r=T("div"),w(e.$$.fragment),o=B(),w(a.$$.fragment),u=B(),s=T("div"),w(i.$$.fragment),k=B(),h=T("div"),p.block.c(),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=S(t);r=C(f,"DIV",{class:!0});var d=S(r);v(e.$$.fragment,d),o=F(d),v(a.$$.fragment,d),d.forEach($),u=F(f),s=C(f,"DIV",{class:!0});var P=S(s);v(i.$$.fragment,P),P.forEach($),f.forEach($),k=F(c),h=C(c,"DIV",{class:!0});var V=S(h);p.block.l(V),V.forEach($),this.h()},h(){L(r,"class","flex items-center gap-4"),L(s,"class","flex justify-end"),L(t,"class","flex justify-between"),L(h,"class","my-2 flex h-full items-start")},m(c,f){b(c,t,f),D(t,r),y(e,r,null),D(r,o),y(a,r,null),D(t,u),D(t,s),y(i,s,null),b(c,k,f),b(c,h,f),p.block.m(h,p.anchor=null),p.mount=()=>h,p.anchor=null,j=!0},p(c,f){l=c;const d={};f&1048576&&(d.$$scope={dirty:f,ctx:l}),!n&&f&1&&(n=!0,d.value=l[0],x(()=>n=!1)),e.$set(d);const P={};f&1048576&&(P.$$scope={dirty:f,ctx:l}),a.$set(P);const V={};f&4&&(V.checked=l[2]),i.$set(V),p.ctx=l,f&2&&I!==(I=l[1])&&U(I,p)||J(p,l,f)},i(c){j||(_(e.$$.fragment,c),_(a.$$.fragment,c),_(i.$$.fragment,c),_(p.block),j=!0)},o(c){g(e.$$.fragment,c),g(a.$$.fragment,c),g(i.$$.fragment,c);for(let f=0;f<3;f+=1){const d=p.blocks[f];g(d)}j=!1},d(c){c&&$(t),q(e),q(a),q(i),c&&$(k),c&&$(h),p.block.d(),p.token=null,p=null}}}function ge(l){let t=l[16]+"",r;return{c(){r=A(t)},l(e){r=K(e,t)},m(e,n){b(e,r,n)},p:m,d(e){e&&$(r)}}}function W(l){let t,r;return t=new ue({props:{value:l[16],$$slots:{default:[ge]},$$scope:{ctx:l}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,n){y(t,e,n),r=!0},p(e,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(_(t.$$.fragment,e),r=!0)},o(e){g(t.$$.fragment,e),r=!1},d(e){q(t,e)}}}function he(l){let t,r,e=l[14],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,r=!0},p(n,[o]){l=n,J(e,l,o)},i(n){r||(_(e.block),r=!0)},o(n){for(let o=0;o<3;o+=1){const a=e.blocks[o];g(a)}r=!1},d(n){n&&$(t),e.block.d(),e.token=null,e=null}}}let qe=!1;function Ee(l,t,r){let e,n;z(l,pe,c=>r(8,e=c)),z(l,M,c=>r(9,n=c));const{namespace:o,workflow:a,run:u}=n.params,s={id:a,runId:u};let i,k=fe({namespace:o,workflow:s}).then(c=>(r(0,i=i||c[0]),c)),h;const I=c=>{var f;r(1,h=me({namespace:o,workflow:s,queryType:c},(f=n.data)===null||f===void 0?void 0:f.settings,e==null?void 0:e.accessToken))};let j=!0;function Q(c){i=c,r(0,i)}const N=()=>I(i),p=()=>r(2,j=!j);return l.$$.update=()=>{l.$$.dirty&1&&i&&I(i)},[i,h,j,k,I,Q,N,p]}class Ie extends Z{constructor(t){super(),G(this,t,Ee,ye,H,{})}}function je(l){let t,r,e,n;return t=new re({props:{title:`${E("workflows","queries-tab")} | ${l[1]}`,url:l[0].url.href}}),e=new Ie({}),{c(){w(t.$$.fragment),r=B(),w(e.$$.fragment)},l(o){v(t.$$.fragment,o),r=F(o),v(e.$$.fragment,o)},m(o,a){y(t,o,a),b(o,r,a),y(e,o,a),n=!0},p(o,[a]){const u={};a&1&&(u.url=o[0].url.href),t.$set(u)},i(o){n||(_(t.$$.fragment,o),_(e.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),g(e.$$.fragment,o),n=!1},d(o){q(t,o),o&&$(r),q(e,o)}}}function Te(l,t,r){let e;z(l,M,o=>r(0,e=o));const n=e.params.workflow;return[e,n]}class Ae extends Z{constructor(t){super(),G(this,t,Te,je,H,{})}}export{Ae as default}; +import{S as Z,b as G,a as H,ar as U,m as T,p as C,q as S,k as $,f as b,as as J,j as _,g,K as z,C as w,D as v,E as y,n as m,F as q,A as X,Z as Y,c as B,d as F,u as L,L as D,_ as x,e as O,z as ee,h as te,a7 as ne,w as A,x as K}from"../chunks/index.6779d4e2.js";import{p as M}from"../chunks/stores.b96d31b2.js";import{P as re}from"../chunks/page-title.990af218.js";import{t as E}from"../chunks/translate.29a4bc43.js";import{B as le}from"../chunks/button.0b50a4b4.js";import{C as oe}from"../chunks/code-block.c796ec58.js";import{E as ae}from"../chunks/empty-state.c8d40bbf.js";import{L as se}from"../chunks/loading.a6f9064e.js";import{S as ce,a as ue}from"../chunks/simple-select.e8b6fede.js";import{T as ie}from"../chunks/toggle-switch.0d2aaadb.js";import{g as fe,a as me}from"../chunks/query-service.9e1c6e1c.js";import{a as pe}from"../chunks/auth-user.6f15fe0f.js";function R(l,t,r){const e=l.slice();return e[16]=t[r],e}function $e(l){var e;let t,r;return t=new ae({props:{title:E("error-occurred"),content:E("workflows","no-workers-running-message"),error:(e=l[19])==null?void 0:e.message}}),{c(){w(t.$$.fragment)},l(n){v(t.$$.fragment,n)},m(n,o){y(t,n,o),r=!0},p:m,i(n){r||(_(t.$$.fragment,n),r=!0)},o(n){g(t.$$.fragment,n),r=!1},d(n){q(t,n)}}}function _e(l){let t,r,e,n,o,a,u,s,i,k,h,I,j;function Q(c){l[5](c)}let N={id:"query-select",label:E("workflows","query-type"),"data-testid":"query-select",$$slots:{default:[he]},$$scope:{ctx:l}};l[0]!==void 0&&(N.value=l[0]),e=new ce({props:N}),X.push(()=>Y(e,"value",Q)),a=new le({props:{leadingIcon:"retry",loading:qe,$$slots:{default:[de]},$$scope:{ctx:l}}}),a.$on("click",l[6]),i=new ie({props:{label:E("workflows","json-formatting"),labelPosition:"left",id:"json-formatting",checked:l[2]}}),i.$on("change",l[7]);let p={ctx:l,current:null,token:null,hasCatch:!1,pending:we,then:be,catch:ke,value:15,blocks:[,,,]};return U(I=l[1],p),{c(){t=T("div"),r=T("div"),w(e.$$.fragment),o=B(),w(a.$$.fragment),u=B(),s=T("div"),w(i.$$.fragment),k=B(),h=T("div"),p.block.c(),this.h()},l(c){t=C(c,"DIV",{class:!0});var f=S(t);r=C(f,"DIV",{class:!0});var d=S(r);v(e.$$.fragment,d),o=F(d),v(a.$$.fragment,d),d.forEach($),u=F(f),s=C(f,"DIV",{class:!0});var P=S(s);v(i.$$.fragment,P),P.forEach($),f.forEach($),k=F(c),h=C(c,"DIV",{class:!0});var V=S(h);p.block.l(V),V.forEach($),this.h()},h(){L(r,"class","flex items-center gap-4"),L(s,"class","flex justify-end"),L(t,"class","flex justify-between"),L(h,"class","my-2 flex h-full items-start")},m(c,f){b(c,t,f),D(t,r),y(e,r,null),D(r,o),y(a,r,null),D(t,u),D(t,s),y(i,s,null),b(c,k,f),b(c,h,f),p.block.m(h,p.anchor=null),p.mount=()=>h,p.anchor=null,j=!0},p(c,f){l=c;const d={};f&1048576&&(d.$$scope={dirty:f,ctx:l}),!n&&f&1&&(n=!0,d.value=l[0],x(()=>n=!1)),e.$set(d);const P={};f&1048576&&(P.$$scope={dirty:f,ctx:l}),a.$set(P);const V={};f&4&&(V.checked=l[2]),i.$set(V),p.ctx=l,f&2&&I!==(I=l[1])&&U(I,p)||J(p,l,f)},i(c){j||(_(e.$$.fragment,c),_(a.$$.fragment,c),_(i.$$.fragment,c),_(p.block),j=!0)},o(c){g(e.$$.fragment,c),g(a.$$.fragment,c),g(i.$$.fragment,c);for(let f=0;f<3;f+=1){const d=p.blocks[f];g(d)}j=!1},d(c){c&&$(t),q(e),q(a),q(i),c&&$(k),c&&$(h),p.block.d(),p.token=null,p=null}}}function ge(l){let t=l[16]+"",r;return{c(){r=A(t)},l(e){r=K(e,t)},m(e,n){b(e,r,n)},p:m,d(e){e&&$(r)}}}function W(l){let t,r;return t=new ue({props:{value:l[16],$$slots:{default:[ge]},$$scope:{ctx:l}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,n){y(t,e,n),r=!0},p(e,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(_(t.$$.fragment,e),r=!0)},o(e){g(t.$$.fragment,e),r=!1},d(e){q(t,e)}}}function he(l){let t,r,e=l[14],n=[];for(let a=0;ag(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,r=!0},p(n,[o]){l=n,J(e,l,o)},i(n){r||(_(e.block),r=!0)},o(n){for(let o=0;o<3;o+=1){const a=e.blocks[o];g(a)}r=!1},d(n){n&&$(t),e.block.d(),e.token=null,e=null}}}let qe=!1;function Ee(l,t,r){let e,n;z(l,pe,c=>r(8,e=c)),z(l,M,c=>r(9,n=c));const{namespace:o,workflow:a,run:u}=n.params,s={id:a,runId:u};let i,k=fe({namespace:o,workflow:s}).then(c=>(r(0,i=i||c[0]),c)),h;const I=c=>{var f;r(1,h=me({namespace:o,workflow:s,queryType:c},(f=n.data)===null||f===void 0?void 0:f.settings,e==null?void 0:e.accessToken))};let j=!0;function Q(c){i=c,r(0,i)}const N=()=>I(i),p=()=>r(2,j=!j);return l.$$.update=()=>{l.$$.dirty&1&&i&&I(i)},[i,h,j,k,I,Q,N,p]}class Ie extends Z{constructor(t){super(),G(this,t,Ee,ye,H,{})}}function je(l){let t,r,e,n;return t=new re({props:{title:`${E("workflows","queries-tab")} | ${l[1]}`,url:l[0].url.href}}),e=new Ie({}),{c(){w(t.$$.fragment),r=B(),w(e.$$.fragment)},l(o){v(t.$$.fragment,o),r=F(o),v(e.$$.fragment,o)},m(o,a){y(t,o,a),b(o,r,a),y(e,o,a),n=!0},p(o,[a]){const u={};a&1&&(u.url=o[0].url.href),t.$set(u)},i(o){n||(_(t.$$.fragment,o),_(e.$$.fragment,o),n=!0)},o(o){g(t.$$.fragment,o),g(e.$$.fragment,o),n=!1},d(o){q(t,o),o&&$(r),q(e,o)}}}function Te(l,t,r){let e;z(l,M,o=>r(0,e=o));const n=e.params.workflow;return[e,n]}class Ae extends Z{constructor(t){super(),G(this,t,Te,je,H,{})}}export{Ae as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js index b135a4432b..702564ddce 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js @@ -1 +1 @@ -import{S as F,b as K,a as O,m as S,p as L,q as C,k as _,f as h,z as A,g as w,h as G,j as $,K as N,C as v,D as y,E,F as T,ar as W,e as V,as as X,w as D,x as P,L as b,y as H,n as B,c as q,d as Q,u as U}from"../chunks/index.6779d4e2.js";import{p as J}from"../chunks/stores.6ee4c480.js";import{P as Y}from"../chunks/page-title.990af218.js";import{t as d}from"../chunks/translate.29a4bc43.js";import{B as Z}from"../chunks/button.0b50a4b4.js";import{C as x}from"../chunks/code-block.c796ec58.js";import{E as M}from"../chunks/empty-state.c8d40bbf.js";import{L as ee}from"../chunks/link.8030aa06.js";import{L as te}from"../chunks/loading.a6f9064e.js";import{b as j}from"../chunks/query-service.a85dd707.js";import{a as re}from"../chunks/auth-user.6f15fe0f.js";import{w as oe}from"../chunks/workflow-run.4e335848.js";function ne(c){let t,r;return t=new M({props:{title:d("workflows","stack-trace-empty-state"),testId:"query-stack-trace-empty",$$slots:{default:[se]},$$scope:{ctx:c}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,o){E(t,e,o),r=!0},p(e,o){const n={};o&4105&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function le(c){let t,r,e,o={ctx:c,current:null,token:null,hasCatch:!0,pending:ue,then:fe,catch:ce,value:10,error:11,blocks:[,,,]};return W(r=c[2],o),{c(){t=V(),o.block.c()},l(n){t=V(),o.block.l(n)},m(n,l){h(n,t,l),o.block.m(n,o.anchor=l),o.mount=()=>t.parentNode,o.anchor=t,e=!0},p(n,l){c=n,o.ctx=c,l&4&&r!==(r=c[2])&&W(r,o)||X(o,c,l)},i(n){e||($(o.block),e=!0)},o(n){for(let l=0;l<3;l+=1){const s=o.blocks[l];w(s)}e=!1},d(n){n&&_(t),o.block.d(n),o.token=null,o=null}}}function z(c){var a;let t,r=d("workflows","stack-trace-link-preface")+"",e,o,n=d("workflows","stack-trace-link-postface",{taskQueue:(a=c[0])==null?void 0:a.taskQueue})+"",l,s;return o=new ee({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){t=S("p"),e=D(r),v(o.$$.fragment),l=D(n)},l(f){t=L(f,"P",{});var i=C(t);e=P(i,r),y(o.$$.fragment,i),l=P(i,n),i.forEach(_)},m(f,i){h(f,t,i),b(t,e),E(o,t,null),b(t,l),s=!0},p(f,i){var k;const u={};i&4096&&(u.$$scope={dirty:i,ctx:f}),o.$set(u),(!s||i&1)&&n!==(n=d("workflows","stack-trace-link-postface",{taskQueue:(k=f[0])==null?void 0:k.taskQueue})+"")&&H(l,n)},i(f){s||($(o.$$.fragment,f),s=!0)},o(f){w(o.$$.fragment,f),s=!1},d(f){f&&_(t),T(o)}}}function ae(c){let t=d("workflows","stack-trace-link")+"",r;return{c(){r=D(t)},l(e){r=P(e,t)},m(e,o){h(e,r,o)},p:B,d(e){e&&_(r)}}}function se(c){var o,n,l;let t,r,e=((o=c[0])==null?void 0:o.isRunning)&&((l=(n=c[3])==null?void 0:n.pollers)==null?void 0:l.length)===0&&z(c);return{c(){e&&e.c(),t=V()},l(s){e&&e.l(s),t=V()},m(s,a){e&&e.m(s,a),h(s,t,a),r=!0},p(s,a){var f,i,u;(f=s[0])!=null&&f.isRunning&&((u=(i=s[3])==null?void 0:i.pollers)==null?void 0:u.length)===0?e?(e.p(s,a),a&9&&$(e,1)):(e=z(s),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(A(),w(e,1,1,()=>{e=null}),G())},i(s){r||($(e),r=!0)},o(s){w(e),r=!1},d(s){e&&e.d(s),s&&_(t)}}}function ce(c){let t,r;return t=new M({props:{title:d("error-occurred"),content:d("workflows","no-workers-running-message")}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,o){E(t,e,o),r=!0},p:B,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function fe(c){let t,r,e,o,n=d("workflows","stack-trace-at")+"",l,s,a=c[1].toLocaleTimeString()+"",f,i,u,k,m;return r=new Z({props:{leadingIcon:"retry",loading:me,$$slots:{default:[ie]},$$scope:{ctx:c}}}),r.$on("click",c[4]),k=new x({props:{content:c[10],language:"text",testId:"query-stack-trace",copyIconTitle:d("copy-icon-title"),copySuccessIconTitle:d("copy-success-icon-title")}}),{c(){t=S("div"),v(r.$$.fragment),e=q(),o=S("p"),l=D(n),s=q(),f=D(a),i=q(),u=S("div"),v(k.$$.fragment),this.h()},l(p){t=L(p,"DIV",{class:!0});var g=C(t);y(r.$$.fragment,g),e=Q(g),o=L(g,"P",{});var I=C(o);l=P(I,n),s=Q(I),f=P(I,a),I.forEach(_),g.forEach(_),i=Q(p),u=L(p,"DIV",{class:!0});var R=C(u);y(k.$$.fragment,R),R.forEach(_),this.h()},h(){U(t,"class","flex items-center gap-4"),U(u,"class","my-2 flex h-full items-start")},m(p,g){h(p,t,g),E(r,t,null),b(t,e),b(t,o),b(o,l),b(o,s),b(o,f),h(p,i,g),h(p,u,g),E(k,u,null),m=!0},p(p,g){const I={};g&4096&&(I.$$scope={dirty:g,ctx:p}),r.$set(I),(!m||g&2)&&a!==(a=p[1].toLocaleTimeString()+"")&&H(f,a);const R={};g&4&&(R.content=p[10]),k.$set(R)},i(p){m||($(r.$$.fragment,p),$(k.$$.fragment,p),m=!0)},o(p){w(r.$$.fragment,p),w(k.$$.fragment,p),m=!1},d(p){p&&_(t),T(r),p&&_(i),p&&_(u),T(k)}}}function ie(c){let t=d("refresh")+"",r;return{c(){r=D(t)},l(e){r=P(e,t)},m(e,o){h(e,r,o)},p:B,d(e){e&&_(r)}}}function ue(c){let t,r,e,o,n=d("workflows","no-workers-failure-message")+"",l,s;return r=new te({}),{c(){t=S("div"),v(r.$$.fragment),e=q(),o=S("p"),l=D(n),this.h()},l(a){t=L(a,"DIV",{class:!0});var f=C(t);y(r.$$.fragment,f),e=Q(f),o=L(f,"P",{});var i=C(o);l=P(i,n),i.forEach(_),f.forEach(_),this.h()},h(){U(t,"class","text-center")},m(a,f){h(a,t,f),E(r,t,null),b(t,e),b(t,o),b(o,l),s=!0},p:B,i(a){s||($(r.$$.fragment,a),s=!0)},o(a){w(r.$$.fragment,a),s=!1},d(a){a&&_(t),T(r)}}}function pe(c){let t,r,e,o;const n=[le,ne],l=[];function s(a,f){var i,u,k;return(i=a[0])!=null&&i.isRunning&&((k=(u=a[3])==null?void 0:u.pollers)==null?void 0:k.length)>0?0:1}return r=s(c),e=l[r]=n[r](c),{c(){t=S("section"),e.c()},l(a){t=L(a,"SECTION",{});var f=C(t);e.l(f),f.forEach(_)},m(a,f){h(a,t,f),l[r].m(t,null),o=!0},p(a,[f]){let i=r;r=s(a),r===i?l[r].p(a,f):(A(),w(l[i],1,1,()=>{l[i]=null}),G(),e=l[r],e?e.p(a,f):(e=l[r]=n[r](a),e.c()),$(e,1),e.m(t,null))},i(a){o||($(e),o=!0)},o(a){w(e),o=!1},d(a){a&&_(t),l[r].d()}}}let me=!1;function _e(c,t,r){let e,o,n,l,s;N(c,re,m=>r(6,n=m)),N(c,J,m=>r(7,l=m)),N(c,oe,m=>r(5,s=m));const{namespace:a}=l.params;let f=new Date;const i=()=>{var m;return j({workflow:e,namespace:a},(m=l.data)===null||m===void 0?void 0:m.settings,n==null?void 0:n.accessToken)};let u;const k=()=>{var m;r(2,u=j({workflow:e,namespace:a},(m=l.data)===null||m===void 0?void 0:m.settings,n==null?void 0:n.accessToken)),u.then(()=>{r(1,f=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:o}=s,e,(r(3,o),r(5,s))),c.$$.dirty&1&&e!=null&&e.isRunning&&r(2,u=i())},[e,f,u,o,k,s]}class ke extends F{constructor(t){super(),K(this,t,_e,pe,O,{})}}function $e(c){let t,r,e,o;return t=new Y({props:{title:`${d("workflows","stack-trace-tab")} | ${c[1]}`,url:c[0].url.href}}),e=new ke({}),{c(){v(t.$$.fragment),r=q(),v(e.$$.fragment)},l(n){y(t.$$.fragment,n),r=Q(n),y(e.$$.fragment,n)},m(n,l){E(t,n,l),h(n,r,l),E(e,n,l),o=!0},p(n,[l]){const s={};l&1&&(s.url=n[0].url.href),t.$set(s)},i(n){o||($(t.$$.fragment,n),$(e.$$.fragment,n),o=!0)},o(n){w(t.$$.fragment,n),w(e.$$.fragment,n),o=!1},d(n){T(t,n),n&&_(r),T(e,n)}}}function ge(c,t,r){let e;N(c,J,n=>r(0,e=n));const o=e.params.workflow;return[e,o]}class De extends F{constructor(t){super(),K(this,t,ge,$e,O,{})}}export{De as default}; +import{S as F,b as K,a as O,m as S,p as L,q as C,k as _,f as h,z as A,g as w,h as G,j as $,K as N,C as v,D as y,E,F as T,ar as W,e as V,as as X,w as D,x as P,L as b,y as H,n as B,c as q,d as Q,u as U}from"../chunks/index.6779d4e2.js";import{p as J}from"../chunks/stores.b96d31b2.js";import{P as Y}from"../chunks/page-title.990af218.js";import{t as d}from"../chunks/translate.29a4bc43.js";import{B as Z}from"../chunks/button.0b50a4b4.js";import{C as x}from"../chunks/code-block.c796ec58.js";import{E as M}from"../chunks/empty-state.c8d40bbf.js";import{L as ee}from"../chunks/link.8030aa06.js";import{L as te}from"../chunks/loading.a6f9064e.js";import{b as j}from"../chunks/query-service.9e1c6e1c.js";import{a as re}from"../chunks/auth-user.6f15fe0f.js";import{w as oe}from"../chunks/workflow-run.4e335848.js";function ne(c){let t,r;return t=new M({props:{title:d("workflows","stack-trace-empty-state"),testId:"query-stack-trace-empty",$$slots:{default:[se]},$$scope:{ctx:c}}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,o){E(t,e,o),r=!0},p(e,o){const n={};o&4105&&(n.$$scope={dirty:o,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function le(c){let t,r,e,o={ctx:c,current:null,token:null,hasCatch:!0,pending:ue,then:fe,catch:ce,value:10,error:11,blocks:[,,,]};return W(r=c[2],o),{c(){t=V(),o.block.c()},l(n){t=V(),o.block.l(n)},m(n,l){h(n,t,l),o.block.m(n,o.anchor=l),o.mount=()=>t.parentNode,o.anchor=t,e=!0},p(n,l){c=n,o.ctx=c,l&4&&r!==(r=c[2])&&W(r,o)||X(o,c,l)},i(n){e||($(o.block),e=!0)},o(n){for(let l=0;l<3;l+=1){const s=o.blocks[l];w(s)}e=!1},d(n){n&&_(t),o.block.d(n),o.token=null,o=null}}}function z(c){var a;let t,r=d("workflows","stack-trace-link-preface")+"",e,o,n=d("workflows","stack-trace-link-postface",{taskQueue:(a=c[0])==null?void 0:a.taskQueue})+"",l,s;return o=new ee({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){t=S("p"),e=D(r),v(o.$$.fragment),l=D(n)},l(f){t=L(f,"P",{});var i=C(t);e=P(i,r),y(o.$$.fragment,i),l=P(i,n),i.forEach(_)},m(f,i){h(f,t,i),b(t,e),E(o,t,null),b(t,l),s=!0},p(f,i){var k;const u={};i&4096&&(u.$$scope={dirty:i,ctx:f}),o.$set(u),(!s||i&1)&&n!==(n=d("workflows","stack-trace-link-postface",{taskQueue:(k=f[0])==null?void 0:k.taskQueue})+"")&&H(l,n)},i(f){s||($(o.$$.fragment,f),s=!0)},o(f){w(o.$$.fragment,f),s=!1},d(f){f&&_(t),T(o)}}}function ae(c){let t=d("workflows","stack-trace-link")+"",r;return{c(){r=D(t)},l(e){r=P(e,t)},m(e,o){h(e,r,o)},p:B,d(e){e&&_(r)}}}function se(c){var o,n,l;let t,r,e=((o=c[0])==null?void 0:o.isRunning)&&((l=(n=c[3])==null?void 0:n.pollers)==null?void 0:l.length)===0&&z(c);return{c(){e&&e.c(),t=V()},l(s){e&&e.l(s),t=V()},m(s,a){e&&e.m(s,a),h(s,t,a),r=!0},p(s,a){var f,i,u;(f=s[0])!=null&&f.isRunning&&((u=(i=s[3])==null?void 0:i.pollers)==null?void 0:u.length)===0?e?(e.p(s,a),a&9&&$(e,1)):(e=z(s),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(A(),w(e,1,1,()=>{e=null}),G())},i(s){r||($(e),r=!0)},o(s){w(e),r=!1},d(s){e&&e.d(s),s&&_(t)}}}function ce(c){let t,r;return t=new M({props:{title:d("error-occurred"),content:d("workflows","no-workers-running-message")}}),{c(){v(t.$$.fragment)},l(e){y(t.$$.fragment,e)},m(e,o){E(t,e,o),r=!0},p:B,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){w(t.$$.fragment,e),r=!1},d(e){T(t,e)}}}function fe(c){let t,r,e,o,n=d("workflows","stack-trace-at")+"",l,s,a=c[1].toLocaleTimeString()+"",f,i,u,k,m;return r=new Z({props:{leadingIcon:"retry",loading:me,$$slots:{default:[ie]},$$scope:{ctx:c}}}),r.$on("click",c[4]),k=new x({props:{content:c[10],language:"text",testId:"query-stack-trace",copyIconTitle:d("copy-icon-title"),copySuccessIconTitle:d("copy-success-icon-title")}}),{c(){t=S("div"),v(r.$$.fragment),e=q(),o=S("p"),l=D(n),s=q(),f=D(a),i=q(),u=S("div"),v(k.$$.fragment),this.h()},l(p){t=L(p,"DIV",{class:!0});var g=C(t);y(r.$$.fragment,g),e=Q(g),o=L(g,"P",{});var I=C(o);l=P(I,n),s=Q(I),f=P(I,a),I.forEach(_),g.forEach(_),i=Q(p),u=L(p,"DIV",{class:!0});var R=C(u);y(k.$$.fragment,R),R.forEach(_),this.h()},h(){U(t,"class","flex items-center gap-4"),U(u,"class","my-2 flex h-full items-start")},m(p,g){h(p,t,g),E(r,t,null),b(t,e),b(t,o),b(o,l),b(o,s),b(o,f),h(p,i,g),h(p,u,g),E(k,u,null),m=!0},p(p,g){const I={};g&4096&&(I.$$scope={dirty:g,ctx:p}),r.$set(I),(!m||g&2)&&a!==(a=p[1].toLocaleTimeString()+"")&&H(f,a);const R={};g&4&&(R.content=p[10]),k.$set(R)},i(p){m||($(r.$$.fragment,p),$(k.$$.fragment,p),m=!0)},o(p){w(r.$$.fragment,p),w(k.$$.fragment,p),m=!1},d(p){p&&_(t),T(r),p&&_(i),p&&_(u),T(k)}}}function ie(c){let t=d("refresh")+"",r;return{c(){r=D(t)},l(e){r=P(e,t)},m(e,o){h(e,r,o)},p:B,d(e){e&&_(r)}}}function ue(c){let t,r,e,o,n=d("workflows","no-workers-failure-message")+"",l,s;return r=new te({}),{c(){t=S("div"),v(r.$$.fragment),e=q(),o=S("p"),l=D(n),this.h()},l(a){t=L(a,"DIV",{class:!0});var f=C(t);y(r.$$.fragment,f),e=Q(f),o=L(f,"P",{});var i=C(o);l=P(i,n),i.forEach(_),f.forEach(_),this.h()},h(){U(t,"class","text-center")},m(a,f){h(a,t,f),E(r,t,null),b(t,e),b(t,o),b(o,l),s=!0},p:B,i(a){s||($(r.$$.fragment,a),s=!0)},o(a){w(r.$$.fragment,a),s=!1},d(a){a&&_(t),T(r)}}}function pe(c){let t,r,e,o;const n=[le,ne],l=[];function s(a,f){var i,u,k;return(i=a[0])!=null&&i.isRunning&&((k=(u=a[3])==null?void 0:u.pollers)==null?void 0:k.length)>0?0:1}return r=s(c),e=l[r]=n[r](c),{c(){t=S("section"),e.c()},l(a){t=L(a,"SECTION",{});var f=C(t);e.l(f),f.forEach(_)},m(a,f){h(a,t,f),l[r].m(t,null),o=!0},p(a,[f]){let i=r;r=s(a),r===i?l[r].p(a,f):(A(),w(l[i],1,1,()=>{l[i]=null}),G(),e=l[r],e?e.p(a,f):(e=l[r]=n[r](a),e.c()),$(e,1),e.m(t,null))},i(a){o||($(e),o=!0)},o(a){w(e),o=!1},d(a){a&&_(t),l[r].d()}}}let me=!1;function _e(c,t,r){let e,o,n,l,s;N(c,re,m=>r(6,n=m)),N(c,J,m=>r(7,l=m)),N(c,oe,m=>r(5,s=m));const{namespace:a}=l.params;let f=new Date;const i=()=>{var m;return j({workflow:e,namespace:a},(m=l.data)===null||m===void 0?void 0:m.settings,n==null?void 0:n.accessToken)};let u;const k=()=>{var m;r(2,u=j({workflow:e,namespace:a},(m=l.data)===null||m===void 0?void 0:m.settings,n==null?void 0:n.accessToken)),u.then(()=>{r(1,f=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:o}=s,e,(r(3,o),r(5,s))),c.$$.dirty&1&&e!=null&&e.isRunning&&r(2,u=i())},[e,f,u,o,k,s]}class ke extends F{constructor(t){super(),K(this,t,_e,pe,O,{})}}function $e(c){let t,r,e,o;return t=new Y({props:{title:`${d("workflows","stack-trace-tab")} | ${c[1]}`,url:c[0].url.href}}),e=new ke({}),{c(){v(t.$$.fragment),r=q(),v(e.$$.fragment)},l(n){y(t.$$.fragment,n),r=Q(n),y(e.$$.fragment,n)},m(n,l){E(t,n,l),h(n,r,l),E(e,n,l),o=!0},p(n,[l]){const s={};l&1&&(s.url=n[0].url.href),t.$set(s)},i(n){o||($(t.$$.fragment,n),$(e.$$.fragment,n),o=!0)},o(n){w(t.$$.fragment,n),w(e.$$.fragment,n),o=!1},d(n){T(t,n),n&&_(r),T(e,n)}}}function ge(c,t,r){let e;N(c,J,n=>r(0,e=n));const o=e.params.workflow;return[e,o]}class De extends F{constructor(t){super(),K(this,t,ge,$e,O,{})}}export{De as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js similarity index 92% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js index 9cc58c8e4b..6541befdc6 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js @@ -1 +1 @@ -import{S as w,b as k,a as $,C as i,D as m,E as u,j as p,g as l,F as c,K as g,c as b,d as h,f as y,k as Q}from"../chunks/index.6779d4e2.js";import{p as P}from"../chunks/stores.6ee4c480.js";import{P as W}from"../chunks/page-title.990af218.js";import{t as C}from"../chunks/translate.29a4bc43.js";import{W as R}from"../chunks/workers-list.d2e5ee2d.js";import{w as S}from"../chunks/workflow-run.4e335848.js";function j(a){var s;let t,o;return t=new R({props:{taskQueue:(s=a[2])==null?void 0:s.taskQueue,workers:a[3],compatibility:a[1],reachability:a[0]}}),{c(){i(t.$$.fragment)},l(r){m(t.$$.fragment,r)},m(r,e){u(t,r,e),o=!0},p(r,[e]){var f;const n={};e&4&&(n.taskQueue=(f=r[2])==null?void 0:f.taskQueue),e&8&&(n.workers=r[3]),e&2&&(n.compatibility=r[1]),e&1&&(n.reachability=r[0]),t.$set(n)},i(r){o||(p(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){c(t,r)}}}function q(a,t,o){let s,r,e,n,f;return g(a,S,_=>o(4,f=_)),a.$$.update=()=>{a.$$.dirty&16&&o(3,{workers:s,workflow:r,compatibility:e,reachability:n}=f,s,(o(2,r),o(4,f)),(o(1,e),o(4,f)),(o(0,n),o(4,f)))},[n,e,r,s,f]}class D extends w{constructor(t){super(),k(this,t,q,j,$,{})}}function E(a){let t,o,s,r;return t=new W({props:{title:`${C("workflows","workers-tab")} | ${a[1]}`,url:a[0].url.href}}),s=new D({}),{c(){i(t.$$.fragment),o=b(),i(s.$$.fragment)},l(e){m(t.$$.fragment,e),o=h(e),m(s.$$.fragment,e)},m(e,n){u(t,e,n),y(e,o,n),u(s,e,n),r=!0},p(e,[n]){const f={};n&1&&(f.url=e[0].url.href),t.$set(f)},i(e){r||(p(t.$$.fragment,e),p(s.$$.fragment,e),r=!0)},o(e){l(t.$$.fragment,e),l(s.$$.fragment,e),r=!1},d(e){c(t,e),e&&Q(o),c(s,e)}}}function F(a,t,o){let s;g(a,P,e=>o(0,s=e));const r=s.params.workflow;return[s,r]}class I extends w{constructor(t){super(),k(this,t,F,E,$,{})}}export{I as default}; +import{S as w,b as k,a as $,C as i,D as m,E as u,j as p,g as l,F as c,K as g,c as b,d as h,f as y,k as Q}from"../chunks/index.6779d4e2.js";import{p as P}from"../chunks/stores.b96d31b2.js";import{P as W}from"../chunks/page-title.990af218.js";import{t as C}from"../chunks/translate.29a4bc43.js";import{W as R}from"../chunks/workers-list.817f7dee.js";import{w as S}from"../chunks/workflow-run.4e335848.js";function j(a){var s;let t,o;return t=new R({props:{taskQueue:(s=a[2])==null?void 0:s.taskQueue,workers:a[3],compatibility:a[1],reachability:a[0]}}),{c(){i(t.$$.fragment)},l(r){m(t.$$.fragment,r)},m(r,e){u(t,r,e),o=!0},p(r,[e]){var f;const n={};e&4&&(n.taskQueue=(f=r[2])==null?void 0:f.taskQueue),e&8&&(n.workers=r[3]),e&2&&(n.compatibility=r[1]),e&1&&(n.reachability=r[0]),t.$set(n)},i(r){o||(p(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){c(t,r)}}}function q(a,t,o){let s,r,e,n,f;return g(a,S,_=>o(4,f=_)),a.$$.update=()=>{a.$$.dirty&16&&o(3,{workers:s,workflow:r,compatibility:e,reachability:n}=f,s,(o(2,r),o(4,f)),(o(1,e),o(4,f)),(o(0,n),o(4,f)))},[n,e,r,s,f]}class D extends w{constructor(t){super(),k(this,t,q,j,$,{})}}function E(a){let t,o,s,r;return t=new W({props:{title:`${C("workflows","workers-tab")} | ${a[1]}`,url:a[0].url.href}}),s=new D({}),{c(){i(t.$$.fragment),o=b(),i(s.$$.fragment)},l(e){m(t.$$.fragment,e),o=h(e),m(s.$$.fragment,e)},m(e,n){u(t,e,n),y(e,o,n),u(s,e,n),r=!0},p(e,[n]){const f={};n&1&&(f.url=e[0].url.href),t.$set(f)},i(e){r||(p(t.$$.fragment,e),p(s.$$.fragment,e),r=!0)},o(e){l(t.$$.fragment,e),l(s.$$.fragment,e),r=!1},d(e){c(t,e),e&&Q(o),c(s,e)}}}function F(a,t,o){let s;g(a,P,e=>o(0,s=e));const r=s.params.workflow;return[s,r]}class I extends w{constructor(t){super(),k(this,t,F,E,$,{})}}export{I as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.f9d88a94.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.df57b0c9.js similarity index 57% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.f9d88a94.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.df57b0c9.js index 6c58ff569a..6a253dc6cd 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.f9d88a94.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.df57b0c9.js @@ -1 +1 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.fd47d996.js";import{l as t}from"../chunks/_page.74aa28ce.js";export{t as load}; +import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.2a5b4d45.js";import{l as t}from"../chunks/_page.7bcf1705.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js index 29e4cdd933..a095a9d28c 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js @@ -1,3 +1,3 @@ -import{S as fe,b as ue,a as ce,e as ee,f as I,z as J,g as $,h as X,j as p,k as h,K as j,G as $e,H as be,I as ke,J as we,w as z,x as Q,y as oe,n as K,A as ie,Z as me,C as D,D as L,E as C,_ as _e,F as y,M as ut,m as P,p as F,q as M,u as S,c as O,d as W,L as A,aa as yt,al as Mr,a7 as Te,P as se,Q as pe,i as ar,a2 as Rr,r as bt,a5 as te,ac as kt,ag as Et,a3 as at,a4 as st,af as Ke,V as Ae,ab as Ht,$ as _l,a0 as dl,aq as sr,N as it,U as ht,at as Hr,O as pl,a1 as _t,R as qr,T as gl,ae as Ur,l as jr,aj as zr,a8 as hl,v as $l,s as Xt,o as ir,a6 as Qr}from"../chunks/index.6779d4e2.js";import{p as ve}from"../chunks/stores.6ee4c480.js";import{a as wt,j as Kr,g as bl}from"../chunks/workflow-service.fd47d996.js";import{P as Yr}from"../chunks/page-title.990af218.js";import{w as Je,d as ct}from"../chunks/index.1302fd9b.js";import{I as Ne}from"../chunks/input.86f6e192.js";import{M as Gr}from"../chunks/modal.118648f9.js";import{t as H}from"../chunks/translate.29a4bc43.js";import{A as $t}from"../chunks/workflow-actions.6f88149c.js";import{a as Jr}from"../chunks/auth-user.6f15fe0f.js";import{g as Xr,f as Zr,a as xr,w as eo}from"../chunks/workflow-terminate-enabled.ed0d90c2.js";import{v as to,t as kl}from"../chunks/toaster.ef510498.js";import{B as ft}from"../chunks/button.0b50a4b4.js";import{c as lo,M as tt,a as lt,b as nt,d as Ie,f as Bt,e as fr}from"../chunks/menu.7e3d54af.js";import{w as wl,a as no,b as vl}from"../chunks/calendar.81d1e381.js";import{I as ye}from"../chunks/icon.a4e81b70.js";import{l as Xe}from"../chunks/labs-mode.b6f5853d.js";import{M as St}from"../chunks/menu-divider.def6f259.js";import{T as ro,a as Il}from"../chunks/toggle-buttons.1411130f.js";import{w as he,p as Zt}from"../chunks/filters.c175002a.js";import{i as El,g as ur,t as Ft,r as cr,b as Fe}from"../chunks/format-date.79dd40f6.js";import{t as oo,j as mr,F as ao,b as Tl,S as so,W as io,a as fo}from"../chunks/index.c328f0fe.js";import{r as qt,t as uo,z as Ut,l as co,m as mo,n as xt,o as _o,A as Ge,B as Ot,C as dt,D as Dl,u as At}from"../chunks/format-time.8258873a.js";import{j as Ll,e as po,d as go,k as ho,a as $o}from"../chunks/is.ba28a1ea.js";import{u as Ue,p as Pt,d as Cl,c as Nt,a as bo,M as yl,o as _r,F as ko,P as wo}from"../chunks/pagination.b9ceda84.js";import{r as xe,a as pt,b as dr,c as pr,d as nl,u as rl,w as Wt,l as gr}from"../chunks/workflows.5bb4bd2c.js";import{T as vo}from"../chunks/toggle-switch.0d2aaadb.js";import{s as vt,b as Io,c as hr,i as Eo,w as To}from"../chunks/search-attributes.75837f76.js";import{I as Oe}from"../chunks/icon-button.8252c675.js";import{a as $r}from"../chunks/radio-input.d451f838.js";import{S as Do,O as Lo}from"../chunks/option.3359f258.js";import{W as jt}from"../chunks/workflow-status.fc3d74d1.js";import{o as Bl}from"../chunks/omit.6cf41932.js";import{D as Co}from"../chunks/drawer.03c324ce.js";import{A as yo}from"../chunks/alert.dcbef44a.js";import{L as It}from"../chunks/link.8030aa06.js";import{L as ol}from"../chunks/loading.a6f9064e.js";import{P as Bo}from"../chunks/table-header-row.5433617e.js";import{n as So,l as Vt}from"../chunks/namespaces.65099960.js";import{p as br}from"../chunks/persist-store.d8264c86.js";import{B as Ao}from"../chunks/badge.d458ea0a.js";import{g as No}from"../chunks/route-for.cec09c4c.js";import{i as Po}from"../chunks/version-check.d006b302.js";import{s as Fo}from"../chunks/settings.b49a4593.js";import{t as Oo}from"../chunks/versions.6b1b4529.js";import{c as Wo}from"../chunks/core-user.1973d180.js";import{b as Vo,c as Mo}from"../chunks/batch-operations.1aa6deab.js";import{s as Ro}from"../chunks/parse-with-big-int.0036a80a.js";import{S as Yt,a as ot}from"../chunks/simple-select.e8b6fede.js";import{E as kr}from"../chunks/empty-state.c8d40bbf.js";function al(r,e){qt(2,arguments);var l=uo(r).getTime(),t=Ut(e);return new Date(l+t)}var Ho=36e5;function wr(r,e){qt(2,arguments);var l=Ut(e);return al(r,l*Ho)}var qo=6e4;function vr(r,e){qt(2,arguments);var l=Ut(e);return al(r,l*qo)}function Ir(r,e){qt(2,arguments);var l=Ut(e);return al(r,l*1e3)}const Uo=r=>({}),Sl=r=>({});function jo(r){let e;const l=r[2].fallback,t=$e(l,r,r[1],Sl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&be(t,l,n,n[1],e?we(l,n[1],o,Uo):ke(n[1]),Sl)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function zo(r){let e;const l=r[2].default,t=$e(l,r,r[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&be(t,l,n,n[1],e?we(l,n[1],o,null):ke(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Qo(r){let e,l,t,n;const o=[zo,jo],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Ko(r,e,l){let t;j(r,wt,s=>l(0,t=s));let{$$slots:n={},$$scope:o}=e;return r.$$set=s=>{"$$scope"in s&&l(1,o=s.$$scope)},[t,o,n]}class Yo extends fe{constructor(e){super(),ue(this,e,Ko,Qo,ce,{})}}function Go(r){let e;const l=r[6].default,t=$e(l,r,r[5],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&32)&&be(t,l,n,n[5],e?we(l,n[5],o,null):ke(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Jo(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&oe(e,l[1])},i:K,o:K,d(l){l&&h(e)}}}function Xo(r){let e,l,t,n;const o=[Jo,Go],s=[];function i(a,f){return a[1]!==a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Zo(r,e,l){let t,{$$slots:n={},$$scope:o}=e,{key:s}=e,{namespace:i}=e,{count:a=void 0}=e,{replace:f=void 0}=e;return r.$$set=u=>{"key"in u&&l(0,s=u.key),"namespace"in u&&l(2,i=u.namespace),"count"in u&&l(3,a=u.count),"replace"in u&&l(4,f=u.replace),"$$scope"in u&&l(5,o=u.$$scope)},r.$$.update=()=>{r.$$.dirty&29&&l(1,t=H(i,s,a,f))},[s,t,i,a,f,o,n]}class Pe extends fe{constructor(e){super(),ue(this,e,Zo,Xo,ce,{key:0,namespace:2,count:3,replace:4})}}function xo(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:"batch-operation-modal-title",replace:{action:r[3]}}}),{c(){e=P("h3"),D(l.$$.fragment),this.h()},l(n){e=F(n,"H3",{slot:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"slot","title")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&8&&(s.replace={action:n[3]}),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ea(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:r[0]===$t.Cancel?"batch-cancel-confirmation":"batch-terminate-confirmation",count:r[1]}}),{c(){e=P("p"),D(l.$$.fragment)},l(n){e=F(n,"P",{});var o=M(e);L(l.$$.fragment,o),o.forEach(h)},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&1&&(s.key=n[0]===$t.Cancel?"batch-cancel-confirmation":"batch-terminate-confirmation"),o&2&&(s.count=n[1]),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ta(r){let e,l,t,n,o,s,i,a,f,u;return l=new Pe({props:{namespace:"workflows",key:"batch-operation-confirmation-all",replace:{action:r[3]}}}),f=new Pe({props:{namespace:"workflows",key:"batch-operation-count-disclaimer",replace:{action:r[3]}}}),{c(){e=P("p"),D(l.$$.fragment),t=O(),n=P("div"),o=P("code"),s=z(r[2]),i=O(),a=P("span"),D(f.$$.fragment),this.h()},l(c){e=F(c,"P",{class:!0});var m=M(e);L(l.$$.fragment,m),m.forEach(h),t=W(c),n=F(c,"DIV",{class:!0});var _=M(n);o=F(_,"CODE",{"data-testid":!0});var d=M(o);s=Q(d,r[2]),d.forEach(h),_.forEach(h),i=W(c),a=F(c,"SPAN",{class:!0});var g=M(a);L(f.$$.fragment,g),g.forEach(h),this.h()},h(){S(e,"class","mb-2"),S(o,"data-testid","batch-action-workflows-query"),S(n,"class","mb-2 overflow-scroll whitespace-nowrap rounded border border-primary bg-gray-100 p-2"),S(a,"class","text-xs")},m(c,m){I(c,e,m),C(l,e,null),I(c,t,m),I(c,n,m),A(n,o),A(o,s),I(c,i,m),I(c,a,m),C(f,a,null),u=!0},p(c,m){const _={};m&8&&(_.replace={action:c[3]}),l.$set(_),(!u||m&4)&&oe(s,c[2]);const d={};m&8&&(d.replace={action:c[3]}),f.$set(d)},i(c){u||(p(l.$$.fragment,c),p(f.$$.fragment,c),u=!0)},o(c){$(l.$$.fragment,c),$(f.$$.fragment,c),u=!1},d(c){c&&h(e),y(l),c&&h(t),c&&h(n),c&&h(i),c&&h(a),y(f)}}}function la(r){let e,l,t,n,o,s,i,a,f,u;const c=[ta,ea],m=[];function _(v,k){return v[11]?0:1}l=_(r),t=m[l]=c[l](r);function d(v){r[19](v)}let g={id:`bulk-action-reason-${r[0]}`,label:H("reason"),hintText:H("workflows","batch-operation-confirmation-input-hint",{placeholder:r[9]}),placeholder:r[9]};r[4]!==void 0&&(g.value=r[4]),o=new Ne({props:g}),ie.push(()=>me(o,"value",d));function b(v){r[20](v)}let w={id:"batch-operation-job-id",label:H("job-id"),hintText:r[8]?H("batch","job-id-input-hint"):H("batch","job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(w.value=r[7]),a=new Ne({props:w}),ie.push(()=>me(a,"value",b)),a.$on("input",r[14]),{c(){e=P("div"),t.c(),n=O(),D(o.$$.fragment),i=O(),D(a.$$.fragment),this.h()},l(v){e=F(v,"DIV",{class:!0});var k=M(e);t.l(k),n=W(k),L(o.$$.fragment,k),i=W(k),L(a.$$.fragment,k),k.forEach(h),this.h()},h(){S(e,"class","mb-4 flex flex-col gap-2")},m(v,k){I(v,e,k),m[l].m(e,null),A(e,n),C(o,e,null),A(e,i),C(a,e,null),u=!0},p(v,k){let B=l;l=_(v),l===B?m[l].p(v,k):(J(),$(m[B],1,1,()=>{m[B]=null}),X(),t=m[l],t?t.p(v,k):(t=m[l]=c[l](v),t.c()),p(t,1),t.m(e,n));const T={};k&1&&(T.id=`bulk-action-reason-${v[0]}`),k&512&&(T.hintText=H("workflows","batch-operation-confirmation-input-hint",{placeholder:v[9]})),k&512&&(T.placeholder=v[9]),!s&&k&16&&(s=!0,T.value=v[4],_e(()=>s=!1)),o.$set(T);const E={};k&256&&(E.hintText=v[8]?H("batch","job-id-input-hint"):H("batch","job-id-input-error")),k&256&&(E.valid=v[8]),!f&&k&128&&(f=!0,E.value=v[7],_e(()=>f=!1)),a.$set(E)},i(v){u||(p(t),p(o.$$.fragment,v),p(a.$$.fragment,v),u=!0)},o(v){$(t),$(o.$$.fragment,v),$(a.$$.fragment,v),u=!1},d(v){v&&h(e),m[l].d(),y(o),y(a)}}}function na(r){let e,l,t,n;function o(a){r[21](a)}function s(a){r[22](a)}let i={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:H("cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[la],title:[xo]},$$scope:{ctx:r}};return r[5]!==void 0&&(i.open=r[5]),r[6]!==void 0&&(i.error=r[6]),e=new Gr({props:i}),ie.push(()=>me(e,"open",o)),ie.push(()=>me(e,"error",s)),e.$on("confirmModal",r[13]),{c(){D(e.$$.fragment)},l(a){L(e.$$.fragment,a)},m(a,f){C(e,a,f),n=!0},p(a,[f]){const u={};f&1&&(u.id=`batch-operation-confirmation-modal-${a[0]}`),f&8&&(u["data-testid"]="batch-"+a[3]+"-confirmation"),f&256&&(u.confirmDisabled=!a[8]),f&1024&&(u.confirmText=a[10]),f&16780191&&(u.$$scope={dirty:f,ctx:a}),!l&&f&32&&(l=!0,u.open=a[5],_e(()=>l=!1)),!t&&f&64&&(t=!0,u.error=a[6],_e(()=>t=!1)),e.$set(u)},i(a){n||(p(e.$$.fragment,a),n=!0)},o(a){$(e.$$.fragment,a),n=!1},d(a){y(e,a)}}}function ra(r,e,l){let t,n,o,s,i;j(r,Jr,V=>l(18,s=V)),j(r,et,V=>l(11,i=V));let{action:a}=e,{actionableWorkflowsLength:f}=e,{query:u}=e,c="",m=!1,_="",d="",g=to(),b=!0;const w=()=>{l(4,c=""),l(5,m=!0)},v=()=>l(5,m=!1),k=V=>l(6,_=V),B=ut(),T=()=>{l(6,_=""),B("confirm",{reason:Zr({action:a,reason:c,email:s.email}),jobId:d||g})},E=V=>{/^[\w.~-]*$/.test(V.target.value)?l(8,b=!0):l(8,b=!1)};function N(V){c=V,l(4,c)}function U(V){d=V,l(7,d)}function q(V){m=V,l(5,m)}function Y(V){_=V,l(6,_)}return r.$$set=V=>{"action"in V&&l(0,a=V.action),"actionableWorkflowsLength"in V&&l(1,f=V.actionableWorkflowsLength),"query"in V&&l(2,u=V.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=a===$t.Cancel?H("cancel"):H("workflows","terminate")),r.$$.dirty&9&&l(10,n=a===$t.Cancel?H("confirm"):t),r.$$.dirty&262145&&l(9,o=Xr(a,s.email))},[a,f,u,t,c,m,_,d,b,o,n,i,g,T,E,w,v,k,s,N,U,q,Y]}class Al extends fe{constructor(e){super(),ue(this,e,ra,na,ce,{action:0,actionableWorkflowsLength:1,query:2,open:15,close:16,setError:17})}get open(){return this.$$.ctx[15]}get close(){return this.$$.ctx[16]}get setError(){return this.$$.ctx[17]}}function Nl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function Pl(r,e,l){const t=r.slice();return t[13]=e[l],t}function Fl(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=P("p"),t=z(l),this.h()},l(n){e=F(n,"P",{class:!0});var o=M(e);t=Q(o,l),o.forEach(h),this.h()},h(){S(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),A(e,t)},p:K,d(n){n&&h(e)}}}function Ol(r,e){let l,t=(e[10]||"")+"",n,o,s,i;function a(){return e[6](e[10])}return{key:r,first:null,c(){l=P("button"),n=z(t),o=O(),this.h()},l(f){l=F(f,"BUTTON",{class:!0});var u=M(l);n=Q(u,t),o=W(u),u.forEach(h),this.h()},h(){S(l,"class","cell svelte-1we9vff"),se(l,"highlight",e[9]&&e[10]),se(l,"disabled",!e[9]),se(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=l},m(f,u){I(f,l,u),A(l,n),A(l,o),s||(i=pe(l,"click",function(){ar(e[9]&&e[10]?a:K)&&(e[9]&&e[10]?a:K).apply(this,arguments)}),s=!0)},p(f,u){e=f,u&8&&t!==(t=(e[10]||"")+"")&&oe(n,t),u&8&&se(l,"highlight",e[9]&&e[10]),u&8&&se(l,"disabled",!e[9]),u&15&&se(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime())},d(f){f&&h(l),s=!1,i()}}}function oa(r){let e,l,t,n,o=[],s=new Map,i=wl,a=[];for(let c=0;cc[12];for(let c=0;c!0}=e,a=[];const f=m=>{t("datechange",new Date(s,o,m))},u=(m,_,d)=>d?i(new Date(m,_,d)):!0,c=m=>f(m);return r.$$set=m=>{"date"in m&&l(0,n=m.date),"month"in m&&l(1,o=m.month),"year"in m&&l(2,s=m.year),"isAllowed"in m&&l(5,i=m.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,a=no(o,s).map(m=>({value:m,allowed:u(s,o,m)})))},[n,o,s,a,f,i,c]}class sa extends fe{constructor(e){super(),ue(this,e,aa,oa,ce,{date:0,month:1,year:2,isAllowed:5})}}function Wl(r){var R;let e,l,t,n,o,s,i,a=(((R=vl(r[8]))==null?void 0:R.label)??"")+"",f,u,c,m,_,d,g,b,w,v,k,B,T,E,N,U,q,Y,V;return o=new ye({props:{name:"chevron-left"}}),g=new ye({props:{name:"chevron-right"}}),w=new sa({props:{month:r[8],year:r[9],date:r[0],isAllowed:r[1]}}),w.$on("datechange",r[15]),{c(){e=P("div"),l=P("div"),t=P("div"),n=P("button"),D(o.$$.fragment),s=O(),i=P("div"),f=z(a),u=O(),c=z(r[9]),m=O(),_=P("div"),d=P("button"),D(g.$$.fragment),b=O(),D(w.$$.fragment),v=O(),k=P("div"),B=P("button"),T=z(r[4]),E=O(),N=P("button"),U=z(r[5]),this.h()},l(Z){e=F(Z,"DIV",{class:!0});var G=M(e);l=F(G,"DIV",{class:!0});var de=M(l);t=F(de,"DIV",{class:!0});var ge=M(t);n=F(ge,"BUTTON",{});var x=M(n);L(o.$$.fragment,x),x.forEach(h),ge.forEach(h),s=W(de),i=F(de,"DIV",{class:!0});var ae=M(i);f=Q(ae,a),u=W(ae),c=Q(ae,r[9]),ae.forEach(h),m=W(de),_=F(de,"DIV",{class:!0});var Ee=M(_);d=F(Ee,"BUTTON",{});var De=M(d);L(g.$$.fragment,De),De.forEach(h),Ee.forEach(h),de.forEach(h),b=W(G),L(w.$$.fragment,G),v=W(G),k=F(G,"DIV",{class:!0});var Be=M(k);B=F(Be,"BUTTON",{class:!0});var Le=M(B);T=Q(Le,r[4]),Le.forEach(h),E=W(Be),N=F(Be,"BUTTON",{class:!0});var Ve=M(N);U=Q(Ve,r[5]),Ve.forEach(h),Be.forEach(h),G.forEach(h),this.h()},h(){S(t,"class","flex items-center justify-center"),S(i,"class","flex items-center justify-center"),S(_,"class","flex items-center justify-center"),S(l,"class","mx-3 my-2 flex items-center justify-around"),S(B,"class","cursor-pointer text-[12px]"),S(N,"class","cursor-pointer text-[12px]"),S(k,"class","my-1 flex justify-between px-2"),S(e,"class","absolute z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(Z,G){I(Z,e,G),A(e,l),A(l,t),A(t,n),C(o,n,null),A(l,s),A(l,i),A(i,f),A(i,u),A(i,c),A(l,m),A(l,_),A(_,d),C(g,d,null),A(e,b),C(w,e,null),A(e,v),A(e,k),A(k,B),A(B,T),A(k,E),A(k,N),A(N,U),q=!0,Y||(V=[pe(n,"click",r[14]),pe(d,"click",r[13]),pe(B,"click",r[16]),pe(N,"click",r[17])],Y=!0)},p(Z,G){var ge;(!q||G&256)&&a!==(a=(((ge=vl(Z[8]))==null?void 0:ge.label)??"")+"")&&oe(f,a),(!q||G&512)&&oe(c,Z[9]);const de={};G&256&&(de.month=Z[8]),G&512&&(de.year=Z[9]),G&1&&(de.date=Z[0]),G&2&&(de.isAllowed=Z[1]),w.$set(de),(!q||G&16)&&oe(T,Z[4]),(!q||G&32)&&oe(U,Z[5])},i(Z){q||(p(o.$$.fragment,Z),p(g.$$.fragment,Z),p(w.$$.fragment,Z),q=!0)},o(Z){$(o.$$.fragment,Z),$(g.$$.fragment,Z),$(w.$$.fragment,Z),q=!1},d(Z){Z&&h(e),y(o),y(g),y(w),Y=!1,bt(V)}}}function ia(r){let e,l,t,n,o,s;l=new Ne({props:{id:"datepicker",label:r[2],labelHidden:r[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:r[0].toDateString(),clearable:!0,clearButtonLabel:r[6],disabled:r[7]}}),l.$on("focus",r[11]),l.$on("input",r[12]);let i=r[10]&&Wl(r);return{c(){e=P("div"),D(l.$$.fragment),t=O(),i&&i.c(),this.h()},l(a){e=F(a,"DIV",{class:!0});var f=M(e);L(l.$$.fragment,f),t=W(f),i&&i.l(f),f.forEach(h),this.h()},h(){S(e,"class","relative")},m(a,f){I(a,e,f),C(l,e,null),A(e,t),i&&i.m(e,null),n=!0,o||(s=[Rr(lo.call(null,e)),pe(e,"click-outside",r[18])],o=!0)},p(a,[f]){const u={};f&4&&(u.label=a[2]),f&8&&(u.labelHidden=a[3]),f&1&&(u.value=a[0].toDateString()),f&64&&(u.clearButtonLabel=a[6]),f&128&&(u.disabled=a[7]),l.$set(u),a[10]?i?(i.p(a,f),f&1024&&p(i,1)):(i=Wl(a),i.c(),p(i,1),i.m(e,null)):i&&(J(),$(i,1,1,()=>{i=null}),X())},i(a){n||(p(l.$$.fragment,a),p(i),n=!0)},o(a){$(l.$$.fragment,a),$(i),n=!1},d(a){a&&h(e),y(l),i&&i.d(),o=!1,bt(s)}}}function fa(r,e,l){const t=ut();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:s}=e,{labelHidden:i=!1}=e,{todayLabel:a}=e,{closeLabel:f}=e,{clearLabel:u}=e,{disabled:c=!1}=e,m,_,d=!1;const g=()=>{l(10,d=!0)},b=N=>{const q=N.target.value;if(q.length===8){const Y=q==null?void 0:q.split("/"),R=2e3+parseInt(Y[2]),Z=parseInt(Y[0])-1,G=parseInt(Y[1]),de=new Date(R,Z,G);t("datechange",de)}},w=()=>{if(m===11){l(8,m=0),l(9,_=_+1);return}l(8,m=m+1)},v=()=>{if(m===0){l(8,m=11),l(9,_-=1);return}l(8,m-=1)},k=N=>{l(10,d=!1),t("datechange",N.detail)},B=()=>l(0,o=new Date),T=()=>l(10,d=!1),E=()=>l(10,d=!1);return r.$$set=N=>{"isAllowed"in N&&l(1,n=N.isAllowed),"selected"in N&&l(0,o=N.selected),"label"in N&&l(2,s=N.label),"labelHidden"in N&&l(3,i=N.labelHidden),"todayLabel"in N&&l(4,a=N.todayLabel),"closeLabel"in N&&l(5,f=N.closeLabel),"clearLabel"in N&&l(6,u=N.clearLabel),"disabled"in N&&l(7,c=N.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,m=o.getMonth()),l(9,_=o.getFullYear()))},[o,n,s,i,a,f,u,c,m,_,d,g,b,w,v,k,B,T,E]}class Tt extends fe{constructor(e){super(),ue(this,e,fa,ia,ce,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}const ua=r=>({}),Vl=r=>({});function ca(r){let e;const l=r[5].fallback,t=$e(l,r,r[4],Vl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,ua):ke(n[4]),Vl)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function ma(r){let e;const l=r[5].default,t=$e(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,null):ke(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function _a(r){let e,l,t,n;const o=[ma,ca],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function da(r,e,l){let t,n,o,s;j(r,Xe,f=>l(0,o=f)),j(r,ve,f=>l(3,s=f));let{$$slots:i={},$$scope:a}=e;return r.$$set=f=>{"$$scope"in f&&l(4,a=f.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&l(2,t=s.url.searchParams.get("labs")==="true"),r.$$.dirty&8&&l(1,n=s.url.searchParams.get("labs")==="false"),r.$$.dirty&6&&(t?te(Xe,o=!0,o):n&&te(Xe,o=!1,o))},[o,n,t,s,a,i]}class sl extends fe{constructor(e){super(),ue(this,e,da,_a,ce,{})}}function Ml(r){let e,l;return e=new ro({props:{$$slots:{default:[ha]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function pa(r){let e;return{c(){e=z("AM")},l(l){e=Q(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function ga(r){let e;return{c(){e=z("PM")},l(l){e=Q(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function ha(r){let e,l,t,n;return e=new Il({props:{active:r[3]==="AM",$$slots:{default:[pa]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new Il({props:{active:r[3]==="PM",$$slots:{default:[ga]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s&8&&(i.active=o[3]==="AM"),s&2048&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&8&&(a.active=o[3]==="PM"),s&2048&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function $a(r){let e,l,t,n,o,s,i,a,f,u,c;function m(k){r[6](k)}let _={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(_.value=r[0]),l=new Ne({props:_}),ie.push(()=>me(l,"value",m));function d(k){r[7](k)}let g={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(g.value=r[1]),o=new Ne({props:g}),ie.push(()=>me(o,"value",d));function b(k){r[8](k)}let w={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(w.value=r[2]),a=new Ne({props:w}),ie.push(()=>me(a,"value",b));let v=r[4]&&Ml(r);return{c(){e=P("div"),D(l.$$.fragment),n=O(),D(o.$$.fragment),i=O(),D(a.$$.fragment),u=O(),v&&v.c(),this.h()},l(k){e=F(k,"DIV",{class:!0});var B=M(e);L(l.$$.fragment,B),n=W(B),L(o.$$.fragment,B),i=W(B),L(a.$$.fragment,B),u=W(B),v&&v.l(B),B.forEach(h),this.h()},h(){S(e,"class","flex gap-2")},m(k,B){I(k,e,B),C(l,e,null),A(e,n),C(o,e,null),A(e,i),C(a,e,null),A(e,u),v&&v.m(e,null),c=!0},p(k,[B]){const T={};B&17&&(T.error=k[4]?parseInt(k[0])>12:parseInt(k[0])>23),B&32&&(T.disabled=k[5]),!t&&B&1&&(t=!0,T.value=k[0],_e(()=>t=!1)),l.$set(T);const E={};B&1&&(E.error=Boolean(parseInt(k[0])>59)),B&32&&(E.disabled=k[5]),!s&&B&2&&(s=!0,E.value=k[1],_e(()=>s=!1)),o.$set(E);const N={};B&1&&(N.error=Boolean(parseInt(k[0])>59)),B&32&&(N.disabled=k[5]),!f&&B&4&&(f=!0,N.value=k[2],_e(()=>f=!1)),a.$set(N),k[4]?v?(v.p(k,B),B&16&&p(v,1)):(v=Ml(k),v.c(),p(v,1),v.m(e,null)):v&&(J(),$(v,1,1,()=>{v=null}),X())},i(k){c||(p(l.$$.fragment,k),p(o.$$.fragment,k),p(a.$$.fragment,k),p(v),c=!0)},o(k){$(l.$$.fragment,k),$(o.$$.fragment,k),$(a.$$.fragment,k),$(v),c=!1},d(k){k&&h(e),y(l),y(o),y(a),v&&v.d()}}}function ba(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:s="AM"}=e,{twelveHourClock:i=!0}=e,{disabled:a=!1}=e;function f(d){t=d,l(0,t)}function u(d){n=d,l(1,n)}function c(d){o=d,l(2,o)}const m=()=>l(3,s="AM"),_=()=>l(3,s="PM");return r.$$set=d=>{"hour"in d&&l(0,t=d.hour),"minute"in d&&l(1,n=d.minute),"second"in d&&l(2,o=d.second),"half"in d&&l(3,s=d.half),"twelveHourClock"in d&&l(4,i=d.twelveHourClock),"disabled"in d&&l(5,a=d.disabled)},[t,n,o,s,i,a,f,u,c,m,_]}class Dt extends fe{constructor(e){super(),ue(this,e,ba,$a,ce,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}const ka={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},wa=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),va=(r,e,l="=",t,n)=>{const o=ka[r]??r;return e==="All"?"":n?`${o} ${e}`:co(e)||mo(e)?t||kt(wt)?`${o} ${Xe?l:">"} "${xt(e)}"`:`${o} BETWEEN "${xt(e)}" AND "${_o()}"`:`${o}${l}"${e}"`},Ia=(r,e)=>r.map(({attribute:l,value:t,conditional:n,operator:o,parenthesis:s,customDate:i})=>{if(wa(t)){let a=va(l,t,n,e,i);return s==="("?a=`(${a}`:s===")"&&(a=`${a})`),o&&(a=`${a} ${o} `),a}}).filter(Boolean),Er=(r=[],e=!1)=>Ia(r,e).join(""),Ea=r=>e=>e.toLowerCase()===r.toLowerCase(),Rl=(r,e)=>r[e+2],Ta=(r,e)=>r[e-2],Da=Ea("Datetime"),Ze=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),La={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},el=(r,e=La)=>{const l=oo(r),t=[];let n=Ze();if(!r)return[];try{return l.forEach((o,s)=>{if(e[o])if(n.attribute=o,Da(e[o])){const i=Rl(l,s),a=El(i);if(Ll(l[s+1])){const f=l[s+4],u=El(f);a&&u?(n.value=`BETWEEN "${i}" AND "${f}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else a?n.value=i:console.error("Error parsing Datetime field from query")}else n.value=Rl(l,s);po(o)&&(n.conditional=o),go(o)&&(n.parenthesis=o),ho(o)&&!Ll(Ta(l,s))&&(n.operator=o,t.push(n),n=Ze()),s===l.length-1&&(t.push(n),n=Ze())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Ca=r=>{const e=r.filter(i=>i.attribute==="ExecutionStatus"&&i.value),l=r.filter(i=>i.attribute==="WorkflowId"&&i.value),t=r.filter(i=>i.attribute==="WorkflowType"&&i.value),n=r.filter(i=>i.attribute==="RunId"&&i.value),o=r.filter(i=>(i.attribute==="StartTime"||i.attribute==="CloseTime")&&i.value),s=[e,l,n,t,o].filter(i=>i.length);return s.forEach((i,a)=>{var f,u;i.length&&((f=s[a+1])!=null&&f.length)?i[i.length-1].operator="AND":i.length&&!((u=s[a+1])!=null&&u.length)&&(i[i.length-1].operator="")}),[...e,...l,...n,...t,...o]},Tr=r=>(r.forEach((e,l)=>{const t=r[l-1];t&&!t.operator&&(t.operator="AND"),r[l+1]||(e.operator=""),e.operator==="OR"&&(t==null?void 0:t.operator)!=="OR"?e.parenthesis="(":(t==null?void 0:t.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),r),Qe=mr((r,e,l=!1)=>{const t=l?Tr(e):Ca(e),n=Er(t);Ue({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Hl(r,e,l){const t=r.slice();return t[43]=e[l],t}function ya(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t[0]&2&&oe(e,l[1])},d(l){l&&h(e)}}}function Ba(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g;t=new Ie({props:{$$slots:{default:[Aa]},$$scope:{ctx:r}}}),t.$on("click",r[31]),s=new Ie({props:{$$slots:{default:[Na]},$$scope:{ctx:r}}}),s.$on("click",r[32]);let b=Ot,w=[];for(let k=0;k$(w[k],1,1,()=>{w[k]=null});return c=new Ie({props:{selected:r[2]==="StartTime",$$slots:{default:[Fa]},$$scope:{ctx:r}}}),c.$on("click",r[34]),d=new Ie({props:{selected:r[2]==="CloseTime",$$slots:{default:[Oa]},$$scope:{ctx:r}}}),d.$on("click",r[35]),{c(){e=P("div"),l=P("div"),D(t.$$.fragment),n=O(),o=P("div"),D(s.$$.fragment),i=O();for(let k=0;kme(n,"hour",N)),ie.push(()=>me(n,"minute",U)),ie.push(()=>me(n,"second",q)),ie.push(()=>me(n,"half",Y)),u=new Tt({props:{label:H("end"),selected:r[4],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),u.$on("datechange",r[17]);function R(x){r[26](x)}function Z(x){r[27](x)}function G(x){r[28](x)}function de(x){r[29](x)}let ge={};return r[9]!==void 0&&(ge.hour=r[9]),r[10]!==void 0&&(ge.minute=r[10]),r[11]!==void 0&&(ge.second=r[11]),r[12]!==void 0&&(ge.half=r[12]),m=new Dt({props:ge}),ie.push(()=>me(m,"hour",R)),ie.push(()=>me(m,"minute",Z)),ie.push(()=>me(m,"second",G)),ie.push(()=>me(m,"half",de)),k=new ft({props:{$$slots:{default:[Wa]},$$scope:{ctx:r}}}),k.$on("click",r[18]),T=new ft({props:{variant:"secondary",$$slots:{default:[Va]},$$scope:{ctx:r}}}),T.$on("click",r[30]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),f=O(),D(u.$$.fragment),c=O(),D(m.$$.fragment),w=O(),v=P("div"),D(k.$$.fragment),B=O(),D(T.$$.fragment),this.h()},l(x){e=F(x,"DIV",{class:!0});var ae=M(e);L(l.$$.fragment,ae),t=W(ae),L(n.$$.fragment,ae),f=W(ae),L(u.$$.fragment,ae),c=W(ae),L(m.$$.fragment,ae),w=W(ae),v=F(ae,"DIV",{class:!0});var Ee=M(v);L(k.$$.fragment,Ee),B=W(Ee),L(T.$$.fragment,Ee),Ee.forEach(h),ae.forEach(h),this.h()},h(){S(v,"class","flex gap-2"),S(e,"class","flex flex-col gap-2 p-2")},m(x,ae){I(x,e,ae),C(l,e,null),A(e,t),C(n,e,null),A(e,f),C(u,e,null),A(e,c),C(m,e,null),A(e,w),A(e,v),C(k,v,null),A(v,B),C(T,v,null),E=!0},p(x,ae){const Ee={};ae[0]&8&&(Ee.selected=x[3]),l.$set(Ee);const De={};!o&&ae[0]&32&&(o=!0,De.hour=x[5],_e(()=>o=!1)),!s&&ae[0]&64&&(s=!0,De.minute=x[6],_e(()=>s=!1)),!i&&ae[0]&128&&(i=!0,De.second=x[7],_e(()=>i=!1)),!a&&ae[0]&256&&(a=!0,De.half=x[8],_e(()=>a=!1)),n.$set(De);const Be={};ae[0]&16&&(Be.selected=x[4]),u.$set(Be);const Le={};!_&&ae[0]&512&&(_=!0,Le.hour=x[9],_e(()=>_=!1)),!d&&ae[0]&1024&&(d=!0,Le.minute=x[10],_e(()=>d=!1)),!g&&ae[0]&2048&&(g=!0,Le.second=x[11],_e(()=>g=!1)),!b&&ae[0]&4096&&(b=!0,Le.half=x[12],_e(()=>b=!1)),m.$set(Le);const Ve={};ae[1]&32768&&(Ve.$$scope={dirty:ae,ctx:x}),k.$set(Ve);const le={};ae[1]&32768&&(le.$$scope={dirty:ae,ctx:x}),T.$set(le)},i(x){E||(p(l.$$.fragment,x),p(n.$$.fragment,x),p(u.$$.fragment,x),p(m.$$.fragment,x),p(k.$$.fragment,x),p(T.$$.fragment,x),E=!0)},o(x){$(l.$$.fragment,x),$(n.$$.fragment,x),$(u.$$.fragment,x),$(m.$$.fragment,x),$(k.$$.fragment,x),$(T.$$.fragment,x),E=!1},d(x){x&&h(e),y(l),y(n),y(u),y(m),y(k),y(T)}}}function Aa(r){let e=H("all-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Na(r){let e=H("custom")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Pa(r){let e=r[43]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function ql(r){let e,l,t;function n(){return r[33](r[43])}return l=new Ie({props:{$$slots:{default:[Pa]},$$scope:{ctx:r}}}),l.$on("click",n),{c(){e=P("div"),D(l.$$.fragment),this.h()},l(o){e=F(o,"DIV",{class:!0});var s=M(e);L(l.$$.fragment,s),s.forEach(h),this.h()},h(){S(e,"class","flex w-1/2 flex-col justify-center")},m(o,s){I(o,e,s),C(l,e,null),t=!0},p(o,s){r=o;const i={};s[1]&32768&&(i.$$scope={dirty:s,ctx:r}),l.$set(i)},i(o){t||(p(l.$$.fragment,o),t=!0)},o(o){$(l.$$.fragment,o),t=!1},d(o){o&&h(e),y(l)}}}function Fa(r){let e=H("start-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Oa(r){let e=H("end-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Wa(r){let e=H("apply")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Va(r){let e=H("cancel")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ma(r){let e,l,t=H("based-on-time-preface")+"",n,o,s,i;return e=new ye({props:{name:"clock","aria-hidden":"true"}}),{c(){D(e.$$.fragment),l=O(),n=z(t),o=O(),s=z(r[13])},l(a){L(e.$$.fragment,a),l=W(a),n=Q(a,t),o=W(a),s=Q(a,r[13])},m(a,f){C(e,a,f),I(a,l,f),I(a,n,f),I(a,o,f),I(a,s,f),i=!0},p:K,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){y(e,a),a&&h(l),a&&h(n),a&&h(o),a&&h(s)}}}function Ra(r){let e,l,t,n,o,s,i;const a=[Sa,Ba],f=[];function u(c,m){return c[0]?0:1}return e=u(r),l=f[e]=a[e](r),n=new St({}),s=new Ie({props:{centered:!0,disabled:!0,$$slots:{default:[Ma]},$$scope:{ctx:r}}}),{c(){l.c(),t=O(),D(n.$$.fragment),o=O(),D(s.$$.fragment)},l(c){l.l(c),t=W(c),L(n.$$.fragment,c),o=W(c),L(s.$$.fragment,c)},m(c,m){f[e].m(c,m),I(c,t,m),C(n,c,m),I(c,o,m),C(s,c,m),i=!0},p(c,m){let _=e;e=u(c),e===_?f[e].p(c,m):(J(),$(f[_],1,1,()=>{f[_]=null}),X(),l=f[e],l?l.p(c,m):(l=f[e]=a[e](c),l.c()),p(l,1),l.m(t.parentNode,t));const d={};m[1]&32768&&(d.$$scope={dirty:m,ctx:c}),s.$set(d)},i(c){i||(p(l),p(n.$$.fragment,c),p(s.$$.fragment,c),i=!0)},o(c){$(l),$(n.$$.fragment,c),$(s.$$.fragment,c),i=!1},d(c){f[e].d(c),c&&h(t),y(n,c),c&&h(o),y(s,c)}}}function Ha(r){let e,l,t,n;return e=new lt({props:{id:"time-range-filter",hasIndicator:!0,controls:"time-range-filter-menu",$$slots:{default:[ya]},$$scope:{ctx:r}}}),t=new nt({props:{class:"w-[25rem] !overflow-visible",position:"right",keepOpen:!0,id:"time-range-filter-menu",$$slots:{default:[Ra]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s[0]&2|s[1]&32768&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s[0]&8189|s[1]&32768&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function qa(r){let e,l;return e=new tt({props:{$$slots:{default:[Ha]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[0]&8191|n[1]&32768&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ua(r){let e,l,t;return l=new sl({props:{$$slots:{fallback:[qa]},$$scope:{ctx:r}}}),{c(){e=P("div"),D(l.$$.fragment),this.h()},l(n){e=F(n,"DIV",{class:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","flex items-start")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o[0]&8191|o[1]&32768&&(s.$$scope={dirty:o,ctx:n}),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ja(r,e,l){let t,n,o,s,i,a;j(r,he,ne=>l(20,o=ne)),j(r,ve,ne=>l(37,s=ne)),j(r,Zt,ne=>l(38,i=ne)),j(r,wt,ne=>l(21,a=ne));const f=ur()||H("local");let u=!1,c="All Time",m="StartTime",_=Ge(new Date),d=Ge(new Date),g="",b="",w="",v="AM",k="",B="",T="",E="AM";const N=()=>{t?(l(1,c=u||!Ot.includes(t==null?void 0:t.value)?"Custom":t.value),l(2,m=t.attribute)):(l(1,c="All Time"),l(2,m="StartTime")),(!t||Ot.includes(t==null?void 0:t.value)||(t==null?void 0:t.customDate))&&te(Zt,i=t,i)},U=()=>o.filter(ne=>ne.attribute!=="StartTime"&&ne.attribute!=="CloseTime"),q=ne=>{if(l(1,c=ne),c==="All Time")te(he,o=[...U()],o),l(0,u=!1);else if(c==="Custom")l(0,u=!0);else{const Se={attribute:m,value:c,conditional:">",operator:"",parenthesis:""};te(he,o=[...U(),Se],o),l(0,u=!1)}Qe(s.url,o)},Y=ne=>{ne!==m&&(l(2,m=ne),q(c))},V=ne=>{l(3,_=Ge(ne.detail))},R=ne=>{l(4,d=Ge(ne.detail))},Z=(ne,Se)=>{let ze=new Date(ne);return Se.hour&&(ze=wr(ze,parseInt(Se.hour))),Se.minute&&(ze=vr(ze,parseInt(Se.minute))),Se.second&&(ze=Ir(ze,parseInt(Se.second))),ze},G=(ne,Se)=>{if(ne)return ne==="12"?Se==="AM"?"00":"12":Se==="PM"?(parseInt(ne)+12).toString():ne;ne=""},de=()=>{let ne=Z(_,{hour:G(g,v),minute:b,second:w}),Se=Z(d,{hour:G(k,E),minute:B,second:T});const ze=n?`BETWEEN "${dt(ne)}" AND "${dt(Se)}"`:`> "${dt(ne)}"`,Vr={attribute:m,value:ze,conditional:"=",operator:"",parenthesis:"",customDate:!0};te(he,o=[...U(),Vr],o),Qe(s.url,o)};function ge(ne){g=ne,l(5,g)}function x(ne){b=ne,l(6,b)}function ae(ne){w=ne,l(7,w)}function Ee(ne){v=ne,l(8,v)}function De(ne){k=ne,l(9,k)}function Be(ne){B=ne,l(10,B)}function Le(ne){T=ne,l(11,T)}function Ve(ne){E=ne,l(12,E)}const le=()=>l(0,u=!1),Me=()=>q("All Time"),re=()=>q("Custom"),Ce=ne=>q(ne),Re=()=>Y("StartTime"),Wr=()=>Y("CloseTime");return r.$$.update=()=>{r.$$.dirty[0]&1048576&&l(19,t=o.find(ne=>ne.attribute==="StartTime"||ne.attribute==="CloseTime")),r.$$.dirty[0]&2097153&&(n=u||!a),r.$$.dirty[0]&524288&&N()},[u,c,m,_,d,g,b,w,v,k,B,T,E,f,q,Y,V,R,de,t,o,a,ge,x,ae,Ee,De,Be,Le,Ve,le,Me,re,Ce,Re,Wr]}class za extends fe{constructor(e){super(),ue(this,e,ja,Ua,ce,{},null,[-1,-1])}}function Qa(r){let e=H("search")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ka(r){let e,l,t,n,o,s,i,a,f,u,c,m;function _(g){r[5](g)}let d={id:"manual-search",type:"search",label:H("workflows","search-placeholder"),labelHidden:!0,placeholder:H("workflows","search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:H("clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(d.value=r[0]),n=new Ne({props:d}),ie.push(()=>me(n,"value",_)),n.$on("clear",r[2]),i=new ft({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qa]},$$scope:{ctx:r}}}),{c(){e=P("div"),l=P("div"),t=P("form"),D(n.$$.fragment),s=O(),D(i.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);l=F(b,"DIV",{class:!0});var w=M(l);t=F(w,"FORM",{class:!0,role:!0});var v=M(t);L(n.$$.fragment,v),s=W(v),L(i.$$.fragment,v),v.forEach(h),w.forEach(h),b.forEach(h),this.h()},h(){S(t,"class","relative flex w-full items-center gap-0"),S(t,"role","search"),S(l,"class","flex w-full items-center gap-0"),S(e,"class","flex grow gap-4")},m(g,b){I(g,e,b),A(e,l),A(l,t),C(n,t,null),A(t,s),C(i,t,null),u=!0,c||(m=pe(t,"submit",Et(r[1])),c=!0)},p(g,[b]){const w={};!o&&b&1&&(o=!0,w.value=g[0],_e(()=>o=!1)),n.$set(w);const v={};b&1024&&(v.$$scope={dirty:b,ctx:g}),i.$set(v)},i(g){u||(p(n.$$.fragment,g),p(i.$$.fragment,g),a||at(()=>{a=st(t,Bt,{x:-100,duration:150}),a.start()}),f||at(()=>{f=st(l,fr,{}),f.start()}),u=!0)},o(g){$(n.$$.fragment,g),$(i.$$.fragment,g),u=!1},d(g){g&&h(e),y(n),y(i),c=!1,m()}}}function Ya(r,e,l){let t,n,o,s,i;j(r,ve,_=>l(4,n=_)),j(r,xe,_=>l(6,o=_)),j(r,he,_=>l(7,s=_)),j(r,pt,_=>l(8,i=_));let a="";function f(_){l(0,a=_)}const u=()=>{if(!a)te(he,s=[],s),te(pt,i="",i);else try{te(he,s=el(a),s)}catch(_){console.error(_)}a&&a===t?te(xe,o=Date.now(),o):Ue({url:n.url,parameter:"query",value:a,allowEmpty:!0})};function c(){u()}function m(_){a=_,l(0,a)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&f(t)},[a,u,c,t,n,m]}class Dr extends fe{constructor(e){super(),ue(this,e,Ya,Ka,ce,{})}}function gt(r){return r==="ExecutionStatus"}function Lt(r,e=vt){const l=kt(e)[r];return gt(r)?!1:["Keyword","Text","String"].includes(l)}function Lr(r,e=vt){return kt(e)[r]==="KeywordList"}function Cr(r,e=vt){const l=kt(e)[r];return["Int","Double"].includes(l)}function il(r,e=vt){return kt(e)[r]==="Datetime"}function yr(r,e=vt){return kt(e)[r]==="Bool"}function Br(r){return gt(r)?"status-filter":Lt(r)||Cr(r)||il(r)?"conditional-menu-button":Lr(r)?"list-filter-search":yr(r)?"boolean-filter":""}function Ul(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function Ga(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&oe(e,l[1])},d(l){l&&h(e)}}}function Ja(r){let e=r[9]+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p:K,d(n){n&&h(l),n&&h(t)}}}function jl(r){let e,l;function t(){return r[7](r[8])}return e=new Ie({props:{$$slots:{default:[Ja]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&4096&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Xa(r){let e,l,t=r[4],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sl(0,o=c));const f=[{value:"true",label:H("true")},{value:"false",label:H("false")}],u=c=>{te(i,o.value=c,o),a()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,s=f.find(c=>c.value===o.value))!==null&&s!==void 0?s:f[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,i,a,f,s,t,u]}class ts extends fe{constructor(e){super(),ue(this,e,es,xa,ce,{})}}function ls(r){let e,l;return e=new Oe({props:{label:H("close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ns(r){const{resetFilter:e}=Ke(je);return[e]}class zt extends fe{constructor(e){super(),ue(this,e,ns,ls,ce,{})}}function zl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function rs(r){let e;return{c(){e=z(r[6])},l(l){e=Q(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&oe(e,l[6])},d(l){l&&h(e)}}}function os(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&1&&e!==(e=(n[17]??n[16])+"")&&oe(l,e)},d(n){n&&h(l),n&&h(t)}}}function Ql(r){let e,l;function t(){return r[13](r[16])}return e=new Ie({props:{$$slots:{default:[os]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1048577&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function as(r){let e,l,t=r[0],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sl(5,s=k)),j(r,u,k=>l(7,i=k));const c=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:m=c}=e,{disabled:_=!1}=e,{inputId:d}=e,{noBorderLeft:g=!1}=e,{noBorderRight:b=!1}=e;function w(){t||te(f,s.conditional=m[0].value,s)}const v=k=>{te(f,s.conditional=k,s),te(u,i=d,i)};return r.$$set=k=>{"options"in k&&l(0,m=k.options),"disabled"in k&&l(1,_=k.disabled),"inputId"in k&&l(2,d=k.inputId),"noBorderLeft"in k&&l(3,g=k.noBorderLeft),"noBorderRight"in k&&l(4,b=k.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=m.find(k=>k.value===s.conditional)),r.$$.dirty&1&&w(),r.$$.dirty&2049&&l(12,n=t??m[0]),r.$$.dirty&5120&&l(6,o=l(10,a=n==null?void 0:n.label)!==null&&a!==void 0?a:n==null?void 0:n.value)},[m,_,d,g,b,s,o,i,f,u,a,t,n,v]}class fl extends fe{constructor(e){super(),ue(this,e,fs,is,ce,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function Kl(r,e,l){const t=r.slice();return t[39]=e[l],t}function us(r){let e=H("workflows","select-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function cs(r){let e,l,t,n,o,s;return e=new Ie({props:{$$slots:{default:[ps]},$$scope:{ctx:r}}}),e.$on("click",r[32]),t=new St({}),o=new Ie({props:{$$slots:{default:[gs]},$$scope:{ctx:r}}}),o.$on("click",r[36]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment),n=O(),D(o.$$.fragment)},l(i){L(e.$$.fragment,i),l=W(i),L(t.$$.fragment,i),n=W(i),L(o.$$.fragment,i)},m(i,a){C(e,i,a),I(i,l,a),C(t,i,a),I(i,n,a),C(o,i,a),s=!0},p(i,a){const f={};a[0]&2053|a[1]&2048&&(f.$$scope={dirty:a,ctx:i}),e.$set(f);const u={};a[0]&236|a[1]&2048&&(u.$$scope={dirty:a,ctx:i}),o.$set(u)},i(i){s||(p(e.$$.fragment,i),p(t.$$.fragment,i),p(o.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),$(o.$$.fragment,i),s=!1},d(i){y(e,i),i&&h(l),y(t,i),i&&h(n),y(o,i)}}}function ms(r){let e,l,t,n,o,s;return e=new Ie({props:{$$slots:{default:[hs]},$$scope:{ctx:r}}}),t=new St({}),o=new Ie({props:{$$slots:{default:[$s]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment),n=O(),D(o.$$.fragment)},l(i){L(e.$$.fragment,i),l=W(i),L(t.$$.fragment,i),n=W(i),L(o.$$.fragment,i)},m(i,a){C(e,i,a),I(i,l,a),C(t,i,a),I(i,n,a),C(o,i,a),s=!0},p(i,a){const f={};a[0]&232|a[1]&2048&&(f.$$scope={dirty:a,ctx:i}),e.$set(f);const u={};a[0]&1808|a[1]&2048&&(u.$$scope={dirty:a,ctx:i}),o.$set(u)},i(i){s||(p(e.$$.fragment,i),p(t.$$.fragment,i),p(o.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),$(o.$$.fragment,i),s=!1},d(i){y(e,i),i&&h(l),y(t,i),i&&h(n),y(o,i)}}}function _s(r){let e=r[39]+"",l,t,n=H("ago")+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p:K,d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Yl(r){let e,l;return e=new Lo({props:{value:r[39],$$slots:{default:[_s]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[1]&2048&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ds(r){let e,l,t=r[15],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sme(o,"value",c));function _(g){r[31](g)}let d={unroundLeft:!0,id:"relative-datetime-unit-input",label:H("time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[ds]},$$scope:{ctx:r}};return r[11]!==void 0&&(d.value=r[11]),a=new Do({props:d}),ie.push(()=>me(a,"value",_)),{c(){e=P("div"),D(l.$$.fragment),t=O(),n=P("div"),D(o.$$.fragment),i=O(),D(a.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);L(l.$$.fragment,b),t=W(b),n=F(b,"DIV",{class:!0});var w=M(n);L(o.$$.fragment,w),i=W(w),L(a.$$.fragment,w),w.forEach(h),b.forEach(h),this.h()},h(){S(n,"class","ml-6 flex gap-0 pt-2"),S(e,"class","flex flex-col")},m(g,b){I(g,e,b),C(l,e,null),A(e,t),A(e,n),C(o,n,null),A(n,i),C(a,n,null),u=!0},p(g,b){const w={};b[0]&1&&(w.error=g[20](g[0])),b[0]&4&&(w.disabled=g[2]!=="relative"),!s&&b[0]&1&&(s=!0,w.value=g[0],_e(()=>s=!1)),o.$set(w);const v={};b[0]&4&&(v.disabled=g[2]!=="relative"),b[1]&2048&&(v.$$scope={dirty:b,ctx:g}),!f&&b[0]&2048&&(f=!0,v.value=g[11],_e(()=>f=!1)),a.$set(v)},i(g){u||(p(l.$$.fragment,g),p(o.$$.fragment,g),p(a.$$.fragment,g),u=!0)},o(g){$(l.$$.fragment,g),$(o.$$.fragment,g),$(a.$$.fragment,g),u=!1},d(g){g&&h(e),y(l),y(o),y(a)}}}function gs(r){let e,l,t,n,o,s,i,a,f,u,c;l=new $r({props:{label:H("absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Tt({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function m(b){r[33](b)}function _(b){r[34](b)}function d(b){r[35](b)}let g={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(g.hour=r[5]),r[6]!==void 0&&(g.minute=r[6]),r[7]!==void 0&&(g.second=r[7]),i=new Dt({props:g}),ie.push(()=>me(i,"hour",m)),ie.push(()=>me(i,"minute",_)),ie.push(()=>me(i,"second",d)),{c(){e=P("div"),D(l.$$.fragment),t=O(),n=P("div"),D(o.$$.fragment),s=O(),D(i.$$.fragment),this.h()},l(b){e=F(b,"DIV",{class:!0});var w=M(e);L(l.$$.fragment,w),t=W(w),n=F(w,"DIV",{class:!0});var v=M(n);L(o.$$.fragment,v),s=W(v),L(i.$$.fragment,v),v.forEach(h),w.forEach(h),this.h()},h(){S(n,"class","ml-6 flex flex-col gap-2"),S(e,"class","flex flex-col gap-2")},m(b,w){I(b,e,w),C(l,e,null),A(e,t),A(e,n),C(o,n,null),A(n,s),C(i,n,null),c=!0},p(b,w){const v={};w[0]&8&&(v.selected=b[3]),w[0]&4&&(v.disabled=b[2]!=="absolute"),o.$set(v);const k={};w[0]&4&&(k.disabled=b[2]!=="absolute"),!a&&w[0]&32&&(a=!0,k.hour=b[5],_e(()=>a=!1)),!f&&w[0]&64&&(f=!0,k.minute=b[6],_e(()=>f=!1)),!u&&w[0]&128&&(u=!0,k.second=b[7],_e(()=>u=!1)),i.$set(k)},i(b){c||(p(l.$$.fragment,b),p(o.$$.fragment,b),p(i.$$.fragment,b),c=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(i.$$.fragment,b),c=!1},d(b){b&&h(e),y(l),y(o),y(i)}}}function hs(r){let e,l,t,n,o,s,i,a;l=new Tt({props:{label:H("start"),selected:r[3],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),l.$on("datechange",r[17]);function f(_){r[24](_)}function u(_){r[25](_)}function c(_){r[26](_)}let m={twelveHourClock:!1};return r[5]!==void 0&&(m.hour=r[5]),r[6]!==void 0&&(m.minute=r[6]),r[7]!==void 0&&(m.second=r[7]),n=new Dt({props:m}),ie.push(()=>me(n,"hour",f)),ie.push(()=>me(n,"minute",u)),ie.push(()=>me(n,"second",c)),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(_){e=F(_,"DIV",{class:!0});var d=M(e);L(l.$$.fragment,d),t=W(d),L(n.$$.fragment,d),d.forEach(h),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(_,d){I(_,e,d),C(l,e,null),A(e,t),C(n,e,null),a=!0},p(_,d){const g={};d[0]&8&&(g.selected=_[3]),l.$set(g);const b={};!o&&d[0]&32&&(o=!0,b.hour=_[5],_e(()=>o=!1)),!s&&d[0]&64&&(s=!0,b.minute=_[6],_e(()=>s=!1)),!i&&d[0]&128&&(i=!0,b.second=_[7],_e(()=>i=!1)),n.$set(b)},i(_){a||(p(l.$$.fragment,_),p(n.$$.fragment,_),a=!0)},o(_){$(l.$$.fragment,_),$(n.$$.fragment,_),a=!1},d(_){_&&h(e),y(l),y(n)}}}function $s(r){let e,l,t,n,o,s,i,a;l=new Tt({props:{label:H("end"),selected:r[4],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),l.$on("datechange",r[18]);function f(_){r[27](_)}function u(_){r[28](_)}function c(_){r[29](_)}let m={twelveHourClock:!1};return r[8]!==void 0&&(m.hour=r[8]),r[9]!==void 0&&(m.minute=r[9]),r[10]!==void 0&&(m.second=r[10]),n=new Dt({props:m}),ie.push(()=>me(n,"hour",f)),ie.push(()=>me(n,"minute",u)),ie.push(()=>me(n,"second",c)),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(_){e=F(_,"DIV",{class:!0});var d=M(e);L(l.$$.fragment,d),t=W(d),L(n.$$.fragment,d),d.forEach(h),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(_,d){I(_,e,d),C(l,e,null),A(e,t),C(n,e,null),a=!0},p(_,d){const g={};d[0]&16&&(g.selected=_[4]),l.$set(g);const b={};!o&&d[0]&256&&(o=!0,b.hour=_[8],_e(()=>o=!1)),!s&&d[0]&512&&(s=!0,b.minute=_[9],_e(()=>s=!1)),!i&&d[0]&1024&&(i=!0,b.second=_[10],_e(()=>i=!1)),n.$set(b)},i(_){a||(p(l.$$.fragment,_),p(n.$$.fragment,_),a=!0)},o(_){$(l.$$.fragment,_),$(n.$$.fragment,_),a=!1},d(_){_&&h(e),y(l),y(n)}}}function bs(r){let e=H("apply")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function ks(r){let e,l,t=H("based-on-time-preface")+"",n,o,s,i;return e=new ye({props:{name:"clock","aria-hidden":"true"}}),{c(){D(e.$$.fragment),l=O(),n=z(t),o=O(),s=z(r[14])},l(a){L(e.$$.fragment,a),l=W(a),n=Q(a,t),o=W(a),s=Q(a,r[14])},m(a,f){C(e,a,f),I(a,l,f),I(a,n,f),I(a,o,f),I(a,s,f),i=!0},p:K,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){y(e,a),a&&h(l),a&&h(n),a&&h(o),a&&h(s)}}}function ws(r){let e,l,t,n,o,s,i,a,f,u;const c=[ms,cs],m=[];function _(d,g){return d[1]?0:1}return e=_(r),l=m[e]=c[e](r),n=new St({}),i=new ft({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[bs]},$$scope:{ctx:r}}}),i.$on("click",r[19]),f=new Ie({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[ks]},$$scope:{ctx:r}}}),{c(){l.c(),t=O(),D(n.$$.fragment),o=O(),s=P("div"),D(i.$$.fragment),a=O(),D(f.$$.fragment),this.h()},l(d){l.l(d),t=W(d),L(n.$$.fragment,d),o=W(d),s=F(d,"DIV",{class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),a=W(d),L(f.$$.fragment,d),this.h()},h(){S(s,"class","flex items-center p-2")},m(d,g){m[e].m(d,g),I(d,t,g),C(n,d,g),I(d,o,g),I(d,s,g),C(i,s,null),I(d,a,g),C(f,d,g),u=!0},p(d,g){let b=e;e=_(d),e===b?m[e].p(d,g):(J(),$(m[b],1,1,()=>{m[b]=null}),X(),l=m[e],l?l.p(d,g):(l=m[e]=c[e](d),l.c()),p(l,1),l.m(t.parentNode,t));const w={};g[0]&4096&&(w.disabled=d[12]),g[1]&2048&&(w.$$scope={dirty:g,ctx:d}),i.$set(w);const v={};g[1]&2048&&(v.$$scope={dirty:g,ctx:d}),f.$set(v)},i(d){u||(p(l),p(n.$$.fragment,d),p(i.$$.fragment,d),p(f.$$.fragment,d),u=!0)},o(d){$(l),$(n.$$.fragment,d),$(i.$$.fragment,d),$(f.$$.fragment,d),u=!1},d(d){m[e].d(d),d&&h(t),y(n,d),d&&h(o),d&&h(s),y(i),d&&h(a),y(f,d)}}}function vs(r){let e,l,t,n;return e=new lt({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",$$slots:{default:[us]},$$scope:{ctx:r}}}),t=new nt({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[25rem] !overflow-visible",$$slots:{default:[ws]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s[1]&2048&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s[0]&8191|s[1]&2048&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function Is(r){let e,l,t,n,o;return l=new fl({props:{inputId:"time-range-filter",options:[{value:"<=",label:H("before")},{value:"BETWEEN",label:H("between")},{value:">=",label:H("after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new tt({props:{$$slots:{default:[vs]},$$scope:{ctx:r}}}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(s){e=F(s,"DIV",{class:!0});var i=M(e);L(l.$$.fragment,i),t=W(i),L(n.$$.fragment,i),i.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(s,i){I(s,e,i),C(l,e,null),A(e,t),C(n,e,null),o=!0},p(s,i){const a={};i[0]&8191|i[1]&2048&&(a.$$scope={dirty:i,ctx:s}),n.$set(a)},i(s){o||(p(l.$$.fragment,s),p(n.$$.fragment,s),o=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),o=!1},d(s){s&&h(e),y(l),y(n)}}}function Es(r,e,l){let t,n,o,s,i,a;j(r,wt,re=>l(23,a=re));const{filter:f,handleSubmit:u}=Ke(je);j(r,f,re=>l(22,s=re));const c=ur()||H("local");let m=Ge(new Date),_=Ge(new Date),d="",g="",b="",w="",v="",k="";const B=["minutes","hours","days"];let T=B[0],E="";const N=Je("relative");j(r,N,re=>l(2,i=re));const U=re=>{l(3,m=Ge(re.detail))},q=re=>{l(4,_=Ge(re.detail))},Y=(re,Ce)=>{let Re=new Date(re);return Ce.hour&&(Re=wr(Re,parseInt(Ce.hour))),Ce.minute&&(Re=vr(Re,parseInt(Ce.minute))),Ce.second&&(Re=Ir(Re,parseInt(Ce.second))),Re},V=()=>{if(i==="relative"&&!n){if(!E)return;te(f,s.value=xt(`${E} ${T}`),s),te(f,s.customDate=!1,s)}else{let re=Y(m,{hour:d,minute:g,second:b}),Ce=Y(_,{hour:w,minute:v,second:k});const Re=n?`BETWEEN "${dt(re)}" AND "${dt(Ce)}"`:dt(re);te(f,s.value=Re,s),t?(te(f,s.customDate=!0,s),te(f,s.conditional="",s)):te(f,s.customDate=!1,s)}u()},R=re=>re?isNaN(Number(re))||isNaN(parseFloat(re)):!1;function Z(re){d=re,l(5,d)}function G(re){g=re,l(6,g)}function de(re){b=re,l(7,b)}function ge(re){w=re,l(8,w)}function x(re){v=re,l(9,v)}function ae(re){k=re,l(10,k)}function Ee(re){E=re,l(0,E)}function De(re){T=re,l(11,T)}const Be=()=>te(N,i="relative",i);function Le(re){d=re,l(5,d)}function Ve(re){g=re,l(6,g)}function le(re){b=re,l(7,b)}const Me=()=>te(N,i="absolute",i);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=s.conditional==="BETWEEN"),r.$$.dirty[0]&8388610&&l(21,n=t||!a),r.$$.dirty[0]&2097157&&l(12,o=i==="relative"&&!n&&(!E||R(E)))},[E,t,i,m,_,d,g,b,w,v,k,T,o,f,c,B,N,U,q,V,R,n,s,a,Z,G,de,ge,x,ae,Ee,De,Be,Le,Ve,le,Me]}class Ts extends fe{constructor(e){super(),ue(this,e,Es,Is,ce,{},null,[-1,-1])}}function Ds(r){let e;const l=r[5].default,t=$e(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,null):ke(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ls(r){let e,l,t,n;const o=r[5].default,s=$e(o,r,r[4],null);return{c(){e=P("button"),s&&s.c(),this.h()},l(i){e=F(i,"BUTTON",{class:!0});var a=M(e);s&&s.l(a),a.forEach(h),this.h()},h(){S(e,"class","flex items-center gap-1")},m(i,a){I(i,e,a),s&&s.m(e,null),l=!0,t||(n=pe(e,"click",r[6]),t=!0)},p(i,a){s&&s.p&&(!l||a&16)&&be(s,o,i,i[4],l?we(o,i[4],a,null):ke(i[4]),null)},i(i){l||(p(s,i),l=!0)},o(i){$(s,i),l=!1},d(i){i&&h(e),s&&s.d(i),t=!1,n()}}}function Cs(r){let e,l,t,n,o,s,i,a,f,u;const c=[Ls,Ds],m=[];function _(d,g){return d[1]?0:1}return l=_(r),t=m[l]=c[l](r),s=new ye({props:{name:"close"}}),{c(){e=P("span"),t.c(),n=O(),o=P("button"),D(s.$$.fragment),this.h()},l(d){e=F(d,"SPAN",{class:!0});var g=M(e);t.l(g),n=W(g),o=F(g,"BUTTON",{"aria-label":!0});var b=M(o);L(s.$$.fragment,b),b.forEach(h),g.forEach(h),this.h()},h(){S(o,"aria-label",r[2]),S(e,"class",i="chip "+r[0]+" svelte-jjsz31")},m(d,g){I(d,e,g),m[l].m(e,null),A(e,n),A(e,o),C(s,o,null),a=!0,f||(u=pe(o,"click",r[3]),f=!0)},p(d,[g]){let b=l;l=_(d),l===b?m[l].p(d,g):(J(),$(m[b],1,1,()=>{m[b]=null}),X(),t=m[l],t?t.p(d,g):(t=m[l]=c[l](d),t.c()),p(t,1),t.m(e,n)),(!a||g&4)&&S(o,"aria-label",d[2]),(!a||g&1&&i!==(i="chip "+d[0]+" svelte-jjsz31"))&&S(e,"class",i)},i(d){a||(p(t),p(s.$$.fragment,d),a=!0)},o(d){$(t),$(s.$$.fragment,d),a=!1},d(d){d&&h(e),m[l].d(),y(s),f=!1,u()}}}function ys(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:s=!1}=e,{removeButtonLabel:i}=e;const a=ut(),f=c=>{c.preventDefault(),a("remove")};function u(c){Ae.call(this,r,c)}return r.$$set=c=>{"intent"in c&&l(0,o=c.intent),"button"in c&&l(1,s=c.button),"removeButtonLabel"in c&&l(2,i=c.removeButtonLabel),"$$scope"in c&&l(4,n=c.$$scope)},[o,s,i,f,n,t,u]}class Bs extends fe{constructor(e){super(),ue(this,e,ys,Cs,ce,{intent:0,button:1,removeButtonLabel:2})}}const Sr=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Ss(r){return Sr.includes(r)}const Mt=["All",...Sr];function Gl(r,e,l){const t=r.slice();t[18]=e[l],t[24]=l;const n=t[18];return t[19]=n.attribute,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Jl(r){let e,l,t,n;function o(){return r[14](r[24])}function s(){return r[15](r[24],r[18])}return l=new Bs({props:{removeButtonLabel:H("workflows","remove-filter-label",{attribute:r[19]}),intent:"default",button:!0,$$slots:{default:[Vs]},$$scope:{ctx:r}}}),l.$on("remove",o),l.$on("click",s),{c(){e=P("div"),D(l.$$.fragment)},l(i){e=F(i,"DIV",{});var a=M(e);L(l.$$.fragment,a),a.forEach(h)},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){r=i;const f={};a&2&&(f.removeButtonLabel=H("workflows","remove-filter-label",{attribute:r[19]})),a&33554482&&(f.$$scope={dirty:a,ctx:r}),l.$set(f)},i(i){n||(p(l.$$.fragment,i),t||at(()=>{t=st(e,fr,{}),t.start()}),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function As(r){let e,l=r[19]+"",t,n,o;function s(f,u){return u&2&&(o=null),o==null&&(o=!!il(f[19])),o?Fs:Ps}let i=s(r,-1),a=i(r);return{c(){e=P("span"),t=z(l),n=O(),a.c(),this.h()},l(f){e=F(f,"SPAN",{class:!0});var u=M(e);t=Q(u,l),n=W(u),a.l(u),u.forEach(h),this.h()},h(){S(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,u){I(f,e,u),A(e,t),A(e,n),a.m(e,null)},p(f,u){u&2&&l!==(l=f[19]+"")&&oe(t,l),i===(i=s(f,u))&&a?a.p(f,u):(a.d(1),a=i(f),a&&(a.c(),a.m(e,null)))},i:K,o:K,d(f){f&&h(e),a.d()}}}function Ns(r){let e,l=r[19]+"",t,n,o=r[21]+"",s,i,a,f,u;return f=new jt({props:{status:r[20]}}),{c(){e=P("span"),t=z(l),n=O(),s=z(o),i=O(),a=P("span"),D(f.$$.fragment),this.h()},l(c){e=F(c,"SPAN",{class:!0});var m=M(e);t=Q(m,l),n=W(m),s=Q(m,o),i=W(m),a=F(m,"SPAN",{class:!0});var _=M(a);L(f.$$.fragment,_),_.forEach(h),m.forEach(h),this.h()},h(){S(a,"class","-py-1 ml-1"),S(e,"class","flex")},m(c,m){I(c,e,m),A(e,t),A(e,n),A(e,s),A(e,i),A(e,a),C(f,a,null),u=!0},p(c,m){(!u||m&2)&&l!==(l=c[19]+"")&&oe(t,l),(!u||m&2)&&o!==(o=c[21]+"")&&oe(s,o);const _={};m&2&&(_.status=c[20]),f.$set(_)},i(c){u||(p(f.$$.fragment,c),u=!0)},o(c){$(f.$$.fragment,c),u=!1},d(c){c&&h(e),y(f)}}}function Ps(r){let e=r[21]+"",l,t,n=(Lt(r[19])?`"${r[20]}"`:r[20])+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p(s,i){i&2&&e!==(e=s[21]+"")&&oe(l,e),i&2&&n!==(n=(Lt(s[19])?`"${s[20]}"`:s[20])+"")&&oe(o,n)},d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Fs(r){let e;function l(o,s){return o[22]?Ws:Os}let t=l(r),n=t(r);return{c(){n.c(),e=ee()},l(o){n.l(o),e=ee()},m(o,s){n.m(o,s),I(o,e,s)},p(o,s){t===(t=l(o))&&n?n.p(o,s):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&h(e)}}}function Os(r){let e=r[10](r[21])+"",l,t,n=Fe(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p(s,i){i&2&&e!==(e=s[10](s[21])+"")&&oe(l,e),i&50&&n!==(n=Fe(s[20],s[4],{relative:s[5],abbrFormat:!0})+"")&&oe(o,n)},d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Ws(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&oe(l,e)},d(t){t&&h(l)}}}function Vs(r){let e,l,t,n,o;const s=[Ns,As],i=[];function a(f,u){return u&2&&(e=null),e==null&&(e=!!(f[19]==="ExecutionStatus"&&Ss(f[20]))),e?0:1}return l=a(r,-1),t=i[l]=s[l](r),{c(){t.c(),n=ee()},l(f){t.l(f),n=ee()},m(f,u){i[l].m(f,u),I(f,n,u),o=!0},p(f,u){let c=l;l=a(f,u),l===c?i[l].p(f,u):(J(),$(i[c],1,1,()=>{i[c]=null}),X(),t=i[l],t?t.p(f,u):(t=i[l]=s[l](f),t.c()),p(t,1),t.m(n.parentNode,n))},i(f){o||(p(t),o=!0)},o(f){$(t),o=!1},d(f){i[l].d(f),f&&h(n)}}}function Xl(r,e){let l,t,n,o=e[19]&&Jl(e);return{key:r,first:null,c(){l=ee(),o&&o.c(),t=ee(),this.h()},l(s){l=ee(),o&&o.l(s),t=ee(),this.h()},h(){this.first=l},m(s,i){I(s,l,i),o&&o.m(s,i),I(s,t,i),n=!0},p(s,i){e=s,e[19]?o?(o.p(e,i),i&2&&p(o,1)):(o=Jl(e),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(J(),$(o,1,1,()=>{o=null}),X())},i(s){n||(p(o),n=!0)},o(s){$(o),n=!1},d(s){s&&h(l),o&&o.d(s),s&&h(t)}}}function Zl(r){let e,l;return e=new ft({props:{variant:"secondary",size:"xs",$$slots:{default:[Ms]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ms(r){let e;return{c(){e=z("View More...")},l(l){e=Q(l,"View More...")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function Rs(r){let e,l=[],t=new Map,n,o,s=r[1];const i=f=>`${f[18].attribute}-${f[24]}`;for(let f=0;f{a=null}),X()),(!o||u&2)&&se(e,"pt-2",f[1].length)},i(f){if(!o){for(let u=0;ul(13,o=T)),j(r,Xe,T=>l(16,a=T)),j(r,ve,T=>l(17,f=T)),j(r,Ft,T=>l(4,u=T)),j(r,cr,T=>l(5,c=T));const{filter:m,activeQueryIndex:_}=Ke(je);j(r,m,T=>l(3,i=T)),j(r,_,T=>l(2,s=T));const d=T=>{if(o.splice(T,1),he.set(o),Qe(f.url,o,a),T===o.length){const E=o[o.length-1];E&&(E.operator="")}T===s?(te(_,s=null,s),te(m,i=Ze(),i)):T{n&&l(12,g+=5)},w=T=>["<","<="].includes(T)?H("before").toLowerCase():[">",">="].includes(T)?H("after").toLowerCase():T,v=(T,E,N)=>{const[U,q,Y,V]=T.split(" ");return`${U.toLowerCase()} ${Fe(q,E,{relative:N,abbrFormat:!0})} ${Y.toLowerCase()} ${Fe(V,E,{relative:N,abbrFormat:!0})}`},k=T=>d(T),B=(T,E)=>{te(_,s=T,s),te(m,i={...E},i)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,g)),r.$$.dirty&12288&&l(0,n=g{k=null}),X()),(!b||E&2048)&&S(a,"max",T[11]),(!b||E&4096)&&S(a,"min",T[12]),(!b||E&256)&&(a.disabled=T[8]),(!b||E&64)&&S(a,"placeholder",T[6]),(!b||E&4)&&S(a,"id",T[2]),(!b||E&128)&&S(a,"name",T[7]),E&1&&sr(a.value)!==T[0]&&dl(a,T[0]),(!b||E&256)&&se(a,"disabled",T[8]),(!b||E&512&&f!==(f="input-container "+T[9]+" svelte-1851tme"))&&S(s,"class",f),(!b||E&768)&&se(s,"disabled",T[8]),(!b||E&33280)&&se(s,"search",T[15]),(!b||E&8704)&&se(s,"unroundRight",T[13]),(!b||E&16896)&&se(s,"unroundLeft",T[14]),(!b||E&66048)&&se(s,"invalid",!T[16]),(!b||E&32)&&oe(m,T[5]),(!b||E&131072&&_!==(_=_l(T[17].class)+" svelte-1851tme"))&&S(e,"class",_),!T[16]&&T[10]?B?B.p(T,E):(B=en(T),B.c(),B.m(g.parentNode,g)):B&&(B.d(1),B=null)},i(T){b||(p(k),b=!0)},o(T){$(k),b=!1},d(T){T&&h(e),k&&k.d(),T&&h(d),B&&B.d(T),T&&h(g),w=!1,bt(v)}}}function js(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:s}=e,{labelHidden:i=!1}=e,{units:a=""}=e,{placeholder:f=""}=e,{name:u=n}=e,{disabled:c=!1}=e,{theme:m="light"}=e,{hintText:_=""}=e,{max:d=void 0}=e,{min:g=void 0}=e,{unroundRight:b=!1}=e,{unroundLeft:w=!1}=e,{search:v=!1}=e,k=!0;const B=V=>{g!==void 0&&Vd?l(16,k=!1):l(16,k=!0)};function T(V){Ae.call(this,r,V)}function E(V){Ae.call(this,r,V)}function N(V){Ae.call(this,r,V)}function U(V){Ae.call(this,r,V)}function q(V){Ae.call(this,r,V)}function Y(){o=sr(this.value),l(0,o)}return r.$$set=V=>{l(17,e=it(it({},e),ht(V))),"icon"in V&&l(1,t=V.icon),"id"in V&&l(2,n=V.id),"value"in V&&l(0,o=V.value),"label"in V&&l(3,s=V.label),"labelHidden"in V&&l(4,i=V.labelHidden),"units"in V&&l(5,a=V.units),"placeholder"in V&&l(6,f=V.placeholder),"name"in V&&l(7,u=V.name),"disabled"in V&&l(8,c=V.disabled),"theme"in V&&l(9,m=V.theme),"hintText"in V&&l(10,_=V.hintText),"max"in V&&l(11,d=V.max),"min"in V&&l(12,g=V.min),"unroundRight"in V&&l(13,b=V.unroundRight),"unroundLeft"in V&&l(14,w=V.unroundLeft),"search"in V&&l(15,v=V.search)},r.$$.update=()=>{r.$$.dirty&1&&B(o)},e=ht(e),[o,t,n,s,i,a,f,u,c,m,_,d,g,b,w,v,k,e,T,E,N,U,q,Y]}class zs extends fe{constructor(e){super(),ue(this,e,js,Us,ce,{icon:1,id:2,value:0,label:3,labelHidden:4,units:5,placeholder:6,name:7,disabled:8,theme:9,hintText:10,max:11,min:12,unroundRight:13,unroundLeft:14,search:15})}}function Qs(r){let e,l,t,n,o,s;l=new fl({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function i(f){r[4](f)}let a={label:H("number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:H("number-input-placeholder"),min:Ar,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(a.value=r[0]),n=new zs({props:a}),ie.push(()=>me(n,"value",i)),n.$on("keydown",r[3]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(f){e=F(f,"DIV",{class:!0});var u=M(e);L(l.$$.fragment,u),t=W(u),L(n.$$.fragment,u),u.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(f,u){I(f,e,u),C(l,e,null),A(e,t),C(n,e,null),s=!0},p(f,[u]){const c={};!o&&u&1&&(o=!0,c.value=f[0],_e(()=>o=!1)),n.$set(c)},i(f){s||(p(l.$$.fragment,f),p(n.$$.fragment,f),s=!0)},o(f){$(l.$$.fragment,f),$(n.$$.fragment,f),s=!1},d(f){f&&h(e),y(l),y(n)}}}const Ar=0;function Ks(r,e,l){let t,n;const{filter:o,focusedElementId:s,handleSubmit:i}=Ke(je);j(r,o,c=>l(5,t=c)),j(r,s,c=>l(6,n=c));let a=t.value?Number(t.value):null;const f=c=>{te(s,n="",n),c.key==="Enter"&&a!==null&&a>=Ar&&(te(o,t.value=String(a),t),c.preventDefault(),i())};function u(c){a=c,l(0,a)}return[a,o,s,f,u]}class Ys extends fe{constructor(e){super(),ue(this,e,Ks,Qs,ce,{})}}const{Boolean:Gs}=Hr;function tn(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label;const n=ni(t[15],t[4]);return t[17]=n,t}function Js(r){let e=(r[2].attribute||H("workflows","filter"))+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||H("workflows","filter"))+"")&&oe(l,e)},d(t){t&&h(l)}}}function ln(r){let e,l;return e=new ye({props:{name:"filter"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xs(r){let e,l,t=!r[2].attribute&&ln();return{c(){t&&t.c(),e=ee()},l(n){t&&t.l(n),e=ee()},m(n,o){t&&t.m(n,o),I(n,e,o),l=!0},p(n,o){n[2].attribute?t&&(J(),$(t,1,1,()=>{t=null}),X()):t?o&4&&p(t,1):(t=ln(),t.c(),p(t,1),t.m(e.parentNode,e))},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&h(e)}}}function nn(r){let e,l;return e=new Ie({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[Zs]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zs(r){let e=H("no-results")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function xs(r){let e=r[16]+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&2&&e!==(e=n[16]+"")&&oe(l,e)},d(n){n&&h(l),n&&h(t)}}}function rn(r){let e,l;function t(){return r[13](r[15])}return e=new Ie({props:{disabled:r[17],$$slots:{default:[xs]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&18&&(s.disabled=r[17]),o&1048578&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function ei(r){let e,l,t,n,o;function s(m){r[12](m)}let i={label:H("search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:H("search"),class:"mb-1"};r[0]!==void 0&&(i.value=r[0]),e=new Ne({props:i}),ie.push(()=>me(e,"value",s));let a=r[1],f=[];for(let m=0;m$(f[m],1,1,()=>{f[m]=null});let c=null;return a.length||(c=nn(r)),{c(){D(e.$$.fragment),t=O();for(let m=0;ml=!1)),e.$set(d),_&274){a=m[1];let g;for(g=0;g{c=null}),X()):(c=nn(m),c.c(),p(c,1),c.m(n.parentNode,n))}},i(m){if(!o){p(e.$$.fragment,m);for(let _=0;_(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function ri(r,e,l){let t,n,o,s,i,a,f;j(r,Io,v=>l(10,o=v)),j(r,he,v=>l(4,f=v));const{filter:u,activeQueryIndex:c,focusedElementId:m}=Ke(je);j(r,u,v=>l(2,i=v)),j(r,c,v=>l(3,a=v)),j(r,m,v=>l(14,s=v));function _(v){l(0,d=""),u.set({...Ze(),attribute:v,conditional:"="}),te(m,s=Br(v),s)}let d="";const g=()=>l(0,d="");function b(v){d=v,l(0,d)}const w=v=>{_(v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(v=>!Lr(v.value))),r.$$.dirty&513&&l(1,n=d?t.filter(v=>v.value.toLowerCase().includes(d.toLowerCase())):t)},[d,n,i,a,f,u,c,m,_,t,o,g,b,w]}class oi extends fe{constructor(e){super(),ue(this,e,ri,li,ce,{})}}function ai(r){let e,l;return e=new ye({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function si(r){let e,l;return e=new ye({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ii(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b=[{id:r[1]},{__value:r[8]},{type:"checkbox"},{indeterminate:r[5]},{disabled:r[6]},Bl(r[10],"data-testid")],w={};for(let T=0;T{k[N]=null}),X()),~f?(u=k[f],u||(u=k[f]=v[f](T),u.c()),p(u,1),u.m(a,null)):u=null),(!_||E&128)&&se(a,"hoverable",T[7]),(!_||E&16)&&se(a,"on-dark",T[4]),(!_||E&128)&&se(l,"hoverable",T[7]),(!_||E&64)&&se(l,"disabled",T[6]),(!_||E&16)&&se(l,"on-dark",T[4]),(!_||E&1024&&c!==(c=T[10]["data-testid"]??null))&&S(e,"data-testid",c),(!_||E&2048&&m!==(m="relative "+T[11].class+" svelte-1ic6fbx"))&&S(e,"class",m)},i(T){_||(p(u),_=!0)},o(T){$(u),_=!1},d(T){T&&h(e),~f&&k[f].d(),d=!1,bt(g)}}}function fi(r,e,l){const t=["id","checked","label","labelHidden","onDark","indeterminate","disabled","hoverable","value","group"];let n=gl(e,t),{id:o=""}=e,{checked:s=!1}=e,{label:i}=e,{labelHidden:a=!1}=e,{onDark:f=!1}=e,{indeterminate:u=!1}=e,{disabled:c=!1}=e,{hoverable:m=!1}=e,{value:_=void 0}=e,{group:d=void 0}=e;const g=ut(),b=N=>{const{checked:U}=N.currentTarget;d!==void 0&&(U?l(12,d=[...d,_]):l(12,d=d.filter(q=>q!==_))),l(0,s=U),g("change",{checked:N.currentTarget.checked,value:_})};function w(N){Ae.call(this,r,N)}function v(N){Ae.call(this,r,N)}function k(N){Ae.call(this,r,N)}function B(N){Ae.call(this,r,N)}function T(N){Ae.call(this,r,N)}function E(){s=this.checked,l(0,s),l(12,d),l(8,_)}return r.$$set=N=>{l(11,e=it(it({},e),ht(N))),l(10,n=gl(e,t)),"id"in N&&l(1,o=N.id),"checked"in N&&l(0,s=N.checked),"label"in N&&l(2,i=N.label),"labelHidden"in N&&l(3,a=N.labelHidden),"onDark"in N&&l(4,f=N.onDark),"indeterminate"in N&&l(5,u=N.indeterminate),"disabled"in N&&l(6,c=N.disabled),"hoverable"in N&&l(7,m=N.hoverable),"value"in N&&l(8,_=N.value),"group"in N&&l(12,d=N.group)},r.$$.update=()=>{r.$$.dirty&4353&&l(0,s=d!==void 0?d.includes(_):s)},e=ht(e),[s,o,i,a,f,u,c,m,_,b,n,e,d,w,v,k,B,T,E]}class Qt extends fe{constructor(e){super(),ue(this,e,fi,ii,ce,{id:1,checked:0,label:2,labelHidden:3,onDark:4,indeterminate:5,disabled:6,hoverable:7,value:8,group:12})}}function on(r,e,l){const t=r.slice();t[18]=e[l];const n=t[0].some(function(...s){return r[12](t[18],...s)})||!t[0].length&&t[18]==="All";return t[19]=n,t}function ui(r){let e=r[1].attribute+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&oe(l,e)},d(t){t&&h(l)}}}function ci(r){let e,l;return e=new jt({props:{status:r[18]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function mi(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"all-statuses"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _i(r){let e,l,t,n;const o=[mi,ci],s=[];function i(a,f){return a[18]==="All"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){l.p(a,f)},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function di(r){let e,l;function t(){return r[10](r[18])}return e=new Qt({props:{slot:"leading",checked:r[19],label:r[18],labelHidden:!0}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1&&(s.checked=r[19]),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function an(r,e){let l,t,n;function o(){return e[11](e[18])}return t=new Ie({props:{"data-testid":e[18],$$slots:{leading:[di],default:[_i]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=ee(),D(t.$$.fragment),this.h()},l(s){l=ee(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,i){I(s,l,i),C(t,s,i),n=!0},p(s,i){e=s;const a={};i&4194305&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){$(t.$$.fragment,s),n=!1},d(s){s&&h(l),y(t,s)}}}function pi(r){let e=[],l=new Map,t,n,o,s=Mt;const i=a=>a[18];for(let a=0;al(8,o=T)),j(r,Xe,T=>l(13,i=T)),j(r,ve,T=>l(14,a=T));const{filter:u,resetFilter:c}=Ke(je);j(r,u,T=>l(1,s=T));const m=Je(!0);j(r,m,T=>l(2,f=T));function _(){te(he,o=t,o),Qe(a.url,o,i)}function d(T){return{...s,value:T}}function g(T){return T.length===1?[d(T[0].value)]:T.map((E,N)=>{const U=N===T.length-1?"":"OR";return{...E,operator:U}})}const b=T=>{if(T==="All")l(7,t=o.filter(E=>E.attribute!=="ExecutionStatus"));else if(n.find(E=>E.value===T)){const E=o.filter(N=>!gt(N.attribute));l(7,t=[...E,...g(n.filter(N=>N.value!==T))])}else if(!n.length)l(7,t=[...t,d(T)]);else{const E=t.filter(N=>!gt(N.attribute));l(7,t=[...E,...g([...n,d(T)])])}_()},w=()=>{f&&c()},v=T=>b(T),k=T=>{b(T)},B=(T,E)=>E.value===T;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(T=>gt(T.attribute)))},[n,s,f,u,c,m,b,t,o,w,v,k,B]}class bi extends fe{constructor(e){super(),ue(this,e,$i,hi,ce,{})}}function ki(r){let e,l,t,n,o;e=new fl({props:{options:[{value:"=",label:H("equal-to")},{value:"!=",label:H("not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function s(a){r[4](a)}let i={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${H("enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(i.value=r[0]),t=new Ne({props:i}),ie.push(()=>me(t,"value",s)),t.$on("keydown",r[3]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(a){L(e.$$.fragment,a),l=W(a),L(t.$$.fragment,a)},m(a,f){C(e,a,f),I(a,l,f),C(t,a,f),o=!0},p(a,[f]){const u={};f&2&&(u.label=a[1].attribute),f&2&&(u.placeholder=`${H("enter")} ${a[1].attribute}`),!n&&f&1&&(n=!0,u.value=a[0],_e(()=>n=!1)),t.$set(u)},i(a){o||(p(e.$$.fragment,a),p(t.$$.fragment,a),o=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),o=!1},d(a){y(e,a),a&&h(l),y(t,a)}}}function wi(r,e,l){let t;const{filter:n,handleSubmit:o}=Ke(je);j(r,n,f=>l(1,t=f));let s=t.value;function i(f){f.key==="Enter"&&s!==""&&(f.preventDefault(),te(n,t.value=s,t),o())}function a(f){s=f,l(0,s)}return[s,t,n,i,a]}let vi=class extends fe{constructor(e){super(),ue(this,e,wi,ki,ce,{})}};function Ii(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b,w;const v=[Di,Ti],k=[];function B(q,Y){return Y&1&&(l=null),l==null&&(l=!!gt(q[0].attribute)),l?0:1}t=B(r,-1),n=k[t]=v[t](r);const T=[Bi,yi,Ci,Li],E=[];function N(q,Y){return Y&1&&(s=null),Y&1&&(i=null),Y&1&&(a=null),Y&1&&(f=null),s==null&&(s=!!Lt(q[0].attribute)),s?0:(i==null&&(i=!!Cr(q[0].attribute)),i?1:(a==null&&(a=!!il(q[0].attribute)),a?2:(f==null&&(f=!!yr(q[0].attribute)),f?3:-1)))}~(u=N(r,-1))&&(c=E[u]=T[u](r));let U=r[2]&&sn(r);return{c(){e=P("div"),n.c(),o=O(),c&&c.c(),m=O(),_=P("div"),U&&U.c(),this.h()},l(q){e=F(q,"DIV",{class:!0});var Y=M(e);n.l(Y),o=W(Y),c&&c.l(Y),Y.forEach(h),m=W(q),_=F(q,"DIV",{class:!0});var V=M(_);U&&U.l(V),V.forEach(h),this.h()},h(){S(e,"class","flex items-center svelte-d4361j"),se(e,"filter",!r[2]),S(_,"class",d="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(q,Y){I(q,e,Y),k[t].m(e,null),A(e,o),~u&&E[u].m(e,null),I(q,m,Y),I(q,_,Y),U&&U.m(_,null),g=!0,b||(w=pe(e,"keyup",r[8]),b=!0)},p(q,Y){let V=t;t=B(q,Y),t!==V&&(J(),$(k[V],1,1,()=>{k[V]=null}),X(),n=k[t],n||(n=k[t]=v[t](q),n.c()),p(n,1),n.m(e,o));let R=u;u=N(q,Y),u!==R&&(c&&(J(),$(E[R],1,1,()=>{E[R]=null}),X()),~u?(c=E[u],c||(c=E[u]=T[u](q),c.c()),p(c,1),c.m(e,null)):c=null),(!g||Y&4)&&se(e,"filter",!q[2]),q[2]?U?(U.p(q,Y),Y&4&&p(U,1)):(U=sn(q),U.c(),p(U,1),U.m(_,null)):U&&(J(),$(U,1,1,()=>{U=null}),X()),(!g||Y&4&&d!==(d="flex flex-col sm:flex-row "+(q[2]?"w-full justify-between":"justify-end")))&&S(_,"class",d)},i(q){g||(p(n),p(c),p(U),g=!0)},o(q){$(n),$(c),$(U),g=!1},d(q){q&&h(e),k[t].d(),~u&&E[u].d(),q&&h(m),q&&h(_),U&&U.d(),b=!1,w()}}}function Ei(r){let e,l;return e=new Dr({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ti(r){let e,l;return e=new oi({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Di(r){let e,l;return e=new bi({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Li(r){let e,l,t,n,o,s;return l=new ts({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function Ci(r){let e,l,t,n,o,s;return l=new Ts({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function yi(r){let e,l,t,n,o,s;return l=new Ys({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function Bi(r){let e,l,t,n,o,s;return l=new vi({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function sn(r){let e,l;return e=new ft({props:{variant:"ghost",$$slots:{default:[Si]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Si(r){let e=H("clear-all")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ai(r){let e,l,t,n,o,s,i,a,f,u;const c=[Ei,Ii],m=[];function _(b,w){return b[1]?0:1}t=_(r),n=m[t]=c[t](r);function d(b){r[12](b)}let g={label:H("workflows","view-search-input"),labelPosition:"left",id:"view-search-input"};return r[1]!==void 0&&(g.checked=r[1]),s=new vo({props:g}),ie.push(()=>me(s,"checked",d)),s.$on("change",r[13]),f=new qs({}),{c(){e=P("div"),l=P("div"),n.c(),o=O(),D(s.$$.fragment),a=O(),D(f.$$.fragment),this.h()},l(b){e=F(b,"DIV",{class:!0});var w=M(e);l=F(w,"DIV",{class:!0});var v=M(l);n.l(v),o=W(v),L(s.$$.fragment,v),v.forEach(h),a=W(w),L(f.$$.fragment,w),w.forEach(h),this.h()},h(){S(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),S(e,"class","flex grow flex-col")},m(b,w){I(b,e,w),A(e,l),m[t].m(l,null),A(l,o),C(s,l,null),A(e,a),C(f,e,null),u=!0},p(b,[w]){let v=t;t=_(b),t===v?m[t].p(b,w):(J(),$(m[v],1,1,()=>{m[v]=null}),X(),n=m[t],n?n.p(b,w):(n=m[t]=c[t](b),n.c()),p(n,1),n.m(l,o));const k={};!i&&w&2&&(i=!0,k.checked=b[1],_e(()=>i=!1)),s.$set(k)},i(b){u||(p(n),p(s.$$.fragment,b),p(f.$$.fragment,b),u=!0)},o(b){$(n),$(s.$$.fragment,b),$(f.$$.fragment,b),u=!1},d(b){b&&h(e),m[t].d(),y(s),y(f)}}}const je="filter-context";function Ni(r,e,l){let t,n,o,s,i,a,f,u;j(r,he,U=>l(10,a=U)),j(r,ve,U=>l(11,f=U)),j(r,xe,U=>l(16,u=U));const c=Je(Ze());j(r,c,U=>l(0,o=U));const m=Je(null);j(r,m,U=>l(9,i=U));const _=Je("");j(r,_,U=>l(15,s=U));let d=!1;Ur(je,{filter:c,activeQueryIndex:m,handleSubmit:b,focusedElementId:_,resetFilter:B});function g(){const U=Er(Tr(a));U&&U===t?te(xe,u=Date.now(),u):Ue({url:f.url,parameter:"query",value:U,allowEmpty:!0})}function b(){i!==null?(te(he,a[i]=o,a),te(m,i=null,i)):te(he,a=[...a,o],a),c.set(Ze()),g()}function w(){te(he,a=[],a),g()}function v(){i!==null&&te(_,s=Br(o.attribute),s)}function k(){if(s){const U=document.getElementById(s);U&&(U.focus(),U instanceof HTMLButtonElement&&U.click())}}jr(()=>{k()});function B(){m.set(null),c.set(Ze())}function T(U){U.key==="Escape"&&!Lt(o.attribute)&&B()}function E(U){d=U,l(1,d)}const N=()=>{B()};return r.$$.update=()=>{r.$$.dirty&2048&&(t=f.url.searchParams.get("query")),r.$$.dirty&1025&&l(2,n=a.length&&!o.attribute),r.$$.dirty&512&&v()},[o,d,n,c,m,_,w,B,T,i,a,f,E,N]}class Pi extends fe{constructor(e){super(),ue(this,e,Ni,Ai,ce,{})}}const Gt=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,fn=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function un(r,e,l){const t=r.slice();return t[7]=e[l],t}const Fi=r=>({}),cn=r=>({});function Oi(r){let e,l,t,n,o,s;function i(_,d){return _[1]?Mi:Vi}let a=i(r),f=a(r);const u=[qi,Hi,Ri],c=[];function m(_,d){return _[2]?0:_[1]?1:2}return t=m(r),n=c[t]=u[t](r),{c(){e=P("h2"),f.c(),l=O(),n.c(),o=ee(),this.h()},l(_){e=F(_,"H2",{class:!0});var d=M(e);f.l(d),d.forEach(h),l=W(_),n.l(_),o=ee(),this.h()},h(){S(e,"class","text-lg font-medium")},m(_,d){I(_,e,d),f.m(e,null),I(_,l,d),c[t].m(_,d),I(_,o,d),s=!0},p(_,d){a===(a=i(_))&&f?f.p(_,d):(f.d(1),f=a(_),f&&(f.c(),f.m(e,null)));let g=t;t=m(_),t===g?c[t].p(_,d):(J(),$(c[g],1,1,()=>{c[g]=null}),X(),n=c[t],n?n.p(_,d):(n=c[t]=u[t](_),n.c()),p(n,1),n.m(o.parentNode,o))},i(_){s||(p(n),s=!0)},o(_){$(n),s=!1},d(_){_&&h(e),f.d(),_&&h(l),c[t].d(_),_&&h(o)}}}function Wi(r){let e,l;return e=new ol({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Vi(r){let e=H("workflows","workflow-empty-state-title")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Mi(r){let e=H("workflows","workflow-query-empty-state-title")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ri(r){let e,l,t=H("workflows","workflow-empty-state-description")+"",n,o,s,i,a,f,u;const c=r[5].cloud,m=$e(c,r,r[6],cn);s=new It({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Ui]},$$scope:{ctx:r}}});let _=r[3],d=[];for(let b=0;b<_.length;b+=1)d[b]=mn(un(r,_,b));const g=b=>$(d[b],1,1,()=>{d[b]=null});return{c(){m&&m.c(),e=O(),l=P("p"),n=z(t),o=O(),D(s.$$.fragment),i=z("."),a=O(),f=P("ul");for(let b=0;b{_[w]=null}),X(),s=_[o],s?s.p(g,b):(s=_[o]=m[o](g),s.c()),p(s,1),s.m(n,null)),(!c||b&2&&!hl(f.src,u=g[1]?fn:Gt))&&S(f,"src",u)},i(g){c||(p(s),c=!0)},o(g){$(s),c=!1},d(g){h(e),g&&h(l),g&&h(t),_[o].d()}}}function Ki(r,e,l){let t,n,o;j(r,ve,u=>l(4,n=u)),j(r,dr,u=>l(2,o=u));let{$$slots:s={},$$scope:i}=e,{updating:a=!1}=e;const f=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=u=>{"updating"in u&&l(0,a=u.updating),"$$scope"in u&&l(6,i=u.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[a,t,o,f,n,s,i]}class Yi extends fe{constructor(e){super(),ue(this,e,Ki,Qi,ce,{updating:0})}}const Gi=r=>({visibleItems:r&256}),_n=r=>({slot:"cloud",visibleItems:r[8].items});function dn(r,e,l){const t=r.slice();return t[23]=e[l],t}const Ji=r=>({visibleItems:r&256}),pn=r=>({visibleItems:r[8].items}),Xi=r=>({visibleItems:r&256}),gn=r=>({visibleItems:r[8].items}),Zi=r=>({visibleItems:r&256}),hn=r=>({visibleItems:r[8].items});function $n(r){let e,l;return e=new Bo({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xi(r){let e,l;return e=new Yi({props:{updating:r[0],$$slots:{cloud:[tf]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.updating=t[0]),n&4194560&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ef(r){let e,l,t,n,o,s,i,a,f,u,c;t=new ko({props:{label:r[1],parameter:Pt,value:r[6],options:_r}});let m=r[8].pageShortcuts,_=[];for(let g=0;g$(_[g],1,1,()=>{_[g]=null});return a=new Oe({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),a.$on("click",r[19]),u=new Oe({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),u.$on("click",r[20]),{c(){e=P("div"),l=P("div"),D(t.$$.fragment),n=O(),o=P("div");for(let g=0;g<_.length;g+=1)_[g].c();s=O(),i=P("div"),D(a.$$.fragment),f=O(),D(u.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);l=F(b,"DIV",{class:!0});var w=M(l);L(t.$$.fragment,w),w.forEach(h),n=W(b),o=F(b,"DIV",{class:!0});var v=M(o);for(let B=0;B<_.length;B+=1)_[B].l(v);v.forEach(h),s=W(b),i=F(b,"DIV",{class:!0});var k=M(i);L(a.$$.fragment,k),f=W(k),L(u.$$.fragment,k),k.forEach(h),b.forEach(h),this.h()},h(){S(l,"class","paginated-table-controls-start svelte-5xhosh"),S(o,"class","paginated-table-controls-center svelte-5xhosh"),S(i,"class","paginated-table-controls-end svelte-5xhosh"),S(e,"class","paginated-table-controls svelte-5xhosh")},m(g,b){I(g,e,b),A(e,l),C(t,l,null),A(e,n),A(e,o);for(let w=0;w<_.length;w+=1)_[w].m(o,null);A(e,s),A(e,i),C(a,i,null),A(i,f),C(u,i,null),c=!0},p(g,b){const w={};if(b&2&&(w.label=g[1]),b&64&&(w.value=g[6]),t.$set(w),b&1284){m=g[8].pageShortcuts;let B;for(B=0;B{i[c]=null}),X(),t=i[l],t?t.p(f,u):(t=i[l]=s[l](f),t.c()),p(t,1),t.m(n.parentNode,n))},i(f){o||(p(t),o=!0)},o(f){$(t),o=!1},d(f){i[l].d(f),f&&h(n)}}}function of(r){let e,l,t,n,o,s,i,a,f,u,c;const m=r[17].caption,_=$e(m,r,r[22],hn),d=r[17].headers,g=$e(d,r,r[22],gn);let b=r[0]&&$n();const w=r[17].default,v=$e(w,r,r[22],pn),k=[ef,xi],B=[];function T(E,N){return E[8].items.length?0:1}return f=T(r),u=B[f]=k[f](r),{c(){e=P("div"),l=P("table"),_&&_.c(),t=O(),n=P("thead"),g&&g.c(),o=O(),b&&b.c(),s=O(),i=P("tbody"),v&&v.c(),a=O(),u.c(),this.h()},l(E){e=F(E,"DIV",{class:!0,style:!0});var N=M(e);l=F(N,"TABLE",{class:!0});var U=M(l);_&&_.l(U),t=W(U),n=F(U,"THEAD",{class:!0});var q=M(n);g&&g.l(q),o=W(q),b&&b.l(q),q.forEach(h),s=W(U),i=F(U,"TBODY",{class:!0});var Y=M(i);v&&v.l(Y),Y.forEach(h),U.forEach(h),a=W(N),u.l(N),N.forEach(h),this.h()},h(){S(n,"class","paginated-table-header svelte-5xhosh"),S(i,"class","paginated-table-body svelte-5xhosh"),S(l,"class","paginated-table svelte-5xhosh"),S(e,"class","paginated-table-wrapper svelte-5xhosh"),$l(e,"max-height","calc(100vh - "+r[9]+"px)")},m(E,N){I(E,e,N),A(e,l),_&&_.m(l,null),A(l,t),A(l,n),g&&g.m(n,null),A(n,o),b&&b.m(n,null),A(l,s),A(l,i),v&&v.m(i,null),A(e,a),B[f].m(e,null),r[21](e),c=!0},p(E,[N]){_&&_.p&&(!c||N&4194560)&&be(_,m,E,E[22],c?we(m,E[22],N,Zi):ke(E[22]),hn),g&&g.p&&(!c||N&4194560)&&be(g,d,E,E[22],c?we(d,E[22],N,Xi):ke(E[22]),gn),E[0]?b?N&1&&p(b,1):(b=$n(),b.c(),p(b,1),b.m(n,null)):b&&(J(),$(b,1,1,()=>{b=null}),X()),v&&v.p&&(!c||N&4194560)&&be(v,w,E,E[22],c?we(w,E[22],N,Ji):ke(E[22]),pn);let U=f;f=T(E),f===U?B[f].p(E,N):(J(),$(B[U],1,1,()=>{B[U]=null}),X(),u=B[f],u?u.p(E,N):(u=B[f]=k[f](E),u.c()),p(u,1),u.m(e,null)),(!c||N&512)&&$l(e,"max-height","calc(100vh - "+E[9]+"px)")},i(E){c||(p(_,E),p(g,E),p(b),p(v,E),p(u),c=!0)},o(E){$(_,E),$(g,E),$(b),$(v,E),$(u),c=!1},d(E){E&&h(e),_&&_.d(E),g&&g.d(E),b&&b.d(),v&&v.d(E),B[f].d(),r[21](null)}}}function af(r,e,l){let t,n,o,s,i,a,f=K,u=()=>(f(),f=Xt(s,R=>l(8,a=R)),s),c;j(r,ve,R=>l(16,c=R)),r.$$.on_destroy.push(()=>f());let{$$slots:m={},$$scope:_}=e;var d,g;let{items:b}=e,{updating:w=!1}=e,{perPageLabel:v}=e,{pageButtonLabel:k}=e,{nextPageButtonLabel:B}=e,{previousPageButtonLabel:T}=e,E;const N=R=>{Ue({parameter:Nt,value:R,url:t})},U=R=>N(R),q=()=>N(a.currentPage-1),Y=()=>N(a.currentPage+1);function V(R){ie[R?"unshift":"push"](()=>{E=R,l(5,E)})}return r.$$set=R=>{"items"in R&&l(11,b=R.items),"updating"in R&&l(0,w=R.updating),"perPageLabel"in R&&l(1,v=R.perPageLabel),"pageButtonLabel"in R&&l(2,k=R.pageButtonLabel),"nextPageButtonLabel"in R&&l(3,B=R.nextPageButtonLabel),"previousPageButtonLabel"in R&&l(4,T=R.previousPageButtonLabel),"$$scope"in R&&l(22,_=R.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=c.url),r.$$.dirty&36864&&l(6,n=l(12,d=t.searchParams.get(Pt))!==null&&d!==void 0?d:String(Cl)),r.$$.dirty&40960&&l(14,o=l(13,g=t.searchParams.get(Nt))!==null&&g!==void 0?g:"1"),r.$$.dirty&18496&&u(l(7,s=bo(b,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(yl,10)?Ue({parameter:Pt,value:yl,url:t}):_r.includes(n)||Ue({parameter:Pt,value:Cl,url:t})),r.$$.dirty&49408&&(a.totalPages&&parseInt(o,10)>a.totalPages?Ue({parameter:Nt,value:a.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&Ue({parameter:Nt,value:"1",url:t})),r.$$.dirty&16576&&(o&&s.jumpToPage(o),n&&s.adjustPageSize(n)),r.$$.dirty&32&&l(9,i=E!=null&&E.offsetTop?(E==null?void 0:E.offsetTop)+32:0)},[w,v,k,B,T,E,n,s,a,i,N,b,d,g,o,t,c,m,U,q,Y,V,_]}class sf extends fe{constructor(e){super(),ue(this,e,af,of,ce,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const ff=2,rt=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],uf=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1}],Nr=r=>r.label!=="Parent Workflow ID",cf=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(Nr):r=rt}catch{r=rt}return r},tl=br("namespace-workflow-table-columns",{}),Kt=ct([So,ve,tl],([r,e,l])=>{const t={},n=(i,a)=>{var u;if(!((u=i==null?void 0:i[a])!=null&&u.length))return i[a]=[...cf()],i[a];const f=i[a].filter(Nr);return f.length!==i[a].length&&(i[a]=f,tl.set(i)),i[a]},o=(r==null?void 0:r.reduce((i,{namespaceInfo:{name:a}})=>({...i,[a]:n(l,a)}),t))??{},{namespace:s}=e.params;return o[s]?o:{...o,[s]:n(l,s)}});br("workflow-table-pinned-columns-width");const mf=r=>ct(Kt,e=>[...rt,...uf].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),_f=r=>ct([hr,Kt],([e,l])=>Object.keys(e).filter(t=>{var n;return!((n=l[r])!=null&&n.some(o=>o.label===t))}).map(t=>({label:t,pinned:!1}))),df=(r,e)=>{switch(r.type){case"WORKFLOW_COLUMN.ADD":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt;return{...e,[t]:[...n,{label:l,pinned:!1}]}}case"WORKFLOW_COLUMN.REMOVE":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt;return{...e,[t]:n.filter(({label:o})=>o!==l)}}case"WORKFLOW_COLUMN.PIN":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt,o=n.findIndex(({label:f})=>f===l),s=n[o].pinned;let i=-1;for(let f=n.length-1;f>=0;f--)if(n[f].pinned){i=f;break}const a=[...n];return a[o].pinned=!s,o>i&&!s?a.splice(i+1,0,a.splice(o,1)[0]):o=0;f--)if(o[f].pinned){i=f;break}const a=[...o];return t<=i&&!s?a[l].pinned=!0:t>i&&s&&(a[l].pinned=!1),a.splice(t,0,a.splice(l,1)[0]),{...e,[n]:a.map((f,u)=>u>ff-1?{...f,pinned:!1}:f)}}default:return e}},ul=r=>{tl.update(e=>df(r,e))},kn=(r,e)=>{ul({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},pf=(r,e)=>{ul({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},gf=(r,e,l)=>{ul({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function wn(r){let e,l,t,n,o;return l=new Oe({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new Oe({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(s){e=F(s,"DIV",{class:!0});var i=M(e);L(l.$$.fragment,i),t=W(i),L(n.$$.fragment,i),i.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(s,i){I(s,e,i),C(l,e,null),A(e,t),C(n,e,null),o=!0},p(s,i){const a={};i&32&&(a.disabled=s[5]===0),i&2&&(a["data-testid"]="orderable-list-item-"+s[1]+"-move-up-button"),i&128&&(a.label=s[7]),l.$set(a);const f={};i&96&&(f.disabled=s[5]===s[6]-1),i&2&&(f["data-testid"]="orderable-list-item-"+s[1]+"-move-down-button"),i&256&&(f.label=s[8]),n.$set(f)},i(s){o||(p(l.$$.fragment,s),p(n.$$.fragment,s),o=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),o=!1},d(s){s&&h(e),y(l),y(n)}}}function vn(r){let e,l,t,n;const o=[$f,hf],s=[];function i(a,f){return a[3]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function hf(r){let e,l;return e=new Oe({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $f(r){let e,l;return e=new Oe({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function In(r){let e,l,t,n;const o=[kf,bf],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function bf(r){let e,l;return e=new Oe({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function kf(r){let e,l;return e=new Oe({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wf(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d=!r[0]&&!r[4]&&wn(r),g=!r[0]&&!r[4]&&r[5]<=r[2]-1&&vn(r),b=!r[4]&&In(r);return{c(){e=P("li"),l=P("div"),d&&d.c(),t=O(),n=z(r[1]),o=O(),g&&g.c(),s=O(),b&&b.c(),f=O(),u=P("hr"),this.h()},l(w){e=F(w,"LI",{draggable:!0,class:!0,"data-testid":!0});var v=M(e);l=F(v,"DIV",{class:!0});var k=M(l);d&&d.l(k),t=W(k),n=Q(k,r[1]),o=W(k),g&&g.l(k),k.forEach(h),s=W(v),b&&b.l(v),v.forEach(h),f=W(w),u=F(w,"HR",{class:!0}),this.h()},h(){S(l,"class","flex flex-row items-center gap-2"),S(e,"draggable",i=!r[0]&&!r[4]),S(e,"class","orderable-item group svelte-1btkzzb"),S(e,"data-testid",a="orderable-list-item-"+r[1]),se(e,"readonly",r[4]),S(u,"class","svelte-1btkzzb")},m(w,v){I(w,e,v),A(e,l),d&&d.m(l,null),A(l,t),A(l,n),A(l,o),g&&g.m(l,null),A(e,s),b&&b.m(e,null),I(w,f,v),I(w,u,v),c=!0,m||(_=[pe(e,"dragstart",r[25]),pe(e,"drop",Et(r[26])),pe(e,"dragenter",_t(Et(r[16]))),pe(e,"dragleave",_t(Et(r[17]))),pe(e,"dragover",_t(Et(r[18])))],m=!0)},p(w,[v]){!w[0]&&!w[4]?d?(d.p(w,v),v&17&&p(d,1)):(d=wn(w),d.c(),p(d,1),d.m(l,t)):d&&(J(),$(d,1,1,()=>{d=null}),X()),(!c||v&2)&&oe(n,w[1]),!w[0]&&!w[4]&&w[5]<=w[2]-1?g?(g.p(w,v),v&53&&p(g,1)):(g=vn(w),g.c(),p(g,1),g.m(l,null)):g&&(J(),$(g,1,1,()=>{g=null}),X()),w[4]?b&&(J(),$(b,1,1,()=>{b=null}),X()):b?(b.p(w,v),v&16&&p(b,1)):(b=In(w),b.c(),p(b,1),b.m(e,null)),(!c||v&17&&i!==(i=!w[0]&&!w[4]))&&S(e,"draggable",i),(!c||v&2&&a!==(a="orderable-list-item-"+w[1]))&&S(e,"data-testid",a),(!c||v&16)&&se(e,"readonly",w[4])},i(w){c||(p(d),p(g),p(b),c=!0)},o(w){$(d),$(g),$(b),c=!1},d(w){w&&h(e),d&&d.d(),g&&g.d(),b&&b.d(),w&&h(f),w&&h(u),m=!1,bt(_)}}}function vf(r,e,l){const t=ut();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:s=void 0}=e,{pinned:i=!1}=e,{readonly:a=!1}=e,{index:f=0}=e,{totalItems:u=0}=e,{moveUpButtonLabel:c=""}=e,{moveDownButtonLabel:m=""}=e,{pinButtonLabel:_=""}=e,{unpinButtonLabel:d=""}=e,{addButtonLabel:g=""}=e,{removeButtonLabel:b=""}=e;const w=(G,de)=>{n||a||(G.dataTransfer.setData("text/plain",de.toString()),G.dataTransfer.dropEffect="move")},v=(G,de)=>{G.currentTarget.classList.remove("dragging-over");const ge=parseInt(G.dataTransfer.getData("text/plain"));t("moveItem",{from:ge,to:de})},k=G=>G.currentTarget.classList.add("dragging-over"),B=G=>G.currentTarget.classList.remove("dragging-over");function T(G){Ae.call(this,r,G)}const E=()=>t("moveItem",{from:f,to:f-1}),N=()=>t("moveItem",{from:f,to:f+1}),U=()=>t("pinItem"),q=()=>t("pinItem"),Y=()=>t("addItem"),V=()=>t("removeItem"),R=G=>w(G,f),Z=G=>v(G,f);return r.$$set=G=>{"static"in G&&l(0,n=G.static),"label"in G&&l(1,o=G.label),"maxPinnedItems"in G&&l(2,s=G.maxPinnedItems),"pinned"in G&&l(3,i=G.pinned),"readonly"in G&&l(4,a=G.readonly),"index"in G&&l(5,f=G.index),"totalItems"in G&&l(6,u=G.totalItems),"moveUpButtonLabel"in G&&l(7,c=G.moveUpButtonLabel),"moveDownButtonLabel"in G&&l(8,m=G.moveDownButtonLabel),"pinButtonLabel"in G&&l(9,_=G.pinButtonLabel),"unpinButtonLabel"in G&&l(10,d=G.unpinButtonLabel),"addButtonLabel"in G&&l(11,g=G.addButtonLabel),"removeButtonLabel"in G&&l(12,b=G.removeButtonLabel)},[n,o,s,i,a,f,u,c,m,_,d,g,b,t,w,v,k,B,T,E,N,U,q,Y,V,R,Z]}class mt extends fe{constructor(e){super(),ue(this,e,vf,wf,ce,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const If=r=>({}),En=r=>({});function Ef(r){let e;return{c(){e=z("Items")},l(l){e=Q(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function Tf(r){let e,l;return e=new mt({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Df(r){let e,l,t,n,o;const s=r[1].heading,i=$e(s,r,r[0],En),a=i||Ef(),f=r[1].default,u=$e(f,r,r[0],null),c=u||Tf();return{c(){e=P("div"),l=P("h4"),a&&a.c(),t=O(),n=P("ol"),c&&c.c(),this.h()},l(m){e=F(m,"DIV",{class:!0});var _=M(e);l=F(_,"H4",{class:!0});var d=M(l);a&&a.l(d),d.forEach(h),t=W(_),n=F(_,"OL",{class:!0});var g=M(n);c&&c.l(g),g.forEach(h),_.forEach(h),this.h()},h(){S(l,"class","orderable-heading svelte-cheqnz"),S(n,"class","orderable-list svelte-cheqnz"),S(e,"class","orderable-section svelte-cheqnz")},m(m,_){I(m,e,_),A(e,l),a&&a.m(l,null),A(e,t),A(e,n),c&&c.m(n,null),o=!0},p(m,[_]){i&&i.p&&(!o||_&1)&&be(i,s,m,m[0],o?we(s,m[0],_,If):ke(m[0]),En),u&&u.p&&(!o||_&1)&&be(u,f,m,m[0],o?we(f,m[0],_,null):ke(m[0]),null)},i(m){o||(p(a,m),p(c,m),o=!0)},o(m){$(a,m),$(c,m),o=!1},d(m){m&&h(e),a&&a.d(m),c&&c.d(m)}}}function Lf(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let Jt=class extends fe{constructor(e){super(),ue(this,e,Lf,Df,ce,{})}};function Tn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function Dn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function Ln(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function Cn(r){let e,l;return e=new mt({props:{readonly:!0,label:"No headings in view"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new mt({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:H("workflows","add-column-label",{column:e[12]}),removeButtonLabel:H("workflows","remove-column-label",{column:e[12]}),moveUpButtonLabel:H("workflows","move-column-up-label",{column:e[12]}),moveDownButtonLabel:H("workflows","move-column-down-label",{column:e[12]}),pinButtonLabel:H("workflows","pin-column-label",{column:e[12]}),unpinButtonLabel:H("workflows","unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=ee(),D(t.$$.fragment),this.h()},l(s){l=ee(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,i){I(s,l,i),C(t,s,i),n=!0},p(s,i){e=s;const a={};i&8&&(a.index=e[18]),i&8&&(a.label=e[12]),i&8&&(a.totalItems=e[3].length),i&8&&(a.addButtonLabel=H("workflows","add-column-label",{column:e[12]})),i&8&&(a.removeButtonLabel=H("workflows","remove-column-label",{column:e[12]})),i&8&&(a.moveUpButtonLabel=H("workflows","move-column-up-label",{column:e[12]})),i&8&&(a.moveDownButtonLabel=H("workflows","move-column-down-label",{column:e[12]})),i&8&&(a.pinButtonLabel=H("workflows","pin-column-label",{column:e[12]})),i&8&&(a.unpinButtonLabel=H("workflows","unpin-column-label",{column:e[12]})),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){$(t.$$.fragment,s),n=!1},d(s){s&&h(l),y(t,s)}}}function Cf(r){let e=[],l=new Map,t,n,o=r[3];const s=a=>a[12];for(let a=0;a{i=null}),X()):(i=Cn(),i.c(),p(i,1),i.m(t.parentNode,t)))},i(a){if(!n){for(let f=0;f$(n[i],1,1,()=>{n[i]=null});let s=null;return t.length||(s=Bn()),{c(){for(let i=0;i{s=null}),X()):(s=Bn(),s.c(),p(s,1),s.m(e.parentNode,e))}},i(i){if(!l){for(let a=0;a$(n[i],1,1,()=>{n[i]=null});let s=null;return t.length||(s=An()),{c(){for(let i=0;i{s=null}),X()):(s=An(),s.c(),p(s,1),s.m(e.parentNode,e))}},i(i){if(!l){for(let a=0;a(a(),a=Xt(n,k=>l(4,i=k)),n),u,c=K,m=()=>(c(),c=Xt(o,k=>l(5,u=k)),o);j(r,Kt,k=>l(7,s=k)),r.$$.on_destroy.push(()=>a()),r.$$.on_destroy.push(()=>c());var _;let{namespace:d}=e;const g=k=>gf(k.detail.from,k.detail.to,d),b=k=>pf(k,d),w=k=>kn(k,d),v=k=>kn(k,d);return r.$$set=k=>{"namespace"in k&&l(0,d=k.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,_=s==null?void 0:s[d])!==null&&_!==void 0?_:[]),r.$$.dirty&1&&f(l(2,n=mf(d))),r.$$.dirty&1&&m(l(1,o=_f(d)))},[d,o,n,t,i,u,_,s,g,b,w,v]}class Of extends fe{constructor(e){super(),ue(this,e,Ff,Pf,ce,{namespace:0})}}const Pn=(r,e=2)=>{if(!+r)return"0 Bytes";const l=1024,t=e<0?0:e,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(r)/Math.log(l));return`${parseFloat((r/Math.pow(l,o)).toFixed(t))} ${n[o]}`},Rt={WorkflowId:"Workflow ID",WorkflowType:"Type",RunId:"Run ID"},Ye={WorkflowId:"workflow-id",WorkflowType:"workflow-type",RunId:"run-id"},Wf={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function Vf(r){let e;return{c(){e=z(r[2])},l(l){e=Q(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&oe(e,l[2])},d(l){l&&h(e)}}}function Mf(r){let e,l,t,n;return e=new It({props:{href:r[3],$$slots:{default:[Vf]},$$scope:{ctx:r}}}),t=new ao({props:{copyIconTitle:H("copy-icon-title"),copySuccessIconTitle:H("copy-success-icon-title"),filterIconTitle:H("filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,[s]){const i={};s&8&&(i.href=o[3]),s&2052&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&2&&(a.show=o[1]),s&4&&(a.content=o[2]),s&21&&(a.filtered=o[4].some(o[9])),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function Rf(r,e,l){let t,n,o,s,i,a;j(r,Xe,d=>l(10,s=d)),j(r,he,d=>l(4,i=d)),j(r,ve,d=>l(8,a=d));let{attribute:f}=e,{workflow:u}=e,{filterOrCopyButtonsVisible:c=!1}=e;const m=()=>{const d=i.find(b=>b.attribute===f),g=()=>i.filter(b=>b.attribute!==f);if(d)te(he,i=[...g()],i);else{const b={attribute:f,value:t,conditional:"=",operator:"",parenthesis:""};te(he,i=[...g(),b],i)}Qe(a.url,i,s)},_=d=>d.attribute===f&&d.value===t;return r.$$set=d=>{"attribute"in d&&l(0,f=d.attribute),"workflow"in d&&l(6,u=d.workflow),"filterOrCopyButtonsVisible"in d&&l(1,c=d.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=u[Wf[f]]),r.$$.dirty&256&&l(7,n=a.params.namespace),r.$$.dirty&192&&l(3,o=No({namespace:n,workflow:u.id,run:u.runId}))},[f,c,t,o,i,m,u,n,a,_]}class cl extends fe{constructor(e){super(),ue(this,e,Rf,Mf,ce,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function Hf(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[9]=l,e}function qf(r){let e,l,t,n,o;const s=[eu,xf,Zf,Xf,Jf,Gf,Yf,Kf,Qf,zf,jf],i=[];function a(u,c){return c&5&&(l=null),u[2]==="Status"?0:u[2]==="End"?1:u[2]==="Start"?2:u[2]==="Task Queue"?3:u[2]==="Parent Namespace"?4:u[2]==="History Size"?5:u[2]==="State Transitions"?6:u[2]==="Execution Time"?7:u[2]==="Execution Duration"?8:u[2]==="History Length"?9:(l==null&&(l=!!(Eo(u[2])&&To(u[0],u[2]))),l?10:-1)}function f(u,c){return c===10?Hf(u):u}return~(t=a(r,-1))&&(n=i[t]=s[t](f(r,t))),{c(){e=P("td"),n&&n.c(),this.h()},l(u){e=F(u,"TD",{class:!0,"data-testid":!0});var c=M(e);n&&n.l(c),c.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-body-cell svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~t&&i[t].m(e,null),o=!0},p(u,c){let m=t;t=a(u,c),t===m?~t&&i[t].p(f(u,t),c):(n&&(J(),$(i[m],1,1,()=>{i[m]=null}),X()),~t?(n=i[t],n?n.p(f(u,t),c):(n=i[t]=s[t](f(u,t)),n.c()),p(n,1),n.m(e,null)):n=null)},i(u){o||(p(n),o=!0)},o(u){$(n),o=!1},d(u){u&&h(e),~t&&i[t].d()}}}function Uf(r){let e,l,t,n,o,s;const i=[su,au,ou],a=[];function f(u,c){return u[2]==="Type"?0:u[2]==="Workflow ID"?1:u[2]==="Run ID"?2:-1}return~(l=f(r))&&(t=a[l]=i[l](r)),{c(){e=P("td"),t&&t.c(),this.h()},l(u){e=F(u,"TD",{class:!0,"data-testid":!0});var c=M(e);t&&t.l(c),c.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~l&&a[l].m(e,null),n=!0,o||(s=[pe(e,"mouseover",r[6]),pe(e,"focus",r[6]),pe(e,"mouseleave",r[7]),pe(e,"blur",r[7])],o=!0)},p(u,c){let m=l;l=f(u),l===m?~l&&a[l].p(u,c):(t&&(J(),$(a[m],1,1,()=>{a[m]=null}),X()),~l?(t=a[l],t?t.p(u,c):(t=a[l]=i[l](u),t.c()),p(t,1),t.m(e,null)):t=null)},i(u){n||(p(t),n=!0)},o(u){$(t),n=!1},d(u){u&&h(e),~l&&a[l].d(),o=!1,bt(s)}}}function jf(r){let e,l,t,n;const o=[nu,lu,tu],s=[];function i(a,f){return a[5][a[2]]==="Datetime"&&typeof a[9]=="string"?0:a[5][a[2]]==="Bool"?1:2}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function zf(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].historyEvents,10)>0?t[0].historyEvents:"")+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Qf(r){let e=Dl({start:r[0].startTime,end:r[0].endTime})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Dl({start:t[0].startTime,end:t[0].endTime})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Kf(r){let e=Fe(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].executionTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Yf(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].stateTransitionCount,10)>0?t[0].stateTransitionCount:"")+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Gf(r){let e=Pn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Pn(parseInt(t[0].historySizeBytes,10))+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Jf(r){let e=r[0].parentNamespaceId+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].parentNamespaceId+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Xf(r){let e=r[0].taskQueue+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Zf(r){let e=Fe(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].startTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function xf(r){let e=Fe(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].endTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function eu(r){let e,l;return e=new jt({props:{status:r[0].status}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tu(r){let e=r[9]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[9]+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function lu(r){let e,l;return e=new Ao({props:{$$slots:{default:[ru]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1029&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function nu(r){let e=Fe(r[9],r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Fe(t[9],t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function ru(r){let e=r[9]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[9]+"")&&oe(l,e)},d(t){t&&h(l)}}}function ou(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function au(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function su(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function iu(r){let e,l,t,n;const o=[Uf,qf],s=[];function i(a,f){return a[2]==="Run ID"||a[2]==="Workflow ID"||a[2]==="Type"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function fu(r,e,l){let t,n,o,s;j(r,Ft,m=>l(3,n=m)),j(r,cr,m=>l(4,o=m)),j(r,hr,m=>l(5,s=m));let{column:i}=e,{workflow:a}=e,f=!1;const u=()=>l(1,f=!0),c=()=>l(1,f=!1);return r.$$set=m=>{"column"in m&&l(8,i=m.column),"workflow"in m&&l(0,a=m.workflow)},r.$$.update=()=>{r.$$.dirty&256&&l(2,{label:t}=i,t)},[a,f,t,n,o,s,u,c,i]}class uu extends fe{constructor(e){super(),ue(this,e,fu,iu,ce,{column:8,workflow:0})}}function cu(r){let e=Rt[r[0]]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Rt[t[0]]+"")&&oe(l,e)},d(t){t&&h(l)}}}function mu(r){let e,l;return e=new ye({props:{name:"filter",slot:"trailing"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _u(r){let e,l,t;function n(s){r[6](s)}let o={icon:"search",type:"search",label:H("search"),labelHidden:!0,id:Ye[r[0]],placeholder:Rt[r[0]],class:"flex items-center p-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0,clearButtonLabel:H("clear-input-button-label")};return r[1]!==void 0&&(o.value=r[1]),e=new Ne({props:o}),ie.push(()=>me(e,"value",n)),e.$on("input",r[2]),e.$on("clear",r[4]),{c(){D(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,i){C(e,s,i),t=!0},p(s,i){const a={};i&1&&(a.id=Ye[s[0]]),i&1&&(a.placeholder=Rt[s[0]]),!l&&i&2&&(l=!0,a.value=s[1],_e(()=>l=!1)),e.$set(a)},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){y(e,s)}}}function du(r){let e,l,t,n;return e=new lt({props:{"data-testid":Ye[r[0]]+"-filter-button",variant:"table-header",controls:Ye[r[0]]+"-filter-menu",$$slots:{trailing:[mu],default:[cu]},$$scope:{ctx:r}}}),e.$on("click",r[3]),t=new nt({props:{keepOpen:!0,id:Ye[r[0]]+"-filter-menu",class:"w-[500px]",$$slots:{default:[_u]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s&1&&(i["data-testid"]=Ye[o[0]]+"-filter-button"),s&1&&(i.controls=Ye[o[0]]+"-filter-menu"),s&1025&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&1&&(a.id=Ye[o[0]]+"-filter-menu"),s&1027&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function pu(r){let e,l;return e=new tt({props:{$$slots:{default:[du]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,[n]){const o={};n&1027&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gu(r,e,l){let t,n,o;j(r,he,_=>l(5,n=_)),j(r,ve,_=>l(8,o=_));let s="",{attribute:i}=e;const a=()=>n.filter(_=>_.attribute!==i),f=_=>{const{value:d}=_.target;if(d){const g={attribute:i,value:d,conditional:"=",operator:"",parenthesis:""};te(he,n=[...a(),g],n)}else te(he,n=[...a()],n);Qe(o.url,n)};function u(_){const{open:d}=_.detail;d&&(t!=null&&t.value)?l(1,s=t.value):d&&!t&&s&&l(1,s="")}function c(){te(he,n=[...a()],n),Qe(o.url,n)}function m(_){s=_,l(1,s)}return r.$$set=_=>{"attribute"in _&&l(0,i=_.attribute)},r.$$.update=()=>{r.$$.dirty&33&&(t=n.find(_=>_.attribute===i))},[i,s,f,u,c,n,m]}class ml extends fe{constructor(e){super(),ue(this,e,gu,pu,ce,{attribute:0})}}function Fn(r,e,l){const t=r.slice();return t[7]=e[l],t}function hu(r){let e=H("status")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function $u(r){let e,l;return e=new ye({props:{name:"filter",slot:"trailing"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function bu(r){let e,l;return e=new jt({props:{status:r[7]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ku(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"all-statuses"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wu(r){let e,l,t,n;const o=[ku,bu],s=[];function i(a,f){return a[7]==="All"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=O()},l(a){l.l(a),t=W(a)},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){l.p(a,f)},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function vu(r){let e,l;function t(...o){return r[3](r[7],...o)}function n(){return r[4](r[7])}return e=new Qt({props:{slot:"leading",label:r[7],labelHidden:!0,tabindex:-1,checked:r[0].some(t)||!r[0].length&&r[7]==="All"}}),e.$on("click",n),{c(){D(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,s){C(e,o,s),l=!0},p(o,s){r=o;const i={};s&1&&(i.checked=r[0].some(t)||!r[0].length&&r[7]==="All"),e.$set(i)},i(o){l||(p(e.$$.fragment,o),l=!0)},o(o){$(e.$$.fragment,o),l=!1},d(o){y(e,o)}}}function On(r){let e,l;function t(){return r[5](r[7])}return e=new Ie({props:{$$slots:{leading:[vu],default:[wu]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1025&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Iu(r){let e,l,t=Mt,n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{const t=l===0?"(":l===r.length-1?")":"",n=l===r.length-1?"":"OR";return{...e,operator:n,parenthesis:t}})}function Du(r,e,l){let t,n,o;j(r,he,u=>l(2,n=u)),j(r,ve,u=>l(6,o=u));const s=u=>{if(u==="All")te(he,n=n.filter(c=>c.attribute!=="ExecutionStatus"),n);else if(t.find(c=>c.value===u)){const c=n.filter(m=>m.attribute!=="ExecutionStatus");te(he,n=[...c,...Wn(t.filter(m=>m.value!==u))],n)}else if(!t.length)te(he,n=[...n,ll(u)],n);else{const c=n.filter(m=>m.attribute!=="ExecutionStatus");te(he,n=[...c,...Wn([...t,ll(u)])],n)}Qe(o.url,n)},i=(u,c)=>c.value===u,a=u=>s(u),f=u=>s(u);return r.$$.update=()=>{r.$$.dirty&4&&l(0,t=n.filter(u=>u.attribute==="ExecutionStatus"))},[t,s,n,i,a,f]}class Lu extends fe{constructor(e){super(),ue(this,e,Du,Tu,ce,{})}}function Cu(r){let e;return{c(){e=z(r[0])},l(l){e=Q(l,r[0])},m(l,t){I(l,e,t)},p(l,t){t&1&&oe(e,l[0])},d(l){l&&h(e)}}}function yu(r){let e;return{c(){e=z(r[0])},l(l){e=Q(l,r[0])},m(l,t){I(l,e,t)},p(l,t){t&1&&oe(e,l[0])},i:K,o:K,d(l){l&&h(e)}}}function Bu(r){let e,l;return e=new ml({props:{attribute:"WorkflowType"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Su(r){let e,l;return e=new ml({props:{attribute:"RunId"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Au(r){let e,l;return e=new ml({props:{attribute:"WorkflowId"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Nu(r){let e,l;return e=new Lu({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pu(r){let e,l,t,n;const o=[Nu,Au,Su,Bu,yu],s=[];function i(a,f){return a[0]==="Status"?0:a[0]==="Workflow ID"?1:a[0]==="Run ID"?2:a[0]==="Type"?3:4}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Fu(r){let e,l,t,n;return l=new sl({props:{$$slots:{fallback:[Pu],default:[Cu]},$$scope:{ctx:r}}}),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(o){e=F(o,"TH",{class:!0,"data-testid":!0});var s=M(e);L(l.$$.fragment,s),s.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),S(e,"data-testid",t="workflows-summary-table-header-cell-"+r[0])},m(o,s){I(o,e,s),C(l,e,null),n=!0},p(o,[s]){const i={};s&5&&(i.$$scope={dirty:s,ctx:o}),l.$set(i),(!n||s&1&&t!==(t="workflows-summary-table-header-cell-"+o[0]))&&S(e,"data-testid",t)},i(o){n||(p(l.$$.fragment,o),n=!0)},o(o){$(l.$$.fragment,o),n=!1},d(o){o&&h(e),y(l)}}}function Ou(r,e,l){let t,{column:n}=e;return r.$$set=o=>{"column"in o&&l(1,n=o.column)},r.$$.update=()=>{r.$$.dirty&2&&l(0,{label:t}=n,t)},[t,n]}class Wu extends fe{constructor(e){super(),ue(this,e,Ou,Fu,ce,{column:1})}}const Vu=["workflowCancelDisabled","workflowTerminateDisabled"],Mu=r=>r.disableWriteActions||r.batchActionsDisabled?!1:Vu.some(e=>!r[e]),Pr=ct([Oo,wt,Fo,Kr],([r,e,l,t])=>(t?!0:Po(r,"1.18.0"))&&e&&Mu(l));function Ru(r){let e,l,t,n,o;const s=r[5].default,i=$e(s,r,r[4],null);return{c(){e=P("button"),i&&i.c(),this.h()},l(a){e=F(a,"BUTTON",{"data-testid":!0,class:!0});var f=M(e);i&&i.l(f),f.forEach(h),this.h()},h(){S(e,"data-testid",r[0]),e.disabled=r[1],S(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(a,f){I(a,e,f),i&&i.m(e,null),t=!0,n||(o=pe(e,"click",r[6]),n=!0)},p(a,[f]){i&&i.p&&(!t||f&16)&&be(i,s,a,a[4],t?we(s,a[4],f,null):ke(a[4]),null),(!t||f&1)&&S(e,"data-testid",a[0]),(!t||f&2)&&(e.disabled=a[1]),(!t||f&12&&l!==(l="bulk-action-button "+a[2]+" "+a[3].class+" svelte-19w6g7u"))&&S(e,"class",l)},i(a){t||(p(i,a),t=!0)},o(a){$(i,a),t=!1},d(a){a&&h(e),i&&i.d(a),n=!1,o()}}}function Hu(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:s=!1}=e,{variant:i="primary"}=e;function a(f){Ae.call(this,r,f)}return r.$$set=f=>{l(3,e=it(it({},e),ht(f))),"testId"in f&&l(0,o=f.testId),"disabled"in f&&l(1,s=f.disabled),"variant"in f&&l(2,i=f.variant),"$$scope"in f&&l(4,n=f.$$scope)},e=ht(e),[o,s,i,e,n,t,a]}class Fr extends fe{constructor(e){super(),ue(this,e,Hu,Ru,ce,{testId:0,disabled:1,variant:2})}}function qu(r){let e,l,t,n,o,s,i,a,f,u,c;return l=new Pe({props:{namespace:"workflows",key:"n-selected",count:r[2]}}),i=new Pe({props:{namespace:"workflows",key:"select-all",count:r[1]}}),{c(){e=P("span"),D(l.$$.fragment),t=O(),n=P("span"),o=z("(or "),s=P("button"),D(i.$$.fragment),a=z(")"),this.h()},l(m){e=F(m,"SPAN",{class:!0});var _=M(e);L(l.$$.fragment,_),_.forEach(h),t=W(m),n=F(m,"SPAN",{});var d=M(n);o=Q(d,"(or "),s=F(d,"BUTTON",{"data-testid":!0,class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),a=Q(d,")"),d.forEach(h),this.h()},h(){S(e,"class","font-semibold"),S(s,"data-testid","select-all-workflows"),S(s,"class","cursor-pointer underline")},m(m,_){I(m,e,_),C(l,e,null),I(m,t,_),I(m,n,_),A(n,o),A(n,s),C(i,s,null),A(n,a),f=!0,u||(c=pe(s,"click",r[15]),u=!0)},p(m,_){const d={};_&4&&(d.count=m[2]),l.$set(d);const g={};_&2&&(g.count=m[1]),i.$set(g)},i(m){f||(p(l.$$.fragment,m),p(i.$$.fragment,m),f=!0)},o(m){$(l.$$.fragment,m),$(i.$$.fragment,m),f=!1},d(m){m&&h(e),y(l),m&&h(t),m&&h(n),y(i),u=!1,c()}}}function Uu(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:"all-selected",count:r[1]}}),{c(){e=P("span"),D(l.$$.fragment),this.h()},l(n){e=F(n,"SPAN",{class:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","font-semibold")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&2&&(s.count=n[1]),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function Vn(r){let e,l;return e=new Fr({props:{testId:"bulk-cancel-button",disabled:r[3]||!r[7].length,$$slots:{default:[ju]},$$scope:{ctx:r}}}),e.$on("click",Lc),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&136&&(o.disabled=t[3]||!t[7].length),n&65536&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ju(r){let e=H("workflows","request-cancellation")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Mn(r){let e,l;return e=new Fr({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[3],$$slots:{default:[zu]},$$scope:{ctx:r}}}),e.$on("click",Cc),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.disabled=t[3]),n&65536&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zu(r){let e=H("workflows","terminate")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Qu(r){let e,l,t,n,o,s;const i=[Uu,qu],a=[];function f(m,_){return m[6]?0:1}e=f(r),l=a[e]=i[e](r);let u=r[4]&&Vn(r),c=r[5]&&Mn(r);return{c(){l.c(),t=O(),n=P("div"),u&&u.c(),o=O(),c&&c.c(),this.h()},l(m){l.l(m),t=W(m),n=F(m,"DIV",{class:!0});var _=M(n);u&&u.l(_),o=W(_),c&&c.l(_),_.forEach(h),this.h()},h(){S(n,"class","ml-4 inline-flex gap-2")},m(m,_){a[e].m(m,_),I(m,t,_),I(m,n,_),u&&u.m(n,null),A(n,o),c&&c.m(n,null),s=!0},p(m,[_]){let d=e;e=f(m),e===d?a[e].p(m,_):(J(),$(a[d],1,1,()=>{a[d]=null}),X(),l=a[e],l?l.p(m,_):(l=a[e]=i[e](m),l.c()),p(l,1),l.m(t.parentNode,t)),m[4]?u?(u.p(m,_),_&16&&p(u,1)):(u=Vn(m),u.c(),p(u,1),u.m(n,o)):u&&(J(),$(u,1,1,()=>{u=null}),X()),m[5]?c?(c.p(m,_),_&32&&p(c,1)):(c=Mn(m),c.c(),p(c,1),c.m(n,null)):c&&(J(),$(c,1,1,()=>{c=null}),X())},i(m){s||(p(l),p(u),p(c),s=!0)},o(m){$(l),$(u),$(c),s=!1},d(m){a[e].d(m),m&&h(t),m&&h(n),u&&u.d(),c&&c.d()}}}function Ku(r,e,l){let t,n,o,s,i,a,f,u,c,m;j(r,ve,k=>l(10,s=k)),j(r,We,k=>l(12,a=k)),j(r,pr,k=>l(13,f=k)),j(r,pt,k=>l(14,u=k)),j(r,et,k=>l(6,c=k)),j(r,Or,k=>l(7,m=k));var _;let{workflows:d}=e,g=Wo();j(r,g,k=>l(11,i=k));let b,w;const v=()=>yc(d);return r.$$set=k=>{"workflows"in k&&l(0,d=k.workflows)},r.$$.update=()=>{r.$$.dirty&24576&&l(1,b=u?f.count:f.totalCount),r.$$.dirty&4608&&l(2,w=l(9,_=a==null?void 0:a.length)!==null&&_!==void 0?_:0),r.$$.dirty&1024&&l(5,t=xr(s.data.settings)),r.$$.dirty&1024&&l(4,n=eo(s.data.settings)),r.$$.dirty&3072&&l(3,o=i.namespaceWriteDisabled(s.params.namespace))},[d,b,w,o,n,t,c,m,g,_,s,i,a,f,u,v]}class Yu extends fe{constructor(e){super(),ue(this,e,Ku,Qu,ce,{workflows:0})}}function Rn(r){let e,l,t,n;function o(i){r[13](i)}let s={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",onDark:!0,hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(s.checked=r[7]),l=new Qt({props:s}),ie.push(()=>me(l,"checked",o)),l.$on("change",r[9]),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(i){e=F(i,"TH",{class:!0});var a=M(e);L(l.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","batch-actions-checkbox-table-cell svelte-d401z4")},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){const f={};a&16&&(f.label=i[4]),a&32&&(f.indeterminate=i[5]),!t&&a&128&&(t=!0,f.checked=i[7],_e(()=>t=!1)),l.$set(f)},i(i){n||(p(l.$$.fragment,i),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function Gu(r){let e;const l=r[12].default,t=$e(l,r,r[11],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2048)&&be(t,l,n,n[11],e?we(l,n[11],o,null):ke(n[11]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ju(r){let e,l,t;return l=new Yu({props:{workflows:r[0]}}),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(n){e=F(n,"TH",{class:!0,colspan:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","batch-actions-table-cell svelte-d401z4"),S(e,"colspan",r[3])},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&1&&(s.workflows=n[0]),l.$set(s),(!t||o&8)&&S(e,"colspan",n[3])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function Xu(r){let e,l,t,n,o,s,i,a,f=!r[1]&&r[6]&&Rn(r);const u=[Ju,Gu],c=[];function m(_,d){return _[6]&&_[8]?0:1}return t=m(r),n=c[t]=u[t](r),i=new Oe({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:H("workflows","open-configure-workflows")}}),i.$on("click",function(){ar(r[2])&&r[2].apply(this,arguments)}),{c(){e=P("tr"),f&&f.c(),l=O(),n.c(),o=O(),s=P("th"),D(i.$$.fragment),this.h()},l(_){e=F(_,"TR",{});var d=M(e);f&&f.l(d),l=W(d),n.l(d),o=W(d),s=F(d,"TH",{class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),d.forEach(h),this.h()},h(){S(s,"class","configuration-button-table-cell svelte-d401z4")},m(_,d){I(_,e,d),f&&f.m(e,null),A(e,l),c[t].m(e,null),A(e,o),A(e,s),C(i,s,null),a=!0},p(_,[d]){r=_,!r[1]&&r[6]?f?(f.p(r,d),d&66&&p(f,1)):(f=Rn(r),f.c(),p(f,1),f.m(e,l)):f&&(J(),$(f,1,1,()=>{f=null}),X());let g=t;t=m(r),t===g?c[t].p(r,d):(J(),$(c[g],1,1,()=>{c[g]=null}),X(),n=c[t],n?n.p(r,d):(n=c[t]=u[t](r),n.c()),p(n,1),n.m(e,o))},i(_){a||(p(f),p(n),p(i.$$.fragment,_),a=!0)},o(_){$(f),$(n),$(i.$$.fragment,_),a=!1},d(_){_&&h(e),f&&f.d(),c[t].d(),y(i)}}}function Zu(r,e,l){let t,n,o,s,i,a;j(r,We,w=>l(10,o=w)),j(r,Pr,w=>l(6,s=w)),j(r,Ct,w=>l(7,i=w)),j(r,Tc,w=>l(8,a=w));let{$$slots:f={},$$scope:u}=e,{workflows:c}=e,{empty:m}=e,{onClickConfigure:_=K}=e,{columnsCount:d}=e;const g=w=>{const{checked:v}=w.detail;Bc(v,c)};function b(w){i=w,Ct.set(i)}return r.$$set=w=>{"workflows"in w&&l(0,c=w.workflows),"empty"in w&&l(1,m=w.empty),"onClickConfigure"in w&&l(2,_=w.onClickConfigure),"columnsCount"in w&&l(3,d=w.columnsCount),"$$scope"in w&&l(11,u=w.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.lengthme(l,"group",o)),{c(){e=P("td"),D(l.$$.fragment)},l(i){e=F(i,"TD",{});var a=M(e);L(l.$$.fragment,a),a.forEach(h)},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){const f={};a&4&&(f.label=i[2]),a&1&&(f.value=i[0]),a&32&&(f.disabled=i[5]),a&4&&(f["aria-label"]=i[2]),!t&&a&16&&(t=!0,f.group=i[4],_e(()=>t=!1)),l.$set(f)},i(i){n||(p(l.$$.fragment,i),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function ec(r){let e,l,t,n,o,s=!r[1]&&r[3]&&Hn(r);const i=r[7].default,a=$e(i,r,r[6],null);return{c(){e=P("tr"),s&&s.c(),l=O(),a&&a.c(),t=O(),n=P("td"),this.h()},l(f){e=F(f,"TR",{"data-testid":!0});var u=M(e);s&&s.l(u),l=W(u),a&&a.l(u),t=W(u),n=F(u,"TD",{}),M(n).forEach(h),u.forEach(h),this.h()},h(){S(e,"data-testid","workflows-summary-configurable-table-row"),se(e,"empty",r[1])},m(f,u){I(f,e,u),s&&s.m(e,null),A(e,l),a&&a.m(e,null),A(e,t),A(e,n),o=!0},p(f,[u]){!f[1]&&f[3]?s?(s.p(f,u),u&10&&p(s,1)):(s=Hn(f),s.c(),p(s,1),s.m(e,l)):s&&(J(),$(s,1,1,()=>{s=null}),X()),a&&a.p&&(!o||u&64)&&be(a,i,f,f[6],o?we(i,f[6],u,null):ke(f[6]),null),(!o||u&2)&&se(e,"empty",f[1])},i(f){o||(p(s),p(a,f),o=!0)},o(f){$(s),$(a,f),o=!1},d(f){f&&h(e),s&&s.d(),a&&a.d(f)}}}function tc(r,e,l){let t,n,o,s;j(r,Pr,m=>l(3,n=m)),j(r,We,m=>l(4,o=m)),j(r,et,m=>l(5,s=m));let{$$slots:i={},$$scope:a}=e,{workflow:f=void 0}=e,{empty:u=!1}=e;function c(m){o=m,We.set(o)}return r.$$set=m=>{"workflow"in m&&l(0,f=m.workflow),"empty"in m&&l(1,u=m.empty),"$$scope"in m&&l(6,a=m.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=H("workflows","select-workflow",{workflow:f==null?void 0:f.id}))},[f,u,t,n,o,s,a,i,c]}class lc extends fe{constructor(e){super(),ue(this,e,tc,ec,ce,{workflow:0,empty:1})}}function qn(r,e,l){const t=r.slice();return t[18]=e[l],t}function Un(r,e,l){const t=r.slice();return t[15]=e[l],t}function jn(r,e,l){const t=r.slice();return t[15]=e[l],t}const nc=r=>({}),zn=r=>({slot:"cloud"});function Qn(r){let e,l;return e=new uu({props:{workflow:r[18],column:r[15]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&16384&&(o.workflow=t[18]),n&16&&(o.column=t[15]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rc(r){let e,l,t=r[4],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s({}),Sl=r=>({});function jo(r){let e;const l=r[2].fallback,t=$e(l,r,r[1],Sl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&be(t,l,n,n[1],e?we(l,n[1],o,Uo):ke(n[1]),Sl)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function zo(r){let e;const l=r[2].default,t=$e(l,r,r[1],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2)&&be(t,l,n,n[1],e?we(l,n[1],o,null):ke(n[1]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Qo(r){let e,l,t,n;const o=[zo,jo],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Ko(r,e,l){let t;j(r,wt,s=>l(0,t=s));let{$$slots:n={},$$scope:o}=e;return r.$$set=s=>{"$$scope"in s&&l(1,o=s.$$scope)},[t,o,n]}class Yo extends fe{constructor(e){super(),ue(this,e,Ko,Qo,ce,{})}}function Go(r){let e;const l=r[6].default,t=$e(l,r,r[5],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&32)&&be(t,l,n,n[5],e?we(l,n[5],o,null):ke(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Jo(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&oe(e,l[1])},i:K,o:K,d(l){l&&h(e)}}}function Xo(r){let e,l,t,n;const o=[Jo,Go],s=[];function i(a,f){return a[1]!==a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Zo(r,e,l){let t,{$$slots:n={},$$scope:o}=e,{key:s}=e,{namespace:i}=e,{count:a=void 0}=e,{replace:f=void 0}=e;return r.$$set=u=>{"key"in u&&l(0,s=u.key),"namespace"in u&&l(2,i=u.namespace),"count"in u&&l(3,a=u.count),"replace"in u&&l(4,f=u.replace),"$$scope"in u&&l(5,o=u.$$scope)},r.$$.update=()=>{r.$$.dirty&29&&l(1,t=H(i,s,a,f))},[s,t,i,a,f,o,n]}class Pe extends fe{constructor(e){super(),ue(this,e,Zo,Xo,ce,{key:0,namespace:2,count:3,replace:4})}}function xo(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:"batch-operation-modal-title",replace:{action:r[3]}}}),{c(){e=P("h3"),D(l.$$.fragment),this.h()},l(n){e=F(n,"H3",{slot:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"slot","title")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&8&&(s.replace={action:n[3]}),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ea(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:r[0]===$t.Cancel?"batch-cancel-confirmation":"batch-terminate-confirmation",count:r[1]}}),{c(){e=P("p"),D(l.$$.fragment)},l(n){e=F(n,"P",{});var o=M(e);L(l.$$.fragment,o),o.forEach(h)},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&1&&(s.key=n[0]===$t.Cancel?"batch-cancel-confirmation":"batch-terminate-confirmation"),o&2&&(s.count=n[1]),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ta(r){let e,l,t,n,o,s,i,a,f,u;return l=new Pe({props:{namespace:"workflows",key:"batch-operation-confirmation-all",replace:{action:r[3]}}}),f=new Pe({props:{namespace:"workflows",key:"batch-operation-count-disclaimer",replace:{action:r[3]}}}),{c(){e=P("p"),D(l.$$.fragment),t=O(),n=P("div"),o=P("code"),s=z(r[2]),i=O(),a=P("span"),D(f.$$.fragment),this.h()},l(c){e=F(c,"P",{class:!0});var m=M(e);L(l.$$.fragment,m),m.forEach(h),t=W(c),n=F(c,"DIV",{class:!0});var _=M(n);o=F(_,"CODE",{"data-testid":!0});var d=M(o);s=Q(d,r[2]),d.forEach(h),_.forEach(h),i=W(c),a=F(c,"SPAN",{class:!0});var g=M(a);L(f.$$.fragment,g),g.forEach(h),this.h()},h(){S(e,"class","mb-2"),S(o,"data-testid","batch-action-workflows-query"),S(n,"class","mb-2 overflow-scroll whitespace-nowrap rounded border border-primary bg-gray-100 p-2"),S(a,"class","text-xs")},m(c,m){I(c,e,m),C(l,e,null),I(c,t,m),I(c,n,m),A(n,o),A(o,s),I(c,i,m),I(c,a,m),C(f,a,null),u=!0},p(c,m){const _={};m&8&&(_.replace={action:c[3]}),l.$set(_),(!u||m&4)&&oe(s,c[2]);const d={};m&8&&(d.replace={action:c[3]}),f.$set(d)},i(c){u||(p(l.$$.fragment,c),p(f.$$.fragment,c),u=!0)},o(c){$(l.$$.fragment,c),$(f.$$.fragment,c),u=!1},d(c){c&&h(e),y(l),c&&h(t),c&&h(n),c&&h(i),c&&h(a),y(f)}}}function la(r){let e,l,t,n,o,s,i,a,f,u;const c=[ta,ea],m=[];function _(v,k){return v[11]?0:1}l=_(r),t=m[l]=c[l](r);function d(v){r[19](v)}let g={id:`bulk-action-reason-${r[0]}`,label:H("reason"),hintText:H("workflows","batch-operation-confirmation-input-hint",{placeholder:r[9]}),placeholder:r[9]};r[4]!==void 0&&(g.value=r[4]),o=new Ne({props:g}),ie.push(()=>me(o,"value",d));function b(v){r[20](v)}let w={id:"batch-operation-job-id",label:H("job-id"),hintText:r[8]?H("batch","job-id-input-hint"):H("batch","job-id-input-error"),placeholder:r[12],valid:r[8]};return r[7]!==void 0&&(w.value=r[7]),a=new Ne({props:w}),ie.push(()=>me(a,"value",b)),a.$on("input",r[14]),{c(){e=P("div"),t.c(),n=O(),D(o.$$.fragment),i=O(),D(a.$$.fragment),this.h()},l(v){e=F(v,"DIV",{class:!0});var k=M(e);t.l(k),n=W(k),L(o.$$.fragment,k),i=W(k),L(a.$$.fragment,k),k.forEach(h),this.h()},h(){S(e,"class","mb-4 flex flex-col gap-2")},m(v,k){I(v,e,k),m[l].m(e,null),A(e,n),C(o,e,null),A(e,i),C(a,e,null),u=!0},p(v,k){let B=l;l=_(v),l===B?m[l].p(v,k):(J(),$(m[B],1,1,()=>{m[B]=null}),X(),t=m[l],t?t.p(v,k):(t=m[l]=c[l](v),t.c()),p(t,1),t.m(e,n));const T={};k&1&&(T.id=`bulk-action-reason-${v[0]}`),k&512&&(T.hintText=H("workflows","batch-operation-confirmation-input-hint",{placeholder:v[9]})),k&512&&(T.placeholder=v[9]),!s&&k&16&&(s=!0,T.value=v[4],_e(()=>s=!1)),o.$set(T);const E={};k&256&&(E.hintText=v[8]?H("batch","job-id-input-hint"):H("batch","job-id-input-error")),k&256&&(E.valid=v[8]),!f&&k&128&&(f=!0,E.value=v[7],_e(()=>f=!1)),a.$set(E)},i(v){u||(p(t),p(o.$$.fragment,v),p(a.$$.fragment,v),u=!0)},o(v){$(t),$(o.$$.fragment,v),$(a.$$.fragment,v),u=!1},d(v){v&&h(e),m[l].d(),y(o),y(a)}}}function na(r){let e,l,t,n;function o(a){r[21](a)}function s(a){r[22](a)}let i={id:`batch-operation-confirmation-modal-${r[0]}`,"data-testid":"batch-"+r[3]+"-confirmation",confirmType:"destructive",cancelText:H("cancel"),confirmDisabled:!r[8],confirmText:r[10],$$slots:{content:[la],title:[xo]},$$scope:{ctx:r}};return r[5]!==void 0&&(i.open=r[5]),r[6]!==void 0&&(i.error=r[6]),e=new Gr({props:i}),ie.push(()=>me(e,"open",o)),ie.push(()=>me(e,"error",s)),e.$on("confirmModal",r[13]),{c(){D(e.$$.fragment)},l(a){L(e.$$.fragment,a)},m(a,f){C(e,a,f),n=!0},p(a,[f]){const u={};f&1&&(u.id=`batch-operation-confirmation-modal-${a[0]}`),f&8&&(u["data-testid"]="batch-"+a[3]+"-confirmation"),f&256&&(u.confirmDisabled=!a[8]),f&1024&&(u.confirmText=a[10]),f&16780191&&(u.$$scope={dirty:f,ctx:a}),!l&&f&32&&(l=!0,u.open=a[5],_e(()=>l=!1)),!t&&f&64&&(t=!0,u.error=a[6],_e(()=>t=!1)),e.$set(u)},i(a){n||(p(e.$$.fragment,a),n=!0)},o(a){$(e.$$.fragment,a),n=!1},d(a){y(e,a)}}}function ra(r,e,l){let t,n,o,s,i;j(r,Jr,V=>l(18,s=V)),j(r,et,V=>l(11,i=V));let{action:a}=e,{actionableWorkflowsLength:f}=e,{query:u}=e,c="",m=!1,_="",d="",g=to(),b=!0;const w=()=>{l(4,c=""),l(5,m=!0)},v=()=>l(5,m=!1),k=V=>l(6,_=V),B=ut(),T=()=>{l(6,_=""),B("confirm",{reason:Zr({action:a,reason:c,email:s.email}),jobId:d||g})},E=V=>{/^[\w.~-]*$/.test(V.target.value)?l(8,b=!0):l(8,b=!1)};function N(V){c=V,l(4,c)}function U(V){d=V,l(7,d)}function q(V){m=V,l(5,m)}function Y(V){_=V,l(6,_)}return r.$$set=V=>{"action"in V&&l(0,a=V.action),"actionableWorkflowsLength"in V&&l(1,f=V.actionableWorkflowsLength),"query"in V&&l(2,u=V.query)},r.$$.update=()=>{r.$$.dirty&1&&l(3,t=a===$t.Cancel?H("cancel"):H("workflows","terminate")),r.$$.dirty&9&&l(10,n=a===$t.Cancel?H("confirm"):t),r.$$.dirty&262145&&l(9,o=Xr(a,s.email))},[a,f,u,t,c,m,_,d,b,o,n,i,g,T,E,w,v,k,s,N,U,q,Y]}class Al extends fe{constructor(e){super(),ue(this,e,ra,na,ce,{action:0,actionableWorkflowsLength:1,query:2,open:15,close:16,setError:17})}get open(){return this.$$.ctx[15]}get close(){return this.$$.ctx[16]}get setError(){return this.$$.ctx[17]}}function Nl(r,e,l){const t=r.slice();return t[9]=e[l].allowed,t[10]=e[l].value,t[12]=l,t}function Pl(r,e,l){const t=r.slice();return t[13]=e[l],t}function Fl(r){let e,l=r[13].label.slice(0,2)+"",t;return{c(){e=P("p"),t=z(l),this.h()},l(n){e=F(n,"P",{class:!0});var o=M(e);t=Q(o,l),o.forEach(h),this.h()},h(){S(e,"class","cell svelte-1we9vff")},m(n,o){I(n,e,o),A(e,t)},p:K,d(n){n&&h(e)}}}function Ol(r,e){let l,t=(e[10]||"")+"",n,o,s,i;function a(){return e[6](e[10])}return{key:r,first:null,c(){l=P("button"),n=z(t),o=O(),this.h()},l(f){l=F(f,"BUTTON",{class:!0});var u=M(l);n=Q(u,t),o=W(u),u.forEach(h),this.h()},h(){S(l,"class","cell svelte-1we9vff"),se(l,"highlight",e[9]&&e[10]),se(l,"disabled",!e[9]),se(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=l},m(f,u){I(f,l,u),A(l,n),A(l,o),s||(i=pe(l,"click",function(){ar(e[9]&&e[10]?a:K)&&(e[9]&&e[10]?a:K).apply(this,arguments)}),s=!0)},p(f,u){e=f,u&8&&t!==(t=(e[10]||"")+"")&&oe(n,t),u&8&&se(l,"highlight",e[9]&&e[10]),u&8&&se(l,"disabled",!e[9]),u&15&&se(l,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime())},d(f){f&&h(l),s=!1,i()}}}function oa(r){let e,l,t,n,o=[],s=new Map,i=wl,a=[];for(let c=0;cc[12];for(let c=0;c!0}=e,a=[];const f=m=>{t("datechange",new Date(s,o,m))},u=(m,_,d)=>d?i(new Date(m,_,d)):!0,c=m=>f(m);return r.$$set=m=>{"date"in m&&l(0,n=m.date),"month"in m&&l(1,o=m.month),"year"in m&&l(2,s=m.year),"isAllowed"in m&&l(5,i=m.isAllowed)},r.$$.update=()=>{r.$$.dirty&6&&l(3,a=no(o,s).map(m=>({value:m,allowed:u(s,o,m)})))},[n,o,s,a,f,i,c]}class sa extends fe{constructor(e){super(),ue(this,e,aa,oa,ce,{date:0,month:1,year:2,isAllowed:5})}}function Wl(r){var R;let e,l,t,n,o,s,i,a=(((R=vl(r[8]))==null?void 0:R.label)??"")+"",f,u,c,m,_,d,g,b,w,v,k,B,T,E,N,U,q,Y,V;return o=new ye({props:{name:"chevron-left"}}),g=new ye({props:{name:"chevron-right"}}),w=new sa({props:{month:r[8],year:r[9],date:r[0],isAllowed:r[1]}}),w.$on("datechange",r[15]),{c(){e=P("div"),l=P("div"),t=P("div"),n=P("button"),D(o.$$.fragment),s=O(),i=P("div"),f=z(a),u=O(),c=z(r[9]),m=O(),_=P("div"),d=P("button"),D(g.$$.fragment),b=O(),D(w.$$.fragment),v=O(),k=P("div"),B=P("button"),T=z(r[4]),E=O(),N=P("button"),U=z(r[5]),this.h()},l(Z){e=F(Z,"DIV",{class:!0});var G=M(e);l=F(G,"DIV",{class:!0});var de=M(l);t=F(de,"DIV",{class:!0});var ge=M(t);n=F(ge,"BUTTON",{});var x=M(n);L(o.$$.fragment,x),x.forEach(h),ge.forEach(h),s=W(de),i=F(de,"DIV",{class:!0});var ae=M(i);f=Q(ae,a),u=W(ae),c=Q(ae,r[9]),ae.forEach(h),m=W(de),_=F(de,"DIV",{class:!0});var Ee=M(_);d=F(Ee,"BUTTON",{});var De=M(d);L(g.$$.fragment,De),De.forEach(h),Ee.forEach(h),de.forEach(h),b=W(G),L(w.$$.fragment,G),v=W(G),k=F(G,"DIV",{class:!0});var Be=M(k);B=F(Be,"BUTTON",{class:!0});var Le=M(B);T=Q(Le,r[4]),Le.forEach(h),E=W(Be),N=F(Be,"BUTTON",{class:!0});var Ve=M(N);U=Q(Ve,r[5]),Ve.forEach(h),Be.forEach(h),G.forEach(h),this.h()},h(){S(t,"class","flex items-center justify-center"),S(i,"class","flex items-center justify-center"),S(_,"class","flex items-center justify-center"),S(l,"class","mx-3 my-2 flex items-center justify-around"),S(B,"class","cursor-pointer text-[12px]"),S(N,"class","cursor-pointer text-[12px]"),S(k,"class","my-1 flex justify-between px-2"),S(e,"class","absolute z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(Z,G){I(Z,e,G),A(e,l),A(l,t),A(t,n),C(o,n,null),A(l,s),A(l,i),A(i,f),A(i,u),A(i,c),A(l,m),A(l,_),A(_,d),C(g,d,null),A(e,b),C(w,e,null),A(e,v),A(e,k),A(k,B),A(B,T),A(k,E),A(k,N),A(N,U),q=!0,Y||(V=[pe(n,"click",r[14]),pe(d,"click",r[13]),pe(B,"click",r[16]),pe(N,"click",r[17])],Y=!0)},p(Z,G){var ge;(!q||G&256)&&a!==(a=(((ge=vl(Z[8]))==null?void 0:ge.label)??"")+"")&&oe(f,a),(!q||G&512)&&oe(c,Z[9]);const de={};G&256&&(de.month=Z[8]),G&512&&(de.year=Z[9]),G&1&&(de.date=Z[0]),G&2&&(de.isAllowed=Z[1]),w.$set(de),(!q||G&16)&&oe(T,Z[4]),(!q||G&32)&&oe(U,Z[5])},i(Z){q||(p(o.$$.fragment,Z),p(g.$$.fragment,Z),p(w.$$.fragment,Z),q=!0)},o(Z){$(o.$$.fragment,Z),$(g.$$.fragment,Z),$(w.$$.fragment,Z),q=!1},d(Z){Z&&h(e),y(o),y(g),y(w),Y=!1,bt(V)}}}function ia(r){let e,l,t,n,o,s;l=new Ne({props:{id:"datepicker",label:r[2],labelHidden:r[3],icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:r[0].toDateString(),clearable:!0,clearButtonLabel:r[6],disabled:r[7]}}),l.$on("focus",r[11]),l.$on("input",r[12]);let i=r[10]&&Wl(r);return{c(){e=P("div"),D(l.$$.fragment),t=O(),i&&i.c(),this.h()},l(a){e=F(a,"DIV",{class:!0});var f=M(e);L(l.$$.fragment,f),t=W(f),i&&i.l(f),f.forEach(h),this.h()},h(){S(e,"class","relative")},m(a,f){I(a,e,f),C(l,e,null),A(e,t),i&&i.m(e,null),n=!0,o||(s=[Rr(lo.call(null,e)),pe(e,"click-outside",r[18])],o=!0)},p(a,[f]){const u={};f&4&&(u.label=a[2]),f&8&&(u.labelHidden=a[3]),f&1&&(u.value=a[0].toDateString()),f&64&&(u.clearButtonLabel=a[6]),f&128&&(u.disabled=a[7]),l.$set(u),a[10]?i?(i.p(a,f),f&1024&&p(i,1)):(i=Wl(a),i.c(),p(i,1),i.m(e,null)):i&&(J(),$(i,1,1,()=>{i=null}),X())},i(a){n||(p(l.$$.fragment,a),p(i),n=!0)},o(a){$(l.$$.fragment,a),$(i),n=!1},d(a){a&&h(e),y(l),i&&i.d(),o=!1,bt(s)}}}function fa(r,e,l){const t=ut();let{isAllowed:n=()=>!0}=e,{selected:o=new Date}=e,{label:s}=e,{labelHidden:i=!1}=e,{todayLabel:a}=e,{closeLabel:f}=e,{clearLabel:u}=e,{disabled:c=!1}=e,m,_,d=!1;const g=()=>{l(10,d=!0)},b=N=>{const q=N.target.value;if(q.length===8){const Y=q==null?void 0:q.split("/"),R=2e3+parseInt(Y[2]),Z=parseInt(Y[0])-1,G=parseInt(Y[1]),de=new Date(R,Z,G);t("datechange",de)}},w=()=>{if(m===11){l(8,m=0),l(9,_=_+1);return}l(8,m=m+1)},v=()=>{if(m===0){l(8,m=11),l(9,_-=1);return}l(8,m-=1)},k=N=>{l(10,d=!1),t("datechange",N.detail)},B=()=>l(0,o=new Date),T=()=>l(10,d=!1),E=()=>l(10,d=!1);return r.$$set=N=>{"isAllowed"in N&&l(1,n=N.isAllowed),"selected"in N&&l(0,o=N.selected),"label"in N&&l(2,s=N.label),"labelHidden"in N&&l(3,i=N.labelHidden),"todayLabel"in N&&l(4,a=N.todayLabel),"closeLabel"in N&&l(5,f=N.closeLabel),"clearLabel"in N&&l(6,u=N.clearLabel),"disabled"in N&&l(7,c=N.disabled)},r.$$.update=()=>{r.$$.dirty&1&&(l(8,m=o.getMonth()),l(9,_=o.getFullYear()))},[o,n,s,i,a,f,u,c,m,_,d,g,b,w,v,k,B,T,E]}class Tt extends fe{constructor(e){super(),ue(this,e,fa,ia,ce,{isAllowed:1,selected:0,label:2,labelHidden:3,todayLabel:4,closeLabel:5,clearLabel:6,disabled:7})}}const ua=r=>({}),Vl=r=>({});function ca(r){let e;const l=r[5].fallback,t=$e(l,r,r[4],Vl);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,ua):ke(n[4]),Vl)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function ma(r){let e;const l=r[5].default,t=$e(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,null):ke(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function _a(r){let e,l,t,n;const o=[ma,ca],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function da(r,e,l){let t,n,o,s;j(r,Xe,f=>l(0,o=f)),j(r,ve,f=>l(3,s=f));let{$$slots:i={},$$scope:a}=e;return r.$$set=f=>{"$$scope"in f&&l(4,a=f.$$scope)},r.$$.update=()=>{r.$$.dirty&8&&l(2,t=s.url.searchParams.get("labs")==="true"),r.$$.dirty&8&&l(1,n=s.url.searchParams.get("labs")==="false"),r.$$.dirty&6&&(t?te(Xe,o=!0,o):n&&te(Xe,o=!1,o))},[o,n,t,s,a,i]}class sl extends fe{constructor(e){super(),ue(this,e,da,_a,ce,{})}}function Ml(r){let e,l;return e=new ro({props:{$$slots:{default:[ha]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2056&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function pa(r){let e;return{c(){e=z("AM")},l(l){e=Q(l,"AM")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function ga(r){let e;return{c(){e=z("PM")},l(l){e=Q(l,"PM")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function ha(r){let e,l,t,n;return e=new Il({props:{active:r[3]==="AM",$$slots:{default:[pa]},$$scope:{ctx:r}}}),e.$on("click",r[9]),t=new Il({props:{active:r[3]==="PM",$$slots:{default:[ga]},$$scope:{ctx:r}}}),t.$on("click",r[10]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s&8&&(i.active=o[3]==="AM"),s&2048&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&8&&(a.active=o[3]==="PM"),s&2048&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function $a(r){let e,l,t,n,o,s,i,a,f,u,c;function m(k){r[6](k)}let _={id:"hour",label:"hrs",labelHidden:!0,placeholder:"00",suffix:"hrs",maxLength:2,error:r[4]?parseInt(r[0])>12:parseInt(r[0])>23,disabled:r[5]};r[0]!==void 0&&(_.value=r[0]),l=new Ne({props:_}),ie.push(()=>me(l,"value",m));function d(k){r[7](k)}let g={id:"minute",label:"min",labelHidden:!0,required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[1]!==void 0&&(g.value=r[1]),o=new Ne({props:g}),ie.push(()=>me(o,"value",d));function b(k){r[8](k)}let w={id:"second",label:"sec",labelHidden:!0,placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(r[0])>59),disabled:r[5]};r[2]!==void 0&&(w.value=r[2]),a=new Ne({props:w}),ie.push(()=>me(a,"value",b));let v=r[4]&&Ml(r);return{c(){e=P("div"),D(l.$$.fragment),n=O(),D(o.$$.fragment),i=O(),D(a.$$.fragment),u=O(),v&&v.c(),this.h()},l(k){e=F(k,"DIV",{class:!0});var B=M(e);L(l.$$.fragment,B),n=W(B),L(o.$$.fragment,B),i=W(B),L(a.$$.fragment,B),u=W(B),v&&v.l(B),B.forEach(h),this.h()},h(){S(e,"class","flex gap-2")},m(k,B){I(k,e,B),C(l,e,null),A(e,n),C(o,e,null),A(e,i),C(a,e,null),A(e,u),v&&v.m(e,null),c=!0},p(k,[B]){const T={};B&17&&(T.error=k[4]?parseInt(k[0])>12:parseInt(k[0])>23),B&32&&(T.disabled=k[5]),!t&&B&1&&(t=!0,T.value=k[0],_e(()=>t=!1)),l.$set(T);const E={};B&1&&(E.error=Boolean(parseInt(k[0])>59)),B&32&&(E.disabled=k[5]),!s&&B&2&&(s=!0,E.value=k[1],_e(()=>s=!1)),o.$set(E);const N={};B&1&&(N.error=Boolean(parseInt(k[0])>59)),B&32&&(N.disabled=k[5]),!f&&B&4&&(f=!0,N.value=k[2],_e(()=>f=!1)),a.$set(N),k[4]?v?(v.p(k,B),B&16&&p(v,1)):(v=Ml(k),v.c(),p(v,1),v.m(e,null)):v&&(J(),$(v,1,1,()=>{v=null}),X())},i(k){c||(p(l.$$.fragment,k),p(o.$$.fragment,k),p(a.$$.fragment,k),p(v),c=!0)},o(k){$(l.$$.fragment,k),$(o.$$.fragment,k),$(a.$$.fragment,k),$(v),c=!1},d(k){k&&h(e),y(l),y(o),y(a),v&&v.d()}}}function ba(r,e,l){let{hour:t=""}=e,{minute:n=""}=e,{second:o=""}=e,{half:s="AM"}=e,{twelveHourClock:i=!0}=e,{disabled:a=!1}=e;function f(d){t=d,l(0,t)}function u(d){n=d,l(1,n)}function c(d){o=d,l(2,o)}const m=()=>l(3,s="AM"),_=()=>l(3,s="PM");return r.$$set=d=>{"hour"in d&&l(0,t=d.hour),"minute"in d&&l(1,n=d.minute),"second"in d&&l(2,o=d.second),"half"in d&&l(3,s=d.half),"twelveHourClock"in d&&l(4,i=d.twelveHourClock),"disabled"in d&&l(5,a=d.disabled)},[t,n,o,s,i,a,f,u,c,m,_]}class Dt extends fe{constructor(e){super(),ue(this,e,ba,$a,ce,{hour:0,minute:1,second:2,half:3,twelveHourClock:4,disabled:5})}}const ka={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime",runId:"RunId"},wa=r=>!(r===null||r===void 0||r===""||typeof r=="string"&&r==="undefined"),va=(r,e,l="=",t,n)=>{const o=ka[r]??r;return e==="All"?"":n?`${o} ${e}`:co(e)||mo(e)?t||kt(wt)?`${o} ${Xe?l:">"} "${xt(e)}"`:`${o} BETWEEN "${xt(e)}" AND "${_o()}"`:`${o}${l}"${e}"`},Ia=(r,e)=>r.map(({attribute:l,value:t,conditional:n,operator:o,parenthesis:s,customDate:i})=>{if(wa(t)){let a=va(l,t,n,e,i);return s==="("?a=`(${a}`:s===")"&&(a=`${a})`),o&&(a=`${a} ${o} `),a}}).filter(Boolean),Er=(r=[],e=!1)=>Ia(r,e).join(""),Ea=r=>e=>e.toLowerCase()===r.toLowerCase(),Rl=(r,e)=>r[e+2],Ta=(r,e)=>r[e-2],Da=Ea("Datetime"),Ze=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),La={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword",RunId:"Keyword"},el=(r,e=La)=>{const l=oo(r),t=[];let n=Ze();if(!r)return[];try{return l.forEach((o,s)=>{if(e[o])if(n.attribute=o,Da(e[o])){const i=Rl(l,s),a=El(i);if(Ll(l[s+1])){const f=l[s+4],u=El(f);a&&u?(n.value=`BETWEEN "${i}" AND "${f}"`,n.customDate=!0):console.error("Error parsing Datetime field from query")}else a?n.value=i:console.error("Error parsing Datetime field from query")}else n.value=Rl(l,s);po(o)&&(n.conditional=o),go(o)&&(n.parenthesis=o),ho(o)&&!Ll(Ta(l,s))&&(n.operator=o,t.push(n),n=Ze()),s===l.length-1&&(t.push(n),n=Ze())}),t}catch(o){return console.error("Error setting filter parameters: ",o),[]}},Ca=r=>{const e=r.filter(i=>i.attribute==="ExecutionStatus"&&i.value),l=r.filter(i=>i.attribute==="WorkflowId"&&i.value),t=r.filter(i=>i.attribute==="WorkflowType"&&i.value),n=r.filter(i=>i.attribute==="RunId"&&i.value),o=r.filter(i=>(i.attribute==="StartTime"||i.attribute==="CloseTime")&&i.value),s=[e,l,n,t,o].filter(i=>i.length);return s.forEach((i,a)=>{var f,u;i.length&&((f=s[a+1])!=null&&f.length)?i[i.length-1].operator="AND":i.length&&!((u=s[a+1])!=null&&u.length)&&(i[i.length-1].operator="")}),[...e,...l,...n,...t,...o]},Tr=r=>(r.forEach((e,l)=>{const t=r[l-1];t&&!t.operator&&(t.operator="AND"),r[l+1]||(e.operator=""),e.operator==="OR"&&(t==null?void 0:t.operator)!=="OR"?e.parenthesis="(":(t==null?void 0:t.operator)==="OR"&&e.operator!=="OR"?e.parenthesis=")":e.parenthesis=""}),r),Qe=mr((r,e,l=!1)=>{const t=l?Tr(e):Ca(e),n=Er(t);Ue({url:r,parameter:"query",value:n,allowEmpty:!1})},300);function Hl(r,e,l){const t=r.slice();return t[43]=e[l],t}function ya(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t[0]&2&&oe(e,l[1])},d(l){l&&h(e)}}}function Ba(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g;t=new Ie({props:{$$slots:{default:[Aa]},$$scope:{ctx:r}}}),t.$on("click",r[31]),s=new Ie({props:{$$slots:{default:[Na]},$$scope:{ctx:r}}}),s.$on("click",r[32]);let b=Ot,w=[];for(let k=0;k$(w[k],1,1,()=>{w[k]=null});return c=new Ie({props:{selected:r[2]==="StartTime",$$slots:{default:[Fa]},$$scope:{ctx:r}}}),c.$on("click",r[34]),d=new Ie({props:{selected:r[2]==="CloseTime",$$slots:{default:[Oa]},$$scope:{ctx:r}}}),d.$on("click",r[35]),{c(){e=P("div"),l=P("div"),D(t.$$.fragment),n=O(),o=P("div"),D(s.$$.fragment),i=O();for(let k=0;kme(n,"hour",N)),ie.push(()=>me(n,"minute",U)),ie.push(()=>me(n,"second",q)),ie.push(()=>me(n,"half",Y)),u=new Tt({props:{label:H("end"),selected:r[4],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),u.$on("datechange",r[17]);function R(x){r[26](x)}function Z(x){r[27](x)}function G(x){r[28](x)}function de(x){r[29](x)}let ge={};return r[9]!==void 0&&(ge.hour=r[9]),r[10]!==void 0&&(ge.minute=r[10]),r[11]!==void 0&&(ge.second=r[11]),r[12]!==void 0&&(ge.half=r[12]),m=new Dt({props:ge}),ie.push(()=>me(m,"hour",R)),ie.push(()=>me(m,"minute",Z)),ie.push(()=>me(m,"second",G)),ie.push(()=>me(m,"half",de)),k=new ft({props:{$$slots:{default:[Wa]},$$scope:{ctx:r}}}),k.$on("click",r[18]),T=new ft({props:{variant:"secondary",$$slots:{default:[Va]},$$scope:{ctx:r}}}),T.$on("click",r[30]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),f=O(),D(u.$$.fragment),c=O(),D(m.$$.fragment),w=O(),v=P("div"),D(k.$$.fragment),B=O(),D(T.$$.fragment),this.h()},l(x){e=F(x,"DIV",{class:!0});var ae=M(e);L(l.$$.fragment,ae),t=W(ae),L(n.$$.fragment,ae),f=W(ae),L(u.$$.fragment,ae),c=W(ae),L(m.$$.fragment,ae),w=W(ae),v=F(ae,"DIV",{class:!0});var Ee=M(v);L(k.$$.fragment,Ee),B=W(Ee),L(T.$$.fragment,Ee),Ee.forEach(h),ae.forEach(h),this.h()},h(){S(v,"class","flex gap-2"),S(e,"class","flex flex-col gap-2 p-2")},m(x,ae){I(x,e,ae),C(l,e,null),A(e,t),C(n,e,null),A(e,f),C(u,e,null),A(e,c),C(m,e,null),A(e,w),A(e,v),C(k,v,null),A(v,B),C(T,v,null),E=!0},p(x,ae){const Ee={};ae[0]&8&&(Ee.selected=x[3]),l.$set(Ee);const De={};!o&&ae[0]&32&&(o=!0,De.hour=x[5],_e(()=>o=!1)),!s&&ae[0]&64&&(s=!0,De.minute=x[6],_e(()=>s=!1)),!i&&ae[0]&128&&(i=!0,De.second=x[7],_e(()=>i=!1)),!a&&ae[0]&256&&(a=!0,De.half=x[8],_e(()=>a=!1)),n.$set(De);const Be={};ae[0]&16&&(Be.selected=x[4]),u.$set(Be);const Le={};!_&&ae[0]&512&&(_=!0,Le.hour=x[9],_e(()=>_=!1)),!d&&ae[0]&1024&&(d=!0,Le.minute=x[10],_e(()=>d=!1)),!g&&ae[0]&2048&&(g=!0,Le.second=x[11],_e(()=>g=!1)),!b&&ae[0]&4096&&(b=!0,Le.half=x[12],_e(()=>b=!1)),m.$set(Le);const Ve={};ae[1]&32768&&(Ve.$$scope={dirty:ae,ctx:x}),k.$set(Ve);const le={};ae[1]&32768&&(le.$$scope={dirty:ae,ctx:x}),T.$set(le)},i(x){E||(p(l.$$.fragment,x),p(n.$$.fragment,x),p(u.$$.fragment,x),p(m.$$.fragment,x),p(k.$$.fragment,x),p(T.$$.fragment,x),E=!0)},o(x){$(l.$$.fragment,x),$(n.$$.fragment,x),$(u.$$.fragment,x),$(m.$$.fragment,x),$(k.$$.fragment,x),$(T.$$.fragment,x),E=!1},d(x){x&&h(e),y(l),y(n),y(u),y(m),y(k),y(T)}}}function Aa(r){let e=H("all-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Na(r){let e=H("custom")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Pa(r){let e=r[43]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function ql(r){let e,l,t;function n(){return r[33](r[43])}return l=new Ie({props:{$$slots:{default:[Pa]},$$scope:{ctx:r}}}),l.$on("click",n),{c(){e=P("div"),D(l.$$.fragment),this.h()},l(o){e=F(o,"DIV",{class:!0});var s=M(e);L(l.$$.fragment,s),s.forEach(h),this.h()},h(){S(e,"class","flex w-1/2 flex-col justify-center")},m(o,s){I(o,e,s),C(l,e,null),t=!0},p(o,s){r=o;const i={};s[1]&32768&&(i.$$scope={dirty:s,ctx:r}),l.$set(i)},i(o){t||(p(l.$$.fragment,o),t=!0)},o(o){$(l.$$.fragment,o),t=!1},d(o){o&&h(e),y(l)}}}function Fa(r){let e=H("start-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Oa(r){let e=H("end-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Wa(r){let e=H("apply")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Va(r){let e=H("cancel")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ma(r){let e,l,t=H("based-on-time-preface")+"",n,o,s,i;return e=new ye({props:{name:"clock","aria-hidden":"true"}}),{c(){D(e.$$.fragment),l=O(),n=z(t),o=O(),s=z(r[13])},l(a){L(e.$$.fragment,a),l=W(a),n=Q(a,t),o=W(a),s=Q(a,r[13])},m(a,f){C(e,a,f),I(a,l,f),I(a,n,f),I(a,o,f),I(a,s,f),i=!0},p:K,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){y(e,a),a&&h(l),a&&h(n),a&&h(o),a&&h(s)}}}function Ra(r){let e,l,t,n,o,s,i;const a=[Sa,Ba],f=[];function u(c,m){return c[0]?0:1}return e=u(r),l=f[e]=a[e](r),n=new St({}),s=new Ie({props:{centered:!0,disabled:!0,$$slots:{default:[Ma]},$$scope:{ctx:r}}}),{c(){l.c(),t=O(),D(n.$$.fragment),o=O(),D(s.$$.fragment)},l(c){l.l(c),t=W(c),L(n.$$.fragment,c),o=W(c),L(s.$$.fragment,c)},m(c,m){f[e].m(c,m),I(c,t,m),C(n,c,m),I(c,o,m),C(s,c,m),i=!0},p(c,m){let _=e;e=u(c),e===_?f[e].p(c,m):(J(),$(f[_],1,1,()=>{f[_]=null}),X(),l=f[e],l?l.p(c,m):(l=f[e]=a[e](c),l.c()),p(l,1),l.m(t.parentNode,t));const d={};m[1]&32768&&(d.$$scope={dirty:m,ctx:c}),s.$set(d)},i(c){i||(p(l),p(n.$$.fragment,c),p(s.$$.fragment,c),i=!0)},o(c){$(l),$(n.$$.fragment,c),$(s.$$.fragment,c),i=!1},d(c){f[e].d(c),c&&h(t),y(n,c),c&&h(o),y(s,c)}}}function Ha(r){let e,l,t,n;return e=new lt({props:{id:"time-range-filter",hasIndicator:!0,controls:"time-range-filter-menu",$$slots:{default:[ya]},$$scope:{ctx:r}}}),t=new nt({props:{class:"w-[25rem] !overflow-visible",position:"right",keepOpen:!0,id:"time-range-filter-menu",$$slots:{default:[Ra]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s[0]&2|s[1]&32768&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s[0]&8189|s[1]&32768&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function qa(r){let e,l;return e=new tt({props:{$$slots:{default:[Ha]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[0]&8191|n[1]&32768&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ua(r){let e,l,t;return l=new sl({props:{$$slots:{fallback:[qa]},$$scope:{ctx:r}}}),{c(){e=P("div"),D(l.$$.fragment),this.h()},l(n){e=F(n,"DIV",{class:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","flex items-start")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o[0]&8191|o[1]&32768&&(s.$$scope={dirty:o,ctx:n}),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function ja(r,e,l){let t,n,o,s,i,a;j(r,he,ne=>l(20,o=ne)),j(r,ve,ne=>l(37,s=ne)),j(r,Zt,ne=>l(38,i=ne)),j(r,wt,ne=>l(21,a=ne));const f=ur()||H("local");let u=!1,c="All Time",m="StartTime",_=Ge(new Date),d=Ge(new Date),g="",b="",w="",v="AM",k="",B="",T="",E="AM";const N=()=>{t?(l(1,c=u||!Ot.includes(t==null?void 0:t.value)?"Custom":t.value),l(2,m=t.attribute)):(l(1,c="All Time"),l(2,m="StartTime")),(!t||Ot.includes(t==null?void 0:t.value)||(t==null?void 0:t.customDate))&&te(Zt,i=t,i)},U=()=>o.filter(ne=>ne.attribute!=="StartTime"&&ne.attribute!=="CloseTime"),q=ne=>{if(l(1,c=ne),c==="All Time")te(he,o=[...U()],o),l(0,u=!1);else if(c==="Custom")l(0,u=!0);else{const Se={attribute:m,value:c,conditional:">",operator:"",parenthesis:""};te(he,o=[...U(),Se],o),l(0,u=!1)}Qe(s.url,o)},Y=ne=>{ne!==m&&(l(2,m=ne),q(c))},V=ne=>{l(3,_=Ge(ne.detail))},R=ne=>{l(4,d=Ge(ne.detail))},Z=(ne,Se)=>{let ze=new Date(ne);return Se.hour&&(ze=wr(ze,parseInt(Se.hour))),Se.minute&&(ze=vr(ze,parseInt(Se.minute))),Se.second&&(ze=Ir(ze,parseInt(Se.second))),ze},G=(ne,Se)=>{if(ne)return ne==="12"?Se==="AM"?"00":"12":Se==="PM"?(parseInt(ne)+12).toString():ne;ne=""},de=()=>{let ne=Z(_,{hour:G(g,v),minute:b,second:w}),Se=Z(d,{hour:G(k,E),minute:B,second:T});const ze=n?`BETWEEN "${dt(ne)}" AND "${dt(Se)}"`:`> "${dt(ne)}"`,Vr={attribute:m,value:ze,conditional:"=",operator:"",parenthesis:"",customDate:!0};te(he,o=[...U(),Vr],o),Qe(s.url,o)};function ge(ne){g=ne,l(5,g)}function x(ne){b=ne,l(6,b)}function ae(ne){w=ne,l(7,w)}function Ee(ne){v=ne,l(8,v)}function De(ne){k=ne,l(9,k)}function Be(ne){B=ne,l(10,B)}function Le(ne){T=ne,l(11,T)}function Ve(ne){E=ne,l(12,E)}const le=()=>l(0,u=!1),Me=()=>q("All Time"),re=()=>q("Custom"),Ce=ne=>q(ne),Re=()=>Y("StartTime"),Wr=()=>Y("CloseTime");return r.$$.update=()=>{r.$$.dirty[0]&1048576&&l(19,t=o.find(ne=>ne.attribute==="StartTime"||ne.attribute==="CloseTime")),r.$$.dirty[0]&2097153&&(n=u||!a),r.$$.dirty[0]&524288&&N()},[u,c,m,_,d,g,b,w,v,k,B,T,E,f,q,Y,V,R,de,t,o,a,ge,x,ae,Ee,De,Be,Le,Ve,le,Me,re,Ce,Re,Wr]}class za extends fe{constructor(e){super(),ue(this,e,ja,Ua,ce,{},null,[-1,-1])}}function Qa(r){let e=H("search")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ka(r){let e,l,t,n,o,s,i,a,f,u,c,m;function _(g){r[5](g)}let d={id:"manual-search",type:"search",label:H("workflows","search-placeholder"),labelHidden:!0,placeholder:H("workflows","search-placeholder"),icon:"search",class:"w-full lg:w-3/4",clearable:!0,clearButtonLabel:H("clear-input-button-label"),unroundRight:!0};return r[0]!==void 0&&(d.value=r[0]),n=new Ne({props:d}),ie.push(()=>me(n,"value",_)),n.$on("clear",r[2]),i=new ft({props:{"data-testid":"manual-search-button",variant:"primary",borderRadiusModifier:"square-left",type:"submit",$$slots:{default:[Qa]},$$scope:{ctx:r}}}),{c(){e=P("div"),l=P("div"),t=P("form"),D(n.$$.fragment),s=O(),D(i.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);l=F(b,"DIV",{class:!0});var w=M(l);t=F(w,"FORM",{class:!0,role:!0});var v=M(t);L(n.$$.fragment,v),s=W(v),L(i.$$.fragment,v),v.forEach(h),w.forEach(h),b.forEach(h),this.h()},h(){S(t,"class","relative flex w-full items-center gap-0"),S(t,"role","search"),S(l,"class","flex w-full items-center gap-0"),S(e,"class","flex grow gap-4")},m(g,b){I(g,e,b),A(e,l),A(l,t),C(n,t,null),A(t,s),C(i,t,null),u=!0,c||(m=pe(t,"submit",Et(r[1])),c=!0)},p(g,[b]){const w={};!o&&b&1&&(o=!0,w.value=g[0],_e(()=>o=!1)),n.$set(w);const v={};b&1024&&(v.$$scope={dirty:b,ctx:g}),i.$set(v)},i(g){u||(p(n.$$.fragment,g),p(i.$$.fragment,g),a||at(()=>{a=st(t,Bt,{x:-100,duration:150}),a.start()}),f||at(()=>{f=st(l,fr,{}),f.start()}),u=!0)},o(g){$(n.$$.fragment,g),$(i.$$.fragment,g),u=!1},d(g){g&&h(e),y(n),y(i),c=!1,m()}}}function Ya(r,e,l){let t,n,o,s,i;j(r,ve,_=>l(4,n=_)),j(r,xe,_=>l(6,o=_)),j(r,he,_=>l(7,s=_)),j(r,pt,_=>l(8,i=_));let a="";function f(_){l(0,a=_)}const u=()=>{if(!a)te(he,s=[],s),te(pt,i="",i);else try{te(he,s=el(a),s)}catch(_){console.error(_)}a&&a===t?te(xe,o=Date.now(),o):Ue({url:n.url,parameter:"query",value:a,allowEmpty:!0})};function c(){u()}function m(_){a=_,l(0,a)}return r.$$.update=()=>{r.$$.dirty&16&&l(3,t=n.url.searchParams.get("query")),r.$$.dirty&8&&f(t)},[a,u,c,t,n,m]}class Dr extends fe{constructor(e){super(),ue(this,e,Ya,Ka,ce,{})}}function gt(r){return r==="ExecutionStatus"}function Lt(r,e=vt){const l=kt(e)[r];return gt(r)?!1:["Keyword","Text","String"].includes(l)}function Lr(r,e=vt){return kt(e)[r]==="KeywordList"}function Cr(r,e=vt){const l=kt(e)[r];return["Int","Double"].includes(l)}function il(r,e=vt){return kt(e)[r]==="Datetime"}function yr(r,e=vt){return kt(e)[r]==="Bool"}function Br(r){return gt(r)?"status-filter":Lt(r)||Cr(r)||il(r)?"conditional-menu-button":Lr(r)?"list-filter-search":yr(r)?"boolean-filter":""}function Ul(r,e,l){const t=r.slice();return t[8]=e[l].value,t[9]=e[l].label,t}function Ga(r){let e;return{c(){e=z(r[1])},l(l){e=Q(l,r[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&oe(e,l[1])},d(l){l&&h(e)}}}function Ja(r){let e=r[9]+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p:K,d(n){n&&h(l),n&&h(t)}}}function jl(r){let e,l;function t(){return r[7](r[8])}return e=new Ie({props:{$$slots:{default:[Ja]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&4096&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Xa(r){let e,l,t=r[4],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sl(0,o=c));const f=[{value:"true",label:H("true")},{value:"false",label:H("false")}],u=c=>{te(i,o.value=c,o),a()};return r.$$.update=()=>{r.$$.dirty&33&&l(6,t=l(5,s=f.find(c=>c.value===o.value))!==null&&s!==void 0?s:f[0]),r.$$.dirty&64&&l(1,n=t==null?void 0:t.label)},[o,n,i,a,f,s,t,u]}class ts extends fe{constructor(e){super(),ue(this,e,es,xa,ce,{})}}function ls(r){let e,l;return e=new Oe({props:{label:H("close"),icon:"close",class:"ml-1"}}),e.$on("click",r[0]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ns(r){const{resetFilter:e}=Ke(je);return[e]}class zt extends fe{constructor(e){super(),ue(this,e,ns,ls,ce,{})}}function zl(r,e,l){const t=r.slice();return t[16]=e[l].value,t[17]=e[l].label,t}function rs(r){let e;return{c(){e=z(r[6])},l(l){e=Q(l,r[6])},m(l,t){I(l,e,t)},p(l,t){t&64&&oe(e,l[6])},d(l){l&&h(e)}}}function os(r){let e=(r[17]??r[16])+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&1&&e!==(e=(n[17]??n[16])+"")&&oe(l,e)},d(n){n&&h(l),n&&h(t)}}}function Ql(r){let e,l;function t(){return r[13](r[16])}return e=new Ie({props:{$$slots:{default:[os]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1048577&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function as(r){let e,l,t=r[0],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sl(5,s=k)),j(r,u,k=>l(7,i=k));const c=[{value:">"},{value:">="},{value:"="},{value:"<="},{value:"<"}];let{options:m=c}=e,{disabled:_=!1}=e,{inputId:d}=e,{noBorderLeft:g=!1}=e,{noBorderRight:b=!1}=e;function w(){t||te(f,s.conditional=m[0].value,s)}const v=k=>{te(f,s.conditional=k,s),te(u,i=d,i)};return r.$$set=k=>{"options"in k&&l(0,m=k.options),"disabled"in k&&l(1,_=k.disabled),"inputId"in k&&l(2,d=k.inputId),"noBorderLeft"in k&&l(3,g=k.noBorderLeft),"noBorderRight"in k&&l(4,b=k.noBorderRight)},r.$$.update=()=>{r.$$.dirty&33&&l(11,t=m.find(k=>k.value===s.conditional)),r.$$.dirty&1&&w(),r.$$.dirty&2049&&l(12,n=t??m[0]),r.$$.dirty&5120&&l(6,o=l(10,a=n==null?void 0:n.label)!==null&&a!==void 0?a:n==null?void 0:n.value)},[m,_,d,g,b,s,o,i,f,u,a,t,n,v]}class fl extends fe{constructor(e){super(),ue(this,e,fs,is,ce,{options:0,disabled:1,inputId:2,noBorderLeft:3,noBorderRight:4})}}function Kl(r,e,l){const t=r.slice();return t[39]=e[l],t}function us(r){let e=H("workflows","select-time")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function cs(r){let e,l,t,n,o,s;return e=new Ie({props:{$$slots:{default:[ps]},$$scope:{ctx:r}}}),e.$on("click",r[32]),t=new St({}),o=new Ie({props:{$$slots:{default:[gs]},$$scope:{ctx:r}}}),o.$on("click",r[36]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment),n=O(),D(o.$$.fragment)},l(i){L(e.$$.fragment,i),l=W(i),L(t.$$.fragment,i),n=W(i),L(o.$$.fragment,i)},m(i,a){C(e,i,a),I(i,l,a),C(t,i,a),I(i,n,a),C(o,i,a),s=!0},p(i,a){const f={};a[0]&2053|a[1]&2048&&(f.$$scope={dirty:a,ctx:i}),e.$set(f);const u={};a[0]&236|a[1]&2048&&(u.$$scope={dirty:a,ctx:i}),o.$set(u)},i(i){s||(p(e.$$.fragment,i),p(t.$$.fragment,i),p(o.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),$(o.$$.fragment,i),s=!1},d(i){y(e,i),i&&h(l),y(t,i),i&&h(n),y(o,i)}}}function ms(r){let e,l,t,n,o,s;return e=new Ie({props:{$$slots:{default:[hs]},$$scope:{ctx:r}}}),t=new St({}),o=new Ie({props:{$$slots:{default:[$s]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment),n=O(),D(o.$$.fragment)},l(i){L(e.$$.fragment,i),l=W(i),L(t.$$.fragment,i),n=W(i),L(o.$$.fragment,i)},m(i,a){C(e,i,a),I(i,l,a),C(t,i,a),I(i,n,a),C(o,i,a),s=!0},p(i,a){const f={};a[0]&232|a[1]&2048&&(f.$$scope={dirty:a,ctx:i}),e.$set(f);const u={};a[0]&1808|a[1]&2048&&(u.$$scope={dirty:a,ctx:i}),o.$set(u)},i(i){s||(p(e.$$.fragment,i),p(t.$$.fragment,i),p(o.$$.fragment,i),s=!0)},o(i){$(e.$$.fragment,i),$(t.$$.fragment,i),$(o.$$.fragment,i),s=!1},d(i){y(e,i),i&&h(l),y(t,i),i&&h(n),y(o,i)}}}function _s(r){let e=r[39]+"",l,t,n=H("ago")+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p:K,d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Yl(r){let e,l;return e=new Lo({props:{value:r[39],$$slots:{default:[_s]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[1]&2048&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ds(r){let e,l,t=r[15],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;sme(o,"value",c));function _(g){r[31](g)}let d={unroundLeft:!0,id:"relative-datetime-unit-input",label:H("time-unit"),labelHidden:!0,disabled:r[2]!=="relative",$$slots:{default:[ds]},$$scope:{ctx:r}};return r[11]!==void 0&&(d.value=r[11]),a=new Do({props:d}),ie.push(()=>me(a,"value",_)),{c(){e=P("div"),D(l.$$.fragment),t=O(),n=P("div"),D(o.$$.fragment),i=O(),D(a.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);L(l.$$.fragment,b),t=W(b),n=F(b,"DIV",{class:!0});var w=M(n);L(o.$$.fragment,w),i=W(w),L(a.$$.fragment,w),w.forEach(h),b.forEach(h),this.h()},h(){S(n,"class","ml-6 flex gap-0 pt-2"),S(e,"class","flex flex-col")},m(g,b){I(g,e,b),C(l,e,null),A(e,t),A(e,n),C(o,n,null),A(n,i),C(a,n,null),u=!0},p(g,b){const w={};b[0]&1&&(w.error=g[20](g[0])),b[0]&4&&(w.disabled=g[2]!=="relative"),!s&&b[0]&1&&(s=!0,w.value=g[0],_e(()=>s=!1)),o.$set(w);const v={};b[0]&4&&(v.disabled=g[2]!=="relative"),b[1]&2048&&(v.$$scope={dirty:b,ctx:g}),!f&&b[0]&2048&&(f=!0,v.value=g[11],_e(()=>f=!1)),a.$set(v)},i(g){u||(p(l.$$.fragment,g),p(o.$$.fragment,g),p(a.$$.fragment,g),u=!0)},o(g){$(l.$$.fragment,g),$(o.$$.fragment,g),$(a.$$.fragment,g),u=!1},d(g){g&&h(e),y(l),y(o),y(a)}}}function gs(r){let e,l,t,n,o,s,i,a,f,u,c;l=new $r({props:{label:H("absolute"),id:"absolute-time",value:"absolute",name:"time-filter-type",group:r[16]}}),o=new Tt({props:{label:"",labelHidden:!0,selected:r[3],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label"),disabled:r[2]!=="absolute"}}),o.$on("datechange",r[17]);function m(b){r[33](b)}function _(b){r[34](b)}function d(b){r[35](b)}let g={twelveHourClock:!1,disabled:r[2]!=="absolute"};return r[5]!==void 0&&(g.hour=r[5]),r[6]!==void 0&&(g.minute=r[6]),r[7]!==void 0&&(g.second=r[7]),i=new Dt({props:g}),ie.push(()=>me(i,"hour",m)),ie.push(()=>me(i,"minute",_)),ie.push(()=>me(i,"second",d)),{c(){e=P("div"),D(l.$$.fragment),t=O(),n=P("div"),D(o.$$.fragment),s=O(),D(i.$$.fragment),this.h()},l(b){e=F(b,"DIV",{class:!0});var w=M(e);L(l.$$.fragment,w),t=W(w),n=F(w,"DIV",{class:!0});var v=M(n);L(o.$$.fragment,v),s=W(v),L(i.$$.fragment,v),v.forEach(h),w.forEach(h),this.h()},h(){S(n,"class","ml-6 flex flex-col gap-2"),S(e,"class","flex flex-col gap-2")},m(b,w){I(b,e,w),C(l,e,null),A(e,t),A(e,n),C(o,n,null),A(n,s),C(i,n,null),c=!0},p(b,w){const v={};w[0]&8&&(v.selected=b[3]),w[0]&4&&(v.disabled=b[2]!=="absolute"),o.$set(v);const k={};w[0]&4&&(k.disabled=b[2]!=="absolute"),!a&&w[0]&32&&(a=!0,k.hour=b[5],_e(()=>a=!1)),!f&&w[0]&64&&(f=!0,k.minute=b[6],_e(()=>f=!1)),!u&&w[0]&128&&(u=!0,k.second=b[7],_e(()=>u=!1)),i.$set(k)},i(b){c||(p(l.$$.fragment,b),p(o.$$.fragment,b),p(i.$$.fragment,b),c=!0)},o(b){$(l.$$.fragment,b),$(o.$$.fragment,b),$(i.$$.fragment,b),c=!1},d(b){b&&h(e),y(l),y(o),y(i)}}}function hs(r){let e,l,t,n,o,s,i,a;l=new Tt({props:{label:H("start"),selected:r[3],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),l.$on("datechange",r[17]);function f(_){r[24](_)}function u(_){r[25](_)}function c(_){r[26](_)}let m={twelveHourClock:!1};return r[5]!==void 0&&(m.hour=r[5]),r[6]!==void 0&&(m.minute=r[6]),r[7]!==void 0&&(m.second=r[7]),n=new Dt({props:m}),ie.push(()=>me(n,"hour",f)),ie.push(()=>me(n,"minute",u)),ie.push(()=>me(n,"second",c)),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(_){e=F(_,"DIV",{class:!0});var d=M(e);L(l.$$.fragment,d),t=W(d),L(n.$$.fragment,d),d.forEach(h),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(_,d){I(_,e,d),C(l,e,null),A(e,t),C(n,e,null),a=!0},p(_,d){const g={};d[0]&8&&(g.selected=_[3]),l.$set(g);const b={};!o&&d[0]&32&&(o=!0,b.hour=_[5],_e(()=>o=!1)),!s&&d[0]&64&&(s=!0,b.minute=_[6],_e(()=>s=!1)),!i&&d[0]&128&&(i=!0,b.second=_[7],_e(()=>i=!1)),n.$set(b)},i(_){a||(p(l.$$.fragment,_),p(n.$$.fragment,_),a=!0)},o(_){$(l.$$.fragment,_),$(n.$$.fragment,_),a=!1},d(_){_&&h(e),y(l),y(n)}}}function $s(r){let e,l,t,n,o,s,i,a;l=new Tt({props:{label:H("end"),selected:r[4],todayLabel:H("today"),closeLabel:H("close"),clearLabel:H("clear-input-button-label")}}),l.$on("datechange",r[18]);function f(_){r[27](_)}function u(_){r[28](_)}function c(_){r[29](_)}let m={twelveHourClock:!1};return r[8]!==void 0&&(m.hour=r[8]),r[9]!==void 0&&(m.minute=r[9]),r[10]!==void 0&&(m.second=r[10]),n=new Dt({props:m}),ie.push(()=>me(n,"hour",f)),ie.push(()=>me(n,"minute",u)),ie.push(()=>me(n,"second",c)),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(_){e=F(_,"DIV",{class:!0});var d=M(e);L(l.$$.fragment,d),t=W(d),L(n.$$.fragment,d),d.forEach(h),this.h()},h(){S(e,"class","flex flex-col gap-2")},m(_,d){I(_,e,d),C(l,e,null),A(e,t),C(n,e,null),a=!0},p(_,d){const g={};d[0]&16&&(g.selected=_[4]),l.$set(g);const b={};!o&&d[0]&256&&(o=!0,b.hour=_[8],_e(()=>o=!1)),!s&&d[0]&512&&(s=!0,b.minute=_[9],_e(()=>s=!1)),!i&&d[0]&1024&&(i=!0,b.second=_[10],_e(()=>i=!1)),n.$set(b)},i(_){a||(p(l.$$.fragment,_),p(n.$$.fragment,_),a=!0)},o(_){$(l.$$.fragment,_),$(n.$$.fragment,_),a=!1},d(_){_&&h(e),y(l),y(n)}}}function bs(r){let e=H("apply")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function ks(r){let e,l,t=H("based-on-time-preface")+"",n,o,s,i;return e=new ye({props:{name:"clock","aria-hidden":"true"}}),{c(){D(e.$$.fragment),l=O(),n=z(t),o=O(),s=z(r[14])},l(a){L(e.$$.fragment,a),l=W(a),n=Q(a,t),o=W(a),s=Q(a,r[14])},m(a,f){C(e,a,f),I(a,l,f),I(a,n,f),I(a,o,f),I(a,s,f),i=!0},p:K,i(a){i||(p(e.$$.fragment,a),i=!0)},o(a){$(e.$$.fragment,a),i=!1},d(a){y(e,a),a&&h(l),a&&h(n),a&&h(o),a&&h(s)}}}function ws(r){let e,l,t,n,o,s,i,a,f,u;const c=[ms,cs],m=[];function _(d,g){return d[1]?0:1}return e=_(r),l=m[e]=c[e](r),n=new St({}),i=new ft({props:{size:"xs",style:"width: 100%",disabled:r[12],$$slots:{default:[bs]},$$scope:{ctx:r}}}),i.$on("click",r[19]),f=new Ie({props:{centered:!0,disabled:!0,class:"!pt-0",$$slots:{default:[ks]},$$scope:{ctx:r}}}),{c(){l.c(),t=O(),D(n.$$.fragment),o=O(),s=P("div"),D(i.$$.fragment),a=O(),D(f.$$.fragment),this.h()},l(d){l.l(d),t=W(d),L(n.$$.fragment,d),o=W(d),s=F(d,"DIV",{class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),a=W(d),L(f.$$.fragment,d),this.h()},h(){S(s,"class","flex items-center p-2")},m(d,g){m[e].m(d,g),I(d,t,g),C(n,d,g),I(d,o,g),I(d,s,g),C(i,s,null),I(d,a,g),C(f,d,g),u=!0},p(d,g){let b=e;e=_(d),e===b?m[e].p(d,g):(J(),$(m[b],1,1,()=>{m[b]=null}),X(),l=m[e],l?l.p(d,g):(l=m[e]=c[e](d),l.c()),p(l,1),l.m(t.parentNode,t));const w={};g[0]&4096&&(w.disabled=d[12]),g[1]&2048&&(w.$$scope={dirty:g,ctx:d}),i.$set(w);const v={};g[1]&2048&&(v.$$scope={dirty:g,ctx:d}),f.$set(v)},i(d){u||(p(l),p(n.$$.fragment,d),p(i.$$.fragment,d),p(f.$$.fragment,d),u=!0)},o(d){$(l),$(n.$$.fragment,d),$(i.$$.fragment,d),$(f.$$.fragment,d),u=!1},d(d){m[e].d(d),d&&h(t),y(n,d),d&&h(o),d&&h(s),y(i),d&&h(a),y(f,d)}}}function vs(r){let e,l,t,n;return e=new lt({props:{unroundLeft:!0,id:"time-range-filter",controls:"time-range-filter-menu",$$slots:{default:[us]},$$scope:{ctx:r}}}),t=new nt({props:{keepOpen:!0,id:"time-range-filter-menu",class:"w-[25rem] !overflow-visible",$$slots:{default:[ws]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s[1]&2048&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s[0]&8191|s[1]&2048&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function Is(r){let e,l,t,n,o;return l=new fl({props:{inputId:"time-range-filter",options:[{value:"<=",label:H("before")},{value:"BETWEEN",label:H("between")},{value:">=",label:H("after")}],noBorderLeft:!0,noBorderRight:!0}}),n=new tt({props:{$$slots:{default:[vs]},$$scope:{ctx:r}}}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(s){e=F(s,"DIV",{class:!0});var i=M(e);L(l.$$.fragment,i),t=W(i),L(n.$$.fragment,i),i.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(s,i){I(s,e,i),C(l,e,null),A(e,t),C(n,e,null),o=!0},p(s,i){const a={};i[0]&8191|i[1]&2048&&(a.$$scope={dirty:i,ctx:s}),n.$set(a)},i(s){o||(p(l.$$.fragment,s),p(n.$$.fragment,s),o=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),o=!1},d(s){s&&h(e),y(l),y(n)}}}function Es(r,e,l){let t,n,o,s,i,a;j(r,wt,re=>l(23,a=re));const{filter:f,handleSubmit:u}=Ke(je);j(r,f,re=>l(22,s=re));const c=ur()||H("local");let m=Ge(new Date),_=Ge(new Date),d="",g="",b="",w="",v="",k="";const B=["minutes","hours","days"];let T=B[0],E="";const N=Je("relative");j(r,N,re=>l(2,i=re));const U=re=>{l(3,m=Ge(re.detail))},q=re=>{l(4,_=Ge(re.detail))},Y=(re,Ce)=>{let Re=new Date(re);return Ce.hour&&(Re=wr(Re,parseInt(Ce.hour))),Ce.minute&&(Re=vr(Re,parseInt(Ce.minute))),Ce.second&&(Re=Ir(Re,parseInt(Ce.second))),Re},V=()=>{if(i==="relative"&&!n){if(!E)return;te(f,s.value=xt(`${E} ${T}`),s),te(f,s.customDate=!1,s)}else{let re=Y(m,{hour:d,minute:g,second:b}),Ce=Y(_,{hour:w,minute:v,second:k});const Re=n?`BETWEEN "${dt(re)}" AND "${dt(Ce)}"`:dt(re);te(f,s.value=Re,s),t?(te(f,s.customDate=!0,s),te(f,s.conditional="",s)):te(f,s.customDate=!1,s)}u()},R=re=>re?isNaN(Number(re))||isNaN(parseFloat(re)):!1;function Z(re){d=re,l(5,d)}function G(re){g=re,l(6,g)}function de(re){b=re,l(7,b)}function ge(re){w=re,l(8,w)}function x(re){v=re,l(9,v)}function ae(re){k=re,l(10,k)}function Ee(re){E=re,l(0,E)}function De(re){T=re,l(11,T)}const Be=()=>te(N,i="relative",i);function Le(re){d=re,l(5,d)}function Ve(re){g=re,l(6,g)}function le(re){b=re,l(7,b)}const Me=()=>te(N,i="absolute",i);return r.$$.update=()=>{r.$$.dirty[0]&4194304&&l(1,t=s.conditional==="BETWEEN"),r.$$.dirty[0]&8388610&&l(21,n=t||!a),r.$$.dirty[0]&2097157&&l(12,o=i==="relative"&&!n&&(!E||R(E)))},[E,t,i,m,_,d,g,b,w,v,k,T,o,f,c,B,N,U,q,V,R,n,s,a,Z,G,de,ge,x,ae,Ee,De,Be,Le,Ve,le,Me]}class Ts extends fe{constructor(e){super(),ue(this,e,Es,Is,ce,{},null,[-1,-1])}}function Ds(r){let e;const l=r[5].default,t=$e(l,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&16)&&be(t,l,n,n[4],e?we(l,n[4],o,null):ke(n[4]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ls(r){let e,l,t,n;const o=r[5].default,s=$e(o,r,r[4],null);return{c(){e=P("button"),s&&s.c(),this.h()},l(i){e=F(i,"BUTTON",{class:!0});var a=M(e);s&&s.l(a),a.forEach(h),this.h()},h(){S(e,"class","flex items-center gap-1")},m(i,a){I(i,e,a),s&&s.m(e,null),l=!0,t||(n=pe(e,"click",r[6]),t=!0)},p(i,a){s&&s.p&&(!l||a&16)&&be(s,o,i,i[4],l?we(o,i[4],a,null):ke(i[4]),null)},i(i){l||(p(s,i),l=!0)},o(i){$(s,i),l=!1},d(i){i&&h(e),s&&s.d(i),t=!1,n()}}}function Cs(r){let e,l,t,n,o,s,i,a,f,u;const c=[Ls,Ds],m=[];function _(d,g){return d[1]?0:1}return l=_(r),t=m[l]=c[l](r),s=new ye({props:{name:"close"}}),{c(){e=P("span"),t.c(),n=O(),o=P("button"),D(s.$$.fragment),this.h()},l(d){e=F(d,"SPAN",{class:!0});var g=M(e);t.l(g),n=W(g),o=F(g,"BUTTON",{"aria-label":!0});var b=M(o);L(s.$$.fragment,b),b.forEach(h),g.forEach(h),this.h()},h(){S(o,"aria-label",r[2]),S(e,"class",i="chip "+r[0]+" svelte-jjsz31")},m(d,g){I(d,e,g),m[l].m(e,null),A(e,n),A(e,o),C(s,o,null),a=!0,f||(u=pe(o,"click",r[3]),f=!0)},p(d,[g]){let b=l;l=_(d),l===b?m[l].p(d,g):(J(),$(m[b],1,1,()=>{m[b]=null}),X(),t=m[l],t?t.p(d,g):(t=m[l]=c[l](d),t.c()),p(t,1),t.m(e,n)),(!a||g&4)&&S(o,"aria-label",d[2]),(!a||g&1&&i!==(i="chip "+d[0]+" svelte-jjsz31"))&&S(e,"class",i)},i(d){a||(p(t),p(s.$$.fragment,d),a=!0)},o(d){$(t),$(s.$$.fragment,d),a=!1},d(d){d&&h(e),m[l].d(),y(s),f=!1,u()}}}function ys(r,e,l){let{$$slots:t={},$$scope:n}=e,{intent:o="default"}=e,{button:s=!1}=e,{removeButtonLabel:i}=e;const a=ut(),f=c=>{c.preventDefault(),a("remove")};function u(c){Ae.call(this,r,c)}return r.$$set=c=>{"intent"in c&&l(0,o=c.intent),"button"in c&&l(1,s=c.button),"removeButtonLabel"in c&&l(2,i=c.removeButtonLabel),"$$scope"in c&&l(4,n=c.$$scope)},[o,s,i,f,n,t,u]}class Bs extends fe{constructor(e){super(),ue(this,e,ys,Cs,ce,{intent:0,button:1,removeButtonLabel:2})}}const Sr=["Running","TimedOut","Completed","Failed","ContinuedAsNew","Canceled","Terminated"];function Ss(r){return Sr.includes(r)}const Mt=["All",...Sr];function Gl(r,e,l){const t=r.slice();t[18]=e[l],t[24]=l;const n=t[18];return t[19]=n.attribute,t[20]=n.value,t[21]=n.conditional,t[22]=n.customDate,t}function Jl(r){let e,l,t,n;function o(){return r[14](r[24])}function s(){return r[15](r[24],r[18])}return l=new Bs({props:{removeButtonLabel:H("workflows","remove-filter-label",{attribute:r[19]}),intent:"default",button:!0,$$slots:{default:[Vs]},$$scope:{ctx:r}}}),l.$on("remove",o),l.$on("click",s),{c(){e=P("div"),D(l.$$.fragment)},l(i){e=F(i,"DIV",{});var a=M(e);L(l.$$.fragment,a),a.forEach(h)},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){r=i;const f={};a&2&&(f.removeButtonLabel=H("workflows","remove-filter-label",{attribute:r[19]})),a&33554482&&(f.$$scope={dirty:a,ctx:r}),l.$set(f)},i(i){n||(p(l.$$.fragment,i),t||at(()=>{t=st(e,fr,{}),t.start()}),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function As(r){let e,l=r[19]+"",t,n,o;function s(f,u){return u&2&&(o=null),o==null&&(o=!!il(f[19])),o?Fs:Ps}let i=s(r,-1),a=i(r);return{c(){e=P("span"),t=z(l),n=O(),a.c(),this.h()},l(f){e=F(f,"SPAN",{class:!0});var u=M(e);t=Q(u,l),n=W(u),a.l(u),u.forEach(h),this.h()},h(){S(e,"class","max-w-xs truncate md:max-w-lg xl:max-w-2xl")},m(f,u){I(f,e,u),A(e,t),A(e,n),a.m(e,null)},p(f,u){u&2&&l!==(l=f[19]+"")&&oe(t,l),i===(i=s(f,u))&&a?a.p(f,u):(a.d(1),a=i(f),a&&(a.c(),a.m(e,null)))},i:K,o:K,d(f){f&&h(e),a.d()}}}function Ns(r){let e,l=r[19]+"",t,n,o=r[21]+"",s,i,a,f,u;return f=new jt({props:{status:r[20]}}),{c(){e=P("span"),t=z(l),n=O(),s=z(o),i=O(),a=P("span"),D(f.$$.fragment),this.h()},l(c){e=F(c,"SPAN",{class:!0});var m=M(e);t=Q(m,l),n=W(m),s=Q(m,o),i=W(m),a=F(m,"SPAN",{class:!0});var _=M(a);L(f.$$.fragment,_),_.forEach(h),m.forEach(h),this.h()},h(){S(a,"class","-py-1 ml-1"),S(e,"class","flex")},m(c,m){I(c,e,m),A(e,t),A(e,n),A(e,s),A(e,i),A(e,a),C(f,a,null),u=!0},p(c,m){(!u||m&2)&&l!==(l=c[19]+"")&&oe(t,l),(!u||m&2)&&o!==(o=c[21]+"")&&oe(s,o);const _={};m&2&&(_.status=c[20]),f.$set(_)},i(c){u||(p(f.$$.fragment,c),u=!0)},o(c){$(f.$$.fragment,c),u=!1},d(c){c&&h(e),y(f)}}}function Ps(r){let e=r[21]+"",l,t,n=(Lt(r[19])?`"${r[20]}"`:r[20])+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p(s,i){i&2&&e!==(e=s[21]+"")&&oe(l,e),i&2&&n!==(n=(Lt(s[19])?`"${s[20]}"`:s[20])+"")&&oe(o,n)},d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Fs(r){let e;function l(o,s){return o[22]?Ws:Os}let t=l(r),n=t(r);return{c(){n.c(),e=ee()},l(o){n.l(o),e=ee()},m(o,s){n.m(o,s),I(o,e,s)},p(o,s){t===(t=l(o))&&n?n.p(o,s):(n.d(1),n=t(o),n&&(n.c(),n.m(e.parentNode,e)))},d(o){n.d(o),o&&h(e)}}}function Os(r){let e=r[10](r[21])+"",l,t,n=Fe(r[20],r[4],{relative:r[5],abbrFormat:!0})+"",o;return{c(){l=z(e),t=O(),o=z(n)},l(s){l=Q(s,e),t=W(s),o=Q(s,n)},m(s,i){I(s,l,i),I(s,t,i),I(s,o,i)},p(s,i){i&2&&e!==(e=s[10](s[21])+"")&&oe(l,e),i&50&&n!==(n=Fe(s[20],s[4],{relative:s[5],abbrFormat:!0})+"")&&oe(o,n)},d(s){s&&h(l),s&&h(t),s&&h(o)}}}function Ws(r){let e=r[11](r[20],r[4],r[5])+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&50&&e!==(e=t[11](t[20],t[4],t[5])+"")&&oe(l,e)},d(t){t&&h(l)}}}function Vs(r){let e,l,t,n,o;const s=[Ns,As],i=[];function a(f,u){return u&2&&(e=null),e==null&&(e=!!(f[19]==="ExecutionStatus"&&Ss(f[20]))),e?0:1}return l=a(r,-1),t=i[l]=s[l](r),{c(){t.c(),n=ee()},l(f){t.l(f),n=ee()},m(f,u){i[l].m(f,u),I(f,n,u),o=!0},p(f,u){let c=l;l=a(f,u),l===c?i[l].p(f,u):(J(),$(i[c],1,1,()=>{i[c]=null}),X(),t=i[l],t?t.p(f,u):(t=i[l]=s[l](f),t.c()),p(t,1),t.m(n.parentNode,n))},i(f){o||(p(t),o=!0)},o(f){$(t),o=!1},d(f){i[l].d(f),f&&h(n)}}}function Xl(r,e){let l,t,n,o=e[19]&&Jl(e);return{key:r,first:null,c(){l=ee(),o&&o.c(),t=ee(),this.h()},l(s){l=ee(),o&&o.l(s),t=ee(),this.h()},h(){this.first=l},m(s,i){I(s,l,i),o&&o.m(s,i),I(s,t,i),n=!0},p(s,i){e=s,e[19]?o?(o.p(e,i),i&2&&p(o,1)):(o=Jl(e),o.c(),p(o,1),o.m(t.parentNode,t)):o&&(J(),$(o,1,1,()=>{o=null}),X())},i(s){n||(p(o),n=!0)},o(s){$(o),n=!1},d(s){s&&h(l),o&&o.d(s),s&&h(t)}}}function Zl(r){let e,l;return e=new ft({props:{variant:"secondary",size:"xs",$$slots:{default:[Ms]},$$scope:{ctx:r}}}),e.$on("click",r[9]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&33554432&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ms(r){let e;return{c(){e=z("View More...")},l(l){e=Q(l,"View More...")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function Rs(r){let e,l=[],t=new Map,n,o,s=r[1];const i=f=>`${f[18].attribute}-${f[24]}`;for(let f=0;f{a=null}),X()),(!o||u&2)&&se(e,"pt-2",f[1].length)},i(f){if(!o){for(let u=0;ul(13,o=T)),j(r,Xe,T=>l(16,a=T)),j(r,ve,T=>l(17,f=T)),j(r,Ft,T=>l(4,u=T)),j(r,cr,T=>l(5,c=T));const{filter:m,activeQueryIndex:_}=Ke(je);j(r,m,T=>l(3,i=T)),j(r,_,T=>l(2,s=T));const d=T=>{if(o.splice(T,1),he.set(o),Qe(f.url,o,a),T===o.length){const E=o[o.length-1];E&&(E.operator="")}T===s?(te(_,s=null,s),te(m,i=Ze(),i)):T{n&&l(12,g+=5)},w=T=>["<","<="].includes(T)?H("before").toLowerCase():[">",">="].includes(T)?H("after").toLowerCase():T,v=(T,E,N)=>{const[U,q,Y,V]=T.split(" ");return`${U.toLowerCase()} ${Fe(q,E,{relative:N,abbrFormat:!0})} ${Y.toLowerCase()} ${Fe(V,E,{relative:N,abbrFormat:!0})}`},k=T=>d(T),B=(T,E)=>{te(_,s=T,s),te(m,i={...E},i)};return r.$$.update=()=>{r.$$.dirty&12288&&l(1,t=o.slice(0,g)),r.$$.dirty&12288&&l(0,n=g{k=null}),X()),(!b||E&2048)&&S(a,"max",T[11]),(!b||E&4096)&&S(a,"min",T[12]),(!b||E&256)&&(a.disabled=T[8]),(!b||E&64)&&S(a,"placeholder",T[6]),(!b||E&4)&&S(a,"id",T[2]),(!b||E&128)&&S(a,"name",T[7]),E&1&&sr(a.value)!==T[0]&&dl(a,T[0]),(!b||E&256)&&se(a,"disabled",T[8]),(!b||E&512&&f!==(f="input-container "+T[9]+" svelte-1851tme"))&&S(s,"class",f),(!b||E&768)&&se(s,"disabled",T[8]),(!b||E&33280)&&se(s,"search",T[15]),(!b||E&8704)&&se(s,"unroundRight",T[13]),(!b||E&16896)&&se(s,"unroundLeft",T[14]),(!b||E&66048)&&se(s,"invalid",!T[16]),(!b||E&32)&&oe(m,T[5]),(!b||E&131072&&_!==(_=_l(T[17].class)+" svelte-1851tme"))&&S(e,"class",_),!T[16]&&T[10]?B?B.p(T,E):(B=en(T),B.c(),B.m(g.parentNode,g)):B&&(B.d(1),B=null)},i(T){b||(p(k),b=!0)},o(T){$(k),b=!1},d(T){T&&h(e),k&&k.d(),T&&h(d),B&&B.d(T),T&&h(g),w=!1,bt(v)}}}function js(r,e,l){let{icon:t=null}=e,{id:n}=e,{value:o}=e,{label:s}=e,{labelHidden:i=!1}=e,{units:a=""}=e,{placeholder:f=""}=e,{name:u=n}=e,{disabled:c=!1}=e,{theme:m="light"}=e,{hintText:_=""}=e,{max:d=void 0}=e,{min:g=void 0}=e,{unroundRight:b=!1}=e,{unroundLeft:w=!1}=e,{search:v=!1}=e,k=!0;const B=V=>{g!==void 0&&Vd?l(16,k=!1):l(16,k=!0)};function T(V){Ae.call(this,r,V)}function E(V){Ae.call(this,r,V)}function N(V){Ae.call(this,r,V)}function U(V){Ae.call(this,r,V)}function q(V){Ae.call(this,r,V)}function Y(){o=sr(this.value),l(0,o)}return r.$$set=V=>{l(17,e=it(it({},e),ht(V))),"icon"in V&&l(1,t=V.icon),"id"in V&&l(2,n=V.id),"value"in V&&l(0,o=V.value),"label"in V&&l(3,s=V.label),"labelHidden"in V&&l(4,i=V.labelHidden),"units"in V&&l(5,a=V.units),"placeholder"in V&&l(6,f=V.placeholder),"name"in V&&l(7,u=V.name),"disabled"in V&&l(8,c=V.disabled),"theme"in V&&l(9,m=V.theme),"hintText"in V&&l(10,_=V.hintText),"max"in V&&l(11,d=V.max),"min"in V&&l(12,g=V.min),"unroundRight"in V&&l(13,b=V.unroundRight),"unroundLeft"in V&&l(14,w=V.unroundLeft),"search"in V&&l(15,v=V.search)},r.$$.update=()=>{r.$$.dirty&1&&B(o)},e=ht(e),[o,t,n,s,i,a,f,u,c,m,_,d,g,b,w,v,k,e,T,E,N,U,q,Y]}class zs extends fe{constructor(e){super(),ue(this,e,js,Us,ce,{icon:1,id:2,value:0,label:3,labelHidden:4,units:5,placeholder:6,name:7,disabled:8,theme:9,hintText:10,max:11,min:12,unroundRight:13,unroundLeft:14,search:15})}}function Qs(r){let e,l,t,n,o,s;l=new fl({props:{inputId:"number-filter-search",noBorderLeft:!0,noBorderRight:!0}});function i(f){r[4](f)}let a={label:H("number-input-placeholder"),labelHidden:!0,id:"number-filter-search",icon:"search",placeholder:H("number-input-placeholder"),min:Ar,unroundLeft:!0,search:!0,class:"-mr-2"};return r[0]!==void 0&&(a.value=r[0]),n=new zs({props:a}),ie.push(()=>me(n,"value",i)),n.$on("keydown",r[3]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(f){e=F(f,"DIV",{class:!0});var u=M(e);L(l.$$.fragment,u),t=W(u),L(n.$$.fragment,u),u.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(f,u){I(f,e,u),C(l,e,null),A(e,t),C(n,e,null),s=!0},p(f,[u]){const c={};!o&&u&1&&(o=!0,c.value=f[0],_e(()=>o=!1)),n.$set(c)},i(f){s||(p(l.$$.fragment,f),p(n.$$.fragment,f),s=!0)},o(f){$(l.$$.fragment,f),$(n.$$.fragment,f),s=!1},d(f){f&&h(e),y(l),y(n)}}}const Ar=0;function Ks(r,e,l){let t,n;const{filter:o,focusedElementId:s,handleSubmit:i}=Ke(je);j(r,o,c=>l(5,t=c)),j(r,s,c=>l(6,n=c));let a=t.value?Number(t.value):null;const f=c=>{te(s,n="",n),c.key==="Enter"&&a!==null&&a>=Ar&&(te(o,t.value=String(a),t),c.preventDefault(),i())};function u(c){a=c,l(0,a)}return[a,o,s,f,u]}class Ys extends fe{constructor(e){super(),ue(this,e,Ks,Qs,ce,{})}}const{Boolean:Gs}=Hr;function tn(r,e,l){const t=r.slice();t[15]=e[l].value,t[16]=e[l].label;const n=ni(t[15],t[4]);return t[17]=n,t}function Js(r){let e=(r[2].attribute||H("workflows","filter"))+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&4&&e!==(e=(t[2].attribute||H("workflows","filter"))+"")&&oe(l,e)},d(t){t&&h(l)}}}function ln(r){let e,l;return e=new ye({props:{name:"filter"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xs(r){let e,l,t=!r[2].attribute&&ln();return{c(){t&&t.c(),e=ee()},l(n){t&&t.l(n),e=ee()},m(n,o){t&&t.m(n,o),I(n,e,o),l=!0},p(n,o){n[2].attribute?t&&(J(),$(t,1,1,()=>{t=null}),X()):t?o&4&&p(t,1):(t=ln(),t.c(),p(t,1),t.m(e.parentNode,e))},i(n){l||(p(t),l=!0)},o(n){$(t),l=!1},d(n){t&&t.d(n),n&&h(e)}}}function nn(r){let e,l;return e=new Ie({props:{class:"whitespace-nowrap",disabled:!0,$$slots:{default:[Zs]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Zs(r){let e=H("no-results")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function xs(r){let e=r[16]+"",l,t;return{c(){l=z(e),t=O()},l(n){l=Q(n,e),t=W(n)},m(n,o){I(n,l,o),I(n,t,o)},p(n,o){o&2&&e!==(e=n[16]+"")&&oe(l,e)},d(n){n&&h(l),n&&h(t)}}}function rn(r){let e,l;function t(){return r[13](r[15])}return e=new Ie({props:{disabled:r[17],$$slots:{default:[xs]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&18&&(s.disabled=r[17]),o&1048578&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function ei(r){let e,l,t,n,o;function s(m){r[12](m)}let i={label:H("search"),labelHidden:!0,id:"filter-search",noBorder:!0,icon:"search",placeholder:H("search"),class:"mb-1"};r[0]!==void 0&&(i.value=r[0]),e=new Ne({props:i}),ie.push(()=>me(e,"value",s));let a=r[1],f=[];for(let m=0;m$(f[m],1,1,()=>{f[m]=null});let c=null;return a.length||(c=nn(r)),{c(){D(e.$$.fragment),t=O();for(let m=0;ml=!1)),e.$set(d),_&274){a=m[1];let g;for(g=0;g{c=null}),X()):(c=nn(m),c.c(),p(c,1),c.m(n.parentNode,n))}},i(m){if(!o){p(e.$$.fragment,m);for(let _=0;_(l.conditional==="="||l.conditional==="!=")&&l.attribute===r)}function ri(r,e,l){let t,n,o,s,i,a,f;j(r,Io,v=>l(10,o=v)),j(r,he,v=>l(4,f=v));const{filter:u,activeQueryIndex:c,focusedElementId:m}=Ke(je);j(r,u,v=>l(2,i=v)),j(r,c,v=>l(3,a=v)),j(r,m,v=>l(14,s=v));function _(v){l(0,d=""),u.set({...Ze(),attribute:v,conditional:"="}),te(m,s=Br(v),s)}let d="";const g=()=>l(0,d="");function b(v){d=v,l(0,d)}const w=v=>{_(v)};return r.$$.update=()=>{r.$$.dirty&1024&&l(9,t=o.filter(v=>!Lr(v.value))),r.$$.dirty&513&&l(1,n=d?t.filter(v=>v.value.toLowerCase().includes(d.toLowerCase())):t)},[d,n,i,a,f,u,c,m,_,t,o,g,b,w]}class oi extends fe{constructor(e){super(),ue(this,e,ri,li,ce,{})}}function ai(r){let e,l;return e=new ye({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function si(r){let e,l;return e=new ye({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ii(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b=[{id:r[1]},{__value:r[8]},{type:"checkbox"},{indeterminate:r[5]},{disabled:r[6]},Bl(r[10],"data-testid")],w={};for(let T=0;T{k[N]=null}),X()),~f?(u=k[f],u||(u=k[f]=v[f](T),u.c()),p(u,1),u.m(a,null)):u=null),(!_||E&128)&&se(a,"hoverable",T[7]),(!_||E&16)&&se(a,"on-dark",T[4]),(!_||E&128)&&se(l,"hoverable",T[7]),(!_||E&64)&&se(l,"disabled",T[6]),(!_||E&16)&&se(l,"on-dark",T[4]),(!_||E&1024&&c!==(c=T[10]["data-testid"]??null))&&S(e,"data-testid",c),(!_||E&2048&&m!==(m="relative "+T[11].class+" svelte-1ic6fbx"))&&S(e,"class",m)},i(T){_||(p(u),_=!0)},o(T){$(u),_=!1},d(T){T&&h(e),~f&&k[f].d(),d=!1,bt(g)}}}function fi(r,e,l){const t=["id","checked","label","labelHidden","onDark","indeterminate","disabled","hoverable","value","group"];let n=gl(e,t),{id:o=""}=e,{checked:s=!1}=e,{label:i}=e,{labelHidden:a=!1}=e,{onDark:f=!1}=e,{indeterminate:u=!1}=e,{disabled:c=!1}=e,{hoverable:m=!1}=e,{value:_=void 0}=e,{group:d=void 0}=e;const g=ut(),b=N=>{const{checked:U}=N.currentTarget;d!==void 0&&(U?l(12,d=[...d,_]):l(12,d=d.filter(q=>q!==_))),l(0,s=U),g("change",{checked:N.currentTarget.checked,value:_})};function w(N){Ae.call(this,r,N)}function v(N){Ae.call(this,r,N)}function k(N){Ae.call(this,r,N)}function B(N){Ae.call(this,r,N)}function T(N){Ae.call(this,r,N)}function E(){s=this.checked,l(0,s),l(12,d),l(8,_)}return r.$$set=N=>{l(11,e=it(it({},e),ht(N))),l(10,n=gl(e,t)),"id"in N&&l(1,o=N.id),"checked"in N&&l(0,s=N.checked),"label"in N&&l(2,i=N.label),"labelHidden"in N&&l(3,a=N.labelHidden),"onDark"in N&&l(4,f=N.onDark),"indeterminate"in N&&l(5,u=N.indeterminate),"disabled"in N&&l(6,c=N.disabled),"hoverable"in N&&l(7,m=N.hoverable),"value"in N&&l(8,_=N.value),"group"in N&&l(12,d=N.group)},r.$$.update=()=>{r.$$.dirty&4353&&l(0,s=d!==void 0?d.includes(_):s)},e=ht(e),[s,o,i,a,f,u,c,m,_,b,n,e,d,w,v,k,B,T,E]}class Qt extends fe{constructor(e){super(),ue(this,e,fi,ii,ce,{id:1,checked:0,label:2,labelHidden:3,onDark:4,indeterminate:5,disabled:6,hoverable:7,value:8,group:12})}}function on(r,e,l){const t=r.slice();t[18]=e[l];const n=t[0].some(function(...s){return r[12](t[18],...s)})||!t[0].length&&t[18]==="All";return t[19]=n,t}function ui(r){let e=r[1].attribute+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&2&&e!==(e=t[1].attribute+"")&&oe(l,e)},d(t){t&&h(l)}}}function ci(r){let e,l;return e=new jt({props:{status:r[18]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function mi(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"all-statuses"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _i(r){let e,l,t,n;const o=[mi,ci],s=[];function i(a,f){return a[18]==="All"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){l.p(a,f)},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function di(r){let e,l;function t(){return r[10](r[18])}return e=new Qt({props:{slot:"leading",checked:r[19],label:r[18],labelHidden:!0}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1&&(s.checked=r[19]),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function an(r,e){let l,t,n;function o(){return e[11](e[18])}return t=new Ie({props:{"data-testid":e[18],$$slots:{leading:[di],default:[_i]},$$scope:{ctx:e}}}),t.$on("click",o),{key:r,first:null,c(){l=ee(),D(t.$$.fragment),this.h()},l(s){l=ee(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,i){I(s,l,i),C(t,s,i),n=!0},p(s,i){e=s;const a={};i&4194305&&(a.$$scope={dirty:i,ctx:e}),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){$(t.$$.fragment,s),n=!1},d(s){s&&h(l),y(t,s)}}}function pi(r){let e=[],l=new Map,t,n,o,s=Mt;const i=a=>a[18];for(let a=0;al(8,o=T)),j(r,Xe,T=>l(13,i=T)),j(r,ve,T=>l(14,a=T));const{filter:u,resetFilter:c}=Ke(je);j(r,u,T=>l(1,s=T));const m=Je(!0);j(r,m,T=>l(2,f=T));function _(){te(he,o=t,o),Qe(a.url,o,i)}function d(T){return{...s,value:T}}function g(T){return T.length===1?[d(T[0].value)]:T.map((E,N)=>{const U=N===T.length-1?"":"OR";return{...E,operator:U}})}const b=T=>{if(T==="All")l(7,t=o.filter(E=>E.attribute!=="ExecutionStatus"));else if(n.find(E=>E.value===T)){const E=o.filter(N=>!gt(N.attribute));l(7,t=[...E,...g(n.filter(N=>N.value!==T))])}else if(!n.length)l(7,t=[...t,d(T)]);else{const E=t.filter(N=>!gt(N.attribute));l(7,t=[...E,...g([...n,d(T)])])}_()},w=()=>{f&&c()},v=T=>b(T),k=T=>{b(T)},B=(T,E)=>E.value===T;return r.$$.update=()=>{r.$$.dirty&256&&l(7,t=[...o]),r.$$.dirty&128&&l(0,n=t.filter(T=>gt(T.attribute)))},[n,s,f,u,c,m,b,t,o,w,v,k,B]}class bi extends fe{constructor(e){super(),ue(this,e,$i,hi,ce,{})}}function ki(r){let e,l,t,n,o;e=new fl({props:{options:[{value:"=",label:H("equal-to")},{value:"!=",label:H("not-equal-to")}],inputId:"text-filter-search",noBorderLeft:!0}});function s(a){r[4](a)}let i={label:r[1].attribute,labelHidden:!0,id:"text-filter-search",type:"search",placeholder:`${H("enter")} ${r[1].attribute}`,icon:"search",class:"w-full",unroundLeft:!0};return r[0]!==void 0&&(i.value=r[0]),t=new Ne({props:i}),ie.push(()=>me(t,"value",s)),t.$on("keydown",r[3]),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(a){L(e.$$.fragment,a),l=W(a),L(t.$$.fragment,a)},m(a,f){C(e,a,f),I(a,l,f),C(t,a,f),o=!0},p(a,[f]){const u={};f&2&&(u.label=a[1].attribute),f&2&&(u.placeholder=`${H("enter")} ${a[1].attribute}`),!n&&f&1&&(n=!0,u.value=a[0],_e(()=>n=!1)),t.$set(u)},i(a){o||(p(e.$$.fragment,a),p(t.$$.fragment,a),o=!0)},o(a){$(e.$$.fragment,a),$(t.$$.fragment,a),o=!1},d(a){y(e,a),a&&h(l),y(t,a)}}}function wi(r,e,l){let t;const{filter:n,handleSubmit:o}=Ke(je);j(r,n,f=>l(1,t=f));let s=t.value;function i(f){f.key==="Enter"&&s!==""&&(f.preventDefault(),te(n,t.value=s,t),o())}function a(f){s=f,l(0,s)}return[s,t,n,i,a]}let vi=class extends fe{constructor(e){super(),ue(this,e,wi,ki,ce,{})}};function Ii(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b,w;const v=[Di,Ti],k=[];function B(q,Y){return Y&1&&(l=null),l==null&&(l=!!gt(q[0].attribute)),l?0:1}t=B(r,-1),n=k[t]=v[t](r);const T=[Bi,yi,Ci,Li],E=[];function N(q,Y){return Y&1&&(s=null),Y&1&&(i=null),Y&1&&(a=null),Y&1&&(f=null),s==null&&(s=!!Lt(q[0].attribute)),s?0:(i==null&&(i=!!Cr(q[0].attribute)),i?1:(a==null&&(a=!!il(q[0].attribute)),a?2:(f==null&&(f=!!yr(q[0].attribute)),f?3:-1)))}~(u=N(r,-1))&&(c=E[u]=T[u](r));let U=r[2]&&sn(r);return{c(){e=P("div"),n.c(),o=O(),c&&c.c(),m=O(),_=P("div"),U&&U.c(),this.h()},l(q){e=F(q,"DIV",{class:!0});var Y=M(e);n.l(Y),o=W(Y),c&&c.l(Y),Y.forEach(h),m=W(q),_=F(q,"DIV",{class:!0});var V=M(_);U&&U.l(V),V.forEach(h),this.h()},h(){S(e,"class","flex items-center svelte-d4361j"),se(e,"filter",!r[2]),S(_,"class",d="flex flex-col sm:flex-row "+(r[2]?"w-full justify-between":"justify-end"))},m(q,Y){I(q,e,Y),k[t].m(e,null),A(e,o),~u&&E[u].m(e,null),I(q,m,Y),I(q,_,Y),U&&U.m(_,null),g=!0,b||(w=pe(e,"keyup",r[8]),b=!0)},p(q,Y){let V=t;t=B(q,Y),t!==V&&(J(),$(k[V],1,1,()=>{k[V]=null}),X(),n=k[t],n||(n=k[t]=v[t](q),n.c()),p(n,1),n.m(e,o));let R=u;u=N(q,Y),u!==R&&(c&&(J(),$(E[R],1,1,()=>{E[R]=null}),X()),~u?(c=E[u],c||(c=E[u]=T[u](q),c.c()),p(c,1),c.m(e,null)):c=null),(!g||Y&4)&&se(e,"filter",!q[2]),q[2]?U?(U.p(q,Y),Y&4&&p(U,1)):(U=sn(q),U.c(),p(U,1),U.m(_,null)):U&&(J(),$(U,1,1,()=>{U=null}),X()),(!g||Y&4&&d!==(d="flex flex-col sm:flex-row "+(q[2]?"w-full justify-between":"justify-end")))&&S(_,"class",d)},i(q){g||(p(n),p(c),p(U),g=!0)},o(q){$(n),$(c),$(U),g=!1},d(q){q&&h(e),k[t].d(),~u&&E[u].d(),q&&h(m),q&&h(_),U&&U.d(),b=!1,w()}}}function Ei(r){let e,l;return e=new Dr({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ti(r){let e,l;return e=new oi({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Di(r){let e,l;return e=new bi({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Li(r){let e,l,t,n,o,s;return l=new ts({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function Ci(r){let e,l,t,n,o,s;return l=new Ts({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function yi(r){let e,l,t,n,o,s;return l=new Ys({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function Bi(r){let e,l,t,n,o,s;return l=new vi({}),n=new zt({}),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(i){e=F(i,"DIV",{class:!0});var a=M(e);L(l.$$.fragment,a),t=W(a),L(n.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","flex w-full items-center")},m(i,a){I(i,e,a),C(l,e,null),A(e,t),C(n,e,null),s=!0},i(i){s||(p(l.$$.fragment,i),p(n.$$.fragment,i),o||at(()=>{o=st(e,Bt,{x:-100,duration:150}),o.start()}),s=!0)},o(i){$(l.$$.fragment,i),$(n.$$.fragment,i),s=!1},d(i){i&&h(e),y(l),y(n)}}}function sn(r){let e,l;return e=new ft({props:{variant:"ghost",$$slots:{default:[Si]},$$scope:{ctx:r}}}),e.$on("click",r[6]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2097152&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Si(r){let e=H("clear-all")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ai(r){let e,l,t,n,o,s,i,a,f,u;const c=[Ei,Ii],m=[];function _(b,w){return b[1]?0:1}t=_(r),n=m[t]=c[t](r);function d(b){r[12](b)}let g={label:H("workflows","view-search-input"),labelPosition:"left",id:"view-search-input"};return r[1]!==void 0&&(g.checked=r[1]),s=new vo({props:g}),ie.push(()=>me(s,"checked",d)),s.$on("change",r[13]),f=new qs({}),{c(){e=P("div"),l=P("div"),n.c(),o=O(),D(s.$$.fragment),a=O(),D(f.$$.fragment),this.h()},l(b){e=F(b,"DIV",{class:!0});var w=M(e);l=F(w,"DIV",{class:!0});var v=M(l);n.l(v),o=W(v),L(s.$$.fragment,v),v.forEach(h),a=W(w),L(f.$$.fragment,w),w.forEach(h),this.h()},h(){S(l,"class","flex grow flex-col gap-4 sm:flex-row sm:items-center"),S(e,"class","flex grow flex-col")},m(b,w){I(b,e,w),A(e,l),m[t].m(l,null),A(l,o),C(s,l,null),A(e,a),C(f,e,null),u=!0},p(b,[w]){let v=t;t=_(b),t===v?m[t].p(b,w):(J(),$(m[v],1,1,()=>{m[v]=null}),X(),n=m[t],n?n.p(b,w):(n=m[t]=c[t](b),n.c()),p(n,1),n.m(l,o));const k={};!i&&w&2&&(i=!0,k.checked=b[1],_e(()=>i=!1)),s.$set(k)},i(b){u||(p(n),p(s.$$.fragment,b),p(f.$$.fragment,b),u=!0)},o(b){$(n),$(s.$$.fragment,b),$(f.$$.fragment,b),u=!1},d(b){b&&h(e),m[t].d(),y(s),y(f)}}}const je="filter-context";function Ni(r,e,l){let t,n,o,s,i,a,f,u;j(r,he,U=>l(10,a=U)),j(r,ve,U=>l(11,f=U)),j(r,xe,U=>l(16,u=U));const c=Je(Ze());j(r,c,U=>l(0,o=U));const m=Je(null);j(r,m,U=>l(9,i=U));const _=Je("");j(r,_,U=>l(15,s=U));let d=!1;Ur(je,{filter:c,activeQueryIndex:m,handleSubmit:b,focusedElementId:_,resetFilter:B});function g(){const U=Er(Tr(a));U&&U===t?te(xe,u=Date.now(),u):Ue({url:f.url,parameter:"query",value:U,allowEmpty:!0})}function b(){i!==null?(te(he,a[i]=o,a),te(m,i=null,i)):te(he,a=[...a,o],a),c.set(Ze()),g()}function w(){te(he,a=[],a),g()}function v(){i!==null&&te(_,s=Br(o.attribute),s)}function k(){if(s){const U=document.getElementById(s);U&&(U.focus(),U instanceof HTMLButtonElement&&U.click())}}jr(()=>{k()});function B(){m.set(null),c.set(Ze())}function T(U){U.key==="Escape"&&!Lt(o.attribute)&&B()}function E(U){d=U,l(1,d)}const N=()=>{B()};return r.$$.update=()=>{r.$$.dirty&2048&&(t=f.url.searchParams.get("query")),r.$$.dirty&1025&&l(2,n=a.length&&!o.attribute),r.$$.dirty&512&&v()},[o,d,n,c,m,_,w,B,T,i,a,f,E,N]}class Pi extends fe{constructor(e){super(),ue(this,e,Ni,Ai,ce,{})}}const Gt=""+new URL("../assets/empty-state-dark_2x.91ea3d8e.png",import.meta.url).href,fn=""+new URL("../assets/empty-state-light_2x.212be1d9.png",import.meta.url).href;function un(r,e,l){const t=r.slice();return t[7]=e[l],t}const Fi=r=>({}),cn=r=>({});function Oi(r){let e,l,t,n,o,s;function i(_,d){return _[1]?Mi:Vi}let a=i(r),f=a(r);const u=[qi,Hi,Ri],c=[];function m(_,d){return _[2]?0:_[1]?1:2}return t=m(r),n=c[t]=u[t](r),{c(){e=P("h2"),f.c(),l=O(),n.c(),o=ee(),this.h()},l(_){e=F(_,"H2",{class:!0});var d=M(e);f.l(d),d.forEach(h),l=W(_),n.l(_),o=ee(),this.h()},h(){S(e,"class","text-lg font-medium")},m(_,d){I(_,e,d),f.m(e,null),I(_,l,d),c[t].m(_,d),I(_,o,d),s=!0},p(_,d){a===(a=i(_))&&f?f.p(_,d):(f.d(1),f=a(_),f&&(f.c(),f.m(e,null)));let g=t;t=m(_),t===g?c[t].p(_,d):(J(),$(c[g],1,1,()=>{c[g]=null}),X(),n=c[t],n?n.p(_,d):(n=c[t]=u[t](_),n.c()),p(n,1),n.m(o.parentNode,o))},i(_){s||(p(n),s=!0)},o(_){$(n),s=!1},d(_){_&&h(e),f.d(),_&&h(l),c[t].d(_),_&&h(o)}}}function Wi(r){let e,l;return e=new ol({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Vi(r){let e=H("workflows","workflow-empty-state-title")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Mi(r){let e=H("workflows","workflow-query-empty-state-title")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Ri(r){let e,l,t=H("workflows","workflow-empty-state-description")+"",n,o,s,i,a,f,u;const c=r[5].cloud,m=$e(c,r,r[6],cn);s=new It({props:{newTab:!0,href:"https://github.com/temporalio",$$slots:{default:[Ui]},$$scope:{ctx:r}}});let _=r[3],d=[];for(let b=0;b<_.length;b+=1)d[b]=mn(un(r,_,b));const g=b=>$(d[b],1,1,()=>{d[b]=null});return{c(){m&&m.c(),e=O(),l=P("p"),n=z(t),o=O(),D(s.$$.fragment),i=z("."),a=O(),f=P("ul");for(let b=0;b{_[w]=null}),X(),s=_[o],s?s.p(g,b):(s=_[o]=m[o](g),s.c()),p(s,1),s.m(n,null)),(!c||b&2&&!hl(f.src,u=g[1]?fn:Gt))&&S(f,"src",u)},i(g){c||(p(s),c=!0)},o(g){$(s),c=!1},d(g){h(e),g&&h(l),g&&h(t),_[o].d()}}}function Ki(r,e,l){let t,n,o;j(r,ve,u=>l(4,n=u)),j(r,dr,u=>l(2,o=u));let{$$slots:s={},$$scope:i}=e,{updating:a=!1}=e;const f=["samples-go","samples-java","samples-typescript","samples-python","samples-dotnet","samples-php"];return r.$$set=u=>{"updating"in u&&l(0,a=u.updating),"$$scope"in u&&l(6,i=u.$$scope)},r.$$.update=()=>{r.$$.dirty&16&&l(1,t=n.url.searchParams.get("query"))},[a,t,o,f,n,s,i]}class Yi extends fe{constructor(e){super(),ue(this,e,Ki,Qi,ce,{updating:0})}}const Gi=r=>({visibleItems:r&256}),_n=r=>({slot:"cloud",visibleItems:r[8].items});function dn(r,e,l){const t=r.slice();return t[23]=e[l],t}const Ji=r=>({visibleItems:r&256}),pn=r=>({visibleItems:r[8].items}),Xi=r=>({visibleItems:r&256}),gn=r=>({visibleItems:r[8].items}),Zi=r=>({visibleItems:r&256}),hn=r=>({visibleItems:r[8].items});function $n(r){let e,l;return e=new Bo({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function xi(r){let e,l;return e=new Yi({props:{updating:r[0],$$slots:{cloud:[tf]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.updating=t[0]),n&4194560&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ef(r){let e,l,t,n,o,s,i,a,f,u,c;t=new ko({props:{label:r[1],parameter:Pt,value:r[6],options:_r}});let m=r[8].pageShortcuts,_=[];for(let g=0;g$(_[g],1,1,()=>{_[g]=null});return a=new Oe({props:{label:r[4],disabled:!r[8].hasPrevious,icon:"arrow-left"}}),a.$on("click",r[19]),u=new Oe({props:{label:r[3],disabled:!r[8].hasNext,icon:"arrow-right"}}),u.$on("click",r[20]),{c(){e=P("div"),l=P("div"),D(t.$$.fragment),n=O(),o=P("div");for(let g=0;g<_.length;g+=1)_[g].c();s=O(),i=P("div"),D(a.$$.fragment),f=O(),D(u.$$.fragment),this.h()},l(g){e=F(g,"DIV",{class:!0});var b=M(e);l=F(b,"DIV",{class:!0});var w=M(l);L(t.$$.fragment,w),w.forEach(h),n=W(b),o=F(b,"DIV",{class:!0});var v=M(o);for(let B=0;B<_.length;B+=1)_[B].l(v);v.forEach(h),s=W(b),i=F(b,"DIV",{class:!0});var k=M(i);L(a.$$.fragment,k),f=W(k),L(u.$$.fragment,k),k.forEach(h),b.forEach(h),this.h()},h(){S(l,"class","paginated-table-controls-start svelte-5xhosh"),S(o,"class","paginated-table-controls-center svelte-5xhosh"),S(i,"class","paginated-table-controls-end svelte-5xhosh"),S(e,"class","paginated-table-controls svelte-5xhosh")},m(g,b){I(g,e,b),A(e,l),C(t,l,null),A(e,n),A(e,o);for(let w=0;w<_.length;w+=1)_[w].m(o,null);A(e,s),A(e,i),C(a,i,null),A(i,f),C(u,i,null),c=!0},p(g,b){const w={};if(b&2&&(w.label=g[1]),b&64&&(w.value=g[6]),t.$set(w),b&1284){m=g[8].pageShortcuts;let B;for(B=0;B{i[c]=null}),X(),t=i[l],t?t.p(f,u):(t=i[l]=s[l](f),t.c()),p(t,1),t.m(n.parentNode,n))},i(f){o||(p(t),o=!0)},o(f){$(t),o=!1},d(f){i[l].d(f),f&&h(n)}}}function of(r){let e,l,t,n,o,s,i,a,f,u,c;const m=r[17].caption,_=$e(m,r,r[22],hn),d=r[17].headers,g=$e(d,r,r[22],gn);let b=r[0]&&$n();const w=r[17].default,v=$e(w,r,r[22],pn),k=[ef,xi],B=[];function T(E,N){return E[8].items.length?0:1}return f=T(r),u=B[f]=k[f](r),{c(){e=P("div"),l=P("table"),_&&_.c(),t=O(),n=P("thead"),g&&g.c(),o=O(),b&&b.c(),s=O(),i=P("tbody"),v&&v.c(),a=O(),u.c(),this.h()},l(E){e=F(E,"DIV",{class:!0,style:!0});var N=M(e);l=F(N,"TABLE",{class:!0});var U=M(l);_&&_.l(U),t=W(U),n=F(U,"THEAD",{class:!0});var q=M(n);g&&g.l(q),o=W(q),b&&b.l(q),q.forEach(h),s=W(U),i=F(U,"TBODY",{class:!0});var Y=M(i);v&&v.l(Y),Y.forEach(h),U.forEach(h),a=W(N),u.l(N),N.forEach(h),this.h()},h(){S(n,"class","paginated-table-header svelte-5xhosh"),S(i,"class","paginated-table-body svelte-5xhosh"),S(l,"class","paginated-table svelte-5xhosh"),S(e,"class","paginated-table-wrapper svelte-5xhosh"),$l(e,"max-height","calc(100vh - "+r[9]+"px)")},m(E,N){I(E,e,N),A(e,l),_&&_.m(l,null),A(l,t),A(l,n),g&&g.m(n,null),A(n,o),b&&b.m(n,null),A(l,s),A(l,i),v&&v.m(i,null),A(e,a),B[f].m(e,null),r[21](e),c=!0},p(E,[N]){_&&_.p&&(!c||N&4194560)&&be(_,m,E,E[22],c?we(m,E[22],N,Zi):ke(E[22]),hn),g&&g.p&&(!c||N&4194560)&&be(g,d,E,E[22],c?we(d,E[22],N,Xi):ke(E[22]),gn),E[0]?b?N&1&&p(b,1):(b=$n(),b.c(),p(b,1),b.m(n,null)):b&&(J(),$(b,1,1,()=>{b=null}),X()),v&&v.p&&(!c||N&4194560)&&be(v,w,E,E[22],c?we(w,E[22],N,Ji):ke(E[22]),pn);let U=f;f=T(E),f===U?B[f].p(E,N):(J(),$(B[U],1,1,()=>{B[U]=null}),X(),u=B[f],u?u.p(E,N):(u=B[f]=k[f](E),u.c()),p(u,1),u.m(e,null)),(!c||N&512)&&$l(e,"max-height","calc(100vh - "+E[9]+"px)")},i(E){c||(p(_,E),p(g,E),p(b),p(v,E),p(u),c=!0)},o(E){$(_,E),$(g,E),$(b),$(v,E),$(u),c=!1},d(E){E&&h(e),_&&_.d(E),g&&g.d(E),b&&b.d(),v&&v.d(E),B[f].d(),r[21](null)}}}function af(r,e,l){let t,n,o,s,i,a,f=K,u=()=>(f(),f=Xt(s,R=>l(8,a=R)),s),c;j(r,ve,R=>l(16,c=R)),r.$$.on_destroy.push(()=>f());let{$$slots:m={},$$scope:_}=e;var d,g;let{items:b}=e,{updating:w=!1}=e,{perPageLabel:v}=e,{pageButtonLabel:k}=e,{nextPageButtonLabel:B}=e,{previousPageButtonLabel:T}=e,E;const N=R=>{Ue({parameter:Nt,value:R,url:t})},U=R=>N(R),q=()=>N(a.currentPage-1),Y=()=>N(a.currentPage+1);function V(R){ie[R?"unshift":"push"](()=>{E=R,l(5,E)})}return r.$$set=R=>{"items"in R&&l(11,b=R.items),"updating"in R&&l(0,w=R.updating),"perPageLabel"in R&&l(1,v=R.perPageLabel),"pageButtonLabel"in R&&l(2,k=R.pageButtonLabel),"nextPageButtonLabel"in R&&l(3,B=R.nextPageButtonLabel),"previousPageButtonLabel"in R&&l(4,T=R.previousPageButtonLabel),"$$scope"in R&&l(22,_=R.$$scope)},r.$$.update=()=>{r.$$.dirty&65536&&l(15,t=c.url),r.$$.dirty&36864&&l(6,n=l(12,d=t.searchParams.get(Pt))!==null&&d!==void 0?d:String(Cl)),r.$$.dirty&40960&&l(14,o=l(13,g=t.searchParams.get(Nt))!==null&&g!==void 0?g:"1"),r.$$.dirty&18496&&u(l(7,s=bo(b,n,o))),r.$$.dirty&32832&&(parseInt(n,10)>parseInt(yl,10)?Ue({parameter:Pt,value:yl,url:t}):_r.includes(n)||Ue({parameter:Pt,value:Cl,url:t})),r.$$.dirty&49408&&(a.totalPages&&parseInt(o,10)>a.totalPages?Ue({parameter:Nt,value:a.totalPages,url:t}):(o===null||parseInt(o,10)<0)&&Ue({parameter:Nt,value:"1",url:t})),r.$$.dirty&16576&&(o&&s.jumpToPage(o),n&&s.adjustPageSize(n)),r.$$.dirty&32&&l(9,i=E!=null&&E.offsetTop?(E==null?void 0:E.offsetTop)+32:0)},[w,v,k,B,T,E,n,s,a,i,N,b,d,g,o,t,c,m,U,q,Y,V,_]}class sf extends fe{constructor(e){super(),ue(this,e,af,of,ce,{items:11,updating:0,perPageLabel:1,pageButtonLabel:2,nextPageButtonLabel:3,previousPageButtonLabel:4})}}const ff=2,rt=[{label:"Status",pinned:!0},{label:"Workflow ID",pinned:!0},{label:"Run ID",pinned:!1},{label:"Type",pinned:!1},{label:"Start",pinned:!1},{label:"End",pinned:!1}],uf=[{label:"History Size",pinned:!1},{label:"History Length",pinned:!1},{label:"Execution Time",pinned:!1},{label:"Execution Duration",pinned:!1},{label:"State Transitions",pinned:!1},{label:"Parent Namespace",pinned:!1},{label:"Task Queue",pinned:!1}],Nr=r=>r.label!=="Parent Workflow ID",cf=()=>{let r;try{const e=window.localStorage.getItem("workflow-table-columns"),l=JSON.parse(e);e&&(l!=null&&l.length)?r=l.filter(Nr):r=rt}catch{r=rt}return r},tl=br("namespace-workflow-table-columns",{}),Kt=ct([So,ve,tl],([r,e,l])=>{const t={},n=(i,a)=>{var u;if(!((u=i==null?void 0:i[a])!=null&&u.length))return i[a]=[...cf()],i[a];const f=i[a].filter(Nr);return f.length!==i[a].length&&(i[a]=f,tl.set(i)),i[a]},o=(r==null?void 0:r.reduce((i,{namespaceInfo:{name:a}})=>({...i,[a]:n(l,a)}),t))??{},{namespace:s}=e.params;return o[s]?o:{...o,[s]:n(l,s)}});br("workflow-table-pinned-columns-width");const mf=r=>ct(Kt,e=>[...rt,...uf].filter(l=>{var t;return!((t=e[r])!=null&&t.some(n=>n.label===l.label))})),_f=r=>ct([hr,Kt],([e,l])=>Object.keys(e).filter(t=>{var n;return!((n=l[r])!=null&&n.some(o=>o.label===t))}).map(t=>({label:t,pinned:!1}))),df=(r,e)=>{switch(r.type){case"WORKFLOW_COLUMN.ADD":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt;return{...e,[t]:[...n,{label:l,pinned:!1}]}}case"WORKFLOW_COLUMN.REMOVE":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt;return{...e,[t]:n.filter(({label:o})=>o!==l)}}case"WORKFLOW_COLUMN.PIN":{const{label:l,namespace:t}=r.payload,n=(e==null?void 0:e[t])??rt,o=n.findIndex(({label:f})=>f===l),s=n[o].pinned;let i=-1;for(let f=n.length-1;f>=0;f--)if(n[f].pinned){i=f;break}const a=[...n];return a[o].pinned=!s,o>i&&!s?a.splice(i+1,0,a.splice(o,1)[0]):o=0;f--)if(o[f].pinned){i=f;break}const a=[...o];return t<=i&&!s?a[l].pinned=!0:t>i&&s&&(a[l].pinned=!1),a.splice(t,0,a.splice(l,1)[0]),{...e,[n]:a.map((f,u)=>u>ff-1?{...f,pinned:!1}:f)}}default:return e}},ul=r=>{tl.update(e=>df(r,e))},kn=(r,e)=>{ul({type:"WORKFLOW_COLUMN.ADD",payload:{label:r,namespace:e}})},pf=(r,e)=>{ul({type:"WORKFLOW_COLUMN.REMOVE",payload:{label:r,namespace:e}})},gf=(r,e,l)=>{ul({type:"WORKFLOW_COLUMN.MOVE",payload:{from:r,to:e,namespace:l}})};function wn(r){let e,l,t,n,o;return l=new Oe({props:{disabled:r[5]===0,icon:"chevron-up","data-testid":"orderable-list-item-"+r[1]+"-move-up-button",label:r[7]}}),l.$on("click",r[19]),n=new Oe({props:{disabled:r[5]===r[6]-1,icon:"chevron-down","data-testid":"orderable-list-item-"+r[1]+"-move-down-button",label:r[8]}}),n.$on("click",r[20]),{c(){e=P("div"),D(l.$$.fragment),t=O(),D(n.$$.fragment),this.h()},l(s){e=F(s,"DIV",{class:!0});var i=M(e);L(l.$$.fragment,i),t=W(i),L(n.$$.fragment,i),i.forEach(h),this.h()},h(){S(e,"class","flex items-center")},m(s,i){I(s,e,i),C(l,e,null),A(e,t),C(n,e,null),o=!0},p(s,i){const a={};i&32&&(a.disabled=s[5]===0),i&2&&(a["data-testid"]="orderable-list-item-"+s[1]+"-move-up-button"),i&128&&(a.label=s[7]),l.$set(a);const f={};i&96&&(f.disabled=s[5]===s[6]-1),i&2&&(f["data-testid"]="orderable-list-item-"+s[1]+"-move-down-button"),i&256&&(f.label=s[8]),n.$set(f)},i(s){o||(p(l.$$.fragment,s),p(n.$$.fragment,s),o=!0)},o(s){$(l.$$.fragment,s),$(n.$$.fragment,s),o=!1},d(s){s&&h(e),y(l),y(n)}}}function vn(r){let e,l,t,n;const o=[$f,hf],s=[];function i(a,f){return a[3]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function hf(r){let e,l;return e=new Oe({props:{icon:"pin","data-testid":"orderable-list-item-"+r[1]+"-pin-button",label:r[9]}}),e.$on("click",r[22]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-pin-button"),n&512&&(o.label=t[9]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $f(r){let e,l;return e=new Oe({props:{icon:"pin-filled","data-testid":"orderable-list-item-"+r[1]+"-unpin-button",label:r[10]}}),e.$on("click",r[21]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-unpin-button"),n&1024&&(o.label=t[10]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function In(r){let e,l,t,n;const o=[kf,bf],s=[];function i(a,f){return a[0]?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function bf(r){let e,l;return e=new Oe({props:{icon:"hyphen","data-testid":"orderable-list-item-"+r[1]+"-remove-button",label:r[12]}}),e.$on("click",r[24]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-remove-button"),n&4096&&(o.label=t[12]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function kf(r){let e,l;return e=new Oe({props:{icon:"add","data-testid":"orderable-list-item-"+r[1]+"-add-button",label:r[11]}}),e.$on("click",r[23]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o["data-testid"]="orderable-list-item-"+t[1]+"-add-button"),n&2048&&(o.label=t[11]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wf(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d=!r[0]&&!r[4]&&wn(r),g=!r[0]&&!r[4]&&r[5]<=r[2]-1&&vn(r),b=!r[4]&&In(r);return{c(){e=P("li"),l=P("div"),d&&d.c(),t=O(),n=z(r[1]),o=O(),g&&g.c(),s=O(),b&&b.c(),f=O(),u=P("hr"),this.h()},l(w){e=F(w,"LI",{draggable:!0,class:!0,"data-testid":!0});var v=M(e);l=F(v,"DIV",{class:!0});var k=M(l);d&&d.l(k),t=W(k),n=Q(k,r[1]),o=W(k),g&&g.l(k),k.forEach(h),s=W(v),b&&b.l(v),v.forEach(h),f=W(w),u=F(w,"HR",{class:!0}),this.h()},h(){S(l,"class","flex flex-row items-center gap-2"),S(e,"draggable",i=!r[0]&&!r[4]),S(e,"class","orderable-item group svelte-1btkzzb"),S(e,"data-testid",a="orderable-list-item-"+r[1]),se(e,"readonly",r[4]),S(u,"class","svelte-1btkzzb")},m(w,v){I(w,e,v),A(e,l),d&&d.m(l,null),A(l,t),A(l,n),A(l,o),g&&g.m(l,null),A(e,s),b&&b.m(e,null),I(w,f,v),I(w,u,v),c=!0,m||(_=[pe(e,"dragstart",r[25]),pe(e,"drop",Et(r[26])),pe(e,"dragenter",_t(Et(r[16]))),pe(e,"dragleave",_t(Et(r[17]))),pe(e,"dragover",_t(Et(r[18])))],m=!0)},p(w,[v]){!w[0]&&!w[4]?d?(d.p(w,v),v&17&&p(d,1)):(d=wn(w),d.c(),p(d,1),d.m(l,t)):d&&(J(),$(d,1,1,()=>{d=null}),X()),(!c||v&2)&&oe(n,w[1]),!w[0]&&!w[4]&&w[5]<=w[2]-1?g?(g.p(w,v),v&53&&p(g,1)):(g=vn(w),g.c(),p(g,1),g.m(l,null)):g&&(J(),$(g,1,1,()=>{g=null}),X()),w[4]?b&&(J(),$(b,1,1,()=>{b=null}),X()):b?(b.p(w,v),v&16&&p(b,1)):(b=In(w),b.c(),p(b,1),b.m(e,null)),(!c||v&17&&i!==(i=!w[0]&&!w[4]))&&S(e,"draggable",i),(!c||v&2&&a!==(a="orderable-list-item-"+w[1]))&&S(e,"data-testid",a),(!c||v&16)&&se(e,"readonly",w[4])},i(w){c||(p(d),p(g),p(b),c=!0)},o(w){$(d),$(g),$(b),c=!1},d(w){w&&h(e),d&&d.d(),g&&g.d(),b&&b.d(),w&&h(f),w&&h(u),m=!1,bt(_)}}}function vf(r,e,l){const t=ut();let{static:n=!1}=e,{label:o}=e,{maxPinnedItems:s=void 0}=e,{pinned:i=!1}=e,{readonly:a=!1}=e,{index:f=0}=e,{totalItems:u=0}=e,{moveUpButtonLabel:c=""}=e,{moveDownButtonLabel:m=""}=e,{pinButtonLabel:_=""}=e,{unpinButtonLabel:d=""}=e,{addButtonLabel:g=""}=e,{removeButtonLabel:b=""}=e;const w=(G,de)=>{n||a||(G.dataTransfer.setData("text/plain",de.toString()),G.dataTransfer.dropEffect="move")},v=(G,de)=>{G.currentTarget.classList.remove("dragging-over");const ge=parseInt(G.dataTransfer.getData("text/plain"));t("moveItem",{from:ge,to:de})},k=G=>G.currentTarget.classList.add("dragging-over"),B=G=>G.currentTarget.classList.remove("dragging-over");function T(G){Ae.call(this,r,G)}const E=()=>t("moveItem",{from:f,to:f-1}),N=()=>t("moveItem",{from:f,to:f+1}),U=()=>t("pinItem"),q=()=>t("pinItem"),Y=()=>t("addItem"),V=()=>t("removeItem"),R=G=>w(G,f),Z=G=>v(G,f);return r.$$set=G=>{"static"in G&&l(0,n=G.static),"label"in G&&l(1,o=G.label),"maxPinnedItems"in G&&l(2,s=G.maxPinnedItems),"pinned"in G&&l(3,i=G.pinned),"readonly"in G&&l(4,a=G.readonly),"index"in G&&l(5,f=G.index),"totalItems"in G&&l(6,u=G.totalItems),"moveUpButtonLabel"in G&&l(7,c=G.moveUpButtonLabel),"moveDownButtonLabel"in G&&l(8,m=G.moveDownButtonLabel),"pinButtonLabel"in G&&l(9,_=G.pinButtonLabel),"unpinButtonLabel"in G&&l(10,d=G.unpinButtonLabel),"addButtonLabel"in G&&l(11,g=G.addButtonLabel),"removeButtonLabel"in G&&l(12,b=G.removeButtonLabel)},[n,o,s,i,a,f,u,c,m,_,d,g,b,t,w,v,k,B,T,E,N,U,q,Y,V,R,Z]}class mt extends fe{constructor(e){super(),ue(this,e,vf,wf,ce,{static:0,label:1,maxPinnedItems:2,pinned:3,readonly:4,index:5,totalItems:6,moveUpButtonLabel:7,moveDownButtonLabel:8,pinButtonLabel:9,unpinButtonLabel:10,addButtonLabel:11,removeButtonLabel:12})}}const If=r=>({}),En=r=>({});function Ef(r){let e;return{c(){e=z("Items")},l(l){e=Q(l,"Items")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function Tf(r){let e,l;return e=new mt({props:{readonly:!0,label:"No Items",pinned:!1}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Df(r){let e,l,t,n,o;const s=r[1].heading,i=$e(s,r,r[0],En),a=i||Ef(),f=r[1].default,u=$e(f,r,r[0],null),c=u||Tf();return{c(){e=P("div"),l=P("h4"),a&&a.c(),t=O(),n=P("ol"),c&&c.c(),this.h()},l(m){e=F(m,"DIV",{class:!0});var _=M(e);l=F(_,"H4",{class:!0});var d=M(l);a&&a.l(d),d.forEach(h),t=W(_),n=F(_,"OL",{class:!0});var g=M(n);c&&c.l(g),g.forEach(h),_.forEach(h),this.h()},h(){S(l,"class","orderable-heading svelte-cheqnz"),S(n,"class","orderable-list svelte-cheqnz"),S(e,"class","orderable-section svelte-cheqnz")},m(m,_){I(m,e,_),A(e,l),a&&a.m(l,null),A(e,t),A(e,n),c&&c.m(n,null),o=!0},p(m,[_]){i&&i.p&&(!o||_&1)&&be(i,s,m,m[0],o?we(s,m[0],_,If):ke(m[0]),En),u&&u.p&&(!o||_&1)&&be(u,f,m,m[0],o?we(f,m[0],_,null):ke(m[0]),null)},i(m){o||(p(a,m),p(c,m),o=!0)},o(m){$(a,m),$(c,m),o=!1},d(m){m&&h(e),a&&a.d(m),c&&c.d(m)}}}function Lf(r,e,l){let{$$slots:t={},$$scope:n}=e;return r.$$set=o=>{"$$scope"in o&&l(0,n=o.$$scope)},[n,t]}let Jt=class extends fe{constructor(e){super(),ue(this,e,Lf,Df,ce,{})}};function Tn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function Dn(r,e,l){const t=r.slice();return t[12]=e[l].label,t}function Ln(r,e,l){const t=r.slice();return t[12]=e[l].label,t[18]=l,t}function Cn(r){let e,l;return e=new mt({props:{readonly:!0,label:"No headings in view"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function yn(r,e){let l,t,n;function o(){return e[9](e[12])}return t=new mt({props:{index:e[18],label:e[12],totalItems:e[3].length,addButtonLabel:H("workflows","add-column-label",{column:e[12]}),removeButtonLabel:H("workflows","remove-column-label",{column:e[12]}),moveUpButtonLabel:H("workflows","move-column-up-label",{column:e[12]}),moveDownButtonLabel:H("workflows","move-column-down-label",{column:e[12]}),pinButtonLabel:H("workflows","pin-column-label",{column:e[12]}),unpinButtonLabel:H("workflows","unpin-column-label",{column:e[12]})}}),t.$on("moveItem",e[8]),t.$on("removeItem",o),{key:r,first:null,c(){l=ee(),D(t.$$.fragment),this.h()},l(s){l=ee(),L(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,i){I(s,l,i),C(t,s,i),n=!0},p(s,i){e=s;const a={};i&8&&(a.index=e[18]),i&8&&(a.label=e[12]),i&8&&(a.totalItems=e[3].length),i&8&&(a.addButtonLabel=H("workflows","add-column-label",{column:e[12]})),i&8&&(a.removeButtonLabel=H("workflows","remove-column-label",{column:e[12]})),i&8&&(a.moveUpButtonLabel=H("workflows","move-column-up-label",{column:e[12]})),i&8&&(a.moveDownButtonLabel=H("workflows","move-column-down-label",{column:e[12]})),i&8&&(a.pinButtonLabel=H("workflows","pin-column-label",{column:e[12]})),i&8&&(a.unpinButtonLabel=H("workflows","unpin-column-label",{column:e[12]})),t.$set(a)},i(s){n||(p(t.$$.fragment,s),n=!0)},o(s){$(t.$$.fragment,s),n=!1},d(s){s&&h(l),y(t,s)}}}function Cf(r){let e=[],l=new Map,t,n,o=r[3];const s=a=>a[12];for(let a=0;a{i=null}),X()):(i=Cn(),i.c(),p(i,1),i.m(t.parentNode,t)))},i(a){if(!n){for(let f=0;f$(n[i],1,1,()=>{n[i]=null});let s=null;return t.length||(s=Bn()),{c(){for(let i=0;i{s=null}),X()):(s=Bn(),s.c(),p(s,1),s.m(e.parentNode,e))}},i(i){if(!l){for(let a=0;a$(n[i],1,1,()=>{n[i]=null});let s=null;return t.length||(s=An()),{c(){for(let i=0;i{s=null}),X()):(s=An(),s.c(),p(s,1),s.m(e.parentNode,e))}},i(i){if(!l){for(let a=0;a(a(),a=Xt(n,k=>l(4,i=k)),n),u,c=K,m=()=>(c(),c=Xt(o,k=>l(5,u=k)),o);j(r,Kt,k=>l(7,s=k)),r.$$.on_destroy.push(()=>a()),r.$$.on_destroy.push(()=>c());var _;let{namespace:d}=e;const g=k=>gf(k.detail.from,k.detail.to,d),b=k=>pf(k,d),w=k=>kn(k,d),v=k=>kn(k,d);return r.$$set=k=>{"namespace"in k&&l(0,d=k.namespace)},r.$$.update=()=>{r.$$.dirty&193&&l(3,t=l(6,_=s==null?void 0:s[d])!==null&&_!==void 0?_:[]),r.$$.dirty&1&&f(l(2,n=mf(d))),r.$$.dirty&1&&m(l(1,o=_f(d)))},[d,o,n,t,i,u,_,s,g,b,w,v]}class Of extends fe{constructor(e){super(),ue(this,e,Ff,Pf,ce,{namespace:0})}}const Pn=(r,e=2)=>{if(!+r)return"0 Bytes";const l=1024,t=e<0?0:e,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(r)/Math.log(l));return`${parseFloat((r/Math.pow(l,o)).toFixed(t))} ${n[o]}`},Rt={WorkflowId:"Workflow ID",WorkflowType:"Type",RunId:"Run ID"},Ye={WorkflowId:"workflow-id",WorkflowType:"workflow-type",RunId:"run-id"},Wf={WorkflowId:"id",WorkflowType:"name",RunId:"runId"};function Vf(r){let e;return{c(){e=z(r[2])},l(l){e=Q(l,r[2])},m(l,t){I(l,e,t)},p(l,t){t&4&&oe(e,l[2])},d(l){l&&h(e)}}}function Mf(r){let e,l,t,n;return e=new It({props:{href:r[3],$$slots:{default:[Vf]},$$scope:{ctx:r}}}),t=new ao({props:{copyIconTitle:H("copy-icon-title"),copySuccessIconTitle:H("copy-success-icon-title"),filterIconTitle:H("filter-workflows"),show:r[1],content:r[2],onFilter:r[5],filtered:r[4].some(r[9])}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,[s]){const i={};s&8&&(i.href=o[3]),s&2052&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&2&&(a.show=o[1]),s&4&&(a.content=o[2]),s&21&&(a.filtered=o[4].some(o[9])),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function Rf(r,e,l){let t,n,o,s,i,a;j(r,Xe,d=>l(10,s=d)),j(r,he,d=>l(4,i=d)),j(r,ve,d=>l(8,a=d));let{attribute:f}=e,{workflow:u}=e,{filterOrCopyButtonsVisible:c=!1}=e;const m=()=>{const d=i.find(b=>b.attribute===f),g=()=>i.filter(b=>b.attribute!==f);if(d)te(he,i=[...g()],i);else{const b={attribute:f,value:t,conditional:"=",operator:"",parenthesis:""};te(he,i=[...g(),b],i)}Qe(a.url,i,s)},_=d=>d.attribute===f&&d.value===t;return r.$$set=d=>{"attribute"in d&&l(0,f=d.attribute),"workflow"in d&&l(6,u=d.workflow),"filterOrCopyButtonsVisible"in d&&l(1,c=d.filterOrCopyButtonsVisible)},r.$$.update=()=>{r.$$.dirty&65&&l(2,t=u[Wf[f]]),r.$$.dirty&256&&l(7,n=a.params.namespace),r.$$.dirty&192&&l(3,o=No({namespace:n,workflow:u.id,run:u.runId}))},[f,c,t,o,i,m,u,n,a,_]}class cl extends fe{constructor(e){super(),ue(this,e,Rf,Mf,ce,{attribute:0,workflow:6,filterOrCopyButtonsVisible:1})}}function Hf(r){const e=r.slice(),l=e[0].searchAttributes.indexedFields[e[2]];return e[9]=l,e}function qf(r){let e,l,t,n,o;const s=[eu,xf,Zf,Xf,Jf,Gf,Yf,Kf,Qf,zf,jf],i=[];function a(u,c){return c&5&&(l=null),u[2]==="Status"?0:u[2]==="End"?1:u[2]==="Start"?2:u[2]==="Task Queue"?3:u[2]==="Parent Namespace"?4:u[2]==="History Size"?5:u[2]==="State Transitions"?6:u[2]==="Execution Time"?7:u[2]==="Execution Duration"?8:u[2]==="History Length"?9:(l==null&&(l=!!(Eo(u[2])&&To(u[0],u[2]))),l?10:-1)}function f(u,c){return c===10?Hf(u):u}return~(t=a(r,-1))&&(n=i[t]=s[t](f(r,t))),{c(){e=P("td"),n&&n.c(),this.h()},l(u){e=F(u,"TD",{class:!0,"data-testid":!0});var c=M(e);n&&n.l(c),c.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-body-cell svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~t&&i[t].m(e,null),o=!0},p(u,c){let m=t;t=a(u,c),t===m?~t&&i[t].p(f(u,t),c):(n&&(J(),$(i[m],1,1,()=>{i[m]=null}),X()),~t?(n=i[t],n?n.p(f(u,t),c):(n=i[t]=s[t](f(u,t)),n.c()),p(n,1),n.m(e,null)):n=null)},i(u){o||(p(n),o=!0)},o(u){$(n),o=!1},d(u){u&&h(e),~t&&i[t].d()}}}function Uf(r){let e,l,t,n,o,s;const i=[su,au,ou],a=[];function f(u,c){return u[2]==="Type"?0:u[2]==="Workflow ID"?1:u[2]==="Run ID"?2:-1}return~(l=f(r))&&(t=a[l]=i[l](r)),{c(){e=P("td"),t&&t.c(),this.h()},l(u){e=F(u,"TD",{class:!0,"data-testid":!0});var c=M(e);t&&t.l(c),c.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-body-cell filterable svelte-qupenl"),S(e,"data-testid","workflows-summary-table-body-cell")},m(u,c){I(u,e,c),~l&&a[l].m(e,null),n=!0,o||(s=[pe(e,"mouseover",r[6]),pe(e,"focus",r[6]),pe(e,"mouseleave",r[7]),pe(e,"blur",r[7])],o=!0)},p(u,c){let m=l;l=f(u),l===m?~l&&a[l].p(u,c):(t&&(J(),$(a[m],1,1,()=>{a[m]=null}),X()),~l?(t=a[l],t?t.p(u,c):(t=a[l]=i[l](u),t.c()),p(t,1),t.m(e,null)):t=null)},i(u){n||(p(t),n=!0)},o(u){$(t),n=!1},d(u){u&&h(e),~l&&a[l].d(),o=!1,bt(s)}}}function jf(r){let e,l,t,n;const o=[nu,lu,tu],s=[];function i(a,f){return a[5][a[2]]==="Datetime"&&typeof a[9]=="string"?0:a[5][a[2]]==="Bool"?1:2}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function zf(r){let e=(parseInt(r[0].historyEvents,10)>0?r[0].historyEvents:"")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].historyEvents,10)>0?t[0].historyEvents:"")+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Qf(r){let e=Dl({start:r[0].startTime,end:r[0].endTime})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Dl({start:t[0].startTime,end:t[0].endTime})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Kf(r){let e=Fe(r[0].executionTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].executionTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Yf(r){let e=(parseInt(r[0].stateTransitionCount,10)>0?r[0].stateTransitionCount:"")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=(parseInt(t[0].stateTransitionCount,10)>0?t[0].stateTransitionCount:"")+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Gf(r){let e=Pn(parseInt(r[0].historySizeBytes,10))+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Pn(parseInt(t[0].historySizeBytes,10))+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Jf(r){let e=r[0].parentNamespaceId+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].parentNamespaceId+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Xf(r){let e=r[0].taskQueue+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=t[0].taskQueue+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function Zf(r){let e=Fe(r[0].startTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].startTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function xf(r){let e=Fe(r[0].endTime,r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&25&&e!==(e=Fe(t[0].endTime,t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function eu(r){let e,l;return e=new jt({props:{status:r[0].status}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1&&(o.status=t[0].status),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tu(r){let e=r[9]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[9]+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function lu(r){let e,l;return e=new Ao({props:{$$slots:{default:[ru]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&1029&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function nu(r){let e=Fe(r[9],r[3],{relative:r[4]})+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&29&&e!==(e=Fe(t[9],t[3],{relative:t[4]})+"")&&oe(l,e)},i:K,o:K,d(t){t&&h(l)}}}function ru(r){let e=r[9]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&5&&e!==(e=t[9]+"")&&oe(l,e)},d(t){t&&h(l)}}}function ou(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"RunId",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function au(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowId",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function su(r){let e,l;return e=new cl({props:{filterOrCopyButtonsVisible:r[1],attribute:"WorkflowType",workflow:r[0]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.filterOrCopyButtonsVisible=t[1]),n&1&&(o.workflow=t[0]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function iu(r){let e,l,t,n;const o=[Uf,qf],s=[];function i(a,f){return a[2]==="Run ID"||a[2]==="Workflow ID"||a[2]==="Type"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,[f]){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function fu(r,e,l){let t,n,o,s;j(r,Ft,m=>l(3,n=m)),j(r,cr,m=>l(4,o=m)),j(r,hr,m=>l(5,s=m));let{column:i}=e,{workflow:a}=e,f=!1;const u=()=>l(1,f=!0),c=()=>l(1,f=!1);return r.$$set=m=>{"column"in m&&l(8,i=m.column),"workflow"in m&&l(0,a=m.workflow)},r.$$.update=()=>{r.$$.dirty&256&&l(2,{label:t}=i,t)},[a,f,t,n,o,s,u,c,i]}class uu extends fe{constructor(e){super(),ue(this,e,fu,iu,ce,{column:8,workflow:0})}}function cu(r){let e=Rt[r[0]]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&1&&e!==(e=Rt[t[0]]+"")&&oe(l,e)},d(t){t&&h(l)}}}function mu(r){let e,l;return e=new ye({props:{name:"filter",slot:"trailing"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function _u(r){let e,l,t;function n(s){r[6](s)}let o={icon:"search",type:"search",label:H("search"),labelHidden:!0,id:Ye[r[0]],placeholder:Rt[r[0]],class:"flex items-center p-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0,clearButtonLabel:H("clear-input-button-label")};return r[1]!==void 0&&(o.value=r[1]),e=new Ne({props:o}),ie.push(()=>me(e,"value",n)),e.$on("input",r[2]),e.$on("clear",r[4]),{c(){D(e.$$.fragment)},l(s){L(e.$$.fragment,s)},m(s,i){C(e,s,i),t=!0},p(s,i){const a={};i&1&&(a.id=Ye[s[0]]),i&1&&(a.placeholder=Rt[s[0]]),!l&&i&2&&(l=!0,a.value=s[1],_e(()=>l=!1)),e.$set(a)},i(s){t||(p(e.$$.fragment,s),t=!0)},o(s){$(e.$$.fragment,s),t=!1},d(s){y(e,s)}}}function du(r){let e,l,t,n;return e=new lt({props:{"data-testid":Ye[r[0]]+"-filter-button",variant:"table-header",controls:Ye[r[0]]+"-filter-menu",$$slots:{trailing:[mu],default:[cu]},$$scope:{ctx:r}}}),e.$on("click",r[3]),t=new nt({props:{keepOpen:!0,id:Ye[r[0]]+"-filter-menu",class:"w-[500px]",$$slots:{default:[_u]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s&1&&(i["data-testid"]=Ye[o[0]]+"-filter-button"),s&1&&(i.controls=Ye[o[0]]+"-filter-menu"),s&1025&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&1&&(a.id=Ye[o[0]]+"-filter-menu"),s&1027&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function pu(r){let e,l;return e=new tt({props:{$$slots:{default:[du]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,[n]){const o={};n&1027&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function gu(r,e,l){let t,n,o;j(r,he,_=>l(5,n=_)),j(r,ve,_=>l(8,o=_));let s="",{attribute:i}=e;const a=()=>n.filter(_=>_.attribute!==i),f=_=>{const{value:d}=_.target;if(d){const g={attribute:i,value:d,conditional:"=",operator:"",parenthesis:""};te(he,n=[...a(),g],n)}else te(he,n=[...a()],n);Qe(o.url,n)};function u(_){const{open:d}=_.detail;d&&(t!=null&&t.value)?l(1,s=t.value):d&&!t&&s&&l(1,s="")}function c(){te(he,n=[...a()],n),Qe(o.url,n)}function m(_){s=_,l(1,s)}return r.$$set=_=>{"attribute"in _&&l(0,i=_.attribute)},r.$$.update=()=>{r.$$.dirty&33&&(t=n.find(_=>_.attribute===i))},[i,s,f,u,c,n,m]}class ml extends fe{constructor(e){super(),ue(this,e,gu,pu,ce,{attribute:0})}}function Fn(r,e,l){const t=r.slice();return t[7]=e[l],t}function hu(r){let e=H("status")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function $u(r){let e,l;return e=new ye({props:{name:"filter",slot:"trailing"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function bu(r){let e,l;return e=new jt({props:{status:r[7]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ku(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"all-statuses"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function wu(r){let e,l,t,n;const o=[ku,bu],s=[];function i(a,f){return a[7]==="All"?0:1}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=O()},l(a){l.l(a),t=W(a)},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){l.p(a,f)},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function vu(r){let e,l;function t(...o){return r[3](r[7],...o)}function n(){return r[4](r[7])}return e=new Qt({props:{slot:"leading",label:r[7],labelHidden:!0,tabindex:-1,checked:r[0].some(t)||!r[0].length&&r[7]==="All"}}),e.$on("click",n),{c(){D(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,s){C(e,o,s),l=!0},p(o,s){r=o;const i={};s&1&&(i.checked=r[0].some(t)||!r[0].length&&r[7]==="All"),e.$set(i)},i(o){l||(p(e.$$.fragment,o),l=!0)},o(o){$(e.$$.fragment,o),l=!1},d(o){y(e,o)}}}function On(r){let e,l;function t(){return r[5](r[7])}return e=new Ie({props:{$$slots:{leading:[vu],default:[wu]},$$scope:{ctx:r}}}),e.$on("click",t),{c(){D(e.$$.fragment)},l(n){L(e.$$.fragment,n)},m(n,o){C(e,n,o),l=!0},p(n,o){r=n;const s={};o&1025&&(s.$$scope={dirty:o,ctx:r}),e.$set(s)},i(n){l||(p(e.$$.fragment,n),l=!0)},o(n){$(e.$$.fragment,n),l=!1},d(n){y(e,n)}}}function Iu(r){let e,l,t=Mt,n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s{const t=l===0?"(":l===r.length-1?")":"",n=l===r.length-1?"":"OR";return{...e,operator:n,parenthesis:t}})}function Du(r,e,l){let t,n,o;j(r,he,u=>l(2,n=u)),j(r,ve,u=>l(6,o=u));const s=u=>{if(u==="All")te(he,n=n.filter(c=>c.attribute!=="ExecutionStatus"),n);else if(t.find(c=>c.value===u)){const c=n.filter(m=>m.attribute!=="ExecutionStatus");te(he,n=[...c,...Wn(t.filter(m=>m.value!==u))],n)}else if(!t.length)te(he,n=[...n,ll(u)],n);else{const c=n.filter(m=>m.attribute!=="ExecutionStatus");te(he,n=[...c,...Wn([...t,ll(u)])],n)}Qe(o.url,n)},i=(u,c)=>c.value===u,a=u=>s(u),f=u=>s(u);return r.$$.update=()=>{r.$$.dirty&4&&l(0,t=n.filter(u=>u.attribute==="ExecutionStatus"))},[t,s,n,i,a,f]}class Lu extends fe{constructor(e){super(),ue(this,e,Du,Tu,ce,{})}}function Cu(r){let e;return{c(){e=z(r[0])},l(l){e=Q(l,r[0])},m(l,t){I(l,e,t)},p(l,t){t&1&&oe(e,l[0])},d(l){l&&h(e)}}}function yu(r){let e;return{c(){e=z(r[0])},l(l){e=Q(l,r[0])},m(l,t){I(l,e,t)},p(l,t){t&1&&oe(e,l[0])},i:K,o:K,d(l){l&&h(e)}}}function Bu(r){let e,l;return e=new ml({props:{attribute:"WorkflowType"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Su(r){let e,l;return e=new ml({props:{attribute:"RunId"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Au(r){let e,l;return e=new ml({props:{attribute:"WorkflowId"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Nu(r){let e,l;return e=new Lu({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pu(r){let e,l,t,n;const o=[Nu,Au,Su,Bu,yu],s=[];function i(a,f){return a[0]==="Status"?0:a[0]==="Workflow ID"?1:a[0]==="Run ID"?2:a[0]==="Type"?3:4}return e=i(r),l=s[e]=o[e](r),{c(){l.c(),t=ee()},l(a){l.l(a),t=ee()},m(a,f){s[e].m(a,f),I(a,t,f),n=!0},p(a,f){let u=e;e=i(a),e===u?s[e].p(a,f):(J(),$(s[u],1,1,()=>{s[u]=null}),X(),l=s[e],l?l.p(a,f):(l=s[e]=o[e](a),l.c()),p(l,1),l.m(t.parentNode,t))},i(a){n||(p(l),n=!0)},o(a){$(l),n=!1},d(a){s[e].d(a),a&&h(t)}}}function Fu(r){let e,l,t,n;return l=new sl({props:{$$slots:{fallback:[Pu],default:[Cu]},$$scope:{ctx:r}}}),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(o){e=F(o,"TH",{class:!0,"data-testid":!0});var s=M(e);L(l.$$.fragment,s),s.forEach(h),this.h()},h(){S(e,"class","workflows-summary-table-header-cell svelte-x2wk3"),S(e,"data-testid",t="workflows-summary-table-header-cell-"+r[0])},m(o,s){I(o,e,s),C(l,e,null),n=!0},p(o,[s]){const i={};s&5&&(i.$$scope={dirty:s,ctx:o}),l.$set(i),(!n||s&1&&t!==(t="workflows-summary-table-header-cell-"+o[0]))&&S(e,"data-testid",t)},i(o){n||(p(l.$$.fragment,o),n=!0)},o(o){$(l.$$.fragment,o),n=!1},d(o){o&&h(e),y(l)}}}function Ou(r,e,l){let t,{column:n}=e;return r.$$set=o=>{"column"in o&&l(1,n=o.column)},r.$$.update=()=>{r.$$.dirty&2&&l(0,{label:t}=n,t)},[t,n]}class Wu extends fe{constructor(e){super(),ue(this,e,Ou,Fu,ce,{column:1})}}const Vu=["workflowCancelDisabled","workflowTerminateDisabled"],Mu=r=>r.disableWriteActions||r.batchActionsDisabled?!1:Vu.some(e=>!r[e]),Pr=ct([Oo,wt,Fo,Kr],([r,e,l,t])=>(t?!0:Po(r,"1.18.0"))&&e&&Mu(l));function Ru(r){let e,l,t,n,o;const s=r[5].default,i=$e(s,r,r[4],null);return{c(){e=P("button"),i&&i.c(),this.h()},l(a){e=F(a,"BUTTON",{"data-testid":!0,class:!0});var f=M(e);i&&i.l(f),f.forEach(h),this.h()},h(){S(e,"data-testid",r[0]),e.disabled=r[1],S(e,"class",l="bulk-action-button "+r[2]+" "+r[3].class+" svelte-19w6g7u")},m(a,f){I(a,e,f),i&&i.m(e,null),t=!0,n||(o=pe(e,"click",r[6]),n=!0)},p(a,[f]){i&&i.p&&(!t||f&16)&&be(i,s,a,a[4],t?we(s,a[4],f,null):ke(a[4]),null),(!t||f&1)&&S(e,"data-testid",a[0]),(!t||f&2)&&(e.disabled=a[1]),(!t||f&12&&l!==(l="bulk-action-button "+a[2]+" "+a[3].class+" svelte-19w6g7u"))&&S(e,"class",l)},i(a){t||(p(i,a),t=!0)},o(a){$(i,a),t=!1},d(a){a&&h(e),i&&i.d(a),n=!1,o()}}}function Hu(r,e,l){let{$$slots:t={},$$scope:n}=e,{testId:o=null}=e,{disabled:s=!1}=e,{variant:i="primary"}=e;function a(f){Ae.call(this,r,f)}return r.$$set=f=>{l(3,e=it(it({},e),ht(f))),"testId"in f&&l(0,o=f.testId),"disabled"in f&&l(1,s=f.disabled),"variant"in f&&l(2,i=f.variant),"$$scope"in f&&l(4,n=f.$$scope)},e=ht(e),[o,s,i,e,n,t,a]}class Fr extends fe{constructor(e){super(),ue(this,e,Hu,Ru,ce,{testId:0,disabled:1,variant:2})}}function qu(r){let e,l,t,n,o,s,i,a,f,u,c;return l=new Pe({props:{namespace:"workflows",key:"n-selected",count:r[2]}}),i=new Pe({props:{namespace:"workflows",key:"select-all",count:r[1]}}),{c(){e=P("span"),D(l.$$.fragment),t=O(),n=P("span"),o=z("(or "),s=P("button"),D(i.$$.fragment),a=z(")"),this.h()},l(m){e=F(m,"SPAN",{class:!0});var _=M(e);L(l.$$.fragment,_),_.forEach(h),t=W(m),n=F(m,"SPAN",{});var d=M(n);o=Q(d,"(or "),s=F(d,"BUTTON",{"data-testid":!0,class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),a=Q(d,")"),d.forEach(h),this.h()},h(){S(e,"class","font-semibold"),S(s,"data-testid","select-all-workflows"),S(s,"class","cursor-pointer underline")},m(m,_){I(m,e,_),C(l,e,null),I(m,t,_),I(m,n,_),A(n,o),A(n,s),C(i,s,null),A(n,a),f=!0,u||(c=pe(s,"click",r[15]),u=!0)},p(m,_){const d={};_&4&&(d.count=m[2]),l.$set(d);const g={};_&2&&(g.count=m[1]),i.$set(g)},i(m){f||(p(l.$$.fragment,m),p(i.$$.fragment,m),f=!0)},o(m){$(l.$$.fragment,m),$(i.$$.fragment,m),f=!1},d(m){m&&h(e),y(l),m&&h(t),m&&h(n),y(i),u=!1,c()}}}function Uu(r){let e,l,t;return l=new Pe({props:{namespace:"workflows",key:"all-selected",count:r[1]}}),{c(){e=P("span"),D(l.$$.fragment),this.h()},l(n){e=F(n,"SPAN",{class:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","font-semibold")},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&2&&(s.count=n[1]),l.$set(s)},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function Vn(r){let e,l;return e=new Fr({props:{testId:"bulk-cancel-button",disabled:r[3]||!r[7].length,$$slots:{default:[ju]},$$scope:{ctx:r}}}),e.$on("click",Lc),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&136&&(o.disabled=t[3]||!t[7].length),n&65536&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function ju(r){let e=H("workflows","request-cancellation")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Mn(r){let e,l;return e=new Fr({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:r[3],$$slots:{default:[zu]},$$scope:{ctx:r}}}),e.$on("click",Cc),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.disabled=t[3]),n&65536&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function zu(r){let e=H("workflows","terminate")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Qu(r){let e,l,t,n,o,s;const i=[Uu,qu],a=[];function f(m,_){return m[6]?0:1}e=f(r),l=a[e]=i[e](r);let u=r[4]&&Vn(r),c=r[5]&&Mn(r);return{c(){l.c(),t=O(),n=P("div"),u&&u.c(),o=O(),c&&c.c(),this.h()},l(m){l.l(m),t=W(m),n=F(m,"DIV",{class:!0});var _=M(n);u&&u.l(_),o=W(_),c&&c.l(_),_.forEach(h),this.h()},h(){S(n,"class","ml-4 inline-flex gap-2")},m(m,_){a[e].m(m,_),I(m,t,_),I(m,n,_),u&&u.m(n,null),A(n,o),c&&c.m(n,null),s=!0},p(m,[_]){let d=e;e=f(m),e===d?a[e].p(m,_):(J(),$(a[d],1,1,()=>{a[d]=null}),X(),l=a[e],l?l.p(m,_):(l=a[e]=i[e](m),l.c()),p(l,1),l.m(t.parentNode,t)),m[4]?u?(u.p(m,_),_&16&&p(u,1)):(u=Vn(m),u.c(),p(u,1),u.m(n,o)):u&&(J(),$(u,1,1,()=>{u=null}),X()),m[5]?c?(c.p(m,_),_&32&&p(c,1)):(c=Mn(m),c.c(),p(c,1),c.m(n,null)):c&&(J(),$(c,1,1,()=>{c=null}),X())},i(m){s||(p(l),p(u),p(c),s=!0)},o(m){$(l),$(u),$(c),s=!1},d(m){a[e].d(m),m&&h(t),m&&h(n),u&&u.d(),c&&c.d()}}}function Ku(r,e,l){let t,n,o,s,i,a,f,u,c,m;j(r,ve,k=>l(10,s=k)),j(r,We,k=>l(12,a=k)),j(r,pr,k=>l(13,f=k)),j(r,pt,k=>l(14,u=k)),j(r,et,k=>l(6,c=k)),j(r,Or,k=>l(7,m=k));var _;let{workflows:d}=e,g=Wo();j(r,g,k=>l(11,i=k));let b,w;const v=()=>yc(d);return r.$$set=k=>{"workflows"in k&&l(0,d=k.workflows)},r.$$.update=()=>{r.$$.dirty&24576&&l(1,b=u?f.count:f.totalCount),r.$$.dirty&4608&&l(2,w=l(9,_=a==null?void 0:a.length)!==null&&_!==void 0?_:0),r.$$.dirty&1024&&l(5,t=xr(s.data.settings)),r.$$.dirty&1024&&l(4,n=eo(s.data.settings)),r.$$.dirty&3072&&l(3,o=i.namespaceWriteDisabled(s.params.namespace))},[d,b,w,o,n,t,c,m,g,_,s,i,a,f,u,v]}class Yu extends fe{constructor(e){super(),ue(this,e,Ku,Qu,ce,{workflows:0})}}function Rn(r){let e,l,t,n;function o(i){r[13](i)}let s={label:r[4],labelHidden:!0,id:"select-visible-workflows","data-testid":"batch-actions-checkbox",onDark:!0,hoverable:!0,indeterminate:r[5]};return r[7]!==void 0&&(s.checked=r[7]),l=new Qt({props:s}),ie.push(()=>me(l,"checked",o)),l.$on("change",r[9]),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(i){e=F(i,"TH",{class:!0});var a=M(e);L(l.$$.fragment,a),a.forEach(h),this.h()},h(){S(e,"class","batch-actions-checkbox-table-cell svelte-d401z4")},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){const f={};a&16&&(f.label=i[4]),a&32&&(f.indeterminate=i[5]),!t&&a&128&&(t=!0,f.checked=i[7],_e(()=>t=!1)),l.$set(f)},i(i){n||(p(l.$$.fragment,i),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function Gu(r){let e;const l=r[12].default,t=$e(l,r,r[11],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o&2048)&&be(t,l,n,n[11],e?we(l,n[11],o,null):ke(n[11]),null)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ju(r){let e,l,t;return l=new Yu({props:{workflows:r[0]}}),{c(){e=P("th"),D(l.$$.fragment),this.h()},l(n){e=F(n,"TH",{class:!0,colspan:!0});var o=M(e);L(l.$$.fragment,o),o.forEach(h),this.h()},h(){S(e,"class","batch-actions-table-cell svelte-d401z4"),S(e,"colspan",r[3])},m(n,o){I(n,e,o),C(l,e,null),t=!0},p(n,o){const s={};o&1&&(s.workflows=n[0]),l.$set(s),(!t||o&8)&&S(e,"colspan",n[3])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){$(l.$$.fragment,n),t=!1},d(n){n&&h(e),y(l)}}}function Xu(r){let e,l,t,n,o,s,i,a,f=!r[1]&&r[6]&&Rn(r);const u=[Ju,Gu],c=[];function m(_,d){return _[6]&&_[8]?0:1}return t=m(r),n=c[t]=u[t](r),i=new Oe({props:{"data-testid":"workflows-summary-table-configuration-button",icon:"vertical-ellipsis",label:H("workflows","open-configure-workflows")}}),i.$on("click",function(){ar(r[2])&&r[2].apply(this,arguments)}),{c(){e=P("tr"),f&&f.c(),l=O(),n.c(),o=O(),s=P("th"),D(i.$$.fragment),this.h()},l(_){e=F(_,"TR",{});var d=M(e);f&&f.l(d),l=W(d),n.l(d),o=W(d),s=F(d,"TH",{class:!0});var g=M(s);L(i.$$.fragment,g),g.forEach(h),d.forEach(h),this.h()},h(){S(s,"class","configuration-button-table-cell svelte-d401z4")},m(_,d){I(_,e,d),f&&f.m(e,null),A(e,l),c[t].m(e,null),A(e,o),A(e,s),C(i,s,null),a=!0},p(_,[d]){r=_,!r[1]&&r[6]?f?(f.p(r,d),d&66&&p(f,1)):(f=Rn(r),f.c(),p(f,1),f.m(e,l)):f&&(J(),$(f,1,1,()=>{f=null}),X());let g=t;t=m(r),t===g?c[t].p(r,d):(J(),$(c[g],1,1,()=>{c[g]=null}),X(),n=c[t],n?n.p(r,d):(n=c[t]=u[t](r),n.c()),p(n,1),n.m(e,o))},i(_){a||(p(f),p(n),p(i.$$.fragment,_),a=!0)},o(_){$(f),$(n),$(i.$$.fragment,_),a=!1},d(_){_&&h(e),f&&f.d(),c[t].d(),y(i)}}}function Zu(r,e,l){let t,n,o,s,i,a;j(r,We,w=>l(10,o=w)),j(r,Pr,w=>l(6,s=w)),j(r,Ct,w=>l(7,i=w)),j(r,Tc,w=>l(8,a=w));let{$$slots:f={},$$scope:u}=e,{workflows:c}=e,{empty:m}=e,{onClickConfigure:_=K}=e,{columnsCount:d}=e;const g=w=>{const{checked:v}=w.detail;Bc(v,c)};function b(w){i=w,Ct.set(i)}return r.$$set=w=>{"workflows"in w&&l(0,c=w.workflows),"empty"in w&&l(1,m=w.empty),"onClickConfigure"in w&&l(2,_=w.onClickConfigure),"columnsCount"in w&&l(3,d=w.columnsCount),"$$scope"in w&&l(11,u=w.$$scope)},r.$$.update=()=>{r.$$.dirty&1025&&l(5,t=o.length>0&&o.lengthme(l,"group",o)),{c(){e=P("td"),D(l.$$.fragment)},l(i){e=F(i,"TD",{});var a=M(e);L(l.$$.fragment,a),a.forEach(h)},m(i,a){I(i,e,a),C(l,e,null),n=!0},p(i,a){const f={};a&4&&(f.label=i[2]),a&1&&(f.value=i[0]),a&32&&(f.disabled=i[5]),a&4&&(f["aria-label"]=i[2]),!t&&a&16&&(t=!0,f.group=i[4],_e(()=>t=!1)),l.$set(f)},i(i){n||(p(l.$$.fragment,i),n=!0)},o(i){$(l.$$.fragment,i),n=!1},d(i){i&&h(e),y(l)}}}function ec(r){let e,l,t,n,o,s=!r[1]&&r[3]&&Hn(r);const i=r[7].default,a=$e(i,r,r[6],null);return{c(){e=P("tr"),s&&s.c(),l=O(),a&&a.c(),t=O(),n=P("td"),this.h()},l(f){e=F(f,"TR",{"data-testid":!0});var u=M(e);s&&s.l(u),l=W(u),a&&a.l(u),t=W(u),n=F(u,"TD",{}),M(n).forEach(h),u.forEach(h),this.h()},h(){S(e,"data-testid","workflows-summary-configurable-table-row"),se(e,"empty",r[1])},m(f,u){I(f,e,u),s&&s.m(e,null),A(e,l),a&&a.m(e,null),A(e,t),A(e,n),o=!0},p(f,[u]){!f[1]&&f[3]?s?(s.p(f,u),u&10&&p(s,1)):(s=Hn(f),s.c(),p(s,1),s.m(e,l)):s&&(J(),$(s,1,1,()=>{s=null}),X()),a&&a.p&&(!o||u&64)&&be(a,i,f,f[6],o?we(i,f[6],u,null):ke(f[6]),null),(!o||u&2)&&se(e,"empty",f[1])},i(f){o||(p(s),p(a,f),o=!0)},o(f){$(s),$(a,f),o=!1},d(f){f&&h(e),s&&s.d(),a&&a.d(f)}}}function tc(r,e,l){let t,n,o,s;j(r,Pr,m=>l(3,n=m)),j(r,We,m=>l(4,o=m)),j(r,et,m=>l(5,s=m));let{$$slots:i={},$$scope:a}=e,{workflow:f=void 0}=e,{empty:u=!1}=e;function c(m){o=m,We.set(o)}return r.$$set=m=>{"workflow"in m&&l(0,f=m.workflow),"empty"in m&&l(1,u=m.empty),"$$scope"in m&&l(6,a=m.$$scope)},r.$$.update=()=>{r.$$.dirty&1&&l(2,t=H("workflows","select-workflow",{workflow:f==null?void 0:f.id}))},[f,u,t,n,o,s,a,i,c]}class lc extends fe{constructor(e){super(),ue(this,e,tc,ec,ce,{workflow:0,empty:1})}}function qn(r,e,l){const t=r.slice();return t[18]=e[l],t}function Un(r,e,l){const t=r.slice();return t[15]=e[l],t}function jn(r,e,l){const t=r.slice();return t[15]=e[l],t}const nc=r=>({}),zn=r=>({slot:"cloud"});function Qn(r){let e,l;return e=new uu({props:{workflow:r[18],column:r[15]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&16384&&(o.workflow=t[18]),n&16&&(o.column=t[15]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rc(r){let e,l,t=r[4],n=[];for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s$(n[s],1,1,()=>{n[s]=null});return{c(){for(let s=0;s({14:o}),({visibleItems:o})=>o?16384:0],headers:[ic,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],caption:[ac,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0],default:[oc,({visibleItems:o})=>({14:o}),({visibleItems:o})=>o?16384:0]},$$scope:{ctx:r}}}),t=new Co({props:{open:r[2],onClick:r[7],position:"right",id:"workflows-summary-table-configuration-drawer",dark:!1,title:H("workflows","configure-workflows"),closeButtonLabel:H("workflows","close-configure-workflows"),$$slots:{subtitle:[cc],default:[uc]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,[s]){const i={};s&32&&(i.updating=o[5]),s&2&&(i.items=o[1]),s&24600&&(i.$$scope={dirty:s,ctx:o}),e.$set(i);const a={};s&4&&(a.open=o[2]),s&8193&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function _c(r,e,l){let t,n,o,s,i,a,f;j(r,nl,w=>l(1,s=w)),j(r,Kt,w=>l(9,i=w)),j(r,ve,w=>l(10,a=w)),j(r,rl,w=>l(5,f=w));let{$$slots:u={},$$scope:c}=e;var m;let _=!1;const d=()=>{l(2,_=!0)},g=()=>{l(2,_=!1)},b=w=>H("go-to-page",{page:w});return r.$$set=w=>{"$$scope"in w&&l(13,c=w.$$scope)},r.$$.update=()=>{r.$$.dirty&1024&&l(0,{namespace:t}=a.params,t),r.$$.dirty&769&&l(4,n=l(8,m=i==null?void 0:i[t])!==null&&m!==void 0?m:[]),r.$$.dirty&2&&l(3,o=s.length===0)},[t,s,_,o,n,f,d,g,m,i,a,u,b,c]}class dc extends fe{constructor(e){super(),ue(this,e,_c,mc,ce,{})}}const pc=r=>{const e=Ro({workflows:r},null,2);l(e,`workflows-${r==null?void 0:r.length}-${Date.now()}.json`,"text/plain");function l(t,n,o){const s=document.createElement("a"),i=new Blob([t],{type:o});s.href=URL.createObjectURL(i),s.download=n,s.click()}},gc=r=>({}),Gn=r=>({slot:"cloud"});function Jn(r){let e,l,t,n,o;const s=[bc,$c,hc],i=[];function a(f,u){return f[7]||f[1]?0:f[0]?1:2}return l=a(r),t=i[l]=s[l](r),{c(){e=P("p"),t.c(),this.h()},l(f){e=F(f,"P",{"data-testid":!0,"data-loaded":!0});var u=M(e);t.l(u),u.forEach(h),this.h()},h(){S(e,"data-testid","workflow-count"),S(e,"data-loaded",n=!r[7]&&!r[1])},m(f,u){I(f,e,u),i[l].m(e,null),o=!0},p(f,u){let c=l;l=a(f),l===c?i[l].p(f,u):(J(),$(i[c],1,1,()=>{i[c]=null}),X(),t=i[l],t?t.p(f,u):(t=i[l]=s[l](f),t.c()),p(t,1),t.m(e,null)),(!o||u[0]&130&&n!==(n=!f[7]&&!f[1]))&&S(e,"data-loaded",n)},i(f){o||(p(t),o=!0)},o(f){$(t),o=!1},d(f){f&&h(e),i[l].d()}}}function hc(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"workflows-count",count:r[5].totalCount}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[0]&32&&(o.count=t[5].totalCount),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function $c(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"filtered-workflows-count",replace:{filtered:r[5].count,total:r[5].totalCount}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n[0]&32&&(o.replace={filtered:t[5].count,total:t[5].totalCount}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function bc(r){let e,l;return e=new Pe({props:{namespace:"workflows",key:"loading-workflows"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Xn(r){let e,l,t,n;return t=new It({props:{tabindex:0,$$slots:{default:[kc]},$$scope:{ctx:r}}}),t.$on("click",r[19]),{c(){e=P("div"),l=O(),D(t.$$.fragment),this.h()},l(o){e=F(o,"DIV",{class:!0}),M(e).forEach(h),l=W(o),L(t.$$.fragment,o),this.h()},h(){S(e,"class","h-1 w-1 rounded-full bg-gray-400")},m(o,s){I(o,e,s),I(o,l,s),C(t,o,s),n=!0},p(o,s){const i={};s[0]&1048576&&(i.$$scope={dirty:s,ctx:o}),t.$set(i)},i(o){n||(p(t.$$.fragment,o),n=!0)},o(o){$(t.$$.fragment,o),n=!1},d(o){o&&h(e),o&&h(l),y(t,o)}}}function kc(r){let e=H("download-json")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function wc(r){let e,l;return e=new Pi({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function vc(r){let e,l;return e=new Dr({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Ic(r){let e;const l=r[16].cloud,t=$e(l,r,r[20],Gn);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,o){t&&t.m(n,o),e=!0},p(n,o){t&&t.p&&(!e||o[0]&1048576)&&be(t,l,n,n[20],e?we(l,n[20],o,gc):ke(n[20]),Gn)},i(n){e||(p(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function Ec(r){var V;let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b,w,v,k,B,T,E,N={action:$t.Terminate,actionableWorkflowsLength:r[3].length,query:r[2]};e=new Al({props:N}),r[17](e),e.$on("confirm",r[10]);let U={action:$t.Cancel,actionableWorkflowsLength:r[4].length,query:r[2]};t=new Al({props:U}),r[18](t),t.$on("confirm",r[11]),a=new Pe({props:{namespace:"workflows",key:"recent-workflows"}});let q=((V=r[5])==null?void 0:V.totalCount)>=0&&r[6]&&Jn(r),Y=!r[7]&&!r[1]&&r[8].length>0&&Xn(r);return d=new Oe({props:{icon:"retry",label:H("workflows","retry-workflows")}}),d.$on("click",r[9]),w=new sl({props:{$$slots:{fallback:[vc],default:[wc]},$$scope:{ctx:r}}}),k=new za({}),T=new dc({props:{$$slots:{cloud:[Ic]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment),n=O(),o=P("header"),s=P("div"),i=P("h1"),D(a.$$.fragment),f=O(),u=P("div"),q&&q.c(),c=O(),Y&&Y.c(),m=O(),_=P("div"),D(d.$$.fragment),g=O(),b=P("div"),D(w.$$.fragment),v=O(),D(k.$$.fragment),B=O(),D(T.$$.fragment),this.h()},l(R){L(e.$$.fragment,R),l=W(R),L(t.$$.fragment,R),n=W(R),o=F(R,"HEADER",{class:!0});var Z=M(o);s=F(Z,"DIV",{});var G=M(s);i=F(G,"H1",{class:!0,"data-cy":!0});var de=M(i);L(a.$$.fragment,de),de.forEach(h),f=W(G),u=F(G,"DIV",{class:!0});var ge=M(u);q&&q.l(ge),c=W(ge),Y&&Y.l(ge),ge.forEach(h),G.forEach(h),m=W(Z),_=F(Z,"DIV",{});var x=M(_);L(d.$$.fragment,x),x.forEach(h),Z.forEach(h),g=W(R),b=F(R,"DIV",{class:!0});var ae=M(b);L(w.$$.fragment,ae),v=W(ae),L(k.$$.fragment,ae),ae.forEach(h),B=W(R),L(T.$$.fragment,R),this.h()},h(){S(i,"class","text-2xl"),S(i,"data-cy","workflows-title"),S(u,"class","flex items-center gap-2 text-sm"),S(o,"class","flex items-center justify-between"),S(b,"class","flex flex-col gap-2 md:flex-row")},m(R,Z){C(e,R,Z),I(R,l,Z),C(t,R,Z),I(R,n,Z),I(R,o,Z),A(o,s),A(s,i),C(a,i,null),A(s,f),A(s,u),q&&q.m(u,null),A(u,c),Y&&Y.m(u,null),A(o,m),A(o,_),C(d,_,null),I(R,g,Z),I(R,b,Z),C(w,b,null),A(b,v),C(k,b,null),I(R,B,Z),C(T,R,Z),E=!0},p(R,Z){var ae;const G={};Z[0]&8&&(G.actionableWorkflowsLength=R[3].length),Z[0]&4&&(G.query=R[2]),e.$set(G);const de={};Z[0]&16&&(de.actionableWorkflowsLength=R[4].length),Z[0]&4&&(de.query=R[2]),t.$set(de),((ae=R[5])==null?void 0:ae.totalCount)>=0&&R[6]?q?(q.p(R,Z),Z[0]&96&&p(q,1)):(q=Jn(R),q.c(),p(q,1),q.m(u,c)):q&&(J(),$(q,1,1,()=>{q=null}),X()),!R[7]&&!R[1]&&R[8].length>0?Y?(Y.p(R,Z),Z[0]&386&&p(Y,1)):(Y=Xn(R),Y.c(),p(Y,1),Y.m(u,null)):Y&&(J(),$(Y,1,1,()=>{Y=null}),X());const ge={};Z[0]&1048576&&(ge.$$scope={dirty:Z,ctx:R}),w.$set(ge);const x={};Z[0]&1048576&&(x.$$scope={dirty:Z,ctx:R}),T.$set(x)},i(R){E||(p(e.$$.fragment,R),p(t.$$.fragment,R),p(a.$$.fragment,R),p(q),p(Y),p(d.$$.fragment,R),p(w.$$.fragment,R),p(k.$$.fragment,R),p(T.$$.fragment,R),E=!0)},o(R){$(e.$$.fragment,R),$(t.$$.fragment,R),$(a.$$.fragment,R),$(q),$(Y),$(d.$$.fragment,R),$(w.$$.fragment,R),$(k.$$.fragment,R),$(T.$$.fragment,R),E=!1},d(R){r[17](null),y(e,R),R&&h(l),r[18](null),y(t,R),R&&h(n),R&&h(o),y(a),q&&q.d(),Y&&Y.d(),y(d),R&&h(g),R&&h(b),y(w),y(k),R&&h(B),y(T,R)}}}let He,qe;const et=Je(!1),Ct=Je(!1),We=Je([]),Tc=ct(We,r=>r.length>0),Dc=ct(We,r=>r.filter(e=>e.canBeTerminated)),Or=ct(We,r=>r.filter(e=>e.status==="Running")),Lc=()=>{qe==null||qe.open()},Cc=()=>{He==null||He.open()},yc=r=>{et.set(!0),We.set([...r])},Bc=(r,e)=>{Ct.set(r),et&&et.set(!1),r?We.set([...e]):We.set([])};function Sc(r,e,l){let t,n,o,s,i,a,f=K,u,c=K,m,_,d,g=K,b,w=K,v,k,B,T,E,N,U,q=K,Y,V,R,Z;j(r,rl,le=>l(1,s=le)),j(r,pt,le=>l(13,i=le)),j(r,Dc,le=>l(3,a=le)),j(r,et,le=>l(21,u=le)),j(r,ve,le=>l(14,m=le)),j(r,xe,le=>l(22,_=le)),j(r,We,le=>l(23,d=le)),j(r,Ct,le=>l(24,b=le)),j(r,vt,le=>l(25,v=le)),j(r,Xe,le=>l(26,k=le)),j(r,he,le=>l(15,B=le)),j(r,Vt,le=>l(27,T=le)),j(r,Zt,le=>l(28,E=le)),j(r,Wt,le=>l(29,N=le)),j(r,Or,le=>l(4,U=le)),j(r,pr,le=>l(5,Y=le)),j(r,wt,le=>l(6,V=le)),j(r,gr,le=>l(7,R=le)),j(r,nl,le=>l(8,Z=le)),r.$$.on_destroy.push(()=>f()),r.$$.on_destroy.push(()=>c()),r.$$.on_destroy.push(()=>g()),r.$$.on_destroy.push(()=>w()),r.$$.on_destroy.push(()=>q());let{$$slots:G={},$$scope:de}=e;const ge=()=>{!t&&!B.length&&E&&(te(he,B=[E],B),Qe(m.url,B,k))};ir(()=>{te(Vt,T=m.params.namespace,T),t&&te(he,B=k?el(t,v):el(t),B)});const x=()=>{te(et,u=!1,u),te(Ct,b=!1,b),te(We,d=[],d)},ae=()=>{x(),te(xe,_=Date.now(),_)},Ee=async le=>{var Me;try{const re={namespace:m.params.namespace,reason:le.detail.reason,jobId:le.detail.jobId,...u?{query:o}:{workflows:a}};await Vo(re),He==null||He.close(),kl.push({message:H("workflows","batch-terminate-all-success"),id:"batch-terminate-success-toast"})}catch(re){He==null||He.setError((Me=re==null?void 0:re.message)!==null&&Me!==void 0?Me:H("unknown-error"))}},De=async le=>{var Me;const re={namespace:m.params.namespace,reason:le.detail.reason,jobId:le.detail.jobId,...u?{query:o}:{workflows:a}};try{await Mo(re),qe==null||qe.close(),kl.push({message:H("workflows","batch-cancel-all-success"),id:"batch-cancel-success-toast"})}catch(Ce){qe==null||qe.setError((Me=Ce==null?void 0:Ce.message)!==null&&Me!==void 0?Me:H("unknown-error"))}};function Be(le){ie[le?"unshift":"push"](()=>{He=le})}function Le(le){ie[le?"unshift":"push"](()=>{qe=le})}const Ve=()=>pc(Z);return r.$$set=le=>{"$$scope"in le&&l(20,de=le.$$scope)},r.$$.update=()=>{r.$$.dirty[0]&16384&&l(0,t=m.url.searchParams.get("query")),r.$$.dirty[0]&1&&t&&te(pt,i=t,i),r.$$.dirty[0]&16384&&l(12,n=m.url.searchParams.toString()),r.$$.dirty[0]&4096&&te(Wt,N=n,N),r.$$.dirty[0]&32768&&(B.length||te(pt,i="",i)),r.$$.dirty[0]&16384&&(m.params.namespace,ge()),r.$$.dirty[0]&8192&&l(2,o=i||'ExecutionStatus="Running"'),r.$$.dirty[0]&2&&s&&x()},[t,s,o,a,U,Y,V,R,Z,ae,Ee,De,n,i,m,B,G,Be,Le,Ve,de]}class Ac extends fe{constructor(e){super(),ue(this,e,Sc,Ec,ce,{},null,[-1,-1])}}function Zn(r,e,l){const t=r.slice();return t[16]=e[l][0],t[17]=e[l][1],t}function xn(r,e,l){const t=r.slice();return t[17]=e[l],t}function Nc(r){let e,l;return e=new It({props:{href:r[2].url.pathname+"?search=advanced",$$slots:{default:[Fc]},$$scope:{ctx:r}}}),e.$on("click",r[6]("advanced")),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=advanced"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Pc(r){let e,l;return e=new It({props:{href:r[2].url.pathname+"?search=basic",$$slots:{default:[Oc]},$$scope:{ctx:r}}}),e.$on("click",r[6]("basic")),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&4&&(o.href=t[2].url.pathname+"?search=basic"),n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Fc(r){let e=H("workflows","advanced-search")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Oc(r){let e=H("workflows","basic-search")+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function Wc(r){let e,l,t,n,o,s,i,a,f,u,c,m,_,d,g,b;function w(V){r[9](V)}let v={icon:"search",type:"search",id:"workflow-id-filter",placeholder:H("workflow-id"),label:H("workflow-id"),labelHidden:!0};r[3].workflowId!==void 0&&(v.value=r[3].workflowId),l=new Ne({props:v}),ie.push(()=>me(l,"value",w)),l.$on("input",r[8]);function k(V){r[10](V)}let B={icon:"search",type:"search",id:"workflow-type-filter",placeholder:H("workflow-type"),label:H("workflow-type"),labelHidden:!0};r[3].workflowType!==void 0&&(B.value=r[3].workflowType),o=new Ne({props:B}),ie.push(()=>me(o,"value",k)),o.$on("input",r[8]);function T(V){r[11](V)}let E={id:"time-range-filter",label:"Time Range",$$slots:{default:[qc]},$$scope:{ctx:r}};r[3].timeRange!==void 0&&(E.value=r[3].timeRange),a=new Yt({props:E}),ie.push(()=>me(a,"value",T)),a.$on("change",r[8]);function N(V){r[12](V)}let U={id:"execution-status-filter",label:"Workflow Status",$$slots:{default:[jc]},$$scope:{ctx:r}};r[3].executionStatus!==void 0&&(U.value=r[3].executionStatus),c=new Yt({props:U}),ie.push(()=>me(c,"value",N)),c.$on("change",r[8]);function q(V){r[13](V)}let Y={id:"filter-by-relative-time",label:"Time Format",$$slots:{default:[Yc]},$$scope:{ctx:r}};return r[4]!==void 0&&(Y.value=r[4]),d=new Yt({props:Y}),ie.push(()=>me(d,"value",q)),{c(){e=P("div"),D(l.$$.fragment),n=O(),D(o.$$.fragment),i=O(),D(a.$$.fragment),u=O(),D(c.$$.fragment),_=O(),D(d.$$.fragment),this.h()},l(V){e=F(V,"DIV",{role:!0,class:!0});var R=M(e);L(l.$$.fragment,R),n=W(R),L(o.$$.fragment,R),i=W(R),L(a.$$.fragment,R),u=W(R),L(c.$$.fragment,R),_=W(R),L(d.$$.fragment,R),R.forEach(h),this.h()},h(){S(e,"role","search"),S(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(V,R){I(V,e,R),C(l,e,null),A(e,n),C(o,e,null),A(e,i),C(a,e,null),A(e,u),C(c,e,null),A(e,_),C(d,e,null),b=!0},p(V,R){const Z={};!t&&R&8&&(t=!0,Z.value=V[3].workflowId,_e(()=>t=!1)),l.$set(Z);const G={};!s&&R&8&&(s=!0,G.value=V[3].workflowType,_e(()=>s=!1)),o.$set(G);const de={};R&4194312&&(de.$$scope={dirty:R,ctx:V}),!f&&R&8&&(f=!0,de.value=V[3].timeRange,_e(()=>f=!1)),a.$set(de);const ge={};R&4194304&&(ge.$$scope={dirty:R,ctx:V}),!m&&R&8&&(m=!0,ge.value=V[3].executionStatus,_e(()=>m=!1)),c.$set(ge);const x={};R&4194304&&(x.$$scope={dirty:R,ctx:V}),!g&&R&16&&(g=!0,x.value=V[4],_e(()=>g=!1)),d.$set(x)},i(V){b||(p(l.$$.fragment,V),p(o.$$.fragment,V),p(a.$$.fragment,V),p(c.$$.fragment,V),p(d.$$.fragment,V),b=!0)},o(V){$(l.$$.fragment,V),$(o.$$.fragment,V),$(a.$$.fragment,V),$(c.$$.fragment,V),$(d.$$.fragment,V),b=!1},d(V){V&&h(e),y(l),y(o),y(a),y(c),y(d)}}}function Vc(r){let e,l;return e=new so({props:{icon:!0,id:"advanced-search",placeholder:"Query…",value:r[1]}}),e.$on("submit",r[7]),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&2&&(o.value=t[1]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Mc(r){let e;return{c(){e=z("All")},l(l){e=Q(l,"All")},m(l,t){I(l,e,t)},d(l){l&&h(e)}}}function er(r){let e,l;return e=new ot({props:{value:r[3].timeRange,$$slots:{default:[Rc]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&8&&(o.value=t[3].timeRange),n&4194312&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function Rc(r){let e=r[3].timeRange+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p(t,n){n&8&&e!==(e=t[3].timeRange+"")&&oe(l,e)},d(t){t&&h(l)}}}function Hc(r){let e=r[17]+"",l;return{c(){l=z(e)},l(t){l=Q(t,e)},m(t,n){I(t,l,n)},p:K,d(t){t&&h(l)}}}function tr(r){let e,l;return e=new ot({props:{value:r[17],$$slots:{default:[Hc]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&4194304&&(o.$$scope={dirty:n,ctx:t}),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function qc(r){let e,l,t=r[3].timeRange&&!At.includes(r[3].timeRange),n,o,s;e=new ot({props:{value:null,$$slots:{default:[Mc]},$$scope:{ctx:r}}});let i=t&&er(r),a=At,f=[];for(let c=0;c$(f[c],1,1,()=>{f[c]=null});return{c(){D(e.$$.fragment),l=O(),i&&i.c(),n=O();for(let c=0;c{i=null}),X()),m&0){a=At;let d;for(d=0;di[16];for(let i=0;i{u[w]=null}),X(),n=u[t],n?n.p(g,b):(n=u[t]=f[t](g),n.c()),p(n,1),n.m(l,null));let v=s;s=d(g),s===v?_[s].p(g,b):(J(),$(_[v],1,1,()=>{_[v]=null}),X(),i=_[s],i?i.p(g,b):(i=_[s]=m[s](g),i.c()),p(i,1),i.m(e,null))},i(g){a||(p(n),p(i),a=!0)},o(g){$(n),$(i),a=!1},d(g){g&&h(e),u[t].d(),_[s].d()}}}function Jc(r,e,l){let t,n,o,s;j(r,ve,k=>l(2,o=k)),j(r,Ft,k=>l(4,s=k));const i=ut();let{searchType:a}=e;const f=bl({timeRange:"All"}),u={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=k=>()=>{l(0,a=k)},m=k=>{i("search");const B=new FormData(k.target);l(1,t=String(B.get("query"))),l(3,n=Tl(t)),Ue({url:o.url,parameter:"query",value:t})},_=mr(()=>{i("search"),l(1,t=bl(n)),Ue({url:o.url,parameter:"query",value:t,allowEmpty:!0})},300);function d(k){r.$$.not_equal(n.workflowId,k)&&(n.workflowId=k,l(3,n),l(1,t),l(2,o))}function g(k){r.$$.not_equal(n.workflowType,k)&&(n.workflowType=k,l(3,n),l(1,t),l(2,o))}function b(k){r.$$.not_equal(n.timeRange,k)&&(n.timeRange=k,l(3,n),l(1,t),l(2,o))}function w(k){r.$$.not_equal(n.executionStatus,k)&&(n.executionStatus=k,l(3,n),l(1,t),l(2,o))}function v(k){s=k,Ft.set(s)}return r.$$set=k=>{"searchType"in k&&l(0,a=k.searchType)},r.$$.update=()=>{r.$$.dirty&4&&l(1,t=o.url.searchParams.get("query")),r.$$.dirty&2&&l(3,n=Tl(t??f))},[a,t,o,n,s,u,c,m,_,d,g,b,w,v]}class Xc extends fe{constructor(e){super(),ue(this,e,Jc,Gc,ce,{searchType:0})}}const Zc=r=>$o(r)?r==="basic"||r==="advanced":!1,xc=r=>{const e=r.searchParams.get("search");return Zc(e)?e:(r.searchParams.set("search","basic"),"basic")};function nr(r,e,l){const t=r.slice();return t[13]=e[l],t}function rr(r){let e,l,t,n,o,s,i,a,f,u;const c=[tm,em],m=[];function _(w,v){return w[4]?0:1}t=_(r),n=m[t]=c[t](r);const d=[nm,lm],g=[];function b(w,v){return w[4]?0:1}return i=b(r),a=g[i]=d[i](r),{c(){e=P("tr"),l=P("td"),n.c(),o=O(),s=P("td"),a.c(),f=O(),this.h()},l(w){e=F(w,"TR",{});var v=M(e);l=F(v,"TD",{colspan:!0,class:!0});var k=M(l);n.l(k),k.forEach(h),o=W(v),s=F(v,"TD",{colspan:!0,class:!0});var B=M(s);a.l(B),B.forEach(h),f=W(v),v.forEach(h),this.h()},h(){S(l,"colspan","5"),S(l,"class","xl:hidden"),S(s,"colspan","7"),S(s,"class","hidden xl:table-cell")},m(w,v){I(w,e,v),A(e,l),m[t].m(l,null),A(e,o),A(e,s),g[i].m(s,null),A(e,f),u=!0},p(w,v){let k=t;t=_(w),t===k?m[t].p(w,v):(J(),$(m[k],1,1,()=>{m[k]=null}),X(),n=m[t],n?n.p(w,v):(n=m[t]=c[t](w),n.c()),p(n,1),n.m(l,null));let B=i;i=b(w),i===B?g[i].p(w,v):(J(),$(g[B],1,1,()=>{g[B]=null}),X(),a=g[i],a?a.p(w,v):(a=g[i]=d[i](w),a.c()),p(a,1),a.m(s,null))},i(w){u||(p(n),p(a),u=!0)},o(w){$(n),$(a),u=!1},d(w){w&&h(e),m[t].d(),g[i].d()}}}function em(r){let e,l;return e=new kr({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function tm(r){let e,l;return e=new ol({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function lm(r){let e,l;return e=new kr({props:{title:"No Workflows Found",content:r[6],error:r[5]}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&32&&(o.error=t[5]),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function nm(r){let e,l;return e=new ol({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function or(r){let e,l;return e=new fo({props:{workflow:r[13],namespace:r[1].params.namespace}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p(t,n){const o={};n&4096&&(o.workflow=t[13]),n&2&&(o.namespace=t[1].params.namespace),e.$set(o)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function rm(r){let e,l,t=r[12],n=[];for(let i=0;i$(n[i],1,1,()=>{n[i]=null});let s=null;return t.length||(s=rr(r)),{c(){for(let i=0;i{s=null}),X()):(s=rr(i),s.c(),p(s,1),s.m(e.parentNode,e))}},i(i){if(!l){for(let a=0;ame(g,"searchType",B)),v=new wo({props:{items:r[2],"aria-label":H("workflows","recent-workflows"),pageSizeSelectLabel:H("per-page"),previousButtonLabel:H("previous"),nextButtonLabel:H("next"),$$slots:{default:[om,({visibleItems:E})=>({12:E}),({visibleItems:E})=>E?4096:0]},$$scope:{ctx:r}}}),{c(){e=P("header"),l=P("div"),t=P("h1"),o=z(n),s=O(),i=P("div"),a=P("p"),u=z(f),c=O(),m=P("div"),D(_.$$.fragment),d=O(),D(g.$$.fragment),w=O(),D(v.$$.fragment),this.h()},l(E){e=F(E,"HEADER",{class:!0});var N=M(e);l=F(N,"DIV",{});var U=M(l);t=F(U,"H1",{class:!0,"data-testid":!0});var q=M(t);o=Q(q,n),q.forEach(h),s=W(U),i=F(U,"DIV",{class:!0});var Y=M(i);a=F(Y,"P",{"data-testid":!0});var V=M(a);u=Q(V,f),V.forEach(h),Y.forEach(h),U.forEach(h),c=W(N),m=F(N,"DIV",{});var R=M(m);L(_.$$.fragment,R),R.forEach(h),N.forEach(h),d=W(E),L(g.$$.fragment,E),w=W(E),L(v.$$.fragment,E),this.h()},h(){S(t,"class","text-2xl"),S(t,"data-testid","namespace-title"),S(a,"data-testid","namespace-name"),S(i,"class","flex items-center gap-2 text-sm"),S(e,"class","mb-2 flex items-center justify-between")},m(E,N){I(E,e,N),A(e,l),A(l,t),A(t,o),A(l,s),A(l,i),A(i,a),A(a,u),A(e,c),A(e,m),C(_,m,null),I(E,d,N),C(g,E,N),I(E,w,N),C(v,E,N),k=!0},p(E,[N]){(!k||N&2)&&f!==(f=E[1].params.namespace+"")&&oe(u,f);const U={};!b&&N&1&&(b=!0,U.searchType=E[0],_e(()=>b=!1)),g.$set(U);const q={};N&4&&(q.items=E[2]),N&69690&&(q.$$scope={dirty:N,ctx:E}),v.$set(q)},i(E){k||(p(_.$$.fragment,E),p(g.$$.fragment,E),p(v.$$.fragment,E),k=!0)},o(E){$(_.$$.fragment,E),$(g.$$.fragment,E),$(v.$$.fragment,E),k=!1},d(E){E&&h(e),y(_),E&&h(d),y(g,E),E&&h(w),y(v,E)}}}function sm(r,e,l){let t,n,o,s,i,a,f,u;j(r,ve,g=>l(1,t=g)),j(r,Wt,g=>l(9,n=g)),j(r,xe,g=>l(10,o=g)),j(r,Vt,g=>l(11,s=g)),j(r,nl,g=>l(2,i=g)),j(r,rl,g=>l(3,a=g)),j(r,gr,g=>l(4,f=g)),j(r,dr,g=>l(5,u=g));let c=xc(t.url);const m=c==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";ir(()=>{te(Vt,s=t.params.namespace,s)});const _=()=>{te(xe,o=Date.now(),o)};Qr(()=>{te(Wt,n=t.url.searchParams.toString(),n)});function d(g){c=g,l(0,c)}return[c,t,i,a,f,u,m,_,d]}class im extends fe{constructor(e){super(),ue(this,e,sm,am,ce,{})}}function fm(r){let e,l;return e=new Ac({}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function um(r){let e,l;return e=new im({props:{slot:"fallback"}}),{c(){D(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){C(e,t,n),l=!0},p:K,i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){$(e.$$.fragment,t),l=!1},d(t){y(e,t)}}}function cm(r){let e,l,t,n;return e=new Yr({props:{title:`Workflows | ${r[0].params.namespace}`,url:r[0].url.href}}),t=new Yo({props:{$$slots:{fallback:[um],default:[fm]},$$scope:{ctx:r}}}),{c(){D(e.$$.fragment),l=O(),D(t.$$.fragment)},l(o){L(e.$$.fragment,o),l=W(o),L(t.$$.fragment,o)},m(o,s){C(e,o,s),I(o,l,s),C(t,o,s),n=!0},p(o,[s]){const i={};s&1&&(i.title=`Workflows | ${o[0].params.namespace}`),s&1&&(i.url=o[0].url.href),e.$set(i);const a={};s&2&&(a.$$scope={dirty:s,ctx:o}),t.$set(a)},i(o){n||(p(e.$$.fragment,o),p(t.$$.fragment,o),n=!0)},o(o){$(e.$$.fragment,o),$(t.$$.fragment,o),n=!1},d(o){y(e,o),o&&h(l),y(t,o)}}}function mm(r,e,l){let t;return j(r,ve,n=>l(0,t=n)),[t]}class c_ extends fe{constructor(e){super(),ue(this,e,mm,cm,ce,{})}}export{c_ as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.126cd0e2.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.4f953d7f.js similarity index 96% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.126cd0e2.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.4f953d7f.js index 2a7cb6d846..4745268f1b 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.126cd0e2.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-page.svelte.4f953d7f.js @@ -1 +1 @@ -import{S as J,b as M,a as Q,C as d,c as B,m as P,w as x,e as E,D as b,d as C,p as y,q as I,x as N,k as p,u as L,E as k,f as $,L as q,g as u,h as O,j as m,F as w,K as H,z as G,n as z,a7 as R,y as U}from"../chunks/index.6779d4e2.js";import{p as V}from"../chunks/stores.6ee4c480.js";import{P as W}from"../chunks/page-title.990af218.js";import{E as X}from"../chunks/empty-state.c8d40bbf.js";import{L as Y}from"../chunks/link.8030aa06.js";import{P as Z}from"../chunks/pagination.b9ceda84.js";import{T as ee,a as te}from"../chunks/table-header-row.5433617e.js";import{T as ae}from"../chunks/table-row.e455010e.js";import{t as h}from"../chunks/translate.29a4bc43.js";import{n as ne}from"../chunks/namespaces.65099960.js";import{o as j}from"../chunks/route-for.cec09c4c.js";function A(f,t,n){const e=f.slice();return e[3]=t[n],e}function re(f){let t,n;return t=new X({props:{title:h("namespaces","namespaces-empty-state-title"),content:h("namespaces","namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:z,i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function se(f){let t,n;return t=new Z({props:{items:f[1],"aria-label":h("namespaces"),pageSizeSelectLabel:h("per-page"),previousButtonLabel:h("previous"),nextButtonLabel:h("next"),$$slots:{default:[me,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function le(f){let t=f[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&U(n,t)},d(e){e&&p(n)}}}function oe(f){let t,n,e,a;return n=new Y({props:{href:j({namespace:f[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:f}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=y(r,"TD",{});var s=I(t);b(n.$$.fragment,s),s.forEach(p),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const l={};s&4&&(l.href=j({namespace:r[3].namespaceInfo.name})),s&68&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){a||(m(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&p(t),w(n),r&&p(e)}}}function K(f){let t,n;return t=new ae({props:{$$slots:{default:[oe]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function ce(f){let t,n,e=f[2],a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return l=F(f),o=g[l]=D[l](f),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),o.c(),_=E(),this.h()},l(c){b(t.$$.fragment,c),n=C(c),e=y(c,"H1",{"data-testid":!0,class:!0});var i=I(e);r=N(i,a),i.forEach(p),s=C(c),o.l(c),_=E(),this.h()},h(){L(e,"data-testid","namespace-selector-title"),L(e,"class","mb-8 text-2xl")},m(c,i){k(t,c,i),$(c,n,i),$(c,e,i),q(e,r),$(c,s,i),g[l].m(c,i),$(c,_,i),T=!0},p(c,[i]){const v={};i&1&&(v.url=c[0].url.href),t.$set(v);let S=l;l=F(c),l===S?g[l].p(c,i):(G(),u(g[S],1,1,()=>{g[S]=null}),O(),o=g[l],o?o.p(c,i):(o=g[l]=D[l](c),o.c()),m(o,1),o.m(_.parentNode,_))},i(c){T||(m(t.$$.fragment,c),m(o),T=!0)},o(c){u(t.$$.fragment,c),u(o),T=!1},d(c){w(t,c),c&&p(n),c&&p(e),c&&p(s),g[l].d(c),c&&p(_)}}}function $e(f,t,n){let e,a;return H(f,V,r=>n(0,e=r)),H(f,ne,r=>n(1,a=r)),[e,a]}class Pe extends J{constructor(t){super(),M(this,t,$e,ue,Q,{})}}export{Pe as default}; +import{S as J,b as M,a as Q,C as d,c as B,m as P,w as x,e as E,D as b,d as C,p as y,q as I,x as N,k as p,u as L,E as k,f as $,L as q,g as u,h as O,j as m,F as w,K as H,z as G,n as z,a7 as R,y as U}from"../chunks/index.6779d4e2.js";import{p as V}from"../chunks/stores.b96d31b2.js";import{P as W}from"../chunks/page-title.990af218.js";import{E as X}from"../chunks/empty-state.c8d40bbf.js";import{L as Y}from"../chunks/link.8030aa06.js";import{P as Z}from"../chunks/pagination.46c6618d.js";import{T as ee,a as te}from"../chunks/table-header-row.5433617e.js";import{T as ae}from"../chunks/table-row.e455010e.js";import{t as h}from"../chunks/translate.29a4bc43.js";import{n as ne}from"../chunks/namespaces.65099960.js";import{o as j}from"../chunks/route-for.31ffa191.js";function A(f,t,n){const e=f.slice();return e[3]=t[n],e}function re(f){let t,n;return t=new X({props:{title:h("namespaces","namespaces-empty-state-title"),content:h("namespaces","namespaces-empty-state-content")}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p:z,i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function se(f){let t,n;return t=new Z({props:{items:f[1],"aria-label":h("namespaces"),pageSizeSelectLabel:h("per-page"),previousButtonLabel:h("previous"),nextButtonLabel:h("next"),$$slots:{default:[me,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&2&&(r.items=e[1]),a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function le(f){let t=f[3].namespaceInfo.name+"",n;return{c(){n=x(t)},l(e){n=N(e,t)},m(e,a){$(e,n,a)},p(e,a){a&4&&t!==(t=e[3].namespaceInfo.name+"")&&U(n,t)},d(e){e&&p(n)}}}function oe(f){let t,n,e,a;return n=new Y({props:{href:j({namespace:f[3].namespaceInfo.name}),$$slots:{default:[le]},$$scope:{ctx:f}}}),{c(){t=P("td"),d(n.$$.fragment),e=B()},l(r){t=y(r,"TD",{});var s=I(t);b(n.$$.fragment,s),s.forEach(p),e=C(r)},m(r,s){$(r,t,s),k(n,t,null),$(r,e,s),a=!0},p(r,s){const l={};s&4&&(l.href=j({namespace:r[3].namespaceInfo.name})),s&68&&(l.$$scope={dirty:s,ctx:r}),n.$set(l)},i(r){a||(m(n.$$.fragment,r),a=!0)},o(r){u(n.$$.fragment,r),a=!1},d(r){r&&p(t),w(n),r&&p(e)}}}function K(f){let t,n;return t=new ae({props:{$$slots:{default:[oe]},$$scope:{ctx:f}}}),{c(){d(t.$$.fragment)},l(e){b(t.$$.fragment,e)},m(e,a){k(t,e,a),n=!0},p(e,a){const r={};a&68&&(r.$$scope={dirty:a,ctx:e}),t.$set(r)},i(e){n||(m(t.$$.fragment,e),n=!0)},o(e){u(t.$$.fragment,e),n=!1},d(e){w(t,e)}}}function ce(f){let t,n,e=f[2],a=[];for(let s=0;su(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return l=F(f),o=g[l]=D[l](f),{c(){d(t.$$.fragment),n=B(),e=P("h1"),r=x(a),s=B(),o.c(),_=E(),this.h()},l(c){b(t.$$.fragment,c),n=C(c),e=y(c,"H1",{"data-testid":!0,class:!0});var i=I(e);r=N(i,a),i.forEach(p),s=C(c),o.l(c),_=E(),this.h()},h(){L(e,"data-testid","namespace-selector-title"),L(e,"class","mb-8 text-2xl")},m(c,i){k(t,c,i),$(c,n,i),$(c,e,i),q(e,r),$(c,s,i),g[l].m(c,i),$(c,_,i),T=!0},p(c,[i]){const v={};i&1&&(v.url=c[0].url.href),t.$set(v);let S=l;l=F(c),l===S?g[l].p(c,i):(G(),u(g[S],1,1,()=>{g[S]=null}),O(),o=g[l],o?o.p(c,i):(o=g[l]=D[l](c),o.c()),m(o,1),o.m(_.parentNode,_))},i(c){T||(m(t.$$.fragment,c),m(o),T=!0)},o(c){u(t.$$.fragment,c),u(o),T=!1},d(c){w(t,c),c&&p(n),c&&p(e),c&&p(s),g[l].d(c),c&&p(_)}}}function $e(f,t,n){let e,a;return H(f,V,r=>n(0,e=r)),H(f,ne,r=>n(1,a=r)),[e,a]}class Pe extends J{constructor(t){super(),M(this,t,$e,ue,Q,{})}}export{Pe as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.svelte.fe20f2f8.js b/ui/assets/local/_app/immutable/entry/(app)-page.svelte.44fe0b6b.js similarity index 79% rename from ui/assets/local/_app/immutable/entry/(app)-page.svelte.fe20f2f8.js rename to ui/assets/local/_app/immutable/entry/(app)-page.svelte.44fe0b6b.js index a4480c1923..86fc863fd6 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-page.svelte.fe20f2f8.js +++ b/ui/assets/local/_app/immutable/entry/(app)-page.svelte.44fe0b6b.js @@ -1 +1 @@ -import{S as f,b as u,a as l,C as p,D as d,E as g,n as _,j as h,g as $,F as w,K as F,o as N}from"../chunks/index.6779d4e2.js";import{g as s}from"../chunks/navigation.a7086f0c.js";import{L as b}from"../chunks/loading.a6f9064e.js";import{e as x}from"../chunks/workflow-service.fd47d996.js";import{l as y}from"../chunks/namespaces.65099960.js";import{r as S,m as c}from"../chunks/route-for.cec09c4c.js";function k(r){let e,a;return e=new b({}),{c(){p(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,n){g(e,t,n),a=!0},p:_,i(t){a||(h(e.$$.fragment,t),a=!0)},o(t){$(e.$$.fragment,t),a=!1},d(t){w(e,t)}}}function z(r,e,a){let t;F(r,y,o=>a(1,t=o));let{data:n}=e,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await x(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&a(0,n=o.data)},[n]}class A extends f{constructor(e){super(),u(this,e,z,k,l,{data:0})}}export{A as default}; +import{S as f,b as u,a as l,C as p,D as d,E as g,n as _,j as h,g as $,F as w,K as F,o as N}from"../chunks/index.6779d4e2.js";import{g as s}from"../chunks/navigation.8e7fd3e5.js";import{L as b}from"../chunks/loading.a6f9064e.js";import{e as x}from"../chunks/workflow-service.2a5b4d45.js";import{l as y}from"../chunks/namespaces.65099960.js";import{r as S,m as c}from"../chunks/route-for.31ffa191.js";function k(r){let e,a;return e=new b({}),{c(){p(e.$$.fragment)},l(t){d(e.$$.fragment,t)},m(t,n){g(e,t,n),a=!0},p:_,i(t){a||(h(e.$$.fragment,t),a=!0)},o(t){$(e.$$.fragment,t),a=!1},d(t){w(e,t)}}}function z(r,e,a){let t;F(r,y,o=>a(1,t=o));let{data:n}=e,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await x(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&a(0,n=o.data)},[n]}class A extends f{constructor(e){super(),u(this,e,z,k,l,{data:0})}}export{A as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.ts.4d49dca0.js b/ui/assets/local/_app/immutable/entry/(app)-page.ts.4d49dca0.js deleted file mode 100644 index 21cca7d66b..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-page.ts.4d49dca0.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.cec09c4c.js";import{l as t}from"../chunks/_page.8f62fe6c.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.ts.7df4a55a.js b/ui/assets/local/_app/immutable/entry/(app)-page.ts.7df4a55a.js new file mode 100644 index 0000000000..983c6be65b --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-page.ts.7df4a55a.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.31ffa191.js";import{l as t}from"../chunks/_page.ea8eb5bd.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.7a8f6006.js b/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.23cd0f2f.js similarity index 97% rename from ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.7a8f6006.js rename to ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.23cd0f2f.js index c69fc8344d..dba5bf1d5c 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.7a8f6006.js +++ b/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.23cd0f2f.js @@ -1 +1 @@ -import{S as fe,b as he,a as me,m as N,p as z,q as P,k as b,v as O,av as le,a3 as ve,f as C,L as E,am as be,Q as pe,z as ae,aa as ke,ab as we,h as ne,j as V,g as H,o as ye,G as Ee,c as F,d as W,H as Te,I as Ie,J as Le,t as ee,A as se,w as Y,x as $,Z as Ve,C as q,D as B,u as R,E as j,_ as He,F as G,K as te,a5 as Se,n as ge,e as re,P as X,y as Ne}from"../chunks/index.6779d4e2.js";import{g as ze}from"../chunks/navigation.a7086f0c.js";import{p as Pe}from"../chunks/stores.6ee4c480.js";import{P as Re}from"../chunks/page-title.990af218.js";import{E as de}from"../chunks/empty-state.c8d40bbf.js";import{I as Ue}from"../chunks/input.86f6e192.js";import{t as U}from"../chunks/translate.29a4bc43.js";import{e as Ae}from"../chunks/workflow-service.fd47d996.js";import{l as ie,n as Ce}from"../chunks/namespaces.65099960.js";import{t as Me}from"../chunks/toaster.ef510498.js";import{r as Oe}from"../chunks/route-for.cec09c4c.js";function oe(s,e,t){const l=s.slice();return l[23]=e[t],l}const De=s=>({item:s&16}),ce=s=>({item:s[23].data});function Fe(s){let e;return{c(){e=Y("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){C(t,e,l)},d(t){t&&b(e)}}}function ue(s,e){let t,l,o;const f=e[14].default,u=Ee(f,e,e[13],ce),_=u||Fe();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=F(),this.h()},l(a){t=z(a,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var i=P(t);_&&_.l(i),l=W(i),i.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(a,i){C(a,t,i),_&&_.m(t,null),E(t,l),o=!0},p(a,i){e=a,u&&u.p&&(!o||i&8208)&&Te(u,f,e,e[13],o?Le(f,e[13],i,De):Ie(e[13]),ce)},i(a){o||(V(_,a),o=!0)},o(a){H(_,a),o=!1},d(a){a&&b(t),_&&_.d(a)}}}function We(s){let e,t,l=[],o=new Map,f,u,_,a,i=s[4];const p=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,n){C(c,e,n),E(e,t);for(let h=0;hr){t(8,a=d),t(5,v=y);break}y+=g,d+=1}for(;dr+w)););t(9,i=d);const L=f.length-i;for(I=y/i;d{c=h.getElementsByTagName("svelte-virtual-list-row"),t(12,T=!0)});function K(r){se[r?"unshift":"push"](()=>{h=r,t(3,h)})}function S(r){se[r?"unshift":"push"](()=>{n=r,t(2,n)})}function Q(){w=this.offsetHeight,t(1,w)}return s.$$set=r=>{"items"in r&&t(10,f=r.items),"height"in r&&t(0,u=r.height),"itemHeight"in r&&t(11,_=r.itemHeight),"start"in r&&t(8,a=r.start),"end"in r&&t(9,i=r.end),"$$scope"in r&&t(13,o=r.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,M=f.slice(a,i).map((r,m)=>({index:m+a,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,n,h,M,v,k,J,a,i,f,_,T,o,l,K,S,Q]}class Be extends fe{constructor(e){super(),he(this,e,qe,We,me,{items:10,height:0,itemHeight:11,start:8,end:9})}}function _e(s){const e=s[9]===s[2][0];s[10]=e;const t=s[9]===s[2][s[2].length-1];s[11]=t}function je(s){let e,t;return e=new de({props:{title:U("namespaces","select-namespace-empty-state")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ge(s){let e,t,l,o;const f=[Ke,Je],u=[];function _(a,i){return a[2].length?0:1}return e=_(s),t=u[e]=f[e](s),{c(){t.c(),l=re()},l(a){t.l(a),l=re()},m(a,i){u[e].m(a,i),C(a,l,i),o=!0},p(a,i){let p=e;e=_(a),e===p?u[e].p(a,i):(ae(),H(u[p],1,1,()=>{u[p]=null}),ne(),t=u[e],t?t.p(a,i):(t=u[e]=f[e](a),t.c()),V(t,1),t.m(l.parentNode,l))},i(a){o||(V(t),o=!0)},o(a){H(t),o=!1},d(a){u[e].d(a),a&&b(l)}}}function Je(s){let e,t;return e=new de({props:{title:U("no-results")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ke(s){let e,t;return e=new Be({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({9:l}),({item:l})=>l?512:0]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p(l,o){const f={};o&4&&(f.items=l[2]),o&4612&&(f.$$scope={dirty:o,ctx:l}),e.$set(f)},i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Qe(s){_e(s);let e,t,l=s[9].namespace+"",o,f,u;function _(){return s[7](s[9])}return{c(){e=N("div"),t=N("button"),o=Y(l),this.h()},l(a){e=z(a,"DIV",{class:!0});var i=P(e);t=z(i,"BUTTON",{class:!0});var p=P(t);o=$(p,l),p.forEach(b),i.forEach(b),this.h()},h(){R(t,"class","w-full truncate p-3 text-left"),R(e,"class","link-item svelte-uk7srb"),X(e,"first",s[10]),X(e,"last",s[11])},m(a,i){C(a,e,i),E(e,t),E(t,o),f||(u=pe(t,"click",_),f=!0)},p(a,i){s=a,_e(s),i&512&&l!==(l=s[9].namespace+"")&&Ne(o,l),i&516&&X(e,"first",s[10]),i&516&&X(e,"last",s[11])},d(a){a&&b(e),f=!1,u()}}}function Ze(s){let e,t,l,o,f=U("namespaces","select-namespace-welcome")+"",u,_,a,i=U("namespaces","select-namespace")+"",p,c,n,h,w,M,T,v,k,I;e=new Re({props:{title:U("namespaces","namespace-select-header"),url:s[3].url.href}});function x(r){s[6](r)}let J={id:"search-namespaces",type:"search",label:U("search"),labelHidden:!0,placeholder:U("search"),icon:"search"};s[0]!==void 0&&(J.value=s[0]),h=new Ue({props:J}),se.push(()=>Ve(h,"value",x));const K=[Ge,je],S=[];function Q(r,m){return r[1].length?0:1}return v=Q(s),k=S[v]=K[v](s),{c(){q(e.$$.fragment),t=F(),l=N("div"),o=N("h1"),u=Y(f),_=F(),a=N("p"),p=Y(i),c=F(),n=N("form"),q(h.$$.fragment),M=F(),T=N("div"),k.c(),this.h()},l(r){B(e.$$.fragment,r),t=W(r),l=z(r,"DIV",{class:!0});var m=P(l);o=z(m,"H1",{class:!0});var d=P(o);u=$(d,f),d.forEach(b),_=W(m),a=z(m,"P",{class:!0});var y=P(a);p=$(y,i),y.forEach(b),c=W(m),n=z(m,"FORM",{class:!0,role:!0});var L=P(n);B(h.$$.fragment,L),L.forEach(b),M=W(m),T=z(m,"DIV",{class:!0,"aria-label":!0});var g=P(T);k.l(g),g.forEach(b),m.forEach(b),this.h()},h(){R(o,"class","my-4 text-3xl"),R(a,"class","mb-8"),R(n,"class","mb-5"),R(n,"role","search"),R(T,"class","h-screen w-full"),R(T,"aria-label",U("namespaces")),R(l,"class","w-full p-8 xl:w-1/2")},m(r,m){j(e,r,m),C(r,t,m),C(r,l,m),E(l,o),E(o,u),E(l,_),E(l,a),E(a,p),E(l,c),E(l,n),j(h,n,null),E(l,M),E(l,T),S[v].m(T,null),I=!0},p(r,[m]){const d={};m&8&&(d.url=r[3].url.href),e.$set(d);const y={};!w&&m&1&&(w=!0,y.value=r[0],He(()=>w=!1)),h.$set(y);let L=v;v=Q(r),v===L?S[v].p(r,m):(ae(),H(S[L],1,1,()=>{S[L]=null}),ne(),k=S[v],k?k.p(r,m):(k=S[v]=K[v](r),k.c()),V(k,1),k.m(T,null))},i(r){I||(V(e.$$.fragment,r),V(h.$$.fragment,r),V(k),I=!0)},o(r){H(e.$$.fragment,r),H(h.$$.fragment,r),H(k),I=!1},d(r){G(e,r),r&&b(t),r&&b(l),G(h),S[v].d()}}}function Xe(s,e,t){let l,o,f,u,_,a;te(s,ie,n=>t(8,u=n)),te(s,Ce,n=>t(5,_=n)),te(s,Pe,n=>t(3,a=n));let i="";function p(n){i=n,t(0,i)}const c=n=>n==null?void 0:n.onClick(n.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(n=>{var h;return(h=n==null?void 0:n.namespaceInfo)===null||h===void 0?void 0:h.name})),s.$$.dirty&16&&t(1,o=l.map(n=>({namespace:n,onClick:async h=>{const{authorized:w}=await Ae(h);w?(Se(ie,u=h,u),ze(Oe({namespace:h}))):Me.push({variant:"error",message:U("namespaces","unauthorized-namespace-error")})}}))),s.$$.dirty&3&&t(2,f=o.filter(({namespace:n})=>n.includes(i)))},[i,o,f,a,l,_,p,c]}class ot extends fe{constructor(e){super(),he(this,e,Xe,Ze,me,{})}}export{ot as default}; +import{S as fe,b as he,a as me,m as N,p as z,q as P,k as b,v as O,av as le,a3 as ve,f as C,L as E,am as be,Q as pe,z as ae,aa as ke,ab as we,h as ne,j as V,g as H,o as ye,G as Ee,c as F,d as W,H as Te,I as Ie,J as Le,t as ee,A as se,w as Y,x as $,Z as Ve,C as q,D as B,u as R,E as j,_ as He,F as G,K as te,a5 as Se,n as ge,e as re,P as X,y as Ne}from"../chunks/index.6779d4e2.js";import{g as ze}from"../chunks/navigation.8e7fd3e5.js";import{p as Pe}from"../chunks/stores.b96d31b2.js";import{P as Re}from"../chunks/page-title.990af218.js";import{E as de}from"../chunks/empty-state.c8d40bbf.js";import{I as Ue}from"../chunks/input.86f6e192.js";import{t as U}from"../chunks/translate.29a4bc43.js";import{e as Ae}from"../chunks/workflow-service.2a5b4d45.js";import{l as ie,n as Ce}from"../chunks/namespaces.65099960.js";import{t as Me}from"../chunks/toaster.ef510498.js";import{r as Oe}from"../chunks/route-for.31ffa191.js";function oe(s,e,t){const l=s.slice();return l[23]=e[t],l}const De=s=>({item:s&16}),ce=s=>({item:s[23].data});function Fe(s){let e;return{c(){e=Y("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){C(t,e,l)},d(t){t&&b(e)}}}function ue(s,e){let t,l,o;const f=e[14].default,u=Ee(f,e,e[13],ce),_=u||Fe();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=F(),this.h()},l(a){t=z(a,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var i=P(t);_&&_.l(i),l=W(i),i.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(a,i){C(a,t,i),_&&_.m(t,null),E(t,l),o=!0},p(a,i){e=a,u&&u.p&&(!o||i&8208)&&Te(u,f,e,e[13],o?Le(f,e[13],i,De):Ie(e[13]),ce)},i(a){o||(V(_,a),o=!0)},o(a){H(_,a),o=!1},d(a){a&&b(t),_&&_.d(a)}}}function We(s){let e,t,l=[],o=new Map,f,u,_,a,i=s[4];const p=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,n){C(c,e,n),E(e,t);for(let h=0;hr){t(8,a=d),t(5,v=y);break}y+=g,d+=1}for(;dr+w)););t(9,i=d);const L=f.length-i;for(I=y/i;d{c=h.getElementsByTagName("svelte-virtual-list-row"),t(12,T=!0)});function K(r){se[r?"unshift":"push"](()=>{h=r,t(3,h)})}function S(r){se[r?"unshift":"push"](()=>{n=r,t(2,n)})}function Q(){w=this.offsetHeight,t(1,w)}return s.$$set=r=>{"items"in r&&t(10,f=r.items),"height"in r&&t(0,u=r.height),"itemHeight"in r&&t(11,_=r.itemHeight),"start"in r&&t(8,a=r.start),"end"in r&&t(9,i=r.end),"$$scope"in r&&t(13,o=r.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,M=f.slice(a,i).map((r,m)=>({index:m+a,data:r}))),s.$$.dirty&7170&&T&&x(f,w,_)},[u,w,n,h,M,v,k,J,a,i,f,_,T,o,l,K,S,Q]}class Be extends fe{constructor(e){super(),he(this,e,qe,We,me,{items:10,height:0,itemHeight:11,start:8,end:9})}}function _e(s){const e=s[9]===s[2][0];s[10]=e;const t=s[9]===s[2][s[2].length-1];s[11]=t}function je(s){let e,t;return e=new de({props:{title:U("namespaces","select-namespace-empty-state")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ge(s){let e,t,l,o;const f=[Ke,Je],u=[];function _(a,i){return a[2].length?0:1}return e=_(s),t=u[e]=f[e](s),{c(){t.c(),l=re()},l(a){t.l(a),l=re()},m(a,i){u[e].m(a,i),C(a,l,i),o=!0},p(a,i){let p=e;e=_(a),e===p?u[e].p(a,i):(ae(),H(u[p],1,1,()=>{u[p]=null}),ne(),t=u[e],t?t.p(a,i):(t=u[e]=f[e](a),t.c()),V(t,1),t.m(l.parentNode,l))},i(a){o||(V(t),o=!0)},o(a){H(t),o=!1},d(a){u[e].d(a),a&&b(l)}}}function Je(s){let e,t;return e=new de({props:{title:U("no-results")}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p:ge,i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Ke(s){let e,t;return e=new Be({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({9:l}),({item:l})=>l?512:0]},$$scope:{ctx:s}}}),{c(){q(e.$$.fragment)},l(l){B(e.$$.fragment,l)},m(l,o){j(e,l,o),t=!0},p(l,o){const f={};o&4&&(f.items=l[2]),o&4612&&(f.$$scope={dirty:o,ctx:l}),e.$set(f)},i(l){t||(V(e.$$.fragment,l),t=!0)},o(l){H(e.$$.fragment,l),t=!1},d(l){G(e,l)}}}function Qe(s){_e(s);let e,t,l=s[9].namespace+"",o,f,u;function _(){return s[7](s[9])}return{c(){e=N("div"),t=N("button"),o=Y(l),this.h()},l(a){e=z(a,"DIV",{class:!0});var i=P(e);t=z(i,"BUTTON",{class:!0});var p=P(t);o=$(p,l),p.forEach(b),i.forEach(b),this.h()},h(){R(t,"class","w-full truncate p-3 text-left"),R(e,"class","link-item svelte-uk7srb"),X(e,"first",s[10]),X(e,"last",s[11])},m(a,i){C(a,e,i),E(e,t),E(t,o),f||(u=pe(t,"click",_),f=!0)},p(a,i){s=a,_e(s),i&512&&l!==(l=s[9].namespace+"")&&Ne(o,l),i&516&&X(e,"first",s[10]),i&516&&X(e,"last",s[11])},d(a){a&&b(e),f=!1,u()}}}function Ze(s){let e,t,l,o,f=U("namespaces","select-namespace-welcome")+"",u,_,a,i=U("namespaces","select-namespace")+"",p,c,n,h,w,M,T,v,k,I;e=new Re({props:{title:U("namespaces","namespace-select-header"),url:s[3].url.href}});function x(r){s[6](r)}let J={id:"search-namespaces",type:"search",label:U("search"),labelHidden:!0,placeholder:U("search"),icon:"search"};s[0]!==void 0&&(J.value=s[0]),h=new Ue({props:J}),se.push(()=>Ve(h,"value",x));const K=[Ge,je],S=[];function Q(r,m){return r[1].length?0:1}return v=Q(s),k=S[v]=K[v](s),{c(){q(e.$$.fragment),t=F(),l=N("div"),o=N("h1"),u=Y(f),_=F(),a=N("p"),p=Y(i),c=F(),n=N("form"),q(h.$$.fragment),M=F(),T=N("div"),k.c(),this.h()},l(r){B(e.$$.fragment,r),t=W(r),l=z(r,"DIV",{class:!0});var m=P(l);o=z(m,"H1",{class:!0});var d=P(o);u=$(d,f),d.forEach(b),_=W(m),a=z(m,"P",{class:!0});var y=P(a);p=$(y,i),y.forEach(b),c=W(m),n=z(m,"FORM",{class:!0,role:!0});var L=P(n);B(h.$$.fragment,L),L.forEach(b),M=W(m),T=z(m,"DIV",{class:!0,"aria-label":!0});var g=P(T);k.l(g),g.forEach(b),m.forEach(b),this.h()},h(){R(o,"class","my-4 text-3xl"),R(a,"class","mb-8"),R(n,"class","mb-5"),R(n,"role","search"),R(T,"class","h-screen w-full"),R(T,"aria-label",U("namespaces")),R(l,"class","w-full p-8 xl:w-1/2")},m(r,m){j(e,r,m),C(r,t,m),C(r,l,m),E(l,o),E(o,u),E(l,_),E(l,a),E(a,p),E(l,c),E(l,n),j(h,n,null),E(l,M),E(l,T),S[v].m(T,null),I=!0},p(r,[m]){const d={};m&8&&(d.url=r[3].url.href),e.$set(d);const y={};!w&&m&1&&(w=!0,y.value=r[0],He(()=>w=!1)),h.$set(y);let L=v;v=Q(r),v===L?S[v].p(r,m):(ae(),H(S[L],1,1,()=>{S[L]=null}),ne(),k=S[v],k?k.p(r,m):(k=S[v]=K[v](r),k.c()),V(k,1),k.m(T,null))},i(r){I||(V(e.$$.fragment,r),V(h.$$.fragment,r),V(k),I=!0)},o(r){H(e.$$.fragment,r),H(h.$$.fragment,r),H(k),I=!1},d(r){G(e,r),r&&b(t),r&&b(l),G(h),S[v].d()}}}function Xe(s,e,t){let l,o,f,u,_,a;te(s,ie,n=>t(8,u=n)),te(s,Ce,n=>t(5,_=n)),te(s,Pe,n=>t(3,a=n));let i="";function p(n){i=n,t(0,i)}const c=n=>n==null?void 0:n.onClick(n.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(n=>{var h;return(h=n==null?void 0:n.namespaceInfo)===null||h===void 0?void 0:h.name})),s.$$.dirty&16&&t(1,o=l.map(n=>({namespace:n,onClick:async h=>{const{authorized:w}=await Ae(h);w?(Se(ie,u=h,u),ze(Oe({namespace:h}))):Me.push({variant:"error",message:U("namespaces","unauthorized-namespace-error")})}}))),s.$$.dirty&3&&t(2,f=o.filter(({namespace:n})=>n.includes(i)))},[i,o,f,a,l,_,p,c]}class ot extends fe{constructor(e){super(),he(this,e,Xe,Ze,me,{})}}export{ot as default}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.4474fe6f.js b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.4474fe6f.js new file mode 100644 index 0000000000..19e497a5b4 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.4474fe6f.js @@ -0,0 +1 @@ +/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.df92da83.js";import{l as t,s as a}from"../chunks/_layout.90abbf08.js";export{t as load,a as ssr}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.ca81ed84.js b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.ca81ed84.js deleted file mode 100644 index ca1394327e..0000000000 --- a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.ca81ed84.js +++ /dev/null @@ -1 +0,0 @@ -/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.23aa4f31.js";import{l as t,s as a}from"../chunks/_layout.566ca3b3.js";export{t as load,a as ssr}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.a274105d.js b/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.f2003811.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.a274105d.js rename to ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.f2003811.js index a81b4ccc30..dee16b4a69 100644 --- a/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.a274105d.js +++ b/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.f2003811.js @@ -1 +1 @@ -import{S as N,b as R,a as T,C as A,c as w,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.6779d4e2.js";import{p as Q}from"../chunks/stores.6ee4c480.js";import{F as X,L as Y}from"../chunks/logo.87b20d86.js";import{P as Z}from"../chunks/page-title.990af218.js";import{B as tt}from"../chunks/button.0b50a4b4.js";import{v as et}from"../chunks/route-for.cec09c4c.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,y,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=w(),a=$("header"),r=$("img"),h=w(),A(d.$$.fragment),p=w(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=w(),E=$("p"),F=C("Let's get you signed in."),q=w(),y=$("div"),A(g.$$.fragment),O=w(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),y=b(u,"DIV",{class:!0});var M=k(y);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(y,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,y),H(g,y,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as default}; +import{S as N,b as R,a as T,C as A,c as w,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.6779d4e2.js";import{p as Q}from"../chunks/stores.b96d31b2.js";import{F as X,L as Y}from"../chunks/logo.e963defc.js";import{P as Z}from"../chunks/page-title.990af218.js";import{B as tt}from"../chunks/button.0b50a4b4.js";import{v as et}from"../chunks/route-for.31ffa191.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,y,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=w(),a=$("header"),r=$("img"),h=w(),A(d.$$.fragment),p=w(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=w(),E=$("p"),F=C("Let's get you signed in."),q=w(),y=$("div"),A(g.$$.fragment),O=w(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),y=b(u,"DIV",{class:!0});var M=k(y);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(y,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,y),H(g,y,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as default}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.a274105d.js b/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.f2003811.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.a274105d.js rename to ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.f2003811.js index a81b4ccc30..dee16b4a69 100644 --- a/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.a274105d.js +++ b/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.f2003811.js @@ -1 +1 @@ -import{S as N,b as R,a as T,C as A,c as w,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.6779d4e2.js";import{p as Q}from"../chunks/stores.6ee4c480.js";import{F as X,L as Y}from"../chunks/logo.87b20d86.js";import{P as Z}from"../chunks/page-title.990af218.js";import{B as tt}from"../chunks/button.0b50a4b4.js";import{v as et}from"../chunks/route-for.cec09c4c.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,y,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=w(),a=$("header"),r=$("img"),h=w(),A(d.$$.fragment),p=w(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=w(),E=$("p"),F=C("Let's get you signed in."),q=w(),y=$("div"),A(g.$$.fragment),O=w(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),y=b(u,"DIV",{class:!0});var M=k(y);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(y,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,y),H(g,y,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as default}; +import{S as N,b as R,a as T,C as A,c as w,m as $,w as C,D as B,d as x,p as b,q as k,k as i,x as I,a8 as U,u as c,E as H,f as P,L as f,j as V,g as W,F as G,K as z,n as J}from"../chunks/index.6779d4e2.js";import{p as Q}from"../chunks/stores.b96d31b2.js";import{F as X,L as Y}from"../chunks/logo.e963defc.js";import{P as Z}from"../chunks/page-title.990af218.js";import{B as tt}from"../chunks/button.0b50a4b4.js";import{v as et}from"../chunks/route-for.31ffa191.js";function at(o){let e;return{c(){e=C("Continue to SSO")},l(s){e=I(s,"Continue to SSO")},m(s,a){P(s,e,a)},d(s){s&&i(e)}}}function st(o){let e,s,a;return{c(){e=$("div"),s=$("p"),a=C(o[2]),this.h()},l(r){e=b(r,"DIV",{class:!0});var m=k(e);s=b(m,"P",{class:!0});var h=k(s);a=I(h,o[2]),h.forEach(i),m.forEach(i),this.h()},h(){c(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),c(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,m){P(r,e,m),f(e,s),f(s,a)},p:J,d(r){r&&i(e)}}}function rt(o){let e,s,a,r,m,h,d,p,l,v,j,D,E,F,q,y,g,O,L;e=new Z({props:{title:"Login",url:o[0].url.href}}),d=new X({}),g=new tt({props:{"data-testid":"login-button",leadingIcon:"lock",$$slots:{default:[at]},$$scope:{ctx:o}}}),g.$on("click",o[4]);let _=o[2]&&st(o);return{c(){A(e.$$.fragment),s=w(),a=$("header"),r=$("img"),h=w(),A(d.$$.fragment),p=w(),l=$("section"),v=$("h1"),j=C("Welcome back."),D=w(),E=$("p"),F=C("Let's get you signed in."),q=w(),y=$("div"),A(g.$$.fragment),O=w(),_&&_.c(),this.h()},l(t){B(e.$$.fragment,t),s=x(t),a=b(t,"HEADER",{class:!0});var n=k(a);r=b(n,"IMG",{src:!0,alt:!0,class:!0}),h=x(n),B(d.$$.fragment,n),n.forEach(i),p=x(t),l=b(t,"SECTION",{class:!0});var u=k(l);v=b(u,"H1",{class:!0,"data-testid":!0});var S=k(v);j=I(S,"Welcome back."),S.forEach(i),D=x(u),E=b(u,"P",{class:!0,"data-testid":!0});var K=k(E);F=I(K,"Let's get you signed in."),K.forEach(i),q=x(u),y=b(u,"DIV",{class:!0});var M=k(y);B(g.$$.fragment,M),M.forEach(i),O=x(u),_&&_.l(u),u.forEach(i),this.h()},h(){U(r.src,m=Y)||c(r,"src",m),c(r,"alt",""),c(r,"class","max-h-10"),c(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),c(v,"class","text-8xl font-semibold"),c(v,"data-testid","login-title"),c(E,"class","my-7"),c(E,"data-testid","login-info"),c(y,"class","flex items-center justify-center"),c(l,"class","my-[20vh] text-center")},m(t,n){H(e,t,n),P(t,s,n),P(t,a,n),f(a,r),f(a,h),H(d,a,null),P(t,p,n),P(t,l,n),f(l,v),f(v,j),f(l,D),f(l,E),f(E,F),f(l,q),f(l,y),H(g,y,null),f(l,O),_&&_.m(l,null),L=!0},p(t,[n]){const u={};n&1&&(u.url=t[0].url.href),e.$set(u);const S={};n&32&&(S.$$scope={dirty:n,ctx:t}),g.$set(S),t[2]&&_.p(t,n)},i(t){L||(V(e.$$.fragment,t),V(d.$$.fragment,t),V(g.$$.fragment,t),L=!0)},o(t){W(e.$$.fragment,t),W(d.$$.fragment,t),W(g.$$.fragment,t),L=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(d),t&&i(p),t&&i(l),G(g),_&&_.d()}}}function nt(o,e,s){let a;z(o,Q,p=>s(0,a=p));let{data:r}=e,{settings:m}=r;const h=a.url.searchParams.get("error"),d=()=>{window.location.assign(et({settings:m,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return o.$$set=p=>{"data"in p&&s(3,r=p.data)},[a,m,h,r,d]}class mt extends N{constructor(e){super(),R(this,e,nt,rt,T,{data:3})}}export{mt as default}; diff --git a/ui/assets/local/_app/immutable/entry/_error.svelte.0955de1f.js b/ui/assets/local/_app/immutable/entry/_error.svelte.daf861d3.js similarity index 86% rename from ui/assets/local/_app/immutable/entry/_error.svelte.0955de1f.js rename to ui/assets/local/_app/immutable/entry/_error.svelte.daf861d3.js index b26426d95b..dc49f6612c 100644 --- a/ui/assets/local/_app/immutable/entry/_error.svelte.0955de1f.js +++ b/ui/assets/local/_app/immutable/entry/_error.svelte.daf861d3.js @@ -1 +1 @@ -import{S as m,b as p,a as u,C as c,D as f,E as _,j as g,g as l,F as $,K as E}from"../chunks/index.6779d4e2.js";/* empty css */import{p as d}from"../chunks/stores.6ee4c480.js";import{E as h}from"../chunks/error.c03b78e5.js";import{i as b}from"../chunks/is-network-error.900fb374.js";import{p as y}from"../chunks/parse-with-big-int.0036a80a.js";function C(e){let t,o;return t=new h({props:{error:e[1],status:e[0]}}),{c(){c(t.$$.fragment)},l(r){f(t.$$.fragment,r)},m(r,s){_(t,r,s),o=!0},p(r,[s]){const a={};s&2&&(a.error=r[1]),s&1&&(a.status=r[0]),t.$set(a)},i(r){o||(g(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){$(t,r)}}}function q(e,t,o){let r,s,a;E(e,d,i=>o(2,a=i));let n;try{n=y(r.message),b(n)&&(s=n.statusCode)}catch(i){console.error(i)}return e.$$.update=()=>{e.$$.dirty&4&&o(1,r=a.error),e.$$.dirty&4&&o(0,s=a.status)},[s,r,a]}class A extends m{constructor(t){super(),p(this,t,q,C,u,{})}}export{A as default}; +import{S as m,b as p,a as u,C as c,D as f,E as _,j as g,g as l,F as $,K as E}from"../chunks/index.6779d4e2.js";/* empty css */import{p as d}from"../chunks/stores.b96d31b2.js";import{E as h}from"../chunks/error.8117cc68.js";import{i as b}from"../chunks/is-network-error.900fb374.js";import{p as y}from"../chunks/parse-with-big-int.0036a80a.js";function C(e){let t,o;return t=new h({props:{error:e[1],status:e[0]}}),{c(){c(t.$$.fragment)},l(r){f(t.$$.fragment,r)},m(r,s){_(t,r,s),o=!0},p(r,[s]){const a={};s&2&&(a.error=r[1]),s&1&&(a.status=r[0]),t.$set(a)},i(r){o||(g(t.$$.fragment,r),o=!0)},o(r){l(t.$$.fragment,r),o=!1},d(r){$(t,r)}}}function q(e,t,o){let r,s,a;E(e,d,i=>o(2,a=i));let n;try{n=y(r.message),b(n)&&(s=n.statusCode)}catch(i){console.error(i)}return e.$$.update=()=>{e.$$.dirty&4&&o(1,r=a.error),e.$$.dirty&4&&o(0,s=a.status)},[s,r,a]}class A extends m{constructor(t){super(),p(this,t,q,C,u,{})}}export{A as default}; diff --git a/ui/assets/local/_app/immutable/entry/app.83d87289.js b/ui/assets/local/_app/immutable/entry/app.d440df26.js similarity index 68% rename from ui/assets/local/_app/immutable/entry/app.83d87289.js rename to ui/assets/local/_app/immutable/entry/app.d440df26.js index 64349b4333..e10a2057a5 100644 --- a/ui/assets/local/_app/immutable/entry/app.83d87289.js +++ b/ui/assets/local/_app/immutable/entry/app.d440df26.js @@ -1 +1 @@ -import{S as H,b as J,a as K,c as M,e as m,d as Q,f as b,g as p,h as R,j as d,k as v,l as X,o as Y,m as Z,p as x,q as ee,u as O,v as L,w as te,x as ne,y as ie,z as $,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.6779d4e2.js";const re="modulepreload",se=function(_,e){return new URL(_,e).href},y={},u=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=se(l,r),l in y)return;y[l]=!0;const t=l.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const g=i[c];if(g.href===l&&(!t||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const a=document.createElement("link");if(a.rel=t?"stylesheet":re,t||(a.as="script",a.crossOrigin=""),a.href=l,document.head.appendChild(a),t)return new Promise((c,g)=>{a.addEventListener("load",c),a.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())},ve={};function oe(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=h(i,l(_)),_[21](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4&&(s.form=t[2]),i!==(i=t[1][0])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[21](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[21](null),t&&v(n),e&&k(e,t)}}}function ae(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[20](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4194551&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][0])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[20](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[20](null),t&&v(n),e&&k(e,t)}}}function _e(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=h(i,l(_)),_[19](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4&&(s.form=t[2]),i!==(i=t[1][1])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[19](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[19](null),t&&v(n),e&&k(e,t)}}}function le(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[18](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4194535&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][1])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[18](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[18](null),t&&v(n),e&&k(e,t)}}}function fe(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=h(i,l(_)),_[17](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4&&(s.form=t[2]),i!==(i=t[1][2])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[17](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[17](null),t&&v(n),e&&k(e,t)}}}function ce(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[16](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4194503&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][2])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[16](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[16](null),t&&v(n),e&&k(e,t)}}}function ue(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=h(i,l(_)),_[15](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4&&(s.form=t[2]),i!==(i=t[1][3])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[15](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[pe]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[14](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4194439&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][3])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[14](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[14](null),t&&v(n),e&&k(e,t)}}}function pe(_){let e,n,r;var i=_[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=h(i,l(_)),_[13](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&128&&(s.data=t[7]),o&4&&(s.form=t[2]),i!==(i=t[1][4])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[13](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[13](null),t&&v(n),e&&k(e,t)}}}function de(_){let e,n,r,i;const l=[me,ue],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function he(_){let e,n,r,i;const l=[ce,fe],t=[];function o(s,a){return s[1][3]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function we(_){let e,n,r,i;const l=[le,_e],t=[];function o(s,a){return s[1][2]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function N(_){let e,n=_[9]&&q(_);return{c(){e=Z("div"),n&&n.c(),this.h()},l(r){e=x(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=ee(e);n&&n.l(i),i.forEach(v),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),L(e,"position","absolute"),L(e,"left","0"),L(e,"top","0"),L(e,"clip","rect(0 0 0 0)"),L(e,"clip-path","inset(50%)"),L(e,"overflow","hidden"),L(e,"white-space","nowrap"),L(e,"width","1px"),L(e,"height","1px")},m(r,i){b(r,e,i),n&&n.m(e,null)},p(r,i){r[9]?n?n.p(r,i):(n=q(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&v(e),n&&n.d()}}}function q(_){let e;return{c(){e=te(_[10])},l(n){e=ne(n,_[10])},m(n,r){b(n,e,r)},p(n,r){r&1024&&ie(e,n[10])},d(n){n&&v(e)}}}function Ee(_){let e,n,r,i,l;const t=[ae,oe],o=[];function s(c,g){return c[1][1]?0:1}e=s(_),n=o[e]=t[e](_);let a=_[8]&&N(_);return{c(){n.c(),r=M(),a&&a.c(),i=m()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=m()},m(c,g){o[e].m(c,g),b(c,r,g),a&&a.m(c,g),b(c,i,g),l=!0},p(c,[g]){let I=e;e=s(c),e===I?o[e].p(c,g):($(),p(o[I],1,1,()=>{o[I]=null}),R(),n=o[e],n?n.p(c,g):(n=o[e]=t[e](c),n.c()),d(n,1),n.m(r.parentNode,r)),c[8]?a?a.p(c,g):(a=N(c),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(c){l||(d(n),l=!0)},o(c){p(n),l=!1},d(c){o[e].d(c),c&&v(r),a&&a.d(c),c&&v(i)}}}function ke(_,e,n){let{stores:r}=e,{page:i}=e,{constructors:l}=e,{components:t=[]}=e,{form:o}=e,{data_0:s=null}=e,{data_1:a=null}=e,{data_2:c=null}=e,{data_3:g=null}=e,{data_4:I=null}=e;X(r.page.notify);let A=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{A&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,A=!0),f});function S(f){P[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function G(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return _.$$set=f=>{"stores"in f&&n(11,r=f.stores),"page"in f&&n(12,i=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,a=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,g=f.data_3),"data_4"in f&&n(7,I=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,I,A,T,V,r,i,S,C,j,B,U,z,F,W,G]}class be extends H{constructor(e){super(),J(this,e,ke,Ee,K,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Re=[()=>u(()=>import("../chunks/0.bda643ae.js"),["../chunks/0.bda643ae.js","../chunks/_layout.7270383b.js","../chunks/index.cf243c98.js","./layout.svelte.fc6457fe.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/1.5f7f77c5.js"),["../chunks/1.5f7f77c5.js","./_error.svelte.0955de1f.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/error.c03b78e5.js","../chunks/navigation.a7086f0c.js","../chunks/link.8030aa06.js","../chunks/icon.a4e81b70.js","../assets/link.e1fc8ece.css","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.c39c9a46.css"],import.meta.url),()=>u(()=>import("../chunks/2.79fe4589.js"),["../chunks/2.79fe4589.js","../chunks/_layout.54689e5e.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/cluster.cbce199d.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/namespaces-service.9c90147f.js","../chunks/namespaces.65099960.js","../chunks/paginated.e34d6315.js","../chunks/settings-service.23aa4f31.js","../chunks/settings.b49a4593.js","../chunks/atob.508dc696.js","../assets/app.c39c9a46.css","./(app)-layout.svelte.842d0729.js","../chunks/navigation.a7086f0c.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/data-encoder-config.37ceca8b.js","../chunks/workflow-run.4e335848.js","../chunks/data-converter-config.abfd533c.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/accordion.6253b32e.js","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.1aa6deab.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.6b1b4529.js","../chunks/version-check.d006b302.js","../chunks/labs-mode.b6f5853d.js","../chunks/menu-divider.def6f259.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.c03b78e5.js","../assets/_layout.3841e971.css"],import.meta.url),()=>u(()=>import("../chunks/3.769208e8.js"),["../chunks/3.769208e8.js","./(app)-import-layout.svelte.fefb9355.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js"],import.meta.url),()=>u(()=>import("../chunks/4.40d86375.js"),["../chunks/4.40d86375.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4dd6c237.js","../chunks/index.6779d4e2.js","../chunks/event-history-file-import.9cdb1d3e.js","../chunks/navigation.a7086f0c.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/stores.6ee4c480.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/index.7a0c9a79.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/format-date.79dd40f6.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/auth-user.6f15fe0f.js","../chunks/import-events.9bea305e.js","../chunks/namespaces.65099960.js","../chunks/toaster.ef510498.js","../chunks/toggle-buttons.1411130f.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../chunks/5.45aa6b48.js"),["../chunks/5.45aa6b48.js","../chunks/_layout.99ff77df.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/auth-user.6f15fe0f.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/index.1302fd9b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/search-attributes.75837f76.js","./layout.svelte.fc6457fe.js"],import.meta.url),()=>u(()=>import("../chunks/6.a47f6704.js"),["../chunks/6.a47f6704.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.fc6457fe.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/7.38692430.js"),["../chunks/7.38692430.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.8afb5a9c.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/8.073dee1d.js"),["../chunks/8.073dee1d.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.9e276076.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/menu.0bf3fcbe.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/option.3359f258.js","../assets/option.20882847.css","../chunks/workflow-actions.6f88149c.js","../chunks/events-service.ea4ce52d.js","../chunks/auth-user.6f15fe0f.js","../chunks/workflow-run.4e335848.js","../chunks/route-for.cec09c4c.js","../chunks/is-event-type.4dbe973b.js","../chunks/index.7a0c9a79.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/paginated.e34d6315.js","../chunks/route-for-api.c219d4fc.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/menu-divider.def6f259.js","../chunks/modal.118648f9.js","../assets/modal.a1162225.css","../chunks/split-button.9aad1ebf.js","../assets/split-button.8566e410.css","../chunks/workflow-service.fd47d996.js","../chunks/settings.b49a4593.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/core-user.1973d180.js","../chunks/workflow-terminate-enabled.ed0d90c2.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/pollers-service.1d9f1daf.js","../assets/pollers-service.3f93e67d.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/tab.9e7175ff.js","../assets/tab.8436f1bf.css","../chunks/workflows.5bb4bd2c.js","../chunks/task-queue-compatibility.cf5696f8.js"],import.meta.url),()=>u(()=>import("../chunks/9.e7d2d70f.js"),["../chunks/9.e7d2d70f.js","../chunks/_layout.566ca3b3.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.23aa4f31.js","../chunks/settings.b49a4593.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../assets/app.c39c9a46.css","./(login)-layout.svelte.fc6457fe.js"],import.meta.url),()=>u(()=>import("../chunks/10.5024c673.js"),["../chunks/10.5024c673.js","../chunks/_page.8f62fe6c.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","./(app)-page.svelte.fe20f2f8.js","../chunks/index.6779d4e2.js","../chunks/navigation.a7086f0c.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workflow-service.fd47d996.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.508dc696.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/namespaces.65099960.js"],import.meta.url),()=>u(()=>import("../chunks/11.79ac20cd.js"),["../chunks/11.79ac20cd.js","./(app)-data-converter-_port_-page.svelte.9436853c.js","../chunks/index.6779d4e2.js","../chunks/navigation.a7086f0c.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/stores.6ee4c480.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js"],import.meta.url),()=>u(()=>import("../chunks/12.c924a967.js"),["../chunks/12.c924a967.js","../chunks/_page.d621a7e0.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js"],import.meta.url),()=>u(()=>import("../chunks/13.28281bfd.js"),["../chunks/13.28281bfd.js","./(app)-import-events-page.svelte.97e60250.js","../chunks/index.6779d4e2.js","../chunks/event-history-file-import.9cdb1d3e.js","../chunks/navigation.a7086f0c.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/stores.6ee4c480.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/index.7a0c9a79.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/format-date.79dd40f6.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/auth-user.6f15fe0f.js","../chunks/import-events.9bea305e.js","../chunks/namespaces.65099960.js","../chunks/toaster.ef510498.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css"],import.meta.url),()=>u(()=>import("../chunks/14.8ef792d4.js"),["../chunks/14.8ef792d4.js","../chunks/_page.0ca14ca8.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js"],import.meta.url),()=>u(()=>import("../chunks/15.39bc26a9.js"),["../chunks/15.39bc26a9.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5b1ea575.js","../chunks/index.6779d4e2.js","../chunks/event-summary-table.8e1963cc.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/index.1302fd9b.js","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.79dd40f6.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/paths.d13b6714.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.408ca409.js","../chunks/route-for.cec09c4c.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/get-event-categorization.3ec93a88.js","../chunks/filters.c175002a.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/pagination.b9ceda84.js","../chunks/navigation.a7086f0c.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/event-summary-table.4456dbde.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/16.bc433b6c.js"),["../chunks/16.bc433b6c.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.6bf77c2b.js","../chunks/index.6779d4e2.js","../chunks/event-summary-table.8e1963cc.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/index.1302fd9b.js","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.79dd40f6.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/paths.d13b6714.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.408ca409.js","../chunks/route-for.cec09c4c.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/get-event-categorization.3ec93a88.js","../chunks/filters.c175002a.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/pagination.b9ceda84.js","../chunks/navigation.a7086f0c.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/event-summary-table.4456dbde.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/17.8a47fd1e.js"),["../chunks/17.8a47fd1e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.aa74640c.js","../chunks/index.6779d4e2.js","../chunks/workflow-json-navigator.d40ac0c8.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.1302fd9b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/omit.6cf41932.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/18.3f20506b.js"),["../chunks/18.3f20506b.js","./(app)-namespaces-page.svelte.126cd0e2.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/pagination.b9ceda84.js","../chunks/navigation.a7086f0c.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/namespaces.65099960.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.cec09c4c.js"],import.meta.url),()=>u(()=>import("../chunks/19.390839ca.js"),["../chunks/19.390839ca.js","../chunks/_page.ebdb6c84.js","../chunks/namespaces-service.9c90147f.js","../chunks/namespaces.65099960.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/paginated.e34d6315.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/auth-user.6f15fe0f.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","./(app)-namespaces-_namespace_-page.svelte.32bb158c.js","../chunks/page-title.990af218.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/card.f7f654dd.js","../assets/card.c4e4432a.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/search-attributes.75837f76.js","../chunks/settings.b49a4593.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/format-time.8258873a.js"],import.meta.url),()=>u(()=>import("../chunks/20.ae483387.js"),["../chunks/20.ae483387.js","../chunks/_page.0f97749e.js","../chunks/namespaces-service.9c90147f.js","../chunks/namespaces.65099960.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/paginated.e34d6315.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/auth-user.6f15fe0f.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/workflow-service.fd47d996.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/atob.508dc696.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","./(app)-namespaces-_namespace_-archival-page.svelte.4400c4e0.js","../chunks/page-title.990af218.js","../chunks/index.c328f0fe.js","../chunks/navigation.a7086f0c.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/workflows.5bb4bd2c.js","../chunks/pagination.b9ceda84.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../assets/index.d6094a94.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/empty-state.c8d40bbf.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/21.7e4e8512.js"),["../chunks/21.7e4e8512.js","./(app)-namespaces-_namespace_-batch-operations-page.svelte.bd640644.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/route-for.cec09c4c.js","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/loading.a6f9064e.js","../chunks/batch-operations.1aa6deab.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6f15fe0f.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/route-for-api.c219d4fc.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/22.ca6e2b85.js"),["../chunks/22.ca6e2b85.js","./(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.1265c12f.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.1aa6deab.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6f15fe0f.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/card.f7f654dd.js","../assets/card.c4e4432a.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../assets/_page.4cad707d.css"],import.meta.url),()=>u(()=>import("../chunks/23.97cee4b2.js"),["../chunks/23.97cee4b2.js","./(app)-namespaces-_namespace_-schedules-page.svelte.ed383ba9.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/navigation.a7086f0c.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../assets/workflow-status.80899fb7.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/route-for.cec09c4c.js","../chunks/schedule-service.80743cbe.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/empty-state.c8d40bbf.js","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/loading.a6f9064e.js","../chunks/pagination.b9ceda84.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/core-user.1973d180.js","../assets/_page.af190463.css"],import.meta.url),()=>u(()=>import("../chunks/24.cfdef0a0.js"),["../chunks/24.cfdef0a0.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.33813750.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/navigation.a7086f0c.js","../chunks/accordion.6253b32e.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../chunks/toaster.ef510498.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/schedule-service.80743cbe.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/workflow-service.fd47d996.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/atob.508dc696.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/loading.a6f9064e.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/modal.118648f9.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/modal.a1162225.css","../chunks/split-button.9aad1ebf.js","../assets/split-button.8566e410.css","../chunks/core-user.1973d180.js","../chunks/schedules.72d75a40.js","../assets/_page.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../chunks/25.26ac4b7a.js"),["../chunks/25.26ac4b7a.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.b2f77756.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/schedule-form-view.e87776d2.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.9e7175ff.js","../chunks/is.ba28a1ea.js","../assets/tab.8436f1bf.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.1411130f.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedule-service.80743cbe.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/option.3359f258.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../assets/option.20882847.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/schedules.72d75a40.js","../chunks/navigation.a7086f0c.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../chunks/26.bb542ad8.js"),["../chunks/26.bb542ad8.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.70a50d66.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/schedule-form-view.e87776d2.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.9e7175ff.js","../chunks/is.ba28a1ea.js","../assets/tab.8436f1bf.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.1411130f.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedule-service.80743cbe.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/option.3359f258.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../assets/option.20882847.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/schedules.72d75a40.js","../chunks/navigation.a7086f0c.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../chunks/27.70271a56.js"),["../chunks/27.70271a56.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.1b320c84.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/28.87d9548f.js"),["../chunks/28.87d9548f.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.a0b43136.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/workers-list.d2e5ee2d.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.1d9f1daf.js","../chunks/icon.a4e81b70.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.c8d40bbf.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../chunks/29.b43187ab.js"),["../chunks/29.b43187ab.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.04a5a118.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/workflow-service.fd47d996.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/page-title.990af218.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/modal.118648f9.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../assets/modal.a1162225.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.ed0d90c2.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/calendar.81d1e381.js","../chunks/labs-mode.b6f5853d.js","../chunks/menu-divider.def6f259.js","../chunks/toggle-buttons.1411130f.js","../assets/toggle-buttons.1415ce75.css","../chunks/filters.c175002a.js","../chunks/index.c328f0fe.js","../chunks/navigation.a7086f0c.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/workflows.5bb4bd2c.js","../chunks/pagination.b9ceda84.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../assets/index.d6094a94.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.75837f76.js","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/option.3359f258.js","../assets/option.20882847.css","../chunks/omit.6cf41932.js","../chunks/drawer.03c324ce.js","../assets/drawer.96194c4d.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/loading.a6f9064e.js","../chunks/namespaces.65099960.js","../chunks/core-user.1973d180.js","../chunks/batch-operations.1aa6deab.js","../chunks/empty-state.c8d40bbf.js","../assets/_page.f4b5a965.css"],import.meta.url),()=>u(()=>import("../chunks/30.b09896c4.js"),["../chunks/30.b09896c4.js","../chunks/_page.74aa28ce.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.fd47d996.js","../chunks/index.6779d4e2.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/index.1302fd9b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js"],import.meta.url),()=>u(()=>import("../chunks/31.26e63288.js"),["../chunks/31.26e63288.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.1b320c84.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/32.f95bf0ed.js"),["../chunks/32.f95bf0ed.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.587f8033.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/accordion.6253b32e.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../chunks/toaster.ef510498.js","../chunks/toggle-buttons.1411130f.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.c175002a.js","../chunks/workflow-run.4e335848.js","../chunks/format-camel-case.887ffc78.js","../chunks/format-date.79dd40f6.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/drawer.03c324ce.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/drawer.96194c4d.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.c796ec58.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/format-event-attributes.f236b430.js","../chunks/route-for.cec09c4c.js","../chunks/to-time-difference.be87d1bf.js","../chunks/pagination.b9ceda84.js","../chunks/navigation.a7086f0c.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/event-summary-table.8e1963cc.js","../chunks/empty-state.c8d40bbf.js","../chunks/loading.a6f9064e.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../assets/event-summary-table.4456dbde.css","../chunks/auth-user.6f15fe0f.js","../chunks/events-service.ea4ce52d.js","../chunks/index.7a0c9a79.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/get-codec.658caf67.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/paginated.e34d6315.js","../chunks/route-for-api.c219d4fc.js","../chunks/is-network-error.900fb374.js","../chunks/namespaces.65099960.js","../chunks/workflow-json-navigator.d40ac0c8.js","../chunks/omit.6cf41932.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../assets/_page.c6b6bde8.css"],import.meta.url),()=>u(()=>import("../chunks/33.3a093d51.js"),["../chunks/33.3a093d51.js","../chunks/_page.30c281df.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js"],import.meta.url),()=>u(()=>import("../chunks/34.3a093d51.js"),["../chunks/34.3a093d51.js","../chunks/_page.07b19c47.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js"],import.meta.url),()=>u(()=>import("../chunks/35.3a093d51.js"),["../chunks/35.3a093d51.js","../chunks/_page.62d54b09.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.cec09c4c.js","../chunks/paths.d13b6714.js"],import.meta.url),()=>u(()=>import("../chunks/36.2a5d4a29.js"),["../chunks/36.2a5d4a29.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.fade9f20.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/workflow-run.4e335848.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.de481b2a.js","../chunks/is-event-type.4dbe973b.js","../chunks/to-time-difference.be87d1bf.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/37.fdd90019.js"),["../chunks/37.fdd90019.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.dc81104a.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/loading.a6f9064e.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.a85dd707.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/get-codec.658caf67.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js"],import.meta.url),()=>u(()=>import("../chunks/38.5c80b7e2.js"),["../chunks/38.5c80b7e2.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.00165ac1.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/query-service.a85dd707.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/get-codec.658caf67.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/workflow-run.4e335848.js"],import.meta.url),()=>u(()=>import("../chunks/39.194ab8b7.js"),["../chunks/39.194ab8b7.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.4070734e.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workers-list.d2e5ee2d.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.1d9f1daf.js","../chunks/icon.a4e81b70.js","../chunks/route-for-api.c219d4fc.js","../chunks/route-for.cec09c4c.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.c8d40bbf.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.4e335848.js"],import.meta.url),()=>u(()=>import("../chunks/40.a2a51c86.js"),["../chunks/40.a2a51c86.js","./(app)-select-namespace-page.svelte.7a8f6006.js","../chunks/index.6779d4e2.js","../chunks/navigation.a7086f0c.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/stores.6ee4c480.js","../chunks/page-title.990af218.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/input.86f6e192.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workflow-service.fd47d996.js","../chunks/decode-payload.727281ed.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.508dc696.js","../chunks/route-for.cec09c4c.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.c219d4fc.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/namespaces.65099960.js","../assets/_page.8ed620ce.css"],import.meta.url),()=>u(()=>import("../chunks/41.da44ced4.js"),["../chunks/41.da44ced4.js","./(login)-login-page.svelte.a274105d.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/logo.87b20d86.js","../chunks/icon.a4e81b70.js","../assets/logo.4e0dbf07.css","../chunks/page-title.990af218.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.cec09c4c.js"],import.meta.url),()=>u(()=>import("../chunks/42.9d0aeb49.js"),["../chunks/42.9d0aeb49.js","./(login)-signin-page.svelte.a274105d.js","../chunks/index.6779d4e2.js","../chunks/stores.6ee4c480.js","../chunks/singletons.91a64e01.js","../chunks/index.1302fd9b.js","../chunks/paths.d13b6714.js","../chunks/logo.87b20d86.js","../chunks/icon.a4e81b70.js","../assets/logo.4e0dbf07.css","../chunks/page-title.990af218.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.cec09c4c.js"],import.meta.url)],$e=[],Le={"/(app)":[10,[2]],"/(app)/data-converter/[port]":[11,[2]],"/(app)/import":[12,[2,3]],"/(app)/import/events":[13,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[16,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[17,[2,3,4]],"/(login)/login":[41,[9]],"/(app)/namespaces":[18,[2]],"/(app)/namespaces/[namespace]":[19,[2,5]],"/(app)/namespaces/[namespace]/archival":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[21,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules":[23,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/create":[26,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[24,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues":[27,[2,5,7]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[28,[2,5,7]],"/(app)/namespaces/[namespace]/workflows":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[30,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[31,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[32,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[33,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[34,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[35,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[36,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[37,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[38,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[39,[2,5,8]],"/(app)/select-namespace":[40,[2]],"/(login)/signin":[42,[9]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,Re as nodes,be as root,$e as server_loads}; +import{S as H,b as J,a as K,c as M,e as m,d as Q,f as b,g as p,h as R,j as d,k as v,l as X,o as Y,m as Z,p as x,q as ee,u as O,v as L,w as te,x as ne,y as ie,z as $,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.6779d4e2.js";const re="modulepreload",se=function(_,e){return new URL(_,e).href},y={},u=function(e,n,r){if(!n||n.length===0)return e();const i=document.getElementsByTagName("link");return Promise.all(n.map(l=>{if(l=se(l,r),l in y)return;y[l]=!0;const t=l.endsWith(".css"),o=t?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const g=i[c];if(g.href===l&&(!t||g.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${l}"]${o}`))return;const a=document.createElement("link");if(a.rel=t?"stylesheet":re,t||(a.as="script",a.crossOrigin=""),a.href=l,document.head.appendChild(a),t)return new Promise((c,g)=>{a.addEventListener("load",c),a.addEventListener("error",()=>g(new Error(`Unable to preload CSS for ${l}`)))})})).then(()=>e())},ve={};function oe(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],form:t[2]}}}return i&&(e=h(i,l(_)),_[21](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4&&(s.form=t[2]),i!==(i=t[1][0])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[21](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[21](null),t&&v(n),e&&k(e,t)}}}function ae(_){let e,n,r;var i=_[1][0];function l(t){return{props:{data:t[3],$$slots:{default:[we]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[20](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&8&&(s.data=t[3]),o&4194551&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][0])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[20](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[20](null),t&&v(n),e&&k(e,t)}}}function _e(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],form:t[2]}}}return i&&(e=h(i,l(_)),_[19](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4&&(s.form=t[2]),i!==(i=t[1][1])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[19](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[19](null),t&&v(n),e&&k(e,t)}}}function le(_){let e,n,r;var i=_[1][1];function l(t){return{props:{data:t[4],$$slots:{default:[he]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[18](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&16&&(s.data=t[4]),o&4194535&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][1])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[18](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[18](null),t&&v(n),e&&k(e,t)}}}function fe(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],form:t[2]}}}return i&&(e=h(i,l(_)),_[17](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4&&(s.form=t[2]),i!==(i=t[1][2])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[17](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[17](null),t&&v(n),e&&k(e,t)}}}function ce(_){let e,n,r;var i=_[1][2];function l(t){return{props:{data:t[5],$$slots:{default:[de]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[16](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&32&&(s.data=t[5]),o&4194503&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][2])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[16](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[16](null),t&&v(n),e&&k(e,t)}}}function ue(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],form:t[2]}}}return i&&(e=h(i,l(_)),_[15](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4&&(s.form=t[2]),i!==(i=t[1][3])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[15](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[15](null),t&&v(n),e&&k(e,t)}}}function me(_){let e,n,r;var i=_[1][3];function l(t){return{props:{data:t[6],$$slots:{default:[pe]},$$scope:{ctx:t}}}}return i&&(e=h(i,l(_)),_[14](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&64&&(s.data=t[6]),o&4194439&&(s.$$scope={dirty:o,ctx:t}),i!==(i=t[1][3])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[14](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[14](null),t&&v(n),e&&k(e,t)}}}function pe(_){let e,n,r;var i=_[1][4];function l(t){return{props:{data:t[7],form:t[2]}}}return i&&(e=h(i,l(_)),_[13](e)),{c(){e&&w(e.$$.fragment),n=m()},l(t){e&&D(e.$$.fragment,t),n=m()},m(t,o){e&&E(e,t,o),b(t,n,o),r=!0},p(t,o){const s={};if(o&128&&(s.data=t[7]),o&4&&(s.form=t[2]),i!==(i=t[1][4])){if(e){$();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),R()}i?(e=h(i,l(t)),t[13](e),w(e.$$.fragment),d(e.$$.fragment,1),E(e,n.parentNode,n)):e=null}else i&&e.$set(s)},i(t){r||(e&&d(e.$$.fragment,t),r=!0)},o(t){e&&p(e.$$.fragment,t),r=!1},d(t){_[13](null),t&&v(n),e&&k(e,t)}}}function de(_){let e,n,r,i;const l=[me,ue],t=[];function o(s,a){return s[1][4]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function he(_){let e,n,r,i;const l=[ce,fe],t=[];function o(s,a){return s[1][3]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function we(_){let e,n,r,i;const l=[le,_e],t=[];function o(s,a){return s[1][2]?0:1}return e=o(_),n=t[e]=l[e](_),{c(){n.c(),r=m()},l(s){n.l(s),r=m()},m(s,a){t[e].m(s,a),b(s,r,a),i=!0},p(s,a){let c=e;e=o(s),e===c?t[e].p(s,a):($(),p(t[c],1,1,()=>{t[c]=null}),R(),n=t[e],n?n.p(s,a):(n=t[e]=l[e](s),n.c()),d(n,1),n.m(r.parentNode,r))},i(s){i||(d(n),i=!0)},o(s){p(n),i=!1},d(s){t[e].d(s),s&&v(r)}}}function N(_){let e,n=_[9]&&q(_);return{c(){e=Z("div"),n&&n.c(),this.h()},l(r){e=x(r,"DIV",{id:!0,"aria-live":!0,"aria-atomic":!0,style:!0});var i=ee(e);n&&n.l(i),i.forEach(v),this.h()},h(){O(e,"id","svelte-announcer"),O(e,"aria-live","assertive"),O(e,"aria-atomic","true"),L(e,"position","absolute"),L(e,"left","0"),L(e,"top","0"),L(e,"clip","rect(0 0 0 0)"),L(e,"clip-path","inset(50%)"),L(e,"overflow","hidden"),L(e,"white-space","nowrap"),L(e,"width","1px"),L(e,"height","1px")},m(r,i){b(r,e,i),n&&n.m(e,null)},p(r,i){r[9]?n?n.p(r,i):(n=q(r),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(r){r&&v(e),n&&n.d()}}}function q(_){let e;return{c(){e=te(_[10])},l(n){e=ne(n,_[10])},m(n,r){b(n,e,r)},p(n,r){r&1024&&ie(e,n[10])},d(n){n&&v(e)}}}function Ee(_){let e,n,r,i,l;const t=[ae,oe],o=[];function s(c,g){return c[1][1]?0:1}e=s(_),n=o[e]=t[e](_);let a=_[8]&&N(_);return{c(){n.c(),r=M(),a&&a.c(),i=m()},l(c){n.l(c),r=Q(c),a&&a.l(c),i=m()},m(c,g){o[e].m(c,g),b(c,r,g),a&&a.m(c,g),b(c,i,g),l=!0},p(c,[g]){let I=e;e=s(c),e===I?o[e].p(c,g):($(),p(o[I],1,1,()=>{o[I]=null}),R(),n=o[e],n?n.p(c,g):(n=o[e]=t[e](c),n.c()),d(n,1),n.m(r.parentNode,r)),c[8]?a?a.p(c,g):(a=N(c),a.c(),a.m(i.parentNode,i)):a&&(a.d(1),a=null)},i(c){l||(d(n),l=!0)},o(c){p(n),l=!1},d(c){o[e].d(c),c&&v(r),a&&a.d(c),c&&v(i)}}}function ke(_,e,n){let{stores:r}=e,{page:i}=e,{constructors:l}=e,{components:t=[]}=e,{form:o}=e,{data_0:s=null}=e,{data_1:a=null}=e,{data_2:c=null}=e,{data_3:g=null}=e,{data_4:I=null}=e;X(r.page.notify);let A=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{A&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,A=!0),f});function S(f){P[f?"unshift":"push"](()=>{t[4]=f,n(0,t)})}function C(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function B(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function U(f){P[f?"unshift":"push"](()=>{t[2]=f,n(0,t)})}function z(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function F(f){P[f?"unshift":"push"](()=>{t[1]=f,n(0,t)})}function W(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}function G(f){P[f?"unshift":"push"](()=>{t[0]=f,n(0,t)})}return _.$$set=f=>{"stores"in f&&n(11,r=f.stores),"page"in f&&n(12,i=f.page),"constructors"in f&&n(1,l=f.constructors),"components"in f&&n(0,t=f.components),"form"in f&&n(2,o=f.form),"data_0"in f&&n(3,s=f.data_0),"data_1"in f&&n(4,a=f.data_1),"data_2"in f&&n(5,c=f.data_2),"data_3"in f&&n(6,g=f.data_3),"data_4"in f&&n(7,I=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,I,A,T,V,r,i,S,C,j,B,U,z,F,W,G]}class be extends H{constructor(e){super(),J(this,e,ke,Ee,K,{stores:11,page:12,constructors:1,components:0,form:2,data_0:3,data_1:4,data_2:5,data_3:6,data_4:7})}}const Re=[()=>u(()=>import("../chunks/0.bda643ae.js"),["../chunks/0.bda643ae.js","../chunks/_layout.7270383b.js","../chunks/index.cf243c98.js","./layout.svelte.fc6457fe.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/1.0a4119e8.js"),["../chunks/1.0a4119e8.js","./_error.svelte.daf861d3.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/error.8117cc68.js","../chunks/navigation.8e7fd3e5.js","../chunks/link.8030aa06.js","../chunks/icon.a4e81b70.js","../assets/link.e1fc8ece.css","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.c39c9a46.css"],import.meta.url),()=>u(()=>import("../chunks/2.295960ae.js"),["../chunks/2.295960ae.js","../chunks/_layout.e5ba1cbe.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/cluster.cbce199d.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/namespaces-service.df04cc52.js","../chunks/namespaces.65099960.js","../chunks/paginated.58f7628e.js","../chunks/settings-service.df92da83.js","../chunks/settings.b49a4593.js","../chunks/atob.45c43758.js","../assets/app.c39c9a46.css","./(app)-layout.svelte.b8890c66.js","../chunks/navigation.8e7fd3e5.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/data-encoder-config.37ceca8b.js","../chunks/workflow-run.4e335848.js","../chunks/data-converter-config.abfd533c.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/accordion.6253b32e.js","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.852cc113.js","../chunks/workflow-actions.6f88149c.js","../chunks/versions.6b1b4529.js","../chunks/version-check.d006b302.js","../chunks/labs-mode.b6f5853d.js","../chunks/menu-divider.def6f259.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/format-camel-case.887ffc78.js","../chunks/error.8117cc68.js","../assets/_layout.3841e971.css"],import.meta.url),()=>u(()=>import("../chunks/3.b4ca7a3b.js"),["../chunks/3.b4ca7a3b.js","./(app)-import-layout.svelte.f1c147ee.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js"],import.meta.url),()=>u(()=>import("../chunks/4.b4187104.js"),["../chunks/4.b4187104.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.ad60dd3b.js","../chunks/index.6779d4e2.js","../chunks/event-history-file-import.fffa59db.js","../chunks/navigation.8e7fd3e5.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/stores.b96d31b2.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/index.f6d255b2.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/format-date.79dd40f6.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/auth-user.6f15fe0f.js","../chunks/import-events.9bea305e.js","../chunks/namespaces.65099960.js","../chunks/toaster.ef510498.js","../chunks/toggle-buttons.6c8ac659.js","../assets/toggle-buttons.1415ce75.css"],import.meta.url),()=>u(()=>import("../chunks/5.63880ae3.js"),["../chunks/5.63880ae3.js","../chunks/_layout.690114a8.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/auth-user.6f15fe0f.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/index.1302fd9b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/search-attributes.75837f76.js","./layout.svelte.fc6457fe.js"],import.meta.url),()=>u(()=>import("../chunks/6.a47f6704.js"),["../chunks/6.a47f6704.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.fc6457fe.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/7.38692430.js"),["../chunks/7.38692430.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.8afb5a9c.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/8.8fcaefda.js"),["../chunks/8.8fcaefda.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.ae07483a.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/menu.0bf3fcbe.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/option.3359f258.js","../assets/option.20882847.css","../chunks/workflow-actions.6f88149c.js","../chunks/events-service.1c8a7c41.js","../chunks/auth-user.6f15fe0f.js","../chunks/workflow-run.4e335848.js","../chunks/route-for.31ffa191.js","../chunks/is-event-type.4dbe973b.js","../chunks/index.f6d255b2.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/paginated.58f7628e.js","../chunks/route-for-api.4d253eb1.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/menu-divider.def6f259.js","../chunks/modal.118648f9.js","../assets/modal.a1162225.css","../chunks/split-button.9aad1ebf.js","../assets/split-button.8566e410.css","../chunks/workflow-service.2a5b4d45.js","../chunks/settings.b49a4593.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/core-user.1973d180.js","../chunks/workflow-terminate-enabled.ed0d90c2.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/pollers-service.d61f00b6.js","../assets/pollers-service.3f93e67d.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/tab.9e7175ff.js","../assets/tab.8436f1bf.css","../chunks/workflows.8837af08.js","../chunks/task-queue-compatibility.cf5696f8.js"],import.meta.url),()=>u(()=>import("../chunks/9.f5aedc99.js"),["../chunks/9.f5aedc99.js","../chunks/_layout.90abbf08.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.df92da83.js","../chunks/settings.b49a4593.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../assets/app.c39c9a46.css","./(login)-layout.svelte.fc6457fe.js"],import.meta.url),()=>u(()=>import("../chunks/10.290abd56.js"),["../chunks/10.290abd56.js","../chunks/_page.ea8eb5bd.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","./(app)-page.svelte.44fe0b6b.js","../chunks/index.6779d4e2.js","../chunks/navigation.8e7fd3e5.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workflow-service.2a5b4d45.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.45c43758.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/namespaces.65099960.js"],import.meta.url),()=>u(()=>import("../chunks/11.56cf5bcf.js"),["../chunks/11.56cf5bcf.js","./(app)-data-converter-_port_-page.svelte.053ab711.js","../chunks/index.6779d4e2.js","../chunks/navigation.8e7fd3e5.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/stores.b96d31b2.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js"],import.meta.url),()=>u(()=>import("../chunks/12.650a07c8.js"),["../chunks/12.650a07c8.js","../chunks/_page.a0c9b579.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js"],import.meta.url),()=>u(()=>import("../chunks/13.073747ff.js"),["../chunks/13.073747ff.js","./(app)-import-events-page.svelte.9752f3ef.js","../chunks/index.6779d4e2.js","../chunks/event-history-file-import.fffa59db.js","../chunks/navigation.8e7fd3e5.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/stores.b96d31b2.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/index.f6d255b2.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/format-date.79dd40f6.js","../chunks/get-codec.658caf67.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/auth-user.6f15fe0f.js","../chunks/import-events.9bea305e.js","../chunks/namespaces.65099960.js","../chunks/toaster.ef510498.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css"],import.meta.url),()=>u(()=>import("../chunks/14.b004a682.js"),["../chunks/14.b004a682.js","../chunks/_page.2146a367.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js"],import.meta.url),()=>u(()=>import("../chunks/15.ad545d62.js"),["../chunks/15.ad545d62.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.b99fdf26.js","../chunks/index.6779d4e2.js","../chunks/event-summary-table.ec2c2f15.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/index.1302fd9b.js","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.79dd40f6.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/paths.332820a7.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.408ca409.js","../chunks/route-for.31ffa191.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/get-event-categorization.3ec93a88.js","../chunks/filters.291afea8.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/pagination.46c6618d.js","../chunks/navigation.8e7fd3e5.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/event-summary-table.4456dbde.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/16.9d62af20.js"),["../chunks/16.9d62af20.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.4d2e8e32.js","../chunks/index.6779d4e2.js","../chunks/event-summary-table.ec2c2f15.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/menu.7e3d54af.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/index.1302fd9b.js","../assets/menu.0bf3fcbe.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.79dd40f6.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/paths.332820a7.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.408ca409.js","../chunks/route-for.31ffa191.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/get-event-categorization.3ec93a88.js","../chunks/filters.291afea8.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/pagination.46c6618d.js","../chunks/navigation.8e7fd3e5.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/event-summary-table.4456dbde.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/17.8a47fd1e.js"),["../chunks/17.8a47fd1e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.aa74640c.js","../chunks/index.6779d4e2.js","../chunks/workflow-json-navigator.d40ac0c8.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/index.1302fd9b.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/omit.6cf41932.js","../chunks/loading.a6f9064e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/import-events.9bea305e.js"],import.meta.url),()=>u(()=>import("../chunks/18.7f98f583.js"),["../chunks/18.7f98f583.js","./(app)-namespaces-page.svelte.4f953d7f.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/pagination.46c6618d.js","../chunks/navigation.8e7fd3e5.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/namespaces.65099960.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.31ffa191.js"],import.meta.url),()=>u(()=>import("../chunks/19.ad38f12d.js"),["../chunks/19.ad38f12d.js","../chunks/_page.91795e49.js","../chunks/namespaces-service.df04cc52.js","../chunks/namespaces.65099960.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/paginated.58f7628e.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/auth-user.6f15fe0f.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","./(app)-namespaces-_namespace_-page.svelte.605a1a89.js","../chunks/page-title.990af218.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/card.f7f654dd.js","../assets/card.c4e4432a.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/search-attributes.75837f76.js","../chunks/settings.b49a4593.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/format-time.8258873a.js"],import.meta.url),()=>u(()=>import("../chunks/20.af6e96e0.js"),["../chunks/20.af6e96e0.js","../chunks/_page.7b7bdabf.js","../chunks/namespaces-service.df04cc52.js","../chunks/namespaces.65099960.js","../chunks/index.1302fd9b.js","../chunks/index.6779d4e2.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/paginated.58f7628e.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/auth-user.6f15fe0f.js","../chunks/has.f5323580.js","../chunks/is.ba28a1ea.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/workflow-service.2a5b4d45.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/atob.45c43758.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","./(app)-namespaces-_namespace_-archival-page.svelte.0ad15961.js","../chunks/page-title.990af218.js","../chunks/index.55808119.js","../chunks/navigation.8e7fd3e5.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/workflows.8837af08.js","../chunks/pagination.46c6618d.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../assets/index.d6094a94.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/empty-state.c8d40bbf.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/21.7562f22f.js"),["../chunks/21.7562f22f.js","./(app)-namespaces-_namespace_-batch-operations-page.svelte.40b19970.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/route-for.31ffa191.js","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/loading.a6f9064e.js","../chunks/batch-operations.852cc113.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6f15fe0f.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/route-for-api.4d253eb1.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/22.5c8e9556.js"),["../chunks/22.5c8e9556.js","./(app)-namespaces-_namespace_-batch-operations-_jobId_-page.svelte.87792882.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/batch-operations.852cc113.js","../chunks/workflow-actions.6f88149c.js","../chunks/auth-user.6f15fe0f.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/card.f7f654dd.js","../assets/card.c4e4432a.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../assets/_page.4cad707d.css"],import.meta.url),()=>u(()=>import("../chunks/23.9df3ca2f.js"),["../chunks/23.9df3ca2f.js","./(app)-namespaces-_namespace_-schedules-page.svelte.ec37734f.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/navigation.8e7fd3e5.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../assets/workflow-status.80899fb7.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/route-for.31ffa191.js","../chunks/schedule-service.a1e87565.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/empty-state.c8d40bbf.js","../chunks/input.86f6e192.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/loading.a6f9064e.js","../chunks/pagination.46c6618d.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/core-user.1973d180.js","../assets/_page.af190463.css"],import.meta.url),()=>u(()=>import("../chunks/24.bb701929.js"),["../chunks/24.bb701929.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.80ec6955.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/navigation.8e7fd3e5.js","../chunks/accordion.6253b32e.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../chunks/toaster.ef510498.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/schedule-service.a1e87565.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/workflow-service.2a5b4d45.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/atob.45c43758.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/workflow-status.fc3d74d1.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../assets/workflow-status.80899fb7.css","../chunks/loading.a6f9064e.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/modal.118648f9.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/modal.a1162225.css","../chunks/split-button.9aad1ebf.js","../assets/split-button.8566e410.css","../chunks/core-user.1973d180.js","../chunks/schedules.4bb8639b.js","../assets/_page.8e3b0af3.css"],import.meta.url),()=>u(()=>import("../chunks/25.745ddfd2.js"),["../chunks/25.745ddfd2.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.7e833899.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/schedule-form-view.0bfcac0a.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.9e7175ff.js","../chunks/is.ba28a1ea.js","../assets/tab.8436f1bf.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.6c8ac659.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedule-service.a1e87565.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/option.3359f258.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../assets/option.20882847.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/schedules.4bb8639b.js","../chunks/navigation.8e7fd3e5.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../chunks/26.bbdc5510.js"),["../chunks/26.bbdc5510.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.448a9455.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/schedule-form-view.0bfcac0a.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/tab.9e7175ff.js","../chunks/is.ba28a1ea.js","../assets/tab.8436f1bf.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.6c8ac659.js","../assets/toggle-buttons.1415ce75.css","../chunks/schedule-service.a1e87565.js","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../chunks/option.3359f258.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../assets/option.20882847.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/schedules.4bb8639b.js","../chunks/navigation.8e7fd3e5.js","../assets/schedule-form-view.6d80008f.css"],import.meta.url),()=>u(()=>import("../chunks/27.70271a56.js"),["../chunks/27.70271a56.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.1b320c84.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/28.9df42e6f.js"),["../chunks/28.9df42e6f.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.8fd6371a.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/workers-list.817f7dee.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.d61f00b6.js","../chunks/icon.a4e81b70.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.c8d40bbf.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css"],import.meta.url),()=>u(()=>import("../chunks/29.70f623d1.js"),["../chunks/29.70f623d1.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.44cbf6ca.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/workflow-service.2a5b4d45.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/page-title.990af218.js","../chunks/input.86f6e192.js","../chunks/icon.a4e81b70.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/modal.118648f9.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../assets/modal.a1162225.css","../chunks/workflow-actions.6f88149c.js","../chunks/workflow-terminate-enabled.ed0d90c2.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/calendar.81d1e381.js","../chunks/labs-mode.b6f5853d.js","../chunks/menu-divider.def6f259.js","../chunks/toggle-buttons.6c8ac659.js","../assets/toggle-buttons.1415ce75.css","../chunks/filters.291afea8.js","../chunks/index.55808119.js","../chunks/navigation.8e7fd3e5.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-row.e455010e.js","../chunks/workflows.8837af08.js","../chunks/pagination.46c6618d.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../assets/index.d6094a94.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/search-attributes.75837f76.js","../chunks/radio-input.d451f838.js","../assets/radio-input.e5209512.css","../chunks/option.3359f258.js","../assets/option.20882847.css","../chunks/omit.6cf41932.js","../chunks/drawer.03c324ce.js","../assets/drawer.96194c4d.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/loading.a6f9064e.js","../chunks/namespaces.65099960.js","../chunks/core-user.1973d180.js","../chunks/batch-operations.852cc113.js","../chunks/empty-state.c8d40bbf.js","../assets/_page.f4b5a965.css"],import.meta.url),()=>u(()=>import("../chunks/30.1331147c.js"),["../chunks/30.1331147c.js","../chunks/_page.7bcf1705.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.2a5b4d45.js","../chunks/index.6779d4e2.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/index.1302fd9b.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js"],import.meta.url),()=>u(()=>import("../chunks/31.26e63288.js"),["../chunks/31.26e63288.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.1b320c84.js","../chunks/index.6779d4e2.js"],import.meta.url),()=>u(()=>import("../chunks/32.8f56f07b.js"),["../chunks/32.8f56f07b.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.6c7c67df.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/accordion.6253b32e.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../chunks/toaster.ef510498.js","../chunks/toggle-buttons.6c8ac659.js","../assets/toggle-buttons.1415ce75.css","../chunks/index.de481b2a.js","../chunks/has.f5323580.js","../chunks/is-event-type.4dbe973b.js","../chunks/format-time.8258873a.js","../chunks/get-event-categorization.3ec93a88.js","../chunks/event-view.446dd84e.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/filters.291afea8.js","../chunks/workflow-run.4e335848.js","../chunks/format-camel-case.887ffc78.js","../chunks/format-date.79dd40f6.js","../chunks/button.0b50a4b4.js","../assets/button.386e08e4.css","../chunks/drawer.03c324ce.js","../chunks/menu.7e3d54af.js","../assets/menu.0bf3fcbe.css","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/drawer.96194c4d.css","../chunks/tooltip.65a7fa6c.js","../chunks/index.408ca409.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../assets/tooltip.78399487.css","../chunks/code-block.c796ec58.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/format-event-attributes.f236b430.js","../chunks/route-for.31ffa191.js","../chunks/to-time-difference.be87d1bf.js","../chunks/pagination.46c6618d.js","../chunks/navigation.8e7fd3e5.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/workflow-status.fc3d74d1.js","../assets/workflow-status.80899fb7.css","../chunks/alert.dcbef44a.js","../assets/alert.303275c8.css","../chunks/task-queue-compatibility.cf5696f8.js","../chunks/event-summary-table.ec2c2f15.js","../chunks/empty-state.c8d40bbf.js","../chunks/loading.a6f9064e.js","../chunks/versions.6b1b4529.js","../chunks/cluster.cbce199d.js","../chunks/settings.b49a4593.js","../chunks/version-check.d006b302.js","../chunks/menu-divider.def6f259.js","../assets/event-summary-table.4456dbde.css","../chunks/auth-user.6f15fe0f.js","../chunks/events-service.1c8a7c41.js","../chunks/index.f6d255b2.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/get-codec.658caf67.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/paginated.58f7628e.js","../chunks/route-for-api.4d253eb1.js","../chunks/is-network-error.900fb374.js","../chunks/namespaces.65099960.js","../chunks/workflow-json-navigator.d40ac0c8.js","../chunks/omit.6cf41932.js","../assets/workflow-json-navigator.a85b4b27.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../assets/_page.c6b6bde8.css"],import.meta.url),()=>u(()=>import("../chunks/33.bd05c499.js"),["../chunks/33.bd05c499.js","../chunks/_page.f629d15d.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js"],import.meta.url),()=>u(()=>import("../chunks/34.bd05c499.js"),["../chunks/34.bd05c499.js","../chunks/_page.fb15a3aa.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js"],import.meta.url),()=>u(()=>import("../chunks/35.bd05c499.js"),["../chunks/35.bd05c499.js","../chunks/_page.85980bdc.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.31ffa191.js","../chunks/paths.332820a7.js"],import.meta.url),()=>u(()=>import("../chunks/36.8969b5f5.js"),["../chunks/36.8969b5f5.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.97a7b199.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../chunks/icon.a4e81b70.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/persist-store.d8264c86.js","../chunks/format-time.8258873a.js","../chunks/has.f5323580.js","../chunks/workflow-run.4e335848.js","../chunks/format-event-attributes.f236b430.js","../chunks/format-camel-case.887ffc78.js","../chunks/index.de481b2a.js","../chunks/is-event-type.4dbe973b.js","../chunks/to-time-difference.be87d1bf.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/37.43e59943.js"),["../chunks/37.43e59943.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.2641e3e2.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/loading.a6f9064e.js","../chunks/simple-select.e8b6fede.js","../assets/simple-select.51b2afe1.css","../chunks/toggle-switch.0d2aaadb.js","../assets/toggle-switch.ff91b31f.css","../chunks/query-service.9e1c6e1c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/get-codec.658caf67.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js"],import.meta.url),()=>u(()=>import("../chunks/38.4a7eb935.js"),["../chunks/38.4a7eb935.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.06bc5a65.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/icon.a4e81b70.js","../assets/button.386e08e4.css","../chunks/code-block.c796ec58.js","../chunks/button.40ac8aa7.js","../assets/button.8b8c0631.css","../chunks/copy-to-clipboard.cf09df45.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.c8d40bbf.js","../chunks/link.8030aa06.js","../assets/link.e1fc8ece.css","../chunks/loading.a6f9064e.js","../chunks/query-service.9e1c6e1c.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/persist-store.d8264c86.js","../chunks/has.f5323580.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/get-codec.658caf67.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/workflow-run.4e335848.js"],import.meta.url),()=>u(()=>import("../chunks/39.397db4cf.js"),["../chunks/39.397db4cf.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.3367ba57.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/page-title.990af218.js","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workers-list.817f7dee.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../chunks/pollers-service.d61f00b6.js","../chunks/icon.a4e81b70.js","../chunks/route-for-api.4d253eb1.js","../chunks/route-for.31ffa191.js","../chunks/auth-user.6f15fe0f.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.ef510498.js","../chunks/has.f5323580.js","../chunks/is-network-error.900fb374.js","../assets/pollers-service.3f93e67d.css","../chunks/empty-state.c8d40bbf.js","../chunks/table-header-row.5433617e.js","../assets/table-header-row.6ba6477c.css","../chunks/table-row.e455010e.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/task-queue-compatibility.cf5696f8.js","../assets/workers-list.7dbb8f48.css","../chunks/workflow-run.4e335848.js"],import.meta.url),()=>u(()=>import("../chunks/40.5a7ba929.js"),["../chunks/40.5a7ba929.js","./(app)-select-namespace-page.svelte.23cd0f2f.js","../chunks/index.6779d4e2.js","../chunks/navigation.8e7fd3e5.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/stores.b96d31b2.js","../chunks/page-title.990af218.js","../chunks/empty-state.c8d40bbf.js","../chunks/icon.a4e81b70.js","../chunks/input.86f6e192.js","../chunks/copy-to-clipboard.cf09df45.js","../chunks/icon-button.8252c675.js","../assets/icon-button.16bef21d.css","../assets/input.19df62ce.css","../chunks/translate.29a4bc43.js","../chunks/index.cf243c98.js","../chunks/is.ba28a1ea.js","../chunks/workflow-service.2a5b4d45.js","../chunks/decode-payload.4c64ec1f.js","../chunks/data-converter-config.abfd533c.js","../chunks/persist-store.d8264c86.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/data-encoder-config.37ceca8b.js","../chunks/has.f5323580.js","../chunks/atob.45c43758.js","../chunks/route-for.31ffa191.js","../chunks/settings.b49a4593.js","../chunks/simplify-attributes.bbb8ccfe.js","../chunks/format-date.79dd40f6.js","../chunks/format-time.8258873a.js","../chunks/route-for-api.4d253eb1.js","../chunks/auth-user.6f15fe0f.js","../chunks/toaster.ef510498.js","../chunks/is-network-error.900fb374.js","../chunks/version-check.d006b302.js","../chunks/cluster.cbce199d.js","../chunks/versions.6b1b4529.js","../chunks/namespaces.65099960.js","../assets/_page.8ed620ce.css"],import.meta.url),()=>u(()=>import("../chunks/41.fd524cf0.js"),["../chunks/41.fd524cf0.js","./(login)-login-page.svelte.f2003811.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/logo.e963defc.js","../chunks/icon.a4e81b70.js","../assets/logo.4e0dbf07.css","../chunks/page-title.990af218.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.31ffa191.js"],import.meta.url),()=>u(()=>import("../chunks/42.5531a61d.js"),["../chunks/42.5531a61d.js","./(login)-signin-page.svelte.f2003811.js","../chunks/index.6779d4e2.js","../chunks/stores.b96d31b2.js","../chunks/singletons.8ade5c10.js","../chunks/index.1302fd9b.js","../chunks/paths.332820a7.js","../chunks/logo.e963defc.js","../chunks/icon.a4e81b70.js","../assets/logo.4e0dbf07.css","../chunks/page-title.990af218.js","../chunks/button.0b50a4b4.js","../chunks/badge.d458ea0a.js","../assets/badge.bfa9122b.css","../assets/button.386e08e4.css","../chunks/route-for.31ffa191.js"],import.meta.url)],$e=[],Le={"/(app)":[10,[2]],"/(app)/data-converter/[port]":[11,[2]],"/(app)/import":[12,[2,3]],"/(app)/import/events":[13,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[16,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[17,[2,3,4]],"/(login)/login":[41,[9]],"/(app)/namespaces":[18,[2]],"/(app)/namespaces/[namespace]":[19,[2,5]],"/(app)/namespaces/[namespace]/archival":[20,[2,5]],"/(app)/namespaces/[namespace]/batch-operations":[21,[2,5]],"/(app)/namespaces/[namespace]/batch-operations/[jobId]":[22,[2,5]],"/(app)/namespaces/[namespace]/schedules":[23,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/create":[26,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[24,[2,5,6]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[25,[2,5,6]],"/(app)/namespaces/[namespace]/task-queues":[27,[2,5,7]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[28,[2,5,7]],"/(app)/namespaces/[namespace]/workflows":[29,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[30,[2,5]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[31,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[32,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[33,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[34,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[35,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[36,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[37,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[38,[2,5,8]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[39,[2,5,8]],"/(app)/select-namespace":[40,[2]],"/(login)/signin":[42,[9]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,Re as nodes,be as root,$e as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/start.353a99c6.js b/ui/assets/local/_app/immutable/entry/start.203bca8a.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/start.353a99c6.js rename to ui/assets/local/_app/immutable/entry/start.203bca8a.js index a649c98608..7bf63c1e20 100644 --- a/ui/assets/local/_app/immutable/entry/start.353a99c6.js +++ b/ui/assets/local/_app/immutable/entry/start.203bca8a.js @@ -1,3 +1,3 @@ -import{o as Ce,t as se}from"../chunks/index.6779d4e2.js";import{S as ze,a as Be,I as q,g as qe,f as Fe,b as ge,c as ce,s as M,i as ye,d as Q,P as Me,e as We}from"../chunks/singletons.91a64e01.js";import{b as z}from"../chunks/paths.d13b6714.js";import{R as He,H as ee}from"../chunks/control.e7f5239e.js";function Xe(n,i){return n==="/"||i==="ignore"?n:i==="never"?n.endsWith("/")?n.slice(0,-1):n:i==="always"&&!n.endsWith("/")?n+"/":n}function Ze(n){return n.split("%25").map(decodeURI).join("%25")}function Qe(n){for(const i in n)n[i]=decodeURIComponent(n[i]);return n}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(n,i){const p=new URL(n);for(const c of et){let u=p[c];Object.defineProperty(p,c,{get(){return i(),u},enumerable:!0,configurable:!0})}return nt(p),p}function nt(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(n){return n.replace(/\/$/,"")+at}function Ge(n){try{return JSON.parse(sessionStorage[n])}catch{}}function Ve(n,i){const p=JSON.stringify(i);try{sessionStorage[n]=p}catch{}}function ot(...n){let i=5381;for(const p of n)if(typeof p=="string"){let c=p.length;for(;c;)i=i*33^p.charCodeAt(--c)}else if(ArrayBuffer.isView(p)){const c=new Uint8Array(p.buffer,p.byteOffset,p.byteLength);let u=c.length;for(;u;)i=i*33^c[--u]}else throw new TypeError("value must be a string or TypedArray");return(i>>>0).toString(36)}const le=window.fetch;window.fetch=(n,i)=>((n instanceof Request?n.method:(i==null?void 0:i.method)||"GET")!=="GET"&&te.delete(ve(n)),le(n,i));const te=new Map;function it(n,i){const p=ve(n,i),c=document.querySelector(p);if(c!=null&&c.textContent){const{body:u,...d}=JSON.parse(c.textContent),L=c.getAttribute("data-ttl");return L&&te.set(p,{body:u,init:d,ttl:1e3*Number(L)}),Promise.resolve(new Response(u,d))}return le(n,i)}function st(n,i,p){if(te.size>0){const c=ve(n,p),u=te.get(c);if(u){if(performance.now(){const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(u)return i.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const d=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(c);if(d)return i.push({name:d[1],matcher:d[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!c)return;const L=c.split(/\[(.+?)\](?!\])/);return"/"+L.map((_,g)=>{if(g%2){if(_.startsWith("x+"))return we(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return we(String.fromCharCode(..._.slice(2).split("-").map(A=>parseInt(A,16))));const m=ct.exec(_);if(!m)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,P,E,O]=m;return i.push({name:E,matcher:O,optional:!!$,rest:!!P,chained:P?g===1&&L[0]==="":!1}),P?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return we(_)}).join("")}).join("")}/?$`),params:i}}function ft(n){return!/^\([^)]+\)$/.test(n)}function ut(n){return n.slice(1).split("/").filter(ft)}function dt(n,i,p){const c={},u=n.slice(1);let d=0;for(let L=0;Lg).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const g=i[L+1],m=u[L+1];g&&!g.rest&&g.optional&&m&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function we(n){return n.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:n,server_loads:i,dictionary:p,matchers:c}){const u=new Set(i);return Object.entries(p).map(([l,[_,g,m]])=>{const{pattern:$,params:P}=lt(l),E={id:l,exec:O=>{const A=$.exec(O);if(A)return dt(A,P,c)},errors:[1,...m||[]].map(O=>n[O]),layouts:[0,...g||[]].map(L),leaf:d(_)};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E});function d(l){const _=l<0;return _&&(l=~l),[_,n[l]]}function L(l){return l===void 0?l:[u.has(l),n[l]]}}async function ht(n){var i;for(const p in n)if(typeof((i=n[p])==null?void 0:i.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([c,u])=>[c,await u])));return n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const mt=-1,gt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(n,i){if(typeof n=="number")return u(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const p=n,c=Array(p.length);function u(d,L=!1){if(d===mt)return;if(d===yt)return NaN;if(d===wt)return 1/0;if(d===_t)return-1/0;if(d===bt)return-0;if(L)throw new Error("Invalid input");if(d in c)return c[d];const l=p[d];if(!l||typeof l!="object")c[d]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const _=l[0],g=i==null?void 0:i[_];if(g)return c[d]=g(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const m=new Set;c[d]=m;for(let E=1;Ei!=null)}const B=Ge(ze)??{},Z=Ge(Be)??{};function _e(n){B[n]=Q()}function kt(n,i){var $e;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const g={before_navigate:[],after_navigate:[]};let m={branch:[],error:null,url:null},$=!1,P=!1,E=!0,O=!1,A=!1,J=!1,H=!1,F,N=($e=history.state)==null?void 0:$e[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=B[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,Ee,ne;async function ke(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=W(t,!0);_=null,await Ae(e,t,[])}function Se(t){l.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=l.map(e=>{var r;return(r=e==null?void 0:e.snapshot)==null?void 0:r.capture()}))}function Re(t){var e;(e=Z[t])==null||e.forEach((r,a)=>{var s,o;(o=(s=l[a])==null?void 0:s.snapshot)==null||o.restore(r)})}function Le(){_e(N),Ve(ze,B),Se(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},h,f){return typeof t=="string"&&(t=new URL(t,qe(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:h,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Ie(t){return _={id:t.id,promise:Ue(t).then(e=>(e.type==="loaded"&&e.state.error&&(_=null),e))},_.promise}async function ae(...t){const r=p.filter(a=>t.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}async function Ae(t,e,r,a,s,o={},h){var y,w,R;Ee=o;let f=t&&await Ue(t);if(!f){if(ye(e,z))return await G(e);f=await xe(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(t==null?void 0:t.url)||e,Ee!==o)return!1;if(f.type==="redirect")if(r.length>10||r.includes(e.pathname))f=await re({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return ue(new URL(f.location,e).href,{},[...r,e.pathname],o),!1;else((y=f.props.page)==null?void 0:y.status)>=400&&await M.updated.check()&&await G(e);if(L.length=0,H=!1,O=!0,a&&(_e(a),Se(a)),(w=f.props.page)!=null&&w.url&&f.props.page.url.pathname!==e.pathname&&(e.pathname=(R=f.props.page)==null?void 0:R.url.pathname),s&&s.details){const{details:v}=s,I=v.replaceState?0:1;if(v.state[q]=N+=I,history[v.replaceState?"replaceState":"pushState"](v.state,"",e),!v.replaceState){let S=N+1;for(;Z[S]||B[S];)delete Z[S],delete B[S],S+=1}}if(_=null,P?(m=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Pe(f),s){const{scroll:v,keepfocus:I}=s,{activeElement:S}=document;if(await se(),E){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));v?scrollTo(v.x,v.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!I&&!b&&await be()}else await se();E=!0,f.props.page&&(V=f.props.page),h&&h(),O=!1}function Pe(t){var a;m=t.state;const e=document.querySelector("style[data-sveltekit]");e&&e.remove(),V=t.props.page,F=new n.root({target:i,props:{...t.props,stores:M,components:l},hydrate:!0}),Re(N);const r={from:null,to:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};g.after_navigate.forEach(s=>s(r)),P=!0}async function Y({url:t,params:e,branch:r,status:a,error:s,route:o,form:h}){let f="never";for(const S of r)(S==null?void 0:S.slash)!==void 0&&(f=S.slash);t.pathname=Xe(t.pathname,f),t.search=t.search;const y={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};h!==void 0&&(y.props.form=h);let w={},R=!V,v=0;for(let S=0;S(f.params.add(U),b[U])}),data:(o==null?void 0:o.data)??null,url:tt(r,()=>{f.url=!0}),async fetch(b,U){let D;b instanceof Request?(D=b.url,U={body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal,...U}):D=b;const C=new URL(D,r);return I(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),P?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:I,parent(){return f.parent=!0,e()}};h=await y.universal.load.call(null,S)??null,h=h?await ht(h):null}return{node:y,loader:t,server:o,universal:(R=y.universal)!=null&&R.load?{type:"data",data:h,uses:f}:null,data:h??(o==null?void 0:o.data)??null,slash:((v=y.universal)==null?void 0:v.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(t,e,r,a,s){if(H)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&r)return!0;for(const o of a.params)if(s[o]!==m.params[o])return!0;for(const o of a.dependencies)if(L.some(h=>h(new URL(o))))return!0;return!1}function pe(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}async function Ue({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:h,leaf:f}=s,y=[...h,f];o.forEach(k=>k==null?void 0:k().catch(()=>{})),y.forEach(k=>k==null?void 0:k[1]().catch(()=>{}));let w=null;const R=m.url?t!==m.url.pathname+m.url.search:!1,v=m.route?s.id!==m.route.id:!1;let I=!1;const S=y.map((k,T)=>{var K;const j=m.branch[T],x=!!(k!=null&&k[0])&&((j==null?void 0:j.loader)!==k[1]||Oe(I,v,R,(K=j.server)==null?void 0:K.uses,a));return x&&(I=!0),x});if(S.some(Boolean)){try{w=await Ke(r,S)}catch(k){return re({status:k instanceof ee?k.status:500,error:await X(k,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(w.type==="redirect")return w}const b=w==null?void 0:w.nodes;let U=!1;const D=y.map(async(k,T)=>{var he;if(!k)return;const j=m.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&k[1]===(j==null?void 0:j.loader)&&!Oe(U,v,R,(he=j.universal)==null?void 0:he.uses,a))return j;if(U=!0,(x==null?void 0:x.type)==="error")throw x;return de({loader:k[1],url:r,params:a,route:s,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let k=0;kPromise.resolve({}),server_data_node:pe(o)}),y={node:await u(),loader:u,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[f,y],status:t,error:e,route:null})}function W(t,e){if(ye(t,z))return;const r=oe(t);for(const a of p){const s=a.exec(r);if(s)return{id:t.pathname+t.search,invalidating:e,route:a,params:Qe(s),url:t}}}function oe(t){return Ze(t.pathname.slice(z.length)||"/")}function Ne({url:t,type:e,intent:r,delta:a}){var f,y;let s=!1;const o={from:{params:m.params,route:{id:((f=m.route)==null?void 0:f.id)??null},url:m.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((y=r==null?void 0:r.route)==null?void 0:y.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const h={...o,cancel:()=>{s=!0}};return A||g.before_navigate.forEach(w=>w(h)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:h,nav_token:f,accepted:y,blocked:w}){const R=W(t,!1),v=Ne({url:t,type:o,delta:h,intent:R});if(!v){w();return}const I=N;y(),A=!0,P&&M.navigating.set(v),await Ae(R,t,a,I,{scroll:e,keepfocus:r,details:s},f,()=>{A=!1,g.after_navigate.forEach(S=>S(v)),M.navigating.set(null)})}async function xe(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await G(t)}function G(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const h=o.target;clearTimeout(t),t=setTimeout(()=>{a(h,2)},20)});function e(o){a(o.composedPath()[0],1)}d.addEventListener("mousedown",e),d.addEventListener("touchstart",e,{passive:!0});const r=new IntersectionObserver(o=>{for(const h of o)h.isIntersecting&&(ae(oe(new URL(h.target.href))),r.unobserve(h.target))},{threshold:0});function a(o,h){const f=Fe(o,d);if(!f)return;const{url:y,external:w}=ge(f,z);if(w)return;const R=ce(f);if(!R.reload)if(h<=R.preload_data){const v=W(y,!1);v&&Ie(v)}else h<=R.preload_code&&ae(oe(y))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:h,external:f}=ge(o,z);if(f)continue;const y=ce(o);y.reload||(y.preload_code===Me.viewport&&r.observe(o),y.preload_code===Me.eager&&ae(oe(h)))}}g.after_navigate.push(s),s()}function X(t,e){return t instanceof ee?t.body:n.hooks.handleError({error:t,event:e})??{message:e.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:t=>{Ce(()=>(g.after_navigate.push(t),()=>{const e=g.after_navigate.indexOf(t);g.after_navigate.splice(e,1)}))},before_navigate:t=>{Ce(()=>(g.before_navigate.push(t),()=>{const e=g.before_navigate.indexOf(t);g.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(O||!P)&&(E=!1)},goto:(t,e={})=>ue(t,e,[]),invalidate:t=>{if(typeof t=="function")L.push(t);else{const{href:e}=new URL(t,location.href);L.push(r=>r.href===e)}return ke()},invalidateAll:()=>(H=!0,ke()),preload_data:async t=>{const e=new URL(t,qe(document)),r=W(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Ie(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=m;if(!a)return;const s=await je(m.branch.length,r,a.errors);if(s){const o=await Y({url:e,params:m.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});m=o.state,F.$set(o.props),se().then(be)}}else t.type==="redirect"?ue(t.location,{invalidateAll:!0},[]):(F.$set({form:null,page:{...V,form:t.data,status:t.status}}),await se(),F.$set({form:t.data}),t.type==="success"&&be())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Le(),!A){const s={from:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:m.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};g.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(t=navigator.connection)!=null&&t.saveData||Ye(),d.addEventListener("click",e=>{if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const r=Fe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,z);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const h=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||h.reload){Ne({url:a,type:"link"})?A=!0:e.preventDefault();return}const[y,w]=a.href.split("#");if(w!==void 0&&y===location.href.split("#")[0]){J=!0,_e(N),m.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:h.noscroll?Q():null,keepfocus:h.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:h.replace_state??a.href===location.href},accepted:()=>e.preventDefault(),blocked:()=>e.preventDefault(),type:"link"})}),d.addEventListener("submit",e=>{if(e.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(e.target),a=e.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ye(o,z))return;const h=e.target,{keep_focus:f,noscroll:y,reload:w,replace_state:R}=ce(h);if(w)return;e.preventDefault(),e.stopPropagation();const v=new FormData(h),I=a==null?void 0:a.getAttribute("name");I&&v.append(I,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(v).toString(),ie({url:o,scroll:y?Q():null,keepfocus:f??!1,redirect_chain:[],details:{state:{},replaceState:R??o.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async e=>{var r;if((r=e.state)!=null&&r[q]){if(e.state[q]===N)return;const a=B[e.state[q]];if(m.url.href.split("#")[0]===location.href.split("#")[0]){B[N]=Q(),N=e.state[q],scrollTo(a.x,a.y);return}const s=e.state[q]-N;let o=!1;await ie({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{N=e.state[q]},blocked:()=>{history.go(-s),o=!0},type:"popstate",delta:s}),o||Re(N)}}),addEventListener("hashchange",()=>{J&&(J=!1,history.replaceState({...history.state,[q]:++N},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&M.navigating.set(null)})},_hydrate:async({status:t=200,error:e,node_ids:r,params:a,route:s,data:o,form:h})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=W(f,!1)||{});let y;try{const w=r.map(async(R,v)=>{const I=o[v];return I!=null&&I.uses&&(I.uses=Je(I.uses)),de({loader:n.nodes[R],url:f,params:a,route:s,parent:async()=>{const S={};for(let b=0;bR===s.id)??null})}catch(w){if(w instanceof He){await G(new URL(w.location,location.href));return}y=await re({status:w instanceof ee?w.status:500,error:await X(w,{url:f,params:a,route:s}),url:f,route:s})}Pe(y)}}}async function Ke(n,i){const p=new URL(n);p.pathname=rt(n.pathname),p.searchParams.append("x-sveltekit-invalidated",i.map(u=>u?"1":"").join("_"));const c=await le(p.href);if(!c.ok)throw new ee(c.status,await c.json());return new Promise(async u=>{var m;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:P=>new Promise((E,O)=>{d.set(P,{fulfil:E,reject:O})})})}let g="";for(;;){const{done:$,value:P}=await L.read();if($&&!g)break;for(g+=!P&&g?` +import{o as Ce,t as se}from"../chunks/index.6779d4e2.js";import{S as ze,a as Be,I as q,g as qe,f as Fe,b as ge,c as ce,s as M,i as ye,d as Q,P as Me,e as We}from"../chunks/singletons.8ade5c10.js";import{b as z}from"../chunks/paths.332820a7.js";import{R as He,H as ee}from"../chunks/control.e7f5239e.js";function Xe(n,i){return n==="/"||i==="ignore"?n:i==="never"?n.endsWith("/")?n.slice(0,-1):n:i==="always"&&!n.endsWith("/")?n+"/":n}function Ze(n){return n.split("%25").map(decodeURI).join("%25")}function Qe(n){for(const i in n)n[i]=decodeURIComponent(n[i]);return n}const et=["href","pathname","search","searchParams","toString","toJSON"];function tt(n,i){const p=new URL(n);for(const c of et){let u=p[c];Object.defineProperty(p,c,{get(){return i(),u},enumerable:!0,configurable:!0})}return nt(p),p}function nt(n){Object.defineProperty(n,"hash",{get(){throw new Error("Cannot access event.url.hash. Consider using `$page.url.hash` inside a component instead")}})}const at="/__data.json";function rt(n){return n.replace(/\/$/,"")+at}function Ge(n){try{return JSON.parse(sessionStorage[n])}catch{}}function Ve(n,i){const p=JSON.stringify(i);try{sessionStorage[n]=p}catch{}}function ot(...n){let i=5381;for(const p of n)if(typeof p=="string"){let c=p.length;for(;c;)i=i*33^p.charCodeAt(--c)}else if(ArrayBuffer.isView(p)){const c=new Uint8Array(p.buffer,p.byteOffset,p.byteLength);let u=c.length;for(;u;)i=i*33^c[--u]}else throw new TypeError("value must be a string or TypedArray");return(i>>>0).toString(36)}const le=window.fetch;window.fetch=(n,i)=>((n instanceof Request?n.method:(i==null?void 0:i.method)||"GET")!=="GET"&&te.delete(ve(n)),le(n,i));const te=new Map;function it(n,i){const p=ve(n,i),c=document.querySelector(p);if(c!=null&&c.textContent){const{body:u,...d}=JSON.parse(c.textContent),L=c.getAttribute("data-ttl");return L&&te.set(p,{body:u,init:d,ttl:1e3*Number(L)}),Promise.resolve(new Response(u,d))}return le(n,i)}function st(n,i,p){if(te.size>0){const c=ve(n,p),u=te.get(c);if(u){if(performance.now(){const u=/^\[\.\.\.(\w+)(?:=(\w+))?\]$/.exec(c);if(u)return i.push({name:u[1],matcher:u[2],optional:!1,rest:!0,chained:!0}),"(?:/(.*))?";const d=/^\[\[(\w+)(?:=(\w+))?\]\]$/.exec(c);if(d)return i.push({name:d[1],matcher:d[2],optional:!0,rest:!1,chained:!0}),"(?:/([^/]+))?";if(!c)return;const L=c.split(/\[(.+?)\](?!\])/);return"/"+L.map((_,g)=>{if(g%2){if(_.startsWith("x+"))return we(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return we(String.fromCharCode(..._.slice(2).split("-").map(A=>parseInt(A,16))));const m=ct.exec(_);if(!m)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,P,E,O]=m;return i.push({name:E,matcher:O,optional:!!$,rest:!!P,chained:P?g===1&&L[0]==="":!1}),P?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return we(_)}).join("")}).join("")}/?$`),params:i}}function ft(n){return!/^\([^)]+\)$/.test(n)}function ut(n){return n.slice(1).split("/").filter(ft)}function dt(n,i,p){const c={},u=n.slice(1);let d=0;for(let L=0;Lg).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const g=i[L+1],m=u[L+1];g&&!g.rest&&g.optional&&m&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function we(n){return n.normalize().replace(/[[\]]/g,"\\$&").replace(/%/g,"%25").replace(/\//g,"%2[Ff]").replace(/\?/g,"%3[Ff]").replace(/#/g,"%23").replace(/[.*+?^${}()|\\]/g,"\\$&")}function pt({nodes:n,server_loads:i,dictionary:p,matchers:c}){const u=new Set(i);return Object.entries(p).map(([l,[_,g,m]])=>{const{pattern:$,params:P}=lt(l),E={id:l,exec:O=>{const A=$.exec(O);if(A)return dt(A,P,c)},errors:[1,...m||[]].map(O=>n[O]),layouts:[0,...g||[]].map(L),leaf:d(_)};return E.errors.length=E.layouts.length=Math.max(E.errors.length,E.layouts.length),E});function d(l){const _=l<0;return _&&(l=~l),[_,n[l]]}function L(l){return l===void 0?l:[u.has(l),n[l]]}}async function ht(n){var i;for(const p in n)if(typeof((i=n[p])==null?void 0:i.then)=="function")return Object.fromEntries(await Promise.all(Object.entries(n).map(async([c,u])=>[c,await u])));return n}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");const mt=-1,gt=-2,yt=-3,wt=-4,_t=-5,bt=-6;function vt(n,i){if(typeof n=="number")return u(n,!0);if(!Array.isArray(n)||n.length===0)throw new Error("Invalid input");const p=n,c=Array(p.length);function u(d,L=!1){if(d===mt)return;if(d===yt)return NaN;if(d===wt)return 1/0;if(d===_t)return-1/0;if(d===bt)return-0;if(L)throw new Error("Invalid input");if(d in c)return c[d];const l=p[d];if(!l||typeof l!="object")c[d]=l;else if(Array.isArray(l))if(typeof l[0]=="string"){const _=l[0],g=i==null?void 0:i[_];if(g)return c[d]=g(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const m=new Set;c[d]=m;for(let E=1;Ei!=null)}const B=Ge(ze)??{},Z=Ge(Be)??{};function _e(n){B[n]=Q()}function kt(n,i){var $e;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const g={before_navigate:[],after_navigate:[]};let m={branch:[],error:null,url:null},$=!1,P=!1,E=!0,O=!1,A=!1,J=!1,H=!1,F,N=($e=history.state)==null?void 0:$e[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=B[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,Ee,ne;async function ke(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=W(t,!0);_=null,await Ae(e,t,[])}function Se(t){l.some(e=>e==null?void 0:e.snapshot)&&(Z[t]=l.map(e=>{var r;return(r=e==null?void 0:e.snapshot)==null?void 0:r.capture()}))}function Re(t){var e;(e=Z[t])==null||e.forEach((r,a)=>{var s,o;(o=(s=l[a])==null?void 0:s.snapshot)==null||o.restore(r)})}function Le(){_e(N),Ve(ze,B),Se(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},h,f){return typeof t=="string"&&(t=new URL(t,qe(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:h,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Ie(t){return _={id:t.id,promise:Ue(t).then(e=>(e.type==="loaded"&&e.state.error&&(_=null),e))},_.promise}async function ae(...t){const r=p.filter(a=>t.some(s=>a.exec(s))).map(a=>Promise.all([...a.layouts,a.leaf].map(s=>s==null?void 0:s[1]())));await Promise.all(r)}async function Ae(t,e,r,a,s,o={},h){var y,w,R;Ee=o;let f=t&&await Ue(t);if(!f){if(ye(e,z))return await G(e);f=await xe(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)}if(e=(t==null?void 0:t.url)||e,Ee!==o)return!1;if(f.type==="redirect")if(r.length>10||r.includes(e.pathname))f=await re({status:500,error:await X(new Error("Redirect loop"),{url:e,params:{},route:{id:null}}),url:e,route:{id:null}});else return ue(new URL(f.location,e).href,{},[...r,e.pathname],o),!1;else((y=f.props.page)==null?void 0:y.status)>=400&&await M.updated.check()&&await G(e);if(L.length=0,H=!1,O=!0,a&&(_e(a),Se(a)),(w=f.props.page)!=null&&w.url&&f.props.page.url.pathname!==e.pathname&&(e.pathname=(R=f.props.page)==null?void 0:R.url.pathname),s&&s.details){const{details:v}=s,I=v.replaceState?0:1;if(v.state[q]=N+=I,history[v.replaceState?"replaceState":"pushState"](v.state,"",e),!v.replaceState){let S=N+1;for(;Z[S]||B[S];)delete Z[S],delete B[S],S+=1}}if(_=null,P?(m=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Pe(f),s){const{scroll:v,keepfocus:I}=s,{activeElement:S}=document;if(await se(),E){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));v?scrollTo(v.x,v.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!I&&!b&&await be()}else await se();E=!0,f.props.page&&(V=f.props.page),h&&h(),O=!1}function Pe(t){var a;m=t.state;const e=document.querySelector("style[data-sveltekit]");e&&e.remove(),V=t.props.page,F=new n.root({target:i,props:{...t.props,stores:M,components:l},hydrate:!0}),Re(N);const r={from:null,to:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};g.after_navigate.forEach(s=>s(r)),P=!0}async function Y({url:t,params:e,branch:r,status:a,error:s,route:o,form:h}){let f="never";for(const S of r)(S==null?void 0:S.slash)!==void 0&&(f=S.slash);t.pathname=Xe(t.pathname,f),t.search=t.search;const y={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};h!==void 0&&(y.props.form=h);let w={},R=!V,v=0;for(let S=0;S(f.params.add(U),b[U])}),data:(o==null?void 0:o.data)??null,url:tt(r,()=>{f.url=!0}),async fetch(b,U){let D;b instanceof Request?(D=b.url,U={body:b.method==="GET"||b.method==="HEAD"?void 0:await b.blob(),cache:b.cache,credentials:b.credentials,headers:b.headers,integrity:b.integrity,keepalive:b.keepalive,method:b.method,mode:b.mode,redirect:b.redirect,referrer:b.referrer,referrerPolicy:b.referrerPolicy,signal:b.signal,...U}):D=b;const C=new URL(D,r);return I(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),P?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:I,parent(){return f.parent=!0,e()}};h=await y.universal.load.call(null,S)??null,h=h?await ht(h):null}return{node:y,loader:t,server:o,universal:(R=y.universal)!=null&&R.load?{type:"data",data:h,uses:f}:null,data:h??(o==null?void 0:o.data)??null,slash:((v=y.universal)==null?void 0:v.trailingSlash)??(o==null?void 0:o.slash)}}function Oe(t,e,r,a,s){if(H)return!0;if(!a)return!1;if(a.parent&&t||a.route&&e||a.url&&r)return!0;for(const o of a.params)if(s[o]!==m.params[o])return!0;for(const o of a.dependencies)if(L.some(h=>h(new URL(o))))return!0;return!1}function pe(t,e){return(t==null?void 0:t.type)==="data"?t:(t==null?void 0:t.type)==="skip"?e??null:null}async function Ue({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:h,leaf:f}=s,y=[...h,f];o.forEach(k=>k==null?void 0:k().catch(()=>{})),y.forEach(k=>k==null?void 0:k[1]().catch(()=>{}));let w=null;const R=m.url?t!==m.url.pathname+m.url.search:!1,v=m.route?s.id!==m.route.id:!1;let I=!1;const S=y.map((k,T)=>{var K;const j=m.branch[T],x=!!(k!=null&&k[0])&&((j==null?void 0:j.loader)!==k[1]||Oe(I,v,R,(K=j.server)==null?void 0:K.uses,a));return x&&(I=!0),x});if(S.some(Boolean)){try{w=await Ke(r,S)}catch(k){return re({status:k instanceof ee?k.status:500,error:await X(k,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(w.type==="redirect")return w}const b=w==null?void 0:w.nodes;let U=!1;const D=y.map(async(k,T)=>{var he;if(!k)return;const j=m.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&k[1]===(j==null?void 0:j.loader)&&!Oe(U,v,R,(he=j.universal)==null?void 0:he.uses,a))return j;if(U=!0,(x==null?void 0:x.type)==="error")throw x;return de({loader:k[1],url:r,params:a,route:s,parent:async()=>{var De;const Te={};for(let me=0;me{});const C=[];for(let k=0;kPromise.resolve({}),server_data_node:pe(o)}),y={node:await u(),loader:u,universal:null,server:null,data:null};return await Y({url:r,params:s,branch:[f,y],status:t,error:e,route:null})}function W(t,e){if(ye(t,z))return;const r=oe(t);for(const a of p){const s=a.exec(r);if(s)return{id:t.pathname+t.search,invalidating:e,route:a,params:Qe(s),url:t}}}function oe(t){return Ze(t.pathname.slice(z.length)||"/")}function Ne({url:t,type:e,intent:r,delta:a}){var f,y;let s=!1;const o={from:{params:m.params,route:{id:((f=m.route)==null?void 0:f.id)??null},url:m.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((y=r==null?void 0:r.route)==null?void 0:y.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const h={...o,cancel:()=>{s=!0}};return A||g.before_navigate.forEach(w=>w(h)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:h,nav_token:f,accepted:y,blocked:w}){const R=W(t,!1),v=Ne({url:t,type:o,delta:h,intent:R});if(!v){w();return}const I=N;y(),A=!0,P&&M.navigating.set(v),await Ae(R,t,a,I,{scroll:e,keepfocus:r,details:s},f,()=>{A=!1,g.after_navigate.forEach(S=>S(v)),M.navigating.set(null)})}async function xe(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await G(t)}function G(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const h=o.target;clearTimeout(t),t=setTimeout(()=>{a(h,2)},20)});function e(o){a(o.composedPath()[0],1)}d.addEventListener("mousedown",e),d.addEventListener("touchstart",e,{passive:!0});const r=new IntersectionObserver(o=>{for(const h of o)h.isIntersecting&&(ae(oe(new URL(h.target.href))),r.unobserve(h.target))},{threshold:0});function a(o,h){const f=Fe(o,d);if(!f)return;const{url:y,external:w}=ge(f,z);if(w)return;const R=ce(f);if(!R.reload)if(h<=R.preload_data){const v=W(y,!1);v&&Ie(v)}else h<=R.preload_code&&ae(oe(y))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:h,external:f}=ge(o,z);if(f)continue;const y=ce(o);y.reload||(y.preload_code===Me.viewport&&r.observe(o),y.preload_code===Me.eager&&ae(oe(h)))}}g.after_navigate.push(s),s()}function X(t,e){return t instanceof ee?t.body:n.hooks.handleError({error:t,event:e})??{message:e.route.id!=null?"Internal Error":"Not Found"}}return{after_navigate:t=>{Ce(()=>(g.after_navigate.push(t),()=>{const e=g.after_navigate.indexOf(t);g.after_navigate.splice(e,1)}))},before_navigate:t=>{Ce(()=>(g.before_navigate.push(t),()=>{const e=g.before_navigate.indexOf(t);g.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(O||!P)&&(E=!1)},goto:(t,e={})=>ue(t,e,[]),invalidate:t=>{if(typeof t=="function")L.push(t);else{const{href:e}=new URL(t,location.href);L.push(r=>r.href===e)}return ke()},invalidateAll:()=>(H=!0,ke()),preload_data:async t=>{const e=new URL(t,qe(document)),r=W(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Ie(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=m;if(!a)return;const s=await je(m.branch.length,r,a.errors);if(s){const o=await Y({url:e,params:m.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});m=o.state,F.$set(o.props),se().then(be)}}else t.type==="redirect"?ue(t.location,{invalidateAll:!0},[]):(F.$set({form:null,page:{...V,form:t.data,status:t.status}}),await se(),F.$set({form:t.data}),t.type==="success"&&be())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Le(),!A){const s={from:{params:m.params,route:{id:((a=m.route)==null?void 0:a.id)??null},url:m.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};g.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Le()}),(t=navigator.connection)!=null&&t.saveData||Ye(),d.addEventListener("click",e=>{if(e.button||e.which!==1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.defaultPrevented)return;const r=Fe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,z);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const h=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||h.reload){Ne({url:a,type:"link"})?A=!0:e.preventDefault();return}const[y,w]=a.href.split("#");if(w!==void 0&&y===location.href.split("#")[0]){J=!0,_e(N),m.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:h.noscroll?Q():null,keepfocus:h.keep_focus??!1,redirect_chain:[],details:{state:{},replaceState:h.replace_state??a.href===location.href},accepted:()=>e.preventDefault(),blocked:()=>e.preventDefault(),type:"link"})}),d.addEventListener("submit",e=>{if(e.defaultPrevented)return;const r=HTMLFormElement.prototype.cloneNode.call(e.target),a=e.submitter;if(((a==null?void 0:a.formMethod)||r.method)!=="get")return;const o=new URL((a==null?void 0:a.hasAttribute("formaction"))&&(a==null?void 0:a.formAction)||r.action);if(ye(o,z))return;const h=e.target,{keep_focus:f,noscroll:y,reload:w,replace_state:R}=ce(h);if(w)return;e.preventDefault(),e.stopPropagation();const v=new FormData(h),I=a==null?void 0:a.getAttribute("name");I&&v.append(I,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(v).toString(),ie({url:o,scroll:y?Q():null,keepfocus:f??!1,redirect_chain:[],details:{state:{},replaceState:R??o.href===location.href},nav_token:{},accepted:()=>{},blocked:()=>{},type:"form"})}),addEventListener("popstate",async e=>{var r;if((r=e.state)!=null&&r[q]){if(e.state[q]===N)return;const a=B[e.state[q]];if(m.url.href.split("#")[0]===location.href.split("#")[0]){B[N]=Q(),N=e.state[q],scrollTo(a.x,a.y);return}const s=e.state[q]-N;let o=!1;await ie({url:new URL(location.href),scroll:a,keepfocus:!1,redirect_chain:[],details:null,accepted:()=>{N=e.state[q]},blocked:()=>{history.go(-s),o=!0},type:"popstate",delta:s}),o||Re(N)}}),addEventListener("hashchange",()=>{J&&(J=!1,history.replaceState({...history.state,[q]:++N},"",location.href))});for(const e of document.querySelectorAll("link"))e.rel==="icon"&&(e.href=e.href);addEventListener("pageshow",e=>{e.persisted&&M.navigating.set(null)})},_hydrate:async({status:t=200,error:e,node_ids:r,params:a,route:s,data:o,form:h})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=W(f,!1)||{});let y;try{const w=r.map(async(R,v)=>{const I=o[v];return I!=null&&I.uses&&(I.uses=Je(I.uses)),de({loader:n.nodes[R],url:f,params:a,route:s,parent:async()=>{const S={};for(let b=0;bR===s.id)??null})}catch(w){if(w instanceof He){await G(new URL(w.location,location.href));return}y=await re({status:w instanceof ee?w.status:500,error:await X(w,{url:f,params:a,route:s}),url:f,route:s})}Pe(y)}}}async function Ke(n,i){const p=new URL(n);p.pathname=rt(n.pathname),p.searchParams.append("x-sveltekit-invalidated",i.map(u=>u?"1":"").join("_"));const c=await le(p.href);if(!c.ok)throw new ee(c.status,await c.json());return new Promise(async u=>{var m;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:P=>new Promise((E,O)=>{d.set(P,{fulfil:E,reject:O})})})}let g="";for(;;){const{done:$,value:P}=await L.read();if($&&!g)break;for(g+=!P&&g?` `:l.decode(P);;){const E=g.indexOf(` `);if(E===-1)break;const O=JSON.parse(g.slice(0,E));if(g=g.slice(E+1),O.type==="redirect")return u(O);if(O.type==="data")(m=O.nodes)==null||m.forEach(A=>{(A==null?void 0:A.type)==="data"&&(A.uses=Je(A.uses),A.data=_(A.data))}),u(O);else if(O.type==="chunk"){const{id:A,data:J,error:H}=O,F=d.get(A);d.delete(A),H?F.reject(_(H)):F.fulfil(_(J))}}}})}function Je(n){return{dependencies:new Set((n==null?void 0:n.dependencies)??[]),params:new Set((n==null?void 0:n.params)??[]),parent:!!(n!=null&&n.parent),route:!!(n!=null&&n.route),url:!!(n!=null&&n.url)}}function be(){const n=document.querySelector("[autofocus]");if(n)n.focus();else{const i=document.body,p=i.getAttribute("tabindex");return i.tabIndex=-1,i.focus({preventScroll:!0}),p!==null?i.setAttribute("tabindex",p):i.removeAttribute("tabindex"),new Promise(c=>{setTimeout(()=>{var u;c((u=getSelection())==null?void 0:u.removeAllRanges())})})}}async function At(n,i,p){const c=kt(n,i);We({client:c}),p?await c._hydrate(p):c.goto(location.href,{replaceState:!0}),c._start_router()}export{At as start}; diff --git a/ui/assets/local/_app/version.json b/ui/assets/local/_app/version.json index d69176a997..dbd3576a69 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1697041809171"} \ No newline at end of file +{"version":"1697123814768"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index cff3d47910..9abfb0dfec 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -4,30 +4,30 @@ - + - + - + - +