diff --git a/server/version/version.go b/server/version/version.go index 1cc807412c..a9b7a05461 100644 --- a/server/version/version.go +++ b/server/version/version.go @@ -28,5 +28,5 @@ const ( clientNameHeaderName = "client-name" clientNameHeaderValue = "temporal-ui" clientVersionHeaderName = "client-version" - UIVersion = "2.13.2" + UIVersion = "2.13.3" ) diff --git a/ui/assets/cloud/_app/immutable/chunks/1.7345cd09.js b/ui/assets/cloud/_app/immutable/chunks/1.7345cd09.js deleted file mode 100644 index eac3c1ca0f..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/1.7345cd09.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/_error.svelte.7943e0a1.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/1.a294f349.js b/ui/assets/cloud/_app/immutable/chunks/1.a294f349.js new file mode 100644 index 0000000000..f11cb9a855 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/1.a294f349.js @@ -0,0 +1 @@ +import{default as t}from"../entry/_error.svelte.2df9e59d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/10.10bbae81.js b/ui/assets/cloud/_app/immutable/chunks/10.1716a5b9.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/10.10bbae81.js rename to ui/assets/cloud/_app/immutable/chunks/10.1716a5b9.js index ff0ac678db..469d9581b7 100644 --- a/ui/assets/local/_app/immutable/chunks/10.10bbae81.js +++ b/ui/assets/cloud/_app/immutable/chunks/10.1716a5b9.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.f8c5ca87.js";export{t as component}; +import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.a94a9060.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/11.ba8075a7.js b/ui/assets/cloud/_app/immutable/chunks/11.ba8075a7.js new file mode 100644 index 0000000000..feb2dc8ab4 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/11.ba8075a7.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.be03befd.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/11.e55babc3.js b/ui/assets/cloud/_app/immutable/chunks/11.e55babc3.js deleted file mode 100644 index 33506b832e..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/11.e55babc3.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.2933bd11.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/12.aebb51f3.js b/ui/assets/cloud/_app/immutable/chunks/12.ab130623.js similarity index 62% rename from ui/assets/local/_app/immutable/chunks/12.aebb51f3.js rename to ui/assets/cloud/_app/immutable/chunks/12.ab130623.js index f96754b2cb..0ce1b05781 100644 --- a/ui/assets/local/_app/immutable/chunks/12.aebb51f3.js +++ b/ui/assets/cloud/_app/immutable/chunks/12.ab130623.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-page.svelte.1941c7ec.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-page.svelte.51774b71.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/13.48abd10e.js b/ui/assets/cloud/_app/immutable/chunks/13.48abd10e.js new file mode 100644 index 0000000000..45e428e2bb --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/13.48abd10e.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.045d2d42.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/13.c2209471.js b/ui/assets/cloud/_app/immutable/chunks/13.c2209471.js deleted file mode 100644 index bd3700ada3..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/13.c2209471.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.241b6c5b.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/14.e122ff6a.js b/ui/assets/cloud/_app/immutable/chunks/14.91860b3a.js similarity index 56% rename from ui/assets/cloud/_app/immutable/chunks/14.e122ff6a.js rename to ui/assets/cloud/_app/immutable/chunks/14.91860b3a.js index f3a93ee46b..7bbf44e27f 100644 --- a/ui/assets/cloud/_app/immutable/chunks/14.e122ff6a.js +++ b/ui/assets/cloud/_app/immutable/chunks/14.91860b3a.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.c77db989.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5e0eca44.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/15.fafeea92.js b/ui/assets/cloud/_app/immutable/chunks/15.7de15486.js similarity index 55% rename from ui/assets/local/_app/immutable/chunks/15.fafeea92.js rename to ui/assets/cloud/_app/immutable/chunks/15.7de15486.js index 20f9c99e6f..0bfcdb458e 100644 --- a/ui/assets/local/_app/immutable/chunks/15.fafeea92.js +++ b/ui/assets/cloud/_app/immutable/chunks/15.7de15486.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.e6d38d0c.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.1cf4f027.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/17.6215dca1.js b/ui/assets/cloud/_app/immutable/chunks/17.6215dca1.js deleted file mode 100644 index 594e6aab5c..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/17.6215dca1.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-page.svelte.b6370b74.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/17.eced0f46.js b/ui/assets/cloud/_app/immutable/chunks/17.eced0f46.js new file mode 100644 index 0000000000..b657e7ecf1 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/17.eced0f46.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-page.svelte.e3cb8df8.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/18.8ce378ed.js b/ui/assets/cloud/_app/immutable/chunks/18.8ce378ed.js deleted file mode 100644 index d30b12d2e1..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/18.8ce378ed.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.10185099.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.2176d965.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/18.f697705b.js b/ui/assets/cloud/_app/immutable/chunks/18.f697705b.js new file mode 100644 index 0000000000..ecd178aa05 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/18.f697705b.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.2b0c4c74.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.84696901.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/19.5d9811df.js b/ui/assets/cloud/_app/immutable/chunks/19.5d9811df.js new file mode 100644 index 0000000000..e52d2e14cd --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/19.5d9811df.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.de41eaf1.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.4ef79eb9.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/19.b1f7add1.js b/ui/assets/cloud/_app/immutable/chunks/19.b1f7add1.js deleted file mode 100644 index 575175c36c..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/19.b1f7add1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.f3fdc977.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.5ae65169.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/2.6a7f566f.js b/ui/assets/cloud/_app/immutable/chunks/2.6a7f566f.js deleted file mode 100644 index 6915237930..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/2.6a7f566f.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_layout.ed225812.js";import{default as t}from"../entry/(app)-layout.svelte.3ccf5ff0.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/2.822cfcc8.js b/ui/assets/cloud/_app/immutable/chunks/2.822cfcc8.js new file mode 100644 index 0000000000..c458074cbf --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/2.822cfcc8.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout.35732f64.js";import{default as t}from"../entry/(app)-layout.svelte.afdd893c.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/20.010cd9d5.js b/ui/assets/cloud/_app/immutable/chunks/20.b6657f2e.js similarity index 52% rename from ui/assets/cloud/_app/immutable/chunks/20.010cd9d5.js rename to ui/assets/cloud/_app/immutable/chunks/20.b6657f2e.js index 5627e38448..5d5200406a 100644 --- a/ui/assets/cloud/_app/immutable/chunks/20.010cd9d5.js +++ b/ui/assets/cloud/_app/immutable/chunks/20.b6657f2e.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.53550ef7.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.06ae428e.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/21.121d85f3.js b/ui/assets/cloud/_app/immutable/chunks/21.37941c15.js similarity index 51% rename from ui/assets/local/_app/immutable/chunks/21.121d85f3.js rename to ui/assets/cloud/_app/immutable/chunks/21.37941c15.js index 03c1e52667..9a7b7b6e8b 100644 --- a/ui/assets/local/_app/immutable/chunks/21.121d85f3.js +++ b/ui/assets/cloud/_app/immutable/chunks/21.37941c15.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.cbac3665.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.21b1363d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/22.f65382c3.js b/ui/assets/cloud/_app/immutable/chunks/22.7af2d653.js similarity index 53% rename from ui/assets/local/_app/immutable/chunks/22.f65382c3.js rename to ui/assets/cloud/_app/immutable/chunks/22.7af2d653.js index 11e362da21..c8dd359a8e 100644 --- a/ui/assets/local/_app/immutable/chunks/22.f65382c3.js +++ b/ui/assets/cloud/_app/immutable/chunks/22.7af2d653.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.aadc1c43.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.f2b749ed.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/23.03097753.js b/ui/assets/cloud/_app/immutable/chunks/23.30cb4df2.js similarity index 50% rename from ui/assets/local/_app/immutable/chunks/23.03097753.js rename to ui/assets/cloud/_app/immutable/chunks/23.30cb4df2.js index d8c265273a..7526a24337 100644 --- a/ui/assets/local/_app/immutable/chunks/23.03097753.js +++ b/ui/assets/cloud/_app/immutable/chunks/23.30cb4df2.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.eb0e8412.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.dbb2673c.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/25.8859e9ec.js b/ui/assets/cloud/_app/immutable/chunks/25.f30c040f.js similarity index 51% rename from ui/assets/cloud/_app/immutable/chunks/25.8859e9ec.js rename to ui/assets/cloud/_app/immutable/chunks/25.f30c040f.js index fdd9c214b7..c1f3086991 100644 --- a/ui/assets/cloud/_app/immutable/chunks/25.8859e9ec.js +++ b/ui/assets/cloud/_app/immutable/chunks/25.f30c040f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.60717323.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.898cc34a.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/26.571f759f.js b/ui/assets/cloud/_app/immutable/chunks/26.571f759f.js deleted file mode 100644 index 63bf54603d..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/26.571f759f.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.37406c88.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/26.7514e783.js b/ui/assets/cloud/_app/immutable/chunks/26.7514e783.js new file mode 100644 index 0000000000..90ad21315b --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/26.7514e783.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.b14944b6.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-page.svelte.b996db0e.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/27.25bf8dad.js b/ui/assets/cloud/_app/immutable/chunks/27.25bf8dad.js deleted file mode 100644 index e7348ad2c7..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/27.25bf8dad.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.6428bd37.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/27.36fa525b.js b/ui/assets/cloud/_app/immutable/chunks/27.36fa525b.js new file mode 100644 index 0000000000..2f6da1333f --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/27.36fa525b.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.68a74ae0.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/29.f23f0d0a.js b/ui/assets/cloud/_app/immutable/chunks/29.5c65ac97.js similarity index 68% rename from ui/assets/cloud/_app/immutable/chunks/29.f23f0d0a.js rename to ui/assets/cloud/_app/immutable/chunks/29.5c65ac97.js index 7a5a78826a..e12939ef3b 100644 --- a/ui/assets/cloud/_app/immutable/chunks/29.f23f0d0a.js +++ b/ui/assets/cloud/_app/immutable/chunks/29.5c65ac97.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.56651981.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.ffc1468c.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/3.18571f15.js b/ui/assets/cloud/_app/immutable/chunks/3.18571f15.js new file mode 100644 index 0000000000..366415ae37 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/3.18571f15.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-import-layout.svelte.fae8b342.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/3.477a496f.js b/ui/assets/cloud/_app/immutable/chunks/3.477a496f.js deleted file mode 100644 index 78ca0b4af5..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/3.477a496f.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-import-layout.svelte.dc7921e5.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/30.6bf1a68e.js b/ui/assets/cloud/_app/immutable/chunks/30.6bf1a68e.js new file mode 100644 index 0000000000..75b744bf1d --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/30.6bf1a68e.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.2b64f7b2.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/30.99b4785d.js b/ui/assets/cloud/_app/immutable/chunks/30.99b4785d.js deleted file mode 100644 index edaff3dd21..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/30.99b4785d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.fdb95c2e.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/31.6bf1a68e.js b/ui/assets/cloud/_app/immutable/chunks/31.6bf1a68e.js new file mode 100644 index 0000000000..7c135b49b7 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/31.6bf1a68e.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.a33400eb.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/31.99b4785d.js b/ui/assets/cloud/_app/immutable/chunks/31.99b4785d.js deleted file mode 100644 index 24f30bb669..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/31.99b4785d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.3552ec44.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/32.6bf1a68e.js b/ui/assets/cloud/_app/immutable/chunks/32.6bf1a68e.js new file mode 100644 index 0000000000..189a87e8c2 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/32.6bf1a68e.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.75c2ac3e.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/32.99b4785d.js b/ui/assets/cloud/_app/immutable/chunks/32.99b4785d.js deleted file mode 100644 index 7292cf0ae2..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/32.99b4785d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.519ce37d.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/33.34c842af.js b/ui/assets/cloud/_app/immutable/chunks/33.34c842af.js deleted file mode 100644 index c83edf4c6e..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/33.34c842af.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4bbdc4ec.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/33.77c4ea2e.js b/ui/assets/cloud/_app/immutable/chunks/33.77c4ea2e.js new file mode 100644 index 0000000000..52e121cf5c --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/33.77c4ea2e.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4888e92a.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/34.8384d359.js b/ui/assets/cloud/_app/immutable/chunks/34.c3685080.js similarity index 55% rename from ui/assets/cloud/_app/immutable/chunks/34.8384d359.js rename to ui/assets/cloud/_app/immutable/chunks/34.c3685080.js index 2264e2dba6..97d038eae6 100644 --- a/ui/assets/cloud/_app/immutable/chunks/34.8384d359.js +++ b/ui/assets/cloud/_app/immutable/chunks/34.c3685080.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.779cfcab.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.83cb87ac.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/35.ee63f436.js b/ui/assets/cloud/_app/immutable/chunks/35.d09540e1.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/35.ee63f436.js rename to ui/assets/cloud/_app/immutable/chunks/35.d09540e1.js index 96d5ca16f1..1fd1a9cf95 100644 --- a/ui/assets/local/_app/immutable/chunks/35.ee63f436.js +++ b/ui/assets/cloud/_app/immutable/chunks/35.d09540e1.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a4467d25.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.9a05b12d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/36.7e838d49.js b/ui/assets/cloud/_app/immutable/chunks/36.693c4fd1.js similarity index 56% rename from ui/assets/local/_app/immutable/chunks/36.7e838d49.js rename to ui/assets/cloud/_app/immutable/chunks/36.693c4fd1.js index d32bd86611..341f34b8a4 100644 --- a/ui/assets/local/_app/immutable/chunks/36.7e838d49.js +++ b/ui/assets/cloud/_app/immutable/chunks/36.693c4fd1.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.64cb234f.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.65c49a36.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/37.e5019ae3.js b/ui/assets/cloud/_app/immutable/chunks/37.18596a2f.js similarity index 60% rename from ui/assets/cloud/_app/immutable/chunks/37.e5019ae3.js rename to ui/assets/cloud/_app/immutable/chunks/37.18596a2f.js index 3e55dd399f..cdda68303c 100644 --- a/ui/assets/cloud/_app/immutable/chunks/37.e5019ae3.js +++ b/ui/assets/cloud/_app/immutable/chunks/37.18596a2f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-select-namespace-page.svelte.92610ade.js";export{t as component}; +import{default as t}from"../entry/(app)-select-namespace-page.svelte.166ea9f3.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/38.61b05597.js b/ui/assets/cloud/_app/immutable/chunks/38.61b05597.js new file mode 100644 index 0000000000..577a7628f5 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/38.61b05597.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-login-page.svelte.3eb1deb8.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/38.d88830e5.js b/ui/assets/cloud/_app/immutable/chunks/38.d88830e5.js deleted file mode 100644 index b3477559f5..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/38.d88830e5.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-login-page.svelte.a6553057.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/39.3f818244.js b/ui/assets/cloud/_app/immutable/chunks/39.3f818244.js new file mode 100644 index 0000000000..0e051d184b --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/39.3f818244.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-signin-page.svelte.3eb1deb8.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/39.8d28723a.js b/ui/assets/cloud/_app/immutable/chunks/39.8d28723a.js deleted file mode 100644 index d43659e622..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/39.8d28723a.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-signin-page.svelte.a6553057.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/4.c943a7a4.js b/ui/assets/cloud/_app/immutable/chunks/4.672b8b80.js similarity index 54% rename from ui/assets/cloud/_app/immutable/chunks/4.c943a7a4.js rename to ui/assets/cloud/_app/immutable/chunks/4.672b8b80.js index 1e29e3cf59..c225efa637 100644 --- a/ui/assets/cloud/_app/immutable/chunks/4.c943a7a4.js +++ b/ui/assets/cloud/_app/immutable/chunks/4.672b8b80.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.d83a841d.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.b05d1f2e.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/7.686f6609.js b/ui/assets/cloud/_app/immutable/chunks/7.b4f543c4.js similarity index 54% rename from ui/assets/cloud/_app/immutable/chunks/7.686f6609.js rename to ui/assets/cloud/_app/immutable/chunks/7.b4f543c4.js index c701ef6f49..3341ed4108 100644 --- a/ui/assets/cloud/_app/immutable/chunks/7.686f6609.js +++ b/ui/assets/cloud/_app/immutable/chunks/7.b4f543c4.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.c0e3330b.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.23c96af1.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/8.69c714bb.js b/ui/assets/cloud/_app/immutable/chunks/8.ae55835b.js similarity index 57% rename from ui/assets/cloud/_app/immutable/chunks/8.69c714bb.js rename to ui/assets/cloud/_app/immutable/chunks/8.ae55835b.js index 1532304434..92fa568e32 100644 --- a/ui/assets/cloud/_app/immutable/chunks/8.69c714bb.js +++ b/ui/assets/cloud/_app/immutable/chunks/8.ae55835b.js @@ -1 +1 @@ -import{_ as r}from"./_layout.ca39c28d.js";import{default as t}from"../entry/(login)-layout.svelte.1b6cce0a.js";export{t as component,r as universal}; +import{_ as r}from"./_layout.27af8aca.js";import{default as t}from"../entry/(login)-layout.svelte.1b6cce0a.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/9.64dd0ee4.js b/ui/assets/cloud/_app/immutable/chunks/9.64dd0ee4.js new file mode 100644 index 0000000000..ff1be538c2 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/9.64dd0ee4.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.edd987e4.js";import{default as t}from"../entry/(app)-page.svelte.27bcc3a4.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/9.cc387fa7.js b/ui/assets/cloud/_app/immutable/chunks/9.cc387fa7.js deleted file mode 100644 index 8d020f677a..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/9.cc387fa7.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.5f52b423.js";import{default as t}from"../entry/(app)-page.svelte.b13e7f65.js";export{t as component,r as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/_layout.ca39c28d.js b/ui/assets/cloud/_app/immutable/chunks/_layout.27af8aca.js similarity index 81% rename from ui/assets/cloud/_app/immutable/chunks/_layout.ca39c28d.js rename to ui/assets/cloud/_app/immutable/chunks/_layout.27af8aca.js index 08739db2ec..f202d9f76a 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_layout.ca39c28d.js +++ b/ui/assets/cloud/_app/immutable/chunks/_layout.27af8aca.js @@ -1 +1 @@ -/* empty css */import{e}from"./index.b1f5b21f.js";import{f as r}from"./settings-service.713ab407.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.2d7ee284.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/cloud/_app/immutable/chunks/_layout.ed225812.js b/ui/assets/cloud/_app/immutable/chunks/_layout.35732f64.js similarity index 96% rename from ui/assets/cloud/_app/immutable/chunks/_layout.ed225812.js rename to ui/assets/cloud/_app/immutable/chunks/_layout.35732f64.js index 8e8fde7c25..958fa672e9 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_layout.ed225812.js +++ b/ui/assets/cloud/_app/immutable/chunks/_layout.35732f64.js @@ -1 +1 @@ -import{r as ne}from"./index.b1f5b21f.js";/* empty css */import{f as re}from"./settings-service.713ab407.js";import{s as ae,g as oe}from"./auth-user.3a7bc4db.js";import{c as ie}from"./cluster.c8f1465c.js";import{r as K,a as Q}from"./route-for-api.81ced9ce.js";import{f as le}from"./namespaces-service.7d25bee8.js";import{s as se}from"./search-attributes.b68ffd52.js";import{f as X,e as ce}from"./route-for.70dfbf18.js";import{p as ue}from"./parse-with-big-int.0036a80a.js";import{a as ge}from"./atob.a55cedf9.js";var fe=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},_=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,f=0,g={},o={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof d?new d(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(t,e){var a=o.util.clone(o.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){var r=(n=n||o.languages)[t],l={};for(var i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(i)||(l[i]=r[i])}var m=n[t];return n[t]=l,o.languages.DFS(o.languages,function(b,F){F===m&&b!=t&&(this[b]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=o.util.objId;for(var i in e)if(e.hasOwnProperty(i)){a.call(e,i,e[i],n||i);var s=e[i],m=o.util.type(s);m!=="Object"||r[l(s)]?m!=="Array"||r[l(s)]||(r[l(s)]=!0,t(s,a,i,r)):(r[l(s)]=!0,t(s,a,null,r))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),o.hooks.run("before-all-elements-highlight",n);for(var r,l=0;r=n.elements[l++];)o.highlightElement(r,e===!0,n.callback)},highlightElement:function(t,e,a){var n=o.util.getLanguage(t),r=o.languages[n];t.className=t.className.replace(c,"").replace(/\s+/g," ")+" language-"+n;var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&(l.className=l.className.replace(c,"").replace(/\s+/g," ")+" language-"+n);var i={element:t,language:n,grammar:r,code:t.textContent};function s(b){i.highlightedCode=b,o.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,o.hooks.run("after-highlight",i),o.hooks.run("complete",i),a&&a.call(i.element)}if(o.hooks.run("before-sanity-check",i),(l=i.element.parentElement)&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!i.code)return o.hooks.run("complete",i),void(a&&a.call(i.element));if(o.hooks.run("before-highlight",i),i.grammar)if(e&&u.Worker){var m=new Worker(o.filename);m.onmessage=function(b){s(b.data)},m.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(o.highlight(i.code,i.grammar,i.language));else s(o.util.encode(i.code))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};return o.hooks.run("before-tokenize",n),n.tokens=o.tokenize(n.code,n.grammar),o.hooks.run("after-tokenize",n),d.stringify(o.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new W;return L(r,r.head,t),function l(i,s,m,b,F,v){for(var A in m)if(m.hasOwnProperty(A)&&m[A]){var S=m[A];S=Array.isArray(S)?S:[S];for(var E=0;E=v.reach);k+=p.value.length,p=p.next){var C=p.value;if(s.length>i.length)return;if(!(C instanceof d)){var w,j=1;if(V){if(!(w=h(G,k,i,$)))break;var P=w.index,ee=w.index+w[0].length,x=k;for(x+=p.value.length;x<=P;)p=p.next,x+=p.value.length;if(x-=p.value.length,k=x,p.value instanceof d)continue;for(var N=p;N!==s.tail&&(xv.reach&&(v.reach=U);var I=p.prev;q&&(I=L(s,I,q),k+=q.length),Y(s,I,j);var te=new d(A,H?o.tokenize(T,H):T,Z,T);if(p=L(s,I,te),J&&L(s,p,J),1v.reach&&(v.reach=B.reach)}}}}}}(t,r,e,r.head,0),function(l){for(var i=[],s=l.head.next;s!==l.tail;)i.push(s.value),s=s.next;return i}(r)},hooks:{all:{},add:function(t,e){var a=o.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=o.hooks.all[t];if(a&&a.length)for(var n,r=0;n=a[r++];)n(e)}},Token:d};function d(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=0|(n||"").length}function h(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function W(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function L(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function Y(t,e,a){for(var n=e.next,r=0;r"+r.content+""},!u.document)return u.addEventListener&&(o.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(o.highlight(n,o.languages[a],a)),r&&u.close()},!1)),o;var O=o.util.currentScript();function z(){o.manual||o.highlightAll()}if(O&&(o.filename=O.src,O.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var D=document.readyState;D==="loading"||D==="interactive"&&O&&O.defer?document.addEventListener("DOMContentLoaded",z):window.requestAnimationFrame?window.requestAnimationFrame(z):window.setTimeout(z,16)}return o}(fe);typeof module<"u"&&module.exports&&(module.exports=_),typeof global<"u"&&(global.Prism=_);_.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},_.languages.webmanifest=_.languages.json;const he=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("cluster");return await Q(f,{request:c}).then(g=>(ie.set(g),g))},de=async(u=fetch)=>{try{const c=await u("https://api.github.com/repos/temporalio/ui-server/releases"),f=await c.json();if(!c.ok)return;let g;if(f.length>0){const{tag_name:o}=f[0];g=o.replace("v","")}return g}catch{return""}},pe=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("search-attributes");return await Q(f,{request:c}).then(g=>(g!=null&&g.keys&&se.set(g.keys),g))},me=(u,c)=>!u.auth.enabled||Boolean(c==null?void 0:c.accessToken),M="user",ve=(u=X)=>{if(!u)return{};const c=document.cookie.split(";");let f=0,g=c.find(d=>d.includes(M+f)),o="";for(;g;){const[d,h]=g.split("=");o+=h,f++,g=c.find(W=>W.includes(M+f))}if(o)try{const d=ge(o),h=ue(d);return{accessToken:h==null?void 0:h.AccessToken,idToken:h==null?void 0:h.IDToken,name:h==null?void 0:h.Name,picture:h==null?void 0:h.Picture,email:h==null?void 0:h.Email}}catch(d){console.error(d)}return{}},ye=(u=X)=>{if(!u)return;const c=document.cookie.split(";");let f=0,g=c.find(o=>o.includes(M+f));for(;g;){const[o]=g.split("=");document.cookie=`${o}=; max-age=-1; path=/`,f++,g=c.find(d=>d.includes(M+f))}},ke=async function({fetch:u}){const c=await re(u),f=ve();f!=null&&f.accessToken&&(ae(f),ye());const g=oe();if(!me(c,g))throw ne(302,ce());le(c,u),pe(c,u);const o=await he(c,u),d={current:c.version,recommended:c.notifyOnNewVersion?await de(u):void 0};return{user:g,uiVersionInfo:d,settings:c,cluster:o}},je=Object.freeze(Object.defineProperty({__proto__:null,load:ke},Symbol.toStringTag,{value:"Module"}));export{je as _,ke as l}; +import{r as ne}from"./index.b1f5b21f.js";/* empty css */import{f as re}from"./settings-service.2d7ee284.js";import{s as ae,g as oe}from"./auth-user.3a7bc4db.js";import{c as ie}from"./cluster.c8f1465c.js";import{r as K,a as Q}from"./route-for-api.75ac86ec.js";import{f as le}from"./namespaces-service.1ee08ff7.js";import{s as se}from"./search-attributes.b68ffd52.js";import{f as X,e as ce}from"./route-for.087ea268.js";import{p as ue}from"./parse-with-big-int.0036a80a.js";import{a as ge}from"./atob.c08bef0d.js";var fe=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},_=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,f=0,g={},o={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof d?new d(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(t,e){var a=o.util.clone(o.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){var r=(n=n||o.languages)[t],l={};for(var i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(i)||(l[i]=r[i])}var m=n[t];return n[t]=l,o.languages.DFS(o.languages,function(b,F){F===m&&b!=t&&(this[b]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=o.util.objId;for(var i in e)if(e.hasOwnProperty(i)){a.call(e,i,e[i],n||i);var s=e[i],m=o.util.type(s);m!=="Object"||r[l(s)]?m!=="Array"||r[l(s)]||(r[l(s)]=!0,t(s,a,i,r)):(r[l(s)]=!0,t(s,a,null,r))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),o.hooks.run("before-all-elements-highlight",n);for(var r,l=0;r=n.elements[l++];)o.highlightElement(r,e===!0,n.callback)},highlightElement:function(t,e,a){var n=o.util.getLanguage(t),r=o.languages[n];t.className=t.className.replace(c,"").replace(/\s+/g," ")+" language-"+n;var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&(l.className=l.className.replace(c,"").replace(/\s+/g," ")+" language-"+n);var i={element:t,language:n,grammar:r,code:t.textContent};function s(b){i.highlightedCode=b,o.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,o.hooks.run("after-highlight",i),o.hooks.run("complete",i),a&&a.call(i.element)}if(o.hooks.run("before-sanity-check",i),(l=i.element.parentElement)&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!i.code)return o.hooks.run("complete",i),void(a&&a.call(i.element));if(o.hooks.run("before-highlight",i),i.grammar)if(e&&u.Worker){var m=new Worker(o.filename);m.onmessage=function(b){s(b.data)},m.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(o.highlight(i.code,i.grammar,i.language));else s(o.util.encode(i.code))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};return o.hooks.run("before-tokenize",n),n.tokens=o.tokenize(n.code,n.grammar),o.hooks.run("after-tokenize",n),d.stringify(o.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new W;return L(r,r.head,t),function l(i,s,m,b,F,v){for(var A in m)if(m.hasOwnProperty(A)&&m[A]){var S=m[A];S=Array.isArray(S)?S:[S];for(var E=0;E=v.reach);k+=p.value.length,p=p.next){var C=p.value;if(s.length>i.length)return;if(!(C instanceof d)){var w,j=1;if(V){if(!(w=h(G,k,i,$)))break;var P=w.index,ee=w.index+w[0].length,x=k;for(x+=p.value.length;x<=P;)p=p.next,x+=p.value.length;if(x-=p.value.length,k=x,p.value instanceof d)continue;for(var N=p;N!==s.tail&&(xv.reach&&(v.reach=U);var I=p.prev;q&&(I=L(s,I,q),k+=q.length),Y(s,I,j);var te=new d(A,H?o.tokenize(T,H):T,Z,T);if(p=L(s,I,te),J&&L(s,p,J),1v.reach&&(v.reach=B.reach)}}}}}}(t,r,e,r.head,0),function(l){for(var i=[],s=l.head.next;s!==l.tail;)i.push(s.value),s=s.next;return i}(r)},hooks:{all:{},add:function(t,e){var a=o.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=o.hooks.all[t];if(a&&a.length)for(var n,r=0;n=a[r++];)n(e)}},Token:d};function d(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=0|(n||"").length}function h(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function W(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function L(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function Y(t,e,a){for(var n=e.next,r=0;r"+r.content+""},!u.document)return u.addEventListener&&(o.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(o.highlight(n,o.languages[a],a)),r&&u.close()},!1)),o;var O=o.util.currentScript();function z(){o.manual||o.highlightAll()}if(O&&(o.filename=O.src,O.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var D=document.readyState;D==="loading"||D==="interactive"&&O&&O.defer?document.addEventListener("DOMContentLoaded",z):window.requestAnimationFrame?window.requestAnimationFrame(z):window.setTimeout(z,16)}return o}(fe);typeof module<"u"&&module.exports&&(module.exports=_),typeof global<"u"&&(global.Prism=_);_.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},_.languages.webmanifest=_.languages.json;const he=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("cluster");return await Q(f,{request:c}).then(g=>(ie.set(g),g))},de=async(u=fetch)=>{try{const c=await u("https://api.github.com/repos/temporalio/ui-server/releases"),f=await c.json();if(!c.ok)return;let g;if(f.length>0){const{tag_name:o}=f[0];g=o.replace("v","")}return g}catch{return""}},pe=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("search-attributes");return await Q(f,{request:c}).then(g=>(g!=null&&g.keys&&se.set(g.keys),g))},me=(u,c)=>!u.auth.enabled||Boolean(c==null?void 0:c.accessToken),M="user",ve=(u=X)=>{if(!u)return{};const c=document.cookie.split(";");let f=0,g=c.find(d=>d.includes(M+f)),o="";for(;g;){const[d,h]=g.split("=");o+=h,f++,g=c.find(W=>W.includes(M+f))}if(o)try{const d=ge(o),h=ue(d);return{accessToken:h==null?void 0:h.AccessToken,idToken:h==null?void 0:h.IDToken,name:h==null?void 0:h.Name,picture:h==null?void 0:h.Picture,email:h==null?void 0:h.Email}}catch(d){console.error(d)}return{}},ye=(u=X)=>{if(!u)return;const c=document.cookie.split(";");let f=0,g=c.find(o=>o.includes(M+f));for(;g;){const[o]=g.split("=");document.cookie=`${o}=; max-age=-1; path=/`,f++,g=c.find(d=>d.includes(M+f))}},ke=async function({fetch:u}){const c=await re(u),f=ve();f!=null&&f.accessToken&&(ae(f),ye());const g=oe();if(!me(c,g))throw ne(302,ce());le(c,u),pe(c,u);const o=await he(c,u),d={current:c.version,recommended:c.notifyOnNewVersion?await de(u):void 0};return{user:g,uiVersionInfo:d,settings:c,cluster:o}},je=Object.freeze(Object.defineProperty({__proto__:null,load:ke},Symbol.toStringTag,{value:"Module"}));export{je as _,ke as l}; diff --git a/ui/assets/cloud/_app/immutable/chunks/_page.241b6c5b.js b/ui/assets/cloud/_app/immutable/chunks/_page.045d2d42.js similarity index 75% rename from ui/assets/cloud/_app/immutable/chunks/_page.241b6c5b.js rename to ui/assets/cloud/_app/immutable/chunks/_page.045d2d42.js index 6c63514906..9a8e8249d7 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.241b6c5b.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.045d2d42.js @@ -1 +1 @@ -import{r as t}from"./index.b1f5b21f.js";import{d as e}from"./route-for.70dfbf18.js";const r=async function(){const o=e("feed");throw t(302,o)},c=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{c as _,r as l}; +import{r as t}from"./index.b1f5b21f.js";import{d as e}from"./route-for.087ea268.js";const r=async function(){const o=e("feed");throw t(302,o)},c=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{c as _,r as l}; diff --git a/ui/assets/cloud/_app/immutable/chunks/_page.10185099.js b/ui/assets/cloud/_app/immutable/chunks/_page.2b0c4c74.js similarity index 89% rename from ui/assets/cloud/_app/immutable/chunks/_page.10185099.js rename to ui/assets/cloud/_app/immutable/chunks/_page.2b0c4c74.js index 248884be9f..1044ab8ee0 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.10185099.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.2b0c4c74.js @@ -1 +1 @@ -import{a as l}from"./namespaces-service.7d25bee8.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.1ee08ff7.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/cloud/_app/immutable/chunks/_page.3552ec44.js b/ui/assets/cloud/_app/immutable/chunks/_page.2b64f7b2.js similarity index 80% rename from ui/assets/cloud/_app/immutable/chunks/_page.3552ec44.js rename to ui/assets/cloud/_app/immutable/chunks/_page.2b64f7b2.js index db2bd2a2e9..954d22ebc1 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.3552ec44.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.2b64f7b2.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.70dfbf18.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.087ea268.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/cloud/_app/immutable/chunks/_page.6428bd37.js b/ui/assets/cloud/_app/immutable/chunks/_page.68a74ae0.js similarity index 83% rename from ui/assets/cloud/_app/immutable/chunks/_page.6428bd37.js rename to ui/assets/cloud/_app/immutable/chunks/_page.68a74ae0.js index 731ed59294..ad6b91c207 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.6428bd37.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.68a74ae0.js @@ -1 +1 @@ -import{r as n,e as s}from"./index.b1f5b21f.js";import{h as c}from"./workflow-service.24d3174e.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{h as c}from"./workflow-service.b203d78a.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/cloud/_app/immutable/chunks/_page.519ce37d.js b/ui/assets/cloud/_app/immutable/chunks/_page.75c2ac3e.js similarity index 80% rename from ui/assets/cloud/_app/immutable/chunks/_page.519ce37d.js rename to ui/assets/cloud/_app/immutable/chunks/_page.75c2ac3e.js index db2bd2a2e9..954d22ebc1 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.519ce37d.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.75c2ac3e.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.70dfbf18.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.087ea268.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/cloud/_app/immutable/chunks/_page.fdb95c2e.js b/ui/assets/cloud/_app/immutable/chunks/_page.a33400eb.js similarity index 80% rename from ui/assets/cloud/_app/immutable/chunks/_page.fdb95c2e.js rename to ui/assets/cloud/_app/immutable/chunks/_page.a33400eb.js index db2bd2a2e9..954d22ebc1 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.fdb95c2e.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.a33400eb.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.70dfbf18.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.087ea268.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/cloud/_app/immutable/chunks/_page.2933bd11.js b/ui/assets/cloud/_app/immutable/chunks/_page.be03befd.js similarity index 74% rename from ui/assets/cloud/_app/immutable/chunks/_page.2933bd11.js rename to ui/assets/cloud/_app/immutable/chunks/_page.be03befd.js index 69eb074b0e..1da390c77a 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.2933bd11.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.be03befd.js @@ -1 +1 @@ -import{r}from"./index.b1f5b21f.js";import{d as t}from"./route-for.70dfbf18.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{d as t}from"./route-for.087ea268.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/cloud/_app/immutable/chunks/_page.f3fdc977.js b/ui/assets/cloud/_app/immutable/chunks/_page.de41eaf1.js similarity index 84% rename from ui/assets/cloud/_app/immutable/chunks/_page.f3fdc977.js rename to ui/assets/cloud/_app/immutable/chunks/_page.de41eaf1.js index 8d7ab271ca..c5aff47e8c 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.f3fdc977.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.de41eaf1.js @@ -1 +1 @@ -import{e as h}from"./workflow-service.24d3174e.js";import{a as m}from"./namespaces-service.7d25bee8.js";const b=async function({params:o,url:l}){var r,s;const{searchParams:e}=l;e.has("time-range")||e.set("time-range","1 day");const c=e.get("workflow-id"),f=e.get("workflow-type"),w=e.get("time-range"),g=e.get("status"),d={workflowId:c,workflowType:f,closeTime:w,executionStatus:g},t=await m(o.namespace),a=((r=t==null?void 0:t.config)==null?void 0:r.historyArchivalState)==="Enabled",i=((s=t==null?void 0:t.config)==null?void 0:s.visibilityArchivalState)==="Enabled",n=a&&i?await h(o.namespace,d,fetch):null;return{workflows:n?n.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:i}},p=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));export{p as _,b as l}; +import{e as h}from"./workflow-service.b203d78a.js";import{a as m}from"./namespaces-service.1ee08ff7.js";const b=async function({params:o,url:l}){var r,s;const{searchParams:e}=l;e.has("time-range")||e.set("time-range","1 day");const c=e.get("workflow-id"),f=e.get("workflow-type"),w=e.get("time-range"),g=e.get("status"),d={workflowId:c,workflowType:f,closeTime:w,executionStatus:g},t=await m(o.namespace),a=((r=t==null?void 0:t.config)==null?void 0:r.historyArchivalState)==="Enabled",i=((s=t==null?void 0:t.config)==null?void 0:s.visibilityArchivalState)==="Enabled",n=a&&i?await h(o.namespace,d,fetch):null;return{workflows:n?n.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:i}},p=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));export{p as _,b as l}; diff --git a/ui/assets/cloud/_app/immutable/chunks/_page.5f52b423.js b/ui/assets/cloud/_app/immutable/chunks/_page.edd987e4.js similarity index 85% rename from ui/assets/cloud/_app/immutable/chunks/_page.5f52b423.js rename to ui/assets/cloud/_app/immutable/chunks/_page.edd987e4.js index 6a728cdd92..448f9e0350 100644 --- a/ui/assets/cloud/_app/immutable/chunks/_page.5f52b423.js +++ b/ui/assets/cloud/_app/immutable/chunks/_page.edd987e4.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{r as n}from"./route-for.70dfbf18.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.087ea268.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/cloud/_app/immutable/chunks/atob.a55cedf9.js b/ui/assets/cloud/_app/immutable/chunks/atob.c08bef0d.js similarity index 72% rename from ui/assets/cloud/_app/immutable/chunks/atob.a55cedf9.js rename to ui/assets/cloud/_app/immutable/chunks/atob.c08bef0d.js index 5eefb7430e..7a88849cfa 100644 --- a/ui/assets/cloud/_app/immutable/chunks/atob.a55cedf9.js +++ b/ui/assets/cloud/_app/immutable/chunks/atob.c08bef0d.js @@ -1 +1 @@ -import{f as n}from"./route-for.70dfbf18.js";function t(o){return decodeURIComponent(window.atob(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,e=n)=>e?t(o):o;export{i as a}; +import{f as n}from"./route-for.087ea268.js";function t(o){return decodeURIComponent(window.atob(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,e=n)=>e?t(o):o;export{i as a}; diff --git a/ui/assets/cloud/_app/immutable/chunks/error.34f8ab49.js b/ui/assets/cloud/_app/immutable/chunks/error.51af1584.js similarity index 95% rename from ui/assets/cloud/_app/immutable/chunks/error.34f8ab49.js rename to ui/assets/cloud/_app/immutable/chunks/error.51af1584.js index 69d72958b2..a0551cecdd 100644 --- a/ui/assets/cloud/_app/immutable/chunks/error.34f8ab49.js +++ b/ui/assets/cloud/_app/immutable/chunks/error.51af1584.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 D,p as x,q as T,x as $,k as p,d as N,D as U,u as _,f as P,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.a36c9cb0.js";import{b as Q}from"./navigation.214139c0.js";import{p as R}from"./stores.0bc9ce95.js";import{i as V}from"./is-network-error.cb50de70.js";import{L as M}from"./link.855bf830.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){P(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){P(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,b,c,i,f,L,m,j,v;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"),b=g(a[2]),c=y(),i=S("p"),D(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 D,p as x,q as T,x as $,k as p,d as N,D as U,u as _,f as P,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.a36c9cb0.js";import{b as Q}from"./navigation.58fc5f1f.js";import{p as R}from"./stores.a2e3306d.js";import{i as V}from"./is-network-error.cb50de70.js";import{L as M}from"./link.855bf830.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){P(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){P(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,b,c,i,f,L,m,j,v;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"),b=g(a[2]),c=y(),i=S("p"),D(f.$$.fragment),L=g(` or `),D(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=N(r),n=x(r,"P",{class:!0});var w=T(n);d=$(w,"Uh oh. There's an error."),w.forEach(p),E=N(r),u=x(r,"P",{class:!0});var q=T(u);b=$(q,a[2]),q.forEach(p),c=N(r),i=x(r,"P",{class:!0});var C=T(i);U(f.$$.fragment,C),L=$(C,` or diff --git a/ui/assets/cloud/_app/immutable/chunks/event-empty-row.0766ff91.js b/ui/assets/cloud/_app/immutable/chunks/event-empty-row.f23d95dc.js similarity index 99% rename from ui/assets/cloud/_app/immutable/chunks/event-empty-row.0766ff91.js rename to ui/assets/cloud/_app/immutable/chunks/event-empty-row.f23d95dc.js index 5c8944c640..50854b6a1a 100644 --- a/ui/assets/cloud/_app/immutable/chunks/event-empty-row.0766ff91.js +++ b/ui/assets/cloud/_app/immutable/chunks/event-empty-row.f23d95dc.js @@ -1 +1 @@ -import{S as _e,b as me,a as he,m as b,p as k,q as $,k as m,u as g,f as I,z,g as w,h as Q,j as p,K as ce,N as we,O as De,w as B,c as C,x as M,d as A,R as j,L as h,y as U,n as Te,C as G,D as S,E as O,F as N,G as jt,X as nt,T as $e,H as Lt,I as Bt,J as Mt,P as el,e as le,M as Ut,a1 as Ee,a2 as Ve,al as tl,V as qt,ab as ll,U as nl,a6 as rl,A as sl,Y as al,Z as il,$ as ol,af as fl,_ as Oe}from"./index.a36c9cb0.js";import{a as cl}from"./icon-button.bcd06a36.js";import{I as ve}from"./icon.33859671.js";import{c as Ne,e as Me,b as ul}from"./event-view.f557cd63.js";import{t as Ht,s as dl}from"./time-format.dc246788.js";import{e as Ue,a as qe,b as He,i as Fe}from"./index.f8c667a1.js";import{f as rt}from"./format-date.7c274b02.js";import{n as We}from"./format-time.c8c4770b.js";import{s as Wt,a as zt,b as Qt,c as Re,g as ze,d as _l,e as st,f as Jt,h as ml,i as at}from"./format-event-attributes.7f34c129.js";import{p as Be}from"./stores.0bc9ce95.js";import{f as ne}from"./format-camel-case.960a78f9.js";import{n as je,g as ke}from"./route-for.70dfbf18.js";import{C as Qe}from"./code-block.2cc5a38d.js";import{L as Pe}from"./link.855bf830.js";import{C as ye}from"./tooltip.bd2ec5a4.js";import{B as Le}from"./is-event-type.763b5d4b.js";import{T as Kt,a as hl}from"./table-header-row.eb620974.js";import{D as Xt}from"./dropdown-menu.c2d1df3e.js";import{c as vl,a as pl}from"./get-event-categorization.d6ff7ec7.js";import{u as Yt}from"./pagination.69c5aeb5.js";import{e as it}from"./filters.c5bf71c7.js";import{E as gl}from"./empty-state.9fb63265.js";import{L as bl}from"./loading.bcb9b7b8.js";function kl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","w-full select-all text-gray-700 svelte-n4ehvt"),j(i,"badge",!Re(s[0])),g(o,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function $l(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"",$$slots:{default:[Tl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm "),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function wl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Pl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&262&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function El(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":" xl:flex-row",$$slots:{default:[Cl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Il(s){let e,l,t=ne(s[0])+"",n,r,o,i;return o=new Qe({props:{content:ze(s[1]),inline:s[3]}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),G(o.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var a=$(e);l=k(a,"P",{class:!0});var f=$(l);n=M(f,t),f.forEach(m),r=A(a),S(o.$$.fragment,a),a.forEach(m),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){I(c,e,a),h(e,l),h(l,n),h(e,r),O(o,e,null),i=!0},p(c,a){(!i||a&1)&&t!==(t=ne(c[0])+"")&&U(n,t);const f={};a&2&&(f.content=ze(c[1])),a&8&&(f.inline=c[3]),o.$set(f)},i(c){i||(p(o.$$.fragment,c),i=!0)},o(c){w(o.$$.fragment,c),i=!1},d(c){c&&m(e),N(o)}}}function Dl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Tl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[Dl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Pl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Vl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Cl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[yl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Al(s){let e,l,t,n,r,o,i,c;const a=[Il,El,wl,$l,kl],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+d[6].class+" svelte-n4ehvt"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function Gl(s,e,l){let t;ce(s,Be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:i=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=we(we({},e),De(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,o=f.attributes),"inline"in f&&l(3,i=f.inline)},e=De(e),[n,r,o,i,c,a,e]}class Sl extends _e{constructor(e){super(),me(this,e,Gl,Al,he,{key:0,value:1,attributes:2,inline:3})}}function Ol(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(i,"class","select-all px-2 svelte-cl0oev"),j(i,"badge",!Re(s[0])),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function Nl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Fl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1030&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Rl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function jl(s){let e,l,t,n=ne(s[0])+"",r,o,i,c,a,f;i=new Qe({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":""),inline:s[3]}});let u=s[5]&&!s[3]&&ot(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=B(n),o=C(),G(i.$$.fragment),a=C(),u&&u.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"P",{class:!0});var E=$(t);r=M(E,n),E.forEach(m),o=A(v),S(i.$$.fragment,v),v.forEach(m),a=A(_),u&&u.l(_),_.forEach(m),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-cl0oev"),j(e,"code-with-stack-trace",s[5])},m(d,_){I(d,e,_),h(e,l),h(l,t),h(t,r),h(l,o),O(i,l,null),h(e,a),u&&u.m(e,null),f=!0},p(d,_){(!f||_&1)&&n!==(n=ne(d[0])+"")&&U(r,n);const v={};_&16&&(v.content=d[4]),_&32&&(v.class="h-auto "+(d[5]?"mb-2":"")),_&8&&(v.inline=d[3]),i.$set(v),(!f||_&32&&c!==(c="flex flex-col "+(d[5]?"lg:w-1/2":"")))&&g(l,"class",c),d[5]&&!d[3]?u?(u.p(d,_),_&40&&p(u,1)):(u=ot(d),u.c(),p(u,1),u.m(e,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!f||_&32)&&j(e,"code-with-stack-trace",d[5])},i(d){f||(p(i.$$.fragment,d),p(u),f=!0)},o(d){w(i.$$.fragment,d),w(u),f=!1},d(d){d&&m(e),N(i),u&&u.d()}}}function Ll(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Bl(s){let e,l;return e=new Pe({props:{newTab:!0,href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ml(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Ul(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({namespace:t[7],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ql(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Hl(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ot(s){let e,l,t,n,r,o;return r=new Qe({props:{content:s[5],class:"mb-2 h-full lg:pr-2",language:"text"}}),{c(){e=b("div"),l=b("p"),t=B("Stack trace"),n=C(),G(r.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=$(e);l=k(c,"P",{class:!0});var a=$(l);t=M(a,"Stack trace"),a.forEach(m),n=A(c),S(r.$$.fragment,c),c.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(i,c){I(i,e,c),h(e,l),h(l,t),h(e,n),O(r,e,null),o=!0},p(i,c){const a={};c&32&&(a.content=i[5]),r.$set(a)},i(i){o||(p(r.$$.fragment,i),o=!0)},o(i){w(r.$$.fragment,i),o=!1},d(i){i&&m(e),N(r)}}}function Wl(s){let e,l,t,n,r,o,i,c;const a=[jl,Rl,Fl,Nl,Ol],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="row "+s[8].class+" svelte-cl0oev")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&256&&i!==(i="row "+d[8].class+" svelte-cl0oev"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function zl(s,e,l){let t,n,r;ce(s,Be,d=>l(9,r=d));let{key:o}=e,{value:i}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=d=>{l(8,e=we(we({},e),De(d))),"key"in d&&l(0,o=d.key),"value"in d&&l(1,i=d.value),"attributes"in d&&l(2,c=d.attributes),"inline"in d&&l(3,a=d.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ze(i)),s.$$.dirty&16&&l(5,n=_l(t))},e=De(e),[o,i,c,a,t,n,f,u,e]}class Zt extends _e{constructor(e){super(),me(this,e,zl,Wl,he,{key:0,value:1,attributes:2,inline:3})}}function ft(s){let e,l,t;return l=new ve({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),G(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=$(e);S(l.$$.fragment,r),r.forEach(m),this.h()},h(){j(e,"animate-spin",s[1])},m(n,r){I(n,e,r),O(l,e,null),t=!0},p(n,r){const o={};r&10&&(o.name=n[1]?"spinner":n[3]),l.$set(o),(!t||r&2)&&j(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&m(e),N(l)}}}function Ql(s){let e,l,t,n,r,o,i=s[3]&&ft(s);const c=s[7].default,a=jt(c,s,s[6],null);return{c(){e=b("button"),i&&i.c(),l=C(),a&&a.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=$(e);i&&i.l(u),l=A(u),a&&a.l(u),u.forEach(m),this.h()},h(){g(e,"class",t=nt(`pill ${s[5]} ${s[4]}`)+" svelte-czm4v2"),e.disabled=s[0],j(e,"active",s[2])},m(f,u){I(f,e,u),i&&i.m(e,null),h(e,l),a&&a.m(e,null),n=!0,r||(o=$e(e,"click",s[8]),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=ft(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),w(i,1,1,()=>{i=null}),Q()),a&&a.p&&(!n||u&64)&&Lt(a,c,f,f[6],n?Mt(c,f[6],u,null):Bt(f[6]),null),(!n||u&48&&t!==(t=nt(`pill ${f[5]} ${f[4]}`)+" svelte-czm4v2"))&&g(e,"class",t),(!n||u&1)&&(e.disabled=f[0]),(!n||u&52)&&j(e,"active",f[2])},i(f){n||(p(i),p(a,f),n=!0)},o(f){w(i),w(a,f),n=!1},d(f){f&&m(e),i&&i.d(),a&&a.d(f),r=!1,o()}}}function Jl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:o=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function u(d){el.call(this,s,d)}return s.$$set=d=>{l(9,e=we(we({},e),De(d))),"disabled"in d&&l(0,r=d.disabled),"loading"in d&&l(1,o=d.loading),"active"in d&&l(2,i=d.active),"icon"in d&&l(3,c=d.icon),"classes"in d&&l(4,a=d.classes),"color"in d&&l(5,f=d.color),"$$scope"in d&&l(6,n=d.$$scope)},e=De(e),[r,o,i,c,a,f,n,t,u]}class Kl extends _e{constructor(e){super(),me(this,e,Jl,Ql,he,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function ct(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 ut(s){let e,l,t=[],n=new Map,r,o=Object.entries(s[0]);const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){w(r),n=!1},d(o){o&&m(l),r&&r.d(o),o&&m(t)}}}function Yl(s){let e,l,t=s[2]>1&&ut(s);return{c(){t&&t.c(),e=le()},l(n){t&&t.l(n),e=le()},m(n,r){t&&t.m(n,r),I(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),w(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){w(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function Zl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const o=Ut(),i=c=>o("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,a)=>(a.length&&(c+=1),c),0))},[n,r,t,o,i]}class xt extends _e{constructor(e){super(),me(this,e,Zl,Yl,he,{attributeGrouping:0,activePill:1})}}function mt(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ht(s,e){let l,t,n,r,o,i=e[4]+"",c,a,f,u,d=(Le(e[5])?"LocalActivity":e[5].eventType)+"",_,v,E,T,W,H;function Y(){return e[3](e[4])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=C(),r=b("td"),o=b("p"),c=B(i),a=C(),f=b("td"),u=b("p"),_=B(d),v=C(),E=b("td"),T=C(),this.h()},l(D){l=k(D,"TR",{class:!0});var P=$(l);t=k(P,"TD",{class:!0}),$(t).forEach(m),n=A(P),r=k(P,"TD",{class:!0});var Z=$(r);o=k(Z,"P",{class:!0});var J=$(o);c=M(J,i),J.forEach(m),Z.forEach(m),a=A(P),f=k(P,"TD",{});var K=$(f);u=k(K,"P",{class:!0});var x=$(u);_=M(x,d),x.forEach(m),K.forEach(m),v=A(P),E=k(P,"TD",{}),$(E).forEach(m),T=A(P),P.forEach(m),this.h()},h(){g(t,"class","w-1/12"),g(o,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(u,"class","event-type truncate text-sm md:text-base svelte-1joe2mb"),g(l,"class","row svelte-1joe2mb"),j(l,"active",e[4]===e[1]),j(l,"failure",Ue(e[5])),j(l,"canceled",qe(e[5])),j(l,"terminated",He(e[5])),this.first=l},m(D,P){I(D,l,P),h(l,t),h(l,n),h(l,r),h(r,o),h(o,c),h(l,a),h(l,f),h(f,u),h(u,_),h(l,v),h(l,E),h(l,T),W||(H=$e(l,"click",qt(ll(Y))),W=!0)},p(D,P){e=D,P&1&&i!==(i=e[4]+"")&&U(c,i),P&1&&d!==(d=(Le(e[5])?"LocalActivity":e[5].eventType)+"")&&U(_,d),P&3&&j(l,"active",e[4]===e[1]),P&1&&j(l,"failure",Ue(e[5])),P&1&&j(l,"canceled",qe(e[5])),P&1&&j(l,"terminated",He(e[5]))},d(D){D&&m(l),W=!1,H()}}}function xl(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=o=>o[4];for(let o=0;or(i);return s.$$set=i=>{"eventGroup"in i&&l(0,t=i.eventGroup),"selectedId"in i&&l(1,n=i.selectedId),"onGroupClick"in i&&l(2,r=i.onGroupClick)},[t,n,r,o]}class ln extends _e{constructor(e){super(),me(this,e,tn,en,he,{eventGroup:0,selectedId:1,onGroupClick:2})}}function vt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function pt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,o;l=new xt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=s[6];const c=a=>a[10];for(let a=0;ad[10];for(let d=0;d{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function kt(s){let e,l;return e=new Zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function $t(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=le(),o&&o.c(),n=le(),this.h()},l(c){l=le(),o&&o.l(c),n=le(),this.h()},h(){this.first=l},m(c,a){I(c,l,a),o&&o.m(c,a),I(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?o?(o.p(e,a),a&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),w(o,1,1,()=>{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function sn(s){let e,l,t,n,r;const o=[rn,nn],i=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&Fe(a[1]))),e?0:1}return l=c(s,-1),t=i[l]=o[l](s),{c(){t.c(),n=le()},l(a){t.l(a),n=le()},m(a,f){i[l].m(a,f),I(a,n,f),r=!0},p(a,[f]){let u=l;l=c(a,f),l===u?i[l].p(a,f):(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(a,f):(t=i[l]=o[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){w(t),r=!1},d(a){i[l].d(a),a&&m(n)}}}function an(s,e,l){let t,n,r,o,{event:i}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},d=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[f,i,a,t,n,r,o,u,d,c]}class on extends _e{constructor(e){super(),me(this,e,an,sn,he,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){var t;let e=rt((t=s[0])==null?void 0:t.eventTime,s[12])+"",l;return{c(){l=B(e)},l(n){l=M(n,e)},m(n,r){I(n,l,r)},p(n,r){var o;r&4097&&e!==(e=rt((o=n[0])==null?void 0:o.eventTime,n[12])+"")&&U(l,e)},d(n){n&&m(l)}}}function cn(s){let e=We({start:s[1].eventTime,end:s[7].eventTime})+"",l,t,n;return{c(){l=B(e),t=C(),n=B(s[9])},l(r){l=M(r,e),t=A(r),n=M(r,s[9])},m(r,o){I(r,l,o),I(r,t,o),I(r,n,o)},p(r,o){o&130&&e!==(e=We({start:r[1].eventTime,end:r[7].eventTime})+"")&&U(l,e),o&512&&U(n,r[9])},d(r){r&&m(l),r&&m(t),r&&m(n)}}}function wt(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Et(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function It(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Dt(s){let e,l;const t=[at(s[7]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let n={};for(let r=0;ral(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),G(t.$$.fragment),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{class:!0,colspan:!0});var u=$(l);S(t.$$.fragment,u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","expanded-cell svelte-aaifo7"),g(l,"colspan","6"),g(e,"class","svelte-aaifo7"),j(e,"typedError",s[4])},m(a,f){I(a,e,f),h(e,l),O(t,l,null),o=!0},p(a,f){const u={};f&1&&(u.event=a[0]),f&128&&(u.currentEvent=a[7]),f&4&&(u.compact=a[2]),!n&&f&64&&(n=!0,u.selectedId=a[6],il(()=>n=!1)),t.$set(u),(!o||f&16)&&j(e,"typedError",a[4])},i(a){o||(p(t.$$.fragment,a),a&&(r||ol(()=>{r=fl(e,cl,{}),r.start()})),o=!0)},o(a){w(t.$$.fragment,a),o=!1},d(a){a&&m(e),N(t)}}}function un(s){let e,l,t,n,r,o,i=s[0].id+"",c,a,f,u,d,_,v,E,T,W,H,Y,D=(Le(s[0])?"LocalActivity":s[0].name)+"",P,Z,J,K,x,fe,pe,F,oe,q,R,V,X,ue,ie,Ie,Ce;function ge(y,L){return y[11]?cn:fn}let Ge=ge(s),de=Ge(s),re=s[2]&&s[14]&&wt(),se=s[2]&&s[15]&&Et(),ae=s[2]&&s[16]&&It(),ee=!s[8]&&Dt(s);F=new ve({props:{class:"inline",name:s[8]?"chevron-up":"chevron-down"}});let te=s[8]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=C(),n=b("td"),r=b("a"),o=b("p"),c=B(i),f=C(),u=b("td"),d=b("p"),de.c(),_=C(),v=b("td"),E=b("div"),re&&re.c(),T=C(),se&&se.c(),W=C(),ae&&ae.c(),H=C(),Y=b("p"),P=B(D),Z=C(),J=b("td"),K=b("div"),x=b("div"),ee&&ee.c(),fe=C(),pe=b("div"),G(F.$$.fragment),oe=C(),q=b("td"),X=C(),te&&te.c(),ue=le(),this.h()},l(y){e=k(y,"TR",{class:!0,id:!0,"aria-expanded":!0,"data-testid":!0});var L=$(e);l=k(L,"TD",{}),$(l).forEach(m),t=A(L),n=k(L,"TD",{class:!0});var Ae=$(n);r=k(Ae,"A",{class:!0,href:!0});var Je=$(r);o=k(Je,"P",{class:!0});var Ke=$(o);c=M(Ke,i),Ke.forEach(m),Je.forEach(m),Ae.forEach(m),f=A(L),u=k(L,"TD",{class:!0});var Xe=$(u);d=k(Xe,"P",{class:!0});var Ye=$(d);de.l(Ye),Ye.forEach(m),Xe.forEach(m),_=A(L),v=k(L,"TD",{class:!0});var Ze=$(v);E=k(Ze,"DIV",{class:!0});var be=$(E);re&&re.l(be),T=A(be),se&&se.l(be),W=A(be),ae&&ae.l(be),H=A(be),Y=k(be,"P",{class:!0});var xe=$(Y);P=M(xe,D),xe.forEach(m),be.forEach(m),Ze.forEach(m),Z=A(L),J=k(L,"TD",{class:!0});var et=$(J);K=k(et,"DIV",{class:!0});var Se=$(K);x=k(Se,"DIV",{class:!0});var tt=$(x);ee&&ee.l(tt),tt.forEach(m),fe=A(Se),pe=k(Se,"DIV",{});var lt=$(pe);S(F.$$.fragment,lt),lt.forEach(m),Se.forEach(m),et.forEach(m),oe=A(L),q=k(L,"TD",{}),$(q).forEach(m),L.forEach(m),X=A(y),te&&te.l(y),ue=le(),this.h()},h(){g(o,"class","truncate"),g(r,"class","text-sm text-gray-500 md:text-base"),g(r,"href",a="#"+s[0].id),g(n,"class","w-24 text-left"),g(d,"class","break-word truncate text-sm md:whitespace-normal md:text-base"),g(u,"class","text-left"),g(Y,"class","event-name truncate text-sm font-semibold md:text-base svelte-aaifo7"),g(E,"class","flex"),g(v,"class","text-right text-sm font-normal xl:text-left"),g(x,"class","grow truncate"),g(K,"class","flex w-full items-center justify-between"),g(J,"class","overflow-hidden"),g(e,"class","row svelte-aaifo7"),g(e,"id",R=s[0].id),g(e,"aria-expanded",V=s[8]||s[3]),g(e,"data-testid","event-summary-row"),j(e,"expanded",s[8]&&!s[3]),j(e,"active",s[5]),j(e,"failure",s[14]),j(e,"canceled",s[15]),j(e,"terminated",s[16]),j(e,"typedError",s[4])},m(y,L){I(y,e,L),h(e,l),h(e,t),h(e,n),h(n,r),h(r,o),h(o,c),h(e,f),h(e,u),h(u,d),de.m(d,null),h(e,_),h(e,v),h(v,E),re&&re.m(E,null),h(E,T),se&&se.m(E,null),h(E,W),ae&&ae.m(E,null),h(E,H),h(E,Y),h(Y,P),h(e,Z),h(e,J),h(J,K),h(K,x),ee&&ee.m(x,null),h(K,fe),h(K,pe),O(F,pe,null),h(e,oe),h(e,q),I(y,X,L),te&&te.m(y,L),I(y,ue,L),ie=!0,Ie||(Ce=$e(e,"click",qt(s[13])),Ie=!0)},p(y,[L]){(!ie||L&1)&&i!==(i=y[0].id+"")&&U(c,i),(!ie||L&1&&a!==(a="#"+y[0].id))&&g(r,"href",a),Ge===(Ge=ge(y))&&de?de.p(y,L):(de.d(1),de=Ge(y),de&&(de.c(),de.m(d,null))),y[2]&&y[14]?re?L&4&&p(re,1):(re=wt(),re.c(),p(re,1),re.m(E,T)):re&&(z(),w(re,1,1,()=>{re=null}),Q()),y[2]&&y[15]?se?L&4&&p(se,1):(se=Et(),se.c(),p(se,1),se.m(E,W)):se&&(z(),w(se,1,1,()=>{se=null}),Q()),y[2]&&y[16]?ae?L&4&&p(ae,1):(ae=It(),ae.c(),p(ae,1),ae.m(E,H)):ae&&(z(),w(ae,1,1,()=>{ae=null}),Q()),(!ie||L&1)&&D!==(D=(Le(y[0])?"LocalActivity":y[0].name)+"")&&U(P,D),y[8]?ee&&(z(),w(ee,1,1,()=>{ee=null}),Q()):ee?(ee.p(y,L),L&256&&p(ee,1)):(ee=Dt(y),ee.c(),p(ee,1),ee.m(x,null));const Ae={};L&256&&(Ae.name=y[8]?"chevron-up":"chevron-down"),F.$set(Ae),(!ie||L&1&&R!==(R=y[0].id))&&g(e,"id",R),(!ie||L&264&&V!==(V=y[8]||y[3]))&&g(e,"aria-expanded",V),(!ie||L&264)&&j(e,"expanded",y[8]&&!y[3]),(!ie||L&32)&&j(e,"active",y[5]),(!ie||L&16)&&j(e,"typedError",y[4]),y[8]?te?(te.p(y,L),L&256&&p(te,1)):(te=Tt(y),te.c(),p(te,1),te.m(ue.parentNode,ue)):te&&(z(),w(te,1,1,()=>{te=null}),Q())},i(y){ie||(p(re),p(se),p(ae),p(ee),p(F.$$.fragment,y),p(te),ie=!0)},o(y){w(re),w(se),w(ae),w(ee),w(F.$$.fragment,y),w(te),ie=!1},d(y){y&&m(e),de.d(),re&&re.d(),se&&se.d(),ae&&ae.d(),ee&&ee.d(),N(F),y&&m(X),te&&te.d(y),y&&m(ue),Ie=!1,Ce()}}}function dn(s,e,l){let t,n,r,o,i,c,a,f,u,d;ce(s,Ne,F=>l(22,f=F)),ce(s,Me,F=>l(23,u=F)),ce(s,Ht,F=>l(12,d=F));var _;let{event:v}=e,{visibleItems:E}=e,{initialItem:T}=e,{compact:W=!1}=e,{expandAll:H=!1}=e,{typedError:Y=!1}=e,{active:D=!1}=e,{onRowClick:P=Te}=e,Z=Fe(v)?Array.from(v.events.keys()).pop():v.id;const J=()=>{l(8,t=!t),P()},K=Ue(v),x=qe(v),fe=He(v);function pe(F){Z=F,l(6,Z)}return s.$$set=F=>{"event"in F&&l(0,v=F.event),"visibleItems"in F&&l(17,E=F.visibleItems),"initialItem"in F&&l(1,T=F.initialItem),"compact"in F&&l(2,W=F.compact),"expandAll"in F&&l(3,H=F.expandAll),"typedError"in F&&l(4,Y=F.typedError),"active"in F&&l(5,D=F.active),"onRowClick"in F&&l(18,P=F.onRowClick)},s.$$.update=()=>{if(s.$$.dirty&40&&l(8,t=H||D),s.$$.dirty&65&&l(7,n=Fe(v)?v.events.get(Z):v),s.$$.dirty&8388608&&l(20,r=u==="descending"),s.$$.dirty&4194304&&l(21,o=f==="true"),s.$$.dirty&2097155&&l(11,i=o&&T&&v.id!==T.id),s.$$.dirty&5&&l(10,c=Jt(v,{compact:W})),s.$$.dirty&1704065){const F=E.indexOf(v),oe=E[F-1];if(oe){const q=We({start:Fe(oe)?l(19,_=oe==null?void 0:oe.initialEvent)===null||_===void 0?void 0:_.eventTime:oe==null?void 0:oe.eventTime,end:n==null?void 0:n.eventTime});l(9,a=q?`(${r?"-":"+"}${q})`:"")}}},l(9,a=""),[v,T,W,H,Y,D,Z,n,t,a,c,i,d,J,K,x,fe,E,P,_,r,o,f,u,pe]}class lr extends _e{constructor(e){super(),me(this,e,dn,un,he,{event:0,visibleItems:17,initialItem:1,compact:2,expandAll:3,typedError:4,active:5,onRowClick:18})}}function Vt(s,e,l){const t=s.slice();return t[1]=e[l].label,t[10]=e[l].option,t}function Pt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yt(s,e){let l,t,n,r,o=e[1]+"",i,c,a,f,u,d=e[0]===e[10]&&Pt();function _(){return e[8](e[10])}return{key:s,first:null,c(){l=b("div"),t=b("div"),d&&d.c(),n=C(),r=b("button"),i=B(o),c=C(),this.h()},l(v){l=k(v,"DIV",{class:!0});var E=$(l);t=k(E,"DIV",{class:!0});var T=$(t);d&&d.l(T),T.forEach(m),n=A(E),r=k(E,"BUTTON",{"data-testid":!0});var W=$(r);i=M(W,o),W.forEach(m),c=A(E),E.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-category-option"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[0]===e[10]),this.first=l},m(v,E){I(v,l,E),h(l,t),d&&d.m(t,null),h(l,n),h(l,r),h(r,i),h(l,c),a=!0,f||(u=$e(r,"click",_),f=!0)},p(v,E){e=v,e[0]===e[10]?d?E&1&&p(d,1):(d=Pt(),d.c(),p(d,1),d.m(t,null)):d&&(z(),w(d,1,1,()=>{d=null}),Q()),(!a||E&5)&&j(l,"active",e[0]===e[10])},i(v){a||(p(d),a=!0)},o(v){w(d),a=!1},d(v){v&&m(l),d&&d.d(),f=!1,u()}}}function _n(s){let e,l=[],t=new Map,n,r=s[2];const o=i=>i[10];for(let i=0;il(9,r=_)),ce(s,Be,_=>l(7,o=_));var i,c;let{compact:a=!1}=e,f=a?vl:pl;const u=_=>{l(0,n=_)},d=_=>u(_);return s.$$set=_=>{"compact"in _&&l(4,a=_.compact)},s.$$.update=()=>{s.$$.dirty&16&&l(1,t=a?"Event Type":"Workflow Events"),s.$$.dirty&224&&l(0,n=l(6,c=l(5,i=o.url)===null||i===void 0?void 0:i.searchParams)===null||c===void 0?void 0:c.get(Ct)),s.$$.dirty&129&&Yt({parameter:Ct,value:n,url:o.url}).then(_=>{var v;l(0,n=(v=_==null?void 0:_.toString())!==null&&v!==void 0?v:null),Oe(it,r=n,r)})},[n,t,f,u,a,i,c,o,d]}class pn extends _e{constructor(e){super(),me(this,e,vn,hn,he,{compact:4})}}const gn=({compact:s,timeFormat:e,sortOrder:l,showElapsed:t})=>{if(!((s||l==="descending")&&e==="UTC"&&t==="false"))return`${l}:${e}:${t}`};function At(s,e,l){const t=s.slice();return t[13]=e[l].label,t[14]=e[l].option,t}function Gt(s,e,l){const t=s.slice();return t[14]=e[l].option,t[13]=e[l].label,t}function St(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ot(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[1]===e[14]&&St();function d(){return e[10](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[1]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[1]===e[14]?u?v&2&&p(u,1):(u=St(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&18)&&j(l,"active",e[1]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Nt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ft(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[2]===e[14]&&Nt();function d(){return e[11](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{"data-testid":!0});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-date-filter-"+e[14]),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[2]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[2]===e[14]?u?v&4&&p(u,1):(u=Nt(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&36)&&j(l,"active",e[2]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Rt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function bn(s){let e,l=[],t=new Map,n,r,o,i,c,a,f=[],u=new Map,d,_,v,E,T,W,H,Y,D,P,Z,J,K,x,fe=s[4];const pe=R=>R[14];for(let R=0;RR[14];for(let R=0;R{q=null}),Q()),(!J||V&1)&&j(H,"active",R[0]==="true")},i(R){if(!J){for(let V=0;Vl(0,n=T)),ce(s,Me,T=>l(1,r=T)),ce(s,Ht,T=>l(2,o=T)),ce(s,Be,T=>l(12,i=T));let{compact:c}=e,a=[{label:"Sort 1-9",option:"ascending"},{label:"Sort 9-1",option:"descending"}],f=[{label:"Relative",option:"relative"},{label:"UTC",option:"UTC"},{label:"Local",option:"local"}];const u=T=>{Oe(Me,r=T,r),Yt({parameter:"sort",value:T,url:i.url})},d=T=>{dl(T)},_=()=>{n==="true"?Oe(Ne,n="false",n):Oe(Ne,n="true",n)},v=T=>u(T),E=T=>d(T);return s.$$set=T=>{"compact"in T&&l(9,c=T.compact)},s.$$.update=()=>{s.$$.dirty&519&&l(3,t=gn({compact:c,timeFormat:o,sortOrder:r,showElapsed:n}))},[n,r,o,t,a,f,u,d,_,c,v,E]}class En extends _e{constructor(e){super(),me(this,e,wn,$n,he,{compact:9})}}function In(s){let e;const l=s[4].default,t=jt(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)&&Lt(t,l,n,n[5],e?Mt(l,n[5],r,null):Bt(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){w(t,n),e=!1},d(n){t&&t.d(n)}}}function Dn(s){let e,l,t,n,r,o,i,c,a,f,u,d,_=s[2]?"Collapse all":"Expand All",v,E,T,W,H,Y;return n=new En({props:{compact:s[0]}}),i=new pn({props:{compact:s[0]}}),T=new ve({props:{name:s[2]?"chevron-up":"chevron-down"}}),{c(){e=b("th"),l=C(),t=b("th"),G(n.$$.fragment),r=C(),o=b("th"),G(i.$$.fragment),c=C(),a=b("th"),f=b("div"),u=b("button"),d=b("span"),v=B(_),E=C(),G(T.$$.fragment),this.h()},l(D){e=k(D,"TH",{class:!0}),$(e).forEach(m),l=A(D),t=k(D,"TH",{class:!0});var P=$(t);S(n.$$.fragment,P),P.forEach(m),r=A(D),o=k(D,"TH",{class:!0});var Z=$(o);S(i.$$.fragment,Z),Z.forEach(m),c=A(D),a=k(D,"TH",{class:!0});var J=$(a);f=k(J,"DIV",{class:!0});var K=$(f);u=k(K,"BUTTON",{class:!0});var x=$(u);d=k(x,"SPAN",{class:!0});var fe=$(d);v=M(fe,_),fe.forEach(m),E=A(x),S(T.$$.fragment,x),x.forEach(m),K.forEach(m),J.forEach(m),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(o,"class","w-44"),g(d,"class","hidden sm:block"),g(u,"class","relative flex w-28 items-center justify-end rounded sm:justify-between"),g(f,"class","flex w-full justify-end"),g(a,"class","w-auto xl:w-80")},m(D,P){I(D,e,P),I(D,l,P),I(D,t,P),O(n,t,null),I(D,r,P),I(D,o,P),O(i,o,null),I(D,c,P),I(D,a,P),h(a,f),h(f,u),h(u,d),h(d,v),h(u,E),O(T,u,null),W=!0,H||(Y=$e(u,"click",s[3]),H=!0)},p(D,P){const Z={};P&1&&(Z.compact=D[0]),n.$set(Z);const J={};P&1&&(J.compact=D[0]),i.$set(J),(!W||P&4)&&_!==(_=D[2]?"Collapse all":"Expand All")&&U(v,_);const K={};P&4&&(K.name=D[2]?"chevron-up":"chevron-down"),T.$set(K)},i(D){W||(p(n.$$.fragment,D),p(i.$$.fragment,D),p(T.$$.fragment,D),W=!0)},o(D){w(n.$$.fragment,D),w(i.$$.fragment,D),w(T.$$.fragment,D),W=!1},d(D){D&&m(e),D&&m(l),D&&m(t),N(n),D&&m(r),D&&m(o),N(i),D&&m(c),D&&m(a),N(T),H=!1,Y()}}}function Tn(s){let e,l;return e=new hl({props:{slot:"headers",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vn(s){let e,l;return e=new Kt({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Tn],default:[In]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Pn(s,e,l){let t;ce(s,ul,u=>l(6,t=u));let{$$slots:n={},$$scope:r}=e,{compact:o=!1}=e,{updating:i=!1}=e,c=t==="true";const a=Ut();function f(){l(2,c=!c),a("expandAll",{expanded:c?"true":"false"})}return s.$$set=u=>{"compact"in u&&l(0,o=u.compact),"updating"in u&&l(1,i=u.updating),"$$scope"in u&&l(5,r=u.$$scope)},[o,i,c,f,n,r]}class nr extends _e{constructor(e){super(),me(this,e,Pn,Vn,he,{compact:0,updating:1})}}function yn(s){let e,l;return e=new gl({props:{title:"No Events Match",content:"There are no events that match your filters or selected view. Adjust your filters or view to see your events."}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Cn(s){let e,l;return e=new bl({}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function An(s){let e,l,t,n,r;const o=[Cn,yn],i=[];function c(a,f){return a[0]?0:1}return t=c(s),n=i[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{colspan:!0});var u=$(l);n.l(u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(a,f){I(a,e,f),h(e,l),i[t].m(l,null),r=!0},p(a,[f]){let u=t;t=c(a),t!==u&&(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n||(n=i[t]=o[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){w(n),r=!1},d(a){a&&m(e),i[t].d()}}}function Gn(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class rr extends _e{constructor(e){super(),me(this,e,Gn,An,he,{loading:0})}}export{nr as E,rr as a,lr as b}; +import{S as _e,b as me,a as he,m as b,p as k,q as $,k as m,u as g,f as I,z,g as w,h as Q,j as p,K as ce,N as we,O as De,w as B,c as C,x as M,d as A,R as j,L as h,y as U,n as Te,C as G,D as S,E as O,F as N,G as jt,X as nt,T as $e,H as Lt,I as Bt,J as Mt,P as el,e as le,M as Ut,a1 as Ee,a2 as Ve,al as tl,V as qt,ab as ll,U as nl,a6 as rl,A as sl,Y as al,Z as il,$ as ol,af as fl,_ as Oe}from"./index.a36c9cb0.js";import{a as cl}from"./icon-button.bcd06a36.js";import{I as ve}from"./icon.33859671.js";import{c as Ne,e as Me,b as ul}from"./event-view.f557cd63.js";import{t as Ht,s as dl}from"./time-format.dc246788.js";import{e as Ue,a as qe,b as He,i as Fe}from"./index.f8c667a1.js";import{f as rt}from"./format-date.7c274b02.js";import{n as We}from"./format-time.c8c4770b.js";import{s as Wt,a as zt,b as Qt,c as Re,g as ze,d as _l,e as st,f as Jt,h as ml,i as at}from"./format-event-attributes.7f34c129.js";import{p as Be}from"./stores.a2e3306d.js";import{f as ne}from"./format-camel-case.960a78f9.js";import{n as je,g as ke}from"./route-for.087ea268.js";import{C as Qe}from"./code-block.2cc5a38d.js";import{L as Pe}from"./link.855bf830.js";import{C as ye}from"./tooltip.bd2ec5a4.js";import{B as Le}from"./is-event-type.763b5d4b.js";import{T as Kt,a as hl}from"./table-header-row.eb620974.js";import{D as Xt}from"./dropdown-menu.c2d1df3e.js";import{c as vl,a as pl}from"./get-event-categorization.d6ff7ec7.js";import{u as Yt}from"./pagination.c403d909.js";import{e as it}from"./filters.ab2fc3ed.js";import{E as gl}from"./empty-state.9fb63265.js";import{L as bl}from"./loading.bcb9b7b8.js";function kl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","w-full select-all text-gray-700 svelte-n4ehvt"),j(i,"badge",!Re(s[0])),g(o,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function $l(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"",$$slots:{default:[Tl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm "),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function wl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Pl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&262&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function El(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":" xl:flex-row",$$slots:{default:[Cl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Il(s){let e,l,t=ne(s[0])+"",n,r,o,i;return o=new Qe({props:{content:ze(s[1]),inline:s[3]}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),G(o.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var a=$(e);l=k(a,"P",{class:!0});var f=$(l);n=M(f,t),f.forEach(m),r=A(a),S(o.$$.fragment,a),a.forEach(m),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){I(c,e,a),h(e,l),h(l,n),h(e,r),O(o,e,null),i=!0},p(c,a){(!i||a&1)&&t!==(t=ne(c[0])+"")&&U(n,t);const f={};a&2&&(f.content=ze(c[1])),a&8&&(f.inline=c[3]),o.$set(f)},i(c){i||(p(o.$$.fragment,c),i=!0)},o(c){w(o.$$.fragment,c),i=!1},d(c){c&&m(e),N(o)}}}function Dl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Tl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[Dl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Pl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Vl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Cl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[yl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Al(s){let e,l,t,n,r,o,i,c;const a=[Il,El,wl,$l,kl],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+d[6].class+" svelte-n4ehvt"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function Gl(s,e,l){let t;ce(s,Be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:i=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=we(we({},e),De(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,o=f.attributes),"inline"in f&&l(3,i=f.inline)},e=De(e),[n,r,o,i,c,a,e]}class Sl extends _e{constructor(e){super(),me(this,e,Gl,Al,he,{key:0,value:1,attributes:2,inline:3})}}function Ol(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(i,"class","select-all px-2 svelte-cl0oev"),j(i,"badge",!Re(s[0])),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function Nl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Fl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1030&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Rl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function jl(s){let e,l,t,n=ne(s[0])+"",r,o,i,c,a,f;i=new Qe({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":""),inline:s[3]}});let u=s[5]&&!s[3]&&ot(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=B(n),o=C(),G(i.$$.fragment),a=C(),u&&u.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"P",{class:!0});var E=$(t);r=M(E,n),E.forEach(m),o=A(v),S(i.$$.fragment,v),v.forEach(m),a=A(_),u&&u.l(_),_.forEach(m),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-cl0oev"),j(e,"code-with-stack-trace",s[5])},m(d,_){I(d,e,_),h(e,l),h(l,t),h(t,r),h(l,o),O(i,l,null),h(e,a),u&&u.m(e,null),f=!0},p(d,_){(!f||_&1)&&n!==(n=ne(d[0])+"")&&U(r,n);const v={};_&16&&(v.content=d[4]),_&32&&(v.class="h-auto "+(d[5]?"mb-2":"")),_&8&&(v.inline=d[3]),i.$set(v),(!f||_&32&&c!==(c="flex flex-col "+(d[5]?"lg:w-1/2":"")))&&g(l,"class",c),d[5]&&!d[3]?u?(u.p(d,_),_&40&&p(u,1)):(u=ot(d),u.c(),p(u,1),u.m(e,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!f||_&32)&&j(e,"code-with-stack-trace",d[5])},i(d){f||(p(i.$$.fragment,d),p(u),f=!0)},o(d){w(i.$$.fragment,d),w(u),f=!1},d(d){d&&m(e),N(i),u&&u.d()}}}function Ll(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Bl(s){let e,l;return e=new Pe({props:{newTab:!0,href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ml(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Ul(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({namespace:t[7],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ql(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Hl(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ot(s){let e,l,t,n,r,o;return r=new Qe({props:{content:s[5],class:"mb-2 h-full lg:pr-2",language:"text"}}),{c(){e=b("div"),l=b("p"),t=B("Stack trace"),n=C(),G(r.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=$(e);l=k(c,"P",{class:!0});var a=$(l);t=M(a,"Stack trace"),a.forEach(m),n=A(c),S(r.$$.fragment,c),c.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(i,c){I(i,e,c),h(e,l),h(l,t),h(e,n),O(r,e,null),o=!0},p(i,c){const a={};c&32&&(a.content=i[5]),r.$set(a)},i(i){o||(p(r.$$.fragment,i),o=!0)},o(i){w(r.$$.fragment,i),o=!1},d(i){i&&m(e),N(r)}}}function Wl(s){let e,l,t,n,r,o,i,c;const a=[jl,Rl,Fl,Nl,Ol],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="row "+s[8].class+" svelte-cl0oev")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&256&&i!==(i="row "+d[8].class+" svelte-cl0oev"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function zl(s,e,l){let t,n,r;ce(s,Be,d=>l(9,r=d));let{key:o}=e,{value:i}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=d=>{l(8,e=we(we({},e),De(d))),"key"in d&&l(0,o=d.key),"value"in d&&l(1,i=d.value),"attributes"in d&&l(2,c=d.attributes),"inline"in d&&l(3,a=d.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ze(i)),s.$$.dirty&16&&l(5,n=_l(t))},e=De(e),[o,i,c,a,t,n,f,u,e]}class Zt extends _e{constructor(e){super(),me(this,e,zl,Wl,he,{key:0,value:1,attributes:2,inline:3})}}function ft(s){let e,l,t;return l=new ve({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),G(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=$(e);S(l.$$.fragment,r),r.forEach(m),this.h()},h(){j(e,"animate-spin",s[1])},m(n,r){I(n,e,r),O(l,e,null),t=!0},p(n,r){const o={};r&10&&(o.name=n[1]?"spinner":n[3]),l.$set(o),(!t||r&2)&&j(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&m(e),N(l)}}}function Ql(s){let e,l,t,n,r,o,i=s[3]&&ft(s);const c=s[7].default,a=jt(c,s,s[6],null);return{c(){e=b("button"),i&&i.c(),l=C(),a&&a.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=$(e);i&&i.l(u),l=A(u),a&&a.l(u),u.forEach(m),this.h()},h(){g(e,"class",t=nt(`pill ${s[5]} ${s[4]}`)+" svelte-czm4v2"),e.disabled=s[0],j(e,"active",s[2])},m(f,u){I(f,e,u),i&&i.m(e,null),h(e,l),a&&a.m(e,null),n=!0,r||(o=$e(e,"click",s[8]),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=ft(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),w(i,1,1,()=>{i=null}),Q()),a&&a.p&&(!n||u&64)&&Lt(a,c,f,f[6],n?Mt(c,f[6],u,null):Bt(f[6]),null),(!n||u&48&&t!==(t=nt(`pill ${f[5]} ${f[4]}`)+" svelte-czm4v2"))&&g(e,"class",t),(!n||u&1)&&(e.disabled=f[0]),(!n||u&52)&&j(e,"active",f[2])},i(f){n||(p(i),p(a,f),n=!0)},o(f){w(i),w(a,f),n=!1},d(f){f&&m(e),i&&i.d(),a&&a.d(f),r=!1,o()}}}function Jl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:o=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function u(d){el.call(this,s,d)}return s.$$set=d=>{l(9,e=we(we({},e),De(d))),"disabled"in d&&l(0,r=d.disabled),"loading"in d&&l(1,o=d.loading),"active"in d&&l(2,i=d.active),"icon"in d&&l(3,c=d.icon),"classes"in d&&l(4,a=d.classes),"color"in d&&l(5,f=d.color),"$$scope"in d&&l(6,n=d.$$scope)},e=De(e),[r,o,i,c,a,f,n,t,u]}class Kl extends _e{constructor(e){super(),me(this,e,Jl,Ql,he,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function ct(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 ut(s){let e,l,t=[],n=new Map,r,o=Object.entries(s[0]);const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){w(r),n=!1},d(o){o&&m(l),r&&r.d(o),o&&m(t)}}}function Yl(s){let e,l,t=s[2]>1&&ut(s);return{c(){t&&t.c(),e=le()},l(n){t&&t.l(n),e=le()},m(n,r){t&&t.m(n,r),I(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),w(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){w(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function Zl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const o=Ut(),i=c=>o("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,a)=>(a.length&&(c+=1),c),0))},[n,r,t,o,i]}class xt extends _e{constructor(e){super(),me(this,e,Zl,Yl,he,{attributeGrouping:0,activePill:1})}}function mt(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ht(s,e){let l,t,n,r,o,i=e[4]+"",c,a,f,u,d=(Le(e[5])?"LocalActivity":e[5].eventType)+"",_,v,E,T,W,H;function Y(){return e[3](e[4])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=C(),r=b("td"),o=b("p"),c=B(i),a=C(),f=b("td"),u=b("p"),_=B(d),v=C(),E=b("td"),T=C(),this.h()},l(D){l=k(D,"TR",{class:!0});var P=$(l);t=k(P,"TD",{class:!0}),$(t).forEach(m),n=A(P),r=k(P,"TD",{class:!0});var Z=$(r);o=k(Z,"P",{class:!0});var J=$(o);c=M(J,i),J.forEach(m),Z.forEach(m),a=A(P),f=k(P,"TD",{});var K=$(f);u=k(K,"P",{class:!0});var x=$(u);_=M(x,d),x.forEach(m),K.forEach(m),v=A(P),E=k(P,"TD",{}),$(E).forEach(m),T=A(P),P.forEach(m),this.h()},h(){g(t,"class","w-1/12"),g(o,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(u,"class","event-type truncate text-sm md:text-base svelte-1joe2mb"),g(l,"class","row svelte-1joe2mb"),j(l,"active",e[4]===e[1]),j(l,"failure",Ue(e[5])),j(l,"canceled",qe(e[5])),j(l,"terminated",He(e[5])),this.first=l},m(D,P){I(D,l,P),h(l,t),h(l,n),h(l,r),h(r,o),h(o,c),h(l,a),h(l,f),h(f,u),h(u,_),h(l,v),h(l,E),h(l,T),W||(H=$e(l,"click",qt(ll(Y))),W=!0)},p(D,P){e=D,P&1&&i!==(i=e[4]+"")&&U(c,i),P&1&&d!==(d=(Le(e[5])?"LocalActivity":e[5].eventType)+"")&&U(_,d),P&3&&j(l,"active",e[4]===e[1]),P&1&&j(l,"failure",Ue(e[5])),P&1&&j(l,"canceled",qe(e[5])),P&1&&j(l,"terminated",He(e[5]))},d(D){D&&m(l),W=!1,H()}}}function xl(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=o=>o[4];for(let o=0;or(i);return s.$$set=i=>{"eventGroup"in i&&l(0,t=i.eventGroup),"selectedId"in i&&l(1,n=i.selectedId),"onGroupClick"in i&&l(2,r=i.onGroupClick)},[t,n,r,o]}class ln extends _e{constructor(e){super(),me(this,e,tn,en,he,{eventGroup:0,selectedId:1,onGroupClick:2})}}function vt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function pt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,o;l=new xt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=s[6];const c=a=>a[10];for(let a=0;ad[10];for(let d=0;d{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function kt(s){let e,l;return e=new Zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function $t(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=le(),o&&o.c(),n=le(),this.h()},l(c){l=le(),o&&o.l(c),n=le(),this.h()},h(){this.first=l},m(c,a){I(c,l,a),o&&o.m(c,a),I(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?o?(o.p(e,a),a&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),w(o,1,1,()=>{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function sn(s){let e,l,t,n,r;const o=[rn,nn],i=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&Fe(a[1]))),e?0:1}return l=c(s,-1),t=i[l]=o[l](s),{c(){t.c(),n=le()},l(a){t.l(a),n=le()},m(a,f){i[l].m(a,f),I(a,n,f),r=!0},p(a,[f]){let u=l;l=c(a,f),l===u?i[l].p(a,f):(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(a,f):(t=i[l]=o[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){w(t),r=!1},d(a){i[l].d(a),a&&m(n)}}}function an(s,e,l){let t,n,r,o,{event:i}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},d=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[f,i,a,t,n,r,o,u,d,c]}class on extends _e{constructor(e){super(),me(this,e,an,sn,he,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){var t;let e=rt((t=s[0])==null?void 0:t.eventTime,s[12])+"",l;return{c(){l=B(e)},l(n){l=M(n,e)},m(n,r){I(n,l,r)},p(n,r){var o;r&4097&&e!==(e=rt((o=n[0])==null?void 0:o.eventTime,n[12])+"")&&U(l,e)},d(n){n&&m(l)}}}function cn(s){let e=We({start:s[1].eventTime,end:s[7].eventTime})+"",l,t,n;return{c(){l=B(e),t=C(),n=B(s[9])},l(r){l=M(r,e),t=A(r),n=M(r,s[9])},m(r,o){I(r,l,o),I(r,t,o),I(r,n,o)},p(r,o){o&130&&e!==(e=We({start:r[1].eventTime,end:r[7].eventTime})+"")&&U(l,e),o&512&&U(n,r[9])},d(r){r&&m(l),r&&m(t),r&&m(n)}}}function wt(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Et(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function It(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Dt(s){let e,l;const t=[at(s[7]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let n={};for(let r=0;ral(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),G(t.$$.fragment),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{class:!0,colspan:!0});var u=$(l);S(t.$$.fragment,u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","expanded-cell svelte-aaifo7"),g(l,"colspan","6"),g(e,"class","svelte-aaifo7"),j(e,"typedError",s[4])},m(a,f){I(a,e,f),h(e,l),O(t,l,null),o=!0},p(a,f){const u={};f&1&&(u.event=a[0]),f&128&&(u.currentEvent=a[7]),f&4&&(u.compact=a[2]),!n&&f&64&&(n=!0,u.selectedId=a[6],il(()=>n=!1)),t.$set(u),(!o||f&16)&&j(e,"typedError",a[4])},i(a){o||(p(t.$$.fragment,a),a&&(r||ol(()=>{r=fl(e,cl,{}),r.start()})),o=!0)},o(a){w(t.$$.fragment,a),o=!1},d(a){a&&m(e),N(t)}}}function un(s){let e,l,t,n,r,o,i=s[0].id+"",c,a,f,u,d,_,v,E,T,W,H,Y,D=(Le(s[0])?"LocalActivity":s[0].name)+"",P,Z,J,K,x,fe,pe,F,oe,q,R,V,X,ue,ie,Ie,Ce;function ge(y,L){return y[11]?cn:fn}let Ge=ge(s),de=Ge(s),re=s[2]&&s[14]&&wt(),se=s[2]&&s[15]&&Et(),ae=s[2]&&s[16]&&It(),ee=!s[8]&&Dt(s);F=new ve({props:{class:"inline",name:s[8]?"chevron-up":"chevron-down"}});let te=s[8]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=C(),n=b("td"),r=b("a"),o=b("p"),c=B(i),f=C(),u=b("td"),d=b("p"),de.c(),_=C(),v=b("td"),E=b("div"),re&&re.c(),T=C(),se&&se.c(),W=C(),ae&&ae.c(),H=C(),Y=b("p"),P=B(D),Z=C(),J=b("td"),K=b("div"),x=b("div"),ee&&ee.c(),fe=C(),pe=b("div"),G(F.$$.fragment),oe=C(),q=b("td"),X=C(),te&&te.c(),ue=le(),this.h()},l(y){e=k(y,"TR",{class:!0,id:!0,"aria-expanded":!0,"data-testid":!0});var L=$(e);l=k(L,"TD",{}),$(l).forEach(m),t=A(L),n=k(L,"TD",{class:!0});var Ae=$(n);r=k(Ae,"A",{class:!0,href:!0});var Je=$(r);o=k(Je,"P",{class:!0});var Ke=$(o);c=M(Ke,i),Ke.forEach(m),Je.forEach(m),Ae.forEach(m),f=A(L),u=k(L,"TD",{class:!0});var Xe=$(u);d=k(Xe,"P",{class:!0});var Ye=$(d);de.l(Ye),Ye.forEach(m),Xe.forEach(m),_=A(L),v=k(L,"TD",{class:!0});var Ze=$(v);E=k(Ze,"DIV",{class:!0});var be=$(E);re&&re.l(be),T=A(be),se&&se.l(be),W=A(be),ae&&ae.l(be),H=A(be),Y=k(be,"P",{class:!0});var xe=$(Y);P=M(xe,D),xe.forEach(m),be.forEach(m),Ze.forEach(m),Z=A(L),J=k(L,"TD",{class:!0});var et=$(J);K=k(et,"DIV",{class:!0});var Se=$(K);x=k(Se,"DIV",{class:!0});var tt=$(x);ee&&ee.l(tt),tt.forEach(m),fe=A(Se),pe=k(Se,"DIV",{});var lt=$(pe);S(F.$$.fragment,lt),lt.forEach(m),Se.forEach(m),et.forEach(m),oe=A(L),q=k(L,"TD",{}),$(q).forEach(m),L.forEach(m),X=A(y),te&&te.l(y),ue=le(),this.h()},h(){g(o,"class","truncate"),g(r,"class","text-sm text-gray-500 md:text-base"),g(r,"href",a="#"+s[0].id),g(n,"class","w-24 text-left"),g(d,"class","break-word truncate text-sm md:whitespace-normal md:text-base"),g(u,"class","text-left"),g(Y,"class","event-name truncate text-sm font-semibold md:text-base svelte-aaifo7"),g(E,"class","flex"),g(v,"class","text-right text-sm font-normal xl:text-left"),g(x,"class","grow truncate"),g(K,"class","flex w-full items-center justify-between"),g(J,"class","overflow-hidden"),g(e,"class","row svelte-aaifo7"),g(e,"id",R=s[0].id),g(e,"aria-expanded",V=s[8]||s[3]),g(e,"data-testid","event-summary-row"),j(e,"expanded",s[8]&&!s[3]),j(e,"active",s[5]),j(e,"failure",s[14]),j(e,"canceled",s[15]),j(e,"terminated",s[16]),j(e,"typedError",s[4])},m(y,L){I(y,e,L),h(e,l),h(e,t),h(e,n),h(n,r),h(r,o),h(o,c),h(e,f),h(e,u),h(u,d),de.m(d,null),h(e,_),h(e,v),h(v,E),re&&re.m(E,null),h(E,T),se&&se.m(E,null),h(E,W),ae&&ae.m(E,null),h(E,H),h(E,Y),h(Y,P),h(e,Z),h(e,J),h(J,K),h(K,x),ee&&ee.m(x,null),h(K,fe),h(K,pe),O(F,pe,null),h(e,oe),h(e,q),I(y,X,L),te&&te.m(y,L),I(y,ue,L),ie=!0,Ie||(Ce=$e(e,"click",qt(s[13])),Ie=!0)},p(y,[L]){(!ie||L&1)&&i!==(i=y[0].id+"")&&U(c,i),(!ie||L&1&&a!==(a="#"+y[0].id))&&g(r,"href",a),Ge===(Ge=ge(y))&&de?de.p(y,L):(de.d(1),de=Ge(y),de&&(de.c(),de.m(d,null))),y[2]&&y[14]?re?L&4&&p(re,1):(re=wt(),re.c(),p(re,1),re.m(E,T)):re&&(z(),w(re,1,1,()=>{re=null}),Q()),y[2]&&y[15]?se?L&4&&p(se,1):(se=Et(),se.c(),p(se,1),se.m(E,W)):se&&(z(),w(se,1,1,()=>{se=null}),Q()),y[2]&&y[16]?ae?L&4&&p(ae,1):(ae=It(),ae.c(),p(ae,1),ae.m(E,H)):ae&&(z(),w(ae,1,1,()=>{ae=null}),Q()),(!ie||L&1)&&D!==(D=(Le(y[0])?"LocalActivity":y[0].name)+"")&&U(P,D),y[8]?ee&&(z(),w(ee,1,1,()=>{ee=null}),Q()):ee?(ee.p(y,L),L&256&&p(ee,1)):(ee=Dt(y),ee.c(),p(ee,1),ee.m(x,null));const Ae={};L&256&&(Ae.name=y[8]?"chevron-up":"chevron-down"),F.$set(Ae),(!ie||L&1&&R!==(R=y[0].id))&&g(e,"id",R),(!ie||L&264&&V!==(V=y[8]||y[3]))&&g(e,"aria-expanded",V),(!ie||L&264)&&j(e,"expanded",y[8]&&!y[3]),(!ie||L&32)&&j(e,"active",y[5]),(!ie||L&16)&&j(e,"typedError",y[4]),y[8]?te?(te.p(y,L),L&256&&p(te,1)):(te=Tt(y),te.c(),p(te,1),te.m(ue.parentNode,ue)):te&&(z(),w(te,1,1,()=>{te=null}),Q())},i(y){ie||(p(re),p(se),p(ae),p(ee),p(F.$$.fragment,y),p(te),ie=!0)},o(y){w(re),w(se),w(ae),w(ee),w(F.$$.fragment,y),w(te),ie=!1},d(y){y&&m(e),de.d(),re&&re.d(),se&&se.d(),ae&&ae.d(),ee&&ee.d(),N(F),y&&m(X),te&&te.d(y),y&&m(ue),Ie=!1,Ce()}}}function dn(s,e,l){let t,n,r,o,i,c,a,f,u,d;ce(s,Ne,F=>l(22,f=F)),ce(s,Me,F=>l(23,u=F)),ce(s,Ht,F=>l(12,d=F));var _;let{event:v}=e,{visibleItems:E}=e,{initialItem:T}=e,{compact:W=!1}=e,{expandAll:H=!1}=e,{typedError:Y=!1}=e,{active:D=!1}=e,{onRowClick:P=Te}=e,Z=Fe(v)?Array.from(v.events.keys()).pop():v.id;const J=()=>{l(8,t=!t),P()},K=Ue(v),x=qe(v),fe=He(v);function pe(F){Z=F,l(6,Z)}return s.$$set=F=>{"event"in F&&l(0,v=F.event),"visibleItems"in F&&l(17,E=F.visibleItems),"initialItem"in F&&l(1,T=F.initialItem),"compact"in F&&l(2,W=F.compact),"expandAll"in F&&l(3,H=F.expandAll),"typedError"in F&&l(4,Y=F.typedError),"active"in F&&l(5,D=F.active),"onRowClick"in F&&l(18,P=F.onRowClick)},s.$$.update=()=>{if(s.$$.dirty&40&&l(8,t=H||D),s.$$.dirty&65&&l(7,n=Fe(v)?v.events.get(Z):v),s.$$.dirty&8388608&&l(20,r=u==="descending"),s.$$.dirty&4194304&&l(21,o=f==="true"),s.$$.dirty&2097155&&l(11,i=o&&T&&v.id!==T.id),s.$$.dirty&5&&l(10,c=Jt(v,{compact:W})),s.$$.dirty&1704065){const F=E.indexOf(v),oe=E[F-1];if(oe){const q=We({start:Fe(oe)?l(19,_=oe==null?void 0:oe.initialEvent)===null||_===void 0?void 0:_.eventTime:oe==null?void 0:oe.eventTime,end:n==null?void 0:n.eventTime});l(9,a=q?`(${r?"-":"+"}${q})`:"")}}},l(9,a=""),[v,T,W,H,Y,D,Z,n,t,a,c,i,d,J,K,x,fe,E,P,_,r,o,f,u,pe]}class lr extends _e{constructor(e){super(),me(this,e,dn,un,he,{event:0,visibleItems:17,initialItem:1,compact:2,expandAll:3,typedError:4,active:5,onRowClick:18})}}function Vt(s,e,l){const t=s.slice();return t[1]=e[l].label,t[10]=e[l].option,t}function Pt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yt(s,e){let l,t,n,r,o=e[1]+"",i,c,a,f,u,d=e[0]===e[10]&&Pt();function _(){return e[8](e[10])}return{key:s,first:null,c(){l=b("div"),t=b("div"),d&&d.c(),n=C(),r=b("button"),i=B(o),c=C(),this.h()},l(v){l=k(v,"DIV",{class:!0});var E=$(l);t=k(E,"DIV",{class:!0});var T=$(t);d&&d.l(T),T.forEach(m),n=A(E),r=k(E,"BUTTON",{"data-testid":!0});var W=$(r);i=M(W,o),W.forEach(m),c=A(E),E.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-category-option"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[0]===e[10]),this.first=l},m(v,E){I(v,l,E),h(l,t),d&&d.m(t,null),h(l,n),h(l,r),h(r,i),h(l,c),a=!0,f||(u=$e(r,"click",_),f=!0)},p(v,E){e=v,e[0]===e[10]?d?E&1&&p(d,1):(d=Pt(),d.c(),p(d,1),d.m(t,null)):d&&(z(),w(d,1,1,()=>{d=null}),Q()),(!a||E&5)&&j(l,"active",e[0]===e[10])},i(v){a||(p(d),a=!0)},o(v){w(d),a=!1},d(v){v&&m(l),d&&d.d(),f=!1,u()}}}function _n(s){let e,l=[],t=new Map,n,r=s[2];const o=i=>i[10];for(let i=0;il(9,r=_)),ce(s,Be,_=>l(7,o=_));var i,c;let{compact:a=!1}=e,f=a?vl:pl;const u=_=>{l(0,n=_)},d=_=>u(_);return s.$$set=_=>{"compact"in _&&l(4,a=_.compact)},s.$$.update=()=>{s.$$.dirty&16&&l(1,t=a?"Event Type":"Workflow Events"),s.$$.dirty&224&&l(0,n=l(6,c=l(5,i=o.url)===null||i===void 0?void 0:i.searchParams)===null||c===void 0?void 0:c.get(Ct)),s.$$.dirty&129&&Yt({parameter:Ct,value:n,url:o.url}).then(_=>{var v;l(0,n=(v=_==null?void 0:_.toString())!==null&&v!==void 0?v:null),Oe(it,r=n,r)})},[n,t,f,u,a,i,c,o,d]}class pn extends _e{constructor(e){super(),me(this,e,vn,hn,he,{compact:4})}}const gn=({compact:s,timeFormat:e,sortOrder:l,showElapsed:t})=>{if(!((s||l==="descending")&&e==="UTC"&&t==="false"))return`${l}:${e}:${t}`};function At(s,e,l){const t=s.slice();return t[13]=e[l].label,t[14]=e[l].option,t}function Gt(s,e,l){const t=s.slice();return t[14]=e[l].option,t[13]=e[l].label,t}function St(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ot(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[1]===e[14]&&St();function d(){return e[10](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[1]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[1]===e[14]?u?v&2&&p(u,1):(u=St(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&18)&&j(l,"active",e[1]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Nt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ft(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[2]===e[14]&&Nt();function d(){return e[11](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{"data-testid":!0});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-date-filter-"+e[14]),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[2]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[2]===e[14]?u?v&4&&p(u,1):(u=Nt(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&36)&&j(l,"active",e[2]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Rt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function bn(s){let e,l=[],t=new Map,n,r,o,i,c,a,f=[],u=new Map,d,_,v,E,T,W,H,Y,D,P,Z,J,K,x,fe=s[4];const pe=R=>R[14];for(let R=0;RR[14];for(let R=0;R{q=null}),Q()),(!J||V&1)&&j(H,"active",R[0]==="true")},i(R){if(!J){for(let V=0;Vl(0,n=T)),ce(s,Me,T=>l(1,r=T)),ce(s,Ht,T=>l(2,o=T)),ce(s,Be,T=>l(12,i=T));let{compact:c}=e,a=[{label:"Sort 1-9",option:"ascending"},{label:"Sort 9-1",option:"descending"}],f=[{label:"Relative",option:"relative"},{label:"UTC",option:"UTC"},{label:"Local",option:"local"}];const u=T=>{Oe(Me,r=T,r),Yt({parameter:"sort",value:T,url:i.url})},d=T=>{dl(T)},_=()=>{n==="true"?Oe(Ne,n="false",n):Oe(Ne,n="true",n)},v=T=>u(T),E=T=>d(T);return s.$$set=T=>{"compact"in T&&l(9,c=T.compact)},s.$$.update=()=>{s.$$.dirty&519&&l(3,t=gn({compact:c,timeFormat:o,sortOrder:r,showElapsed:n}))},[n,r,o,t,a,f,u,d,_,c,v,E]}class En extends _e{constructor(e){super(),me(this,e,wn,$n,he,{compact:9})}}function In(s){let e;const l=s[4].default,t=jt(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)&&Lt(t,l,n,n[5],e?Mt(l,n[5],r,null):Bt(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){w(t,n),e=!1},d(n){t&&t.d(n)}}}function Dn(s){let e,l,t,n,r,o,i,c,a,f,u,d,_=s[2]?"Collapse all":"Expand All",v,E,T,W,H,Y;return n=new En({props:{compact:s[0]}}),i=new pn({props:{compact:s[0]}}),T=new ve({props:{name:s[2]?"chevron-up":"chevron-down"}}),{c(){e=b("th"),l=C(),t=b("th"),G(n.$$.fragment),r=C(),o=b("th"),G(i.$$.fragment),c=C(),a=b("th"),f=b("div"),u=b("button"),d=b("span"),v=B(_),E=C(),G(T.$$.fragment),this.h()},l(D){e=k(D,"TH",{class:!0}),$(e).forEach(m),l=A(D),t=k(D,"TH",{class:!0});var P=$(t);S(n.$$.fragment,P),P.forEach(m),r=A(D),o=k(D,"TH",{class:!0});var Z=$(o);S(i.$$.fragment,Z),Z.forEach(m),c=A(D),a=k(D,"TH",{class:!0});var J=$(a);f=k(J,"DIV",{class:!0});var K=$(f);u=k(K,"BUTTON",{class:!0});var x=$(u);d=k(x,"SPAN",{class:!0});var fe=$(d);v=M(fe,_),fe.forEach(m),E=A(x),S(T.$$.fragment,x),x.forEach(m),K.forEach(m),J.forEach(m),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(o,"class","w-44"),g(d,"class","hidden sm:block"),g(u,"class","relative flex w-28 items-center justify-end rounded sm:justify-between"),g(f,"class","flex w-full justify-end"),g(a,"class","w-auto xl:w-80")},m(D,P){I(D,e,P),I(D,l,P),I(D,t,P),O(n,t,null),I(D,r,P),I(D,o,P),O(i,o,null),I(D,c,P),I(D,a,P),h(a,f),h(f,u),h(u,d),h(d,v),h(u,E),O(T,u,null),W=!0,H||(Y=$e(u,"click",s[3]),H=!0)},p(D,P){const Z={};P&1&&(Z.compact=D[0]),n.$set(Z);const J={};P&1&&(J.compact=D[0]),i.$set(J),(!W||P&4)&&_!==(_=D[2]?"Collapse all":"Expand All")&&U(v,_);const K={};P&4&&(K.name=D[2]?"chevron-up":"chevron-down"),T.$set(K)},i(D){W||(p(n.$$.fragment,D),p(i.$$.fragment,D),p(T.$$.fragment,D),W=!0)},o(D){w(n.$$.fragment,D),w(i.$$.fragment,D),w(T.$$.fragment,D),W=!1},d(D){D&&m(e),D&&m(l),D&&m(t),N(n),D&&m(r),D&&m(o),N(i),D&&m(c),D&&m(a),N(T),H=!1,Y()}}}function Tn(s){let e,l;return e=new hl({props:{slot:"headers",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vn(s){let e,l;return e=new Kt({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Tn],default:[In]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Pn(s,e,l){let t;ce(s,ul,u=>l(6,t=u));let{$$slots:n={},$$scope:r}=e,{compact:o=!1}=e,{updating:i=!1}=e,c=t==="true";const a=Ut();function f(){l(2,c=!c),a("expandAll",{expanded:c?"true":"false"})}return s.$$set=u=>{"compact"in u&&l(0,o=u.compact),"updating"in u&&l(1,i=u.updating),"$$scope"in u&&l(5,r=u.$$scope)},[o,i,c,f,n,r]}class nr extends _e{constructor(e){super(),me(this,e,Pn,Vn,he,{compact:0,updating:1})}}function yn(s){let e,l;return e=new gl({props:{title:"No Events Match",content:"There are no events that match your filters or selected view. Adjust your filters or view to see your events."}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Cn(s){let e,l;return e=new bl({}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function An(s){let e,l,t,n,r;const o=[Cn,yn],i=[];function c(a,f){return a[0]?0:1}return t=c(s),n=i[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{colspan:!0});var u=$(l);n.l(u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(a,f){I(a,e,f),h(e,l),i[t].m(l,null),r=!0},p(a,[f]){let u=t;t=c(a),t!==u&&(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n||(n=i[t]=o[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){w(n),r=!1},d(a){a&&m(e),i[t].d()}}}function Gn(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class rr extends _e{constructor(e){super(),me(this,e,Gn,An,he,{loading:0})}}export{nr as E,rr as a,lr as b}; diff --git a/ui/assets/cloud/_app/immutable/chunks/event-history-file-import.6d0c9554.js b/ui/assets/cloud/_app/immutable/chunks/event-history-file-import.26212091.js similarity index 88% rename from ui/assets/cloud/_app/immutable/chunks/event-history-file-import.6d0c9554.js rename to ui/assets/cloud/_app/immutable/chunks/event-history-file-import.26212091.js index 99979caf00..e2c4b69bf5 100644 --- a/ui/assets/cloud/_app/immutable/chunks/event-history-file-import.6d0c9554.js +++ b/ui/assets/cloud/_app/immutable/chunks/event-history-file-import.26212091.js @@ -1 +1 @@ -import{S as $,b as C,a as k,m as w,c as F,C as I,p as N,d as T,D as U,u as g,f as y,E as x,T as A,j as B,g as j,k as b,F as G,K as h,w as H,x as J}from"./index.a36c9cb0.js";import{d as O}from"./route-for.70dfbf18.js";import{g as q}from"./navigation.214139c0.js";import{B as D}from"./button.dbc76a4c.js";import{t as K}from"./index.0c42129f.js";import{t as S}from"./toaster.16c48a98.js";import{i as L,a as P}from"./import-events.8d158e6c.js";import{p as R}from"./parse-with-big-int.0036a80a.js";import{g as W}from"./index.f8c667a1.js";import{p as z}from"./stores.0bc9ce95.js";import{a as M}from"./auth-user.3a7bc4db.js";import{l as Q}from"./namespaces.85dd7810.js";function V(r){let o;return{c(){o=H("Import")},l(e){o=J(e,"Import")},m(e,s){y(e,o,s)},d(e){e&&b(o)}}}function X(r){let o,e,s,p,c,a;return s=new D({props:{icon:"file-upload",disabled:!r[0],$$slots:{default:[V]},$$scope:{ctx:r}}}),s.$on("click",r[2]),{c(){o=w("input"),e=F(),I(s.$$.fragment),this.h()},l(t){o=N(t,"INPUT",{class:!0,type:!0,accept:!0}),e=T(t),U(s.$$.fragment,t),this.h()},h(){g(o,"class","import-input block rounded-md border border-gray-200 p-2"),g(o,"type","file"),g(o,"accept",".json")},m(t,i){y(t,o,i),y(t,e,i),x(s,t,i),p=!0,c||(a=A(o,"change",r[1]),c=!0)},p(t,[i]){const f={};i&1&&(f.disabled=!t[0]),i&128&&(f.$$scope={dirty:i,ctx:t}),s.$set(f)},i(t){p||(B(s.$$.fragment,t),p=!0)},o(t){j(s.$$.fragment,t),p=!1},d(t){t&&b(o),t&&b(e),G(s,t),c=!1,a()}}}function Y(r,o,e){let s,p,c;h(r,Q,n=>e(4,s=n)),h(r,M,n=>e(5,p=n)),h(r,z,n=>e(6,c=n));let a,t=!1;return[t,async n=>{var l;const m=n.target,d=(l=m==null?void 0:m.files)===null||l===void 0?void 0:l[0],u=new FileReader;d&&(u.readAsText(d),u.onload=()=>{var _,v;try{const E=(v=(_=u==null?void 0:u.result)===null||_===void 0?void 0:_.toString())!==null&&v!==void 0?v:"";a=R(E),e(0,t=!0)}catch{S.push({variant:"error",message:"Could not parse JSON"}),e(0,t=!1)}})},async()=>{const{settings:n}=c.data;try{const l=await K({response:Array.isArray(a)?a:a==null?void 0:a.events,namespace:s,settings:n,accessToken:p.accessToken}),m=W(l);L.set(l),P.set(m),e(0,t=!1);const d=O(s,"feed");q(d)}catch(l){console.error(l),S.push({variant:"error",message:"Could not create event history from JSON"})}}]}class mt extends ${constructor(o){super(),C(this,o,Y,X,k,{})}}export{mt as E}; +import{S as $,b as C,a as k,m as w,c as F,C as I,p as N,d as T,D as U,u as g,f as y,E as x,T as A,j as B,g as j,k as b,F as G,K as h,w as H,x as J}from"./index.a36c9cb0.js";import{d as O}from"./route-for.087ea268.js";import{g as q}from"./navigation.58fc5f1f.js";import{B as D}from"./button.dbc76a4c.js";import{t as K}from"./index.14accc17.js";import{t as S}from"./toaster.16c48a98.js";import{i as L,a as P}from"./import-events.8d158e6c.js";import{p as R}from"./parse-with-big-int.0036a80a.js";import{g as W}from"./index.f8c667a1.js";import{p as z}from"./stores.a2e3306d.js";import{a as M}from"./auth-user.3a7bc4db.js";import{l as Q}from"./namespaces.85dd7810.js";function V(r){let o;return{c(){o=H("Import")},l(e){o=J(e,"Import")},m(e,s){y(e,o,s)},d(e){e&&b(o)}}}function X(r){let o,e,s,p,c,a;return s=new D({props:{icon:"file-upload",disabled:!r[0],$$slots:{default:[V]},$$scope:{ctx:r}}}),s.$on("click",r[2]),{c(){o=w("input"),e=F(),I(s.$$.fragment),this.h()},l(t){o=N(t,"INPUT",{class:!0,type:!0,accept:!0}),e=T(t),U(s.$$.fragment,t),this.h()},h(){g(o,"class","import-input block rounded-md border border-gray-200 p-2"),g(o,"type","file"),g(o,"accept",".json")},m(t,i){y(t,o,i),y(t,e,i),x(s,t,i),p=!0,c||(a=A(o,"change",r[1]),c=!0)},p(t,[i]){const f={};i&1&&(f.disabled=!t[0]),i&128&&(f.$$scope={dirty:i,ctx:t}),s.$set(f)},i(t){p||(B(s.$$.fragment,t),p=!0)},o(t){j(s.$$.fragment,t),p=!1},d(t){t&&b(o),t&&b(e),G(s,t),c=!1,a()}}}function Y(r,o,e){let s,p,c;h(r,Q,n=>e(4,s=n)),h(r,M,n=>e(5,p=n)),h(r,z,n=>e(6,c=n));let a,t=!1;return[t,async n=>{var l;const m=n.target,d=(l=m==null?void 0:m.files)===null||l===void 0?void 0:l[0],u=new FileReader;d&&(u.readAsText(d),u.onload=()=>{var _,v;try{const E=(v=(_=u==null?void 0:u.result)===null||_===void 0?void 0:_.toString())!==null&&v!==void 0?v:"";a=R(E),e(0,t=!0)}catch{S.push({variant:"error",message:"Could not parse JSON"}),e(0,t=!1)}})},async()=>{const{settings:n}=c.data;try{const l=await K({response:Array.isArray(a)?a:a==null?void 0:a.events,namespace:s,settings:n,accessToken:p.accessToken}),m=W(l);L.set(l),P.set(m),e(0,t=!1);const d=O(s,"feed");q(d)}catch(l){console.error(l),S.push({variant:"error",message:"Could not create event history from JSON"})}}]}class mt extends ${constructor(o){super(),C(this,o,Y,X,k,{})}}export{mt as E}; diff --git a/ui/assets/cloud/_app/immutable/chunks/events-service.2f6a3c54.js b/ui/assets/cloud/_app/immutable/chunks/events-service.df63a9ac.js similarity index 93% rename from ui/assets/cloud/_app/immutable/chunks/events-service.2f6a3c54.js rename to ui/assets/cloud/_app/immutable/chunks/events-service.df63a9ac.js index 877e3fbeab..cdd01c4860 100644 --- a/ui/assets/cloud/_app/immutable/chunks/events-service.2f6a3c54.js +++ b/ui/assets/cloud/_app/immutable/chunks/events-service.df63a9ac.js @@ -1 +1 @@ -import{d as p,w as B}from"./index.deae5bd4.js";import{p as S}from"./stores.0bc9ce95.js";import{e as W}from"./event-view.f557cd63.js";import{l as R}from"./route-for.70dfbf18.js";import{r as V}from"./workflow-run.8a407b5f.js";import{a as X}from"./auth-user.3a7bc4db.js";import{S as Y,b as Z,a as U,N as q,m as b,c as z,w as x,p as k,q as y,d as C,x as $,k as h,u as A,Q as N,R as w,f as D,L as E,j as v,z as j,g,h as G,y as ee,U as te,a5 as J,ad as se,O as ne,C as ae,D as re,E as oe,F as le,G as ie,H as ce,I as fe,J as ue}from"./index.a36c9cb0.js";import{I as me}from"./icon.33859671.js";import{p as K}from"./paginated.1afc2b79.js";import{r as H,a as P}from"./route-for-api.81ced9ce.js";import{t as F}from"./index.0c42129f.js";import{b as de}from"./has.48bed8a5.js";const _e=p([S],([t])=>t.params.namespace?R(t.params.namespace):""),ve=p([S],([t])=>t.params.workflow?R(t.params.workflow):""),he=p([S],([t])=>t.params.run?R(t.params.run):""),pe=p([S],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),ge=p([X],([t])=>t==null?void 0:t.accessToken),Ee=p([_e,ve,he,W],([t,e,n,o])=>({namespace:t,workflowId:e,runId:n,sort:o}));p([Ee,pe,ge,V],([t,e,n,o])=>({...t,settings:e,accessToken:n,refresh:V,$refresh:o}));const be={start:[],end:[]},ze=B(be),Ce=B(null);function L(t){let e,n,o;return n=new me({props:{name:t[2]}}),{c(){e=b("div"),ae(n.$$.fragment)},l(s){e=k(s,"DIV",{});var r=y(e);re(n.$$.fragment,r),r.forEach(h)},m(s,r){D(s,e,r),oe(n,e,null),o=!0},p(s,r){const c={};r&4&&(c.name=s[2]),n.$set(c)},i(s){o||(v(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&h(e),le(n)}}}function O(t){let e,n;const o=t[8].default,s=ie(o,t,t[7],null);return{c(){e=b("div"),s&&s.c(),this.h()},l(r){e=k(r,"DIV",{class:!0});var c=y(e);s&&s.l(c),c.forEach(h),this.h()},h(){A(e,"class","content svelte-1u0e3fc")},m(r,c){D(r,e,c),s&&s.m(e,null),n=!0},p(r,c){s&&s.p&&(!n||c&128)&&ce(s,o,r,r[7],n?ue(o,r[7],c,null):fe(r[7]),null)},i(r){n||(v(s,r),n=!0)},o(r){g(s,r),n=!1},d(r){r&&h(e),s&&s.d(r)}}}function ke(t){let e,n,o,s,r,c,m,u,i=t[2]&&L(t),l=t[6].default&&O(t),d=[{class:m="alert "+t[0]+" "+t[4]},{role:"alert"},t[5]],_={};for(let a=0;a{i=null}),G()),(!u||f&2)&&ee(r,a[1]),a[6].default?l?(l.p(a,f),f&64&&v(l,1)):(l=O(a),l.c(),v(l,1),l.m(o,null)):l&&(j(),g(l,1,1,()=>{l=null}),G()),N(e,_=te(d,[(!u||f&17&&m!==(m="alert "+a[0]+" "+a[4]))&&{class:m},{role:"alert"},f&32&&a[5]])),w(e,"bold",a[3]),w(e,"svelte-1u0e3fc",!0)},i(a){u||(v(i),v(l),u=!0)},o(a){g(i),g(l),u=!1},d(a){a&&h(e),i&&i.d(),l&&l.d()}}}function ye(t,e,n){const o=["intent","title","icon","bold","class"];let s=J(e,o),{$$slots:r={},$$scope:c}=e;const m=se(r);let{intent:u}=e,{title:i}=e,{icon:l=null}=e,{bold:d=!1}=e,{class:_=""}=e;return t.$$set=a=>{e=q(q({},e),ne(a)),n(5,s=J(e,o)),"intent"in a&&n(0,u=a.intent),"title"in a&&n(1,i=a.title),"icon"in a&&n(2,l=a.icon),"bold"in a&&n(3,d=a.bold),"class"in a&&n(4,_=a.class),"$$scope"in a&&n(7,c=a.$$scope)},[u,i,l,d,_,s,m,c,r]}class Ne extends Y{constructor(e){super(),Z(this,e,ye,ke,U,{intent:0,title:1,icon:2,bold:3,class:4})}}const M=t=>!de(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",je=async({namespace:t,workflowId:e,runId:n,sort:o,onStart:s,onUpdate:r,onComplete:c})=>{const m=M(o),u=H(m,{namespace:t,workflowId:e,runId:n});return(await K(async l=>P(u,{token:l,request:fetch}),{onStart:s,onUpdate:r,onComplete:c})).history.events},Ge=async({namespace:t,workflowId:e,runId:n,sort:o,settings:s,accessToken:r,onStart:c,onUpdate:m,onComplete:u})=>{const i=M(o),l=H(i,{namespace:t,workflowId:e,runId:n}),d=await K(async a=>P(l,{token:a,request:fetch}),{onStart:c,onUpdate:m,onComplete:u});return await F({response:d.history.events,namespace:t,settings:s,accessToken:r})},Q=async({namespace:t,workflowId:e,runId:n,sort:o})=>{const s=H(`events.${o}`,{namespace:t,workflowId:e,runId:n});try{return(await P(s,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},Je=async t=>{const{settings:e,namespace:n,accessToken:o}=t,s=await Q({...t,sort:"ascending"}),r=await Q({...t,sort:"descending"}),[c,m]=await Promise.all([F({response:s,namespace:n,settings:e,accessToken:o}),F({response:r,namespace:n,settings:e,accessToken:o})]);return{start:c,end:m}};export{Ne as A,je as a,Ge as b,ze as e,Je as f,be as i,Ce as t}; +import{d as p,w as B}from"./index.deae5bd4.js";import{p as S}from"./stores.a2e3306d.js";import{e as W}from"./event-view.f557cd63.js";import{l as R}from"./route-for.087ea268.js";import{r as V}from"./workflow-run.8a407b5f.js";import{a as X}from"./auth-user.3a7bc4db.js";import{S as Y,b as Z,a as U,N as q,m as b,c as z,w as x,p as k,q as y,d as C,x as $,k as h,u as A,Q as N,R as w,f as D,L as E,j as v,z as j,g,h as G,y as ee,U as te,a5 as J,ad as se,O as ne,C as ae,D as re,E as oe,F as le,G as ie,H as ce,I as fe,J as ue}from"./index.a36c9cb0.js";import{I as me}from"./icon.33859671.js";import{p as K}from"./paginated.1c9fb8c8.js";import{r as H,a as P}from"./route-for-api.75ac86ec.js";import{t as F}from"./index.14accc17.js";import{b as de}from"./has.48bed8a5.js";const _e=p([S],([t])=>t.params.namespace?R(t.params.namespace):""),ve=p([S],([t])=>t.params.workflow?R(t.params.workflow):""),he=p([S],([t])=>t.params.run?R(t.params.run):""),pe=p([S],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),ge=p([X],([t])=>t==null?void 0:t.accessToken),Ee=p([_e,ve,he,W],([t,e,n,o])=>({namespace:t,workflowId:e,runId:n,sort:o}));p([Ee,pe,ge,V],([t,e,n,o])=>({...t,settings:e,accessToken:n,refresh:V,$refresh:o}));const be={start:[],end:[]},ze=B(be),Ce=B(null);function L(t){let e,n,o;return n=new me({props:{name:t[2]}}),{c(){e=b("div"),ae(n.$$.fragment)},l(s){e=k(s,"DIV",{});var r=y(e);re(n.$$.fragment,r),r.forEach(h)},m(s,r){D(s,e,r),oe(n,e,null),o=!0},p(s,r){const c={};r&4&&(c.name=s[2]),n.$set(c)},i(s){o||(v(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&h(e),le(n)}}}function O(t){let e,n;const o=t[8].default,s=ie(o,t,t[7],null);return{c(){e=b("div"),s&&s.c(),this.h()},l(r){e=k(r,"DIV",{class:!0});var c=y(e);s&&s.l(c),c.forEach(h),this.h()},h(){A(e,"class","content svelte-1u0e3fc")},m(r,c){D(r,e,c),s&&s.m(e,null),n=!0},p(r,c){s&&s.p&&(!n||c&128)&&ce(s,o,r,r[7],n?ue(o,r[7],c,null):fe(r[7]),null)},i(r){n||(v(s,r),n=!0)},o(r){g(s,r),n=!1},d(r){r&&h(e),s&&s.d(r)}}}function ke(t){let e,n,o,s,r,c,m,u,i=t[2]&&L(t),l=t[6].default&&O(t),d=[{class:m="alert "+t[0]+" "+t[4]},{role:"alert"},t[5]],_={};for(let a=0;a{i=null}),G()),(!u||f&2)&&ee(r,a[1]),a[6].default?l?(l.p(a,f),f&64&&v(l,1)):(l=O(a),l.c(),v(l,1),l.m(o,null)):l&&(j(),g(l,1,1,()=>{l=null}),G()),N(e,_=te(d,[(!u||f&17&&m!==(m="alert "+a[0]+" "+a[4]))&&{class:m},{role:"alert"},f&32&&a[5]])),w(e,"bold",a[3]),w(e,"svelte-1u0e3fc",!0)},i(a){u||(v(i),v(l),u=!0)},o(a){g(i),g(l),u=!1},d(a){a&&h(e),i&&i.d(),l&&l.d()}}}function ye(t,e,n){const o=["intent","title","icon","bold","class"];let s=J(e,o),{$$slots:r={},$$scope:c}=e;const m=se(r);let{intent:u}=e,{title:i}=e,{icon:l=null}=e,{bold:d=!1}=e,{class:_=""}=e;return t.$$set=a=>{e=q(q({},e),ne(a)),n(5,s=J(e,o)),"intent"in a&&n(0,u=a.intent),"title"in a&&n(1,i=a.title),"icon"in a&&n(2,l=a.icon),"bold"in a&&n(3,d=a.bold),"class"in a&&n(4,_=a.class),"$$scope"in a&&n(7,c=a.$$scope)},[u,i,l,d,_,s,m,c,r]}class Ne extends Y{constructor(e){super(),Z(this,e,ye,ke,U,{intent:0,title:1,icon:2,bold:3,class:4})}}const M=t=>!de(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",je=async({namespace:t,workflowId:e,runId:n,sort:o,onStart:s,onUpdate:r,onComplete:c})=>{const m=M(o),u=H(m,{namespace:t,workflowId:e,runId:n});return(await K(async l=>P(u,{token:l,request:fetch}),{onStart:s,onUpdate:r,onComplete:c})).history.events},Ge=async({namespace:t,workflowId:e,runId:n,sort:o,settings:s,accessToken:r,onStart:c,onUpdate:m,onComplete:u})=>{const i=M(o),l=H(i,{namespace:t,workflowId:e,runId:n}),d=await K(async a=>P(l,{token:a,request:fetch}),{onStart:c,onUpdate:m,onComplete:u});return await F({response:d.history.events,namespace:t,settings:s,accessToken:r})},Q=async({namespace:t,workflowId:e,runId:n,sort:o})=>{const s=H(`events.${o}`,{namespace:t,workflowId:e,runId:n});try{return(await P(s,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},Je=async t=>{const{settings:e,namespace:n,accessToken:o}=t,s=await Q({...t,sort:"ascending"}),r=await Q({...t,sort:"descending"}),[c,m]=await Promise.all([F({response:s,namespace:n,settings:e,accessToken:o}),F({response:r,namespace:n,settings:e,accessToken:o})]);return{start:c,end:m}};export{Ne as A,je as a,Ge as b,ze as e,Je as f,be as i,Ce as t}; diff --git a/ui/assets/cloud/_app/immutable/chunks/feedback-button.9303fa9f.js b/ui/assets/cloud/_app/immutable/chunks/feedback-button.4e415ec0.js similarity index 95% rename from ui/assets/cloud/_app/immutable/chunks/feedback-button.9303fa9f.js rename to ui/assets/cloud/_app/immutable/chunks/feedback-button.4e415ec0.js index 35e8583423..5f4f511d04 100644 --- a/ui/assets/cloud/_app/immutable/chunks/feedback-button.9303fa9f.js +++ b/ui/assets/cloud/_app/immutable/chunks/feedback-button.4e415ec0.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.a36c9cb0.js";import{I as C}from"./icon.33859671.js";import{p as G}from"./stores.0bc9ce95.js";const A=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;function R(c){let e,s,n,t,o,i;return t=new C({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.a36c9cb0.js";import{I as C}from"./icon.33859671.js";import{p as G}from"./stores.a2e3306d.js";const A=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;function R(c){let e,s,n,t,o,i;return t=new C({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,G,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 B extends v{constructor(e){super(),b(this,e,S,R,g,{})}}export{B as F,A as L}; diff --git a/ui/assets/cloud/_app/immutable/chunks/filters.c5bf71c7.js b/ui/assets/cloud/_app/immutable/chunks/filters.ab2fc3ed.js similarity index 87% rename from ui/assets/cloud/_app/immutable/chunks/filters.c5bf71c7.js rename to ui/assets/cloud/_app/immutable/chunks/filters.ab2fc3ed.js index c5af763ad1..9b93ad7df6 100644 --- a/ui/assets/cloud/_app/immutable/chunks/filters.c5bf71c7.js +++ b/ui/assets/cloud/_app/immutable/chunks/filters.ab2fc3ed.js @@ -1 +1 @@ -import{d as t,w as s}from"./index.deae5bd4.js";import{p as u}from"./stores.0bc9ce95.js";import{W as o}from"./index.a36c9cb0.js";const n=t([u],([r])=>r.url.searchParams.get("query")),c=t([u],([r])=>r.url.searchParams.get("category")),a=t([n,c],([r,e])=>({query:r,category:e})),l=r=>a.subscribe(({query:e})=>{!e&&o(g).length&&r([])}),i=r=>a.subscribe(({query:e})=>{!e&&o(y).length&&r([])}),g=s([],l),y=s([],i),p=r=>a.subscribe(({category:e})=>{!e&&o(f)&&r(null)}),f=s(null,p);export{g as a,f as e,y as w}; +import{d as t,w as s}from"./index.deae5bd4.js";import{p as u}from"./stores.a2e3306d.js";import{W as o}from"./index.a36c9cb0.js";const n=t([u],([r])=>r.url.searchParams.get("query")),c=t([u],([r])=>r.url.searchParams.get("category")),a=t([n,c],([r,e])=>({query:r,category:e})),l=r=>a.subscribe(({query:e})=>{!e&&o(g).length&&r([])}),i=r=>a.subscribe(({query:e})=>{!e&&o(y).length&&r([])}),g=s([],l),y=s([],i),p=r=>a.subscribe(({category:e})=>{!e&&o(f)&&r(null)}),f=s(null,p);export{g as a,f as e,y as w}; diff --git a/ui/assets/cloud/_app/immutable/chunks/get-codec.f6f1b7ab.js b/ui/assets/cloud/_app/immutable/chunks/get-codec.d4d968ba.js similarity index 99% rename from ui/assets/cloud/_app/immutable/chunks/get-codec.f6f1b7ab.js rename to ui/assets/cloud/_app/immutable/chunks/get-codec.d4d968ba.js index cc733c462d..254b9de446 100644 --- a/ui/assets/cloud/_app/immutable/chunks/get-codec.f6f1b7ab.js +++ b/ui/assets/cloud/_app/immutable/chunks/get-codec.d4d968ba.js @@ -1,2 +1,2 @@ -import{W as Y}from"./index.a36c9cb0.js";import{s as Ee,d as zt,a as Xt}from"./data-converter-config.28d58945.js";import{s as U,p as Le}from"./parse-with-big-int.0036a80a.js";import{v as Yt,s as xe,b as Qt,c as Zt,p as er,i as tr}from"./is-http.1e6b12cd.js";import{a as We}from"./atob.a55cedf9.js";var Ie={},rr={get exports(){return Ie},set exports(r){Ie=r}};/* chnl v1.2.0 by Vitaliy Potapov @preserve */function It(r){return(It=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 q(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ne(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 ir(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function sr(r,e){return!e||typeof e!="object"&&typeof e!="function"?ir(r):e}function ar(r){var e=or();return function(){var t,n=Oe(r);if(e){var o=Oe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return sr(this,t)}}function Be(r){return cr(r)||ur(r)||lr(r)||pr()}function cr(r){if(Array.isArray(r))return ke(r)}function ur(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function lr(r,e){if(r){if(typeof r=="string")return ke(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)?ke(r,e):void 0}}function ke(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);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 ir(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function sr(r,e){return!e||typeof e!="object"&&typeof e!="function"?ir(r):e}function ar(r){var e=or();return function(){var t,n=Oe(r);if(e){var o=Oe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return sr(this,t)}}function Be(r){return cr(r)||ur(r)||lr(r)||pr()}function cr(r){if(Array.isArray(r))return ke(r)}function ur(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function lr(r,e){if(r){if(typeof r=="string")return ke(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)?ke(r,e):void 0}}function ke(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=Ue(this._options.timeoutReason),t=typeof e=="string"?e.replace("{timeout}",this._options.timeout):"",n=new F.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){Ge(e)&&e.then(t=>this.resolve(t),t=>this.reject(t))}};F.TimeoutError=Ct("TimeoutError");F.ResetError=Ct("ResetError");var jt=F,Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.PromisedMap=void 0;var mr=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}();Z.PromisedMap=mr;var V={},_r={get exports(){return V},set exports(r){V=r}},gr="Function.prototype.bind called on incompatible ",re=Array.prototype.slice,br=Object.prototype.toString,Pr="[object Function]",wr=function(e){var t=this;if(typeof t!="function"||br.call(t)!==Pr)throw new TypeError(gr+t);for(var n=re.call(arguments,1),o,s=function(){if(this instanceof o){var p=t.apply(this,n.concat(re.call(arguments)));return Object(p)===p?p:this}else return t.apply(e,n.concat(re.call(arguments)))},a=Math.max(0,t.length-n.length),i=[],c=0;c"u"?y:A(Uint8Array),T={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":k?A([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":Tt,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k?A(A([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k?y:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k?y:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k?A(""[Symbol.iterator]()):y,"%Symbol%":k?Symbol:y,"%SyntaxError%":L,"%ThrowTypeError%":Or,"%TypedArray%":kr,"%TypeError%":j,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet},Cr=function r(e){var t;if(e==="%AsyncFunction%")t=ne("async function () {}");else if(e==="%GeneratorFunction%")t=ne("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=ne("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&(t=A(o.prototype))}return T[e]=t,t},He={"%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"]},x=De,H=E,jr=x.call(Function.call,Array.prototype.concat),Tr=x.call(Function.apply,Array.prototype.splice),Je=x.call(Function.call,String.prototype.replace),J=x.call(Function.call,String.prototype.slice),Lr=x.call(Function.call,RegExp.prototype.exec),$r=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dr=/\\(\\)?/g,Fr=function(e){var t=J(e,0,1),n=J(e,-1);if(t==="%"&&n!=="%")throw new L("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new L("invalid intrinsic syntax, expected opening `%`");var o=[];return Je(e,$r,function(s,a,i,c){o[o.length]=i?Je(c,Dr,"$1"):a||s}),o},qr=function(e,t){var n=e,o;if(H(He,n)&&(o=He[n],n="%"+o[0]+"%"),H(T,n)){var s=T[n];if(s===C&&(s=Cr(n)),typeof s>"u"&&!t)throw new j("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new L("intrinsic "+e+" does not exist!")},b=function(e,t){if(typeof e!="string"||e.length===0)throw new j("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new j('"allowMissing" argument must be a boolean');if(Lr(/^%?[^%]*%?$/,e)===null)throw new L("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Fr(e),o=n.length>0?n[0]:"",s=qr("%"+o+"%",t),a=s.name,i=s.value,c=!1,u=s.alias;u&&(o=u[0],Tr(n,jr([0,1],u)));for(var p=1,h=!0;p=n.length){var g=R(i,f);h=!!g,h&&"get"in g&&!("originalValue"in g.get)?i=g.get:i=i[f]}else h=H(i,f),i=i[f];h&&!c&&(T[a]=i)}}return i};(function(r){var e=De,t=b,n=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(o,n),a=t("%Object.getOwnPropertyDescriptor%",!0),i=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}r.exports=function(h){var f=s(e,o,arguments);if(a&&i){var l=a(f,"length");l.configurable&&i(f,"length",{value:1+c(0,h.length-(arguments.length-1))})}return f};var u=function(){return s(e,n,arguments)};i?i(r.exports,"apply",{value:u}):r.exports.apply=u})(_r);var Ke=Object.prototype.toString,Lt=function(e){var t=Ke.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Ke.call(e.callee)==="[object Function]"),n},ie,ze;function Mr(){if(ze)return ie;ze=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Lt,o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(f){var l=f.constructor;return l&&l.prototype===f},u={$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},p=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&e.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{c(window[f])}catch{return!0}}catch{return!0}return!1}(),h=function(f){if(typeof window>"u"||!p)return c(f);try{return c(f)}catch{return!1}};r=function(l){var m=l!==null&&typeof l=="object",g=t.call(l)==="[object Function]",O=n(l),ee=m&&t.call(l)==="[object String]",_=[];if(!m&&!g&&!O)throw new TypeError("Object.keys called on a non-object");var d=a&&g;if(ee&&l.length>0&&!e.call(l,0))for(var v=0;v0)for(var $=0;$2?arguments[2]:{},n=Gr(e);Ur&&(n=Hr.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o"u"||typeof d=="object"))try{var v=i.call(d);return(v===h||v===f||v===l||v===c)&&d("")==null}catch{}return!1})}return se=e?function(d){if(O(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{e(d,null,t)}catch(v){if(v!==n)return!1}return!s(d)&&a(d)}:function(d){if(O(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(s(d))return!1;var v=i.call(d);return v!==u&&v!==p&&!/^\[object HTML/.test(v)?!1:a(d)},se}var Ze;function xt(){return Ze||(Ze=1,function(r){r.exports=Yr()}(Xr)),K}var z={},et={get exports(){return z},set exports(r){z=r}},X={},Qr={get exports(){return X},set exports(r){X=r}},tt;function Zr(){return tt||(tt=1,function(r){r.exports=b}(Qr)),X}var ae,rt;function en(){if(rt)return ae;rt=1;var r=b,e=E,t=r("%TypeError%");return ae=function(o,s){if(o.Type(s)!=="Object")return!1;var a={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in s)if(e(s,i)&&!a[i])return!1;if(o.IsDataDescriptor(s)&&o.IsAccessorDescriptor(s))throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},ae}var ce,nt;function Wt(){if(nt)return ce;nt=1;var r=b,e=V,t=e(r("String.prototype.indexOf"));return ce=function(o,s){var a=r(o,!!s);return typeof a=="function"&&t(o,".prototype.")>-1?e(a):a},ce}var ue,ot;function tn(){if(ot)return ue;ot=1;var r=b,e=r("%Array%"),t=!e.isArray&&Wt()("Object.prototype.toString");return ue=e.isArray||function(o){return t(o)==="[object Array]"},ue}var le,it;function rn(){if(it)return le;it=1;var r=$t,e=b,t=r()&&e("%Object.defineProperty%",!0),n=r.hasArrayLengthDefineBug(),o=n&&tn(),s=Wt(),a=s("Object.prototype.propertyIsEnumerable");return le=function(c,u,p,h,f,l){if(!t){if(!c(l)||!l["[[Configurable]]"]||!l["[[Writable]]"]||f in h&&a(h,f)!==!!l["[[Enumerable]]"])return!1;var m=l["[[Value]]"];return h[f]=m,u(h[f],m)}return n&&f==="length"&&"[[Value]]"in l&&o(h)&&h.length!==l["[[Value]]"]?(h.length=l["[[Value]]"],h.length===l["[[Value]]"]):(t(h,f,p(l)),!0)},le}var pe,st;function nn(){if(st)return pe;st=1;var r=E;return pe=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]]"])},pe}var fe,at;function qe(){if(at)return fe;at=1;var r=b,e=r("%TypeError%"),t=r("%SyntaxError%"),n=E,o=nn(),s={"Property Descriptor":function(i){var c={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var u in i)if(n(i,u)&&!c[u])return!1;var p=n(i,"[[Value]]"),h=n(i,"[[Get]]")||n(i,"[[Set]]");if(p&&h)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":o,"Iterator Record":function(i){return n(i,"[[Iterator]]")&&n(i,"[[NextMethod]]")&&n(i,"[[Done]]")},"PromiseCapability Record":function(i){return i&&n(i,"[[Resolve]]")&&typeof i["[[Resolve]]"]=="function"&&n(i,"[[Reject]]")&&typeof i["[[Reject]]"]=="function"&&n(i,"[[Promise]]")&&i["[[Promise]]"]&&typeof i["[[Promise]]"].then=="function"},"AsyncGeneratorRequest Record":function(i){return i&&n(i,"[[Completion]]")&&n(i,"[[Capability]]")&&s["PromiseCapability Record"](i["[[Capability]]"])}};return fe=function(i,c,u,p){var h=s[c];if(typeof h!="function")throw new t("unknown record type: "+c);if(i(p)!=="Object"||!h(p))throw new e(u+" must be a "+c)},fe}var ye,ct;function on(){return ct||(ct=1,ye=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}),ye}var he,ut;function sn(){return ut||(ut=1,he=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"}),he}var de,lt;function I(){if(lt)return de;lt=1;var r=sn();return de=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":r(t)},de}var ve,pt;function an(){if(pt)return ve;pt=1;var r=qe(),e=on(),t=I();return ve=function(o){return typeof o<"u"&&r(t,"Property Descriptor","Desc",o),e(o)},ve}var me,ft;function cn(){if(ft)return me;ft=1;var r=E,e=qe(),t=I();return me=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Get]]")&&!r(o,"[[Set]]")))},me}var _e,yt;function un(){if(yt)return _e;yt=1;var r=E,e=qe(),t=I();return _e=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Value]]")&&!r(o,"[[Writable]]")))},_e}var ge,ht;function ln(){return ht||(ht=1,ge=function(e){return typeof e=="string"||typeof e=="symbol"}),ge}var be,dt;function pn(){return dt||(dt=1,be=Number.isNaN||function(e){return e!==e}),be}var Pe,vt;function fn(){if(vt)return Pe;vt=1;var r=pn();return Pe=function(t,n){return t===n?t===0?1/t===1/n:!0:r(t)&&r(n)},Pe}var we,mt;function yn(){return mt||(mt=1,we=function(e){return!!e}),we}var Se,_t;function hn(){if(_t)return Se;_t=1;var r=E,e=b,t=e("%TypeError%"),n=I(),o=yn(),s=xt();return Se=function(i){if(n(i)!=="Object")throw new t("ToPropertyDescriptor requires an object");var c={};if(r(i,"enumerable")&&(c["[[Enumerable]]"]=o(i.enumerable)),r(i,"configurable")&&(c["[[Configurable]]"]=o(i.configurable)),r(i,"value")&&(c["[[Value]]"]=i.value),r(i,"writable")&&(c["[[Writable]]"]=o(i.writable)),r(i,"get")){var u=i.get;if(typeof u<"u"&&!s(u))throw new t("getter must be a function");c["[[Get]]"]=u}if(r(i,"set")){var p=i.set;if(typeof p<"u"&&!s(p))throw new t("setter must be a function");c["[[Set]]"]=p}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},Se}var Ae,gt;function dn(){if(gt)return Ae;gt=1;var r=b,e=r("%TypeError%"),t=en(),n=rn(),o=an(),s=cn(),a=un(),i=ln(),c=fn(),u=hn(),p=I();return Ae=function(f,l,m){if(p(f)!=="Object")throw new e("Assertion failed: Type(O) is not Object");if(!i(l))throw new e("Assertion failed: IsPropertyKey(P) is not true");var g=t({Type:p,IsDataDescriptor:a,IsAccessorDescriptor:s},m)?m:u(m);if(!t({Type:p,IsDataDescriptor:a,IsAccessorDescriptor:s},g))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,c,o,f,l,g)},Ae}var bt;function vn(){if(bt)return z;bt=1;var r=Zr(),e=r("%Reflect.construct%",!0),t=dn();try{t({},"",{"[[Get]]":function(){}})}catch{t=null}if(t&&e){var n={},o={};t(o,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),et.exports=function(a){try{e(a,o)}catch(i){return i===n}}}else et.exports=function(a){return typeof a=="function"&&!!a.prototype};return z}var Re,Pt;function mn(){if(Pt)return Re;Pt=1;var r=b,e=r("%Symbol.species%",!0),t=r("%TypeError%"),n=vn(),o=I();return Re=function(a,i){if(o(a)!=="Object")throw new t("Assertion failed: Type(O) is not Object");var c=a.constructor;if(typeof c>"u")return i;if(o(c)!=="Object")throw new t("O.constructor is not an Object");var u=e?c[e]:void 0;if(u==null)return i;if(n(u))return u;throw new t("no constructor found")},Re}var _n=Fe;_n();var gn=xt(),bn=mn(),Pn=I(),Nt=function(e,t){return new e(function(n){n(t)})},wn=Promise,Sn=function(e,t){return function(n){var o=t(),s=Nt(e,o),a=function(){return n};return s.then(a)}},An=function(e,t){return function(n){var o=t(),s=Nt(e,o),a=function(){throw n};return s.then(a)}},Te=function(e){var t=this;if(Pn(t)!=="Object")throw new TypeError("receiver is not an Object");var n=bn(t,wn),o=e,s=e;return gn(e)&&(o=Sn(n,e),s=An(n,e)),t.then(o,s)};if(Object.getOwnPropertyDescriptor){var wt=Object.getOwnPropertyDescriptor(Te,"name");wt&&wt.configurable&&Object.defineProperty(Te,"name",{configurable:!0,value:"finally"})}var Bt=Te,Rn=Fe,En=Bt,Gt=function(){return Rn(),typeof Promise.prototype.finally=="function"?Promise.prototype.finally:En},In=Fe,On=Gt,kn=Mt,Cn=function(){In();var e=On();return kn(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype.finally!==e}}),e},jn=V,Tn=Mt,Ln=Bt,Ut=Gt,$n=Cn,Vt=jn(Ut());Tn(Vt,{getPolyfill:Ut,implementation:Ln,shim:$n});var Dn=Vt;const Fn=jt,qn=Dn;var Mn=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 Fn({timeout:n,timeoutReason:`WebSocket request was rejected by timeout (${n} ms). RequestId: ${e}`});return this._items.set(e,o),qn(o.call(t),()=>this._deleteRequest(e,o))}_deleteRequest(e,t){this._items.get(e)===t&&this._items.delete(e)}},xn={createWebSocket:r=>new WebSocket(r),packMessage:null,unpackMessage:null,attachRequestId:null,extractRequestId:null,extractMessageData:r=>r.data,timeout:0,connectionTimeout:0},Me={};Me.throwIf=(r,e)=>{if(r)throw new Error(e)};Me.isPromise=r=>r&&typeof r.then=="function";const w=Ie,St=jt,{PromisedMap:Wn}=Z,Nn=Mn,At=xn,{throwIf:N,isPromise:Bn}=Me,B={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};class Gn{constructor(e,t){this._assertOptions(t),this._url=e,this._options=Object.assign({},At,t),this._requests=new Nn,this._promisedMap=new Wn,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===B.CONNECTING)}get isOpened(){return Boolean(this._ws&&this._ws.readyState===B.OPEN)}get isClosing(){return Boolean(this._ws&&this._ws.readyState===B.CLOSING)}get isClosed(){return Boolean(!this._ws||this._ws.readyState===B.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 s=this._options.attachRequestId(e,n);this.sendPacked(s)},o)}sendPacked(e){this._assertPackingHandlers();const t=this._options.packMessage(e);this.send(t)}send(e){N(!this.isOpened,"Can't send data because WebSocket is not opened."),this._ws.send(e),this._onSend.dispatchAsync(e)}waitUnpackedMessage(e,t={}){return N(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 St({timeout:e,timeoutReason:`Can't open WebSocket within allowed timeout: ${e} ms.`})}_createClosingController(){const e=this._options.timeout;this._closing=new St({timeout:e,timeoutReason:`Can't close WebSocket within allowed timeout: ${e} ms.`})}_createChannels(){this._onOpen=new w,this._onMessage=new w,this._onUnpackedMessage=new w,this._onResponse=new w,this._onSend=new w,this._onClose=new w,this._onError=new w}_createWS(){this._ws=this._options.createWebSocket(this._url),this._wsSubscription=new w.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),Bn(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(s){this._promisedMap.reject(n,s);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(!At.hasOwnProperty(t))throw new Error(`Unknown option: ${t}`)})}_assertPackingHandlers(){const{packMessage:e,unpackMessage:t}=this._options;N(!e||!t,"Please define 'options.packMessage / options.unpackMessage' for sending packed messages.")}_assertRequestIdHandlers(){const{attachRequestId:e,extractRequestId:t}=this._options;N(!e||!t,"Please define 'options.attachRequestId / options.extractRequestId' for sending requests.")}}var Un=Gn;let S=null;const Vn=Y(zt)??null,Hn=(r,e)=>{if(!r)return{hasWebsocket:!1,websocket:null,closeSocket:()=>null};try{S=new Un(`ws://localhost:${r}/`,{packMessage:t=>U(t),unpackMessage:t=>Le(t),attachRequestId:(t,n)=>Object.assign({requestId:n},t),extractRequestId:t=>t&&t.requestId,...e}),S.onError.addListener(t=>{console.error(`Websocket connection error: ${t}`)})}catch(t){Ee(`Error creating websocket: ${t}`)}return S==null||S.open(),{hasWebsocket:!0,websocket:S,closeSocket:()=>S?S.close():null}},Jn=Hn(Vn);async function Rt(r,e){if(!e)return r;if(!e.isOpened)try{await e.open()}catch(n){Ee(`Error opening websocket: ${n}`)}return e.isOpened?e.sendRequest({payload:U(r)}).then(n=>{Xt();try{return Le(n.content)}catch{return n.content}}).catch(n=>{Ee(`Error decoding websocket response: ${n}`)}):Promise.resolve(r)}async function Et({payloads:r,namespace:e,settings:t,accessToken:n}){var u,p,h;const o=(u=t==null?void 0:t.codec)==null?void 0:u.endpoint,s=(p=t==null?void 0:t.codec)==null?void 0:p.passAccessToken,a={"Content-Type":"application/json","X-Namespace":e};if(s)if(Yt(o))a.Authorization=`Bearer ${n}`;else return xe(),r;const i=(h=t==null?void 0:t.codec)!=null&&h.includeCredentials?{headers:a,credentials:"include",method:"POST",body:U(r)}:{headers:a,method:"POST",body:U(r)};return fetch(o+"/decode",i).then(f=>f.json()).then(f=>(Qt(),f)).catch(()=>(xe(),r))}function P(r){var t;if(r===null)return r;const e=We(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 Le(We(String((r==null?void 0:r.data)??"")))}catch(n){console.warn("Could not parse payload: ",n)}return r}const to=r=>{var t,n,o,s,a,i;const e=r;if((t=e==null?void 0:e.searchAttributes)!=null&&t.indexedFields){const c=(n=e==null?void 0:e.searchAttributes)==null?void 0:n.indexedFields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if((o=e==null?void 0:e.memo)!=null&&o.fields){const c=(s=e==null?void 0:e.memo)==null?void 0:s.fields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if((a=e==null?void 0:e.header)!=null&&a.fields){const c=(i=e==null?void 0:e.header)==null?void 0:i.fields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if(e!=null&&e.queryResult){const c=e==null?void 0:e.queryResult;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}return e},Ht=async(r,e,t,n)=>{var o,s;if(r)for(const a of Object.keys(r))if(a==="payloads"){let i;const c=r[a];if((o=t==null?void 0:t.codec)!=null&&o.endpoint){const u=await Et({payloads:{payloads:c},namespace:e,settings:t,accessToken:n});i=((u==null?void 0:u.payloads)??[]).map(P)}else i=c.map(P);r[a]=i}else if(a==="encodedAttributes"&&r[a]){let i;const c=r[a];if((s=t==null?void 0:t.codec)!=null&&s.endpoint){const u=await Et({payloads:{payloads:[c]},namespace:e,settings:t,accessToken:n});i=P(u==null?void 0:u.payloads[0])}else i=P(c);r[a]=i}else typeof r[a]=="object"&&(r[a]=await Ht(r[a],e,t,n));return r},Jt=async(r,e)=>{if(r)for(const t of Object.keys(r))if(t==="payloads"){let n;const o=r[t];e!=null&&e.hasWebsocket?n=await Promise.all((o??[]).map(async a=>await Rt(a,e.websocket))):n=o.map(P),r[t]=n}else if(t==="encodedAttributes"&&r[t]){let n;const o=r[t];e!=null&&e.hasWebsocket?n=await Rt(o,e.websocket):n=P(o),r[t]=n}else typeof r[t]=="object"&&(r[t]=await Jt(r[t],e));return r},ro=async({attributes:r,namespace:e,settings:t,accessToken:n})=>await Ht(r,e,t,n),no=async(r,e)=>await Jt(r,e??Jn),oo=(r,e=Zt)=>{var t;return Y(e)||((t=r==null?void 0:r.codec)==null?void 0:t.endpoint)||""},io=(r,e=er)=>{var t;return!!Y(e)||!!((t=r==null?void 0:r.codec)!=null&&t.passAccessToken)},so=(r,e=tr)=>{var t;return Y(e)||((t=r==null?void 0:r.codec)==null?void 0:t.includeCredentials)};export{io as a,so as b,ro as c,no as d,to as e,oo as g}; diff --git a/ui/assets/cloud/_app/immutable/chunks/index.0c42129f.js b/ui/assets/cloud/_app/immutable/chunks/index.14accc17.js similarity index 91% rename from ui/assets/cloud/_app/immutable/chunks/index.0c42129f.js rename to ui/assets/cloud/_app/immutable/chunks/index.14accc17.js index 0948069cdc..fcffb1b9c0 100644 --- a/ui/assets/cloud/_app/immutable/chunks/index.0c42129f.js +++ b/ui/assets/cloud/_app/immutable/chunks/index.14accc17.js @@ -1 +1 @@ -import{c as y,p as T,i as g}from"./is-http.1e6b12cd.js";import{g as v,a as k,b as w,c as P,d as S,e as R}from"./get-codec.f6f1b7ab.js";import{f as q}from"./format-date.7c274b02.js";import{f as E}from"./is-event-type.763b5d4b.js";import{g as I}from"./get-event-categorization.d6ff7ec7.js";import{s as W}from"./simplify-attributes.ba9e7501.js";const F=["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 F)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:o},{convertWithCodec:a=P,convertWithWebsocket:s=S,decodeAttributes:c=R,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=v(t,i),p=k(t,d),f=w(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},A=m?await a({attributes:u,namespace:n,settings:C,accessToken:o}):await s(u),b=c(A);return{type:l,...b}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:o})=>{const a=String(e.eventId),s=e.eventType,c=q(String(e.eventTime)),i=J(s),d=I(s),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:o}).then(l=>W(l));return{...e,name:s,id:a,eventType:s,timestamp:c,classification:i,category:d,attributes:r}},h=async({response:e,namespace:n,settings:t,accessToken:o})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:o})));export{h as t}; +import{c as y,p as T,i as g}from"./is-http.1e6b12cd.js";import{g as v,a as k,b as w,c as P,d as S,e as R}from"./get-codec.d4d968ba.js";import{f as q}from"./format-date.7c274b02.js";import{f as E}from"./is-event-type.763b5d4b.js";import{g as I}from"./get-event-categorization.d6ff7ec7.js";import{s as W}from"./simplify-attributes.ba9e7501.js";const F=["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 F)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:o},{convertWithCodec:a=P,convertWithWebsocket:s=S,decodeAttributes:c=R,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=v(t,i),p=k(t,d),f=w(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},A=m?await a({attributes:u,namespace:n,settings:C,accessToken:o}):await s(u),b=c(A);return{type:l,...b}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:o})=>{const a=String(e.eventId),s=e.eventType,c=q(String(e.eventTime)),i=J(s),d=I(s),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:o}).then(l=>W(l));return{...e,name:s,id:a,eventType:s,timestamp:c,classification:i,category:d,attributes:r}},h=async({response:e,namespace:n,settings:t,accessToken:o})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:o})));export{h as t}; diff --git a/ui/assets/cloud/_app/immutable/chunks/list-workflow-query.18f8dd4a.js b/ui/assets/cloud/_app/immutable/chunks/list-workflow-query.34f80e4f.js similarity index 95% rename from ui/assets/cloud/_app/immutable/chunks/list-workflow-query.18f8dd4a.js rename to ui/assets/cloud/_app/immutable/chunks/list-workflow-query.34f80e4f.js index 9f5617418e..4e6d99ab22 100644 --- a/ui/assets/cloud/_app/immutable/chunks/list-workflow-query.18f8dd4a.js +++ b/ui/assets/cloud/_app/immutable/chunks/list-workflow-query.34f80e4f.js @@ -1 +1 @@ -import{j as f,k as d,l as s,m}from"./format-time.c8c4770b.js";import{d as o}from"./index.deae5bd4.js";import{p as l}from"./stores.0bc9ce95.js";import{c as n}from"./cluster.c8f1465c.js";import{t as u}from"./versions.97216320.js";import{i as c}from"./version-check.d006b302.js";import{W as p}from"./index.a36c9cb0.js";const y=(t,r)=>{var i;return((i=t==null?void 0:t.visibilityStore)==null?void 0:i.includes("elasticsearch"))||c(r,"1.19")},w=t=>{var r;return(r=t==null?void 0:t.visibilityStore)==null?void 0:r.includes("elasticsearch")},a=o([l],([t])=>{var r,i,e;return(e=(i=(r=t.data)==null?void 0:r.settings)==null?void 0:i.runtimeEnvironment)==null?void 0:e.isCloud}),b=o([n,u,a],([t,r,i])=>y(t,r)||i),D=o([n,a],([t,r])=>w(t)||r),S={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},g=["workflowId","workflowType","timeRange","executionStatus","closeTime"],T=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),E=t=>{if(typeof t!="string")return!1;for(const r of g)if(r===t)return!0;return!1},V=(t,r,i)=>{const e=S[t];return r==="All"?"":f(r)||d(r)?i||p(b)?`${e} > "${s(r)}"`:`${e} BETWEEN "${s(r)}" AND "${m()}"`:`${e}="${r}"`},W=(t,r)=>Object.entries(t).map(([i,e])=>{if(E(i)&&T(e))return V(i,e,r)}).filter(Boolean),j=(t,r=!1)=>W(t,r).join(" and ");export{D as a,b as s,j as t}; +import{j as f,k as d,l as s,m}from"./format-time.c8c4770b.js";import{d as o}from"./index.deae5bd4.js";import{p as l}from"./stores.a2e3306d.js";import{c as n}from"./cluster.c8f1465c.js";import{t as u}from"./versions.97216320.js";import{i as c}from"./version-check.d006b302.js";import{W as p}from"./index.a36c9cb0.js";const y=(t,r)=>{var i;return((i=t==null?void 0:t.visibilityStore)==null?void 0:i.includes("elasticsearch"))||c(r,"1.19")},w=t=>{var r;return(r=t==null?void 0:t.visibilityStore)==null?void 0:r.includes("elasticsearch")},a=o([l],([t])=>{var r,i,e;return(e=(i=(r=t.data)==null?void 0:r.settings)==null?void 0:i.runtimeEnvironment)==null?void 0:e.isCloud}),b=o([n,u,a],([t,r,i])=>y(t,r)||i),D=o([n,a],([t,r])=>w(t)||r),S={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},g=["workflowId","workflowType","timeRange","executionStatus","closeTime"],T=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),E=t=>{if(typeof t!="string")return!1;for(const r of g)if(r===t)return!0;return!1},V=(t,r,i)=>{const e=S[t];return r==="All"?"":f(r)||d(r)?i||p(b)?`${e} > "${s(r)}"`:`${e} BETWEEN "${s(r)}" AND "${m()}"`:`${e}="${r}"`},W=(t,r)=>Object.entries(t).map(([i,e])=>{if(E(i)&&T(e))return V(i,e,r)}).filter(Boolean),j=(t,r=!1)=>W(t,r).join(" and ");export{D as a,b as s,j as t}; diff --git a/ui/assets/cloud/_app/immutable/chunks/namespaces-service.7d25bee8.js b/ui/assets/cloud/_app/immutable/chunks/namespaces-service.1ee08ff7.js similarity index 85% rename from ui/assets/cloud/_app/immutable/chunks/namespaces-service.7d25bee8.js rename to ui/assets/cloud/_app/immutable/chunks/namespaces-service.1ee08ff7.js index 5ce8e28f7c..eb922ccf9c 100644 --- a/ui/assets/cloud/_app/immutable/chunks/namespaces-service.7d25bee8.js +++ b/ui/assets/cloud/_app/immutable/chunks/namespaces-service.1ee08ff7.js @@ -1 +1 @@ -import{t as c}from"./toaster.16c48a98.js";import{n as o}from"./namespaces.85dd7810.js";import{p as i}from"./paginated.1afc2b79.js";import{r as p,a as f}from"./route-for-api.81ced9ce.js";const u={namespaces:[]};async function E(r,s=fetch){if(r.runtimeEnvironment.isCloud){o.set([]);return}try{const t=p("namespaces"),e=await i(async a=>f(t,{request:s,token:a,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})),{showTemporalSystemNamespace:n}=r,m=((e==null?void 0:e.namespaces)??[]).filter(a=>n||a.namespaceInfo.name!=="temporal-system");o.set(m)}catch{o.set([])}}async function N(r,s,t=fetch){var a;const[e]=u.namespaces;if((a=s==null?void 0:s.runtimeEnvironment)!=null&&a.isCloud)return e;const n=p("namespace",{namespace:r});return await f(n,{request:t,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})??e}export{N as a,E as f}; +import{t as c}from"./toaster.16c48a98.js";import{n as o}from"./namespaces.85dd7810.js";import{p as i}from"./paginated.1c9fb8c8.js";import{r as p,a as f}from"./route-for-api.75ac86ec.js";const u={namespaces:[]};async function E(r,s=fetch){if(r.runtimeEnvironment.isCloud){o.set([]);return}try{const t=p("namespaces"),e=await i(async a=>f(t,{request:s,token:a,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})),{showTemporalSystemNamespace:n}=r,m=((e==null?void 0:e.namespaces)??[]).filter(a=>n||a.namespaceInfo.name!=="temporal-system");o.set(m)}catch{o.set([])}}async function N(r,s,t=fetch){var a;const[e]=u.namespaces;if((a=s==null?void 0:s.runtimeEnvironment)!=null&&a.isCloud)return e;const n=p("namespace",{namespace:r});return await f(n,{request:t,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})??e}export{N as a,E as f}; diff --git a/ui/assets/cloud/_app/immutable/chunks/navigation.214139c0.js b/ui/assets/cloud/_app/immutable/chunks/navigation.58fc5f1f.js similarity index 70% rename from ui/assets/cloud/_app/immutable/chunks/navigation.214139c0.js rename to ui/assets/cloud/_app/immutable/chunks/navigation.58fc5f1f.js index 9de9fc77b1..75cf5e89a6 100644 --- a/ui/assets/cloud/_app/immutable/chunks/navigation.214139c0.js +++ b/ui/assets/cloud/_app/immutable/chunks/navigation.58fc5f1f.js @@ -1 +1 @@ -import{h as a}from"./singletons.1bc1b54a.js";a.disable_scroll_handling;const o=a.goto,t=a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;const i=a.before_navigate;a.after_navigate;export{i as b,o as g,t as i}; +import{h as a}from"./singletons.d80358da.js";a.disable_scroll_handling;const o=a.goto,t=a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;const i=a.before_navigate;a.after_navigate;export{i as b,o as g,t as i}; diff --git a/ui/assets/cloud/_app/immutable/chunks/paginated.1afc2b79.js b/ui/assets/cloud/_app/immutable/chunks/paginated.1c9fb8c8.js similarity index 89% rename from ui/assets/cloud/_app/immutable/chunks/paginated.1afc2b79.js rename to ui/assets/cloud/_app/immutable/chunks/paginated.1c9fb8c8.js index fc909b9716..d024b8a380 100644 --- a/ui/assets/cloud/_app/immutable/chunks/paginated.1afc2b79.js +++ b/ui/assets/cloud/_app/immutable/chunks/paginated.1c9fb8c8.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.81ced9ce.js";import{i as c}from"./persist-store.863ae031.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.75ac86ec.js";import{i as c}from"./persist-store.863ae031.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.4cd37fec.js b/ui/assets/cloud/_app/immutable/chunks/pagination.c403d909.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/pagination.4cd37fec.js rename to ui/assets/cloud/_app/immutable/chunks/pagination.c403d909.js index dea262b9a4..cfcc4a366d 100644 --- a/ui/assets/local/_app/immutable/chunks/pagination.4cd37fec.js +++ b/ui/assets/cloud/_app/immutable/chunks/pagination.c403d909.js @@ -1 +1 @@ -import{W as A,S as lt,b as at,a as st,N as he,A as Ut,Y as Wt,C as Ne,D as Ae,E as Se,U as Ct,a6 as Ht,Z as Lt,j as I,g as P,F as Ee,K as Dt,O as Fe,G as de,H as ge,I as be,J as ve,e as vt,f as G,z as Ke,h as Te,a7 as qt,k as b,m as j,p as K,q as T,u as p,n as le,$ as ht,c as L,d as q,R as re,X as We,L as h,am as Gt,T as me,r as Jt,a5 as pt,ad as Xt,o as Zt,s as yt,w as $,x as ee,y as Re}from"./index.a36c9cb0.js";import{p as nt}from"./stores.48be4ca9.js";import{d as Qt,w as xe}from"./index.deae5bd4.js";import{i as Yt,g as xt}from"./navigation.724a9b89.js";import{S as $t,a as el}from"./simple-select.6bb2c039.js";const tl={keepFocus:!0,noScroll:!0},Ce=async({parameter:e,value:t,url:s,goto:a=xt,allowEmpty:l=!1})=>{var r,i;const f=String(t);if(t?s.searchParams.set(e,f):l?s.searchParams.set(e,""):s.searchParams.delete(e),s.href!==window.location.href){const o=`/namespaces/${(i=(r=A(nt))==null?void 0:r.params)==null?void 0:i.namespace}/workflows`;s.pathname===o&&await Yt(g=>g.pathname===o),a(s,tl)}return t},Ve=100,Me=["100","250","500"],De="per-page",It=Me[Me.length-1],He=(e,t)=>Math.floor(e/t)+1,Ft=(e,t,s)=>isNaN(e)||e<=1?0:e>Mt(t,s)?s.length-t:Math.floor(t*(e-1)),ll=(e,t,s)=>{const a=He(e,t);return Ft(a,t,s)},wt=(e,t)=>Math.min(e-1,t-1),Mt=(e,t)=>Math.ceil(t.length/e),$e=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,al=(e=[],t=Ve,s=0)=>{t=zt(t);const a=ll(tt(s),t,e),l=xe(t),f=xe(a),r=xe(void 0),i=_=>{l.set(tt(_))},u=()=>{f.update(_=>{const d=_+A(l);return et(d,e)?_:$e(d,e)})},o=()=>{f.update(_=>{const d=_-A(l);return $e(d,e)})},g=_=>{const d=A(l),D=Ft(Number(_),d,e),Q=e.slice(D,D+d).length;return A(r)>Q-1&&r.set(Q-1),f.set(D)},ae=_=>{const d=He(Number(_),A(l));g(d)},k=_=>{for(let d=0;d{const d=k(_);return He(d,A(l))},E=_=>{const d=e.slice(A(f),A(f)+A(l)).length,D=wt(d,A(l));_<=D&&r.set(_)},w=()=>{const _=e.slice(A(f),A(f)+A(l)).length,d=wt(_,A(l));A(r)===void 0?r.set(0):A(r){const _=A(r)>=1?A(r)-1:0;r.set(_)},{subscribe:z}=Qt([f,l,r],([_,d,D])=>({items:e.slice(_,_+d),initialItem:e[0],hasPrevious:!et(_-d,e),hasNext:!et(_+d,e),startingIndex:_,endingIndex:$e(_+d-1,e),length:e.length,pageSize:d,currentPage:He(_,d),totalPages:Mt(d,e),activeRowIndex:D}));return{subscribe:z,adjustPageSize:i,next:u,previous:o,jumpToPage:g,jumpToIndex:ae,findIndex:k,findPage:S,nextRow:w,previousRow:V,setActiveRowIndex:E}},zt=(e=Ve)=>{const t=tt(e);return isNaN(t)||!t?Ve:t},tt=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)};function Pt(e,t,s){const a=e.slice();return a[13]=t[s],a}function kt(e){let t,s;return t=new el({props:{value:e[13]}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&1&&(f.value=a[13]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function sl(e){let t,s,a=e[0].map(Rt),l=[];for(let r=0;rP(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;rWt(t,"value",f)),t.$on("change",e[3]),{c(){Ne(t.$$.fragment)},l(i){Ae(t.$$.fragment,i)},m(i,u){Se(t,i,u),a=!0},p(i,[u]){const o=u&20?Ct(l,[u&4&&{id:i[2]},u&16&&Ht(i[4]),l[2]]):{};u&1025&&(o.$$scope={dirty:u,ctx:i}),!s&&u&2&&(s=!0,o.value=i[1],Lt(()=>s=!1)),t.$set(o)},i(i){a||(I(t.$$.fragment,i),a=!0)},o(i){P(t.$$.fragment,i),a=!1},d(i){Ee(t,i)}}}const Rt=e=>e.toString();function il(e,t,s){let a;Dt(e,nt,w=>s(11,a=w));let{$$slots:l={},$$scope:f}=t,{label:r=null}=t,{value:i}=t,{options:u=[]}=t,{parameter:o=null}=t;const g=`${o||r}-filter`;let k=o&&a.url.searchParams.get(o)||i&&i.toString();const S=()=>{Ce({parameter:o,value:k,url:a.url}).then(w=>s(5,i=w))};function E(w){k=w,s(1,k)}return e.$$set=w=>{s(4,t=he(he({},t),Fe(w))),"label"in w&&s(6,r=w.label),"value"in w&&s(5,i=w.value),"options"in w&&s(0,u=w.options),"parameter"in w&&s(7,o=w.parameter),"$$scope"in w&&s(10,f=w.$$scope)},t=Fe(t),[u,k,g,S,t,i,r,o,l,E,f]}class Bt extends lt{constructor(t){super(),at(this,t,il,ol,st,{label:6,value:5,options:0,parameter:7})}}const rl=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t+14}px`:"";function fl(e){let t,s;return{c(){t=j("div"),this.h()},l(a){t=K(a,"DIV",{class:!0}),T(t).forEach(b),this.h()},h(){p(t,"class",s="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(a,l){G(a,t,l)},p(a,[l]){l&1&&s!==(s="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+a[0].class+" svelte-1hpjfio")&&p(t,"class",s)},i:le,o:le,d(a){a&&b(t)}}}function ul(e,t,s){return e.$$set=a=>{s(0,t=he(he({},t),Fe(a)))},t=Fe(t),[t]}class Ot extends lt{constructor(t){super(),at(this,t,ul,fl,st,{})}}const cl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Nt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),_l=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),At=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),ml=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),St=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),dl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Et=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),gl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),jt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),bl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Kt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex});function Tt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function vl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function hl(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function Vt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function pl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function Il(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function wl(e){let t,s,a,l,f,r,i,u,o,g,ae,k,S,E,w,V,z,_,d,D,Q,fe,ue,ce,F,Y,M,pe,J,X,te,Ie,je,se,m,Z,Le,x,_e,ze,qe,Be,Oe,v,Ge,ot;ht(e[23]);const Je=e[22]["action-top-left"],B=de(Je,e,e[21],Kt),Xe=e[22]["action-top-center"],O=de(Xe,e,e[21],jt);let R=!e[0]&&Tt(e);const it=[hl,vl],ne=[];function rt(n,c){return n[1]?0:1}S=rt(e),E=ne[S]=it[S](e);const Ze=e[22]["action-top-right"],U=de(Ze,e,e[21],Et),ye=e[22].default,W=de(ye,e,e[21],St),Qe=e[22]["action-bottom-left"],C=de(Qe,e,e[21],At);let N=!e[0]&&Vt(e);const ft=[Il,pl],oe=[];function ut(n,c){return n[1]?0:1}m=ut(e),Z=oe[m]=ft[m](e);const Ye=e[22]["action-bottom-right"],H=de(Ye,e,e[21],Nt);return{c(){t=j("div"),s=j("div"),B&&B.c(),a=L(),l=j("nav"),O&&O.c(),f=L(),R&&R.c(),r=L(),i=j("div"),u=j("button"),o=j("span"),ae=L(),k=j("p"),E.c(),w=L(),V=j("button"),z=j("span"),d=L(),U&&U.c(),ue=L(),W&&W.c(),ce=L(),F=j("nav"),C&&C.c(),Y=L(),M=j("div"),N&&N.c(),pe=L(),J=j("div"),X=j("button"),te=j("span"),je=L(),se=j("p"),Z.c(),Le=L(),x=j("button"),_e=j("span"),qe=L(),H&&H.c(),this.h()},l(n){t=K(n,"DIV",{class:!0});var c=T(t);s=K(c,"DIV",{class:!0});var ie=T(s);B&&B.l(ie),a=q(ie),l=K(ie,"NAV",{style:!0,class:!0,"aria-label":!0});var y=T(l);O&&O.l(y),f=q(y),R&&R.l(y),r=q(y),i=K(y,"DIV",{class:!0});var we=T(i);u=K(we,"BUTTON",{class:!0,"aria-label":!0});var ct=T(u);o=K(ct,"SPAN",{class:!0}),T(o).forEach(b),ct.forEach(b),ae=q(we),k=K(we,"P",{});var _t=T(k);E.l(_t),_t.forEach(b),w=q(we),V=K(we,"BUTTON",{class:!0,"aria-label":!0});var mt=T(V);z=K(mt,"SPAN",{class:!0}),T(z).forEach(b),mt.forEach(b),we.forEach(b),d=q(y),U&&U.l(y),y.forEach(b),ie.forEach(b),ue=q(c),W&&W.l(c),ce=q(c),F=K(c,"NAV",{class:!0,"aria-label":!0});var Ue=T(F);C&&C.l(Ue),Y=q(Ue),M=K(Ue,"DIV",{class:!0});var Pe=T(M);N&&N.l(Pe),pe=q(Pe),J=K(Pe,"DIV",{class:!0});var ke=T(J);X=K(ke,"BUTTON",{class:!0,"aria-label":!0});var dt=T(X);te=K(dt,"SPAN",{class:!0}),T(te).forEach(b),dt.forEach(b),je=q(ke),se=K(ke,"P",{});var gt=T(se);Z.l(gt),gt.forEach(b),Le=q(ke),x=K(ke,"BUTTON",{class:!0,"aria-label":!0});var bt=T(x);_e=K(bt,"SPAN",{class:!0}),T(_e).forEach(b),bt.forEach(b),ke.forEach(b),qe=q(Pe),H&&H.l(Pe),Pe.forEach(b),Ue.forEach(b),c.forEach(b),this.h()},h(){p(o,"class","arrow arrow-left svelte-1780ds3"),re(o,"arrow-left-disabled",!e[6].hasPrevious),p(u,"class","caret svelte-1780ds3"),u.disabled=g=!e[6].hasPrevious,p(u,"aria-label","previous"),p(z,"class","arrow arrow-right svelte-1780ds3"),re(z,"arrow-right-disabled",!e[6].hasNext),p(V,"class","caret svelte-1780ds3"),V.disabled=_=!e[6].hasNext,p(V,"aria-label","next"),p(i,"class","flex items-center justify-center gap-3"),p(l,"style",e[7]),p(l,"class","flex flex-col justify-end gap-4 md:flex-row"),p(l,"aria-label",D=e[12]["aria-label"]),ht(()=>e[26].call(l)),p(s,"class",fe=We(`flex flex-col items-center gap-4 lg:flex-row ${e[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(te,"class","arrow arrow-left svelte-1780ds3"),re(te,"arrow-left-disabled",!e[6].hasPrevious),p(X,"class","caret svelte-1780ds3"),X.disabled=Ie=!e[6].hasPrevious,p(X,"aria-label","previous"),p(_e,"class","arrow arrow-right svelte-1780ds3"),re(_e,"arrow-right-disabled",!e[6].hasNext),p(x,"class","caret svelte-1780ds3"),x.disabled=ze=!e[6].hasNext,p(x,"aria-label","next"),p(J,"class","flex items-center justify-center gap-3"),p(M,"class","flex gap-4"),p(F,"class",Be=We(`flex ${e[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(F,"aria-label",Oe=e[12]["aria-label"]),p(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(n,c){G(n,t,c),h(t,s),B&&B.m(s,null),h(s,a),h(s,l),O&&O.m(l,null),h(l,f),R&&R.m(l,null),h(l,r),h(l,i),h(i,u),h(u,o),h(i,ae),h(i,k),ne[S].m(k,null),h(i,w),h(i,V),h(V,z),h(l,d),U&&U.m(l,null),Q=Gt(l,e[26].bind(l)),h(t,ue),W&&W.m(t,null),h(t,ce),h(t,F),C&&C.m(F,null),h(F,Y),h(F,M),N&&N.m(M,null),h(M,pe),h(M,J),h(J,X),h(X,te),h(J,je),h(J,se),oe[m].m(se,null),h(J,Le),h(J,x),h(x,_e),h(M,qe),H&&H.m(M,null),v=!0,Ge||(ot=[me(window,"resize",e[9]),me(window,"keydown",e[10]),me(window,"resize",e[23]),me(u,"click",e[24]),me(V,"click",e[25]),me(X,"click",e[27]),me(x,"click",e[28])],Ge=!0)},p(n,[c]){B&&B.p&&(!v||c&2097232)&&ge(B,Je,n,n[21],v?ve(Je,n[21],c,bl):be(n[21]),Kt),O&&O.p&&(!v||c&2097232)&&ge(O,Xe,n,n[21],v?ve(Xe,n[21],c,gl):be(n[21]),jt),n[0]?R&&(Ke(),P(R,1,1,()=>{R=null}),Te()):R?(R.p(n,c),c&1&&I(R,1)):(R=Tt(n),R.c(),I(R,1),R.m(l,r)),(!v||c&64)&&re(o,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&g!==(g=!n[6].hasPrevious))&&(u.disabled=g);let ie=S;S=rt(n),S===ie?ne[S].p(n,c):(Ke(),P(ne[ie],1,1,()=>{ne[ie]=null}),Te(),E=ne[S],E?E.p(n,c):(E=ne[S]=it[S](n),E.c()),I(E,1),E.m(k,null)),(!v||c&64)&&re(z,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&_!==(_=!n[6].hasNext))&&(V.disabled=_),U&&U.p&&(!v||c&2097232)&&ge(U,Ze,n,n[21],v?ve(Ze,n[21],c,dl):be(n[21]),Et),(!v||c&128)&&p(l,"style",n[7]),(!v||c&4096&&D!==(D=n[12]["aria-label"]))&&p(l,"aria-label",D),(!v||c&2048&&fe!==(fe=We(`flex flex-col items-center gap-4 lg:flex-row ${n[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(s,"class",fe),W&&W.p&&(!v||c&2097232)&&ge(W,ye,n,n[21],v?ve(ye,n[21],c,ml):be(n[21]),St),C&&C.p&&(!v||c&2097232)&&ge(C,Qe,n,n[21],v?ve(Qe,n[21],c,_l):be(n[21]),At),n[0]?N&&(Ke(),P(N,1,1,()=>{N=null}),Te()):N?(N.p(n,c),c&1&&I(N,1)):(N=Vt(n),N.c(),I(N,1),N.m(M,pe)),(!v||c&64)&&re(te,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&Ie!==(Ie=!n[6].hasPrevious))&&(X.disabled=Ie);let y=m;m=ut(n),m===y?oe[m].p(n,c):(Ke(),P(oe[y],1,1,()=>{oe[y]=null}),Te(),Z=oe[m],Z?Z.p(n,c):(Z=oe[m]=ft[m](n),Z.c()),I(Z,1),Z.m(se,null)),(!v||c&64)&&re(_e,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&ze!==(ze=!n[6].hasNext))&&(x.disabled=ze),H&&H.p&&(!v||c&2097232)&&ge(H,Ye,n,n[21],v?ve(Ye,n[21],c,cl):be(n[21]),Nt),(!v||c&2048&&Be!==(Be=We(`flex ${n[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(F,"class",Be),(!v||c&4096&&Oe!==(Oe=n[12]["aria-label"]))&&p(F,"aria-label",Oe)},i(n){v||(I(B,n),I(O,n),I(R),I(E),I(U,n),I(W,n),I(C,n),I(N),I(Z),I(H,n),v=!0)},o(n){P(B,n),P(O,n),P(R),P(E),P(U,n),P(W,n),P(C,n),P(N),P(Z),P(H,n),v=!1},d(n){n&&b(t),B&&B.d(n),O&&O.d(n),R&&R.d(),ne[S].d(),U&&U.d(n),Q(),W&&W.d(n),C&&C.d(n),N&&N.d(),oe[m].d(),H&&H.d(n),Ge=!1,Jt(ot)}}}function Pl(e,t,s){let a,l,f,r;const i=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating"];let u=pt(t,i),o,g=le,ae=()=>(g(),g=yt(l,m=>s(6,o=m)),l),k;Dt(e,nt,m=>s(20,k=m)),e.$$.on_destroy.push(()=>g());let{$$slots:S={},$$scope:E}=t;const w=Xt(S);var V;let{items:z}=t,{floatId:_=void 0}=t,{startingIndex:d=0}=t,{currentPageKey:D="page"}=t,{itemsPerPage:Q=null}=t,{updating:fe=!1}=t,ue,ce,F;Zt(()=>{M(),d>0&&Y()});const Y=()=>{Ce({parameter:D,value:o.currentPage,url:k.url})},M=()=>{var m;_&&s(18,ce=(m=document.getElementById(_))===null||m===void 0?void 0:m.clientWidth)};async function pe(m){switch(m.code){case"ArrowRight":case"KeyL":o.hasNext&&(l.next(),Y());break;case"ArrowLeft":case"KeyH":o.hasPrevious&&(l.previous(),Y());break;case"ArrowUp":case"KeyK":l.previousRow();break;case"ArrowDown":case"KeyJ":l.nextRow();break}}function J(){s(2,ue=window.innerWidth)}const X=()=>{l.previous(),Y()},te=()=>{l.next(),Y()};function Ie(){F=this.clientHeight,s(3,F)}const je=()=>l.previous(),se=()=>l.next();return e.$$set=m=>{t=he(he({},t),Fe(m)),s(12,u=pt(t,i)),"items"in m&&s(13,z=m.items),"floatId"in m&&s(14,_=m.floatId),"startingIndex"in m&&s(15,d=m.startingIndex),"currentPageKey"in m&&s(16,D=m.currentPageKey),"itemsPerPage"in m&&s(0,Q=m.itemsPerPage),"updating"in m&&s(1,fe=m.updating),"$$scope"in m&&s(21,E=m.$$scope)},e.$$.update=()=>{e.$$.dirty&1048577&&s(5,a=Q!==null?String(Q):String(zt(k.url.searchParams.get(De))).toString()),e.$$.dirty&1048608&&(parseInt(a,10)>parseInt(It,10)?Ce({parameter:De,value:It,url:k.url}):Me.includes(a)||Ce({parameter:De,value:Ve,url:k.url})),e.$$.dirty&40992&&ae(s(4,l=al(z,a,d))),e.$$.dirty&1245248&&s(19,f=s(17,V=k.url.searchParams.get(D))!==null&&V!==void 0?V:o.currentPage),e.$$.dirty&524304&&l.jumpToPage(f),e.$$.dirty&262156&&s(7,r=rl({width:ce,height:F,screenWidth:ue}))},[Q,fe,ue,F,l,a,o,r,Y,M,pe,w,u,z,_,d,D,V,ce,f,k,E,S,J,X,te,Ie,je,se]}class El extends lt{constructor(t){super(),at(this,t,Pl,wl,st,{items:13,floatId:14,startingIndex:15,currentPageKey:16,itemsPerPage:0,updating:1})}}export{Bt as F,El as P,Ce as u}; +import{W as A,S as lt,b as at,a as st,N as he,A as Ut,Y as Wt,C as Ne,D as Ae,E as Se,U as Ct,a6 as Ht,Z as Lt,j as I,g as P,F as Ee,K as Dt,O as Fe,G as de,H as ge,I as be,J as ve,e as vt,f as G,z as Ke,h as Te,a7 as qt,k as b,m as j,p as K,q as T,u as p,n as le,$ as ht,c as L,d as q,R as re,X as We,L as h,am as Gt,T as me,r as Jt,a5 as pt,ad as Xt,o as Zt,s as yt,w as $,x as ee,y as Re}from"./index.a36c9cb0.js";import{p as nt}from"./stores.a2e3306d.js";import{d as Qt,w as xe}from"./index.deae5bd4.js";import{i as Yt,g as xt}from"./navigation.58fc5f1f.js";import{S as $t,a as el}from"./simple-select.6bb2c039.js";const tl={keepFocus:!0,noScroll:!0},Ce=async({parameter:e,value:t,url:s,goto:a=xt,allowEmpty:l=!1})=>{var r,i;const f=String(t);if(t?s.searchParams.set(e,f):l?s.searchParams.set(e,""):s.searchParams.delete(e),s.href!==window.location.href){const o=`/namespaces/${(i=(r=A(nt))==null?void 0:r.params)==null?void 0:i.namespace}/workflows`;s.pathname===o&&await Yt(g=>g.pathname===o),a(s,tl)}return t},Ve=100,Me=["100","250","500"],De="per-page",It=Me[Me.length-1],He=(e,t)=>Math.floor(e/t)+1,Ft=(e,t,s)=>isNaN(e)||e<=1?0:e>Mt(t,s)?s.length-t:Math.floor(t*(e-1)),ll=(e,t,s)=>{const a=He(e,t);return Ft(a,t,s)},wt=(e,t)=>Math.min(e-1,t-1),Mt=(e,t)=>Math.ceil(t.length/e),$e=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,al=(e=[],t=Ve,s=0)=>{t=zt(t);const a=ll(tt(s),t,e),l=xe(t),f=xe(a),r=xe(void 0),i=_=>{l.set(tt(_))},u=()=>{f.update(_=>{const d=_+A(l);return et(d,e)?_:$e(d,e)})},o=()=>{f.update(_=>{const d=_-A(l);return $e(d,e)})},g=_=>{const d=A(l),D=Ft(Number(_),d,e),Q=e.slice(D,D+d).length;return A(r)>Q-1&&r.set(Q-1),f.set(D)},ae=_=>{const d=He(Number(_),A(l));g(d)},k=_=>{for(let d=0;d{const d=k(_);return He(d,A(l))},E=_=>{const d=e.slice(A(f),A(f)+A(l)).length,D=wt(d,A(l));_<=D&&r.set(_)},w=()=>{const _=e.slice(A(f),A(f)+A(l)).length,d=wt(_,A(l));A(r)===void 0?r.set(0):A(r){const _=A(r)>=1?A(r)-1:0;r.set(_)},{subscribe:z}=Qt([f,l,r],([_,d,D])=>({items:e.slice(_,_+d),initialItem:e[0],hasPrevious:!et(_-d,e),hasNext:!et(_+d,e),startingIndex:_,endingIndex:$e(_+d-1,e),length:e.length,pageSize:d,currentPage:He(_,d),totalPages:Mt(d,e),activeRowIndex:D}));return{subscribe:z,adjustPageSize:i,next:u,previous:o,jumpToPage:g,jumpToIndex:ae,findIndex:k,findPage:S,nextRow:w,previousRow:V,setActiveRowIndex:E}},zt=(e=Ve)=>{const t=tt(e);return isNaN(t)||!t?Ve:t},tt=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)};function Pt(e,t,s){const a=e.slice();return a[13]=t[s],a}function kt(e){let t,s;return t=new el({props:{value:e[13]}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&1&&(f.value=a[13]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function sl(e){let t,s,a=e[0].map(Rt),l=[];for(let r=0;rP(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;rWt(t,"value",f)),t.$on("change",e[3]),{c(){Ne(t.$$.fragment)},l(i){Ae(t.$$.fragment,i)},m(i,u){Se(t,i,u),a=!0},p(i,[u]){const o=u&20?Ct(l,[u&4&&{id:i[2]},u&16&&Ht(i[4]),l[2]]):{};u&1025&&(o.$$scope={dirty:u,ctx:i}),!s&&u&2&&(s=!0,o.value=i[1],Lt(()=>s=!1)),t.$set(o)},i(i){a||(I(t.$$.fragment,i),a=!0)},o(i){P(t.$$.fragment,i),a=!1},d(i){Ee(t,i)}}}const Rt=e=>e.toString();function il(e,t,s){let a;Dt(e,nt,w=>s(11,a=w));let{$$slots:l={},$$scope:f}=t,{label:r=null}=t,{value:i}=t,{options:u=[]}=t,{parameter:o=null}=t;const g=`${o||r}-filter`;let k=o&&a.url.searchParams.get(o)||i&&i.toString();const S=()=>{Ce({parameter:o,value:k,url:a.url}).then(w=>s(5,i=w))};function E(w){k=w,s(1,k)}return e.$$set=w=>{s(4,t=he(he({},t),Fe(w))),"label"in w&&s(6,r=w.label),"value"in w&&s(5,i=w.value),"options"in w&&s(0,u=w.options),"parameter"in w&&s(7,o=w.parameter),"$$scope"in w&&s(10,f=w.$$scope)},t=Fe(t),[u,k,g,S,t,i,r,o,l,E,f]}class Bt extends lt{constructor(t){super(),at(this,t,il,ol,st,{label:6,value:5,options:0,parameter:7})}}const rl=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t+14}px`:"";function fl(e){let t,s;return{c(){t=j("div"),this.h()},l(a){t=K(a,"DIV",{class:!0}),T(t).forEach(b),this.h()},h(){p(t,"class",s="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(a,l){G(a,t,l)},p(a,[l]){l&1&&s!==(s="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+a[0].class+" svelte-1hpjfio")&&p(t,"class",s)},i:le,o:le,d(a){a&&b(t)}}}function ul(e,t,s){return e.$$set=a=>{s(0,t=he(he({},t),Fe(a)))},t=Fe(t),[t]}class Ot extends lt{constructor(t){super(),at(this,t,ul,fl,st,{})}}const cl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Nt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),_l=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),At=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),ml=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),St=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),dl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Et=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),gl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),jt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),bl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Kt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex});function Tt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function vl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function hl(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function Vt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function pl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function Il(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function wl(e){let t,s,a,l,f,r,i,u,o,g,ae,k,S,E,w,V,z,_,d,D,Q,fe,ue,ce,F,Y,M,pe,J,X,te,Ie,je,se,m,Z,Le,x,_e,ze,qe,Be,Oe,v,Ge,ot;ht(e[23]);const Je=e[22]["action-top-left"],B=de(Je,e,e[21],Kt),Xe=e[22]["action-top-center"],O=de(Xe,e,e[21],jt);let R=!e[0]&&Tt(e);const it=[hl,vl],ne=[];function rt(n,c){return n[1]?0:1}S=rt(e),E=ne[S]=it[S](e);const Ze=e[22]["action-top-right"],U=de(Ze,e,e[21],Et),ye=e[22].default,W=de(ye,e,e[21],St),Qe=e[22]["action-bottom-left"],C=de(Qe,e,e[21],At);let N=!e[0]&&Vt(e);const ft=[Il,pl],oe=[];function ut(n,c){return n[1]?0:1}m=ut(e),Z=oe[m]=ft[m](e);const Ye=e[22]["action-bottom-right"],H=de(Ye,e,e[21],Nt);return{c(){t=j("div"),s=j("div"),B&&B.c(),a=L(),l=j("nav"),O&&O.c(),f=L(),R&&R.c(),r=L(),i=j("div"),u=j("button"),o=j("span"),ae=L(),k=j("p"),E.c(),w=L(),V=j("button"),z=j("span"),d=L(),U&&U.c(),ue=L(),W&&W.c(),ce=L(),F=j("nav"),C&&C.c(),Y=L(),M=j("div"),N&&N.c(),pe=L(),J=j("div"),X=j("button"),te=j("span"),je=L(),se=j("p"),Z.c(),Le=L(),x=j("button"),_e=j("span"),qe=L(),H&&H.c(),this.h()},l(n){t=K(n,"DIV",{class:!0});var c=T(t);s=K(c,"DIV",{class:!0});var ie=T(s);B&&B.l(ie),a=q(ie),l=K(ie,"NAV",{style:!0,class:!0,"aria-label":!0});var y=T(l);O&&O.l(y),f=q(y),R&&R.l(y),r=q(y),i=K(y,"DIV",{class:!0});var we=T(i);u=K(we,"BUTTON",{class:!0,"aria-label":!0});var ct=T(u);o=K(ct,"SPAN",{class:!0}),T(o).forEach(b),ct.forEach(b),ae=q(we),k=K(we,"P",{});var _t=T(k);E.l(_t),_t.forEach(b),w=q(we),V=K(we,"BUTTON",{class:!0,"aria-label":!0});var mt=T(V);z=K(mt,"SPAN",{class:!0}),T(z).forEach(b),mt.forEach(b),we.forEach(b),d=q(y),U&&U.l(y),y.forEach(b),ie.forEach(b),ue=q(c),W&&W.l(c),ce=q(c),F=K(c,"NAV",{class:!0,"aria-label":!0});var Ue=T(F);C&&C.l(Ue),Y=q(Ue),M=K(Ue,"DIV",{class:!0});var Pe=T(M);N&&N.l(Pe),pe=q(Pe),J=K(Pe,"DIV",{class:!0});var ke=T(J);X=K(ke,"BUTTON",{class:!0,"aria-label":!0});var dt=T(X);te=K(dt,"SPAN",{class:!0}),T(te).forEach(b),dt.forEach(b),je=q(ke),se=K(ke,"P",{});var gt=T(se);Z.l(gt),gt.forEach(b),Le=q(ke),x=K(ke,"BUTTON",{class:!0,"aria-label":!0});var bt=T(x);_e=K(bt,"SPAN",{class:!0}),T(_e).forEach(b),bt.forEach(b),ke.forEach(b),qe=q(Pe),H&&H.l(Pe),Pe.forEach(b),Ue.forEach(b),c.forEach(b),this.h()},h(){p(o,"class","arrow arrow-left svelte-1780ds3"),re(o,"arrow-left-disabled",!e[6].hasPrevious),p(u,"class","caret svelte-1780ds3"),u.disabled=g=!e[6].hasPrevious,p(u,"aria-label","previous"),p(z,"class","arrow arrow-right svelte-1780ds3"),re(z,"arrow-right-disabled",!e[6].hasNext),p(V,"class","caret svelte-1780ds3"),V.disabled=_=!e[6].hasNext,p(V,"aria-label","next"),p(i,"class","flex items-center justify-center gap-3"),p(l,"style",e[7]),p(l,"class","flex flex-col justify-end gap-4 md:flex-row"),p(l,"aria-label",D=e[12]["aria-label"]),ht(()=>e[26].call(l)),p(s,"class",fe=We(`flex flex-col items-center gap-4 lg:flex-row ${e[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(te,"class","arrow arrow-left svelte-1780ds3"),re(te,"arrow-left-disabled",!e[6].hasPrevious),p(X,"class","caret svelte-1780ds3"),X.disabled=Ie=!e[6].hasPrevious,p(X,"aria-label","previous"),p(_e,"class","arrow arrow-right svelte-1780ds3"),re(_e,"arrow-right-disabled",!e[6].hasNext),p(x,"class","caret svelte-1780ds3"),x.disabled=ze=!e[6].hasNext,p(x,"aria-label","next"),p(J,"class","flex items-center justify-center gap-3"),p(M,"class","flex gap-4"),p(F,"class",Be=We(`flex ${e[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(F,"aria-label",Oe=e[12]["aria-label"]),p(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(n,c){G(n,t,c),h(t,s),B&&B.m(s,null),h(s,a),h(s,l),O&&O.m(l,null),h(l,f),R&&R.m(l,null),h(l,r),h(l,i),h(i,u),h(u,o),h(i,ae),h(i,k),ne[S].m(k,null),h(i,w),h(i,V),h(V,z),h(l,d),U&&U.m(l,null),Q=Gt(l,e[26].bind(l)),h(t,ue),W&&W.m(t,null),h(t,ce),h(t,F),C&&C.m(F,null),h(F,Y),h(F,M),N&&N.m(M,null),h(M,pe),h(M,J),h(J,X),h(X,te),h(J,je),h(J,se),oe[m].m(se,null),h(J,Le),h(J,x),h(x,_e),h(M,qe),H&&H.m(M,null),v=!0,Ge||(ot=[me(window,"resize",e[9]),me(window,"keydown",e[10]),me(window,"resize",e[23]),me(u,"click",e[24]),me(V,"click",e[25]),me(X,"click",e[27]),me(x,"click",e[28])],Ge=!0)},p(n,[c]){B&&B.p&&(!v||c&2097232)&&ge(B,Je,n,n[21],v?ve(Je,n[21],c,bl):be(n[21]),Kt),O&&O.p&&(!v||c&2097232)&&ge(O,Xe,n,n[21],v?ve(Xe,n[21],c,gl):be(n[21]),jt),n[0]?R&&(Ke(),P(R,1,1,()=>{R=null}),Te()):R?(R.p(n,c),c&1&&I(R,1)):(R=Tt(n),R.c(),I(R,1),R.m(l,r)),(!v||c&64)&&re(o,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&g!==(g=!n[6].hasPrevious))&&(u.disabled=g);let ie=S;S=rt(n),S===ie?ne[S].p(n,c):(Ke(),P(ne[ie],1,1,()=>{ne[ie]=null}),Te(),E=ne[S],E?E.p(n,c):(E=ne[S]=it[S](n),E.c()),I(E,1),E.m(k,null)),(!v||c&64)&&re(z,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&_!==(_=!n[6].hasNext))&&(V.disabled=_),U&&U.p&&(!v||c&2097232)&&ge(U,Ze,n,n[21],v?ve(Ze,n[21],c,dl):be(n[21]),Et),(!v||c&128)&&p(l,"style",n[7]),(!v||c&4096&&D!==(D=n[12]["aria-label"]))&&p(l,"aria-label",D),(!v||c&2048&&fe!==(fe=We(`flex flex-col items-center gap-4 lg:flex-row ${n[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(s,"class",fe),W&&W.p&&(!v||c&2097232)&&ge(W,ye,n,n[21],v?ve(ye,n[21],c,ml):be(n[21]),St),C&&C.p&&(!v||c&2097232)&&ge(C,Qe,n,n[21],v?ve(Qe,n[21],c,_l):be(n[21]),At),n[0]?N&&(Ke(),P(N,1,1,()=>{N=null}),Te()):N?(N.p(n,c),c&1&&I(N,1)):(N=Vt(n),N.c(),I(N,1),N.m(M,pe)),(!v||c&64)&&re(te,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&Ie!==(Ie=!n[6].hasPrevious))&&(X.disabled=Ie);let y=m;m=ut(n),m===y?oe[m].p(n,c):(Ke(),P(oe[y],1,1,()=>{oe[y]=null}),Te(),Z=oe[m],Z?Z.p(n,c):(Z=oe[m]=ft[m](n),Z.c()),I(Z,1),Z.m(se,null)),(!v||c&64)&&re(_e,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&ze!==(ze=!n[6].hasNext))&&(x.disabled=ze),H&&H.p&&(!v||c&2097232)&&ge(H,Ye,n,n[21],v?ve(Ye,n[21],c,cl):be(n[21]),Nt),(!v||c&2048&&Be!==(Be=We(`flex ${n[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(F,"class",Be),(!v||c&4096&&Oe!==(Oe=n[12]["aria-label"]))&&p(F,"aria-label",Oe)},i(n){v||(I(B,n),I(O,n),I(R),I(E),I(U,n),I(W,n),I(C,n),I(N),I(Z),I(H,n),v=!0)},o(n){P(B,n),P(O,n),P(R),P(E),P(U,n),P(W,n),P(C,n),P(N),P(Z),P(H,n),v=!1},d(n){n&&b(t),B&&B.d(n),O&&O.d(n),R&&R.d(),ne[S].d(),U&&U.d(n),Q(),W&&W.d(n),C&&C.d(n),N&&N.d(),oe[m].d(),H&&H.d(n),Ge=!1,Jt(ot)}}}function Pl(e,t,s){let a,l,f,r;const i=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating"];let u=pt(t,i),o,g=le,ae=()=>(g(),g=yt(l,m=>s(6,o=m)),l),k;Dt(e,nt,m=>s(20,k=m)),e.$$.on_destroy.push(()=>g());let{$$slots:S={},$$scope:E}=t;const w=Xt(S);var V;let{items:z}=t,{floatId:_=void 0}=t,{startingIndex:d=0}=t,{currentPageKey:D="page"}=t,{itemsPerPage:Q=null}=t,{updating:fe=!1}=t,ue,ce,F;Zt(()=>{M(),d>0&&Y()});const Y=()=>{Ce({parameter:D,value:o.currentPage,url:k.url})},M=()=>{var m;_&&s(18,ce=(m=document.getElementById(_))===null||m===void 0?void 0:m.clientWidth)};async function pe(m){switch(m.code){case"ArrowRight":case"KeyL":o.hasNext&&(l.next(),Y());break;case"ArrowLeft":case"KeyH":o.hasPrevious&&(l.previous(),Y());break;case"ArrowUp":case"KeyK":l.previousRow();break;case"ArrowDown":case"KeyJ":l.nextRow();break}}function J(){s(2,ue=window.innerWidth)}const X=()=>{l.previous(),Y()},te=()=>{l.next(),Y()};function Ie(){F=this.clientHeight,s(3,F)}const je=()=>l.previous(),se=()=>l.next();return e.$$set=m=>{t=he(he({},t),Fe(m)),s(12,u=pt(t,i)),"items"in m&&s(13,z=m.items),"floatId"in m&&s(14,_=m.floatId),"startingIndex"in m&&s(15,d=m.startingIndex),"currentPageKey"in m&&s(16,D=m.currentPageKey),"itemsPerPage"in m&&s(0,Q=m.itemsPerPage),"updating"in m&&s(1,fe=m.updating),"$$scope"in m&&s(21,E=m.$$scope)},e.$$.update=()=>{e.$$.dirty&1048577&&s(5,a=Q!==null?String(Q):String(zt(k.url.searchParams.get(De))).toString()),e.$$.dirty&1048608&&(parseInt(a,10)>parseInt(It,10)?Ce({parameter:De,value:It,url:k.url}):Me.includes(a)||Ce({parameter:De,value:Ve,url:k.url})),e.$$.dirty&40992&&ae(s(4,l=al(z,a,d))),e.$$.dirty&1245248&&s(19,f=s(17,V=k.url.searchParams.get(D))!==null&&V!==void 0?V:o.currentPage),e.$$.dirty&524304&&l.jumpToPage(f),e.$$.dirty&262156&&s(7,r=rl({width:ce,height:F,screenWidth:ue}))},[Q,fe,ue,F,l,a,o,r,Y,M,pe,w,u,z,_,d,D,V,ce,f,k,E,S,J,X,te,Ie,je,se]}class El extends lt{constructor(t){super(),at(this,t,Pl,wl,st,{items:13,floatId:14,startingIndex:15,currentPageKey:16,itemsPerPage:0,updating:1})}}export{Bt as F,El as P,Ce as u}; diff --git a/ui/assets/cloud/_app/immutable/chunks/paths.4fd8dc14.js b/ui/assets/cloud/_app/immutable/chunks/paths.4fd8dc14.js new file mode 100644 index 0000000000..0bc8aa0283 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/chunks/paths.4fd8dc14.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_1yhm3sj)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_1yhm3sj)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/cloud/_app/immutable/chunks/paths.bb4ad9d4.js b/ui/assets/cloud/_app/immutable/chunks/paths.bb4ad9d4.js deleted file mode 100644 index 784f13e35c..0000000000 --- a/ui/assets/cloud/_app/immutable/chunks/paths.bb4ad9d4.js +++ /dev/null @@ -1 +0,0 @@ -var s;const e=((s=globalThis.__sveltekit_qi5o9d)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_qi5o9d)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/cloud/_app/immutable/chunks/pollers-service.ed01de2f.js b/ui/assets/cloud/_app/immutable/chunks/pollers-service.4cba4448.js similarity index 93% rename from ui/assets/cloud/_app/immutable/chunks/pollers-service.ed01de2f.js rename to ui/assets/cloud/_app/immutable/chunks/pollers-service.4cba4448.js index 22510a9abe..9f11fac531 100644 --- a/ui/assets/cloud/_app/immutable/chunks/pollers-service.ed01de2f.js +++ b/ui/assets/cloud/_app/immutable/chunks/pollers-service.4cba4448.js @@ -1 +1 @@ -import{r as y,a as l}from"./route-for-api.81ced9ce.js";async function m(n,r=fetch){const o=y("task-queue",n),a=await l(o,{request:r,params:{taskQueueType:"1"}}),s=await l(o,{request:r,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(t,u)=>{const c=t[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return t[u.identity]={lastAccessTime:!c.lastAccessTime||c.lastAccessTimea.pollers.some(t=>{if(e.identity===t.identity)return e.taskQueueTypes=[...t.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const T=s.pollers.length?s.pollers:a.pollers,p=s.pollers.length?s.taskQueueStatus:a.taskQueueStatus;return{pollers:T,taskQueueStatus:p}}export{m as g}; +import{r as y,a as l}from"./route-for-api.75ac86ec.js";async function m(n,r=fetch){const o=y("task-queue",n),a=await l(o,{request:r,params:{taskQueueType:"1"}}),s=await l(o,{request:r,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(t,u)=>{const c=t[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return t[u.identity]={lastAccessTime:!c.lastAccessTime||c.lastAccessTimea.pollers.some(t=>{if(e.identity===t.identity)return e.taskQueueTypes=[...t.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const T=s.pollers.length?s.pollers:a.pollers,p=s.pollers.length?s.taskQueueStatus:a.taskQueueStatus;return{pollers:T,taskQueueStatus:p}}export{m as g}; diff --git a/ui/assets/cloud/_app/immutable/chunks/query-service.f44e9910.js b/ui/assets/cloud/_app/immutable/chunks/query-service.d960637f.js similarity index 91% rename from ui/assets/cloud/_app/immutable/chunks/query-service.f44e9910.js rename to ui/assets/cloud/_app/immutable/chunks/query-service.d960637f.js index 85de875eae..ec664a6de3 100644 --- a/ui/assets/cloud/_app/immutable/chunks/query-service.f44e9910.js +++ b/ui/assets/cloud/_app/immutable/chunks/query-service.d960637f.js @@ -1 +1 @@ -import{r as f,a as l,d as m}from"./route-for-api.81ced9ce.js";import{g as h,a as T,c as _,d as g}from"./get-codec.f6f1b7ab.js";import{s as d,p as I}from"./parse-with-big-int.0036a80a.js";import{p as P}from"./is-http.1e6b12cd.js";const O=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)},W=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,n){t=await t;const c=await W(e,t),s=f("query",c);return await l(s,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function B(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(O(n.body.message)):a(n)})})}async function b(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:c}=n??{queryResult:{payloads:[]}};let s=c.payloads;try{if(s[0]){const o=h(e),y=T(e,P),p={...e,codec:{...e==null?void 0:e.codec,endpoint:o,passAccessToken:y}},i=o?await _({attributes:c,namespace:t.namespace,settings:p,accessToken:r}):await g(c);s=i==null?void 0:i.payloads[0]}return I(s)}catch{return typeof s!="string"?d(s):s}})}async function C(t,e,r){return b({...t,queryType:"__stack_trace"},e,r)}export{b as a,C as b,B as g}; +import{r as f,a as l,d as m}from"./route-for-api.75ac86ec.js";import{g as h,a as T,c as _,d as g}from"./get-codec.d4d968ba.js";import{s as d,p as I}from"./parse-with-big-int.0036a80a.js";import{p as P}from"./is-http.1e6b12cd.js";const O=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)},W=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,n){t=await t;const c=await W(e,t),s=f("query",c);return await l(s,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function B(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(O(n.body.message)):a(n)})})}async function b(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:c}=n??{queryResult:{payloads:[]}};let s=c.payloads;try{if(s[0]){const o=h(e),y=T(e,P),p={...e,codec:{...e==null?void 0:e.codec,endpoint:o,passAccessToken:y}},i=o?await _({attributes:c,namespace:t.namespace,settings:p,accessToken:r}):await g(c);s=i==null?void 0:i.payloads[0]}return I(s)}catch{return typeof s!="string"?d(s):s}})}async function C(t,e,r){return b({...t,queryType:"__stack_trace"},e,r)}export{b as a,C as b,B as g}; diff --git a/ui/assets/cloud/_app/immutable/chunks/route-for-api.81ced9ce.js b/ui/assets/cloud/_app/immutable/chunks/route-for-api.75ac86ec.js similarity index 97% rename from ui/assets/cloud/_app/immutable/chunks/route-for-api.81ced9ce.js rename to ui/assets/cloud/_app/immutable/chunks/route-for-api.75ac86ec.js index 9f484b1ef2..4947b697ce 100644 --- a/ui/assets/cloud/_app/immutable/chunks/route-for-api.81ced9ce.js +++ b/ui/assets/cloud/_app/immutable/chunks/route-for-api.75ac86ec.js @@ -1 +1 @@ -import{f as l,e as $,t as W}from"./route-for.70dfbf18.js";import{g}from"./auth-user.3a7bc4db.js";import{n as O,W as P}from"./index.a36c9cb0.js";import{w as N}from"./index.deae5bd4.js";import{t as _}from"./toaster.16c48a98.js";import{i as z}from"./is-network-error.cb50de70.js";import{h as e}from"./has.48bed8a5.js";import{i as S}from"./persist-store.863ae031.js";import{p as L}from"./stores.0bc9ce95.js";import{b as H}from"./paths.bb4ad9d4.js";const K=N(null);function X(c=l){const n="",o=!n.startsWith("http");let s="";return o?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const B=(c,n=_,o=K,s=l)=>{if(typeof c=="string")return n.push({variant:"error",message:c});if(c instanceof Error)return n.push({variant:"error",message:c.message});if(y(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(b(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(z(c))throw n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c),c.report=!1,c},wn=(c,n=l)=>{var s;const o=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(y(c)&&n){window.location.assign($(o));return}if(b(c)&&n){window.location.assign($(o));return}},y=c=>T(c,401),b=c=>T(c,403),T=(c,n)=>e(c,"statusCode")?c.statusCode===n:e(c,"status")?c.status===n:!1,fn=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",D=async(c,n={},o=10)=>{const{params:s={},request:f=fetch,token:i,shouldRetry:t=!1,notifyOnError:U=!0,handleError:E=B,onRetry:A=O,onError:k,retryInterval:x=5e3,isBrowser:I=l}=n;let{options:d}=n;const C=i?{next_page_token:i}:{},q=new URLSearchParams({...s,...C}),R=W(c,q);try{d=G(d,I),d=await J(d,I);const u=await f(R,d),w=await u.json(),{status:h,statusText:F}=u;if(!u.ok)if(k&&S(k))k({status:h,statusText:F,body:w});else throw{statusCode:u.status,statusText:u.statusText,response:u,message:(w==null?void 0:w.message)??u.statusText};return w}catch(u){if(U){if(E(u),t&&o>0)return new Promise(w=>{const h=o-1;A(h),setTimeout(()=>{w(D(c,n,h))},x)})}else throw u}},G=(c,n=l)=>{const o={credentials:"include",...c};return o.headers=Q(c==null?void 0:c.headers,n),o},J=async(c,n=l)=>(g().accessToken?(c.headers=await v(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=M(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await v(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),v=async(c,n,o=l)=>{if(c||(c={}),!o)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},M=(c={},n,o=l)=>(o&&n&&(c["Authorization-Extras"]=n),c),Q=(c,n=l)=>{if(c||(c={}),!n)return c;const o="_csrf=",s="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(o));i&&!c[s]&&(i=i.trim().slice(o.length),c[s]=i)}catch(f){console.error(f)}return c},V=(c,n)=>c?c.replace("%namespace%",n):"",Y=c=>{var i,t;let n="";const o=(i=P(L).data)==null?void 0:i.webUrl,s=o&&c,f=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=o:f?(console.warn("Using fallback api url, web url not found"),n=V(globalThis.AppConfig.apiUrl,c)):n=X(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${H}`,n},Z=(c,n)=>(c.startsWith("/")&&(c=c.slice(1)),`${Y(n)}/api/v1/${c}`),j=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function tn(c,n,o=!0){o&&(n=j(n));const s={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":"/search-attributes",settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,user:"/me","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 Z(s[c],n==null?void 0:n.namespace)}export{D as a,wn as b,b as c,fn as d,X as g,B as h,y as i,K as n,tn as r}; +import{f as l,e as $,t as W}from"./route-for.087ea268.js";import{g}from"./auth-user.3a7bc4db.js";import{n as O,W as P}from"./index.a36c9cb0.js";import{w as N}from"./index.deae5bd4.js";import{t as _}from"./toaster.16c48a98.js";import{i as z}from"./is-network-error.cb50de70.js";import{h as e}from"./has.48bed8a5.js";import{i as S}from"./persist-store.863ae031.js";import{p as L}from"./stores.a2e3306d.js";import{b as H}from"./paths.4fd8dc14.js";const K=N(null);function X(c=l){const n="",o=!n.startsWith("http");let s="";return o?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const B=(c,n=_,o=K,s=l)=>{if(typeof c=="string")return n.push({variant:"error",message:c});if(c instanceof Error)return n.push({variant:"error",message:c.message});if(y(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(b(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(z(c))throw n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c),c.report=!1,c},wn=(c,n=l)=>{var s;const o=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(y(c)&&n){window.location.assign($(o));return}if(b(c)&&n){window.location.assign($(o));return}},y=c=>T(c,401),b=c=>T(c,403),T=(c,n)=>e(c,"statusCode")?c.statusCode===n:e(c,"status")?c.status===n:!1,fn=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",D=async(c,n={},o=10)=>{const{params:s={},request:f=fetch,token:i,shouldRetry:t=!1,notifyOnError:U=!0,handleError:E=B,onRetry:A=O,onError:k,retryInterval:x=5e3,isBrowser:I=l}=n;let{options:d}=n;const C=i?{next_page_token:i}:{},q=new URLSearchParams({...s,...C}),R=W(c,q);try{d=G(d,I),d=await J(d,I);const u=await f(R,d),w=await u.json(),{status:h,statusText:F}=u;if(!u.ok)if(k&&S(k))k({status:h,statusText:F,body:w});else throw{statusCode:u.status,statusText:u.statusText,response:u,message:(w==null?void 0:w.message)??u.statusText};return w}catch(u){if(U){if(E(u),t&&o>0)return new Promise(w=>{const h=o-1;A(h),setTimeout(()=>{w(D(c,n,h))},x)})}else throw u}},G=(c,n=l)=>{const o={credentials:"include",...c};return o.headers=Q(c==null?void 0:c.headers,n),o},J=async(c,n=l)=>(g().accessToken?(c.headers=await v(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=M(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await v(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),v=async(c,n,o=l)=>{if(c||(c={}),!o)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},M=(c={},n,o=l)=>(o&&n&&(c["Authorization-Extras"]=n),c),Q=(c,n=l)=>{if(c||(c={}),!n)return c;const o="_csrf=",s="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(o));i&&!c[s]&&(i=i.trim().slice(o.length),c[s]=i)}catch(f){console.error(f)}return c},V=(c,n)=>c?c.replace("%namespace%",n):"",Y=c=>{var i,t;let n="";const o=(i=P(L).data)==null?void 0:i.webUrl,s=o&&c,f=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=o:f?(console.warn("Using fallback api url, web url not found"),n=V(globalThis.AppConfig.apiUrl,c)):n=X(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${H}`,n},Z=(c,n)=>(c.startsWith("/")&&(c=c.slice(1)),`${Y(n)}/api/v1/${c}`),j=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function tn(c,n,o=!0){o&&(n=j(n));const s={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":"/search-attributes",settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,user:"/me","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 Z(s[c],n==null?void 0:n.namespace)}export{D as a,wn as b,b as c,fn as d,X as g,B as h,y as i,K as n,tn as r}; diff --git a/ui/assets/cloud/_app/immutable/chunks/route-for.70dfbf18.js b/ui/assets/cloud/_app/immutable/chunks/route-for.087ea268.js similarity index 97% rename from ui/assets/cloud/_app/immutable/chunks/route-for.70dfbf18.js rename to ui/assets/cloud/_app/immutable/chunks/route-for.087ea268.js index 575037550a..40cbc68767 100644 --- a/ui/assets/cloud/_app/immutable/chunks/route-for.70dfbf18.js +++ b/ui/assets/cloud/_app/immutable/chunks/route-for.087ea268.js @@ -1 +1 @@ -import{b as o}from"./paths.bb4ad9d4.js";const p=!0,h=p,F=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e};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 w=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,S=()=>`${o}/select-namespace`,f=e=>`${u(e)}/workflows`,P=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const n=c(e);return`${f(t)}/${n}/${r}`},i=e=>`${u(e)}/schedules`,U=({namespace:e})=>`${i({namespace:e})}/create`,k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}`},v=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}/edit`},R=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return F(`${t}`,e)},y=e=>`${s(e)}/workers`,L=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},W=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,q=e=>`${s(e)}/pending-activities`,A=e=>{const{settings:r,searchParams:t,originUrl:n}=e,a=new URL(`${o}/auth/sso`,r.baseUrl);let l=r.auth.options??[];return l=[...l,"returnUrl"],l.forEach(g=>{if(!t)return;const $=t.get(g);$&&a.searchParams.set(g,$)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},C=(e="",r=h)=>{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`},E=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`;export{P as a,w as b,i as c,E as d,C as e,h as f,R as g,y as h,q as i,W as j,b as k,m as l,S as m,L as n,u as o,k as p,U as q,f as r,v as s,F as t,A as u}; +import{b as o}from"./paths.4fd8dc14.js";const p=!0,h=p,F=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e};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 w=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,S=()=>`${o}/select-namespace`,f=e=>`${u(e)}/workflows`,P=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const n=c(e);return`${f(t)}/${n}/${r}`},i=e=>`${u(e)}/schedules`,U=({namespace:e})=>`${i({namespace:e})}/create`,k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}`},v=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}/edit`},R=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return F(`${t}`,e)},y=e=>`${s(e)}/workers`,L=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},W=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,q=e=>`${s(e)}/pending-activities`,A=e=>{const{settings:r,searchParams:t,originUrl:n}=e,a=new URL(`${o}/auth/sso`,r.baseUrl);let l=r.auth.options??[];return l=[...l,"returnUrl"],l.forEach(g=>{if(!t)return;const $=t.get(g);$&&a.searchParams.set(g,$)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},C=(e="",r=h)=>{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`},E=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`;export{P as a,w as b,i as c,E as d,C as e,h as f,R as g,y as h,q as i,W as j,b as k,m as l,S as m,L as n,u as o,k as p,U as q,f as r,v as s,F as t,A as u}; diff --git a/ui/assets/local/_app/immutable/chunks/schedule-form-view.811c5f7d.js b/ui/assets/cloud/_app/immutable/chunks/schedule-form-view.e833bcc4.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/schedule-form-view.811c5f7d.js rename to ui/assets/cloud/_app/immutable/chunks/schedule-form-view.e833bcc4.js index c1550a5f7f..0387d85114 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-form-view.811c5f7d.js +++ b/ui/assets/cloud/_app/immutable/chunks/schedule-form-view.e833bcc4.js @@ -1,4 +1,4 @@ -import{S as we,b as ke,a as ye,A as L,Y as R,m as S,w as Z,c as C,C as z,p as M,q as $,x as X,k as v,d as P,D as G,u as T,f as se,L as h,E as J,Z as q,j as U,g as A,F as Y,T as Ee,n as be,r as mn,a7 as qe,R as Ie,ab as Qe,G as gn,z as je,h as Ke,H as pn,I as vn,J as bn,K as Re,v as hn,y as wn}from"./index.a36c9cb0.js";import{l as kn,e as yn}from"./schedules.b90ce875.js";import{I as On}from"./icon.33859671.js";import{B as En}from"./button.dbc76a4c.js";import{L as In}from"./loading.bcb9b7b8.js";import{I as ve}from"./input.a193633b.js";import{T as He}from"./tab.e1caed35.js";import{S as Sn}from"./simple-split-button.e333abd5.js";import{g as Fe,w as Ze,m as Xe}from"./calendar.81d1e381.js";import{T as Mn,a as xe}from"./toggle-buttons.dc1431b3.js";import{p as dn}from"./stores.48be4ca9.js";import{S as $n}from"./schedule-frequency.98fac758.js";import{p as Dn,c as Wn}from"./route-for.6dec3e74.js";function Tn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p;return{c(){e=S("div"),t=S("button"),s=Z("days"),u=C(),i=S("button"),a=Z("hrs"),o=C(),l=S("button"),r=Z("min"),c=C(),f=S("button"),d=Z("sec"),this.h()},l(O){e=M(O,"DIV",{class:!0});var y=$(e);t=M(y,"BUTTON",{class:!0});var I=$(t);s=X(I,"days"),I.forEach(v),u=P(y),i=M(y,"BUTTON",{class:!0});var V=$(i);a=X(V,"hrs"),V.forEach(v),o=P(y),l=M(y,"BUTTON",{class:!0});var F=$(l);r=X(F,"min"),F.forEach(v),c=P(y),f=M(y,"BUTTON",{class:!0});var k=$(f);d=X(k,"sec"),k.forEach(v),y.forEach(v),this.h()},h(){T(t,"class","days-label"),T(i,"class","hrs-label"),T(l,"class","min-label"),T(f,"class","sec-label"),T(e,"class","flex flex-col gap-4 p-4")},m(O,y){se(O,e,y),h(e,t),h(t,s),h(e,u),h(e,i),h(i,a),h(e,o),h(e,l),h(l,r),h(e,c),h(e,f),h(f,d),g||(p=[Ee(t,"click",n[14]),Ee(i,"click",n[15]),Ee(l,"click",n[16]),Ee(f,"click",n[17])],g=!0)},p:be,d(O){O&&v(e),g=!1,mn(p)}}}function Vn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p,O,y,I,V,F,k,E,j,x,K,ee,b,m,B,N,H,Q,ie,fe,ue,ce,_e,he,te,pe,ae,de,W,Se,me,Oe;function Me(D){n[9](D)}let $e={id:"days",placeholder:"00",suffix:"days",maxLength:3,error:n[7](n[0])};n[0]!==void 0&&($e.value=n[0]),c=new ve({props:$e}),L.push(()=>R(c,"value",Me));function Ce(D){n[10](D)}let De={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(De.value=n[1]),I=new ve({props:De}),L.push(()=>R(I,"value",Ce));function Pe(D){n[11](D)}let We={id:"minute",placeholder:"00",suffix:"min",maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(We.value=n[2]),K=new ve({props:We}),L.push(()=>R(K,"value",Pe));function Be(D){n[12](D)}let Te={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Te.value=n[3]),Q=new ve({props:Te}),L.push(()=>R(Q,"value",Be));function Ne(D){n[13](D)}let Ve={id:"phase",placeholder:"00",error:n[7](n[4]),unroundRight:!0,class:"h-10"};return n[5]!==void 0&&(Ve.value=n[5]),de=new ve({props:Ve}),L.push(()=>R(de,"value",Ne)),me=new Sn({props:{class:"rounded-tr rounded-br bg-offWhite",buttonClass:"border border-gray-900 border-l-0",id:"phase",label:n[6],position:"right",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("h3"),s=Z("Recurring Time"),u=C(),i=S("p"),a=Z(`Specify the time interval for this schedule to run (for example every 5 +import{S as we,b as ke,a as ye,A as L,Y as R,m as S,w as Z,c as C,C as z,p as M,q as $,x as X,k as v,d as P,D as G,u as T,f as se,L as h,E as J,Z as q,j as U,g as A,F as Y,T as Ee,n as be,r as mn,a7 as qe,R as Ie,ab as Qe,G as gn,z as je,h as Ke,H as pn,I as vn,J as bn,K as Re,v as hn,y as wn}from"./index.a36c9cb0.js";import{l as kn,e as yn}from"./schedules.9cce6c1a.js";import{I as On}from"./icon.33859671.js";import{B as En}from"./button.dbc76a4c.js";import{L as In}from"./loading.bcb9b7b8.js";import{I as ve}from"./input.a193633b.js";import{T as He}from"./tab.e1caed35.js";import{S as Sn}from"./simple-split-button.e333abd5.js";import{g as Fe,w as Ze,m as Xe}from"./calendar.81d1e381.js";import{T as Mn,a as xe}from"./toggle-buttons.fba008ff.js";import{p as dn}from"./stores.a2e3306d.js";import{S as $n}from"./schedule-frequency.b0daddd1.js";import{p as Dn,c as Wn}from"./route-for.087ea268.js";function Tn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p;return{c(){e=S("div"),t=S("button"),s=Z("days"),u=C(),i=S("button"),a=Z("hrs"),o=C(),l=S("button"),r=Z("min"),c=C(),f=S("button"),d=Z("sec"),this.h()},l(O){e=M(O,"DIV",{class:!0});var y=$(e);t=M(y,"BUTTON",{class:!0});var I=$(t);s=X(I,"days"),I.forEach(v),u=P(y),i=M(y,"BUTTON",{class:!0});var V=$(i);a=X(V,"hrs"),V.forEach(v),o=P(y),l=M(y,"BUTTON",{class:!0});var F=$(l);r=X(F,"min"),F.forEach(v),c=P(y),f=M(y,"BUTTON",{class:!0});var k=$(f);d=X(k,"sec"),k.forEach(v),y.forEach(v),this.h()},h(){T(t,"class","days-label"),T(i,"class","hrs-label"),T(l,"class","min-label"),T(f,"class","sec-label"),T(e,"class","flex flex-col gap-4 p-4")},m(O,y){se(O,e,y),h(e,t),h(t,s),h(e,u),h(e,i),h(i,a),h(e,o),h(e,l),h(l,r),h(e,c),h(e,f),h(f,d),g||(p=[Ee(t,"click",n[14]),Ee(i,"click",n[15]),Ee(l,"click",n[16]),Ee(f,"click",n[17])],g=!0)},p:be,d(O){O&&v(e),g=!1,mn(p)}}}function Vn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p,O,y,I,V,F,k,E,j,x,K,ee,b,m,B,N,H,Q,ie,fe,ue,ce,_e,he,te,pe,ae,de,W,Se,me,Oe;function Me(D){n[9](D)}let $e={id:"days",placeholder:"00",suffix:"days",maxLength:3,error:n[7](n[0])};n[0]!==void 0&&($e.value=n[0]),c=new ve({props:$e}),L.push(()=>R(c,"value",Me));function Ce(D){n[10](D)}let De={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(De.value=n[1]),I=new ve({props:De}),L.push(()=>R(I,"value",Ce));function Pe(D){n[11](D)}let We={id:"minute",placeholder:"00",suffix:"min",maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(We.value=n[2]),K=new ve({props:We}),L.push(()=>R(K,"value",Pe));function Be(D){n[12](D)}let Te={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Te.value=n[3]),Q=new ve({props:Te}),L.push(()=>R(Q,"value",Be));function Ne(D){n[13](D)}let Ve={id:"phase",placeholder:"00",error:n[7](n[4]),unroundRight:!0,class:"h-10"};return n[5]!==void 0&&(Ve.value=n[5]),de=new ve({props:Ve}),L.push(()=>R(de,"value",Ne)),me=new Sn({props:{class:"rounded-tr rounded-br bg-offWhite",buttonClass:"border border-gray-900 border-l-0",id:"phase",label:n[6],position:"right",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("h3"),s=Z("Recurring Time"),u=C(),i=S("p"),a=Z(`Specify the time interval for this schedule to run (for example every 5 minutes).`),o=C(),l=S("div"),r=S("div"),z(c.$$.fragment),d=C(),g=S("div"),p=Z(":"),O=C(),y=S("div"),z(I.$$.fragment),F=C(),k=S("div"),E=Z(":"),j=C(),x=S("div"),z(K.$$.fragment),b=C(),m=S("div"),B=Z(":"),N=C(),H=S("div"),z(Q.$$.fragment),fe=C(),ue=S("h3"),ce=Z("Offset"),_e=C(),he=S("p"),te=Z(`Specify the time to offset when this schedule will run (for example 15 min past the hour).`),pe=C(),ae=S("div"),z(de.$$.fragment),Se=C(),z(me.$$.fragment),this.h()},l(D){e=M(D,"DIV",{class:!0});var _=$(e);t=M(_,"H3",{class:!0});var w=$(t);s=X(w,"Recurring Time"),w.forEach(v),u=P(_),i=M(_,"P",{});var oe=$(i);a=X(oe,`Specify the time interval for this schedule to run (for example every 5 minutes).`),oe.forEach(v),o=P(_),l=M(_,"DIV",{class:!0});var ne=$(l);r=M(ne,"DIV",{class:!0});var le=$(r);G(c.$$.fragment,le),le.forEach(v),d=P(ne),g=M(ne,"DIV",{});var ge=$(g);p=X(ge,":"),ge.forEach(v),O=P(ne),y=M(ne,"DIV",{class:!0});var re=$(y);G(I.$$.fragment,re),re.forEach(v),F=P(ne),k=M(ne,"DIV",{});var Ue=$(k);E=X(Ue,":"),Ue.forEach(v),j=P(ne),x=M(ne,"DIV",{class:!0});var Ae=$(x);G(K.$$.fragment,Ae),Ae.forEach(v),b=P(ne),m=M(ne,"DIV",{});var ze=$(m);B=X(ze,":"),ze.forEach(v),N=P(ne),H=M(ne,"DIV",{class:!0});var Ge=$(H);G(Q.$$.fragment,Ge),Ge.forEach(v),ne.forEach(v),fe=P(_),ue=M(_,"H3",{class:!0});var Je=$(ue);ce=X(Je,"Offset"),Je.forEach(v),_e=P(_),he=M(_,"P",{});var Ye=$(he);te=X(Ye,`Specify the time to offset when this schedule will run (for example 15 min diff --git a/ui/assets/cloud/_app/immutable/chunks/schedule-frequency.9f1a589f.js b/ui/assets/cloud/_app/immutable/chunks/schedule-frequency.b0daddd1.js similarity index 98% rename from ui/assets/cloud/_app/immutable/chunks/schedule-frequency.9f1a589f.js rename to ui/assets/cloud/_app/immutable/chunks/schedule-frequency.b0daddd1.js index c31b2a6fc4..ba53b3d0f7 100644 --- a/ui/assets/cloud/_app/immutable/chunks/schedule-frequency.9f1a589f.js +++ b/ui/assets/cloud/_app/immutable/chunks/schedule-frequency.b0daddd1.js @@ -1 +1 @@ -import{r as m,a as p}from"./route-for-api.81ced9ce.js";import{s as $}from"./parse-with-big-int.0036a80a.js";import{v as k}from"./toaster.16c48a98.js";import{S as w,b as L,a as D,m as v,p as S,q as b,k as f,u as _,f as y,n as q,N as I,O as C,w as g,c as H,x as E,d as R,L as T,y as j}from"./index.a36c9cb0.js";import{g as F,w as M,m as O}from"./calendar.81d1e381.js";const X=async(l,e=fetch)=>{let n="";const c=a=>{var i;return n=((i=a==null?void 0:a.body)==null?void 0:i.message)??`Error fetching schedules: ${a.status}: ${a.statusText}`},s=m("schedules",{namespace:l}),{schedules:o,nextPageToken:t}=await p(s,{params:{},onError:c,request:e})??{schedules:[],nextPageToken:""};return{schedules:o,nextPageToken:String(t),error:n}};async function Y(l,e=fetch){const n=m("schedule",l);return p(n,{request:e})}async function Z(l,e=fetch){const n=m("schedule.delete",l);return p(n,{request:e,options:{method:"DELETE"}})}async function ee({namespace:l,body:e}){let n="";const c=t=>{var a;return n=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error creating schedule: ${t.status}: ${t.statusText}`},s=m("schedules",{namespace:l}),{conflictToken:o}=await p(s,{options:{method:"POST",body:$({request_id:k(),...e})},shouldRetry:!1,onError:c});return{conflictToken:o,error:n}}async function te({namespace:l,scheduleId:e,body:n}){let c="";const s=t=>{var a;return c=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error editing schedule: ${t.status}: ${t.statusText}`},o=m("schedule",{namespace:l,scheduleId:e});return await p(o,{options:{method:"POST",body:$({request_id:k(),...n})},shouldRetry:!1,onError:s}),{error:c}}async function se({namespace:l,scheduleId:e,reason:n}){const c={patch:{pause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1,onError:o=>console.error(o)})}async function ae({namespace:l,scheduleId:e,reason:n}){const c={patch:{unpause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1})}const ne=({preset:l,month:e,dayOfMonth:n,dayOfWeek:c,hour:s,minute:o})=>{let t="";const a=!s||!parseInt(s)||parseInt(s)<12?"am":"pm",r=`${(!s||!parseInt(s)?"12":parseInt(s)<=12?s:(parseInt(s)-12).toString()).padStart(2,"0")}:${o?o.padStart(2,"0"):"00"}${a}`;if(l==="week"){const u=F.find(d=>d.value===c);u?t=`${u.label} at ${r}`:t=`${c.split(",").map(P=>M.find(A=>A.value===P).label).join(", ")} at ${r}`}else if(l==="month")if(e==="*")t=`Every ${n} of the month at ${r}`;else{const d=e.split(",").map(h=>O.find(x=>x.value===h).label).join(", ");t=`Every ${n} of ${d} at ${r}`}return t},N=(l="",e=!1)=>{let n="";if(!l)return n;const c=parseInt(l.slice(0,-1)),s=Math.floor(c/(60*60*24));let o=c-(s>0?s*60*60*24:0);const t=Math.floor(o/(60*60));o=o-(t>0?t*60*60:0);const a=Math.floor(o/60),i=a>0?o-a*60:o,r=`${t?t.toString().padStart(2,"0"):"00"}hrs`,u=`${a?a.toString().padStart(2,"0"):"00"}min`,d=`${i?i.toString().padStart(2,"0"):"00"}sec`,h=e?"Offset":"Every";return s?n=`${h} ${s}days:${r}:${u}:${d}`:t?n=`${h} ${r}:${u}:${d}`:a?n=`${h} ${u}:${d}`:i&&(n=`${h} ${d}`),n};function U(l){let e,n=N(l[1])+"",c,s,o,t=N(l[2],!0)+"",a;return{c(){e=v("p"),c=g(n),s=H(),o=v("p"),a=g(t),this.h()},l(i){e=S(i,"P",{"data-testid":!0});var r=b(e);c=E(r,n),r.forEach(f),s=R(i),o=S(i,"P",{"data-testid":!0});var u=b(o);a=E(u,t),u.forEach(f),this.h()},h(){_(e,"data-testid","schedule-interval-frequency"),_(o,"data-testid","schedule-phase-frequency")},m(i,r){y(i,e,r),T(e,c),y(i,s,r),y(i,o,r),T(o,a)},p:q,d(i){i&&f(e),i&&f(s),i&&f(o)}}}function W(l){var o;let e,n=(((o=l[0])==null?void 0:o.comment)??"")+"",c,s;return{c(){e=v("p"),c=g(n),s=g(" UTC"),this.h()},l(t){e=S(t,"P",{"data-testid":!0});var a=b(e);c=E(a,n),s=E(a," UTC"),a.forEach(f),this.h()},h(){_(e,"data-testid","schedule-calendar-frequency")},m(t,a){y(t,e,a),T(e,c),T(e,s)},p(t,a){var i;a&1&&n!==(n=(((i=t[0])==null?void 0:i.comment)??"")+"")&&j(c,n)},d(t){t&&f(e)}}}function B(l){let e,n;function c(t,a){return t[0]?W:U}let s=c(l),o=s(l);return{c(){e=v("div"),o.c(),this.h()},l(t){e=S(t,"DIV",{class:!0});var a=b(e);o.l(a),a.forEach(f),this.h()},h(){_(e,"class",n="flex flex-col "+l[3].class)},m(t,a){y(t,e,a),o.m(e,null)},p(t,[a]){s===(s=c(t))&&o?o.p(t,a):(o.d(1),o=s(t),o&&(o.c(),o.m(e,null))),a&8&&n!==(n="flex flex-col "+t[3].class)&&_(e,"class",n)},i:q,o:q,d(t){t&&f(e),o.d()}}}function V(l,e,n){let{calendar:c=void 0}=e,{interval:s=void 0}=e;const o=s==null?void 0:s.interval,t=s==null?void 0:s.phase;return l.$$set=a=>{n(3,e=I(I({},e),C(a))),"calendar"in a&&n(0,c=a.calendar),"interval"in a&&n(4,s=a.interval)},e=C(e),[c,o,t,e,s]}class oe extends w{constructor(e){super(),L(this,e,V,B,D,{calendar:0,interval:4})}}export{oe as S,Y as a,ne as b,ee as c,Z as d,te as e,X as f,se as p,ae as u}; +import{r as m,a as p}from"./route-for-api.75ac86ec.js";import{s as $}from"./parse-with-big-int.0036a80a.js";import{v as k}from"./toaster.16c48a98.js";import{S as w,b as L,a as D,m as v,p as S,q as b,k as f,u as _,f as y,n as q,N as I,O as C,w as g,c as H,x as E,d as R,L as T,y as j}from"./index.a36c9cb0.js";import{g as F,w as M,m as O}from"./calendar.81d1e381.js";const X=async(l,e=fetch)=>{let n="";const c=a=>{var i;return n=((i=a==null?void 0:a.body)==null?void 0:i.message)??`Error fetching schedules: ${a.status}: ${a.statusText}`},s=m("schedules",{namespace:l}),{schedules:o,nextPageToken:t}=await p(s,{params:{},onError:c,request:e})??{schedules:[],nextPageToken:""};return{schedules:o,nextPageToken:String(t),error:n}};async function Y(l,e=fetch){const n=m("schedule",l);return p(n,{request:e})}async function Z(l,e=fetch){const n=m("schedule.delete",l);return p(n,{request:e,options:{method:"DELETE"}})}async function ee({namespace:l,body:e}){let n="";const c=t=>{var a;return n=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error creating schedule: ${t.status}: ${t.statusText}`},s=m("schedules",{namespace:l}),{conflictToken:o}=await p(s,{options:{method:"POST",body:$({request_id:k(),...e})},shouldRetry:!1,onError:c});return{conflictToken:o,error:n}}async function te({namespace:l,scheduleId:e,body:n}){let c="";const s=t=>{var a;return c=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error editing schedule: ${t.status}: ${t.statusText}`},o=m("schedule",{namespace:l,scheduleId:e});return await p(o,{options:{method:"POST",body:$({request_id:k(),...n})},shouldRetry:!1,onError:s}),{error:c}}async function se({namespace:l,scheduleId:e,reason:n}){const c={patch:{pause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1,onError:o=>console.error(o)})}async function ae({namespace:l,scheduleId:e,reason:n}){const c={patch:{unpause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1})}const ne=({preset:l,month:e,dayOfMonth:n,dayOfWeek:c,hour:s,minute:o})=>{let t="";const a=!s||!parseInt(s)||parseInt(s)<12?"am":"pm",r=`${(!s||!parseInt(s)?"12":parseInt(s)<=12?s:(parseInt(s)-12).toString()).padStart(2,"0")}:${o?o.padStart(2,"0"):"00"}${a}`;if(l==="week"){const u=F.find(d=>d.value===c);u?t=`${u.label} at ${r}`:t=`${c.split(",").map(P=>M.find(A=>A.value===P).label).join(", ")} at ${r}`}else if(l==="month")if(e==="*")t=`Every ${n} of the month at ${r}`;else{const d=e.split(",").map(h=>O.find(x=>x.value===h).label).join(", ");t=`Every ${n} of ${d} at ${r}`}return t},N=(l="",e=!1)=>{let n="";if(!l)return n;const c=parseInt(l.slice(0,-1)),s=Math.floor(c/(60*60*24));let o=c-(s>0?s*60*60*24:0);const t=Math.floor(o/(60*60));o=o-(t>0?t*60*60:0);const a=Math.floor(o/60),i=a>0?o-a*60:o,r=`${t?t.toString().padStart(2,"0"):"00"}hrs`,u=`${a?a.toString().padStart(2,"0"):"00"}min`,d=`${i?i.toString().padStart(2,"0"):"00"}sec`,h=e?"Offset":"Every";return s?n=`${h} ${s}days:${r}:${u}:${d}`:t?n=`${h} ${r}:${u}:${d}`:a?n=`${h} ${u}:${d}`:i&&(n=`${h} ${d}`),n};function U(l){let e,n=N(l[1])+"",c,s,o,t=N(l[2],!0)+"",a;return{c(){e=v("p"),c=g(n),s=H(),o=v("p"),a=g(t),this.h()},l(i){e=S(i,"P",{"data-testid":!0});var r=b(e);c=E(r,n),r.forEach(f),s=R(i),o=S(i,"P",{"data-testid":!0});var u=b(o);a=E(u,t),u.forEach(f),this.h()},h(){_(e,"data-testid","schedule-interval-frequency"),_(o,"data-testid","schedule-phase-frequency")},m(i,r){y(i,e,r),T(e,c),y(i,s,r),y(i,o,r),T(o,a)},p:q,d(i){i&&f(e),i&&f(s),i&&f(o)}}}function W(l){var o;let e,n=(((o=l[0])==null?void 0:o.comment)??"")+"",c,s;return{c(){e=v("p"),c=g(n),s=g(" UTC"),this.h()},l(t){e=S(t,"P",{"data-testid":!0});var a=b(e);c=E(a,n),s=E(a," UTC"),a.forEach(f),this.h()},h(){_(e,"data-testid","schedule-calendar-frequency")},m(t,a){y(t,e,a),T(e,c),T(e,s)},p(t,a){var i;a&1&&n!==(n=(((i=t[0])==null?void 0:i.comment)??"")+"")&&j(c,n)},d(t){t&&f(e)}}}function B(l){let e,n;function c(t,a){return t[0]?W:U}let s=c(l),o=s(l);return{c(){e=v("div"),o.c(),this.h()},l(t){e=S(t,"DIV",{class:!0});var a=b(e);o.l(a),a.forEach(f),this.h()},h(){_(e,"class",n="flex flex-col "+l[3].class)},m(t,a){y(t,e,a),o.m(e,null)},p(t,[a]){s===(s=c(t))&&o?o.p(t,a):(o.d(1),o=s(t),o&&(o.c(),o.m(e,null))),a&8&&n!==(n="flex flex-col "+t[3].class)&&_(e,"class",n)},i:q,o:q,d(t){t&&f(e),o.d()}}}function V(l,e,n){let{calendar:c=void 0}=e,{interval:s=void 0}=e;const o=s==null?void 0:s.interval,t=s==null?void 0:s.phase;return l.$$set=a=>{n(3,e=I(I({},e),C(a))),"calendar"in a&&n(0,c=a.calendar),"interval"in a&&n(4,s=a.interval)},e=C(e),[c,o,t,e,s]}class oe extends w{constructor(e){super(),L(this,e,V,B,D,{calendar:0,interval:4})}}export{oe as S,Y as a,ne as b,ee as c,Z as d,te as e,X as f,se as p,ae as u}; diff --git a/ui/assets/cloud/_app/immutable/chunks/schedules.8e390e1d.js b/ui/assets/cloud/_app/immutable/chunks/schedules.9cce6c1a.js similarity index 89% rename from ui/assets/cloud/_app/immutable/chunks/schedules.8e390e1d.js rename to ui/assets/cloud/_app/immutable/chunks/schedules.9cce6c1a.js index 81a8542284..568dd6b187 100644 --- a/ui/assets/cloud/_app/immutable/chunks/schedules.8e390e1d.js +++ b/ui/assets/cloud/_app/immutable/chunks/schedules.9cce6c1a.js @@ -1 +1 @@ -import{g}from"./navigation.214139c0.js";import{w as v}from"./index.deae5bd4.js";import{c as y,p as M}from"./route-for.70dfbf18.js";import{c as C,e as O,b as Q}from"./schedule-frequency.9f1a589f.js";const f=e=>e?parseInt(e):0,W=(e,a,t,s)=>`${f(e)*60*60*24+f(a)*60*60+f(t)*60+f(s)}s`,j=({months:e=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,n;const s=e.sort((o,i)=>parseInt(o)-parseInt(i)).join(","),r=a.sort((o,i)=>o-i).join(","),u=(((n=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:n.length)>1?t[0].split(","):t).sort((o,i)=>parseInt(o)-parseInt(i)).join(",");return{month:s,dayOfMonth:r,dayOfWeek:u}},I=(e,a,t)=>{const{hour:s,minute:r,second:c,phase:u,cronString:l}=a,{preset:n,months:o,days:i,daysOfMonth:p,daysOfWeek:h}=t;if(n==="string"){const m=`${l}#${l}`;e.schedule.spec.cronString=[m],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const m=W(i,s,r,c);e.schedule.spec.interval=[{interval:m,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:S}=j({months:o,daysOfMonth:p,daysOfWeek:h}),T=Q({preset:n,month:m,dayOfMonth:k,dayOfWeek:S,hour:s,minute:r,second:c});e.schedule.spec.calendar=[{year:"*",month:n==="month"?m:"",dayOfMonth:n==="month"?k:"",dayOfWeek:n==="week"?S:"",hour:s,minute:r,second:c,comment:T}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},F=async({action:e,spec:a,presets:t})=>{const{namespace:s,name:r,workflowId:c,workflowType:u,taskQueue:l}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:c,workflowType:{name:u},taskQueue:{name:l}}}}};I(n,a,t),d.set(!0);const{error:o}=await C({namespace:s,body:n});o?(w.set(o),d.set(!1)):setTimeout(()=>{w.set(""),d.set(!1),g(y({namespace:s}))},2e3)},A=async({action:e,spec:a,presets:t},s,r)=>{const{namespace:c,name:u,workflowId:l,workflowType:n,taskQueue:o}=e,{preset:i}=t,p={schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:l,workflowType:{name:n},taskQueue:{name:o}}}}};i==="existing"?p.schedule.spec=s.spec:(I(p,a,t),p.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await O({namespace:c,scheduleId:r,body:p});h?(w.set(h),d.set(!1)):setTimeout(()=>{g(M({namespace:c,scheduleId:u})),w.set(""),d.set(!1)},2e3)},d=v(!1),w=v("");export{F as a,w as e,d as l,A as s}; +import{g}from"./navigation.58fc5f1f.js";import{w as v}from"./index.deae5bd4.js";import{c as y,p as M}from"./route-for.087ea268.js";import{c as C,e as O,b as Q}from"./schedule-frequency.b0daddd1.js";const f=e=>e?parseInt(e):0,W=(e,a,t,s)=>`${f(e)*60*60*24+f(a)*60*60+f(t)*60+f(s)}s`,j=({months:e=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,n;const s=e.sort((o,i)=>parseInt(o)-parseInt(i)).join(","),r=a.sort((o,i)=>o-i).join(","),u=(((n=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:n.length)>1?t[0].split(","):t).sort((o,i)=>parseInt(o)-parseInt(i)).join(",");return{month:s,dayOfMonth:r,dayOfWeek:u}},I=(e,a,t)=>{const{hour:s,minute:r,second:c,phase:u,cronString:l}=a,{preset:n,months:o,days:i,daysOfMonth:p,daysOfWeek:h}=t;if(n==="string"){const m=`${l}#${l}`;e.schedule.spec.cronString=[m],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const m=W(i,s,r,c);e.schedule.spec.interval=[{interval:m,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:S}=j({months:o,daysOfMonth:p,daysOfWeek:h}),T=Q({preset:n,month:m,dayOfMonth:k,dayOfWeek:S,hour:s,minute:r,second:c});e.schedule.spec.calendar=[{year:"*",month:n==="month"?m:"",dayOfMonth:n==="month"?k:"",dayOfWeek:n==="week"?S:"",hour:s,minute:r,second:c,comment:T}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},F=async({action:e,spec:a,presets:t})=>{const{namespace:s,name:r,workflowId:c,workflowType:u,taskQueue:l}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:c,workflowType:{name:u},taskQueue:{name:l}}}}};I(n,a,t),d.set(!0);const{error:o}=await C({namespace:s,body:n});o?(w.set(o),d.set(!1)):setTimeout(()=>{w.set(""),d.set(!1),g(y({namespace:s}))},2e3)},A=async({action:e,spec:a,presets:t},s,r)=>{const{namespace:c,name:u,workflowId:l,workflowType:n,taskQueue:o}=e,{preset:i}=t,p={schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:l,workflowType:{name:n},taskQueue:{name:o}}}}};i==="existing"?p.schedule.spec=s.spec:(I(p,a,t),p.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await O({namespace:c,scheduleId:r,body:p});h?(w.set(h),d.set(!1)):setTimeout(()=>{g(M({namespace:c,scheduleId:u})),w.set(""),d.set(!1)},2e3)},d=v(!1),w=v("");export{F as a,w as e,d as l,A as s}; diff --git a/ui/assets/cloud/_app/immutable/chunks/search.f90e15c8.js b/ui/assets/cloud/_app/immutable/chunks/search.9f7ab7f3.js similarity index 98% rename from ui/assets/cloud/_app/immutable/chunks/search.f90e15c8.js rename to ui/assets/cloud/_app/immutable/chunks/search.9f7ab7f3.js index e573f86a82..2fecd9933e 100644 --- a/ui/assets/cloud/_app/immutable/chunks/search.f90e15c8.js +++ b/ui/assets/cloud/_app/immutable/chunks/search.9f7ab7f3.js @@ -1 +1 @@ -import{S as ye,b as Te,a as he,C as V,D as z,E as K,j as S,g as W,F as M,G as Xe,H as Ye,I as Ze,J as $e,m as g,w as H,c as P,p as E,q as F,x as L,k as c,d as C,u as w,f as T,L as k,n as te,e as Ue,z as me,h as _e,K as Je,T as j,V as le,ab as se,r as qe,R as Re,i as xe,y as Y,P as Se}from"./index.a36c9cb0.js";import{T as et,a as tt}from"./table-header-row.eb620974.js";import{p as lt}from"./stores.0bc9ce95.js";import{f as X}from"./format-date.7c274b02.js";import{s as st,u as rt,v as at,w as Ae}from"./format-time.c8c4770b.js";import{g as ot}from"./route-for.70dfbf18.js";import{u as nt}from"./pagination.69c5aeb5.js";import{t as Oe}from"./list-workflow-query.18f8dd4a.js";import{c as ft,d as Fe,e as ut,f as it,g as ct}from"./has.48bed8a5.js";import{W as mt}from"./workflow-status.47d31de2.js";import{I as De}from"./icon.33859671.js";import{c as _t}from"./copy-to-clipboard.d1283b5b.js";import{T as ht}from"./table-row.9df8daa0.js";import{B as dt}from"./button.dbc76a4c.js";function pt(r){let e;const s=r[1].default,t=Xe(s,r,r[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,o){t&&t.m(l,o),e=!0},p(l,o){t&&t.p&&(!e||o&4)&&Ye(t,s,l,l[2],e?$e(s,l[2],o,null):Ze(l[2]),null)},i(l){e||(S(t,l),e=!0)},o(l){W(t,l),e=!1},d(l){t&&t.d(l)}}}function bt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b,m,_,q,B;return{c(){e=g("th"),s=H("Status"),t=P(),l=g("th"),o=H("Workflow ID"),a=P(),n=g("th"),f=H("Type"),i=P(),h=g("th"),D=H("Start"),p=P(),b=g("th"),m=H("End"),_=P(),q=g("th"),B=H("Summary"),this.h()},l(d){e=E(d,"TH",{class:!0});var y=F(e);s=L(y,"Status"),y.forEach(c),t=C(d),l=E(d,"TH",{class:!0});var I=F(l);o=L(I,"Workflow ID"),I.forEach(c),a=C(d),n=E(d,"TH",{class:!0});var G=F(n);f=L(G,"Type"),G.forEach(c),i=C(d),h=E(d,"TH",{class:!0});var U=F(h);D=L(U,"Start"),U.forEach(c),p=C(d),b=E(d,"TH",{class:!0});var R=F(b);m=L(R,"End"),R.forEach(c),_=C(d),q=E(d,"TH",{class:!0,colspan:!0});var N=F(q);B=L(N,"Summary"),N.forEach(c),this.h()},h(){w(e,"class","w-32 max-md:hidden"),w(l,"class","max-md:hidden md:w-auto"),w(n,"class","w-60 max-md:hidden"),w(h,"class","w-60 max-xl:hidden"),w(b,"class","w-60 max-xl:hidden"),w(q,"class","md:hidden"),w(q,"colspan","3")},m(d,y){T(d,e,y),k(e,s),T(d,t,y),T(d,l,y),k(l,o),T(d,a,y),T(d,n,y),k(n,f),T(d,i,y),T(d,h,y),k(h,D),T(d,p,y),T(d,b,y),k(b,m),T(d,_,y),T(d,q,y),k(q,B)},p:te,d(d){d&&c(e),d&&c(t),d&&c(l),d&&c(a),d&&c(n),d&&c(i),d&&c(h),d&&c(p),d&&c(b),d&&c(_),d&&c(q)}}}function wt(r){let e,s;return e=new tt({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,l){const o={};l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function kt(r){let e,s;return e=new et({props:{class:"w-full md:table-fixed",updating:r[0],$$slots:{headers:[wt],default:[pt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&1&&(o.updating=t[0]),l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function vt(r,e,s){let{$$slots:t={},$$scope:l}=e,{updating:o=!1}=e;return r.$$set=a=>{"updating"in a&&s(0,o=a.updating),"$$scope"in a&&s(2,l=a.$$scope)},[o,t,l]}class Zt extends ye{constructor(e){super(),Te(this,e,vt,kt,he,{updating:0})}}const yt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),ve=(r,e)=>r[e+2],Tt=r=>{if(r){for(const e of at)if(r[e])return{[e]:r[e]}}},gt=ge("WorkflowType"),Et=ge("WorkflowId"),St=ge("StartTime"),Ft=ge("ExecutionStatus"),qt=r=>{const e=yt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Et(t)&&(s.workflowId=ve(e,l)),gt(t)&&(s.workflowType=ve(e,l)),Ft(t)){const o=ve(e,l);ct(o)&&(s.executionStatus=o)}if(St(t)){const o=ve(e,l);try{const a=st(o),n=Tt(a);s.timeRange=rt(n)}catch(a){console.error("Error parsing StartTime from query",a)}}}),s};function Qe(r){let e,s,t,l,o,a,n=r[1]&&Ve(r),f=r[2]&&Ke(r);return{c(){e=g("div"),n&&n.c(),s=P(),f&&f.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var h=F(e);n&&n.l(h),s=C(h),f&&f.l(h),h.forEach(c),this.h()},h(){w(e,"class",t="copy-or-filter "+r[6]+" svelte-1f7279h")},m(i,h){T(i,e,h),n&&n.m(e,null),k(e,s),f&&f.m(e,null),l=!0,o||(a=[j(e,"click",le(se(te))),j(e,"keyup",le(se(te)))],o=!0)},p(i,h){i[1]?n?(n.p(i,h),h&2&&S(n,1)):(n=Ve(i),n.c(),S(n,1),n.m(e,s)):n&&(me(),W(n,1,1,()=>{n=null}),_e()),i[2]?f?(f.p(i,h),h&4&&S(f,1)):(f=Ke(i),f.c(),S(f,1),f.m(e,null)):f&&(me(),W(f,1,1,()=>{f=null}),_e()),(!l||h&64&&t!==(t="copy-or-filter "+i[6]+" svelte-1f7279h"))&&w(e,"class",t)},i(i){l||(S(n),S(f),l=!0)},o(i){W(n),W(f),l=!1},d(i){i&&c(e),n&&n.d(),f&&f.d(),o=!1,qe(a)}}}function Ve(r){let e,s=r[5],t,l,o,a=ze();return{c(){e=g("button"),a.c(),this.h()},l(n){e=E(n,"BUTTON",{class:!0});var f=F(e);a.l(f),f.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h"),Re(e,"filtered",r[5])},m(n,f){T(n,e,f),a.m(e,null),t=!0,l||(o=j(e,"click",le(se(function(){xe(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,f){r=n,f&32&&he(s,s=r[5])?(me(),W(a,1,1,te),_e(),a=ze(),a.c(),S(a,1),a.m(e,null)):a.p(r,f),(!t||f&32)&&Re(e,"filtered",r[5])},i(n){t||(S(a),t=!0)},o(n){W(a),t=!1},d(n){n&&c(e),a.d(n),l=!1,o()}}}function ze(r){let e,s;return e=new De({props:{name:"filter"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p:te,i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(r){let e,s,t,l,o;return s=new De({props:{name:r[7]?"checkmark":"copy",stroke:"#000"}}),{c(){e=g("button"),V(s.$$.fragment),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var n=F(e);z(s.$$.fragment,n),n.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h")},m(a,n){T(a,e,n),K(s,e,null),t=!0,l||(o=j(e,"click",le(se(r[10]))),l=!0)},p(a,n){const f={};n&128&&(f.name=a[7]?"checkmark":"copy"),s.$set(f)},i(a){t||(S(s.$$.fragment,a),t=!0)},o(a){W(s.$$.fragment,a),t=!1},d(a){a&&c(e),M(s),l=!1,o()}}}function Dt(r){let e,s,t=r[0]&&Qe(r);return{c(){t&&t.c(),e=Ue()},l(l){t&&t.l(l),e=Ue()},m(l,o){t&&t.m(l,o),T(l,e,o),s=!0},p(l,[o]){l[0]?t?(t.p(l,o),o&1&&S(t,1)):(t=Qe(l),t.c(),S(t,1),t.m(e.parentNode,e)):t&&(me(),W(t,1,1,()=>{t=null}),_e())},i(l){s||(S(t),s=!0)},o(l){W(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function Wt(r,e,s){let t,{show:l=!1}=e,{filterable:o=!0}=e,{copyable:a=!0}=e,{content:n}=e,{onFilter:f=te}=e,{filtered:i=!1}=e,{class:h=""}=e;const{copy:D,copied:p}=_t(700);Je(r,p,m=>s(7,t=m));const b=m=>D(m,n);return r.$$set=m=>{"show"in m&&s(0,l=m.show),"filterable"in m&&s(1,o=m.filterable),"copyable"in m&&s(2,a=m.copyable),"content"in m&&s(3,n=m.content),"onFilter"in m&&s(4,f=m.onFilter),"filtered"in m&&s(5,i=m.filtered),"class"in m&&s(6,h=m.class)},[l,o,a,n,f,i,h,t,D,p,b]}class Me extends ye{constructor(e){super(),Te(this,e,Wt,Dt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,class:6})}}function It(r){var Ie,Pe,Ce;let e,s,t,l,o,a=r[0].id+"",n,f,i,h,D,p=X(r[0].startTime,r[1])+"",b,m,_,q,B,d,y,I=r[0].name+"",G,U,R,N,re,x,ae=X(r[0].endTime,r[1])+"",de,pe,Z,oe,ne=X(r[0].startTime,r[1])+"",be,we,$,fe,ue=X(r[0].endTime,r[1])+"",ke,A,Ee,We;return s=new mt({props:{status:r[0].status,delay:Ae(r[0].startTime)}}),i=new Me({props:{show:r[2],content:r[0].id,filterable:!1}}),N=new Me({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(Ce=(Pe=(Ie=r[4].url)==null?void 0:Ie.searchParams)==null?void 0:Pe.get("query"))==null?void 0:Ce.includes(r[0].name)}}),{c(){e=g("td"),V(s.$$.fragment),t=P(),l=g("td"),o=g("span"),n=H(a),f=P(),V(i.$$.fragment),h=P(),D=g("p"),b=H(p),m=P(),_=g("td"),q=g("h3"),B=H("Workflow Name:"),d=P(),y=g("button"),G=H(I),R=P(),V(N.$$.fragment),re=P(),x=g("p"),de=H(ae),pe=P(),Z=g("td"),oe=g("p"),be=H(ne),we=P(),$=g("td"),fe=g("p"),ke=H(ue),this.h()},l(u){e=E(u,"TD",{});var v=F(e);z(s.$$.fragment,v),v.forEach(c),t=C(u),l=E(u,"TD",{class:!0});var Q=F(l);o=E(Q,"SPAN",{class:!0});var ee=F(o);n=L(ee,a),ee.forEach(c),f=C(Q),z(i.$$.fragment,Q),h=C(Q),D=E(Q,"P",{class:!0});var J=F(D);b=L(J,p),J.forEach(c),Q.forEach(c),m=C(u),_=E(u,"TD",{class:!0});var O=F(_);q=E(O,"H3",{class:!0});var ie=F(q);B=L(ie,"Workflow Name:"),ie.forEach(c),d=C(O),y=E(O,"BUTTON",{class:!0,"aria-label":!0});var ce=F(y);G=L(ce,I),ce.forEach(c),R=C(O),z(N.$$.fragment,O),re=C(O),x=E(O,"P",{class:!0});var je=F(x);de=L(je,ae),je.forEach(c),O.forEach(c),pe=C(u),Z=E(u,"TD",{class:!0});var He=F(Z);oe=E(He,"P",{});var Le=F(oe);be=L(Le,ne),Le.forEach(c),He.forEach(c),we=C(u),$=E(u,"TD",{class:!0});var Ne=F($);fe=E(Ne,"P",{});var Be=F(fe);ke=L(Be,ue),Be.forEach(c),Ne.forEach(c),this.h()},h(){w(o,"class","table-link svelte-tyqpjy"),w(D,"class","inline-time-cell svelte-tyqpjy"),w(l,"class","relative break-words pr-4"),w(q,"class","md:hidden"),w(y,"class","table-link svelte-tyqpjy"),w(y,"aria-label",U="filter by "+r[0].name+" type"),w(x,"class","inline-time-cell svelte-tyqpjy"),w(_,"class","relative truncate"),w(Z,"class","time-cell svelte-tyqpjy"),w($,"class","time-cell svelte-tyqpjy")},m(u,v){T(u,e,v),K(s,e,null),T(u,t,v),T(u,l,v),k(l,o),k(o,n),k(l,f),K(i,l,null),k(l,h),k(l,D),k(D,b),T(u,m,v),T(u,_,v),k(_,q),k(q,B),k(_,d),k(_,y),k(y,G),k(_,R),K(N,_,null),k(_,re),k(_,x),k(x,de),T(u,pe,v),T(u,Z,v),k(Z,oe),k(oe,be),T(u,we,v),T(u,$,v),k($,fe),k(fe,ke),A=!0,Ee||(We=[j(l,"mouseover",r[7]),j(l,"focus",r[8]),j(l,"mouseleave",r[9]),j(l,"blur",r[10]),j(y,"click",le(se(r[11]))),j(_,"mouseover",r[13]),j(_,"focus",r[14]),j(_,"mouseleave",r[15]),j(_,"blur",r[16])],Ee=!0)},p(u,v){var O,ie,ce;const Q={};v&1&&(Q.status=u[0].status),v&1&&(Q.delay=Ae(u[0].startTime)),s.$set(Q),(!A||v&1)&&a!==(a=u[0].id+"")&&Y(n,a);const ee={};v&4&&(ee.show=u[2]),v&1&&(ee.content=u[0].id),i.$set(ee),(!A||v&3)&&p!==(p=X(u[0].startTime,u[1])+"")&&Y(b,p),(!A||v&1)&&I!==(I=u[0].name+"")&&Y(G,I),(!A||v&1&&U!==(U="filter by "+u[0].name+" type"))&&w(y,"aria-label",U);const J={};v&4&&(J.show=u[2]),v&1&&(J.content=u[0].name),v&1&&(J.onFilter=u[12]),v&17&&(J.filtered=(ce=(ie=(O=u[4].url)==null?void 0:O.searchParams)==null?void 0:ie.get("query"))==null?void 0:ce.includes(u[0].name)),N.$set(J),(!A||v&3)&&ae!==(ae=X(u[0].endTime,u[1])+"")&&Y(de,ae),(!A||v&3)&&ne!==(ne=X(u[0].startTime,u[1])+"")&&Y(be,ne),(!A||v&3)&&ue!==(ue=X(u[0].endTime,u[1])+"")&&Y(ke,ue)},i(u){A||(S(s.$$.fragment,u),S(i.$$.fragment,u),S(N.$$.fragment,u),A=!0)},o(u){W(s.$$.fragment,u),W(i.$$.fragment,u),W(N.$$.fragment,u),A=!1},d(u){u&&c(e),M(s),u&&c(t),u&&c(l),M(i),u&&c(m),u&&c(_),M(N),u&&c(pe),u&&c(Z),u&&c(we),u&&c($),Ee=!1,qe(We)}}}function Pt(r){let e,s;return e=new ht({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[It]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&8&&(o.href=t[3]),l&131095&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ct(r,e,s){let t,l;Je(r,lt,I=>s(4,l=I));let{namespace:o}=e,{workflow:a}=e,{timeFormat:n}=e,f=!1;const i=I=>{const G=Oe({timeRange:"All"}),U=l.url.searchParams.get("query"),R=qt(U??G),N=(R==null?void 0:R.workflowType)===I?"":I,re=Oe({...R,workflowType:N});nt({url:l.url,parameter:"query",value:re,allowEmpty:!0})},h=()=>s(2,f=!0),D=()=>s(2,f=!0),p=()=>s(2,f=!1),b=()=>s(2,f=!1),m=()=>i(a.name),_=()=>i(a.name),q=()=>s(2,f=!0),B=()=>s(2,f=!0),d=()=>s(2,f=!1),y=()=>s(2,f=!1);return r.$$set=I=>{"namespace"in I&&s(6,o=I.namespace),"workflow"in I&&s(0,a=I.workflow),"timeFormat"in I&&s(1,n=I.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=ot({namespace:o,workflow:a.id,run:a.runId}))},[a,n,f,t,l,i,o,h,D,p,b,m,_,q,B,d,y]}class $t extends ye{constructor(e){super(),Te(this,e,Ct,Pt,he,{namespace:6,workflow:0,timeFormat:1})}}var xt=jt;function jt(r,e,s,t){var l,o,a;return function(){if(a=this,o=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return i(),l=setTimeout(f,e),l;l=setTimeout(i,e),r.apply(a,o);function f(){i(),r.apply(a,o)}function i(){clearTimeout(l),l=null}}}function Ge(r){let e,s;return e=new De({props:{name:"search",class:"ml-4 flex items-center text-gray-700"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ht(r){let e;return{c(){e=H(r[2])},l(s){e=L(s,r[2])},m(s,t){T(s,e,t)},p(s,t){t&4&&Y(e,s[2])},d(s){s&&c(e)}}}function Lt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b=r[4]&&Ge();return i=new dt({props:{class:"m-2",type:"submit",$$slots:{default:[Ht]},$$scope:{ctx:r}}}),{c(){e=g("form"),b&&b.c(),s=P(),t=g("label"),l=H(r[2]),o=P(),a=g("input"),n=P(),f=g("div"),V(i.$$.fragment),this.h()},l(m){e=E(m,"FORM",{class:!0,role:!0});var _=F(e);b&&b.l(_),s=C(_),t=E(_,"LABEL",{for:!0,class:!0});var q=F(t);l=L(q,r[2]),q.forEach(c),o=C(_),a=E(_,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),n=C(_),f=E(_,"DIV",{});var B=F(f);z(i.$$.fragment,B),B.forEach(c),_.forEach(c),this.h()},h(){w(t,"for",r[5]),w(t,"class","hidden"),w(a,"id",r[5]),w(a,"type","search"),w(a,"class","w-full rounded-l-lg px-4 focus:outline-none"),w(a,"name",r[3]),a.value=r[1],w(a,"placeholder",r[0]),w(a,"autocomplete","off"),w(e,"class","relative flex items-center rounded-lg border-2 bg-white transition-colors focus-within:border-blue-700"),w(e,"role","search")},m(m,_){T(m,e,_),b&&b.m(e,null),k(e,s),k(e,t),k(t,l),k(e,o),k(e,a),k(e,n),k(e,f),K(i,f,null),h=!0,D||(p=[j(a,"input",r[7]),j(a,"keydown",le(r[8])),j(e,"submit",se(r[6]))],D=!0)},p(m,[_]){m[4]?b?_&16&&S(b,1):(b=Ge(),b.c(),S(b,1),b.m(e,s)):b&&(me(),W(b,1,1,()=>{b=null}),_e()),(!h||_&4)&&Y(l,m[2]),(!h||_&32)&&w(t,"for",m[5]),(!h||_&32)&&w(a,"id",m[5]),(!h||_&8)&&w(a,"name",m[3]),(!h||_&2&&a.value!==m[1])&&(a.value=m[1]),(!h||_&1)&&w(a,"placeholder",m[0]);const q={};_&516&&(q.$$scope={dirty:_,ctx:m}),i.$set(q)},i(m){h||(S(b),S(i.$$.fragment,m),h=!0)},o(m){W(b),W(i.$$.fragment,m),h=!1},d(m){m&&c(e),b&&b.d(),M(i),D=!1,qe(p)}}}function Nt(r,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:o="Search"}=e,{name:a="query"}=e,{icon:n=!1}=e,{id:f=`${o.toLocaleUpperCase()}-input`}=e;function i(p){Se.call(this,r,p)}function h(p){Se.call(this,r,p)}function D(p){Se.call(this,r,p)}return r.$$set=p=>{"placeholder"in p&&s(0,t=p.placeholder),"value"in p&&s(1,l=p.value),"label"in p&&s(2,o=p.label),"name"in p&&s(3,a=p.name),"icon"in p&&s(4,n=p.icon),"id"in p&&s(5,f=p.id)},[t,l,o,a,n,f,i,h,D]}class el extends ye{constructor(e){super(),Te(this,e,Nt,Lt,he,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{Me as F,el as S,Zt as W,$t as a,yt as b,xt as j,qt as t}; +import{S as ye,b as Te,a as he,C as V,D as z,E as K,j as S,g as W,F as M,G as Xe,H as Ye,I as Ze,J as $e,m as g,w as H,c as P,p as E,q as F,x as L,k as c,d as C,u as w,f as T,L as k,n as te,e as Ue,z as me,h as _e,K as Je,T as j,V as le,ab as se,r as qe,R as Re,i as xe,y as Y,P as Se}from"./index.a36c9cb0.js";import{T as et,a as tt}from"./table-header-row.eb620974.js";import{p as lt}from"./stores.a2e3306d.js";import{f as X}from"./format-date.7c274b02.js";import{s as st,u as rt,v as at,w as Ae}from"./format-time.c8c4770b.js";import{g as ot}from"./route-for.087ea268.js";import{u as nt}from"./pagination.c403d909.js";import{t as Oe}from"./list-workflow-query.34f80e4f.js";import{c as ft,d as Fe,e as ut,f as it,g as ct}from"./has.48bed8a5.js";import{W as mt}from"./workflow-status.47d31de2.js";import{I as De}from"./icon.33859671.js";import{c as _t}from"./copy-to-clipboard.d1283b5b.js";import{T as ht}from"./table-row.9df8daa0.js";import{B as dt}from"./button.dbc76a4c.js";function pt(r){let e;const s=r[1].default,t=Xe(s,r,r[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,o){t&&t.m(l,o),e=!0},p(l,o){t&&t.p&&(!e||o&4)&&Ye(t,s,l,l[2],e?$e(s,l[2],o,null):Ze(l[2]),null)},i(l){e||(S(t,l),e=!0)},o(l){W(t,l),e=!1},d(l){t&&t.d(l)}}}function bt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b,m,_,q,B;return{c(){e=g("th"),s=H("Status"),t=P(),l=g("th"),o=H("Workflow ID"),a=P(),n=g("th"),f=H("Type"),i=P(),h=g("th"),D=H("Start"),p=P(),b=g("th"),m=H("End"),_=P(),q=g("th"),B=H("Summary"),this.h()},l(d){e=E(d,"TH",{class:!0});var y=F(e);s=L(y,"Status"),y.forEach(c),t=C(d),l=E(d,"TH",{class:!0});var I=F(l);o=L(I,"Workflow ID"),I.forEach(c),a=C(d),n=E(d,"TH",{class:!0});var G=F(n);f=L(G,"Type"),G.forEach(c),i=C(d),h=E(d,"TH",{class:!0});var U=F(h);D=L(U,"Start"),U.forEach(c),p=C(d),b=E(d,"TH",{class:!0});var R=F(b);m=L(R,"End"),R.forEach(c),_=C(d),q=E(d,"TH",{class:!0,colspan:!0});var N=F(q);B=L(N,"Summary"),N.forEach(c),this.h()},h(){w(e,"class","w-32 max-md:hidden"),w(l,"class","max-md:hidden md:w-auto"),w(n,"class","w-60 max-md:hidden"),w(h,"class","w-60 max-xl:hidden"),w(b,"class","w-60 max-xl:hidden"),w(q,"class","md:hidden"),w(q,"colspan","3")},m(d,y){T(d,e,y),k(e,s),T(d,t,y),T(d,l,y),k(l,o),T(d,a,y),T(d,n,y),k(n,f),T(d,i,y),T(d,h,y),k(h,D),T(d,p,y),T(d,b,y),k(b,m),T(d,_,y),T(d,q,y),k(q,B)},p:te,d(d){d&&c(e),d&&c(t),d&&c(l),d&&c(a),d&&c(n),d&&c(i),d&&c(h),d&&c(p),d&&c(b),d&&c(_),d&&c(q)}}}function wt(r){let e,s;return e=new tt({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,l){const o={};l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function kt(r){let e,s;return e=new et({props:{class:"w-full md:table-fixed",updating:r[0],$$slots:{headers:[wt],default:[pt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&1&&(o.updating=t[0]),l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function vt(r,e,s){let{$$slots:t={},$$scope:l}=e,{updating:o=!1}=e;return r.$$set=a=>{"updating"in a&&s(0,o=a.updating),"$$scope"in a&&s(2,l=a.$$scope)},[o,t,l]}class Zt extends ye{constructor(e){super(),Te(this,e,vt,kt,he,{updating:0})}}const yt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),ve=(r,e)=>r[e+2],Tt=r=>{if(r){for(const e of at)if(r[e])return{[e]:r[e]}}},gt=ge("WorkflowType"),Et=ge("WorkflowId"),St=ge("StartTime"),Ft=ge("ExecutionStatus"),qt=r=>{const e=yt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Et(t)&&(s.workflowId=ve(e,l)),gt(t)&&(s.workflowType=ve(e,l)),Ft(t)){const o=ve(e,l);ct(o)&&(s.executionStatus=o)}if(St(t)){const o=ve(e,l);try{const a=st(o),n=Tt(a);s.timeRange=rt(n)}catch(a){console.error("Error parsing StartTime from query",a)}}}),s};function Qe(r){let e,s,t,l,o,a,n=r[1]&&Ve(r),f=r[2]&&Ke(r);return{c(){e=g("div"),n&&n.c(),s=P(),f&&f.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var h=F(e);n&&n.l(h),s=C(h),f&&f.l(h),h.forEach(c),this.h()},h(){w(e,"class",t="copy-or-filter "+r[6]+" svelte-1f7279h")},m(i,h){T(i,e,h),n&&n.m(e,null),k(e,s),f&&f.m(e,null),l=!0,o||(a=[j(e,"click",le(se(te))),j(e,"keyup",le(se(te)))],o=!0)},p(i,h){i[1]?n?(n.p(i,h),h&2&&S(n,1)):(n=Ve(i),n.c(),S(n,1),n.m(e,s)):n&&(me(),W(n,1,1,()=>{n=null}),_e()),i[2]?f?(f.p(i,h),h&4&&S(f,1)):(f=Ke(i),f.c(),S(f,1),f.m(e,null)):f&&(me(),W(f,1,1,()=>{f=null}),_e()),(!l||h&64&&t!==(t="copy-or-filter "+i[6]+" svelte-1f7279h"))&&w(e,"class",t)},i(i){l||(S(n),S(f),l=!0)},o(i){W(n),W(f),l=!1},d(i){i&&c(e),n&&n.d(),f&&f.d(),o=!1,qe(a)}}}function Ve(r){let e,s=r[5],t,l,o,a=ze();return{c(){e=g("button"),a.c(),this.h()},l(n){e=E(n,"BUTTON",{class:!0});var f=F(e);a.l(f),f.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h"),Re(e,"filtered",r[5])},m(n,f){T(n,e,f),a.m(e,null),t=!0,l||(o=j(e,"click",le(se(function(){xe(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,f){r=n,f&32&&he(s,s=r[5])?(me(),W(a,1,1,te),_e(),a=ze(),a.c(),S(a,1),a.m(e,null)):a.p(r,f),(!t||f&32)&&Re(e,"filtered",r[5])},i(n){t||(S(a),t=!0)},o(n){W(a),t=!1},d(n){n&&c(e),a.d(n),l=!1,o()}}}function ze(r){let e,s;return e=new De({props:{name:"filter"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p:te,i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(r){let e,s,t,l,o;return s=new De({props:{name:r[7]?"checkmark":"copy",stroke:"#000"}}),{c(){e=g("button"),V(s.$$.fragment),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var n=F(e);z(s.$$.fragment,n),n.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h")},m(a,n){T(a,e,n),K(s,e,null),t=!0,l||(o=j(e,"click",le(se(r[10]))),l=!0)},p(a,n){const f={};n&128&&(f.name=a[7]?"checkmark":"copy"),s.$set(f)},i(a){t||(S(s.$$.fragment,a),t=!0)},o(a){W(s.$$.fragment,a),t=!1},d(a){a&&c(e),M(s),l=!1,o()}}}function Dt(r){let e,s,t=r[0]&&Qe(r);return{c(){t&&t.c(),e=Ue()},l(l){t&&t.l(l),e=Ue()},m(l,o){t&&t.m(l,o),T(l,e,o),s=!0},p(l,[o]){l[0]?t?(t.p(l,o),o&1&&S(t,1)):(t=Qe(l),t.c(),S(t,1),t.m(e.parentNode,e)):t&&(me(),W(t,1,1,()=>{t=null}),_e())},i(l){s||(S(t),s=!0)},o(l){W(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function Wt(r,e,s){let t,{show:l=!1}=e,{filterable:o=!0}=e,{copyable:a=!0}=e,{content:n}=e,{onFilter:f=te}=e,{filtered:i=!1}=e,{class:h=""}=e;const{copy:D,copied:p}=_t(700);Je(r,p,m=>s(7,t=m));const b=m=>D(m,n);return r.$$set=m=>{"show"in m&&s(0,l=m.show),"filterable"in m&&s(1,o=m.filterable),"copyable"in m&&s(2,a=m.copyable),"content"in m&&s(3,n=m.content),"onFilter"in m&&s(4,f=m.onFilter),"filtered"in m&&s(5,i=m.filtered),"class"in m&&s(6,h=m.class)},[l,o,a,n,f,i,h,t,D,p,b]}class Me extends ye{constructor(e){super(),Te(this,e,Wt,Dt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,class:6})}}function It(r){var Ie,Pe,Ce;let e,s,t,l,o,a=r[0].id+"",n,f,i,h,D,p=X(r[0].startTime,r[1])+"",b,m,_,q,B,d,y,I=r[0].name+"",G,U,R,N,re,x,ae=X(r[0].endTime,r[1])+"",de,pe,Z,oe,ne=X(r[0].startTime,r[1])+"",be,we,$,fe,ue=X(r[0].endTime,r[1])+"",ke,A,Ee,We;return s=new mt({props:{status:r[0].status,delay:Ae(r[0].startTime)}}),i=new Me({props:{show:r[2],content:r[0].id,filterable:!1}}),N=new Me({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(Ce=(Pe=(Ie=r[4].url)==null?void 0:Ie.searchParams)==null?void 0:Pe.get("query"))==null?void 0:Ce.includes(r[0].name)}}),{c(){e=g("td"),V(s.$$.fragment),t=P(),l=g("td"),o=g("span"),n=H(a),f=P(),V(i.$$.fragment),h=P(),D=g("p"),b=H(p),m=P(),_=g("td"),q=g("h3"),B=H("Workflow Name:"),d=P(),y=g("button"),G=H(I),R=P(),V(N.$$.fragment),re=P(),x=g("p"),de=H(ae),pe=P(),Z=g("td"),oe=g("p"),be=H(ne),we=P(),$=g("td"),fe=g("p"),ke=H(ue),this.h()},l(u){e=E(u,"TD",{});var v=F(e);z(s.$$.fragment,v),v.forEach(c),t=C(u),l=E(u,"TD",{class:!0});var Q=F(l);o=E(Q,"SPAN",{class:!0});var ee=F(o);n=L(ee,a),ee.forEach(c),f=C(Q),z(i.$$.fragment,Q),h=C(Q),D=E(Q,"P",{class:!0});var J=F(D);b=L(J,p),J.forEach(c),Q.forEach(c),m=C(u),_=E(u,"TD",{class:!0});var O=F(_);q=E(O,"H3",{class:!0});var ie=F(q);B=L(ie,"Workflow Name:"),ie.forEach(c),d=C(O),y=E(O,"BUTTON",{class:!0,"aria-label":!0});var ce=F(y);G=L(ce,I),ce.forEach(c),R=C(O),z(N.$$.fragment,O),re=C(O),x=E(O,"P",{class:!0});var je=F(x);de=L(je,ae),je.forEach(c),O.forEach(c),pe=C(u),Z=E(u,"TD",{class:!0});var He=F(Z);oe=E(He,"P",{});var Le=F(oe);be=L(Le,ne),Le.forEach(c),He.forEach(c),we=C(u),$=E(u,"TD",{class:!0});var Ne=F($);fe=E(Ne,"P",{});var Be=F(fe);ke=L(Be,ue),Be.forEach(c),Ne.forEach(c),this.h()},h(){w(o,"class","table-link svelte-tyqpjy"),w(D,"class","inline-time-cell svelte-tyqpjy"),w(l,"class","relative break-words pr-4"),w(q,"class","md:hidden"),w(y,"class","table-link svelte-tyqpjy"),w(y,"aria-label",U="filter by "+r[0].name+" type"),w(x,"class","inline-time-cell svelte-tyqpjy"),w(_,"class","relative truncate"),w(Z,"class","time-cell svelte-tyqpjy"),w($,"class","time-cell svelte-tyqpjy")},m(u,v){T(u,e,v),K(s,e,null),T(u,t,v),T(u,l,v),k(l,o),k(o,n),k(l,f),K(i,l,null),k(l,h),k(l,D),k(D,b),T(u,m,v),T(u,_,v),k(_,q),k(q,B),k(_,d),k(_,y),k(y,G),k(_,R),K(N,_,null),k(_,re),k(_,x),k(x,de),T(u,pe,v),T(u,Z,v),k(Z,oe),k(oe,be),T(u,we,v),T(u,$,v),k($,fe),k(fe,ke),A=!0,Ee||(We=[j(l,"mouseover",r[7]),j(l,"focus",r[8]),j(l,"mouseleave",r[9]),j(l,"blur",r[10]),j(y,"click",le(se(r[11]))),j(_,"mouseover",r[13]),j(_,"focus",r[14]),j(_,"mouseleave",r[15]),j(_,"blur",r[16])],Ee=!0)},p(u,v){var O,ie,ce;const Q={};v&1&&(Q.status=u[0].status),v&1&&(Q.delay=Ae(u[0].startTime)),s.$set(Q),(!A||v&1)&&a!==(a=u[0].id+"")&&Y(n,a);const ee={};v&4&&(ee.show=u[2]),v&1&&(ee.content=u[0].id),i.$set(ee),(!A||v&3)&&p!==(p=X(u[0].startTime,u[1])+"")&&Y(b,p),(!A||v&1)&&I!==(I=u[0].name+"")&&Y(G,I),(!A||v&1&&U!==(U="filter by "+u[0].name+" type"))&&w(y,"aria-label",U);const J={};v&4&&(J.show=u[2]),v&1&&(J.content=u[0].name),v&1&&(J.onFilter=u[12]),v&17&&(J.filtered=(ce=(ie=(O=u[4].url)==null?void 0:O.searchParams)==null?void 0:ie.get("query"))==null?void 0:ce.includes(u[0].name)),N.$set(J),(!A||v&3)&&ae!==(ae=X(u[0].endTime,u[1])+"")&&Y(de,ae),(!A||v&3)&&ne!==(ne=X(u[0].startTime,u[1])+"")&&Y(be,ne),(!A||v&3)&&ue!==(ue=X(u[0].endTime,u[1])+"")&&Y(ke,ue)},i(u){A||(S(s.$$.fragment,u),S(i.$$.fragment,u),S(N.$$.fragment,u),A=!0)},o(u){W(s.$$.fragment,u),W(i.$$.fragment,u),W(N.$$.fragment,u),A=!1},d(u){u&&c(e),M(s),u&&c(t),u&&c(l),M(i),u&&c(m),u&&c(_),M(N),u&&c(pe),u&&c(Z),u&&c(we),u&&c($),Ee=!1,qe(We)}}}function Pt(r){let e,s;return e=new ht({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[It]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&8&&(o.href=t[3]),l&131095&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ct(r,e,s){let t,l;Je(r,lt,I=>s(4,l=I));let{namespace:o}=e,{workflow:a}=e,{timeFormat:n}=e,f=!1;const i=I=>{const G=Oe({timeRange:"All"}),U=l.url.searchParams.get("query"),R=qt(U??G),N=(R==null?void 0:R.workflowType)===I?"":I,re=Oe({...R,workflowType:N});nt({url:l.url,parameter:"query",value:re,allowEmpty:!0})},h=()=>s(2,f=!0),D=()=>s(2,f=!0),p=()=>s(2,f=!1),b=()=>s(2,f=!1),m=()=>i(a.name),_=()=>i(a.name),q=()=>s(2,f=!0),B=()=>s(2,f=!0),d=()=>s(2,f=!1),y=()=>s(2,f=!1);return r.$$set=I=>{"namespace"in I&&s(6,o=I.namespace),"workflow"in I&&s(0,a=I.workflow),"timeFormat"in I&&s(1,n=I.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=ot({namespace:o,workflow:a.id,run:a.runId}))},[a,n,f,t,l,i,o,h,D,p,b,m,_,q,B,d,y]}class $t extends ye{constructor(e){super(),Te(this,e,Ct,Pt,he,{namespace:6,workflow:0,timeFormat:1})}}var xt=jt;function jt(r,e,s,t){var l,o,a;return function(){if(a=this,o=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return i(),l=setTimeout(f,e),l;l=setTimeout(i,e),r.apply(a,o);function f(){i(),r.apply(a,o)}function i(){clearTimeout(l),l=null}}}function Ge(r){let e,s;return e=new De({props:{name:"search",class:"ml-4 flex items-center text-gray-700"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ht(r){let e;return{c(){e=H(r[2])},l(s){e=L(s,r[2])},m(s,t){T(s,e,t)},p(s,t){t&4&&Y(e,s[2])},d(s){s&&c(e)}}}function Lt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b=r[4]&&Ge();return i=new dt({props:{class:"m-2",type:"submit",$$slots:{default:[Ht]},$$scope:{ctx:r}}}),{c(){e=g("form"),b&&b.c(),s=P(),t=g("label"),l=H(r[2]),o=P(),a=g("input"),n=P(),f=g("div"),V(i.$$.fragment),this.h()},l(m){e=E(m,"FORM",{class:!0,role:!0});var _=F(e);b&&b.l(_),s=C(_),t=E(_,"LABEL",{for:!0,class:!0});var q=F(t);l=L(q,r[2]),q.forEach(c),o=C(_),a=E(_,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),n=C(_),f=E(_,"DIV",{});var B=F(f);z(i.$$.fragment,B),B.forEach(c),_.forEach(c),this.h()},h(){w(t,"for",r[5]),w(t,"class","hidden"),w(a,"id",r[5]),w(a,"type","search"),w(a,"class","w-full rounded-l-lg px-4 focus:outline-none"),w(a,"name",r[3]),a.value=r[1],w(a,"placeholder",r[0]),w(a,"autocomplete","off"),w(e,"class","relative flex items-center rounded-lg border-2 bg-white transition-colors focus-within:border-blue-700"),w(e,"role","search")},m(m,_){T(m,e,_),b&&b.m(e,null),k(e,s),k(e,t),k(t,l),k(e,o),k(e,a),k(e,n),k(e,f),K(i,f,null),h=!0,D||(p=[j(a,"input",r[7]),j(a,"keydown",le(r[8])),j(e,"submit",se(r[6]))],D=!0)},p(m,[_]){m[4]?b?_&16&&S(b,1):(b=Ge(),b.c(),S(b,1),b.m(e,s)):b&&(me(),W(b,1,1,()=>{b=null}),_e()),(!h||_&4)&&Y(l,m[2]),(!h||_&32)&&w(t,"for",m[5]),(!h||_&32)&&w(a,"id",m[5]),(!h||_&8)&&w(a,"name",m[3]),(!h||_&2&&a.value!==m[1])&&(a.value=m[1]),(!h||_&1)&&w(a,"placeholder",m[0]);const q={};_&516&&(q.$$scope={dirty:_,ctx:m}),i.$set(q)},i(m){h||(S(b),S(i.$$.fragment,m),h=!0)},o(m){W(b),W(i.$$.fragment,m),h=!1},d(m){m&&c(e),b&&b.d(),M(i),D=!1,qe(p)}}}function Nt(r,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:o="Search"}=e,{name:a="query"}=e,{icon:n=!1}=e,{id:f=`${o.toLocaleUpperCase()}-input`}=e;function i(p){Se.call(this,r,p)}function h(p){Se.call(this,r,p)}function D(p){Se.call(this,r,p)}return r.$$set=p=>{"placeholder"in p&&s(0,t=p.placeholder),"value"in p&&s(1,l=p.value),"label"in p&&s(2,o=p.label),"name"in p&&s(3,a=p.name),"icon"in p&&s(4,n=p.icon),"id"in p&&s(5,f=p.id)},[t,l,o,a,n,f,i,h,D]}class el extends ye{constructor(e){super(),Te(this,e,Nt,Lt,he,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{Me as F,el as S,Zt as W,$t as a,yt as b,xt as j,qt as t}; diff --git a/ui/assets/cloud/_app/immutable/chunks/settings-service.713ab407.js b/ui/assets/cloud/_app/immutable/chunks/settings-service.2d7ee284.js similarity index 95% rename from ui/assets/cloud/_app/immutable/chunks/settings-service.713ab407.js rename to ui/assets/cloud/_app/immutable/chunks/settings-service.2d7ee284.js index aef0e96ac9..42aa577a1f 100644 --- a/ui/assets/cloud/_app/immutable/chunks/settings-service.713ab407.js +++ b/ui/assets/cloud/_app/immutable/chunks/settings-service.2d7ee284.js @@ -1 +1 @@ -import{s as b}from"./settings.34723850.js";import{r as w,a as k,g as D}from"./route-for-api.81ced9ce.js";function A(){return"cloud"}const C=/(tmprl\.cloud|tmprl-test\.cloud)$/,e=async(f=fetch)=>{var c,o,d,i,u;const m=w("settings"),a=await k(m,{request:f}),r=A(),l={auth:{enabled:!!((c=a==null?void 0:a.Auth)!=null&&c.Enabled),options:(o=a==null?void 0:a.Auth)==null?void 0:o.Options},baseUrl:D(),codec:{endpoint:(d=a==null?void 0:a.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=a==null?void 0:a.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=a==null?void 0:a.Codec)==null?void 0:u.IncludeCredentials},defaultNamespace:(a==null?void 0:a.DefaultNamespace)||"default",disableWriteActions:!!(a!=null&&a.DisableWriteActions)||!1,workflowTerminateDisabled:!!(a!=null&&a.WorkflowTerminateDisabled),workflowCancelDisabled:!!(a!=null&&a.WorkflowCancelDisabled),workflowSignalDisabled:!!(a!=null&&a.WorkflowSignalDisabled),workflowResetDisabled:!!(a!=null&&a.WorkflowResetDisabled),batchActionsDisabled:!!(a!=null&&a.BatchActionsDisabled),showTemporalSystemNamespace:a==null?void 0:a.ShowTemporalSystemNamespace,notifyOnNewVersion:a==null?void 0:a.NotifyOnNewVersion,feedbackURL:a==null?void 0:a.FeedbackURL,runtimeEnvironment:{get isCloud(){return r==="cloud"},get isLocal(){return r==="local"},envOverride:Boolean(r)},version:a==null?void 0:a.Version};return b.set(l),l};export{e as f,C as i}; +import{s as b}from"./settings.34723850.js";import{r as w,a as k,g as D}from"./route-for-api.75ac86ec.js";function A(){return"cloud"}const C=/(tmprl\.cloud|tmprl-test\.cloud)$/,e=async(f=fetch)=>{var c,o,d,i,u;const m=w("settings"),a=await k(m,{request:f}),r=A(),l={auth:{enabled:!!((c=a==null?void 0:a.Auth)!=null&&c.Enabled),options:(o=a==null?void 0:a.Auth)==null?void 0:o.Options},baseUrl:D(),codec:{endpoint:(d=a==null?void 0:a.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=a==null?void 0:a.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=a==null?void 0:a.Codec)==null?void 0:u.IncludeCredentials},defaultNamespace:(a==null?void 0:a.DefaultNamespace)||"default",disableWriteActions:!!(a!=null&&a.DisableWriteActions)||!1,workflowTerminateDisabled:!!(a!=null&&a.WorkflowTerminateDisabled),workflowCancelDisabled:!!(a!=null&&a.WorkflowCancelDisabled),workflowSignalDisabled:!!(a!=null&&a.WorkflowSignalDisabled),workflowResetDisabled:!!(a!=null&&a.WorkflowResetDisabled),batchActionsDisabled:!!(a!=null&&a.BatchActionsDisabled),showTemporalSystemNamespace:a==null?void 0:a.ShowTemporalSystemNamespace,notifyOnNewVersion:a==null?void 0:a.NotifyOnNewVersion,feedbackURL:a==null?void 0:a.FeedbackURL,runtimeEnvironment:{get isCloud(){return r==="cloud"},get isLocal(){return r==="local"},envOverride:Boolean(r)},version:a==null?void 0:a.Version};return b.set(l),l};export{e as f,C as i}; diff --git a/ui/assets/cloud/_app/immutable/chunks/singletons.1bc1b54a.js b/ui/assets/cloud/_app/immutable/chunks/singletons.d80358da.js similarity index 97% rename from ui/assets/cloud/_app/immutable/chunks/singletons.1bc1b54a.js rename to ui/assets/cloud/_app/immutable/chunks/singletons.d80358da.js index adb5c8bde6..6f15a6d465 100644 --- a/ui/assets/cloud/_app/immutable/chunks/singletons.1bc1b54a.js +++ b/ui/assets/cloud/_app/immutable/chunks/singletons.d80358da.js @@ -1 +1 @@ -import{w as u}from"./index.deae5bd4.js";import{a as _}from"./paths.bb4ad9d4.js";const g="1680058342322",k="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function T(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}function I(){return{x:pageXOffset,y:pageYOffset}}function i(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function S(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const s=t instanceof SVGAElement?t.target.baseVal:t.target,a=!n||!!s||v(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external")||t.hasAttribute("download");return{url:n,external:a,target:s}}function x(t){let e=null,n=null,s=null,a=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),e===null&&(e=i(o,"noscroll")),a===null&&(a=i(o,"reload")),o=h(o);return{preload_code:d[n??"off"],preload_data:d[s??"off"],noscroll:e==="off"?!1:e===""?!0:null,reload:a==="off"?!1:a===""?!0:null}}function p(t){const e=u(t);let n=!0;function s(){n=!0,e.update(r=>r)}function a(r){n=!1,e.set(r)}function o(r){let l;return e.subscribe(c=>{(l===void 0||n&&c!==l)&&r(l=c)})}return{notify:s,set:a,subscribe:o}}function b(){const{set:t,subscribe:e}=u(!1),n=1e4;let s;async function a(){clearTimeout(s),s=setTimeout(a,n);const o=await fetch(`${_}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(o.ok){const l=(await o.json()).version!==g;return l&&(t(!0),clearTimeout(s)),l}else throw new Error(`Version check failed: ${o.status}`)}return s=setTimeout(a,n),{subscribe:e,check:a}}function v(t,e){return t.origin!==location.origin||!t.pathname.startsWith(e)}let m;function O(t){m=t.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,k as a,y as b,x as c,I as d,O as e,S as f,T as g,m as h,v as i,U as s}; +import{w as u}from"./index.deae5bd4.js";import{a as _}from"./paths.4fd8dc14.js";const g="1680062610093",k="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function T(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}function I(){return{x:pageXOffset,y:pageYOffset}}function i(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function S(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const s=t instanceof SVGAElement?t.target.baseVal:t.target,a=!n||!!s||v(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external")||t.hasAttribute("download");return{url:n,external:a,target:s}}function x(t){let e=null,n=null,s=null,a=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),e===null&&(e=i(o,"noscroll")),a===null&&(a=i(o,"reload")),o=h(o);return{preload_code:d[n??"off"],preload_data:d[s??"off"],noscroll:e==="off"?!1:e===""?!0:null,reload:a==="off"?!1:a===""?!0:null}}function p(t){const e=u(t);let n=!0;function s(){n=!0,e.update(r=>r)}function a(r){n=!1,e.set(r)}function o(r){let l;return e.subscribe(c=>{(l===void 0||n&&c!==l)&&r(l=c)})}return{notify:s,set:a,subscribe:o}}function b(){const{set:t,subscribe:e}=u(!1),n=1e4;let s;async function a(){clearTimeout(s),s=setTimeout(a,n);const o=await fetch(`${_}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(o.ok){const l=(await o.json()).version!==g;return l&&(t(!0),clearTimeout(s)),l}else throw new Error(`Version check failed: ${o.status}`)}return s=setTimeout(a,n),{subscribe:e,check:a}}function v(t,e){return t.origin!==location.origin||!t.pathname.startsWith(e)}let m;function O(t){m=t.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,k as a,y as b,x as c,I as d,O as e,S as f,T as g,m as h,v as i,U as s}; diff --git a/ui/assets/cloud/_app/immutable/chunks/stores.0bc9ce95.js b/ui/assets/cloud/_app/immutable/chunks/stores.a2e3306d.js similarity index 69% rename from ui/assets/cloud/_app/immutable/chunks/stores.0bc9ce95.js rename to ui/assets/cloud/_app/immutable/chunks/stores.a2e3306d.js index 95723e34b6..6debbdc3aa 100644 --- a/ui/assets/cloud/_app/immutable/chunks/stores.0bc9ce95.js +++ b/ui/assets/cloud/_app/immutable/chunks/stores.a2e3306d.js @@ -1 +1 @@ -import"./index.a36c9cb0.js";import{s as t}from"./singletons.1bc1b54a.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.a36c9cb0.js";import{s as t}from"./singletons.d80358da.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/cloud/_app/immutable/chunks/toggle-buttons.323d739d.js b/ui/assets/cloud/_app/immutable/chunks/toggle-buttons.fba008ff.js similarity index 98% rename from ui/assets/cloud/_app/immutable/chunks/toggle-buttons.323d739d.js rename to ui/assets/cloud/_app/immutable/chunks/toggle-buttons.fba008ff.js index 91795a87b5..43cd4426f1 100644 --- a/ui/assets/cloud/_app/immutable/chunks/toggle-buttons.323d739d.js +++ b/ui/assets/cloud/_app/immutable/chunks/toggle-buttons.fba008ff.js @@ -1 +1 @@ -import{ah as w,S as J,b as K,a as L,e as F,f as j,z,g,h as B,j as v,k as b,K as $,N as T,O as G,P as H,m as y,p as E,q as I,Q as V,R as p,T as O,U as Q,G as D,H as A,I as N,J as S,C as R,c as U,D as M,d as W,u as C,E as X,L as P,F as Y,ai as x}from"./index.a36c9cb0.js";import{I as Z}from"./icon.33859671.js";import{p as ee}from"./stores.0bc9ce95.js";function le(r){return w(r)}function te(r){let e,l,t,s,a,u,i,n;const f=[re,ne],c=[];function h(_,o){return _[0]?0:1}l=h(r),t=c[l]=f[l](r);let k=[{class:s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{id:a=r[6].id},r[6]],d={};for(let _=0;_{c[m]=null}),B(),t=c[l],t?t.p(_,o):(t=c[l]=f[l](_),t.c()),v(t,1),t.m(e,null)),V(e,d=Q(k,[(!u||o&64&&s!==(s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+_[6].class))&&{class:s},(!u||o&64&&a!==(a=_[6].id))&&{id:a},o&64&&_[6]])),p(e,"rounded-lg",!_[1]),p(e,"active",_[4]),p(e,"group",_[1]),p(e,"svelte-1orl6nd",!0)},i(_){u||(v(t),u=!0)},o(_){g(t),u=!1},d(_){_&&b(e),c[l].d(),i=!1,n()}}}function se(r){let e,l,t,s,a,u,i,n,f;const c=[ie,ae],h=[];function k(o,m){return o[0]?0:1}l=k(r),t=h[l]=c[l](r);let d=[{class:s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{href:a=r[2]+r[5].url.search},{id:u=r[6].id},r[6]],_={};for(let o=0;o{h[q]=null}),B(),t=h[l],t?t.p(o,m):(t=h[l]=c[l](o),t.c()),v(t,1),t.m(e,null)),V(e,_=Q(d,[(!i||m&64&&s!==(s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+o[6].class))&&{class:s},(!i||m&36&&a!==(a=o[2]+o[5].url.search))&&{href:a},(!i||m&64&&u!==(u=o[6].id))&&{id:u},m&64&&o[6]])),p(e,"rounded-lg",!o[1]),p(e,"active",o[5].url.pathname.includes(o[3])||o[4]),p(e,"group",o[1]),p(e,"svelte-1orl6nd",!0)},i(o){i||(v(t),i=!0)},o(o){g(t),i=!1},d(o){o&&b(e),h[l].d(),n=!1,f()}}}function ne(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function re(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function ae(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function ie(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function oe(r){let e,l,t,s;const a=[se,te],u=[];function i(n,f){return n[2]?0:1}return e=i(r),l=u[e]=a[e](r),{c(){l.c(),t=F()},l(n){l.l(n),t=F()},m(n,f){u[e].m(n,f),j(n,t,f),s=!0},p(n,[f]){let c=e;e=i(n),e===c?u[e].p(n,f):(z(),g(u[c],1,1,()=>{u[c]=null}),B(),l=u[e],l?l.p(n,f):(l=u[e]=a[e](n),l.c()),v(l,1),l.m(t.parentNode,t))},i(n){s||(v(l),s=!0)},o(n){g(l),s=!1},d(n){u[e].d(n),n&&b(t)}}}function ue(r,e,l){let t;$(r,ee,d=>l(5,t=d));let{$$slots:s={},$$scope:a}=e,{icon:u=null}=e,{group:i=le("group")}=e,{href:n=""}=e,{base:f=n}=e,{active:c=!1}=e;function h(d){H.call(this,r,d)}function k(d){H.call(this,r,d)}return r.$$set=d=>{l(6,e=T(T({},e),G(d))),"icon"in d&&l(0,u=d.icon),"group"in d&&l(1,i=d.group),"href"in d&&l(2,n=d.href),"base"in d&&l(3,f=d.base),"active"in d&&l(4,c=d.active),"$$scope"in d&&l(7,a=d.$$scope)},e=G(e),[u,i,n,f,c,t,e,a,s,h,k]}class pe extends J{constructor(e){super(),K(this,e,ue,oe,L,{icon:0,group:1,href:2,base:3,active:4})}}function fe(r){let e,l;const t=r[1].default,s=D(t,r,r[0],null);return{c(){e=y("div"),s&&s.c(),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);s&&s.l(u),u.forEach(b),this.h()},h(){C(e,"class","flex")},m(a,u){j(a,e,u),s&&s.m(e,null),l=!0},p(a,[u]){s&&s.p&&(!l||u&1)&&A(s,t,a,a[0],l?S(t,a[0],u,null):N(a[0]),null)},i(a){l||(v(s,a),l=!0)},o(a){g(s,a),l=!1},d(a){a&&b(e),s&&s.d(a)}}}function ce(r,e,l){let{$$slots:t={},$$scope:s}=e;return x("group",!0),r.$$set=a=>{"$$scope"in a&&l(0,s=a.$$scope)},[s,t]}class he extends J{constructor(e){super(),K(this,e,ce,fe,L,{})}}export{he as T,pe as a}; +import{ah as w,S as J,b as K,a as L,e as F,f as j,z,g,h as B,j as v,k as b,K as $,N as T,O as G,P as H,m as y,p as E,q as I,Q as V,R as p,T as O,U as Q,G as D,H as A,I as N,J as S,C as R,c as U,D as M,d as W,u as C,E as X,L as P,F as Y,ai as x}from"./index.a36c9cb0.js";import{I as Z}from"./icon.33859671.js";import{p as ee}from"./stores.a2e3306d.js";function le(r){return w(r)}function te(r){let e,l,t,s,a,u,i,n;const f=[re,ne],c=[];function h(_,o){return _[0]?0:1}l=h(r),t=c[l]=f[l](r);let k=[{class:s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{id:a=r[6].id},r[6]],d={};for(let _=0;_{c[m]=null}),B(),t=c[l],t?t.p(_,o):(t=c[l]=f[l](_),t.c()),v(t,1),t.m(e,null)),V(e,d=Q(k,[(!u||o&64&&s!==(s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+_[6].class))&&{class:s},(!u||o&64&&a!==(a=_[6].id))&&{id:a},o&64&&_[6]])),p(e,"rounded-lg",!_[1]),p(e,"active",_[4]),p(e,"group",_[1]),p(e,"svelte-1orl6nd",!0)},i(_){u||(v(t),u=!0)},o(_){g(t),u=!1},d(_){_&&b(e),c[l].d(),i=!1,n()}}}function se(r){let e,l,t,s,a,u,i,n,f;const c=[ie,ae],h=[];function k(o,m){return o[0]?0:1}l=k(r),t=h[l]=c[l](r);let d=[{class:s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{href:a=r[2]+r[5].url.search},{id:u=r[6].id},r[6]],_={};for(let o=0;o{h[q]=null}),B(),t=h[l],t?t.p(o,m):(t=h[l]=c[l](o),t.c()),v(t,1),t.m(e,null)),V(e,_=Q(d,[(!i||m&64&&s!==(s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+o[6].class))&&{class:s},(!i||m&36&&a!==(a=o[2]+o[5].url.search))&&{href:a},(!i||m&64&&u!==(u=o[6].id))&&{id:u},m&64&&o[6]])),p(e,"rounded-lg",!o[1]),p(e,"active",o[5].url.pathname.includes(o[3])||o[4]),p(e,"group",o[1]),p(e,"svelte-1orl6nd",!0)},i(o){i||(v(t),i=!0)},o(o){g(t),i=!1},d(o){o&&b(e),h[l].d(),n=!1,f()}}}function ne(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function re(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function ae(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function ie(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function oe(r){let e,l,t,s;const a=[se,te],u=[];function i(n,f){return n[2]?0:1}return e=i(r),l=u[e]=a[e](r),{c(){l.c(),t=F()},l(n){l.l(n),t=F()},m(n,f){u[e].m(n,f),j(n,t,f),s=!0},p(n,[f]){let c=e;e=i(n),e===c?u[e].p(n,f):(z(),g(u[c],1,1,()=>{u[c]=null}),B(),l=u[e],l?l.p(n,f):(l=u[e]=a[e](n),l.c()),v(l,1),l.m(t.parentNode,t))},i(n){s||(v(l),s=!0)},o(n){g(l),s=!1},d(n){u[e].d(n),n&&b(t)}}}function ue(r,e,l){let t;$(r,ee,d=>l(5,t=d));let{$$slots:s={},$$scope:a}=e,{icon:u=null}=e,{group:i=le("group")}=e,{href:n=""}=e,{base:f=n}=e,{active:c=!1}=e;function h(d){H.call(this,r,d)}function k(d){H.call(this,r,d)}return r.$$set=d=>{l(6,e=T(T({},e),G(d))),"icon"in d&&l(0,u=d.icon),"group"in d&&l(1,i=d.group),"href"in d&&l(2,n=d.href),"base"in d&&l(3,f=d.base),"active"in d&&l(4,c=d.active),"$$scope"in d&&l(7,a=d.$$scope)},e=G(e),[u,i,n,f,c,t,e,a,s,h,k]}class pe extends J{constructor(e){super(),K(this,e,ue,oe,L,{icon:0,group:1,href:2,base:3,active:4})}}function fe(r){let e,l;const t=r[1].default,s=D(t,r,r[0],null);return{c(){e=y("div"),s&&s.c(),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);s&&s.l(u),u.forEach(b),this.h()},h(){C(e,"class","flex")},m(a,u){j(a,e,u),s&&s.m(e,null),l=!0},p(a,[u]){s&&s.p&&(!l||u&1)&&A(s,t,a,a[0],l?S(t,a[0],u,null):N(a[0]),null)},i(a){l||(v(s,a),l=!0)},o(a){g(s,a),l=!1},d(a){a&&b(e),s&&s.d(a)}}}function ce(r,e,l){let{$$slots:t={},$$scope:s}=e;return x("group",!0),r.$$set=a=>{"$$scope"in a&&l(0,s=a.$$scope)},[s,t]}class he extends J{constructor(e){super(),K(this,e,ce,fe,L,{})}}export{he as T,pe as a}; diff --git a/ui/assets/cloud/_app/immutable/chunks/workflow-service.24d3174e.js b/ui/assets/cloud/_app/immutable/chunks/workflow-service.b203d78a.js similarity index 95% rename from ui/assets/cloud/_app/immutable/chunks/workflow-service.24d3174e.js rename to ui/assets/cloud/_app/immutable/chunks/workflow-service.b203d78a.js index 2268c9e2af..a91488c270 100644 --- a/ui/assets/cloud/_app/immutable/chunks/workflow-service.24d3174e.js +++ b/ui/assets/cloud/_app/immutable/chunks/workflow-service.b203d78a.js @@ -1 +1 @@ -import{W as v,n as d}from"./index.a36c9cb0.js";import{s as C}from"./settings.34723850.js";import{s as F}from"./simplify-attributes.ba9e7501.js";import{r as l,a as f,b as O,i as z,c as U}from"./route-for-api.81ced9ce.js";import{t as $}from"./list-workflow-query.18f8dd4a.js";import{s as y}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.70dfbf18.js";import{v as R}from"./toaster.16c48a98.js";const q=(o=C)=>!v(o).disableWriteActions,_=(o=[])=>o.map(t=>{const n=F(t,!0),r=t.activityId;return{...n,id:r}}),g=o=>{var I,x,T,W,b;const t=o.workflowExecutionInfo.type.name,n=o.workflowExecutionInfo.execution.workflowId,r=o.workflowExecutionInfo.execution.runId,e=String(o.workflowExecutionInfo.startTime),a=String(o.workflowExecutionInfo.closeTime),i=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",u=o.workflowExecutionInfo.historyLength,w=`/workflows/${n}/${r}`,h=(x=(I=o==null?void 0:o.executionConfig)==null?void 0:I.taskQueue)==null?void 0:x.name,E=(T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.parentNamespaceId,s=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,k=o.workflowExecutionInfo.stateTransitionCount,m=(b=o.executionConfig)==null?void 0:b.defaultWorkflowTaskTimeout,P=_(o.pendingActivities),S=(o==null?void 0:o.pendingChildren)??[];return{name:t,id:n,runId:r,startTime:e,endTime:a,status:i,historyEvents:u,url:w,taskQueue:h,pendingActivities:P,pendingChildren:S,parentNamespaceId:E,parent:s,stateTransitionCount:k,isRunning:c,defaultWorkflowTaskTimeout:m,get canBeTerminated(){return c&&q()}}},A=o=>(o.executions||[]).map(t=>g({workflowExecutionInfo:t})),B=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),p=(o,t=Q)=>t?B(o):o,V=async(o,t,n=fetch)=>{let r=0,e=0;try{const a=l("workflows.count",{namespace:o});if(t){const i=f(a,{params:{query:t},onError:d,handleError:d,request:n}),c=f(a,{params:{query:""},onError:d,handleError:d,request:n}),[u,w]=await Promise.all([i,c]);e=u==null?void 0:u.count,r=w==null?void 0:w.count}else{const i=await f(a,{params:{},onError:d,handleError:d,request:n});r=i==null?void 0:i.count}}catch{}return{count:e,totalCount:r}},D=async(o,t,n=fetch,r=!1)=>{const e=t.query||$(t,r);let a;try{a=decodeURIComponent(e)}catch{a=e}const i=r?"workflows.archived":"workflows";let c="";const u=s=>{var k,m;O(s),(k=s==null?void 0:s.body)!=null&&k.message||s!=null&&s.status?c=((m=s==null?void 0:s.body)==null?void 0:m.message)??`Error fetching workflows: ${s.status}: ${s.statusText}`:c="Error fetching workflows: Server failed to respond"},w=l(i,{namespace:o}),{executions:h,nextPageToken:E}=await f(w,{params:{query:a},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:A({executions:h}),nextPageToken:String(E),error:c}},X=async(o,t=fetch)=>{var u;const{namespace:n,workflowId:r}=o,a=l("workflows",{namespace:n}),{executions:i}=await f(a,{params:{query:`WorkflowId="${r}"`,pageSize:"1"},request:t})??{executions:[]},c=(u=A({executions:i}))==null?void 0:u[0];return{runId:c==null?void 0:c.runId}},Y=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const a=c=>{(z(c)||U(c))&&(e=!1)},i=l(r,{namespace:o});return await f(i,{params:{pageSize:"1"},onError:a,handleError:a,request:t}),{authorized:e}},Z=async(o,t,n=fetch)=>D(o,t,n,!0);async function oo(o,t=fetch){const n=l("workflow",o);return f(n,{request:t}).then(g)}async function to({workflow:o,namespace:t,reason:n}){const r=l("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await f(r,{options:{method:"POST",body:y({reason:n})},shouldRetry:!1,notifyOnError:!1})}async function no({namespace:o,workflowId:t,runId:n},r=fetch){const e=l("workflow.cancel",{namespace:o,workflowId:t,runId:n});return f(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function ro({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e}){const a=l("workflow.signal",{namespace:o,workflowId:t,runId:n});return f(a,{notifyOnError:!1,options:{method:"POST",body:y({signalName:r,input:{payloads:e?[{metadata:{encoding:p("json/plain")},data:p(e)}]:null}})}})}async function eo({namespace:o,workflowId:t,runId:n,eventId:r,reason:e}){const a=l("workflow.reset",{namespace:o,workflowId:t,runId:n}),i={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,requestId:R(),reason:e};return f(a,{notifyOnError:!1,options:{method:"POST",body:y(i)}})}async function ao(o,t=fetch){const n=e=>{console.error(e)},r=l("workflow",o);return f(r,{request:t,onError:n,handleError:n}).then(g)}export{D as a,V as b,no as c,Y as d,Z as e,oo as f,ao as g,X as h,eo as r,ro as s,to as t,q as w}; +import{W as v,n as d}from"./index.a36c9cb0.js";import{s as C}from"./settings.34723850.js";import{s as F}from"./simplify-attributes.ba9e7501.js";import{r as l,a as f,b as O,i as z,c as U}from"./route-for-api.75ac86ec.js";import{t as $}from"./list-workflow-query.34f80e4f.js";import{s as y}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.087ea268.js";import{v as R}from"./toaster.16c48a98.js";const q=(o=C)=>!v(o).disableWriteActions,_=(o=[])=>o.map(t=>{const n=F(t,!0),r=t.activityId;return{...n,id:r}}),g=o=>{var I,x,T,W,b;const t=o.workflowExecutionInfo.type.name,n=o.workflowExecutionInfo.execution.workflowId,r=o.workflowExecutionInfo.execution.runId,e=String(o.workflowExecutionInfo.startTime),a=String(o.workflowExecutionInfo.closeTime),i=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",u=o.workflowExecutionInfo.historyLength,w=`/workflows/${n}/${r}`,h=(x=(I=o==null?void 0:o.executionConfig)==null?void 0:I.taskQueue)==null?void 0:x.name,E=(T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.parentNamespaceId,s=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,k=o.workflowExecutionInfo.stateTransitionCount,m=(b=o.executionConfig)==null?void 0:b.defaultWorkflowTaskTimeout,P=_(o.pendingActivities),S=(o==null?void 0:o.pendingChildren)??[];return{name:t,id:n,runId:r,startTime:e,endTime:a,status:i,historyEvents:u,url:w,taskQueue:h,pendingActivities:P,pendingChildren:S,parentNamespaceId:E,parent:s,stateTransitionCount:k,isRunning:c,defaultWorkflowTaskTimeout:m,get canBeTerminated(){return c&&q()}}},A=o=>(o.executions||[]).map(t=>g({workflowExecutionInfo:t})),B=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),p=(o,t=Q)=>t?B(o):o,V=async(o,t,n=fetch)=>{let r=0,e=0;try{const a=l("workflows.count",{namespace:o});if(t){const i=f(a,{params:{query:t},onError:d,handleError:d,request:n}),c=f(a,{params:{query:""},onError:d,handleError:d,request:n}),[u,w]=await Promise.all([i,c]);e=u==null?void 0:u.count,r=w==null?void 0:w.count}else{const i=await f(a,{params:{},onError:d,handleError:d,request:n});r=i==null?void 0:i.count}}catch{}return{count:e,totalCount:r}},D=async(o,t,n=fetch,r=!1)=>{const e=t.query||$(t,r);let a;try{a=decodeURIComponent(e)}catch{a=e}const i=r?"workflows.archived":"workflows";let c="";const u=s=>{var k,m;O(s),(k=s==null?void 0:s.body)!=null&&k.message||s!=null&&s.status?c=((m=s==null?void 0:s.body)==null?void 0:m.message)??`Error fetching workflows: ${s.status}: ${s.statusText}`:c="Error fetching workflows: Server failed to respond"},w=l(i,{namespace:o}),{executions:h,nextPageToken:E}=await f(w,{params:{query:a},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:A({executions:h}),nextPageToken:String(E),error:c}},X=async(o,t=fetch)=>{var u;const{namespace:n,workflowId:r}=o,a=l("workflows",{namespace:n}),{executions:i}=await f(a,{params:{query:`WorkflowId="${r}"`,pageSize:"1"},request:t})??{executions:[]},c=(u=A({executions:i}))==null?void 0:u[0];return{runId:c==null?void 0:c.runId}},Y=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const a=c=>{(z(c)||U(c))&&(e=!1)},i=l(r,{namespace:o});return await f(i,{params:{pageSize:"1"},onError:a,handleError:a,request:t}),{authorized:e}},Z=async(o,t,n=fetch)=>D(o,t,n,!0);async function oo(o,t=fetch){const n=l("workflow",o);return f(n,{request:t}).then(g)}async function to({workflow:o,namespace:t,reason:n}){const r=l("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await f(r,{options:{method:"POST",body:y({reason:n})},shouldRetry:!1,notifyOnError:!1})}async function no({namespace:o,workflowId:t,runId:n},r=fetch){const e=l("workflow.cancel",{namespace:o,workflowId:t,runId:n});return f(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function ro({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e}){const a=l("workflow.signal",{namespace:o,workflowId:t,runId:n});return f(a,{notifyOnError:!1,options:{method:"POST",body:y({signalName:r,input:{payloads:e?[{metadata:{encoding:p("json/plain")},data:p(e)}]:null}})}})}async function eo({namespace:o,workflowId:t,runId:n,eventId:r,reason:e}){const a=l("workflow.reset",{namespace:o,workflowId:t,runId:n}),i={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,requestId:R(),reason:e};return f(a,{notifyOnError:!1,options:{method:"POST",body:y(i)}})}async function ao(o,t=fetch){const n=e=>{console.error(e)},r=l("workflow",o);return f(r,{request:t,onError:n,handleError:n}).then(g)}export{D as a,V as b,no as c,Y as d,Z as e,oo as f,ao as g,X as h,eo as r,ro as s,to as t,q as w}; diff --git a/ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.3468108e.js b/ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.b144f440.js similarity index 97% rename from ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.3468108e.js rename to ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.b144f440.js index b2c87d45dc..f2a2a9bcd2 100644 --- a/ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.3468108e.js +++ b/ui/assets/cloud/_app/immutable/chunks/workflow-terminate-enabled.b144f440.js @@ -1 +1 @@ -import{d as Q,r as ke,w as I}from"./index.deae5bd4.js";import{p as le}from"./stores.0bc9ce95.js";import{a as pe,b as ge}from"./workflow-service.24d3174e.js";import{s as we}from"./list-workflow-query.18f8dd4a.js";import{S as se,b as ne,a as ae,C as D,D as M,E as R,j as b,g as k,F as q,ah as H,K as T,o as oe,aj as ve,G as ie,m as A,c as z,p as S,q as V,k as _,d as L,u as p,f as g,L as N,z as fe,h as re,H as ue,I as ce,J as de,A as me,w as j,x as F,y as B,ai as J,_ as K,N as Z,O as y,Y as Ce,Z as Ie,n as Oe,e as U,R as P}from"./index.a36c9cb0.js";import{I as _e}from"./icon.33859671.js";import{M as Ee}from"./menu-item.4122979b.js";import{M as Ae,a as Se,b as Ve}from"./menu.c922b8b1.js";const De=300,Me=async(s,e,l)=>{e.set(!0);try{await l()}catch(t){console.error(t)}s.set(!1),setTimeout(()=>{e.set(!1)},De)},Re=I(0),qe=Q([le],([s])=>s.params.namespace),We=Q([le],([s])=>s.url.searchParams.get("query")),ze=Q([qe,We,Re,we],([s,e,l,t])=>({namespace:s,query:e,refresh:l,supportsAdvancedVisibility:t})),Le=s=>{je.set(s)},Ne=s=>ze.subscribe(({namespace:e,query:l,supportsAdvancedVisibility:t})=>{Me(Te,Pe,async()=>{const{workflows:n,error:c}=await pe(e,{query:l});if(s(n),t){const r=await ge(e,l);Le(r)}c?X.set(c):X.set("")})}),nt=I(""),Pe=I(!0),Te=I(!0),je=I({count:0,totalCount:0}),X=I(""),at=ke([],Ne),ot=I("");function $(s){let e,l;return e=new _e({props:{name:"checkmark"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function x(s){let e,l;return{c(){e=A("span"),l=j(s[0]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var n=V(e);l=F(n,s[0]),n.forEach(_),this.h()},h(){p(e,"class","option-description svelte-opscnd")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&1&&B(l,t[0])},d(t){t&&_(e)}}}function Fe(s){let e,l,t,n,c,r,f=s[3]&&$();const a=s[10].default,o=ie(a,s,s[12],null);let i=s[0]&&x(s);return{c(){e=A("div"),f&&f.c(),l=z(),t=A("div"),n=A("span"),o&&o.c(),c=z(),i&&i.c(),this.h()},l(u){e=S(u,"DIV",{class:!0});var h=V(e);f&&f.l(h),h.forEach(_),l=L(u),t=S(u,"DIV",{class:!0});var v=V(t);n=S(v,"SPAN",{class:!0});var C=V(n);o&&o.l(C),C.forEach(_),c=L(v),i&&i.l(v),v.forEach(_),this.h()},h(){p(e,"class","mr-2 w-6"),p(n,"class","option-label svelte-opscnd"),p(t,"class","flex w-full flex-col")},m(u,h){g(u,e,h),f&&f.m(e,null),g(u,l,h),g(u,t,h),N(t,n),o&&o.m(n,null),s[11](n),N(t,c),i&&i.m(t,null),r=!0},p(u,h){u[3]?f?h&8&&b(f,1):(f=$(),f.c(),b(f,1),f.m(e,null)):f&&(fe(),k(f,1,1,()=>{f=null}),re()),o&&o.p&&(!r||h&4096)&&ue(o,a,u,u[12],r?de(a,u[12],h,null):ce(u[12]),null),u[0]?i?i.p(u,h):(i=x(u),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(u){r||(b(f),b(o,u),r=!0)},o(u){k(f),k(o,u),r=!1},d(u){u&&_(e),f&&f.d(),u&&_(l),u&&_(t),o&&o.d(u),s[11](null),i&&i.d()}}}function Be(s){let e,l;return e=new Ee({props:{class:"flex flex-row items-start",selected:s[3],dark:s[1],$$slots:{default:[Fe]},$$scope:{ctx:s}}}),e.$on("click",s[6]),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},p(t,[n]){const c={};n&8&&(c.selected=t[3]),n&2&&(c.dark=t[1]),n&4109&&(c.$$scope={dirty:n,ctx:t}),e.$set(c)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ge(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e;const f=H("select-value");T(s,f,m=>l(9,n=m));const a=H("select-change"),o=H("select-options");T(s,o,m=>l(14,t=m));let{value:i}=e,{description:u=""}=e,{dark:h=!1}=e,v=!1,C,w,O;oe(()=>{w&&(O=w.textContent,t.push({value:i,label:O}))}),ve(()=>{let m=t.findIndex(W=>W.value===i);m!==void 0&&t.splice(m,1)});const E=()=>{a(C)};function G(m){me[m?"unshift":"push"](()=>{w=m,l(2,w)})}return s.$$set=m=>{"value"in m&&l(7,i=m.value),"description"in m&&l(0,u=m.description),"dark"in m&&l(1,h=m.dark),"$$scope"in m&&l(12,r=m.$$scope)},s.$$.update=()=>{s.$$.dirty&900&&w&&(l(8,C=i??w.textContent),l(3,v=n.value===C),O=w.textContent)},[u,h,w,v,f,o,E,i,C,n,c,G,r]}class it extends se{constructor(e){super(),ne(this,e,Ge,Be,ae,{value:7,description:0,dark:1})}}function ee(s){let e,l;return{c(){e=A("label"),l=j(s[2]),this.h()},l(t){e=S(t,"LABEL",{for:!0,class:!0});var n=V(e);l=F(n,s[2]),n.forEach(_),this.h()},h(){p(e,"for",s[3]),p(e,"class","svelte-1kzttn7")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&4&&B(l,t[2]),n&8&&p(e,"for",t[3])},d(t){t&&_(e)}}}function He(s){let e=s[9].label+"",l;return{c(){l=j(e)},l(t){l=F(t,e)},m(t,n){g(t,l,n)},p(t,n){n&512&&e!==(e=t[9].label+"")&&B(l,e)},d(t){t&&_(l)}}}function Je(s){let e;return{c(){e=j(s[5])},l(l){e=F(l,s[5])},m(l,t){g(l,e,t)},p(l,t){t&32&&B(e,l[5])},d(l){l&&_(e)}}}function te(s){let e,l;return e=new _e({props:{name:"lock",class:"text-gray-500"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ke(s){let e,l,t,n;function c(o,i){return!o[0]&&o[5]!==""?Je:He}let r=c(s),f=r(s),a=s[6]&&te();return{c(){e=A("div"),f.c(),l=z(),a&&a.c(),t=U(),this.h()},l(o){e=S(o,"DIV",{class:!0,id:!0});var i=V(e);f.l(i),i.forEach(_),l=L(o),a&&a.l(o),t=U(),this.h()},h(){p(e,"class","select-input svelte-1kzttn7"),p(e,"id",s[3]),P(e,"dark",s[4]),P(e,"disabled",s[6])},m(o,i){g(o,e,i),f.m(e,null),g(o,l,i),a&&a.m(o,i),g(o,t,i),n=!0},p(o,i){r===(r=c(o))&&f?f.p(o,i):(f.d(1),f=r(o),f&&(f.c(),f.m(e,null))),(!n||i&8)&&p(e,"id",o[3]),(!n||i&16)&&P(e,"dark",o[4]),(!n||i&64)&&P(e,"disabled",o[6]),o[6]?a?i&64&&b(a,1):(a=te(),a.c(),b(a,1),a.m(t.parentNode,t)):a&&(fe(),k(a,1,1,()=>{a=null}),re())},i(o){n||(b(a),n=!0)},o(o){k(a),n=!1},d(o){o&&_(e),f.d(),o&&_(l),a&&a.d(o),o&&_(t)}}}function Qe(s){let e;const l=s[14].default,t=ie(l,s,s[16],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,c){t&&t.m(n,c),e=!0},p(n,c){t&&t.p&&(!e||c&65536)&&ue(t,l,n,n[16],e?de(l,n[16],c,null):ce(n[16]),null)},i(n){e||(b(t,n),e=!0)},o(n){k(t,n),e=!1},d(n){t&&t.d(n)}}}function Ye(s){let e,l,t,n,c;function r(a){s[15](a)}let f={hasIndicator:!s[6],class:"select-input-container "+(s[6]?"disabled":"")+" "+(s[7]?"unroundRight":""),keepOpen:s[8],controls:s[3]+"-menu",testId:s[12].testId,dark:s[4],disabled:s[6],$$slots:{default:[Ke]},$$scope:{ctx:s}};return s[1]!==void 0&&(f.show=s[1]),e=new Se({props:f}),me.push(()=>Ce(e,"show",r)),n=new Ve({props:{id:s[3]+"-menu",class:"h-auto max-h-96 min-w-fit",show:s[1],dark:s[4],$$slots:{default:[Qe]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),t=z(),D(n.$$.fragment)},l(a){M(e.$$.fragment,a),t=L(a),M(n.$$.fragment,a)},m(a,o){R(e,a,o),g(a,t,o),R(n,a,o),c=!0},p(a,o){const i={};o&64&&(i.hasIndicator=!a[6]),o&192&&(i.class="select-input-container "+(a[6]?"disabled":"")+" "+(a[7]?"unroundRight":"")),o&256&&(i.keepOpen=a[8]),o&8&&(i.controls=a[3]+"-menu"),o&4096&&(i.testId=a[12].testId),o&16&&(i.dark=a[4]),o&64&&(i.disabled=a[6]),o&66169&&(i.$$scope={dirty:o,ctx:a}),!l&&o&2&&(l=!0,i.show=a[1],Ie(()=>l=!1)),e.$set(i);const u={};o&8&&(u.id=a[3]+"-menu"),o&2&&(u.show=a[1]),o&16&&(u.dark=a[4]),o&65536&&(u.$$scope={dirty:o,ctx:a}),n.$set(u)},i(a){c||(b(e.$$.fragment,a),b(n.$$.fragment,a),c=!0)},o(a){k(e.$$.fragment,a),k(n.$$.fragment,a),c=!1},d(a){q(e,a),a&&_(t),q(n,a)}}}function Ze(s){let e,l,t,n,c,r=s[2]&&ee(s);return t=new Ae({props:{class:"w-full",$$slots:{default:[Ye]},$$scope:{ctx:s}}}),{c(){e=A("div"),r&&r.c(),l=z(),D(t.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var a=V(e);r&&r.l(a),l=L(a),M(t.$$.fragment,a),a.forEach(_),this.h()},h(){p(e,"class",n="select "+s[12].class+" svelte-1kzttn7")},m(f,a){g(f,e,a),r&&r.m(e,null),N(e,l),R(t,e,null),c=!0},p(f,[a]){f[2]?r?r.p(f,a):(r=ee(f),r.c(),r.m(e,l)):r&&(r.d(1),r=null);const o={};a&70651&&(o.$$scope={dirty:a,ctx:f}),t.$set(o),(!c||a&4096&&n!==(n="select "+f[12].class+" svelte-1kzttn7"))&&p(e,"class",n)},i(f){c||(b(t.$$.fragment,f),c=!0)},o(f){k(t.$$.fragment,f),c=!1},d(f){f&&_(e),r&&r.d(),q(t)}}}function ye(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e,{show:f=!1}=e,{label:a=""}=e,{id:o}=e,{value:i=void 0}=e,{dark:u=!1}=e,{placeholder:h=""}=e,{disabled:v=!1}=e,{unroundRight:C=!1}=e,{keepOpen:w=!1}=e,{onChange:O=Oe}=e;const E=I({value:i,label:i==null?void 0:i.toString(),onChange:O});T(s,E,d=>l(9,t=d));const G=d=>{l(0,i=d),O(i)};function m(d){let Y=n.find(be=>be.value===d);if(Y!==void 0)return Y.label}const W=I([]);T(s,W,d=>l(17,n=d)),J("select-value",E),J("select-change",G),J("select-options",W),oe(()=>{K(E,t.label=m(i),t)});function he(d){f=d,l(1,f)}return s.$$set=d=>{l(12,e=Z(Z({},e),y(d))),"show"in d&&l(1,f=d.show),"label"in d&&l(2,a=d.label),"id"in d&&l(3,o=d.id),"value"in d&&l(0,i=d.value),"dark"in d&&l(4,u=d.dark),"placeholder"in d&&l(5,h=d.placeholder),"disabled"in d&&l(6,v=d.disabled),"unroundRight"in d&&l(7,C=d.unroundRight),"keepOpen"in d&&l(8,w=d.keepOpen),"onChange"in d&&l(13,O=d.onChange),"$$scope"in d&&l(16,r=d.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&(K(E,t.value=i,t),K(E,t.label=m(i),t))},e=y(e),[i,f,a,o,u,h,v,C,w,t,E,W,e,O,c,he,r]}class ft extends se{constructor(e){super(),ne(this,e,ye,Ze,ae,{show:1,label:2,id:3,value:0,dark:4,placeholder:5,disabled:6,unroundRight:7,keepOpen:8,onChange:13})}}const rt=s=>!s.disableWriteActions&&!s.workflowCancelDisabled,ut=s=>!s.disableWriteActions&&!s.workflowTerminateDisabled;export{it as O,ft as S,ut as a,nt as b,at as c,X as d,je as e,ot as f,Te as l,Re as r,Pe as u,rt as w}; +import{d as Q,r as ke,w as I}from"./index.deae5bd4.js";import{p as le}from"./stores.a2e3306d.js";import{a as pe,b as ge}from"./workflow-service.b203d78a.js";import{s as we}from"./list-workflow-query.34f80e4f.js";import{S as se,b as ne,a as ae,C as D,D as M,E as R,j as b,g as k,F as q,ah as H,K as T,o as oe,aj as ve,G as ie,m as A,c as z,p as S,q as V,k as _,d as L,u as p,f as g,L as N,z as fe,h as re,H as ue,I as ce,J as de,A as me,w as j,x as F,y as B,ai as J,_ as K,N as Z,O as y,Y as Ce,Z as Ie,n as Oe,e as U,R as P}from"./index.a36c9cb0.js";import{I as _e}from"./icon.33859671.js";import{M as Ee}from"./menu-item.4122979b.js";import{M as Ae,a as Se,b as Ve}from"./menu.c922b8b1.js";const De=300,Me=async(s,e,l)=>{e.set(!0);try{await l()}catch(t){console.error(t)}s.set(!1),setTimeout(()=>{e.set(!1)},De)},Re=I(0),qe=Q([le],([s])=>s.params.namespace),We=Q([le],([s])=>s.url.searchParams.get("query")),ze=Q([qe,We,Re,we],([s,e,l,t])=>({namespace:s,query:e,refresh:l,supportsAdvancedVisibility:t})),Le=s=>{je.set(s)},Ne=s=>ze.subscribe(({namespace:e,query:l,supportsAdvancedVisibility:t})=>{Me(Te,Pe,async()=>{const{workflows:n,error:c}=await pe(e,{query:l});if(s(n),t){const r=await ge(e,l);Le(r)}c?X.set(c):X.set("")})}),nt=I(""),Pe=I(!0),Te=I(!0),je=I({count:0,totalCount:0}),X=I(""),at=ke([],Ne),ot=I("");function $(s){let e,l;return e=new _e({props:{name:"checkmark"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function x(s){let e,l;return{c(){e=A("span"),l=j(s[0]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var n=V(e);l=F(n,s[0]),n.forEach(_),this.h()},h(){p(e,"class","option-description svelte-opscnd")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&1&&B(l,t[0])},d(t){t&&_(e)}}}function Fe(s){let e,l,t,n,c,r,f=s[3]&&$();const a=s[10].default,o=ie(a,s,s[12],null);let i=s[0]&&x(s);return{c(){e=A("div"),f&&f.c(),l=z(),t=A("div"),n=A("span"),o&&o.c(),c=z(),i&&i.c(),this.h()},l(u){e=S(u,"DIV",{class:!0});var h=V(e);f&&f.l(h),h.forEach(_),l=L(u),t=S(u,"DIV",{class:!0});var v=V(t);n=S(v,"SPAN",{class:!0});var C=V(n);o&&o.l(C),C.forEach(_),c=L(v),i&&i.l(v),v.forEach(_),this.h()},h(){p(e,"class","mr-2 w-6"),p(n,"class","option-label svelte-opscnd"),p(t,"class","flex w-full flex-col")},m(u,h){g(u,e,h),f&&f.m(e,null),g(u,l,h),g(u,t,h),N(t,n),o&&o.m(n,null),s[11](n),N(t,c),i&&i.m(t,null),r=!0},p(u,h){u[3]?f?h&8&&b(f,1):(f=$(),f.c(),b(f,1),f.m(e,null)):f&&(fe(),k(f,1,1,()=>{f=null}),re()),o&&o.p&&(!r||h&4096)&&ue(o,a,u,u[12],r?de(a,u[12],h,null):ce(u[12]),null),u[0]?i?i.p(u,h):(i=x(u),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(u){r||(b(f),b(o,u),r=!0)},o(u){k(f),k(o,u),r=!1},d(u){u&&_(e),f&&f.d(),u&&_(l),u&&_(t),o&&o.d(u),s[11](null),i&&i.d()}}}function Be(s){let e,l;return e=new Ee({props:{class:"flex flex-row items-start",selected:s[3],dark:s[1],$$slots:{default:[Fe]},$$scope:{ctx:s}}}),e.$on("click",s[6]),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},p(t,[n]){const c={};n&8&&(c.selected=t[3]),n&2&&(c.dark=t[1]),n&4109&&(c.$$scope={dirty:n,ctx:t}),e.$set(c)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ge(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e;const f=H("select-value");T(s,f,m=>l(9,n=m));const a=H("select-change"),o=H("select-options");T(s,o,m=>l(14,t=m));let{value:i}=e,{description:u=""}=e,{dark:h=!1}=e,v=!1,C,w,O;oe(()=>{w&&(O=w.textContent,t.push({value:i,label:O}))}),ve(()=>{let m=t.findIndex(W=>W.value===i);m!==void 0&&t.splice(m,1)});const E=()=>{a(C)};function G(m){me[m?"unshift":"push"](()=>{w=m,l(2,w)})}return s.$$set=m=>{"value"in m&&l(7,i=m.value),"description"in m&&l(0,u=m.description),"dark"in m&&l(1,h=m.dark),"$$scope"in m&&l(12,r=m.$$scope)},s.$$.update=()=>{s.$$.dirty&900&&w&&(l(8,C=i??w.textContent),l(3,v=n.value===C),O=w.textContent)},[u,h,w,v,f,o,E,i,C,n,c,G,r]}class it extends se{constructor(e){super(),ne(this,e,Ge,Be,ae,{value:7,description:0,dark:1})}}function ee(s){let e,l;return{c(){e=A("label"),l=j(s[2]),this.h()},l(t){e=S(t,"LABEL",{for:!0,class:!0});var n=V(e);l=F(n,s[2]),n.forEach(_),this.h()},h(){p(e,"for",s[3]),p(e,"class","svelte-1kzttn7")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&4&&B(l,t[2]),n&8&&p(e,"for",t[3])},d(t){t&&_(e)}}}function He(s){let e=s[9].label+"",l;return{c(){l=j(e)},l(t){l=F(t,e)},m(t,n){g(t,l,n)},p(t,n){n&512&&e!==(e=t[9].label+"")&&B(l,e)},d(t){t&&_(l)}}}function Je(s){let e;return{c(){e=j(s[5])},l(l){e=F(l,s[5])},m(l,t){g(l,e,t)},p(l,t){t&32&&B(e,l[5])},d(l){l&&_(e)}}}function te(s){let e,l;return e=new _e({props:{name:"lock",class:"text-gray-500"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ke(s){let e,l,t,n;function c(o,i){return!o[0]&&o[5]!==""?Je:He}let r=c(s),f=r(s),a=s[6]&&te();return{c(){e=A("div"),f.c(),l=z(),a&&a.c(),t=U(),this.h()},l(o){e=S(o,"DIV",{class:!0,id:!0});var i=V(e);f.l(i),i.forEach(_),l=L(o),a&&a.l(o),t=U(),this.h()},h(){p(e,"class","select-input svelte-1kzttn7"),p(e,"id",s[3]),P(e,"dark",s[4]),P(e,"disabled",s[6])},m(o,i){g(o,e,i),f.m(e,null),g(o,l,i),a&&a.m(o,i),g(o,t,i),n=!0},p(o,i){r===(r=c(o))&&f?f.p(o,i):(f.d(1),f=r(o),f&&(f.c(),f.m(e,null))),(!n||i&8)&&p(e,"id",o[3]),(!n||i&16)&&P(e,"dark",o[4]),(!n||i&64)&&P(e,"disabled",o[6]),o[6]?a?i&64&&b(a,1):(a=te(),a.c(),b(a,1),a.m(t.parentNode,t)):a&&(fe(),k(a,1,1,()=>{a=null}),re())},i(o){n||(b(a),n=!0)},o(o){k(a),n=!1},d(o){o&&_(e),f.d(),o&&_(l),a&&a.d(o),o&&_(t)}}}function Qe(s){let e;const l=s[14].default,t=ie(l,s,s[16],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,c){t&&t.m(n,c),e=!0},p(n,c){t&&t.p&&(!e||c&65536)&&ue(t,l,n,n[16],e?de(l,n[16],c,null):ce(n[16]),null)},i(n){e||(b(t,n),e=!0)},o(n){k(t,n),e=!1},d(n){t&&t.d(n)}}}function Ye(s){let e,l,t,n,c;function r(a){s[15](a)}let f={hasIndicator:!s[6],class:"select-input-container "+(s[6]?"disabled":"")+" "+(s[7]?"unroundRight":""),keepOpen:s[8],controls:s[3]+"-menu",testId:s[12].testId,dark:s[4],disabled:s[6],$$slots:{default:[Ke]},$$scope:{ctx:s}};return s[1]!==void 0&&(f.show=s[1]),e=new Se({props:f}),me.push(()=>Ce(e,"show",r)),n=new Ve({props:{id:s[3]+"-menu",class:"h-auto max-h-96 min-w-fit",show:s[1],dark:s[4],$$slots:{default:[Qe]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),t=z(),D(n.$$.fragment)},l(a){M(e.$$.fragment,a),t=L(a),M(n.$$.fragment,a)},m(a,o){R(e,a,o),g(a,t,o),R(n,a,o),c=!0},p(a,o){const i={};o&64&&(i.hasIndicator=!a[6]),o&192&&(i.class="select-input-container "+(a[6]?"disabled":"")+" "+(a[7]?"unroundRight":"")),o&256&&(i.keepOpen=a[8]),o&8&&(i.controls=a[3]+"-menu"),o&4096&&(i.testId=a[12].testId),o&16&&(i.dark=a[4]),o&64&&(i.disabled=a[6]),o&66169&&(i.$$scope={dirty:o,ctx:a}),!l&&o&2&&(l=!0,i.show=a[1],Ie(()=>l=!1)),e.$set(i);const u={};o&8&&(u.id=a[3]+"-menu"),o&2&&(u.show=a[1]),o&16&&(u.dark=a[4]),o&65536&&(u.$$scope={dirty:o,ctx:a}),n.$set(u)},i(a){c||(b(e.$$.fragment,a),b(n.$$.fragment,a),c=!0)},o(a){k(e.$$.fragment,a),k(n.$$.fragment,a),c=!1},d(a){q(e,a),a&&_(t),q(n,a)}}}function Ze(s){let e,l,t,n,c,r=s[2]&&ee(s);return t=new Ae({props:{class:"w-full",$$slots:{default:[Ye]},$$scope:{ctx:s}}}),{c(){e=A("div"),r&&r.c(),l=z(),D(t.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var a=V(e);r&&r.l(a),l=L(a),M(t.$$.fragment,a),a.forEach(_),this.h()},h(){p(e,"class",n="select "+s[12].class+" svelte-1kzttn7")},m(f,a){g(f,e,a),r&&r.m(e,null),N(e,l),R(t,e,null),c=!0},p(f,[a]){f[2]?r?r.p(f,a):(r=ee(f),r.c(),r.m(e,l)):r&&(r.d(1),r=null);const o={};a&70651&&(o.$$scope={dirty:a,ctx:f}),t.$set(o),(!c||a&4096&&n!==(n="select "+f[12].class+" svelte-1kzttn7"))&&p(e,"class",n)},i(f){c||(b(t.$$.fragment,f),c=!0)},o(f){k(t.$$.fragment,f),c=!1},d(f){f&&_(e),r&&r.d(),q(t)}}}function ye(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e,{show:f=!1}=e,{label:a=""}=e,{id:o}=e,{value:i=void 0}=e,{dark:u=!1}=e,{placeholder:h=""}=e,{disabled:v=!1}=e,{unroundRight:C=!1}=e,{keepOpen:w=!1}=e,{onChange:O=Oe}=e;const E=I({value:i,label:i==null?void 0:i.toString(),onChange:O});T(s,E,d=>l(9,t=d));const G=d=>{l(0,i=d),O(i)};function m(d){let Y=n.find(be=>be.value===d);if(Y!==void 0)return Y.label}const W=I([]);T(s,W,d=>l(17,n=d)),J("select-value",E),J("select-change",G),J("select-options",W),oe(()=>{K(E,t.label=m(i),t)});function he(d){f=d,l(1,f)}return s.$$set=d=>{l(12,e=Z(Z({},e),y(d))),"show"in d&&l(1,f=d.show),"label"in d&&l(2,a=d.label),"id"in d&&l(3,o=d.id),"value"in d&&l(0,i=d.value),"dark"in d&&l(4,u=d.dark),"placeholder"in d&&l(5,h=d.placeholder),"disabled"in d&&l(6,v=d.disabled),"unroundRight"in d&&l(7,C=d.unroundRight),"keepOpen"in d&&l(8,w=d.keepOpen),"onChange"in d&&l(13,O=d.onChange),"$$scope"in d&&l(16,r=d.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&(K(E,t.value=i,t),K(E,t.label=m(i),t))},e=y(e),[i,f,a,o,u,h,v,C,w,t,E,W,e,O,c,he,r]}class ft extends se{constructor(e){super(),ne(this,e,ye,Ze,ae,{show:1,label:2,id:3,value:0,dark:4,placeholder:5,disabled:6,unroundRight:7,keepOpen:8,onChange:13})}}const rt=s=>!s.disableWriteActions&&!s.workflowCancelDisabled,ut=s=>!s.disableWriteActions&&!s.workflowTerminateDisabled;export{it as O,ft as S,ut as a,nt as b,at as c,X as d,je as e,ot as f,Te as l,Re as r,Pe as u,rt as w}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.99157774.js b/ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.a94a9060.js similarity index 76% rename from ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.99157774.js rename to ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.a94a9060.js index 690aba3d9a..461275f37a 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.99157774.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.a94a9060.js @@ -1 +1 @@ -import{S as r,b as n,a as p,K as m,o as u}from"../chunks/index.a36c9cb0.js";import{g as c}from"../chunks/navigation.214139c0.js";import{p as i}from"../chunks/stores.0bc9ce95.js";import{t as l}from"../chunks/toaster.16c48a98.js";import{d as f}from"../chunks/data-converter-config.28d58945.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;f.set(t),c("/",{replaceState:!0}),l.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.a36c9cb0.js";import{g as c}from"../chunks/navigation.58fc5f1f.js";import{p as i}from"../chunks/stores.a2e3306d.js";import{t as l}from"../chunks/toaster.16c48a98.js";import{d as f}from"../chunks/data-converter-config.28d58945.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;f.set(t),c("/",{replaceState:!0}),l.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/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.c77db989.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5e0eca44.js similarity index 94% rename from ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.c77db989.js rename to ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5e0eca44.js index 80fcdeeea6..c81c51e663 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.c77db989.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5e0eca44.js @@ -1 +1 @@ -import{S,b as G,a as P,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as N,e as g,f as C,z as y,a1 as j,h as b,k as F,a2 as q}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.1bc1b54a.js";import{a as z}from"../chunks/import-events.8d158e6c.js";import{E as D,a as K,b as M}from"../chunks/event-empty-row.0766ff91.js";import{P as B}from"../chunks/pagination.69c5aeb5.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.c5bf71c7.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new K({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new M({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,z,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){N(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),G(this,t,R,Q,P,{})}}export{x as default}; +import{S,b as G,a as P,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as N,e as g,f as C,z as y,a1 as j,h as b,k as F,a2 as q}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.d80358da.js";import{a as z}from"../chunks/import-events.8d158e6c.js";import{E as D,a as K,b as M}from"../chunks/event-empty-row.f23d95dc.js";import{P as B}from"../chunks/pagination.c403d909.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.ab2fc3ed.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new K({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new M({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,z,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){N(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),G(this,t,R,Q,P,{})}}export{x as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.9eff47c5.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.1cf4f027.js similarity index 94% rename from ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.9eff47c5.js rename to ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.1cf4f027.js index f736482ff7..4c5b2028ec 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.9eff47c5.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.1cf4f027.js @@ -1 +1 @@ -import{S,b as P,a as N,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as j,e as g,f as C,z as y,a1 as q,h as b,k as F,a2 as z}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.1bc1b54a.js";import{i as D}from"../chunks/import-events.8d158e6c.js";import{E as K,a as M,b as B}from"../chunks/event-empty-row.0766ff91.js";import{P as G}from"../chunks/pagination.69c5aeb5.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.c5bf71c7.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new B({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,D,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){j(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),P(this,t,R,Q,N,{})}}export{x as default}; +import{S,b as P,a as N,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as j,e as g,f as C,z as y,a1 as q,h as b,k as F,a2 as z}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.d80358da.js";import{i as D}from"../chunks/import-events.8d158e6c.js";import{E as K,a as M,b as B}from"../chunks/event-empty-row.f23d95dc.js";import{P as G}from"../chunks/pagination.c403d909.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.ab2fc3ed.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new B({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,D,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){j(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),P(this,t,R,Q,N,{})}}export{x as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.d83a841d.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.b05d1f2e.js similarity index 93% rename from ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.d83a841d.js rename to ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.b05d1f2e.js index a70002a350..a4ae6692be 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.d83a841d.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.b05d1f2e.js @@ -1 +1 @@ -import{S as K,b as z,a as B,G as M,m as E,w as J,c as y,C as T,p as I,q as N,x as O,k as c,d as D,D as C,u as g,f as V,L as d,E as H,H as P,I as Q,J as R,j as v,g as h,F as S,K as W}from"../chunks/index.a36c9cb0.js";import{d as j}from"../chunks/route-for.70dfbf18.js";import{T as X,a as F}from"../chunks/toggle-buttons.323d739d.js";import{E as Y}from"../chunks/event-history-file-import.6d0c9554.js";import{l as Z}from"../chunks/namespaces.85dd7810.js";function x(o){let e;return{c(){e=J("Timeline")},l(s){e=O(s,"Timeline")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function ee(o){let e;return{c(){e=J("Compact")},l(s){e=O(s,"Compact")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function te(o){let e;return{c(){e=J("JSON")},l(s){e=O(s,"JSON")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function se(o){let e,s,t,a,r,i;return e=new F({props:{icon:"feed",href:j(o[0],"feed"),$$slots:{default:[x]},$$scope:{ctx:o}}}),t=new F({props:{icon:"compact",href:j(o[0],"compact"),$$slots:{default:[ee]},$$scope:{ctx:o}}}),r=new F({props:{icon:"json",href:j(o[0],"json"),$$slots:{default:[te]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment),s=y(),T(t.$$.fragment),a=y(),T(r.$$.fragment)},l(n){C(e.$$.fragment,n),s=D(n),C(t.$$.fragment,n),a=D(n),C(r.$$.fragment,n)},m(n,f){H(e,n,f),V(n,s,f),H(t,n,f),V(n,a,f),H(r,n,f),i=!0},p(n,f){const p={};f&1&&(p.href=j(n[0],"feed")),f&4&&(p.$$scope={dirty:f,ctx:n}),e.$set(p);const _={};f&1&&(_.href=j(n[0],"compact")),f&4&&(_.$$scope={dirty:f,ctx:n}),t.$set(_);const m={};f&1&&(m.href=j(n[0],"json")),f&4&&(m.$$scope={dirty:f,ctx:n}),r.$set(m)},i(n){i||(v(e.$$.fragment,n),v(t.$$.fragment,n),v(r.$$.fragment,n),i=!0)},o(n){h(e.$$.fragment,n),h(t.$$.fragment,n),h(r.$$.fragment,n),i=!1},d(n){S(e,n),n&&c(s),S(t,n),n&&c(a),S(r,n)}}}function ne(o){let e,s,t,a,r,i,n,f,p,_,m,q,w;n=new Y({}),m=new X({props:{$$slots:{default:[se]},$$scope:{ctx:o}}});const A=o[1].default,$=M(A,o,o[2],null);return{c(){e=E("section"),s=E("nav"),t=E("h3"),a=J("Import Event History"),r=y(),i=E("div"),T(n.$$.fragment),f=y(),p=E("nav"),_=E("div"),T(m.$$.fragment),q=y(),$&&$.c(),this.h()},l(l){e=I(l,"SECTION",{id:!0});var u=N(e);s=I(u,"NAV",{class:!0,"aria-label":!0});var b=N(s);t=I(b,"H3",{class:!0});var L=N(t);a=O(L,"Import Event History"),L.forEach(c),r=D(b),i=I(b,"DIV",{class:!0});var U=N(i);C(n.$$.fragment,U),U.forEach(c),b.forEach(c),f=D(u),p=I(u,"NAV",{class:!0,"aria-label":!0});var k=N(p);_=I(k,"DIV",{id:!0,class:!0});var G=N(_);C(m.$$.fragment,G),G.forEach(c),k.forEach(c),q=D(u),$&&$.l(u),u.forEach(c),this.h()},h(){g(t,"class","text-lg font-medium"),g(i,"class","flex gap-4"),g(s,"class","flex items-end justify-between gap-4 pb-4"),g(s,"aria-label","import event history"),g(_,"id","event-view-toggle"),g(_,"class","flex gap-4 bg-white"),g(p,"class","my-4 flex items-end justify-end gap-4"),g(p,"aria-label","event history view"),g(e,"id","event-history")},m(l,u){V(l,e,u),d(e,s),d(s,t),d(t,a),d(s,r),d(s,i),H(n,i,null),d(e,f),d(e,p),d(p,_),H(m,_,null),d(e,q),$&&$.m(e,null),w=!0},p(l,[u]){const b={};u&5&&(b.$$scope={dirty:u,ctx:l}),m.$set(b),$&&$.p&&(!w||u&4)&&P($,A,l,l[2],w?R(A,l[2],u,null):Q(l[2]),null)},i(l){w||(v(n.$$.fragment,l),v(m.$$.fragment,l),v($,l),w=!0)},o(l){h(n.$$.fragment,l),h(m.$$.fragment,l),h($,l),w=!1},d(l){l&&c(e),S(n),S(m),$&&$.d(l)}}}function ae(o,e,s){let t;W(o,Z,i=>s(0,t=i));let{$$slots:a={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[t,a,r]}class oe extends K{constructor(e){super(),z(this,e,ae,ne,B,{})}}function re(o){let e;const s=o[0].default,t=M(s,o,o[1],null);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,r){t&&t.m(a,r),e=!0},p(a,r){t&&t.p&&(!e||r&2)&&P(t,s,a,a[1],e?R(s,a[1],r,null):Q(a[1]),null)},i(a){e||(v(t,a),e=!0)},o(a){h(t,a),e=!1},d(a){t&&t.d(a)}}}function le(o){let e,s;return e=new oe({props:{$$slots:{default:[re]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,a){H(e,t,a),s=!0},p(t,[a]){const r={};a&2&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){S(e,t)}}}function fe(o,e,s){let{$$slots:t={},$$scope:a}=e;return o.$$set=r=>{"$$scope"in r&&s(1,a=r.$$scope)},[t,a]}class pe extends K{constructor(e){super(),z(this,e,fe,le,B,{})}}export{pe as default}; +import{S as K,b as z,a as B,G as M,m as E,w as J,c as y,C as T,p as I,q as N,x as O,k as c,d as D,D as C,u as g,f as V,L as d,E as H,H as P,I as Q,J as R,j as v,g as h,F as S,K as W}from"../chunks/index.a36c9cb0.js";import{d as j}from"../chunks/route-for.087ea268.js";import{T as X,a as F}from"../chunks/toggle-buttons.fba008ff.js";import{E as Y}from"../chunks/event-history-file-import.26212091.js";import{l as Z}from"../chunks/namespaces.85dd7810.js";function x(o){let e;return{c(){e=J("Timeline")},l(s){e=O(s,"Timeline")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function ee(o){let e;return{c(){e=J("Compact")},l(s){e=O(s,"Compact")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function te(o){let e;return{c(){e=J("JSON")},l(s){e=O(s,"JSON")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function se(o){let e,s,t,a,r,i;return e=new F({props:{icon:"feed",href:j(o[0],"feed"),$$slots:{default:[x]},$$scope:{ctx:o}}}),t=new F({props:{icon:"compact",href:j(o[0],"compact"),$$slots:{default:[ee]},$$scope:{ctx:o}}}),r=new F({props:{icon:"json",href:j(o[0],"json"),$$slots:{default:[te]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment),s=y(),T(t.$$.fragment),a=y(),T(r.$$.fragment)},l(n){C(e.$$.fragment,n),s=D(n),C(t.$$.fragment,n),a=D(n),C(r.$$.fragment,n)},m(n,f){H(e,n,f),V(n,s,f),H(t,n,f),V(n,a,f),H(r,n,f),i=!0},p(n,f){const p={};f&1&&(p.href=j(n[0],"feed")),f&4&&(p.$$scope={dirty:f,ctx:n}),e.$set(p);const _={};f&1&&(_.href=j(n[0],"compact")),f&4&&(_.$$scope={dirty:f,ctx:n}),t.$set(_);const m={};f&1&&(m.href=j(n[0],"json")),f&4&&(m.$$scope={dirty:f,ctx:n}),r.$set(m)},i(n){i||(v(e.$$.fragment,n),v(t.$$.fragment,n),v(r.$$.fragment,n),i=!0)},o(n){h(e.$$.fragment,n),h(t.$$.fragment,n),h(r.$$.fragment,n),i=!1},d(n){S(e,n),n&&c(s),S(t,n),n&&c(a),S(r,n)}}}function ne(o){let e,s,t,a,r,i,n,f,p,_,m,q,w;n=new Y({}),m=new X({props:{$$slots:{default:[se]},$$scope:{ctx:o}}});const A=o[1].default,$=M(A,o,o[2],null);return{c(){e=E("section"),s=E("nav"),t=E("h3"),a=J("Import Event History"),r=y(),i=E("div"),T(n.$$.fragment),f=y(),p=E("nav"),_=E("div"),T(m.$$.fragment),q=y(),$&&$.c(),this.h()},l(l){e=I(l,"SECTION",{id:!0});var u=N(e);s=I(u,"NAV",{class:!0,"aria-label":!0});var b=N(s);t=I(b,"H3",{class:!0});var L=N(t);a=O(L,"Import Event History"),L.forEach(c),r=D(b),i=I(b,"DIV",{class:!0});var U=N(i);C(n.$$.fragment,U),U.forEach(c),b.forEach(c),f=D(u),p=I(u,"NAV",{class:!0,"aria-label":!0});var k=N(p);_=I(k,"DIV",{id:!0,class:!0});var G=N(_);C(m.$$.fragment,G),G.forEach(c),k.forEach(c),q=D(u),$&&$.l(u),u.forEach(c),this.h()},h(){g(t,"class","text-lg font-medium"),g(i,"class","flex gap-4"),g(s,"class","flex items-end justify-between gap-4 pb-4"),g(s,"aria-label","import event history"),g(_,"id","event-view-toggle"),g(_,"class","flex gap-4 bg-white"),g(p,"class","my-4 flex items-end justify-end gap-4"),g(p,"aria-label","event history view"),g(e,"id","event-history")},m(l,u){V(l,e,u),d(e,s),d(s,t),d(t,a),d(s,r),d(s,i),H(n,i,null),d(e,f),d(e,p),d(p,_),H(m,_,null),d(e,q),$&&$.m(e,null),w=!0},p(l,[u]){const b={};u&5&&(b.$$scope={dirty:u,ctx:l}),m.$set(b),$&&$.p&&(!w||u&4)&&P($,A,l,l[2],w?R(A,l[2],u,null):Q(l[2]),null)},i(l){w||(v(n.$$.fragment,l),v(m.$$.fragment,l),v($,l),w=!0)},o(l){h(n.$$.fragment,l),h(m.$$.fragment,l),h($,l),w=!1},d(l){l&&c(e),S(n),S(m),$&&$.d(l)}}}function ae(o,e,s){let t;W(o,Z,i=>s(0,t=i));let{$$slots:a={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[t,a,r]}class oe extends K{constructor(e){super(),z(this,e,ae,ne,B,{})}}function re(o){let e;const s=o[0].default,t=M(s,o,o[1],null);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,r){t&&t.m(a,r),e=!0},p(a,r){t&&t.p&&(!e||r&2)&&P(t,s,a,a[1],e?R(s,a[1],r,null):Q(a[1]),null)},i(a){e||(v(t,a),e=!0)},o(a){h(t,a),e=!1},d(a){t&&t.d(a)}}}function le(o){let e,s;return e=new oe({props:{$$slots:{default:[re]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,a){H(e,t,a),s=!0},p(t,[a]){const r={};a&2&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){S(e,t)}}}function fe(o,e,s){let{$$slots:t={},$$scope:a}=e;return o.$$set=r=>{"$$scope"in r&&s(1,a=r.$$scope)},[t,a]}class pe extends K{constructor(e){super(),z(this,e,fe,le,B,{})}}export{pe as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.27cdca64.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.27cdca64.js deleted file mode 100644 index de9f776897..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.27cdca64.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.241b6c5b.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.3ade124a.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.3ade124a.js new file mode 100644 index 0000000000..52f5700d67 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.3ade124a.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.045d2d42.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.cb0573c1.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.51774b71.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.cb0573c1.js rename to ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.51774b71.js index fb8214dead..e616dbcb70 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.cb0573c1.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-events-page.svelte.51774b71.js @@ -1 +1 @@ -import{S as X,b as Y,a as Z,m as c,w as j,c as w,C as k,p as m,q as f,x as q,k as i,d as H,D as V,u as o,f as tt,L as s,E as C,j as D,g as S,F as N,n as et}from"../chunks/index.a36c9cb0.js";import{E as rt}from"../chunks/event-history-file-import.6d0c9554.js";import{C as W}from"../chunks/code-block.2cc5a38d.js";import{L as at}from"../chunks/link.855bf830.js";function st($){let t;return{c(){t=j("View in Github")},l(e){t=q(e,"View in Github")},m(e,r){tt(e,t,r)},d(e){e&&i(t)}}}function nt($){let t,e,r,I,G,E,v,J,n,b,A,F,y,d,P,x,T,z,p,h,B,g,O;return v=new rt({}),d=new at({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[st]},$$scope:{ctx:$}}}),h=new W({props:{content:$[0],inline:!0}}),g=new W({props:{content:ot,inline:!0}}),{c(){t=c("section"),e=c("nav"),r=c("h1"),I=j("Import Event History"),G=w(),E=c("div"),k(v.$$.fragment),J=w(),n=c("div"),b=c("code"),A=j("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),F=w(),y=c("div"),k(d.$$.fragment),P=w(),x=c("h3"),T=j("Expected JSON formats"),z=w(),p=c("div"),k(h.$$.fragment),B=w(),k(g.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var l=f(t);e=m(l,"NAV",{id:!0,class:!0,"aria-label":!0});var _=f(e);r=m(_,"H1",{class:!0,"data-testid":!0});var K=f(r);I=q(K,"Import Event History"),K.forEach(i),G=H(_),E=m(_,"DIV",{class:!0});var M=f(E);V(v.$$.fragment,M),M.forEach(i),_.forEach(i),J=H(l),n=m(l,"DIV",{class:!0});var u=f(n);b=m(u,"CODE",{class:!0});var Q=f(b);A=q(Q,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),Q.forEach(i),F=H(u),y=m(u,"DIV",{class:!0});var R=f(y);V(d.$$.fragment,R),R.forEach(i),P=H(u),x=m(u,"H3",{class:!0});var U=f(x);T=q(U,"Expected JSON formats"),U.forEach(i),z=H(u),p=m(u,"DIV",{class:!0});var L=f(p);V(h.$$.fragment,L),B=H(L),V(g.$$.fragment,L),L.forEach(i),u.forEach(i),l.forEach(i),this.h()},h(){o(r,"class","text-lg font-medium"),o(r,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(e,"id","event-history"),o(e,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(e,"aria-label","import event history"),o(b,"class","text-md bg-gray-200 p-2 font-medium"),o(y,"class","mt-4"),o(x,"class","mt-8 text-lg font-medium"),o(p,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,l){tt(a,t,l),s(t,e),s(e,r),s(r,I),s(e,G),s(e,E),C(v,E,null),s(t,J),s(t,n),s(n,b),s(b,A),s(n,F),s(n,y),C(d,y,null),s(n,P),s(n,x),s(x,T),s(n,z),s(n,p),C(h,p,null),s(p,B),C(g,p,null),O=!0},p(a,[l]){const _={};l&2&&(_.$$scope={dirty:l,ctx:a}),d.$set(_)},i(a){O||(D(v.$$.fragment,a),D(d.$$.fragment,a),D(h.$$.fragment,a),D(g.$$.fragment,a),O=!0)},o(a){S(v.$$.fragment,a),S(d.$$.fragment,a),S(h.$$.fragment,a),S(g.$$.fragment,a),O=!1},d(a){a&&i(t),N(v),N(d),N(h),N(g)}}}const ot="HistoryEvent[]";function it($){return[{events:"HistoryEvent[]"}]}class lt extends X{constructor(t){super(),Y(this,t,it,nt,Z,{})}}function ct($){let t,e;return t=new lt({}),{c(){k(t.$$.fragment)},l(r){V(t.$$.fragment,r)},m(r,I){C(t,r,I),e=!0},p:et,i(r){e||(D(t.$$.fragment,r),e=!0)},o(r){S(t.$$.fragment,r),e=!1},d(r){N(t,r)}}}class ut extends X{constructor(t){super(),Y(this,t,null,ct,Z,{})}}export{ut as default}; +import{S as X,b as Y,a as Z,m as c,w as j,c as w,C as k,p as m,q as f,x as q,k as i,d as H,D as V,u as o,f as tt,L as s,E as C,j as D,g as S,F as N,n as et}from"../chunks/index.a36c9cb0.js";import{E as rt}from"../chunks/event-history-file-import.26212091.js";import{C as W}from"../chunks/code-block.2cc5a38d.js";import{L as at}from"../chunks/link.855bf830.js";function st($){let t;return{c(){t=j("View in Github")},l(e){t=q(e,"View in Github")},m(e,r){tt(e,t,r)},d(e){e&&i(t)}}}function nt($){let t,e,r,I,G,E,v,J,n,b,A,F,y,d,P,x,T,z,p,h,B,g,O;return v=new rt({}),d=new at({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[st]},$$scope:{ctx:$}}}),h=new W({props:{content:$[0],inline:!0}}),g=new W({props:{content:ot,inline:!0}}),{c(){t=c("section"),e=c("nav"),r=c("h1"),I=j("Import Event History"),G=w(),E=c("div"),k(v.$$.fragment),J=w(),n=c("div"),b=c("code"),A=j("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),F=w(),y=c("div"),k(d.$$.fragment),P=w(),x=c("h3"),T=j("Expected JSON formats"),z=w(),p=c("div"),k(h.$$.fragment),B=w(),k(g.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var l=f(t);e=m(l,"NAV",{id:!0,class:!0,"aria-label":!0});var _=f(e);r=m(_,"H1",{class:!0,"data-testid":!0});var K=f(r);I=q(K,"Import Event History"),K.forEach(i),G=H(_),E=m(_,"DIV",{class:!0});var M=f(E);V(v.$$.fragment,M),M.forEach(i),_.forEach(i),J=H(l),n=m(l,"DIV",{class:!0});var u=f(n);b=m(u,"CODE",{class:!0});var Q=f(b);A=q(Q,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),Q.forEach(i),F=H(u),y=m(u,"DIV",{class:!0});var R=f(y);V(d.$$.fragment,R),R.forEach(i),P=H(u),x=m(u,"H3",{class:!0});var U=f(x);T=q(U,"Expected JSON formats"),U.forEach(i),z=H(u),p=m(u,"DIV",{class:!0});var L=f(p);V(h.$$.fragment,L),B=H(L),V(g.$$.fragment,L),L.forEach(i),u.forEach(i),l.forEach(i),this.h()},h(){o(r,"class","text-lg font-medium"),o(r,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(e,"id","event-history"),o(e,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(e,"aria-label","import event history"),o(b,"class","text-md bg-gray-200 p-2 font-medium"),o(y,"class","mt-4"),o(x,"class","mt-8 text-lg font-medium"),o(p,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,l){tt(a,t,l),s(t,e),s(e,r),s(r,I),s(e,G),s(e,E),C(v,E,null),s(t,J),s(t,n),s(n,b),s(b,A),s(n,F),s(n,y),C(d,y,null),s(n,P),s(n,x),s(x,T),s(n,z),s(n,p),C(h,p,null),s(p,B),C(g,p,null),O=!0},p(a,[l]){const _={};l&2&&(_.$$scope={dirty:l,ctx:a}),d.$set(_)},i(a){O||(D(v.$$.fragment,a),D(d.$$.fragment,a),D(h.$$.fragment,a),D(g.$$.fragment,a),O=!0)},o(a){S(v.$$.fragment,a),S(d.$$.fragment,a),S(h.$$.fragment,a),S(g.$$.fragment,a),O=!1},d(a){a&&i(t),N(v),N(d),N(h),N(g)}}}const ot="HistoryEvent[]";function it($){return[{events:"HistoryEvent[]"}]}class lt extends X{constructor(t){super(),Y(this,t,it,nt,Z,{})}}function ct($){let t,e;return t=new lt({}),{c(){k(t.$$.fragment)},l(r){V(t.$$.fragment,r)},m(r,I){C(t,r,I),e=!0},p:et,i(r){e||(D(t.$$.fragment,r),e=!0)},o(r){S(t.$$.fragment,r),e=!1},d(r){N(t,r)}}}class ut extends X{constructor(t){super(),Y(this,t,null,ct,Z,{})}}export{ut as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.dc7921e5.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.fae8b342.js similarity index 93% rename from ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.dc7921e5.js rename to ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.fae8b342.js index 74685d0b8b..a9d43892f9 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.dc7921e5.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-layout.svelte.fae8b342.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.a36c9cb0.js";import{p as j}from"../chunks/stores.0bc9ce95.js";import{P as k}from"../chunks/page-title.b9565d2f.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.a36c9cb0.js";import{p as j}from"../chunks/stores.a2e3306d.js";import{P as k}from"../chunks/page-title.b9565d2f.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/cloud/_app/immutable/entry/(app)-import-page.ts.aa6e838d.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-page.ts.aa6e838d.js deleted file mode 100644 index 4aa2714e55..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-import-page.ts.aa6e838d.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.2933bd11.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-import-page.ts.e684e132.js b/ui/assets/cloud/_app/immutable/entry/(app)-import-page.ts.e684e132.js new file mode 100644 index 0000000000..eee413815b --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-import-page.ts.e684e132.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.be03befd.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.d61dbdd2.js b/ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.afdd893c.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-layout.svelte.d61dbdd2.js rename to ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.afdd893c.js index cbb999ca7b..c93f6805c2 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.d61dbdd2.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.afdd893c.js @@ -1,4 +1,4 @@ -import{W as on,S as ee,b as te,a as Q,e as R,f as C,n as se,k as m,K as G,N as pe,O as Ee,m as w,w as U,c as j,p as E,q as k,x as q,d as F,u as h,X as Ie,L as v,T as _e,y as he,j as g,g as $,A as me,Y as $e,C as T,D as L,E as D,Z as ve,F as N,z as oe,h as ie,s as je,_ as ge,G as W,H as K,I as z,J as Z,$ as an,a0 as nt,M as fn,a1 as un,a2 as cn,i as Xe,R as re,o as dn,a3 as qe,a4 as Re,v as He,Q as st,U as Xt,a5 as De,a6 as mn,a7 as Jt,a8 as _n,B as lt,V as Je,a9 as Fe,r as Qt,P as Yt,aa as rt}from"../chunks/index.a36c9cb0.js";import{p as ke,u as pn}from"../chunks/stores.48be4ca9.js";import{a as xt,c as hn}from"../chunks/auth-user.3a7bc4db.js";import{g as ot}from"../chunks/navigation.724a9b89.js";import{r as Pe,a as gn,b as $n,c as it,d as vn,e as bn}from"../chunks/route-for.6dec3e74.js";import{i as en}from"../chunks/version-check.d006b302.js";import{p as kn}from"../chunks/persist-store.863ae031.js";import{n as Me}from"../chunks/route-for-api.6ac9324b.js";import{E as wn}from"../chunks/error.895ac9a4.js";import{w as We,d as En}from"../chunks/index.deae5bd4.js";import{I as Cn,f as at}from"../chunks/icon-button.bcd06a36.js";import{t as ft}from"../chunks/toaster.16c48a98.js";import{l as ye,n as In}from"../chunks/namespaces.85dd7810.js";import{w as ut,a as ct}from"../chunks/filters.2b30fe96.js";import{I as ue}from"../chunks/icon.33859671.js";import{M as tn}from"../chunks/modal.50ea7269.js";import{B as Vn}from"../chunks/button.dbc76a4c.js";import{v as Tn,a as Dn,n as Ke}from"../chunks/nav-open.98e0e195.js";import{T as Se}from"../chunks/tooltip.bd2ec5a4.js";import{i as Nn}from"../chunks/settings-service.5ac9963d.js";import{B as Bn}from"../chunks/badge.7f30446f.js";import{M as Ln,a as Sn,b as An}from"../chunks/menu.c922b8b1.js";import{E as Pn}from"../chunks/empty-state.9fb63265.js";import{I as Mn}from"../chunks/input.a193633b.js";import{M as dt}from"../chunks/menu-item.4122979b.js";import{d as ze,l as jn}from"../chunks/data-converter-config.28d58945.js";import{c as Oe,l as Fn,i as mt,p as _t,v as yn,a as On}from"../chunks/is-http.1e6b12cd.js";import{T as pt}from"../chunks/toggle-switch.48168915.js";import{r as ht}from"../chunks/workflow-run.8a407b5f.js";var Ue=(r=>(r[r.TemporalVersion=1]="TemporalVersion",r[r.UIVersion=2]="UIVersion",r))(Ue||{});const Ze=kn("closedBanners",null),Un=r=>{let e=on(Ze)??[];e=[...e,r],e=e.slice(e.length-10,e.length),Ze.set(e)};function gt(r){let e,s,t,n,l,o,a,i,u,f;return{c(){e=w("section"),s=w("a"),t=U(r[2]),n=j(),l=w("button"),o=U("✕"),this.h()},l(c){e=E(c,"SECTION",{class:!0,"data-testid":!0});var d=k(e);s=E(d,"A",{href:!0,target:!0,rel:!0});var _=k(s);t=q(_,r[2]),_.forEach(m),n=F(d),l=E(d,"BUTTON",{class:!0,"data-testid":!0});var p=k(l);o=q(p,"✕"),p.forEach(m),d.forEach(m),this.h()},h(){h(s,"href",r[3]),h(s,"target","_blank"),h(s,"rel","noreferrer"),h(l,"class","text-black-600 absolute top-0 right-0 mr-5"),h(l,"data-testid","close-banner"),h(e,"class",a=Ie(`relative block text-center leading-10 ${r[1]}`)+" svelte-1xgik0j"),h(e,"data-testid",i=r[5].testId)},m(c,d){C(c,e,d),v(e,s),v(s,t),v(e,n),v(e,l),v(l,o),u||(f=_e(l,"click",r[8]),u=!0)},p(c,d){d&4&&he(t,c[2]),d&8&&h(s,"href",c[3]),d&2&&a!==(a=Ie(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&h(e,"class",a),d&32&&i!==(i=c[5].testId)&&h(e,"data-testid",i)},d(c){c&&m(e),u=!1,f()}}}function qn(r){let e,s=r[4]&>(r);return{c(){s&&s.c(),e=R()},l(t){s&&s.l(t),e=R()},m(t,n){s&&s.m(t,n),C(t,e,n)},p(t,[n]){t[4]?s?s.p(t,n):(s=gt(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:se,o:se,d(t){s&&s.d(t),t&&m(e)}}}function Rn(r,e,s){let t,n;G(r,Ze,c=>s(7,n=c));let{key:l}=e,{severity:o}=e,{message:a}=e,{link:i}=e,{shownBanner:u}=e;const f=()=>Un(l);return r.$$set=c=>{s(5,e=pe(pe({},e),Ee(c))),"key"in c&&s(0,l=c.key),"severity"in c&&s(1,o=c.severity),"message"in c&&s(2,a=c.message),"link"in c&&s(3,i=c.link),"shownBanner"in c&&s(6,u=c.shownBanner)},r.$$.update=()=>{r.$$.dirty&129&&s(4,t=!(n??[]).includes(l)),r.$$.dirty&80&&(t||s(6,u++,u))},e=Ee(e),[l,o,a,i,t,e,u,n,f]}class nn extends ee{constructor(e){super(),te(this,e,Rn,qn,Q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Hn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[2],severity:r[1],message:r[5],link:r[3],testId:"temporal-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Wn(r){let e,s,t=r[4]&&Hn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[4]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function Kn(r,e,s){let t;G(r,ke,y=>s(12,t=y));var n,l,o,a,i;let{shownBanner:u}=e;const{cluster:f}=t.data,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(n=f==null?void 0:f.versionInfo)!==null&&n!==void 0?n:{},p=(o=(l=f==null?void 0:f.versionInfo)===null||l===void 0?void 0:l.alerts)===null||o===void 0?void 0:o[0],b=p?c[p.severity]:c.Low,S=`server-v${_==null?void 0:_.version}`,P=`https://github.com/temporalio/temporal/releases/tag/v${(i=(a=f==null?void 0:f.versionInfo)===null||a===void 0?void 0:a.recommended)===null||i===void 0?void 0:i.version}`,V=en(d==null?void 0:d.version,_==null?void 0:_.version),I=b===c.Low?`📥 Temporal v${d==null?void 0:d.version} is available`:`📥 ${p==null?void 0:p.message}`;function B(y){u=y,s(0,u)}return r.$$set=y=>{"shownBanner"in y&&s(0,u=y.shownBanner)},[u,b,S,P,V,I,B]}class zn extends ee{constructor(e){super(),te(this,e,Kn,Wn,Q,{shownBanner:0})}}function Zn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[1],severity:Xn,message:r[2],link:r[4],testId:"ui-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Gn(r){let e,s,t=r[3]&&Zn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[3]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}const Xn="low";function Jn(r,e,s){let{shownBanner:t}=e,{uiVersionInfo:n}=e;const l=`ui-v${n==null?void 0:n.current}`,o=`📥 Temporal UI v${n==null?void 0:n.recommended} is available`,a=en(n==null?void 0:n.recommended,n==null?void 0:n.current),i=`https://github.com/temporalio/ui-server/releases/tag/v${n==null?void 0:n.recommended}`;function u(f){t=f,s(0,t)}return r.$$set=f=>{"shownBanner"in f&&s(0,t=f.shownBanner),"uiVersionInfo"in f&&s(5,n=f.uiVersionInfo)},[t,l,o,a,i,n,u]}class Qn extends ee{constructor(e){super(),te(this,e,Jn,Gn,Q,{shownBanner:0,uiVersionInfo:5})}}function Yn(r){let e,s,t,n;const l=[es,xn],o=[];function a(i,u){return i[1]===Ue.TemporalVersion?0:i[1]===Ue.UIVersion?1:-1}return~(e=a(r))&&(s=o[e]=l[e](r)),{c(){s&&s.c(),t=R()},l(i){s&&s.l(i),t=R()},m(i,u){~e&&o[e].m(i,u),C(i,t,u),n=!0},p(i,u){let f=e;e=a(i),e===f?~e&&o[e].p(i,u):(s&&(oe(),$(o[f],1,1,()=>{o[f]=null}),ie()),~e?(s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t)):s=null)},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){~e&&o[e].d(i),i&&m(t)}}}function xn(r){let e,s,t;function n(o){r[4](o)}let l={uiVersionInfo:r[0]};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new Qn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};a&1&&(i.uiVersionInfo=o[0]),!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function es(r){let e,s,t;function n(o){r[3](o)}let l={};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new zn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function ts(r){let e,s,t=r[2]&&Yn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[2]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function ns(r,e,s){let t;G(r,ke,f=>s(6,t=f));var n;let{uiVersionInfo:l}=e,o=Ue.TemporalVersion;const a=(n=t.data)===null||n===void 0?void 0:n.settings.notifyOnNewVersion;function i(f){o=f,s(1,o)}function u(f){o=f,s(1,o)}return r.$$set=f=>{"uiVersionInfo"in f&&s(0,l=f.uiVersionInfo)},[l,o,a,i,u]}class ss extends ee{constructor(e){super(),te(this,e,ns,ts,Q,{uiVersionInfo:0})}}function ls(r){let e;const s=r[8].default,t=W(s,r,r[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&128)&&K(t,s,n,n[7],e?Z(s,n[7],l,null):z(n[7]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function rs(r){let e,s;return e=new wn({props:{error:r[2]}}),e.$on("clearError",r[3]),{c(){T(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){D(e,t,n),s=!0},p(t,n){const l={};n&4&&(l.error=t[2]),e.$set(l)},i(t){s||(g(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){N(e,t)}}}function os(r){let e,s,t,n;const l=[rs,ls],o=[];function a(i,u){return i[1]&&i[2]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function is(r,e,s){let t,n,l=se,o=()=>(l(),l=je(d,S=>s(6,n=S)),d),a,i=se,u=()=>(i(),i=je(p,S=>s(2,a=S)),p);G(r,Me,S=>s(5,t=S)),r.$$.on_destroy.push(()=>l()),r.$$.on_destroy.push(()=>i());let{$$slots:f={},$$scope:c}=e,{error:d=null}=e;o();let{onError:_=null}=e,p;function b(){ge(d,n=null,n),s(4,_=null),u(s(1,p=null)),ge(Me,t=null,t)}return r.$$set=S=>{"error"in S&&o(s(0,d=S.error)),"onError"in S&&s(4,_=S.onError),"$$scope"in S&&s(7,c=S.$$scope)},r.$$.update=()=>{r.$$.dirty&115&&(d&&n&&u(s(1,p=d)),Me&&t&&u(s(1,p=Me)),_&&p&&_(p))},[d,p,a,b,_,t,n,c,f]}class as extends ee{constructor(e){super(),te(this,e,is,os,Q,{error:0,onError:4})}}function fs(r){let e;const s=r[5].default,t=W(s,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&16)&&K(t,s,n,n[4],e?Z(s,n[4],l,null):z(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function us(r){let e,s,t=r[1].message+"",n,l,o,a,i=(r[2]?r[1].stack:"")+"",u,f;return{c(){e=w("div"),s=w("b"),n=U(t),l=j(),o=w("pre"),a=U(" "),u=U(i),f=U(` +import{W as on,S as ee,b as te,a as Q,e as R,f as C,n as se,k as m,K as G,N as pe,O as Ee,m as w,w as U,c as j,p as E,q as k,x as q,d as F,u as h,X as Ie,L as v,T as _e,y as he,j as g,g as $,A as me,Y as $e,C as T,D as L,E as D,Z as ve,F as N,z as oe,h as ie,s as je,_ as ge,G as W,H as K,I as z,J as Z,$ as an,a0 as nt,M as fn,a1 as un,a2 as cn,i as Xe,R as re,o as dn,a3 as qe,a4 as Re,v as He,Q as st,U as Xt,a5 as De,a6 as mn,a7 as Jt,a8 as _n,B as lt,V as Je,a9 as Fe,r as Qt,P as Yt,aa as rt}from"../chunks/index.a36c9cb0.js";import{p as ke,u as pn}from"../chunks/stores.a2e3306d.js";import{a as xt,c as hn}from"../chunks/auth-user.3a7bc4db.js";import{g as ot}from"../chunks/navigation.58fc5f1f.js";import{r as Pe,a as gn,b as $n,c as it,d as vn,e as bn}from"../chunks/route-for.087ea268.js";import{i as en}from"../chunks/version-check.d006b302.js";import{p as kn}from"../chunks/persist-store.863ae031.js";import{n as Me}from"../chunks/route-for-api.75ac86ec.js";import{E as wn}from"../chunks/error.51af1584.js";import{w as We,d as En}from"../chunks/index.deae5bd4.js";import{I as Cn,f as at}from"../chunks/icon-button.bcd06a36.js";import{t as ft}from"../chunks/toaster.16c48a98.js";import{l as ye,n as In}from"../chunks/namespaces.85dd7810.js";import{w as ut,a as ct}from"../chunks/filters.ab2fc3ed.js";import{I as ue}from"../chunks/icon.33859671.js";import{M as tn}from"../chunks/modal.50ea7269.js";import{B as Vn}from"../chunks/button.dbc76a4c.js";import{v as Tn,a as Dn,n as Ke}from"../chunks/nav-open.98e0e195.js";import{T as Se}from"../chunks/tooltip.bd2ec5a4.js";import{i as Nn}from"../chunks/settings-service.2d7ee284.js";import{B as Bn}from"../chunks/badge.7f30446f.js";import{M as Ln,a as Sn,b as An}from"../chunks/menu.c922b8b1.js";import{E as Pn}from"../chunks/empty-state.9fb63265.js";import{I as Mn}from"../chunks/input.a193633b.js";import{M as dt}from"../chunks/menu-item.4122979b.js";import{d as ze,l as jn}from"../chunks/data-converter-config.28d58945.js";import{c as Oe,l as Fn,i as mt,p as _t,v as yn,a as On}from"../chunks/is-http.1e6b12cd.js";import{T as pt}from"../chunks/toggle-switch.48168915.js";import{r as ht}from"../chunks/workflow-run.8a407b5f.js";var Ue=(r=>(r[r.TemporalVersion=1]="TemporalVersion",r[r.UIVersion=2]="UIVersion",r))(Ue||{});const Ze=kn("closedBanners",null),Un=r=>{let e=on(Ze)??[];e=[...e,r],e=e.slice(e.length-10,e.length),Ze.set(e)};function gt(r){let e,s,t,n,l,o,a,i,u,f;return{c(){e=w("section"),s=w("a"),t=U(r[2]),n=j(),l=w("button"),o=U("✕"),this.h()},l(c){e=E(c,"SECTION",{class:!0,"data-testid":!0});var d=k(e);s=E(d,"A",{href:!0,target:!0,rel:!0});var _=k(s);t=q(_,r[2]),_.forEach(m),n=F(d),l=E(d,"BUTTON",{class:!0,"data-testid":!0});var p=k(l);o=q(p,"✕"),p.forEach(m),d.forEach(m),this.h()},h(){h(s,"href",r[3]),h(s,"target","_blank"),h(s,"rel","noreferrer"),h(l,"class","text-black-600 absolute top-0 right-0 mr-5"),h(l,"data-testid","close-banner"),h(e,"class",a=Ie(`relative block text-center leading-10 ${r[1]}`)+" svelte-1xgik0j"),h(e,"data-testid",i=r[5].testId)},m(c,d){C(c,e,d),v(e,s),v(s,t),v(e,n),v(e,l),v(l,o),u||(f=_e(l,"click",r[8]),u=!0)},p(c,d){d&4&&he(t,c[2]),d&8&&h(s,"href",c[3]),d&2&&a!==(a=Ie(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&h(e,"class",a),d&32&&i!==(i=c[5].testId)&&h(e,"data-testid",i)},d(c){c&&m(e),u=!1,f()}}}function qn(r){let e,s=r[4]&>(r);return{c(){s&&s.c(),e=R()},l(t){s&&s.l(t),e=R()},m(t,n){s&&s.m(t,n),C(t,e,n)},p(t,[n]){t[4]?s?s.p(t,n):(s=gt(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:se,o:se,d(t){s&&s.d(t),t&&m(e)}}}function Rn(r,e,s){let t,n;G(r,Ze,c=>s(7,n=c));let{key:l}=e,{severity:o}=e,{message:a}=e,{link:i}=e,{shownBanner:u}=e;const f=()=>Un(l);return r.$$set=c=>{s(5,e=pe(pe({},e),Ee(c))),"key"in c&&s(0,l=c.key),"severity"in c&&s(1,o=c.severity),"message"in c&&s(2,a=c.message),"link"in c&&s(3,i=c.link),"shownBanner"in c&&s(6,u=c.shownBanner)},r.$$.update=()=>{r.$$.dirty&129&&s(4,t=!(n??[]).includes(l)),r.$$.dirty&80&&(t||s(6,u++,u))},e=Ee(e),[l,o,a,i,t,e,u,n,f]}class nn extends ee{constructor(e){super(),te(this,e,Rn,qn,Q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Hn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[2],severity:r[1],message:r[5],link:r[3],testId:"temporal-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Wn(r){let e,s,t=r[4]&&Hn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[4]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function Kn(r,e,s){let t;G(r,ke,y=>s(12,t=y));var n,l,o,a,i;let{shownBanner:u}=e;const{cluster:f}=t.data,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(n=f==null?void 0:f.versionInfo)!==null&&n!==void 0?n:{},p=(o=(l=f==null?void 0:f.versionInfo)===null||l===void 0?void 0:l.alerts)===null||o===void 0?void 0:o[0],b=p?c[p.severity]:c.Low,S=`server-v${_==null?void 0:_.version}`,P=`https://github.com/temporalio/temporal/releases/tag/v${(i=(a=f==null?void 0:f.versionInfo)===null||a===void 0?void 0:a.recommended)===null||i===void 0?void 0:i.version}`,V=en(d==null?void 0:d.version,_==null?void 0:_.version),I=b===c.Low?`📥 Temporal v${d==null?void 0:d.version} is available`:`📥 ${p==null?void 0:p.message}`;function B(y){u=y,s(0,u)}return r.$$set=y=>{"shownBanner"in y&&s(0,u=y.shownBanner)},[u,b,S,P,V,I,B]}class zn extends ee{constructor(e){super(),te(this,e,Kn,Wn,Q,{shownBanner:0})}}function Zn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[1],severity:Xn,message:r[2],link:r[4],testId:"ui-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Gn(r){let e,s,t=r[3]&&Zn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[3]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}const Xn="low";function Jn(r,e,s){let{shownBanner:t}=e,{uiVersionInfo:n}=e;const l=`ui-v${n==null?void 0:n.current}`,o=`📥 Temporal UI v${n==null?void 0:n.recommended} is available`,a=en(n==null?void 0:n.recommended,n==null?void 0:n.current),i=`https://github.com/temporalio/ui-server/releases/tag/v${n==null?void 0:n.recommended}`;function u(f){t=f,s(0,t)}return r.$$set=f=>{"shownBanner"in f&&s(0,t=f.shownBanner),"uiVersionInfo"in f&&s(5,n=f.uiVersionInfo)},[t,l,o,a,i,n,u]}class Qn extends ee{constructor(e){super(),te(this,e,Jn,Gn,Q,{shownBanner:0,uiVersionInfo:5})}}function Yn(r){let e,s,t,n;const l=[es,xn],o=[];function a(i,u){return i[1]===Ue.TemporalVersion?0:i[1]===Ue.UIVersion?1:-1}return~(e=a(r))&&(s=o[e]=l[e](r)),{c(){s&&s.c(),t=R()},l(i){s&&s.l(i),t=R()},m(i,u){~e&&o[e].m(i,u),C(i,t,u),n=!0},p(i,u){let f=e;e=a(i),e===f?~e&&o[e].p(i,u):(s&&(oe(),$(o[f],1,1,()=>{o[f]=null}),ie()),~e?(s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t)):s=null)},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){~e&&o[e].d(i),i&&m(t)}}}function xn(r){let e,s,t;function n(o){r[4](o)}let l={uiVersionInfo:r[0]};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new Qn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};a&1&&(i.uiVersionInfo=o[0]),!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function es(r){let e,s,t;function n(o){r[3](o)}let l={};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new zn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function ts(r){let e,s,t=r[2]&&Yn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[2]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function ns(r,e,s){let t;G(r,ke,f=>s(6,t=f));var n;let{uiVersionInfo:l}=e,o=Ue.TemporalVersion;const a=(n=t.data)===null||n===void 0?void 0:n.settings.notifyOnNewVersion;function i(f){o=f,s(1,o)}function u(f){o=f,s(1,o)}return r.$$set=f=>{"uiVersionInfo"in f&&s(0,l=f.uiVersionInfo)},[l,o,a,i,u]}class ss extends ee{constructor(e){super(),te(this,e,ns,ts,Q,{uiVersionInfo:0})}}function ls(r){let e;const s=r[8].default,t=W(s,r,r[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&128)&&K(t,s,n,n[7],e?Z(s,n[7],l,null):z(n[7]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function rs(r){let e,s;return e=new wn({props:{error:r[2]}}),e.$on("clearError",r[3]),{c(){T(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){D(e,t,n),s=!0},p(t,n){const l={};n&4&&(l.error=t[2]),e.$set(l)},i(t){s||(g(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){N(e,t)}}}function os(r){let e,s,t,n;const l=[rs,ls],o=[];function a(i,u){return i[1]&&i[2]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function is(r,e,s){let t,n,l=se,o=()=>(l(),l=je(d,S=>s(6,n=S)),d),a,i=se,u=()=>(i(),i=je(p,S=>s(2,a=S)),p);G(r,Me,S=>s(5,t=S)),r.$$.on_destroy.push(()=>l()),r.$$.on_destroy.push(()=>i());let{$$slots:f={},$$scope:c}=e,{error:d=null}=e;o();let{onError:_=null}=e,p;function b(){ge(d,n=null,n),s(4,_=null),u(s(1,p=null)),ge(Me,t=null,t)}return r.$$set=S=>{"error"in S&&o(s(0,d=S.error)),"onError"in S&&s(4,_=S.onError),"$$scope"in S&&s(7,c=S.$$scope)},r.$$.update=()=>{r.$$.dirty&115&&(d&&n&&u(s(1,p=d)),Me&&t&&u(s(1,p=Me)),_&&p&&_(p))},[d,p,a,b,_,t,n,c,f]}class as extends ee{constructor(e){super(),te(this,e,is,os,Q,{error:0,onError:4})}}function fs(r){let e;const s=r[5].default,t=W(s,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&16)&&K(t,s,n,n[4],e?Z(s,n[4],l,null):z(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function us(r){let e,s,t=r[1].message+"",n,l,o,a,i=(r[2]?r[1].stack:"")+"",u,f;return{c(){e=w("div"),s=w("b"),n=U(t),l=j(),o=w("pre"),a=U(" "),u=U(i),f=U(` `),this.h()},l(c){e=E(c,"DIV",{class:!0});var d=k(e);s=E(d,"B",{});var _=k(s);n=q(_,t),_.forEach(m),l=F(d),o=E(d,"PRE",{class:!0});var p=k(o);a=q(p," "),u=q(p,i),f=q(p,` `),p.forEach(m),d.forEach(m),this.h()},h(){h(o,"class","trace svelte-urrl06"),h(e,"class","error svelte-urrl06")},m(c,d){C(c,e,d),v(e,s),v(s,n),v(e,l),v(e,o),v(o,a),v(o,u),v(o,f)},p(c,d){d&2&&t!==(t=c[1].message+"")&&he(n,t),d&2&&i!==(i=(c[2]?c[1].stack:"")+"")&&he(u,i)},i:se,o:se,d(c){c&&m(e)}}}function cs(r){let e,s,t,n;const l=[us,fs],o=[];function a(i,u){return i[1]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function ds(r,e,s){let t,n=se,l=()=>(n(),n=je(i,d=>s(1,t=d)),i);r.$$.on_destroy.push(()=>n());let{$$slots:o={},$$scope:a}=e,{error:i=null}=e;l();let{onError:u=null}=e,c=(typeof process<"u"&&process.env&&"production")!=="production";return r.$$set=d=>{"error"in d&&l(s(0,i=d.error)),"onError"in d&&s(3,u=d.onError),"$$scope"in d&&s(4,a=d.$$scope)},r.$$.update=()=>{r.$$.dirty&10&&t&&u&&u(t)},[i,t,c,u,a,o]}class ms extends ee{constructor(e){super(),te(this,e,ds,cs,Q,{error:0,onError:3})}}const _s=["c","l","h","m","p","a","i","o","d"];function sn(r){if(r.$$render){let s=r.$$render;return r.$$render=(t,n,l,o)=>{const a=We(void 0);try{return s(t,{error:a,...n},l,o)}catch(i){return a.set(i),s(t,{error:a,...n},l,{})}},r}function e(s,t){return function(...l){try{return s(...l)}catch(o){t(o)}}}return class extends r{constructor(t){const n=We(void 0);t.props.$$slots.default=t.props.$$slots.default.map(l=>(...o)=>{let i=e(l,n.set)(...o);if(i)for(let u of _s)i[u]&&(i[u]=e(i[u],n.set));return i}),super(t),this.$$set({error:n})}}}sn(ms);const ps=sn(as);function hs(r){let e,s,t,n,l,o,a;const i=r[4].default,u=W(i,r,r[3],null);return n=new Cn({props:{icon:"close"}}),n.$on("click",r[2]),{c(){e=w("div"),s=w("p"),u&&u.c(),t=j(),T(n.$$.fragment),this.h()},l(f){e=E(f,"DIV",{id:!0,class:!0});var c=k(e);s=E(c,"P",{class:!0});var d=k(s);u&&u.l(d),d.forEach(m),t=F(c),L(n.$$.fragment,c),c.forEach(m),this.h()},h(){h(s,"class","font-secondary text-sm"),h(e,"id",r[0]),h(e,"class",l="flex grow-0 items-center justify-between gap-4 rounded py-3 px-4 shadow "+r[1]+" svelte-19tipv7")},m(f,c){C(f,e,c),v(e,s),u&&u.m(s,null),v(e,t),D(n,e,null),a=!0},p(f,[c]){u&&u.p&&(!a||c&8)&&K(u,i,f,f[3],a?Z(i,f[3],c,null):z(f[3]),null),(!a||c&1)&&h(e,"id",f[0]),(!a||c&2&&l!==(l="flex grow-0 items-center justify-between gap-4 rounded py-3 px-4 shadow "+f[1]+" svelte-19tipv7"))&&h(e,"class",l)},i(f){a||(g(u,f),g(n.$$.fragment,f),an(()=>{o||(o=nt(e,at,{x:250},!0)),o.run(1)}),a=!0)},o(f){$(u,f),$(n.$$.fragment,f),o||(o=nt(e,at,{x:250},!1)),o.run(0),a=!1},d(f){f&&m(e),u&&u.d(f),N(n),f&&o&&o.end()}}}function gs(r,e,s){let{$$slots:t={},$$scope:n}=e;const l=fn();let{id:o}=e,{variant:a}=e;const i=()=>{l("dismiss",{id:o})};return r.$$set=u=>{"id"in u&&s(0,o=u.id),"variant"in u&&s(1,a=u.variant),"$$scope"in u&&s(3,n=u.$$scope)},[o,a,i,n,t]}class $s extends ee{constructor(e){super(),te(this,e,gs,hs,Q,{id:0,variant:1})}}function $t(r,e,s){const t=r.slice();return t[4]=e[s].message,t[5]=e[s].variant,t[6]=e[s].id,t}function vs(r){let e=r[4]+"",s,t;return{c(){s=U(e),t=j()},l(n){s=q(n,e),t=F(n)},m(n,l){C(n,s,l),C(n,t,l)},p(n,l){l&2&&e!==(e=n[4]+"")&&he(s,e)},d(n){n&&m(s),n&&m(t)}}}function vt(r,e){let s,t,n;return t=new $s({props:{variant:e[5],id:e[6],$$slots:{default:[vs]},$$scope:{ctx:e}}}),t.$on("dismiss",e[2]),{key:r,first:null,c(){s=R(),T(t.$$.fragment),this.h()},l(l){s=R(),L(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,o){C(l,s,o),D(t,l,o),n=!0},p(l,o){e=l;const a={};o&2&&(a.variant=e[5]),o&2&&(a.id=e[6]),o&514&&(a.$$scope={dirty:o,ctx:e}),t.$set(a)},i(l){n||(g(t.$$.fragment,l),n=!0)},o(l){$(t.$$.fragment,l),n=!1},d(l){l&&m(s),N(t,l)}}}function bs(r){let e,s=[],t=new Map,n,l=r[1];const o=a=>a[6];for(let a=0;a(n(),n=je(a,u=>s(1,t=u)),a);r.$$.on_destroy.push(()=>n());let{pop:o}=e,{toasts:a}=e;l();const i=u=>{o(u.detail.id)};return r.$$set=u=>{"pop"in u&&s(3,o=u.pop),"toasts"in u&&l(s(0,a=u.toasts))},[a,t,i,o]}class ws extends ee{constructor(e){super(),te(this,e,ks,bs,Q,{pop:3,toasts:0})}}function Es(r){let e,s,t,n,l,o;const a=r[4].default,i=W(a,r,r[3],null);return n=new Vn({props:{class:"!py-1.5 !px-1",icon:"arrow-up",variant:"secondary"}}),n.$on("click",function(){Xe(r[1])&&r[1].apply(this,arguments)}),{c(){e=w("div"),i&&i.c(),s=j(),t=w("div"),T(n.$$.fragment),this.h()},l(u){e=E(u,"DIV",{id:!0,class:!0});var f=k(e);i&&i.l(f),s=F(f),t=E(f,"DIV",{class:!0});var c=k(t);L(n.$$.fragment,c),c.forEach(m),f.forEach(m),this.h()},h(){h(t,"class","back-to-top svelte-78r2pw"),re(t,"hidden",r[0]),h(e,"id","scroll-container"),h(e,"class",l=Ie(r[2].class)+" svelte-78r2pw")},m(u,f){C(u,e,f),i&&i.m(e,null),v(e,s),v(e,t),D(n,t,null),o=!0},p(u,[f]){r=u,i&&i.p&&(!o||f&8)&&K(i,a,r,r[3],o?Z(a,r[3],f,null):z(r[3]),null),(!o||f&1)&&re(t,"hidden",r[0]),(!o||f&4&&l!==(l=Ie(r[2].class)+" svelte-78r2pw"))&&h(e,"class",l)},i(u){o||(g(i,u),g(n.$$.fragment,u),o=!0)},o(u){$(i,u),$(n.$$.fragment,u),o=!1},d(u){u&&m(e),i&&i.d(u),N(n)}}}function Cs(r,e,s){let{$$slots:t={},$$scope:n}=e,{hidden:l=!0}=e,{onScrollToTopClick:o}=e;return r.$$set=a=>{s(2,e=pe(pe({},e),Ee(a))),"hidden"in a&&s(0,l=a.hidden),"onScrollToTopClick"in a&&s(1,o=a.onScrollToTopClick),"$$scope"in a&&s(3,n=a.$$scope)},e=Ee(e),[l,o,e,n,t]}class Is extends ee{constructor(e){super(),te(this,e,Cs,Es,Q,{hidden:0,onScrollToTopClick:1})}}function Vs(r){let e,s;return{c(){e=w("h1"),s=U("Check out the new top navigation!"),this.h()},l(t){e=E(t,"H1",{slot:!0,"data-testid":!0});var n=k(e);s=q(n,"Check out the new top navigation!"),n.forEach(m),this.h()},h(){h(e,"slot","title"),h(e,"data-testid","overlay-title")},m(t,n){C(t,e,n),v(e,s)},p:se,d(t){t&&m(e)}}}function Ts(r){let e,s,t,n,l,o,a,i,u,f;return n=new ue({props:{name:"namespace-switcher",class:"scale-100"}}),i=new ue({props:{name:"transcoder-on",status:"configured"}}),{c(){e=w("div"),s=w("div"),t=w("div"),T(n.$$.fragment),l=U(` Easily switch between Namespaces and know which Namespace you are currently diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.5406e0ef.js b/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.5406e0ef.js deleted file mode 100644 index 28833ab72b..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.5406e0ef.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.ed225812.js";/* empty css */import"../chunks/settings-service.713ab407.js";import"../chunks/auth-user.3a7bc4db.js";import"../chunks/namespaces-service.7d25bee8.js";import"../chunks/route-for.70dfbf18.js";export{d as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.de2ec365.js b/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.de2ec365.js new file mode 100644 index 0000000000..21410f2319 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-layout.ts.de2ec365.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.35732f64.js";/* empty css */import"../chunks/settings-service.2d7ee284.js";import"../chunks/auth-user.3a7bc4db.js";import"../chunks/namespaces-service.1ee08ff7.js";import"../chunks/route-for.087ea268.js";export{d as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.31e4b322.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4ef79eb9.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.31e4b322.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4ef79eb9.js index fef44739a7..04e43b1550 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.31e4b322.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.4ef79eb9.js @@ -1,3 +1,3 @@ -import{S as U,b as H,a as V,m as N,w as A,c as S,C as w,p as q,q as I,x as F,k as _,d as C,D as y,u as v,f as g,L as k,E,a9 as G,T as O,V as ue,y as ce,j as d,g as b,F as T,r as me,K as L,P as pe,z as j,h as D,ab as ie,A as _e,Y as $e,Z as he,e as W,a7 as fe,a1 as de,a2 as ge,n as z}from"../chunks/index.a36c9cb0.js";import{t as Q}from"../chunks/time-format.dc246788.js";import{p as K}from"../chunks/stores.48be4ca9.js";import{j as be,S as ve,W as ke,a as we}from"../chunks/search.89e1d454.js";import{g as J}from"../chunks/navigation.724a9b89.js";import{q as X}from"../chunks/format-time.c8c4770b.js";import{S as ye,a as B}from"../chunks/simple-select.6bb2c039.js";import{u as Ee,F as x,P as Te}from"../chunks/pagination.4cd37fec.js";import{I as Pe}from"../chunks/icon.33859671.js";import{E as Ae}from"../chunks/empty-state.9fb63265.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{P as Se}from"../chunks/page-title.b9565d2f.js";function Fe(i){let e,a,t,l,o,n,r,s,m,c,p;return n=new Pe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=N("div"),a=N("label"),t=A(i[0]),l=S(),o=N("span"),w(n.$$.fragment),r=S(),s=N("input"),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=I(e);a=q(u,"LABEL",{for:!0,class:!0});var $=I(a);t=F($,i[0]),$.forEach(_),l=C(u),o=q(u,"SPAN",{class:!0});var h=I(o);y(n.$$.fragment,h),h.forEach(_),r=C(u),s=q(u,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),u.forEach(_),this.h()},h(){v(a,"for",i[2]),v(a,"class","hidden"),v(o,"class","svelte-fxm0nn"),v(s,"type","search"),v(s,"class","block w-full focus:outline-none"),v(s,"placeholder",i[0]),v(s,"id",i[2]),v(e,"class","input-container focus-within:border-blue-700 svelte-fxm0nn")},m(f,u){g(f,e,u),k(e,a),k(a,t),k(e,l),k(e,o),E(n,o,null),k(e,r),k(e,s),G(s,i[1]),m=!0,c||(p=[O(s,"input",i[7]),O(s,"keydown",ue(i[6]))],c=!0)},p(f,[u]){(!m||u&1)&&ce(t,f[0]),(!m||u&1)&&v(s,"placeholder",f[0]),u&2&&G(s,f[1])},i(f){m||(d(n.$$.fragment,f),m=!0)},o(f){b(n.$$.fragment,f),m=!1},d(f){f&&_(e),T(n),c=!1,me(p)}}}function Ce(i,e,a){let t;L(i,K,f=>a(5,t=f));let{parameter:l}=e,{name:o}=e,{value:n}=e,r=l&&t.url.searchParams.get(l)||n;const s=`${l||o}-filter`,m=be(Ee,300);function c(f){pe.call(this,i,f)}function p(){r=this.value,a(1,r)}return i.$$set=f=>{"parameter"in f&&a(3,l=f.parameter),"name"in f&&a(0,o=f.name),"value"in f&&a(4,n=f.value)},i.$$.update=()=>{i.$$.dirty&42&&m({parameter:l,value:r,url:t.url})},[o,r,s,l,n,t,c,p]}class ee extends U{constructor(e){super(),H(this,e,Ce,Fe,V,{parameter:3,name:0,value:4})}}function te(i,e,a){const t=i.slice();return t[7]=e[a][0],t[8]=e[a][1],t}function le(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ne(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Advanced Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Advanced Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname+"?query"),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("advanced"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname+"?query")&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function qe(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Basic Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Basic Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("basic"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname)&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function Ie(i){let e,a,t,l,o,n,r,s,m,c,p,f;a=new ee({props:{parameter:"workflow-id",name:"Workflow ID",value:Ve}}),l=new ee({props:{parameter:"workflow-type",name:"Workflow Type",value:ze}}),n=new x({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[De]},$$scope:{ctx:i}}}),s=new x({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[Le]},$$scope:{ctx:i}}});function u(h){i[6](h)}let $={id:"filter-by-relative-time",$$slots:{default:[Ue]},$$scope:{ctx:i}};return i[2]!==void 0&&($.value=i[2]),c=new ye({props:$}),_e.push(()=>$e(c,"value",u)),{c(){e=N("div"),w(a.$$.fragment),t=S(),w(l.$$.fragment),o=S(),w(n.$$.fragment),r=S(),w(s.$$.fragment),m=S(),w(c.$$.fragment),this.h()},l(h){e=q(h,"DIV",{class:!0,role:!0});var P=I(e);y(a.$$.fragment,P),t=C(P),y(l.$$.fragment,P),o=C(P),y(n.$$.fragment,P),r=C(P),y(s.$$.fragment,P),m=C(P),y(c.$$.fragment,P),P.forEach(_),this.h()},h(){v(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(e,"role","search")},m(h,P){g(h,e,P),E(a,e,null),k(e,t),E(l,e,null),k(e,o),E(n,e,null),k(e,r),E(s,e,null),k(e,m),E(c,e,null),f=!0},p(h,P){const Y={};P&8192&&(Y.$$scope={dirty:P,ctx:h}),n.$set(Y);const Z={};P&8192&&(Z.$$scope={dirty:P,ctx:h}),s.$set(Z);const R={};P&8192&&(R.$$scope={dirty:P,ctx:h}),!p&&P&4&&(p=!0,R.value=h[2],he(()=>p=!1)),c.$set(R)},i(h){f||(d(a.$$.fragment,h),d(l.$$.fragment,h),d(n.$$.fragment,h),d(s.$$.fragment,h),d(c.$$.fragment,h),f=!0)},o(h){b(a.$$.fragment,h),b(l.$$.fragment,h),b(n.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),f=!1},d(h){h&&_(e),T(a),T(l),T(n),T(s),T(c)}}}function We(i){let e,a;return e=new ve({props:{icon:!0,placeholder:"Query…",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function je(i){let e=i[8]+"",a;return{c(){a=A(e)},l(t){a=F(t,e)},m(t,l){g(t,a,l)},p:z,d(t){t&&_(a)}}}function re(i){let e,a;return e=new B({props:{value:i[8],$$slots:{default:[je]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&8192&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function De(i){let e,a,t=X,l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;nr[7];for(let r=0;r{p[h]=null}),D(),o=p[l],o?o.p(u,$):(o=p[l]=c[l](u),o.c()),d(o,1),o.m(e,null))},i(u){n||(d(o),n=!0)},o(u){b(o),n=!1},d(u){u&&_(e),m.d(),p[l].d()}}}let Ve="",ze="";function Ke(i,e,a){let t,l;L(i,K,c=>a(1,t=c)),L(i,Q,c=>a(2,l=c));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let n=t.url.searchParams.has("query");const r=c=>{const f=new FormData(c.target).get("query");t.url.searchParams.set("query",String(f)),J(t.url.toString())},s=c=>p=>{const f=p.target;a(0,n=c==="advanced"),n||t.url.searchParams.delete("query"),J(f.href)};function m(c){l=c,Q.set(l)}return[n,t,l,o,r,s,m]}class Me extends U{constructor(e){super(),H(this,e,Ke,He,V,{})}}function ne(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ye(i){let e,a,t,l,o,n,r,s,m,c;r=new M({props:{content:`tctl --namespace ${i[3]} namespace update --has enabled`,language:"text",inline:!0}});let p=!i[0]&&se(i);return{c(){e=N("h1"),a=A("This namespace is currently not enabled for archival."),t=S(),l=N("p"),o=A("Run this command to enable archival visibility for event histories:"),n=S(),w(r.$$.fragment),s=S(),p&&p.c(),m=W(),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,"This namespace is currently not enabled for archival."),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"Run this command to enable archival visibility for event histories:"),$.forEach(_),n=C(f),y(r.$$.fragment,f),s=C(f),p&&p.l(f),m=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-disabled-title")},m(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),g(f,n,u),E(r,f,u),g(f,s,u),p&&p.m(f,u),g(f,m,u),c=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update --has enabled`),r.$set($),f[0]?p&&(j(),b(p,1,1,()=>{p=null}),D()):p?(p.p(f,u),u&1&&d(p,1)):(p=se(f),p.c(),d(p,1),p.m(m.parentNode,m))},i(f){c||(d(r.$$.fragment,f),d(p),c=!0)},o(f){b(r.$$.fragment,f),b(p),c=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(n),T(r,f),f&&_(s),p&&p.d(f),f&&_(m)}}}function Ze(i){let e,a,t,l,o,n,r,s,m,c,p;return c=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("h1"),a=A(`This namespace is currently enabled for archival but visibility is not +import{S as U,b as H,a as V,m as N,w as A,c as S,C as w,p as q,q as I,x as F,k as _,d as C,D as y,u as v,f as g,L as k,E,a9 as G,T as O,V as ue,y as ce,j as d,g as b,F as T,r as me,K as L,P as pe,z as j,h as D,ab as ie,A as _e,Y as $e,Z as he,e as W,a7 as fe,a1 as de,a2 as ge,n as z}from"../chunks/index.a36c9cb0.js";import{t as Q}from"../chunks/time-format.dc246788.js";import{p as K}from"../chunks/stores.a2e3306d.js";import{j as be,S as ve,W as ke,a as we}from"../chunks/search.9f7ab7f3.js";import{g as J}from"../chunks/navigation.58fc5f1f.js";import{q as X}from"../chunks/format-time.c8c4770b.js";import{S as ye,a as B}from"../chunks/simple-select.6bb2c039.js";import{u as Ee,F as x,P as Te}from"../chunks/pagination.c403d909.js";import{I as Pe}from"../chunks/icon.33859671.js";import{E as Ae}from"../chunks/empty-state.9fb63265.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{P as Se}from"../chunks/page-title.b9565d2f.js";function Fe(i){let e,a,t,l,o,n,r,s,m,c,p;return n=new Pe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=N("div"),a=N("label"),t=A(i[0]),l=S(),o=N("span"),w(n.$$.fragment),r=S(),s=N("input"),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=I(e);a=q(u,"LABEL",{for:!0,class:!0});var $=I(a);t=F($,i[0]),$.forEach(_),l=C(u),o=q(u,"SPAN",{class:!0});var h=I(o);y(n.$$.fragment,h),h.forEach(_),r=C(u),s=q(u,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),u.forEach(_),this.h()},h(){v(a,"for",i[2]),v(a,"class","hidden"),v(o,"class","svelte-fxm0nn"),v(s,"type","search"),v(s,"class","block w-full focus:outline-none"),v(s,"placeholder",i[0]),v(s,"id",i[2]),v(e,"class","input-container focus-within:border-blue-700 svelte-fxm0nn")},m(f,u){g(f,e,u),k(e,a),k(a,t),k(e,l),k(e,o),E(n,o,null),k(e,r),k(e,s),G(s,i[1]),m=!0,c||(p=[O(s,"input",i[7]),O(s,"keydown",ue(i[6]))],c=!0)},p(f,[u]){(!m||u&1)&&ce(t,f[0]),(!m||u&1)&&v(s,"placeholder",f[0]),u&2&&G(s,f[1])},i(f){m||(d(n.$$.fragment,f),m=!0)},o(f){b(n.$$.fragment,f),m=!1},d(f){f&&_(e),T(n),c=!1,me(p)}}}function Ce(i,e,a){let t;L(i,K,f=>a(5,t=f));let{parameter:l}=e,{name:o}=e,{value:n}=e,r=l&&t.url.searchParams.get(l)||n;const s=`${l||o}-filter`,m=be(Ee,300);function c(f){pe.call(this,i,f)}function p(){r=this.value,a(1,r)}return i.$$set=f=>{"parameter"in f&&a(3,l=f.parameter),"name"in f&&a(0,o=f.name),"value"in f&&a(4,n=f.value)},i.$$.update=()=>{i.$$.dirty&42&&m({parameter:l,value:r,url:t.url})},[o,r,s,l,n,t,c,p]}class ee extends U{constructor(e){super(),H(this,e,Ce,Fe,V,{parameter:3,name:0,value:4})}}function te(i,e,a){const t=i.slice();return t[7]=e[a][0],t[8]=e[a][1],t}function le(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ne(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Advanced Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Advanced Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname+"?query"),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("advanced"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname+"?query")&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function qe(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Basic Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Basic Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("basic"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname)&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function Ie(i){let e,a,t,l,o,n,r,s,m,c,p,f;a=new ee({props:{parameter:"workflow-id",name:"Workflow ID",value:Ve}}),l=new ee({props:{parameter:"workflow-type",name:"Workflow Type",value:ze}}),n=new x({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[De]},$$scope:{ctx:i}}}),s=new x({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[Le]},$$scope:{ctx:i}}});function u(h){i[6](h)}let $={id:"filter-by-relative-time",$$slots:{default:[Ue]},$$scope:{ctx:i}};return i[2]!==void 0&&($.value=i[2]),c=new ye({props:$}),_e.push(()=>$e(c,"value",u)),{c(){e=N("div"),w(a.$$.fragment),t=S(),w(l.$$.fragment),o=S(),w(n.$$.fragment),r=S(),w(s.$$.fragment),m=S(),w(c.$$.fragment),this.h()},l(h){e=q(h,"DIV",{class:!0,role:!0});var P=I(e);y(a.$$.fragment,P),t=C(P),y(l.$$.fragment,P),o=C(P),y(n.$$.fragment,P),r=C(P),y(s.$$.fragment,P),m=C(P),y(c.$$.fragment,P),P.forEach(_),this.h()},h(){v(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(e,"role","search")},m(h,P){g(h,e,P),E(a,e,null),k(e,t),E(l,e,null),k(e,o),E(n,e,null),k(e,r),E(s,e,null),k(e,m),E(c,e,null),f=!0},p(h,P){const Y={};P&8192&&(Y.$$scope={dirty:P,ctx:h}),n.$set(Y);const Z={};P&8192&&(Z.$$scope={dirty:P,ctx:h}),s.$set(Z);const R={};P&8192&&(R.$$scope={dirty:P,ctx:h}),!p&&P&4&&(p=!0,R.value=h[2],he(()=>p=!1)),c.$set(R)},i(h){f||(d(a.$$.fragment,h),d(l.$$.fragment,h),d(n.$$.fragment,h),d(s.$$.fragment,h),d(c.$$.fragment,h),f=!0)},o(h){b(a.$$.fragment,h),b(l.$$.fragment,h),b(n.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),f=!1},d(h){h&&_(e),T(a),T(l),T(n),T(s),T(c)}}}function We(i){let e,a;return e=new ve({props:{icon:!0,placeholder:"Query…",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function je(i){let e=i[8]+"",a;return{c(){a=A(e)},l(t){a=F(t,e)},m(t,l){g(t,a,l)},p:z,d(t){t&&_(a)}}}function re(i){let e,a;return e=new B({props:{value:i[8],$$slots:{default:[je]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&8192&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function De(i){let e,a,t=X,l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;nr[7];for(let r=0;r{p[h]=null}),D(),o=p[l],o?o.p(u,$):(o=p[l]=c[l](u),o.c()),d(o,1),o.m(e,null))},i(u){n||(d(o),n=!0)},o(u){b(o),n=!1},d(u){u&&_(e),m.d(),p[l].d()}}}let Ve="",ze="";function Ke(i,e,a){let t,l;L(i,K,c=>a(1,t=c)),L(i,Q,c=>a(2,l=c));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let n=t.url.searchParams.has("query");const r=c=>{const f=new FormData(c.target).get("query");t.url.searchParams.set("query",String(f)),J(t.url.toString())},s=c=>p=>{const f=p.target;a(0,n=c==="advanced"),n||t.url.searchParams.delete("query"),J(f.href)};function m(c){l=c,Q.set(l)}return[n,t,l,o,r,s,m]}class Me extends U{constructor(e){super(),H(this,e,Ke,He,V,{})}}function ne(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ye(i){let e,a,t,l,o,n,r,s,m,c;r=new M({props:{content:`tctl --namespace ${i[3]} namespace update --has enabled`,language:"text",inline:!0}});let p=!i[0]&&se(i);return{c(){e=N("h1"),a=A("This namespace is currently not enabled for archival."),t=S(),l=N("p"),o=A("Run this command to enable archival visibility for event histories:"),n=S(),w(r.$$.fragment),s=S(),p&&p.c(),m=W(),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,"This namespace is currently not enabled for archival."),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"Run this command to enable archival visibility for event histories:"),$.forEach(_),n=C(f),y(r.$$.fragment,f),s=C(f),p&&p.l(f),m=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-disabled-title")},m(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),g(f,n,u),E(r,f,u),g(f,s,u),p&&p.m(f,u),g(f,m,u),c=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update --has enabled`),r.$set($),f[0]?p&&(j(),b(p,1,1,()=>{p=null}),D()):p?(p.p(f,u),u&1&&d(p,1)):(p=se(f),p.c(),d(p,1),p.m(m.parentNode,m))},i(f){c||(d(r.$$.fragment,f),d(p),c=!0)},o(f){b(r.$$.fragment,f),b(p),c=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(n),T(r,f),f&&_(s),p&&p.d(f),f&&_(m)}}}function Ze(i){let e,a,t,l,o,n,r,s,m,c,p;return c=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("h1"),a=A(`This namespace is currently enabled for archival but visibility is not enabled.`),t=S(),l=N("p"),o=A("To enable "),n=N("a"),r=A("archival visibility"),s=A(":"),m=S(),w(c.$$.fragment),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,`This namespace is currently enabled for archival but visibility is not enabled.`),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"To enable "),n=q($,"A",{class:!0,href:!0,target:!0,rel:!0});var h=I(n);r=F(h,"archival visibility"),h.forEach(_),s=F($,":"),$.forEach(_),m=C(f),y(c.$$.fragment,f),this.h()},h(){v(e,"class","text-2xl"),v(e,"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(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),k(l,n),k(n,r),k(l,s),g(f,m,u),E(c,f,u),p=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update -vas enabled`),c.$set($)},i(f){p||(d(c.$$.fragment,f),p=!0)},o(f){b(c.$$.fragment,f),p=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(m),T(c,f)}}}function Ge(i){let e,a,t,l,o,n,r,s,m;l=new Me({});const c=[Xe,Je],p=[];function f(u,$){var h;return(h=u[2])!=null&&h.length?0:1}return n=f(i),r=p[n]=c[n](i),{c(){e=N("h1"),a=A("Archived Workflows"),t=S(),w(l.$$.fragment),o=S(),r.c(),s=W(),this.h()},l(u){e=q(u,"H1",{class:!0,"data-testid":!0});var $=I(e);a=F($,"Archived Workflows"),$.forEach(_),t=C(u),y(l.$$.fragment,u),o=C(u),r.l(u),s=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-enabled-title")},m(u,$){g(u,e,$),k(e,a),g(u,t,$),E(l,u,$),g(u,o,$),p[n].m(u,$),g(u,s,$),m=!0},p(u,$){let h=n;n=f(u),n===h?p[n].p(u,$):(j(),b(p[h],1,1,()=>{p[h]=null}),D(),r=p[n],r?r.p(u,$):(r=p[n]=c[n](u),r.c()),d(r,1),r.m(s.parentNode,s))},i(u){m||(d(l.$$.fragment,u),d(r),m=!0)},o(u){b(l.$$.fragment,u),b(r),m=!1},d(u){u&&_(e),u&&_(t),T(l,u),u&&_(o),p[n].d(u),u&&_(s)}}}function se(i){let e,a,t,l,o,n,r,s;return r=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("p"),a=A("To enable "),t=N("a"),l=A("archival visibility"),o=A(":"),n=S(),w(r.$$.fragment),this.h()},l(m){e=q(m,"P",{});var c=I(e);a=F(c,"To enable "),t=q(c,"A",{class:!0,href:!0,target:!0,rel:!0});var p=I(t);l=F(p,"archival visibility"),p.forEach(_),o=F(c,":"),c.forEach(_),n=C(m),y(r.$$.fragment,m),this.h()},h(){v(t,"class","text-blue-700 underline"),v(t,"href","https://docs.temporal.io/clusters#archival"),v(t,"target","_blank"),v(t,"rel","noreferrer")},m(m,c){g(m,e,c),k(e,a),k(e,t),k(t,l),k(e,o),g(m,n,c),E(r,m,c),s=!0},p(m,c){const p={};c&8&&(p.content=`tctl --namespace ${m[3]} namespace update -vas enabled`),r.$set(p)},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){b(r.$$.fragment,m),s=!1},d(m){m&&_(e),m&&_(n),T(r,m)}}}function Je(i){let e,a;return e=new Ae({props:{title:"No Workflows Found",content:"If you have filters applied, try adjusting them."}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p:z,i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function Xe(i){let e,a;return e=new Te({props:{items:i[2],"aria-label":"archived workflows",$$slots:{default:[et,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&4&&(o.items=t[2]),l&2216&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function oe(i){let e,a;return e=new we({props:{workflow:i[8],namespace:i[3],timeFormat:i[5]}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&128&&(o.workflow=t[8]),l&8&&(o.namespace=t[3]),l&32&&(o.timeFormat=t[5]),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function xe(i){let e,a,t=i[7],l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[u]=null}),D(),l=s[t],l?l.p(c,p):(l=s[t]=r[t](c),l.c()),d(l,1),l.m(o.parentNode,o))},i(c){n||(d(e.$$.fragment,c),d(l),n=!0)},o(c){b(e.$$.fragment,c),b(l),n=!1},d(c){T(e,c),c&&_(a),s[t].d(c),c&&_(o)}}}function lt(i,e,a){let t,l,o,n,r,s;L(i,K,c=>a(4,r=c)),L(i,Q,c=>a(5,s=c));let{data:m}=e;return i.$$set=c=>{"data"in c&&a(6,m=c.data)},i.$$.update=()=>{i.$$.dirty&64&&a(3,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:o,visibilityArchivalEnabled:n}=m,t,(a(2,l),a(6,m)),(a(1,o),a(6,m)),(a(0,n),a(6,m)))},[n,o,l,t,r,s,m]}class $t extends U{constructor(e){super(),H(this,e,lt,tt,V,{data:6})}}export{$t as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c97c3dd.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c97c3dd.js new file mode 100644 index 0000000000..f52a45da1d --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c97c3dd.js @@ -0,0 +1 @@ +import"../chunks/workflow-service.b203d78a.js";import"../chunks/namespaces-service.1ee08ff7.js";import{l as t}from"../chunks/_page.de41eaf1.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.b996884e.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.b996884e.js deleted file mode 100644 index e1e4028b7c..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.b996884e.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/workflow-service.24d3174e.js";import"../chunks/namespaces-service.7d25bee8.js";import{l as t}from"../chunks/_page.f3fdc977.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.2176d965.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.84696901.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.2176d965.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.84696901.js index 5bbc6aaf8b..c4c86dd900 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.2176d965.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.84696901.js @@ -1 +1 @@ -import{S as ft,b as nt,a as it,G as ct,m as _,p as $,q as m,k as s,u as W,f as T,H as _t,I as $t,J as mt,j as F,g as U,N as et,O as tt,C as z,c as k,w as g,e as Be,D as J,d as S,x as D,E as M,L as i,y as K,h as ut,F as Q,K as Re,o as pt,_ as ht,z as dt,a7 as vt,n as Fe}from"../chunks/index.a36c9cb0.js";import{p as Tt}from"../chunks/stores.0bc9ce95.js";import{t as Et,u as bt}from"../chunks/versions.97216320.js";import{l as lt}from"../chunks/namespaces.85dd7810.js";import{s as wt}from"../chunks/search-attributes.b68ffd52.js";import{s as gt}from"../chunks/settings.34723850.js";import{o as at}from"../chunks/format-time.c8c4770b.js";import{P as Dt}from"../chunks/page-title.b9565d2f.js";import{T as ye,a as At}from"../chunks/table-header-row.eb620974.js";import{T as Rt}from"../chunks/table-row.9df8daa0.js";import{B as pe}from"../chunks/badge.7f30446f.js";function kt(f){let e,l,t;const a=f[2].default,r=ct(a,f,f[1],null);return{c(){e=_("div"),r&&r.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var n=m(e);r&&r.l(n),n.forEach(s),this.h()},h(){W(e,"class",l="card bg-white "+f[0].class+" svelte-hm2avd")},m(o,n){T(o,e,n),r&&r.m(e,null),t=!0},p(o,[n]){r&&r.p&&(!t||n&2)&&_t(r,a,o,o[1],t?mt(a,o[1],n,null):$t(o[1]),null),(!t||n&1&&l!==(l="card bg-white "+o[0].class+" svelte-hm2avd"))&&W(e,"class",l)},i(o){t||(F(r,o),t=!0)},o(o){U(r,o),t=!1},d(o){o&&s(e),r&&r.d(o)}}}function St(f,e,l){let{$$slots:t={},$$scope:a}=e;return f.$$set=r=>{l(0,e=et(et({},e),tt(r))),"$$scope"in r&&l(1,a=r.$$scope)},e=tt(e),[e,a,t]}class It extends ft{constructor(e){super(),nt(this,e,St,kt,it,{})}}function st(f,e,l){const t=f.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(f){var t;let e=(t=f[0])!=null&&t.isGlobalNamespace?"Yes":"No",l;return{c(){l=g(e)},l(a){l=D(a,e)},m(a,r){T(a,l,r)},p(a,r){var o;r&1&&e!==(e=(o=a[0])!=null&&o.isGlobalNamespace?"Yes":"No")&&K(l,e)},d(a){a&&s(l)}}}function Ht(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(f){var Ue,Ge,Oe,Pe,je,Ke,qe,Ye,ze,Je;let e,l,t,a,r,o=(((Ge=(Ue=f[0])==null?void 0:Ue.namespaceInfo)==null?void 0:Ge.ownerEmail)||"Unknown")+"",n,u,v,I,V,N,C,b,A,d,y,G,E,R,P=at((Pe=(Oe=f[0])==null?void 0:Oe.config)==null?void 0:Pe.workflowExecutionRetentionTtl.toString())+"",B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe,c,H,Y,se,re,ne,oe,ie=((je=f[0])==null?void 0:je.failoverVersion)+"",he,ve,Z,de,ge,ce,_e,Te,$e;return b=new pe({props:{class:"px-1 py-0",type:f[8]((Ke=f[0])==null?void 0:Ke.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:f}}}),O=new pe({props:{class:"px-1 py-0",type:f[7]((Ye=(qe=f[0])==null?void 0:qe.config)==null?void 0:Ye.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:f}}}),c=new pe({props:{class:"px-1 py-0",type:f[7]((Je=(ze=f[0])==null?void 0:ze.config)==null?void 0:Je.visibilityArchivalState),$$slots:{default:[Vt]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Owner"),a=k(),r=_("td"),n=g(o),u=k(),v=_("tr"),I=_("td"),V=g("Global"),N=k(),C=_("td"),z(b.$$.fragment),A=k(),d=_("tr"),y=_("td"),G=g("Retention Period"),E=k(),R=_("td"),B=g(P),p=k(),w=_("tr"),j=_("td"),te=g("History Archival"),X=k(),x=_("td"),z(O.$$.fragment),ee=k(),q=_("tr"),le=_("td"),ue=g("Visibility Archival"),ae=k(),fe=_("td"),z(c.$$.fragment),H=k(),Y=_("tr"),se=_("td"),re=g("Failover Version"),ne=k(),oe=_("td"),he=g(ie),ve=k(),Z=_("tr"),de=_("td"),ge=g("Clusters"),ce=k(),_e=_("td"),Te=g(f[1]),this.h()},l(h){e=$(h,"TR",{"data-testid":!0});var L=m(e);l=$(L,"TD",{});var De=m(l);t=D(De,"Owner"),De.forEach(s),a=S(L),r=$(L,"TD",{});var Ae=m(r);n=D(Ae,o),Ae.forEach(s),L.forEach(s),u=S(h),v=$(h,"TR",{"data-testid":!0});var me=m(v);I=$(me,"TD",{});var ke=m(I);V=D(ke,"Global"),ke.forEach(s),N=S(me),C=$(me,"TD",{});var Se=m(C);J(b.$$.fragment,Se),Se.forEach(s),me.forEach(s),A=S(h),d=$(h,"TR",{"data-testid":!0});var Ee=m(d);y=$(Ee,"TD",{});var Ie=m(y);G=D(Ie,"Retention Period"),Ie.forEach(s),E=S(Ee),R=$(Ee,"TD",{});var Ce=m(R);B=D(Ce,P),Ce.forEach(s),Ee.forEach(s),p=S(h),w=$(h,"TR",{"data-testid":!0});var be=m(w);j=$(be,"TD",{});var He=m(j);te=D(He,"History Archival"),He.forEach(s),X=S(be),x=$(be,"TD",{});var Ve=m(x);J(O.$$.fragment,Ve),Ve.forEach(s),be.forEach(s),ee=S(h),q=$(h,"TR",{"data-testid":!0});var we=m(q);le=$(we,"TD",{});var Ne=m(le);ue=D(Ne,"Visibility Archival"),Ne.forEach(s),ae=S(we),fe=$(we,"TD",{});var Me=m(fe);J(c.$$.fragment,Me),Me.forEach(s),we.forEach(s),H=S(h),Y=$(h,"TR",{"data-testid":!0});var Le=m(Y);se=$(Le,"TD",{});var Qe=m(se);re=D(Qe,"Failover Version"),Qe.forEach(s),ne=S(Le),oe=$(Le,"TD",{});var Xe=m(oe);he=D(Xe,ie),Xe.forEach(s),Le.forEach(s),ve=S(h),Z=$(h,"TR",{"data-testid":!0});var We=m(Z);de=$(We,"TD",{});var Ze=m(de);ge=D(Ze,"Clusters"),Ze.forEach(s),ce=S(We),_e=$(We,"TD",{});var xe=m(_e);Te=D(xe,f[1]),xe.forEach(s),We.forEach(s),this.h()},h(){W(e,"data-testid","namespace-owner"),W(v,"data-testid","namespace-global"),W(d,"data-testid","namespace-retention"),W(w,"data-testid","namespace-history"),W(q,"data-testid","namespace-visibility"),W(Y,"data-testid","namespace-failover"),W(Z,"data-testid","namespace-clusters")},m(h,L){T(h,e,L),i(e,l),i(l,t),i(e,a),i(e,r),i(r,n),T(h,u,L),T(h,v,L),i(v,I),i(I,V),i(v,N),i(v,C),M(b,C,null),T(h,A,L),T(h,d,L),i(d,y),i(y,G),i(d,E),i(d,R),i(R,B),T(h,p,L),T(h,w,L),i(w,j),i(j,te),i(w,X),i(w,x),M(O,x,null),T(h,ee,L),T(h,q,L),i(q,le),i(le,ue),i(q,ae),i(q,fe),M(c,fe,null),T(h,H,L),T(h,Y,L),i(Y,se),i(se,re),i(Y,ne),i(Y,oe),i(oe,he),T(h,ve,L),T(h,Z,L),i(Z,de),i(de,ge),i(Z,ce),i(Z,_e),i(_e,Te),$e=!0},p(h,L){var ke,Se,Ee,Ie,Ce,be,He,Ve,we,Ne;(!$e||L&1)&&o!==(o=(((Se=(ke=h[0])==null?void 0:ke.namespaceInfo)==null?void 0:Se.ownerEmail)||"Unknown")+"")&&K(n,o);const De={};L&1&&(De.type=h[8]((Ee=h[0])==null?void 0:Ee.isGlobalNamespace,!1)),L&131073&&(De.$$scope={dirty:L,ctx:h}),b.$set(De),(!$e||L&1)&&P!==(P=at((Ce=(Ie=h[0])==null?void 0:Ie.config)==null?void 0:Ce.workflowExecutionRetentionTtl.toString())+"")&&K(B,P);const Ae={};L&1&&(Ae.type=h[7]((He=(be=h[0])==null?void 0:be.config)==null?void 0:He.historyArchivalState)),L&131073&&(Ae.$$scope={dirty:L,ctx:h}),O.$set(Ae);const me={};L&1&&(me.type=h[7]((we=(Ve=h[0])==null?void 0:Ve.config)==null?void 0:we.visibilityArchivalState)),L&131073&&(me.$$scope={dirty:L,ctx:h}),c.$set(me),(!$e||L&1)&&ie!==(ie=((Ne=h[0])==null?void 0:Ne.failoverVersion)+"")&&K(he,ie),(!$e||L&2)&&K(Te,h[1])},i(h){$e||(F(b.$$.fragment,h),F(O.$$.fragment,h),F(c.$$.fragment,h),$e=!0)},o(h){U(b.$$.fragment,h),U(O.$$.fragment,h),U(c.$$.fragment,h),$e=!1},d(h){h&&s(e),h&&s(u),h&&s(v),Q(b),h&&s(A),h&&s(d),h&&s(p),h&&s(w),Q(O),h&&s(ee),h&&s(q),Q(c),h&&s(H),h&&s(Y),h&&s(ve),h&&s(Z)}}}function Lt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Wt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C;return{c(){e=_("tr"),l=_("td"),t=g("Temporal Server Version"),a=k(),r=_("td"),o=g(f[3]),n=k(),u=_("tr"),v=_("td"),I=g("Temporal UI Version"),V=k(),N=_("td"),C=g(f[4]),this.h()},l(b){e=$(b,"TR",{"data-testid":!0});var A=m(e);l=$(A,"TD",{});var d=m(l);t=D(d,"Temporal Server Version"),d.forEach(s),a=S(A),r=$(A,"TD",{});var y=m(r);o=D(y,f[3]),y.forEach(s),A.forEach(s),n=S(b),u=$(b,"TR",{"data-testid":!0});var G=m(u);v=$(G,"TD",{});var E=m(v);I=D(E,"Temporal UI Version"),E.forEach(s),V=S(G),N=$(G,"TD",{});var R=m(N);C=D(R,f[4]),R.forEach(s),G.forEach(s),this.h()},h(){W(e,"data-testid","server-version"),W(u,"data-testid","ui-version")},m(b,A){T(b,e,A),i(e,l),i(l,t),i(e,a),i(e,r),i(r,o),T(b,n,A),T(b,u,A),i(u,v),i(v,I),i(u,V),i(u,N),i(N,C)},p(b,A){A&8&&K(o,b[3]),A&16&&K(C,b[4])},d(b){b&&s(e),b&&s(n),b&&s(u)}}}function yt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/4"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Bt(f){let e=f[9](f[5].disableWriteActions)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ft(f){let e=f[9](f[5].workflowTerminateDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(f){let e=f[9](f[5].workflowCancelDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(f){let e=f[9](f[5].workflowSignalDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ot(f){let e=f[9](f[5].workflowResetDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Pt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G,E,R,P,B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe;return o=new pe({props:{class:"px-1 py-0",type:f[8](f[5].disableWriteActions),$$slots:{default:[Bt]},$$scope:{ctx:f}}}),C=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowTerminateDisabled),$$slots:{default:[Ft]},$$scope:{ctx:f}}}),R=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowCancelDisabled),$$slots:{default:[Ut]},$$scope:{ctx:f}}}),X=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowSignalDisabled),$$slots:{default:[Gt]},$$scope:{ctx:f}}}),ae=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowResetDisabled),$$slots:{default:[Ot]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Client Actions"),a=k(),r=_("td"),z(o.$$.fragment),n=k(),u=_("tr"),v=_("td"),I=g("Terminate Workflow"),V=k(),N=_("td"),z(C.$$.fragment),b=k(),A=_("tr"),d=_("td"),y=g("Cancel Workflow"),G=k(),E=_("td"),z(R.$$.fragment),P=k(),B=_("tr"),p=_("td"),w=g("Signal Workflow"),j=k(),te=_("td"),z(X.$$.fragment),x=k(),O=_("tr"),ee=_("td"),q=g("Reset Workflow"),le=k(),ue=_("td"),z(ae.$$.fragment)},l(c){e=$(c,"TR",{});var H=m(e);l=$(H,"TD",{});var Y=m(l);t=D(Y,"Client Actions"),Y.forEach(s),a=S(H),r=$(H,"TD",{});var se=m(r);J(o.$$.fragment,se),se.forEach(s),H.forEach(s),n=S(c),u=$(c,"TR",{});var re=m(u);v=$(re,"TD",{});var ne=m(v);I=D(ne,"Terminate Workflow"),ne.forEach(s),V=S(re),N=$(re,"TD",{});var oe=m(N);J(C.$$.fragment,oe),oe.forEach(s),re.forEach(s),b=S(c),A=$(c,"TR",{});var ie=m(A);d=$(ie,"TD",{});var he=m(d);y=D(he,"Cancel Workflow"),he.forEach(s),G=S(ie),E=$(ie,"TD",{});var ve=m(E);J(R.$$.fragment,ve),ve.forEach(s),ie.forEach(s),P=S(c),B=$(c,"TR",{});var Z=m(B);p=$(Z,"TD",{});var de=m(p);w=D(de,"Signal Workflow"),de.forEach(s),j=S(Z),te=$(Z,"TD",{});var ge=m(te);J(X.$$.fragment,ge),ge.forEach(s),Z.forEach(s),x=S(c),O=$(c,"TR",{});var ce=m(O);ee=$(ce,"TD",{});var _e=m(ee);q=D(_e,"Reset Workflow"),_e.forEach(s),le=S(ce),ue=$(ce,"TD",{});var Te=m(ue);J(ae.$$.fragment,Te),Te.forEach(s),ce.forEach(s)},m(c,H){T(c,e,H),i(e,l),i(l,t),i(e,a),i(e,r),M(o,r,null),T(c,n,H),T(c,u,H),i(u,v),i(v,I),i(u,V),i(u,N),M(C,N,null),T(c,b,H),T(c,A,H),i(A,d),i(d,y),i(A,G),i(A,E),M(R,E,null),T(c,P,H),T(c,B,H),i(B,p),i(p,w),i(B,j),i(B,te),M(X,te,null),T(c,x,H),T(c,O,H),i(O,ee),i(ee,q),i(O,le),i(O,ue),M(ae,ue,null),fe=!0},p(c,H){const Y={};H&32&&(Y.type=c[8](c[5].disableWriteActions)),H&131104&&(Y.$$scope={dirty:H,ctx:c}),o.$set(Y);const se={};H&32&&(se.type=c[8](c[5].workflowTerminateDisabled)),H&131104&&(se.$$scope={dirty:H,ctx:c}),C.$set(se);const re={};H&32&&(re.type=c[8](c[5].workflowCancelDisabled)),H&131104&&(re.$$scope={dirty:H,ctx:c}),R.$set(re);const ne={};H&32&&(ne.type=c[8](c[5].workflowSignalDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:c}),X.$set(ne);const oe={};H&32&&(oe.type=c[8](c[5].workflowResetDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:c}),ae.$set(oe)},i(c){fe||(F(o.$$.fragment,c),F(C.$$.fragment,c),F(R.$$.fragment,c),F(X.$$.fragment,c),F(ae.$$.fragment,c),fe=!0)},o(c){U(o.$$.fragment,c),U(C.$$.fragment,c),U(R.$$.fragment,c),U(X.$$.fragment,c),U(ae.$$.fragment,c),fe=!1},d(c){c&&s(e),Q(o),c&&s(n),c&&s(u),Q(C),c&&s(b),c&&s(A),Q(R),c&&s(P),c&&s(B),Q(X),c&&s(x),c&&s(O),Q(ae)}}}function jt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Kt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G;return r=new ye({props:{variant:"simple",$$slots:{headers:[Lt],default:[Nt]},$$scope:{ctx:f}}}),V=new ye({props:{variant:"simple",$$slots:{headers:[yt],default:[Wt]},$$scope:{ctx:f}}}),y=new ye({props:{variant:"simple",$$slots:{headers:[jt],default:[Pt]},$$scope:{ctx:f}}}),{c(){e=_("article"),l=_("h3"),t=g("Details"),a=k(),z(r.$$.fragment),o=k(),n=_("article"),u=_("h3"),v=g("Versions"),I=k(),z(V.$$.fragment),N=k(),C=_("article"),b=_("h3"),A=g("Client Actions"),d=k(),z(y.$$.fragment),this.h()},l(E){e=$(E,"ARTICLE",{class:!0});var R=m(e);l=$(R,"H3",{class:!0});var P=m(l);t=D(P,"Details"),P.forEach(s),a=S(R),J(r.$$.fragment,R),R.forEach(s),o=S(E),n=$(E,"ARTICLE",{class:!0});var B=m(n);u=$(B,"H3",{class:!0});var p=m(u);v=D(p,"Versions"),p.forEach(s),I=S(B),J(V.$$.fragment,B),B.forEach(s),N=S(E),C=$(E,"ARTICLE",{class:!0});var w=m(C);b=$(w,"H3",{class:!0});var j=m(b);A=D(j,"Client Actions"),j.forEach(s),d=S(w),J(y.$$.fragment,w),w.forEach(s),this.h()},h(){W(l,"class","text-lg font-medium"),W(e,"class","namespace-info flex w-full flex-col"),W(u,"class","text-lg font-medium"),W(n,"class","namespace-info flex w-full flex-col"),W(b,"class","text-lg font-medium"),W(C,"class","namespace-info flex w-full flex-col")},m(E,R){T(E,e,R),i(e,l),i(l,t),i(e,a),M(r,e,null),T(E,o,R),T(E,n,R),i(n,u),i(u,v),i(n,I),M(V,n,null),T(E,N,R),T(E,C,R),i(C,b),i(b,A),i(C,d),M(y,C,null),G=!0},p(E,R){const P={};R&131075&&(P.$$scope={dirty:R,ctx:E}),r.$set(P);const B={};R&131096&&(B.$$scope={dirty:R,ctx:E}),V.$set(B);const p={};R&131104&&(p.$$scope={dirty:R,ctx:E}),y.$set(p)},i(E){G||(F(r.$$.fragment,E),F(V.$$.fragment,E),F(y.$$.fragment,E),G=!0)},o(E){U(r.$$.fragment,E),U(V.$$.fragment,E),U(y.$$.fragment,E),G=!1},d(E){E&&s(e),Q(r),E&&s(o),E&&s(n),Q(V),E&&s(N),E&&s(C),Q(y)}}}function rt(f){let e,l,t,a,r,o;return r=new ye({props:{class:"w-full",$$slots:{headers:[Jt],default:[Yt]},$$scope:{ctx:f}}}),{c(){e=_("section"),l=_("h3"),t=g("Search Attributes"),a=k(),z(r.$$.fragment),this.h()},l(n){e=$(n,"SECTION",{});var u=m(e);l=$(u,"H3",{class:!0});var v=m(l);t=D(v,"Search Attributes"),v.forEach(s),a=S(u),J(r.$$.fragment,u),u.forEach(s),this.h()},h(){W(l,"class","my-4 text-lg font-medium")},m(n,u){T(n,e,u),i(e,l),i(l,t),i(e,a),M(r,e,null),o=!0},p(n,u){const v={};u&131136&&(v.$$scope={dirty:u,ctx:n}),r.$set(v)},i(n){o||(F(r.$$.fragment,n),o=!0)},o(n){U(r.$$.fragment,n),o=!1},d(n){n&&s(e),Q(r)}}}function qt(f){let e,l=f[13]+"",t,a,r,o=f[14]+"",n,u;return{c(){e=_("td"),t=g(l),a=k(),r=_("td"),n=g(o),u=k()},l(v){e=$(v,"TD",{});var I=m(e);t=D(I,l),I.forEach(s),a=S(v),r=$(v,"TD",{});var V=m(r);n=D(V,o),V.forEach(s),u=S(v)},m(v,I){T(v,e,I),i(e,t),T(v,a,I),T(v,r,I),i(r,n),T(v,u,I)},p(v,I){I&64&&l!==(l=v[13]+"")&&K(t,l),I&64&&o!==(o=v[14]+"")&&K(n,o)},d(v){v&&s(e),v&&s(a),v&&s(r),v&&s(u)}}}function ot(f){let e,l;return e=new Rt({props:{$$slots:{default:[qt]},$$scope:{ctx:f}}}),{c(){z(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,a){M(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(F(e.$$.fragment,t),l=!0)},o(t){U(e.$$.fragment,t),l=!1},d(t){Q(e,t)}}}function Yt(f){let e,l,t=Object.entries(f[6]),a=[];for(let o=0;oU(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;o{d=null}),ut())},i(p){A||(F(e.$$.fragment,p),F(N.$$.fragment,p),F(d),A=!0)},o(p){U(e.$$.fragment,p),U(N.$$.fragment,p),U(d),A=!1},d(p){Q(e,p),p&&s(l),p&&s(t),p&&s(n),p&&s(u),p&&s(V),Q(N,p),p&&s(C),d&&d.d(p),p&&s(b)}}}function Qt(f,e,l){let t,a,r,o,n,u,v,I;Re(f,lt,d=>l(12,r=d)),Re(f,Tt,d=>l(2,o=d)),Re(f,Et,d=>l(3,n=d)),Re(f,bt,d=>l(4,u=d)),Re(f,gt,d=>l(5,v=d)),Re(f,wt,d=>l(6,I=d));let{data:V}=e;var N;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(N||(N={}));const C=d=>d===N.ARCHIVAL_STATE_ENABLED?"green":"default",b=(d,y=!0)=>y?d?"default":"green":d?"green":"default",A=d=>d?"Disabled":"Enabled";return pt(()=>{var d;ht(lt,r=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,r)}),f.$$set=d=>{"data"in d&&l(10,V=d.data)},f.$$.update=()=>{f.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=V,t,(l(1,a),l(10,V)))},[t,a,o,n,u,v,I,C,b,A,V]}class nl extends ft{constructor(e){super(),nt(this,e,Qt,Mt,it,{data:10})}}export{nl as default}; +import{S as ft,b as nt,a as it,G as ct,m as _,p as $,q as m,k as s,u as W,f as T,H as _t,I as $t,J as mt,j as F,g as U,N as et,O as tt,C as z,c as k,w as g,e as Be,D as J,d as S,x as D,E as M,L as i,y as K,h as ut,F as Q,K as Re,o as pt,_ as ht,z as dt,a7 as vt,n as Fe}from"../chunks/index.a36c9cb0.js";import{p as Tt}from"../chunks/stores.a2e3306d.js";import{t as Et,u as bt}from"../chunks/versions.97216320.js";import{l as lt}from"../chunks/namespaces.85dd7810.js";import{s as wt}from"../chunks/search-attributes.b68ffd52.js";import{s as gt}from"../chunks/settings.34723850.js";import{o as at}from"../chunks/format-time.c8c4770b.js";import{P as Dt}from"../chunks/page-title.b9565d2f.js";import{T as ye,a as At}from"../chunks/table-header-row.eb620974.js";import{T as Rt}from"../chunks/table-row.9df8daa0.js";import{B as pe}from"../chunks/badge.7f30446f.js";function kt(f){let e,l,t;const a=f[2].default,r=ct(a,f,f[1],null);return{c(){e=_("div"),r&&r.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var n=m(e);r&&r.l(n),n.forEach(s),this.h()},h(){W(e,"class",l="card bg-white "+f[0].class+" svelte-hm2avd")},m(o,n){T(o,e,n),r&&r.m(e,null),t=!0},p(o,[n]){r&&r.p&&(!t||n&2)&&_t(r,a,o,o[1],t?mt(a,o[1],n,null):$t(o[1]),null),(!t||n&1&&l!==(l="card bg-white "+o[0].class+" svelte-hm2avd"))&&W(e,"class",l)},i(o){t||(F(r,o),t=!0)},o(o){U(r,o),t=!1},d(o){o&&s(e),r&&r.d(o)}}}function St(f,e,l){let{$$slots:t={},$$scope:a}=e;return f.$$set=r=>{l(0,e=et(et({},e),tt(r))),"$$scope"in r&&l(1,a=r.$$scope)},e=tt(e),[e,a,t]}class It extends ft{constructor(e){super(),nt(this,e,St,kt,it,{})}}function st(f,e,l){const t=f.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(f){var t;let e=(t=f[0])!=null&&t.isGlobalNamespace?"Yes":"No",l;return{c(){l=g(e)},l(a){l=D(a,e)},m(a,r){T(a,l,r)},p(a,r){var o;r&1&&e!==(e=(o=a[0])!=null&&o.isGlobalNamespace?"Yes":"No")&&K(l,e)},d(a){a&&s(l)}}}function Ht(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(f){var Ue,Ge,Oe,Pe,je,Ke,qe,Ye,ze,Je;let e,l,t,a,r,o=(((Ge=(Ue=f[0])==null?void 0:Ue.namespaceInfo)==null?void 0:Ge.ownerEmail)||"Unknown")+"",n,u,v,I,V,N,C,b,A,d,y,G,E,R,P=at((Pe=(Oe=f[0])==null?void 0:Oe.config)==null?void 0:Pe.workflowExecutionRetentionTtl.toString())+"",B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe,c,H,Y,se,re,ne,oe,ie=((je=f[0])==null?void 0:je.failoverVersion)+"",he,ve,Z,de,ge,ce,_e,Te,$e;return b=new pe({props:{class:"px-1 py-0",type:f[8]((Ke=f[0])==null?void 0:Ke.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:f}}}),O=new pe({props:{class:"px-1 py-0",type:f[7]((Ye=(qe=f[0])==null?void 0:qe.config)==null?void 0:Ye.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:f}}}),c=new pe({props:{class:"px-1 py-0",type:f[7]((Je=(ze=f[0])==null?void 0:ze.config)==null?void 0:Je.visibilityArchivalState),$$slots:{default:[Vt]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Owner"),a=k(),r=_("td"),n=g(o),u=k(),v=_("tr"),I=_("td"),V=g("Global"),N=k(),C=_("td"),z(b.$$.fragment),A=k(),d=_("tr"),y=_("td"),G=g("Retention Period"),E=k(),R=_("td"),B=g(P),p=k(),w=_("tr"),j=_("td"),te=g("History Archival"),X=k(),x=_("td"),z(O.$$.fragment),ee=k(),q=_("tr"),le=_("td"),ue=g("Visibility Archival"),ae=k(),fe=_("td"),z(c.$$.fragment),H=k(),Y=_("tr"),se=_("td"),re=g("Failover Version"),ne=k(),oe=_("td"),he=g(ie),ve=k(),Z=_("tr"),de=_("td"),ge=g("Clusters"),ce=k(),_e=_("td"),Te=g(f[1]),this.h()},l(h){e=$(h,"TR",{"data-testid":!0});var L=m(e);l=$(L,"TD",{});var De=m(l);t=D(De,"Owner"),De.forEach(s),a=S(L),r=$(L,"TD",{});var Ae=m(r);n=D(Ae,o),Ae.forEach(s),L.forEach(s),u=S(h),v=$(h,"TR",{"data-testid":!0});var me=m(v);I=$(me,"TD",{});var ke=m(I);V=D(ke,"Global"),ke.forEach(s),N=S(me),C=$(me,"TD",{});var Se=m(C);J(b.$$.fragment,Se),Se.forEach(s),me.forEach(s),A=S(h),d=$(h,"TR",{"data-testid":!0});var Ee=m(d);y=$(Ee,"TD",{});var Ie=m(y);G=D(Ie,"Retention Period"),Ie.forEach(s),E=S(Ee),R=$(Ee,"TD",{});var Ce=m(R);B=D(Ce,P),Ce.forEach(s),Ee.forEach(s),p=S(h),w=$(h,"TR",{"data-testid":!0});var be=m(w);j=$(be,"TD",{});var He=m(j);te=D(He,"History Archival"),He.forEach(s),X=S(be),x=$(be,"TD",{});var Ve=m(x);J(O.$$.fragment,Ve),Ve.forEach(s),be.forEach(s),ee=S(h),q=$(h,"TR",{"data-testid":!0});var we=m(q);le=$(we,"TD",{});var Ne=m(le);ue=D(Ne,"Visibility Archival"),Ne.forEach(s),ae=S(we),fe=$(we,"TD",{});var Me=m(fe);J(c.$$.fragment,Me),Me.forEach(s),we.forEach(s),H=S(h),Y=$(h,"TR",{"data-testid":!0});var Le=m(Y);se=$(Le,"TD",{});var Qe=m(se);re=D(Qe,"Failover Version"),Qe.forEach(s),ne=S(Le),oe=$(Le,"TD",{});var Xe=m(oe);he=D(Xe,ie),Xe.forEach(s),Le.forEach(s),ve=S(h),Z=$(h,"TR",{"data-testid":!0});var We=m(Z);de=$(We,"TD",{});var Ze=m(de);ge=D(Ze,"Clusters"),Ze.forEach(s),ce=S(We),_e=$(We,"TD",{});var xe=m(_e);Te=D(xe,f[1]),xe.forEach(s),We.forEach(s),this.h()},h(){W(e,"data-testid","namespace-owner"),W(v,"data-testid","namespace-global"),W(d,"data-testid","namespace-retention"),W(w,"data-testid","namespace-history"),W(q,"data-testid","namespace-visibility"),W(Y,"data-testid","namespace-failover"),W(Z,"data-testid","namespace-clusters")},m(h,L){T(h,e,L),i(e,l),i(l,t),i(e,a),i(e,r),i(r,n),T(h,u,L),T(h,v,L),i(v,I),i(I,V),i(v,N),i(v,C),M(b,C,null),T(h,A,L),T(h,d,L),i(d,y),i(y,G),i(d,E),i(d,R),i(R,B),T(h,p,L),T(h,w,L),i(w,j),i(j,te),i(w,X),i(w,x),M(O,x,null),T(h,ee,L),T(h,q,L),i(q,le),i(le,ue),i(q,ae),i(q,fe),M(c,fe,null),T(h,H,L),T(h,Y,L),i(Y,se),i(se,re),i(Y,ne),i(Y,oe),i(oe,he),T(h,ve,L),T(h,Z,L),i(Z,de),i(de,ge),i(Z,ce),i(Z,_e),i(_e,Te),$e=!0},p(h,L){var ke,Se,Ee,Ie,Ce,be,He,Ve,we,Ne;(!$e||L&1)&&o!==(o=(((Se=(ke=h[0])==null?void 0:ke.namespaceInfo)==null?void 0:Se.ownerEmail)||"Unknown")+"")&&K(n,o);const De={};L&1&&(De.type=h[8]((Ee=h[0])==null?void 0:Ee.isGlobalNamespace,!1)),L&131073&&(De.$$scope={dirty:L,ctx:h}),b.$set(De),(!$e||L&1)&&P!==(P=at((Ce=(Ie=h[0])==null?void 0:Ie.config)==null?void 0:Ce.workflowExecutionRetentionTtl.toString())+"")&&K(B,P);const Ae={};L&1&&(Ae.type=h[7]((He=(be=h[0])==null?void 0:be.config)==null?void 0:He.historyArchivalState)),L&131073&&(Ae.$$scope={dirty:L,ctx:h}),O.$set(Ae);const me={};L&1&&(me.type=h[7]((we=(Ve=h[0])==null?void 0:Ve.config)==null?void 0:we.visibilityArchivalState)),L&131073&&(me.$$scope={dirty:L,ctx:h}),c.$set(me),(!$e||L&1)&&ie!==(ie=((Ne=h[0])==null?void 0:Ne.failoverVersion)+"")&&K(he,ie),(!$e||L&2)&&K(Te,h[1])},i(h){$e||(F(b.$$.fragment,h),F(O.$$.fragment,h),F(c.$$.fragment,h),$e=!0)},o(h){U(b.$$.fragment,h),U(O.$$.fragment,h),U(c.$$.fragment,h),$e=!1},d(h){h&&s(e),h&&s(u),h&&s(v),Q(b),h&&s(A),h&&s(d),h&&s(p),h&&s(w),Q(O),h&&s(ee),h&&s(q),Q(c),h&&s(H),h&&s(Y),h&&s(ve),h&&s(Z)}}}function Lt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Wt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C;return{c(){e=_("tr"),l=_("td"),t=g("Temporal Server Version"),a=k(),r=_("td"),o=g(f[3]),n=k(),u=_("tr"),v=_("td"),I=g("Temporal UI Version"),V=k(),N=_("td"),C=g(f[4]),this.h()},l(b){e=$(b,"TR",{"data-testid":!0});var A=m(e);l=$(A,"TD",{});var d=m(l);t=D(d,"Temporal Server Version"),d.forEach(s),a=S(A),r=$(A,"TD",{});var y=m(r);o=D(y,f[3]),y.forEach(s),A.forEach(s),n=S(b),u=$(b,"TR",{"data-testid":!0});var G=m(u);v=$(G,"TD",{});var E=m(v);I=D(E,"Temporal UI Version"),E.forEach(s),V=S(G),N=$(G,"TD",{});var R=m(N);C=D(R,f[4]),R.forEach(s),G.forEach(s),this.h()},h(){W(e,"data-testid","server-version"),W(u,"data-testid","ui-version")},m(b,A){T(b,e,A),i(e,l),i(l,t),i(e,a),i(e,r),i(r,o),T(b,n,A),T(b,u,A),i(u,v),i(v,I),i(u,V),i(u,N),i(N,C)},p(b,A){A&8&&K(o,b[3]),A&16&&K(C,b[4])},d(b){b&&s(e),b&&s(n),b&&s(u)}}}function yt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/4"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Bt(f){let e=f[9](f[5].disableWriteActions)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ft(f){let e=f[9](f[5].workflowTerminateDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(f){let e=f[9](f[5].workflowCancelDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(f){let e=f[9](f[5].workflowSignalDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ot(f){let e=f[9](f[5].workflowResetDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Pt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G,E,R,P,B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe;return o=new pe({props:{class:"px-1 py-0",type:f[8](f[5].disableWriteActions),$$slots:{default:[Bt]},$$scope:{ctx:f}}}),C=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowTerminateDisabled),$$slots:{default:[Ft]},$$scope:{ctx:f}}}),R=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowCancelDisabled),$$slots:{default:[Ut]},$$scope:{ctx:f}}}),X=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowSignalDisabled),$$slots:{default:[Gt]},$$scope:{ctx:f}}}),ae=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowResetDisabled),$$slots:{default:[Ot]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Client Actions"),a=k(),r=_("td"),z(o.$$.fragment),n=k(),u=_("tr"),v=_("td"),I=g("Terminate Workflow"),V=k(),N=_("td"),z(C.$$.fragment),b=k(),A=_("tr"),d=_("td"),y=g("Cancel Workflow"),G=k(),E=_("td"),z(R.$$.fragment),P=k(),B=_("tr"),p=_("td"),w=g("Signal Workflow"),j=k(),te=_("td"),z(X.$$.fragment),x=k(),O=_("tr"),ee=_("td"),q=g("Reset Workflow"),le=k(),ue=_("td"),z(ae.$$.fragment)},l(c){e=$(c,"TR",{});var H=m(e);l=$(H,"TD",{});var Y=m(l);t=D(Y,"Client Actions"),Y.forEach(s),a=S(H),r=$(H,"TD",{});var se=m(r);J(o.$$.fragment,se),se.forEach(s),H.forEach(s),n=S(c),u=$(c,"TR",{});var re=m(u);v=$(re,"TD",{});var ne=m(v);I=D(ne,"Terminate Workflow"),ne.forEach(s),V=S(re),N=$(re,"TD",{});var oe=m(N);J(C.$$.fragment,oe),oe.forEach(s),re.forEach(s),b=S(c),A=$(c,"TR",{});var ie=m(A);d=$(ie,"TD",{});var he=m(d);y=D(he,"Cancel Workflow"),he.forEach(s),G=S(ie),E=$(ie,"TD",{});var ve=m(E);J(R.$$.fragment,ve),ve.forEach(s),ie.forEach(s),P=S(c),B=$(c,"TR",{});var Z=m(B);p=$(Z,"TD",{});var de=m(p);w=D(de,"Signal Workflow"),de.forEach(s),j=S(Z),te=$(Z,"TD",{});var ge=m(te);J(X.$$.fragment,ge),ge.forEach(s),Z.forEach(s),x=S(c),O=$(c,"TR",{});var ce=m(O);ee=$(ce,"TD",{});var _e=m(ee);q=D(_e,"Reset Workflow"),_e.forEach(s),le=S(ce),ue=$(ce,"TD",{});var Te=m(ue);J(ae.$$.fragment,Te),Te.forEach(s),ce.forEach(s)},m(c,H){T(c,e,H),i(e,l),i(l,t),i(e,a),i(e,r),M(o,r,null),T(c,n,H),T(c,u,H),i(u,v),i(v,I),i(u,V),i(u,N),M(C,N,null),T(c,b,H),T(c,A,H),i(A,d),i(d,y),i(A,G),i(A,E),M(R,E,null),T(c,P,H),T(c,B,H),i(B,p),i(p,w),i(B,j),i(B,te),M(X,te,null),T(c,x,H),T(c,O,H),i(O,ee),i(ee,q),i(O,le),i(O,ue),M(ae,ue,null),fe=!0},p(c,H){const Y={};H&32&&(Y.type=c[8](c[5].disableWriteActions)),H&131104&&(Y.$$scope={dirty:H,ctx:c}),o.$set(Y);const se={};H&32&&(se.type=c[8](c[5].workflowTerminateDisabled)),H&131104&&(se.$$scope={dirty:H,ctx:c}),C.$set(se);const re={};H&32&&(re.type=c[8](c[5].workflowCancelDisabled)),H&131104&&(re.$$scope={dirty:H,ctx:c}),R.$set(re);const ne={};H&32&&(ne.type=c[8](c[5].workflowSignalDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:c}),X.$set(ne);const oe={};H&32&&(oe.type=c[8](c[5].workflowResetDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:c}),ae.$set(oe)},i(c){fe||(F(o.$$.fragment,c),F(C.$$.fragment,c),F(R.$$.fragment,c),F(X.$$.fragment,c),F(ae.$$.fragment,c),fe=!0)},o(c){U(o.$$.fragment,c),U(C.$$.fragment,c),U(R.$$.fragment,c),U(X.$$.fragment,c),U(ae.$$.fragment,c),fe=!1},d(c){c&&s(e),Q(o),c&&s(n),c&&s(u),Q(C),c&&s(b),c&&s(A),Q(R),c&&s(P),c&&s(B),Q(X),c&&s(x),c&&s(O),Q(ae)}}}function jt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Kt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G;return r=new ye({props:{variant:"simple",$$slots:{headers:[Lt],default:[Nt]},$$scope:{ctx:f}}}),V=new ye({props:{variant:"simple",$$slots:{headers:[yt],default:[Wt]},$$scope:{ctx:f}}}),y=new ye({props:{variant:"simple",$$slots:{headers:[jt],default:[Pt]},$$scope:{ctx:f}}}),{c(){e=_("article"),l=_("h3"),t=g("Details"),a=k(),z(r.$$.fragment),o=k(),n=_("article"),u=_("h3"),v=g("Versions"),I=k(),z(V.$$.fragment),N=k(),C=_("article"),b=_("h3"),A=g("Client Actions"),d=k(),z(y.$$.fragment),this.h()},l(E){e=$(E,"ARTICLE",{class:!0});var R=m(e);l=$(R,"H3",{class:!0});var P=m(l);t=D(P,"Details"),P.forEach(s),a=S(R),J(r.$$.fragment,R),R.forEach(s),o=S(E),n=$(E,"ARTICLE",{class:!0});var B=m(n);u=$(B,"H3",{class:!0});var p=m(u);v=D(p,"Versions"),p.forEach(s),I=S(B),J(V.$$.fragment,B),B.forEach(s),N=S(E),C=$(E,"ARTICLE",{class:!0});var w=m(C);b=$(w,"H3",{class:!0});var j=m(b);A=D(j,"Client Actions"),j.forEach(s),d=S(w),J(y.$$.fragment,w),w.forEach(s),this.h()},h(){W(l,"class","text-lg font-medium"),W(e,"class","namespace-info flex w-full flex-col"),W(u,"class","text-lg font-medium"),W(n,"class","namespace-info flex w-full flex-col"),W(b,"class","text-lg font-medium"),W(C,"class","namespace-info flex w-full flex-col")},m(E,R){T(E,e,R),i(e,l),i(l,t),i(e,a),M(r,e,null),T(E,o,R),T(E,n,R),i(n,u),i(u,v),i(n,I),M(V,n,null),T(E,N,R),T(E,C,R),i(C,b),i(b,A),i(C,d),M(y,C,null),G=!0},p(E,R){const P={};R&131075&&(P.$$scope={dirty:R,ctx:E}),r.$set(P);const B={};R&131096&&(B.$$scope={dirty:R,ctx:E}),V.$set(B);const p={};R&131104&&(p.$$scope={dirty:R,ctx:E}),y.$set(p)},i(E){G||(F(r.$$.fragment,E),F(V.$$.fragment,E),F(y.$$.fragment,E),G=!0)},o(E){U(r.$$.fragment,E),U(V.$$.fragment,E),U(y.$$.fragment,E),G=!1},d(E){E&&s(e),Q(r),E&&s(o),E&&s(n),Q(V),E&&s(N),E&&s(C),Q(y)}}}function rt(f){let e,l,t,a,r,o;return r=new ye({props:{class:"w-full",$$slots:{headers:[Jt],default:[Yt]},$$scope:{ctx:f}}}),{c(){e=_("section"),l=_("h3"),t=g("Search Attributes"),a=k(),z(r.$$.fragment),this.h()},l(n){e=$(n,"SECTION",{});var u=m(e);l=$(u,"H3",{class:!0});var v=m(l);t=D(v,"Search Attributes"),v.forEach(s),a=S(u),J(r.$$.fragment,u),u.forEach(s),this.h()},h(){W(l,"class","my-4 text-lg font-medium")},m(n,u){T(n,e,u),i(e,l),i(l,t),i(e,a),M(r,e,null),o=!0},p(n,u){const v={};u&131136&&(v.$$scope={dirty:u,ctx:n}),r.$set(v)},i(n){o||(F(r.$$.fragment,n),o=!0)},o(n){U(r.$$.fragment,n),o=!1},d(n){n&&s(e),Q(r)}}}function qt(f){let e,l=f[13]+"",t,a,r,o=f[14]+"",n,u;return{c(){e=_("td"),t=g(l),a=k(),r=_("td"),n=g(o),u=k()},l(v){e=$(v,"TD",{});var I=m(e);t=D(I,l),I.forEach(s),a=S(v),r=$(v,"TD",{});var V=m(r);n=D(V,o),V.forEach(s),u=S(v)},m(v,I){T(v,e,I),i(e,t),T(v,a,I),T(v,r,I),i(r,n),T(v,u,I)},p(v,I){I&64&&l!==(l=v[13]+"")&&K(t,l),I&64&&o!==(o=v[14]+"")&&K(n,o)},d(v){v&&s(e),v&&s(a),v&&s(r),v&&s(u)}}}function ot(f){let e,l;return e=new Rt({props:{$$slots:{default:[qt]},$$scope:{ctx:f}}}),{c(){z(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,a){M(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(F(e.$$.fragment,t),l=!0)},o(t){U(e.$$.fragment,t),l=!1},d(t){Q(e,t)}}}function Yt(f){let e,l,t=Object.entries(f[6]),a=[];for(let o=0;oU(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;o{d=null}),ut())},i(p){A||(F(e.$$.fragment,p),F(N.$$.fragment,p),F(d),A=!0)},o(p){U(e.$$.fragment,p),U(N.$$.fragment,p),U(d),A=!1},d(p){Q(e,p),p&&s(l),p&&s(t),p&&s(n),p&&s(u),p&&s(V),Q(N,p),p&&s(C),d&&d.d(p),p&&s(b)}}}function Qt(f,e,l){let t,a,r,o,n,u,v,I;Re(f,lt,d=>l(12,r=d)),Re(f,Tt,d=>l(2,o=d)),Re(f,Et,d=>l(3,n=d)),Re(f,bt,d=>l(4,u=d)),Re(f,gt,d=>l(5,v=d)),Re(f,wt,d=>l(6,I=d));let{data:V}=e;var N;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(N||(N={}));const C=d=>d===N.ARCHIVAL_STATE_ENABLED?"green":"default",b=(d,y=!0)=>y?d?"default":"green":d?"green":"default",A=d=>d?"Disabled":"Enabled";return pt(()=>{var d;ht(lt,r=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,r)}),f.$$set=d=>{"data"in d&&l(10,V=d.data)},f.$$.update=()=>{f.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=V,t,(l(1,a),l(10,V)))},[t,a,o,n,u,v,I,C,b,A,V]}class nl extends ft{constructor(e){super(),nt(this,e,Qt,Mt,it,{data:10})}}export{nl as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.2d0ee64b.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.2d0ee64b.js new file mode 100644 index 0000000000..1cc2d14d7f --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.2d0ee64b.js @@ -0,0 +1 @@ +import"../chunks/namespaces-service.1ee08ff7.js";import{l}from"../chunks/_page.2b0c4c74.js";export{l as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.f92b7235.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.f92b7235.js deleted file mode 100644 index 1b9ad630f6..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.f92b7235.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/namespaces-service.7d25bee8.js";import{l}from"../chunks/_page.10185099.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.aadc1c43.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.f2b749ed.js similarity index 88% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.aadc1c43.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.f2b749ed.js index eb7a231482..158b90b4ac 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.aadc1c43.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.f2b749ed.js @@ -1 +1 @@ -import{S as g,b as k,a as b,aq as T,e as h,f as w,ar 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.a36c9cb0.js";import{p as E}from"../chunks/stores.48be4ca9.js";import{P as A}from"../chunks/page-title.b9565d2f.js";import{s as B}from"../chunks/schedules.b90ce875.js";import{L as G}from"../chunks/loading.bcb9b7b8.js";import{a as H}from"../chunks/schedule-frequency.98fac758.js";import{S as J}from"../chunks/schedule-form-view.811c5f7d.js";import{l as V}from"../chunks/route-for.6dec3e74.js";function _(o){o[6]=o[7].schedule}function X(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Y(o){_(o);let t,a;return t=new J({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 Z(o){let t,a;return t=new G({props:{title:"Loading Schedule..."}}),{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 x(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:Z,then:Y,catch:X,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 ee(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:V(n)};return[H(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:L,taskQueue:P,hour:q,minute:O,second:j,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;B({action:{namespace:r,name:F,workflowType:I,workflowId:L,taskQueue:P},spec:{hour:q,minute:O,second:j,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class te extends g{constructor(t){super(),k(this,t,ee,x,b,{})}}function ne(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 te({}),{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 re(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class he extends g{constructor(t){super(),k(this,t,re,ne,b,{})}}export{he as default}; +import{S as g,b as k,a as b,aq as T,e as h,f as w,ar 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.a36c9cb0.js";import{p as E}from"../chunks/stores.a2e3306d.js";import{P as A}from"../chunks/page-title.b9565d2f.js";import{s as B}from"../chunks/schedules.9cce6c1a.js";import{L as G}from"../chunks/loading.bcb9b7b8.js";import{a as H}from"../chunks/schedule-frequency.b0daddd1.js";import{S as J}from"../chunks/schedule-form-view.e833bcc4.js";import{l as V}from"../chunks/route-for.087ea268.js";function _(o){o[6]=o[7].schedule}function X(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Y(o){_(o);let t,a;return t=new J({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 Z(o){let t,a;return t=new G({props:{title:"Loading Schedule..."}}),{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 x(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:Z,then:Y,catch:X,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 ee(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:V(n)};return[H(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:L,taskQueue:P,hour:q,minute:O,second:j,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;B({action:{namespace:r,name:F,workflowType:I,workflowId:L,taskQueue:P},spec:{hour:q,minute:O,second:j,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class te extends g{constructor(t){super(),k(this,t,ee,x,b,{})}}function ne(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 te({}),{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 re(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class he extends g{constructor(t){super(),k(this,t,re,ne,b,{})}}export{he as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.cbac3665.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.21b1363d.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.cbac3665.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.21b1363d.js index 97c4798f9c..c957ed46b3 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.cbac3665.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.21b1363d.js @@ -1,3 +1,3 @@ -import{S as $e,b as ve,a as ge,m as _,w as E,c as R,p as $,q as v,x as I,k as i,d as D,u as b,f as w,L as c,y as J,n as L,G as Ll,R as dl,H as Ol,I as Bl,J as Gl,j as V,g as y,N as pl,O as ml,C as N,D as F,E as M,F as H,K as Te,e as X,z as ze,a1 as Jl,a2 as zl,h as Ke,aq as Qe,ar as Wl,a7 as Al,T as Xe,_ as xe,P as Kl,A as hl,v as Ql,a9 as _l,V as Xl,r as Yl}from"../chunks/index.a36c9cb0.js";import{p as Cl}from"../chunks/stores.48be4ca9.js";import{P as Zl}from"../chunks/page-title.b9565d2f.js";import{I as ql}from"../chunks/icon.33859671.js";import{l as et,g as $l,c as Ul,s as xl}from"../chunks/route-for.6dec3e74.js";import{g as vl}from"../chunks/navigation.724a9b89.js";import{S as es,a as gl,d as ts,u as ls,p as ss}from"../chunks/schedule-frequency.98fac758.js";import{f as me}from"../chunks/format-date.7c274b02.js";import{t as tt}from"../chunks/time-format.dc246788.js";import{l as Je}from"../chunks/schedules.b90ce875.js";import{W as Nl}from"../chunks/workflow-status.47d31de2.js";import{g as wl}from"../chunks/workflow-service.11be6188.js";import{E as rs}from"../chunks/empty-state.9fb63265.js";import{L as ns}from"../chunks/link.855bf830.js";import{M as kl}from"../chunks/modal.50ea7269.js";import{S as as}from"../chunks/split-button.207826fc.js";import{L as Fl}from"../chunks/loading.bcb9b7b8.js";import{c as os}from"../chunks/core-user.f8486d3a.js";import"../chunks/toaster.16c48a98.js";function us(n){let e,l,t,r,a;return{c(){e=_("h2"),l=E("Memo"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"H2",{class:!0});var o=v(e);l=I(o,"Memo"),o.forEach(i),t=D(s),r=$(s,"P",{});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,[o]){o&1&&J(a,s[0])},i:L,o:L,d(s){s&&i(e),s&&i(t),s&&i(r)}}}function is(n,e,l){let{notes:t=""}=e;return n.$$set=r=>{"notes"in r&&l(0,t=r.notes)},[t]}class fs extends $e{constructor(e){super(),ve(this,e,is,us,ge,{notes:0})}}function cs(n){let e,l,t;const r=n[3].default,a=Ll(r,n,n[2],null);return{c(){e=_("div"),a&&a.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);a&&a.l(o),o.forEach(i),this.h()},h(){b(e,"class",l="panel bg-white "+n[1].class+" svelte-11fqqfg"),dl(e,"error",n[0])},m(s,o){w(s,e,o),a&&a.m(e,null),t=!0},p(s,[o]){a&&a.p&&(!t||o&4)&&Ol(a,r,s,s[2],t?Gl(r,s[2],o,null):Bl(s[2]),null),(!t||o&2&&l!==(l="panel bg-white "+s[1].class+" svelte-11fqqfg"))&&b(e,"class",l),(!t||o&3)&&dl(e,"error",s[0])},i(s){t||(V(a,s),t=!0)},o(s){y(a,s),t=!1},d(s){s&&i(e),a&&a.d(s)}}}function ds(n,e,l){let{$$slots:t={},$$scope:r}=e,{error:a=!1}=e;return n.$$set=s=>{l(1,e=pl(pl({},e),ml(s))),"error"in s&&l(0,a=s.error),"$$scope"in s&&l(2,r=s.$$scope)},e=ml(e),[a,e,r,t]}class Ye extends $e{constructor(e){super(),ve(this,e,ds,cs,ge,{error:0})}}function bl(n,e,l){const t=n.slice();return t[3]=e[l],t}function ps(n){let e,l,t,r,a=n[3].startWorkflowResult.workflowId+"",s,o,u,f,h=me(n[3].actualTime,n[2])+"",p;return{c(){e=_("div"),l=_("div"),t=R(),r=_("div"),s=E(a),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=v(e);l=$(d,"DIV",{class:!0}),v(l).forEach(i),t=D(d),r=$(d,"DIV",{class:!0});var g=v(r);s=I(g,a),g.forEach(i),o=D(d),u=$(d,"DIV",{class:!0});var q=v(u);f=$(q,"P",{});var C=v(f);p=I(C,h),C.forEach(i),q.forEach(i),d.forEach(i),this.h()},h(){b(l,"class","w-28"),b(r,"class","w-96"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(m,d){w(m,e,d),c(e,l),c(e,t),c(e,r),c(r,s),c(e,o),c(e,u),c(u,f),c(f,p)},p(m,d){d&1&&a!==(a=m[3].startWorkflowResult.workflowId+"")&&J(s,a),d&5&&h!==(h=me(m[3].actualTime,m[2])+"")&&J(p,h)},i:L,o:L,d(m){m&&i(e)}}}function ms(n){let e,l,t,r,a,s,o,u,f,h=me(n[3].actualTime,n[2])+"",p,m;return t=new Nl({props:{status:n[6].status}}),s=new ns({props:{"sveltekit:prefetch":!0,href:$l({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[hs]},$$scope:{ctx:n}}}),{c(){e=_("div"),l=_("div"),N(t.$$.fragment),r=R(),a=_("div"),N(s.$$.fragment),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(d){e=$(d,"DIV",{class:!0});var g=v(e);l=$(g,"DIV",{class:!0});var q=v(l);F(t.$$.fragment,q),q.forEach(i),r=D(g),a=$(g,"DIV",{class:!0});var C=v(a);F(s.$$.fragment,C),C.forEach(i),o=D(g),u=$(g,"DIV",{class:!0});var U=v(u);f=$(U,"P",{});var O=v(f);p=I(O,h),O.forEach(i),U.forEach(i),g.forEach(i),this.h()},h(){b(l,"class","w-28"),b(a,"class","w-auto break-words mx-2"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(d,g){w(d,e,g),c(e,l),M(t,l,null),c(e,r),c(e,a),M(s,a,null),c(e,o),c(e,u),c(u,f),c(f,p),m=!0},p(d,g){const q={};g&3&&(q.status=d[6].status),t.$set(q);const C={};g&3&&(C.href=$l({workflow:d[3].startWorkflowResult.workflowId,run:d[3].startWorkflowResult.runId,namespace:d[1]})),g&129&&(C.$$scope={dirty:g,ctx:d}),s.$set(C),(!m||g&5)&&h!==(h=me(d[3].actualTime,d[2])+"")&&J(p,h)},i(d){m||(V(t.$$.fragment,d),V(s.$$.fragment,d),m=!0)},o(d){y(t.$$.fragment,d),y(s.$$.fragment,d),m=!1},d(d){d&&i(e),H(t),H(s)}}}function hs(n){let e=n[3].startWorkflowResult.workflowId+"",l;return{c(){l=E(e)},l(t){l=I(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function _s(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function El(n,e){let l,t,r,a,s={ctx:e,current:null,token:null,hasCatch:!0,pending:_s,then:ms,catch:ps,value:6,blocks:[,,,]};return Qe(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),s),{key:n,first:null,c(){l=X(),t=X(),s.block.c(),this.h()},l(o){l=X(),t=X(),s.block.l(o),this.h()},h(){this.first=l},m(o,u){w(o,l,u),w(o,t,u),s.block.m(o,s.anchor=u),s.mount=()=>t.parentNode,s.anchor=t,a=!0},p(o,u){e=o,s.ctx=e,u&3&&r!==(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&Qe(r,s)||Wl(s,e,u)},i(o){a||(V(s.block),a=!0)},o(o){for(let u=0;u<3;u+=1){const f=s.blocks[u];y(f)}a=!1},d(o){o&&i(l),o&&i(t),s.block.d(o),s.token=null,s=null}}}function Il(n){let e,l;return e=new rs({props:{title:"No Recent Runs"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function $s(n){let e,l,t,r=[],a=new Map,s,o,u,f=n[0].slice(0,5);const h=m=>{var d,g;return(g=(d=m[3])==null?void 0:d.startWorkflowResult)==null?void 0:g.workflowId};for(let m=0;m{p=null}),Ke()):p?d&1&&V(p,1):(p=Il(),p.c(),V(p,1),p.m(o.parentNode,o))},i(m){if(!u){for(let d=0;dl(2,t=s));let{recentRuns:r=[]}=e,{namespace:a}=e;return n.$$set=s=>{"recentRuns"in s&&l(0,r=s.recentRuns),"namespace"in s&&l(1,a=s.namespace)},[r,a,t]}class ws extends $e{constructor(e){super(),ve(this,e,gs,vs,ge,{recentRuns:0,namespace:1})}}function Sl(n,e,l){const t=n.slice();return t[2]=e[l],t}function Rl(n){let e,l,t=me(n[2],n[1],"from now")+"",r,a;return{c(){e=_("div"),l=_("p"),r=E(t),a=R(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);l=$(o,"P",{});var u=v(l);r=I(u,t),u.forEach(i),a=D(o),o.forEach(i),this.h()},h(){b(e,"class","row svelte-kbuuws")},m(s,o){w(s,e,o),c(e,l),c(l,r),c(e,a)},p(s,o){o&3&&t!==(t=me(s[2],s[1],"from now")+"")&&J(r,t)},d(s){s&&i(e)}}}function ks(n){let e,l,t,r,a=n[0].slice(0,5),s=[];for(let o=0;ol(1,t=a));let{futureRuns:r=[]}=e;return n.$$set=a=>{"futureRuns"in a&&l(0,r=a.futureRuns)},[r,t]}class Is extends $e{constructor(e){super(),ve(this,e,Es,bs,ge,{futureRuns:0})}}function Dl(n){var Ve,oe,Ee,G,Ie,he,ue;let e,l,t=(((Ve=n[0])==null?void 0:Ve.startTime)??"")+"",r,a,s,o,u=(((oe=n[0])==null?void 0:oe.endTime)??"")+"",f,h,p,m,d=(((Ee=n[0])==null?void 0:Ee.jitter)??"")+"",g,q,C,U,O=(((Ie=(G=n[0])==null?void 0:G.excludeCalendar)==null?void 0:Ie[0])??"")+"",te,j,A,K,ee=(((he=n[1])==null?void 0:he.remainingActions)??"")+"",z,P,Y,le,fe=(((ue=n[2])==null?void 0:ue.overlapPolicy)??"")+"",we;return{c(){e=_("p"),l=E("Schedule Start Time: "),r=E(t),a=R(),s=_("p"),o=E("Schedule End Time: "),f=E(u),h=R(),p=_("p"),m=E("Jitter: "),g=E(d),q=R(),C=_("p"),U=E("Exclusion Calendar: "),te=E(O),j=R(),A=_("p"),K=E("Remaining Actions: "),z=E(ee),P=R(),Y=_("p"),le=E("Overlap Policy: "),we=E(fe)},l(S){e=$(S,"P",{});var W=v(e);l=I(W,"Schedule Start Time: "),r=I(W,t),W.forEach(i),a=D(S),s=$(S,"P",{});var se=v(s);o=I(se,"Schedule End Time: "),f=I(se,u),se.forEach(i),h=D(S),p=$(S,"P",{});var Z=v(p);m=I(Z,"Jitter: "),g=I(Z,d),Z.forEach(i),q=D(S),C=$(S,"P",{});var ce=v(C);U=I(ce,"Exclusion Calendar: "),te=I(ce,O),ce.forEach(i),j=D(S),A=$(S,"P",{});var re=v(A);K=I(re,"Remaining Actions: "),z=I(re,ee),re.forEach(i),P=D(S),Y=$(S,"P",{});var x=v(Y);le=I(x,"Overlap Policy: "),we=I(x,fe),x.forEach(i)},m(S,W){w(S,e,W),c(e,l),c(e,r),w(S,a,W),w(S,s,W),c(s,o),c(s,f),w(S,h,W),w(S,p,W),c(p,m),c(p,g),w(S,q,W),w(S,C,W),c(C,U),c(C,te),w(S,j,W),w(S,A,W),c(A,K),c(A,z),w(S,P,W),w(S,Y,W),c(Y,le),c(Y,we)},p(S,W){var se,Z,ce,re,x,ye,_e;W&1&&t!==(t=(((se=S[0])==null?void 0:se.startTime)??"")+"")&&J(r,t),W&1&&u!==(u=(((Z=S[0])==null?void 0:Z.endTime)??"")+"")&&J(f,u),W&1&&d!==(d=(((ce=S[0])==null?void 0:ce.jitter)??"")+"")&&J(g,d),W&1&&O!==(O=(((x=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:x[0])??"")+"")&&J(te,O),W&2&&ee!==(ee=(((ye=S[1])==null?void 0:ye.remainingActions)??"")+"")&&J(z,ee),W&4&&fe!==(fe=(((_e=S[2])==null?void 0:_e.overlapPolicy)??"")+"")&&J(we,fe)},d(S){S&&i(e),S&&i(a),S&&i(s),S&&i(h),S&&i(p),S&&i(q),S&&i(C),S&&i(j),S&&i(A),S&&i(P),S&&i(Y)}}}function Ss(n){let e,l,t,r,a,s,o,u;t=new ql({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let f=n[3]&&Dl(n);return{c(){e=_("button"),l=E("Advanced Settings "),N(t.$$.fragment),r=R(),f&&f.c(),a=X(),this.h()},l(h){e=$(h,"BUTTON",{class:!0});var p=v(e);l=I(p,"Advanced Settings "),F(t.$$.fragment,p),p.forEach(i),r=D(h),f&&f.l(h),a=X(),this.h()},h(){b(e,"class","settings svelte-5rdr1k")},m(h,p){w(h,e,p),c(e,l),M(t,e,null),w(h,r,p),f&&f.m(h,p),w(h,a,p),s=!0,o||(u=Xe(e,"click",n[4]),o=!0)},p(h,[p]){const m={};p&8&&(m.name=h[3]?"chevron-up":"chevron-down"),t.$set(m),h[3]?f?f.p(h,p):(f=Dl(h),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(h){s||(V(t.$$.fragment,h),s=!0)},o(h){y(t.$$.fragment,h),s=!1},d(h){h&&i(e),H(t),h&&i(r),f&&f.d(h),h&&i(a),o=!1,u()}}}function Rs(n,e,l){let{spec:t}=e,{state:r}=e,{policies:a}=e,s=!1;const o=()=>l(3,s=!s);return n.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,r=u.state),"policies"in u&&l(2,a=u.policies)},[t,r,a,s,o]}class Ds extends $e{constructor(e){super(),ve(this,e,Rs,Ss,ge,{spec:0,state:1,policies:2})}}function Ps(n){let e,l,t,r,a;return{c(){e=_("p"),l=E("Error Message"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"P",{class:!0});var o=v(e);l=I(o,"Error Message"),o.forEach(i),t=D(s),r=$(s,"P",{class:!0});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","error-text svelte-1lke5yx"),b(r,"class","error-text svelte-1lke5yx")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,o){o&1&&J(a,s[0])},d(s){s&&i(e),s&&i(t),s&&i(r)}}}function Ts(n){let e,l;return e=new Ye({props:{error:!0,$$slots:{default:[Ps]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&3&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Vs(n,e,l){let{error:t=""}=e;return n.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class ys extends $e{constructor(e){super(),ve(this,e,Vs,Ts,ge,{error:0})}}function Ws(n){let e,l,t,r,a,s;return a=new es({props:{calendar:n[0],interval:n[1],class:"text-base"}}),{c(){e=_("h2"),l=E("Frequency"),t=R(),r=_("div"),N(a.$$.fragment),this.h()},l(o){e=$(o,"H2",{class:!0});var u=v(e);l=I(u,"Frequency"),u.forEach(i),t=D(o),r=$(o,"DIV",{class:!0});var f=v(r);F(a.$$.fragment,f),f.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl"),b(r,"class","pr-2")},m(o,u){w(o,e,u),c(e,l),w(o,t,u),w(o,r,u),M(a,r,null),s=!0},p(o,u){const f={};u&1&&(f.calendar=o[0]),u&2&&(f.interval=o[1]),a.$set(f)},i(o){s||(V(a.$$.fragment,o),s=!0)},o(o){y(a.$$.fragment,o),s=!1},d(o){o&&i(e),o&&i(t),o&&i(r),H(a)}}}function As(n){let e,l;return e=new Ye({props:{$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&7&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Cs(n,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return n.$$set=a=>{"calendar"in a&&l(0,t=a.calendar),"interval"in a&&l(1,r=a.interval)},[t,r]}class qs extends $e{constructor(e){super(),ve(this,e,Cs,As,ge,{calendar:0,interval:1})}}function Pl(n,e,l){const t=n.slice();return t[23]=e[l],t}function Us(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function Ns(n){let e,l,t,r;const a=[Ms,Fs],s=[];function o(u,f){return u[4]?0:1}return e=o(n),l=s[e]=a[e](n),{c(){l.c(),t=X()},l(u){l.l(u),t=X()},m(u,f){s[e].m(u,f),w(u,t,f),r=!0},p(u,f){let h=e;e=o(u),e===h?s[e].p(u,f):(ze(),y(s[h],1,1,()=>{s[h]=null}),Ke(),l=s[e],l?l.p(u,f):(l=s[e]=a[e](u),l.c()),V(l,1),l.m(t.parentNode,t))},i(u){r||(V(l),r=!0)},o(u){y(l),r=!1},d(u){s[e].d(u),u&&i(t)}}}function Fs(n){var lt,st,rt,nt,at,ot,ut,it,ft,ct,dt,pt,mt,ht,_t,$t,vt,gt,wt,kt,bt,Et,It,St,Rt,Dt,Pt,Tt,Vt,yt,Wt,At,Ct,qt,Ut,Nt;let e,l,t,r,a,s,o,u,f,h,p,m,d,g,q,C,U,O,te,j,A=((at=(nt=(rt=(st=(lt=n[22])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:at.name)+"",K,ee,z,P,Y,le=me((ut=(ot=n[22])==null?void 0:ot.info)==null?void 0:ut.createTime,n[5])+"",fe,we,Ve,oe,Ee,G,Ie,he,ue,S,W,se,Z,ce,re,x,ye,_e,ke,Ze,We,be,Be,de,Ge,pe,Ae;r=new ql({props:{name:"chevron-left",class:"inline"}}),f=new Nl({props:{status:(it=n[22])!=null&&it.schedule.state.paused?"Paused":"Running"}});let Q=((ct=(ft=n[22])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Tl(n);oe=new as({props:{position:"right",label:(mt=(pt=(dt=n[22])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&mt.paused?"Unpause":"Pause",id:"schedule-actions",disabled:n[9],$$slots:{default:[Hs]},$$scope:{ctx:n}}}),oe.$on("click",n[14]);let B=((_t=(ht=n[22])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&yl(n);ue=new qs({props:{calendar:(wt=(gt=(vt=($t=n[22])==null?void 0:$t.schedule)==null?void 0:vt.spec)==null?void 0:gt.structuredCalendar)==null?void 0:wt[0],interval:(It=(Et=(bt=(kt=n[22])==null?void 0:kt.schedule)==null?void 0:bt.spec)==null?void 0:Et.interval)==null?void 0:It[0]}}),Z=new ws({props:{namespace:n[6],recentRuns:(Rt=(St=n[22])==null?void 0:St.info)==null?void 0:Rt.recentActions}}),x=new Is({props:{futureRuns:(Pt=(Dt=n[22])==null?void 0:Dt.info)==null?void 0:Pt.futureActionTimes}}),ke=new Ds({props:{spec:(Vt=(Tt=n[22])==null?void 0:Tt.schedule)==null?void 0:Vt.spec,state:(Wt=(yt=n[22])==null?void 0:yt.schedule)==null?void 0:Wt.state,policies:(Ct=(At=n[22])==null?void 0:At.schedule)==null?void 0:Ct.policies}}),be=new fs({props:{notes:(Nt=(Ut=(qt=n[22])==null?void 0:qt.schedule)==null?void 0:Ut.state)==null?void 0:Nt.notes}});function Ml(){return n[17](n[22])}let Hl={confirmType:"primary",confirmText:n[22].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[Ls],title:[js]},$$scope:{ctx:n}};de=new kl({props:Hl}),n[16](de),de.$on("confirmModal",Ml);let jl={confirmType:"destructive",confirmText:"Delete",$$slots:{content:[Bs],title:[Os]},$$scope:{ctx:n}};return pe=new kl({props:jl}),n[18](pe),pe.$on("confirmModal",n[10]),{c(){e=_("header"),l=_("div"),t=_("a"),N(r.$$.fragment),a=E("Back to Schedules"),s=R(),o=_("div"),u=_("h1"),N(f.$$.fragment),h=R(),p=_("p"),m=E(n[7]),d=R(),g=_("div"),q=_("p"),C=E(n[6]),U=R(),O=_("div"),te=R(),j=_("p"),K=E(A),ee=R(),z=_("div"),P=_("p"),Y=E("Created: "),fe=E(le),we=R(),Q&&Q.c(),Ve=R(),N(oe.$$.fragment),Ee=R(),G=_("div"),B&&B.c(),Ie=R(),he=_("div"),N(ue.$$.fragment),S=R(),W=_("div"),se=_("div"),N(Z.$$.fragment),ce=R(),re=_("div"),N(x.$$.fragment),ye=R(),_e=_("div"),N(ke.$$.fragment),Ze=R(),We=_("div"),N(be.$$.fragment),Be=R(),N(de.$$.fragment),Ge=R(),N(pe.$$.fragment),this.h()},l(k){e=$(k,"HEADER",{class:!0});var T=v(e);l=$(T,"DIV",{class:!0});var ne=v(l);t=$(ne,"A",{href:!0,class:!0,style:!0});var Se=v(t);F(r.$$.fragment,Se),a=I(Se,"Back to Schedules"),Se.forEach(i),s=D(ne),o=$(ne,"DIV",{class:!0});var Ce=v(o);u=$(Ce,"H1",{class:!0});var Re=v(u);F(f.$$.fragment,Re),h=D(Re),p=$(Re,"P",{class:!0,"data-testid":!0});var Ue=v(p);m=I(Ue,n[7]),Ue.forEach(i),Re.forEach(i),Ce.forEach(i),d=D(ne),g=$(ne,"DIV",{class:!0});var ie=v(g);q=$(ie,"P",{});var Ne=v(q);C=I(Ne,n[6]),Ne.forEach(i),U=D(ie),O=$(ie,"DIV",{class:!0}),v(O).forEach(i),te=D(ie),j=$(ie,"P",{});var De=v(j);K=I(De,A),De.forEach(i),ie.forEach(i),ee=D(ne),z=$(ne,"DIV",{class:!0});var Fe=v(z);P=$(Fe,"P",{});var qe=v(P);Y=I(qe,"Created: "),fe=I(qe,le),qe.forEach(i),Fe.forEach(i),we=D(ne),Q&&Q.l(ne),ne.forEach(i),Ve=D(T),F(oe.$$.fragment,T),T.forEach(i),Ee=D(k),G=$(k,"DIV",{class:!0});var ae=v(G);B&&B.l(ae),Ie=D(ae),he=$(ae,"DIV",{class:!0});var Me=v(he);F(ue.$$.fragment,Me),Me.forEach(i),S=D(ae),W=$(ae,"DIV",{class:!0});var Pe=v(W);se=$(Pe,"DIV",{class:!0});var He=v(se);F(Z.$$.fragment,He),He.forEach(i),ce=D(Pe),re=$(Pe,"DIV",{class:!0});var je=v(re);F(x.$$.fragment,je),je.forEach(i),Pe.forEach(i),ye=D(ae),_e=$(ae,"DIV",{class:!0});var Le=v(_e);F(ke.$$.fragment,Le),Le.forEach(i),Ze=D(ae),We=$(ae,"DIV",{class:!0});var Oe=v(We);F(be.$$.fragment,Oe),Oe.forEach(i),ae.forEach(i),Be=D(k),F(de.$$.fragment,k),Ge=D(k),F(pe.$$.fragment,k),this.h()},h(){b(t,"href",Ul({namespace:n[6]})),b(t,"class","absolute top-0 back-to-schedules svelte-1pb4ys0"),Ql(t,"left","-0.5rem"),b(p,"class","font-medium select-all"),b(p,"data-testid","schedule-name"),b(u,"class","text-2xl flex relative items-center gap-4"),b(o,"class","flex justify-between items-center mt-8"),b(O,"class","w-1 h-1 rounded-full bg-gray-900"),b(g,"class","flex items-center gap-2 text-sm"),b(z,"class","flex items-center gap-2 text-sm"),b(l,"class","flex flex-col gap-1 relative"),b(e,"class","flex flex-row justify-between gap-4 mb-8"),b(he,"class","w-full xl:w-1/2"),b(se,"class","w-full xl:w-3/4"),b(re,"class","w-full xl:w-1/4"),b(W,"class","flex flex-col xl:flex-row gap-4"),b(_e,"class","w-full xl:w-1/2"),b(We,"class","w-full xl:w-1/2"),b(G,"class","flex flex-col gap-4 pb-24")},m(k,T){w(k,e,T),c(e,l),c(l,t),M(r,t,null),c(t,a),c(l,s),c(l,o),c(o,u),M(f,u,null),c(u,h),c(u,p),c(p,m),c(l,d),c(l,g),c(g,q),c(q,C),c(g,U),c(g,O),c(g,te),c(g,j),c(j,K),c(l,ee),c(l,z),c(z,P),c(P,Y),c(P,fe),c(l,we),Q&&Q.m(l,null),c(e,Ve),M(oe,e,null),w(k,Ee,T),w(k,G,T),B&&B.m(G,null),c(G,Ie),c(G,he),M(ue,he,null),c(G,S),c(G,W),c(W,se),M(Z,se,null),c(W,ce),c(W,re),M(x,re,null),c(G,ye),c(G,_e),M(ke,_e,null),c(G,Ze),c(G,We),M(be,We,null),w(k,Be,T),M(de,k,T),w(k,Ge,T),M(pe,k,T),Ae=!0},p(k,T){var qe,ae,Me,Pe,He,je,Le,Oe,Ft,Mt,Ht,jt,Lt,Ot,Bt,Gt,Jt,zt,Kt,Qt,Xt,Yt,Zt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,il,fl,cl;n=k;const ne={};T&1&&(ne.status=(qe=n[22])!=null&&qe.schedule.state.paused?"Paused":"Running"),f.$set(ne),(!Ae||T&1)&&A!==(A=((je=(He=(Pe=(Me=(ae=n[22])==null?void 0:ae.schedule)==null?void 0:Me.action)==null?void 0:Pe.startWorkflow)==null?void 0:He.workflowType)==null?void 0:je.name)+"")&&J(K,A),(!Ae||T&33)&&le!==(le=me((Oe=(Le=n[22])==null?void 0:Le.info)==null?void 0:Oe.createTime,n[5])+"")&&J(fe,le),(Mt=(Ft=n[22])==null?void 0:Ft.info)!=null&&Mt.updateTime?Q?Q.p(n,T):(Q=Tl(n),Q.c(),Q.m(l,null)):Q&&(Q.d(1),Q=null);const Se={};T&1&&(Se.label=(Lt=(jt=(Ht=n[22])==null?void 0:Ht.schedule)==null?void 0:jt.state)!=null&&Lt.paused?"Unpause":"Pause"),T&67108864&&(Se.$$scope={dirty:T,ctx:n}),oe.$set(Se),(Bt=(Ot=n[22])==null?void 0:Ot.info)!=null&&Bt.invalidScheduleError?B?(B.p(n,T),T&1&&V(B,1)):(B=yl(n),B.c(),V(B,1),B.m(G,Ie)):B&&(ze(),y(B,1,1,()=>{B=null}),Ke());const Ce={};T&1&&(Ce.calendar=(Kt=(zt=(Jt=(Gt=n[22])==null?void 0:Gt.schedule)==null?void 0:Jt.spec)==null?void 0:zt.structuredCalendar)==null?void 0:Kt[0]),T&1&&(Ce.interval=(Zt=(Yt=(Xt=(Qt=n[22])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:Yt.interval)==null?void 0:Zt[0]),ue.$set(Ce);const Re={};T&1&&(Re.recentRuns=(el=(xt=n[22])==null?void 0:xt.info)==null?void 0:el.recentActions),Z.$set(Re);const Ue={};T&1&&(Ue.futureRuns=(ll=(tl=n[22])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),x.$set(Ue);const ie={};T&1&&(ie.spec=(rl=(sl=n[22])==null?void 0:sl.schedule)==null?void 0:rl.spec),T&1&&(ie.state=(al=(nl=n[22])==null?void 0:nl.schedule)==null?void 0:al.state),T&1&&(ie.policies=(ul=(ol=n[22])==null?void 0:ol.schedule)==null?void 0:ul.policies),ke.$set(ie);const Ne={};T&1&&(Ne.notes=(cl=(fl=(il=n[22])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),be.$set(Ne);const De={};T&1&&(De.confirmText=n[22].schedule.state.paused?"Unpause":"Pause"),T&8&&(De.confirmDisabled=!n[3]),T&67108873&&(De.$$scope={dirty:T,ctx:n}),de.$set(De);const Fe={};T&67108864&&(Fe.$$scope={dirty:T,ctx:n}),pe.$set(Fe)},i(k){Ae||(V(r.$$.fragment,k),V(f.$$.fragment,k),V(oe.$$.fragment,k),V(B),V(ue.$$.fragment,k),V(Z.$$.fragment,k),V(x.$$.fragment,k),V(ke.$$.fragment,k),V(be.$$.fragment,k),V(de.$$.fragment,k),V(pe.$$.fragment,k),Ae=!0)},o(k){y(r.$$.fragment,k),y(f.$$.fragment,k),y(oe.$$.fragment,k),y(B),y(ue.$$.fragment,k),y(Z.$$.fragment,k),y(x.$$.fragment,k),y(ke.$$.fragment,k),y(be.$$.fragment,k),y(de.$$.fragment,k),y(pe.$$.fragment,k),Ae=!1},d(k){k&&i(e),H(r),H(f),Q&&Q.d(),H(oe),k&&i(Ee),k&&i(G),B&&B.d(),H(ue),H(Z),H(x),H(ke),H(be),k&&i(Be),n[16](null),H(de,k),k&&i(Ge),n[18](null),H(pe,k)}}}function Ms(n){let e,l;return e=new Fl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p:L,i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Tl(n){var s,o;let e,l,t,r=me((o=(s=n[22])==null?void 0:s.info)==null?void 0:o.updateTime,n[5])+"",a;return{c(){e=_("div"),l=_("p"),t=E("Last updated: "),a=E(r),this.h()},l(u){e=$(u,"DIV",{class:!0});var f=v(e);l=$(f,"P",{});var h=v(l);t=I(h,"Last updated: "),a=I(h,r),h.forEach(i),f.forEach(i),this.h()},h(){b(e,"class","flex items-center gap-2 text-sm")},m(u,f){w(u,e,f),c(e,l),c(l,t),c(l,a)},p(u,f){var h,p;f&33&&r!==(r=me((p=(h=u[22])==null?void 0:h.info)==null?void 0:p.updateTime,u[5])+"")&&J(a,r)},d(u){u&&i(e)}}}function Vl(n){let e,l=n[23].label+"",t,r,a,s;return{c(){e=_("button"),t=E(l),r=R(),this.h()},l(o){e=$(o,"BUTTON",{class:!0});var u=v(e);t=I(u,l),r=D(u),u.forEach(i),this.h()},h(){var o;b(e,"class","cursor-pointer flex gap-2 py-3 px-4 items-center w-full hover:bg-gray-50 "+((o=n[23])==null?void 0:o.class)+" svelte-1pb4ys0")},m(o,u){w(o,e,u),c(e,t),c(e,r),a||(s=Xe(e,"click",n[23].onClick),a=!0)},p(o,u){n=o},d(o){o&&i(e),a=!1,s()}}}function Hs(n){let e,l=n[12],t=[];for(let r=0;r{"notes"in r&&l(0,t=r.notes)},[t]}class fs extends $e{constructor(e){super(),ve(this,e,is,us,ge,{notes:0})}}function cs(n){let e,l,t;const r=n[3].default,a=Ll(r,n,n[2],null);return{c(){e=_("div"),a&&a.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);a&&a.l(o),o.forEach(i),this.h()},h(){b(e,"class",l="panel bg-white "+n[1].class+" svelte-11fqqfg"),dl(e,"error",n[0])},m(s,o){w(s,e,o),a&&a.m(e,null),t=!0},p(s,[o]){a&&a.p&&(!t||o&4)&&Ol(a,r,s,s[2],t?Gl(r,s[2],o,null):Bl(s[2]),null),(!t||o&2&&l!==(l="panel bg-white "+s[1].class+" svelte-11fqqfg"))&&b(e,"class",l),(!t||o&3)&&dl(e,"error",s[0])},i(s){t||(V(a,s),t=!0)},o(s){y(a,s),t=!1},d(s){s&&i(e),a&&a.d(s)}}}function ds(n,e,l){let{$$slots:t={},$$scope:r}=e,{error:a=!1}=e;return n.$$set=s=>{l(1,e=pl(pl({},e),ml(s))),"error"in s&&l(0,a=s.error),"$$scope"in s&&l(2,r=s.$$scope)},e=ml(e),[a,e,r,t]}class Ye extends $e{constructor(e){super(),ve(this,e,ds,cs,ge,{error:0})}}function bl(n,e,l){const t=n.slice();return t[3]=e[l],t}function ps(n){let e,l,t,r,a=n[3].startWorkflowResult.workflowId+"",s,o,u,f,h=me(n[3].actualTime,n[2])+"",p;return{c(){e=_("div"),l=_("div"),t=R(),r=_("div"),s=E(a),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=v(e);l=$(d,"DIV",{class:!0}),v(l).forEach(i),t=D(d),r=$(d,"DIV",{class:!0});var g=v(r);s=I(g,a),g.forEach(i),o=D(d),u=$(d,"DIV",{class:!0});var q=v(u);f=$(q,"P",{});var C=v(f);p=I(C,h),C.forEach(i),q.forEach(i),d.forEach(i),this.h()},h(){b(l,"class","w-28"),b(r,"class","w-96"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(m,d){w(m,e,d),c(e,l),c(e,t),c(e,r),c(r,s),c(e,o),c(e,u),c(u,f),c(f,p)},p(m,d){d&1&&a!==(a=m[3].startWorkflowResult.workflowId+"")&&J(s,a),d&5&&h!==(h=me(m[3].actualTime,m[2])+"")&&J(p,h)},i:L,o:L,d(m){m&&i(e)}}}function ms(n){let e,l,t,r,a,s,o,u,f,h=me(n[3].actualTime,n[2])+"",p,m;return t=new Nl({props:{status:n[6].status}}),s=new ns({props:{"sveltekit:prefetch":!0,href:$l({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[hs]},$$scope:{ctx:n}}}),{c(){e=_("div"),l=_("div"),N(t.$$.fragment),r=R(),a=_("div"),N(s.$$.fragment),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(d){e=$(d,"DIV",{class:!0});var g=v(e);l=$(g,"DIV",{class:!0});var q=v(l);F(t.$$.fragment,q),q.forEach(i),r=D(g),a=$(g,"DIV",{class:!0});var C=v(a);F(s.$$.fragment,C),C.forEach(i),o=D(g),u=$(g,"DIV",{class:!0});var U=v(u);f=$(U,"P",{});var O=v(f);p=I(O,h),O.forEach(i),U.forEach(i),g.forEach(i),this.h()},h(){b(l,"class","w-28"),b(a,"class","w-auto break-words mx-2"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(d,g){w(d,e,g),c(e,l),M(t,l,null),c(e,r),c(e,a),M(s,a,null),c(e,o),c(e,u),c(u,f),c(f,p),m=!0},p(d,g){const q={};g&3&&(q.status=d[6].status),t.$set(q);const C={};g&3&&(C.href=$l({workflow:d[3].startWorkflowResult.workflowId,run:d[3].startWorkflowResult.runId,namespace:d[1]})),g&129&&(C.$$scope={dirty:g,ctx:d}),s.$set(C),(!m||g&5)&&h!==(h=me(d[3].actualTime,d[2])+"")&&J(p,h)},i(d){m||(V(t.$$.fragment,d),V(s.$$.fragment,d),m=!0)},o(d){y(t.$$.fragment,d),y(s.$$.fragment,d),m=!1},d(d){d&&i(e),H(t),H(s)}}}function hs(n){let e=n[3].startWorkflowResult.workflowId+"",l;return{c(){l=E(e)},l(t){l=I(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function _s(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function El(n,e){let l,t,r,a,s={ctx:e,current:null,token:null,hasCatch:!0,pending:_s,then:ms,catch:ps,value:6,blocks:[,,,]};return Qe(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),s),{key:n,first:null,c(){l=X(),t=X(),s.block.c(),this.h()},l(o){l=X(),t=X(),s.block.l(o),this.h()},h(){this.first=l},m(o,u){w(o,l,u),w(o,t,u),s.block.m(o,s.anchor=u),s.mount=()=>t.parentNode,s.anchor=t,a=!0},p(o,u){e=o,s.ctx=e,u&3&&r!==(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&Qe(r,s)||Wl(s,e,u)},i(o){a||(V(s.block),a=!0)},o(o){for(let u=0;u<3;u+=1){const f=s.blocks[u];y(f)}a=!1},d(o){o&&i(l),o&&i(t),s.block.d(o),s.token=null,s=null}}}function Il(n){let e,l;return e=new rs({props:{title:"No Recent Runs"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function $s(n){let e,l,t,r=[],a=new Map,s,o,u,f=n[0].slice(0,5);const h=m=>{var d,g;return(g=(d=m[3])==null?void 0:d.startWorkflowResult)==null?void 0:g.workflowId};for(let m=0;m{p=null}),Ke()):p?d&1&&V(p,1):(p=Il(),p.c(),V(p,1),p.m(o.parentNode,o))},i(m){if(!u){for(let d=0;dl(2,t=s));let{recentRuns:r=[]}=e,{namespace:a}=e;return n.$$set=s=>{"recentRuns"in s&&l(0,r=s.recentRuns),"namespace"in s&&l(1,a=s.namespace)},[r,a,t]}class ws extends $e{constructor(e){super(),ve(this,e,gs,vs,ge,{recentRuns:0,namespace:1})}}function Sl(n,e,l){const t=n.slice();return t[2]=e[l],t}function Rl(n){let e,l,t=me(n[2],n[1],"from now")+"",r,a;return{c(){e=_("div"),l=_("p"),r=E(t),a=R(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);l=$(o,"P",{});var u=v(l);r=I(u,t),u.forEach(i),a=D(o),o.forEach(i),this.h()},h(){b(e,"class","row svelte-kbuuws")},m(s,o){w(s,e,o),c(e,l),c(l,r),c(e,a)},p(s,o){o&3&&t!==(t=me(s[2],s[1],"from now")+"")&&J(r,t)},d(s){s&&i(e)}}}function ks(n){let e,l,t,r,a=n[0].slice(0,5),s=[];for(let o=0;ol(1,t=a));let{futureRuns:r=[]}=e;return n.$$set=a=>{"futureRuns"in a&&l(0,r=a.futureRuns)},[r,t]}class Is extends $e{constructor(e){super(),ve(this,e,Es,bs,ge,{futureRuns:0})}}function Dl(n){var Ve,oe,Ee,G,Ie,he,ue;let e,l,t=(((Ve=n[0])==null?void 0:Ve.startTime)??"")+"",r,a,s,o,u=(((oe=n[0])==null?void 0:oe.endTime)??"")+"",f,h,p,m,d=(((Ee=n[0])==null?void 0:Ee.jitter)??"")+"",g,q,C,U,O=(((Ie=(G=n[0])==null?void 0:G.excludeCalendar)==null?void 0:Ie[0])??"")+"",te,j,A,K,ee=(((he=n[1])==null?void 0:he.remainingActions)??"")+"",z,P,Y,le,fe=(((ue=n[2])==null?void 0:ue.overlapPolicy)??"")+"",we;return{c(){e=_("p"),l=E("Schedule Start Time: "),r=E(t),a=R(),s=_("p"),o=E("Schedule End Time: "),f=E(u),h=R(),p=_("p"),m=E("Jitter: "),g=E(d),q=R(),C=_("p"),U=E("Exclusion Calendar: "),te=E(O),j=R(),A=_("p"),K=E("Remaining Actions: "),z=E(ee),P=R(),Y=_("p"),le=E("Overlap Policy: "),we=E(fe)},l(S){e=$(S,"P",{});var W=v(e);l=I(W,"Schedule Start Time: "),r=I(W,t),W.forEach(i),a=D(S),s=$(S,"P",{});var se=v(s);o=I(se,"Schedule End Time: "),f=I(se,u),se.forEach(i),h=D(S),p=$(S,"P",{});var Z=v(p);m=I(Z,"Jitter: "),g=I(Z,d),Z.forEach(i),q=D(S),C=$(S,"P",{});var ce=v(C);U=I(ce,"Exclusion Calendar: "),te=I(ce,O),ce.forEach(i),j=D(S),A=$(S,"P",{});var re=v(A);K=I(re,"Remaining Actions: "),z=I(re,ee),re.forEach(i),P=D(S),Y=$(S,"P",{});var x=v(Y);le=I(x,"Overlap Policy: "),we=I(x,fe),x.forEach(i)},m(S,W){w(S,e,W),c(e,l),c(e,r),w(S,a,W),w(S,s,W),c(s,o),c(s,f),w(S,h,W),w(S,p,W),c(p,m),c(p,g),w(S,q,W),w(S,C,W),c(C,U),c(C,te),w(S,j,W),w(S,A,W),c(A,K),c(A,z),w(S,P,W),w(S,Y,W),c(Y,le),c(Y,we)},p(S,W){var se,Z,ce,re,x,ye,_e;W&1&&t!==(t=(((se=S[0])==null?void 0:se.startTime)??"")+"")&&J(r,t),W&1&&u!==(u=(((Z=S[0])==null?void 0:Z.endTime)??"")+"")&&J(f,u),W&1&&d!==(d=(((ce=S[0])==null?void 0:ce.jitter)??"")+"")&&J(g,d),W&1&&O!==(O=(((x=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:x[0])??"")+"")&&J(te,O),W&2&&ee!==(ee=(((ye=S[1])==null?void 0:ye.remainingActions)??"")+"")&&J(z,ee),W&4&&fe!==(fe=(((_e=S[2])==null?void 0:_e.overlapPolicy)??"")+"")&&J(we,fe)},d(S){S&&i(e),S&&i(a),S&&i(s),S&&i(h),S&&i(p),S&&i(q),S&&i(C),S&&i(j),S&&i(A),S&&i(P),S&&i(Y)}}}function Ss(n){let e,l,t,r,a,s,o,u;t=new ql({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let f=n[3]&&Dl(n);return{c(){e=_("button"),l=E("Advanced Settings "),N(t.$$.fragment),r=R(),f&&f.c(),a=X(),this.h()},l(h){e=$(h,"BUTTON",{class:!0});var p=v(e);l=I(p,"Advanced Settings "),F(t.$$.fragment,p),p.forEach(i),r=D(h),f&&f.l(h),a=X(),this.h()},h(){b(e,"class","settings svelte-5rdr1k")},m(h,p){w(h,e,p),c(e,l),M(t,e,null),w(h,r,p),f&&f.m(h,p),w(h,a,p),s=!0,o||(u=Xe(e,"click",n[4]),o=!0)},p(h,[p]){const m={};p&8&&(m.name=h[3]?"chevron-up":"chevron-down"),t.$set(m),h[3]?f?f.p(h,p):(f=Dl(h),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(h){s||(V(t.$$.fragment,h),s=!0)},o(h){y(t.$$.fragment,h),s=!1},d(h){h&&i(e),H(t),h&&i(r),f&&f.d(h),h&&i(a),o=!1,u()}}}function Rs(n,e,l){let{spec:t}=e,{state:r}=e,{policies:a}=e,s=!1;const o=()=>l(3,s=!s);return n.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,r=u.state),"policies"in u&&l(2,a=u.policies)},[t,r,a,s,o]}class Ds extends $e{constructor(e){super(),ve(this,e,Rs,Ss,ge,{spec:0,state:1,policies:2})}}function Ps(n){let e,l,t,r,a;return{c(){e=_("p"),l=E("Error Message"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"P",{class:!0});var o=v(e);l=I(o,"Error Message"),o.forEach(i),t=D(s),r=$(s,"P",{class:!0});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","error-text svelte-1lke5yx"),b(r,"class","error-text svelte-1lke5yx")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,o){o&1&&J(a,s[0])},d(s){s&&i(e),s&&i(t),s&&i(r)}}}function Ts(n){let e,l;return e=new Ye({props:{error:!0,$$slots:{default:[Ps]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&3&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Vs(n,e,l){let{error:t=""}=e;return n.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class ys extends $e{constructor(e){super(),ve(this,e,Vs,Ts,ge,{error:0})}}function Ws(n){let e,l,t,r,a,s;return a=new es({props:{calendar:n[0],interval:n[1],class:"text-base"}}),{c(){e=_("h2"),l=E("Frequency"),t=R(),r=_("div"),N(a.$$.fragment),this.h()},l(o){e=$(o,"H2",{class:!0});var u=v(e);l=I(u,"Frequency"),u.forEach(i),t=D(o),r=$(o,"DIV",{class:!0});var f=v(r);F(a.$$.fragment,f),f.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl"),b(r,"class","pr-2")},m(o,u){w(o,e,u),c(e,l),w(o,t,u),w(o,r,u),M(a,r,null),s=!0},p(o,u){const f={};u&1&&(f.calendar=o[0]),u&2&&(f.interval=o[1]),a.$set(f)},i(o){s||(V(a.$$.fragment,o),s=!0)},o(o){y(a.$$.fragment,o),s=!1},d(o){o&&i(e),o&&i(t),o&&i(r),H(a)}}}function As(n){let e,l;return e=new Ye({props:{$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&7&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Cs(n,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return n.$$set=a=>{"calendar"in a&&l(0,t=a.calendar),"interval"in a&&l(1,r=a.interval)},[t,r]}class qs extends $e{constructor(e){super(),ve(this,e,Cs,As,ge,{calendar:0,interval:1})}}function Pl(n,e,l){const t=n.slice();return t[23]=e[l],t}function Us(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function Ns(n){let e,l,t,r;const a=[Ms,Fs],s=[];function o(u,f){return u[4]?0:1}return e=o(n),l=s[e]=a[e](n),{c(){l.c(),t=X()},l(u){l.l(u),t=X()},m(u,f){s[e].m(u,f),w(u,t,f),r=!0},p(u,f){let h=e;e=o(u),e===h?s[e].p(u,f):(ze(),y(s[h],1,1,()=>{s[h]=null}),Ke(),l=s[e],l?l.p(u,f):(l=s[e]=a[e](u),l.c()),V(l,1),l.m(t.parentNode,t))},i(u){r||(V(l),r=!0)},o(u){y(l),r=!1},d(u){s[e].d(u),u&&i(t)}}}function Fs(n){var lt,st,rt,nt,at,ot,ut,it,ft,ct,dt,pt,mt,ht,_t,$t,vt,gt,wt,kt,bt,Et,It,St,Rt,Dt,Pt,Tt,Vt,yt,Wt,At,Ct,qt,Ut,Nt;let e,l,t,r,a,s,o,u,f,h,p,m,d,g,q,C,U,O,te,j,A=((at=(nt=(rt=(st=(lt=n[22])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:at.name)+"",K,ee,z,P,Y,le=me((ut=(ot=n[22])==null?void 0:ot.info)==null?void 0:ut.createTime,n[5])+"",fe,we,Ve,oe,Ee,G,Ie,he,ue,S,W,se,Z,ce,re,x,ye,_e,ke,Ze,We,be,Be,de,Ge,pe,Ae;r=new ql({props:{name:"chevron-left",class:"inline"}}),f=new Nl({props:{status:(it=n[22])!=null&&it.schedule.state.paused?"Paused":"Running"}});let Q=((ct=(ft=n[22])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Tl(n);oe=new as({props:{position:"right",label:(mt=(pt=(dt=n[22])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&mt.paused?"Unpause":"Pause",id:"schedule-actions",disabled:n[9],$$slots:{default:[Hs]},$$scope:{ctx:n}}}),oe.$on("click",n[14]);let B=((_t=(ht=n[22])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&yl(n);ue=new qs({props:{calendar:(wt=(gt=(vt=($t=n[22])==null?void 0:$t.schedule)==null?void 0:vt.spec)==null?void 0:gt.structuredCalendar)==null?void 0:wt[0],interval:(It=(Et=(bt=(kt=n[22])==null?void 0:kt.schedule)==null?void 0:bt.spec)==null?void 0:Et.interval)==null?void 0:It[0]}}),Z=new ws({props:{namespace:n[6],recentRuns:(Rt=(St=n[22])==null?void 0:St.info)==null?void 0:Rt.recentActions}}),x=new Is({props:{futureRuns:(Pt=(Dt=n[22])==null?void 0:Dt.info)==null?void 0:Pt.futureActionTimes}}),ke=new Ds({props:{spec:(Vt=(Tt=n[22])==null?void 0:Tt.schedule)==null?void 0:Vt.spec,state:(Wt=(yt=n[22])==null?void 0:yt.schedule)==null?void 0:Wt.state,policies:(Ct=(At=n[22])==null?void 0:At.schedule)==null?void 0:Ct.policies}}),be=new fs({props:{notes:(Nt=(Ut=(qt=n[22])==null?void 0:qt.schedule)==null?void 0:Ut.state)==null?void 0:Nt.notes}});function Ml(){return n[17](n[22])}let Hl={confirmType:"primary",confirmText:n[22].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[Ls],title:[js]},$$scope:{ctx:n}};de=new kl({props:Hl}),n[16](de),de.$on("confirmModal",Ml);let jl={confirmType:"destructive",confirmText:"Delete",$$slots:{content:[Bs],title:[Os]},$$scope:{ctx:n}};return pe=new kl({props:jl}),n[18](pe),pe.$on("confirmModal",n[10]),{c(){e=_("header"),l=_("div"),t=_("a"),N(r.$$.fragment),a=E("Back to Schedules"),s=R(),o=_("div"),u=_("h1"),N(f.$$.fragment),h=R(),p=_("p"),m=E(n[7]),d=R(),g=_("div"),q=_("p"),C=E(n[6]),U=R(),O=_("div"),te=R(),j=_("p"),K=E(A),ee=R(),z=_("div"),P=_("p"),Y=E("Created: "),fe=E(le),we=R(),Q&&Q.c(),Ve=R(),N(oe.$$.fragment),Ee=R(),G=_("div"),B&&B.c(),Ie=R(),he=_("div"),N(ue.$$.fragment),S=R(),W=_("div"),se=_("div"),N(Z.$$.fragment),ce=R(),re=_("div"),N(x.$$.fragment),ye=R(),_e=_("div"),N(ke.$$.fragment),Ze=R(),We=_("div"),N(be.$$.fragment),Be=R(),N(de.$$.fragment),Ge=R(),N(pe.$$.fragment),this.h()},l(k){e=$(k,"HEADER",{class:!0});var T=v(e);l=$(T,"DIV",{class:!0});var ne=v(l);t=$(ne,"A",{href:!0,class:!0,style:!0});var Se=v(t);F(r.$$.fragment,Se),a=I(Se,"Back to Schedules"),Se.forEach(i),s=D(ne),o=$(ne,"DIV",{class:!0});var Ce=v(o);u=$(Ce,"H1",{class:!0});var Re=v(u);F(f.$$.fragment,Re),h=D(Re),p=$(Re,"P",{class:!0,"data-testid":!0});var Ue=v(p);m=I(Ue,n[7]),Ue.forEach(i),Re.forEach(i),Ce.forEach(i),d=D(ne),g=$(ne,"DIV",{class:!0});var ie=v(g);q=$(ie,"P",{});var Ne=v(q);C=I(Ne,n[6]),Ne.forEach(i),U=D(ie),O=$(ie,"DIV",{class:!0}),v(O).forEach(i),te=D(ie),j=$(ie,"P",{});var De=v(j);K=I(De,A),De.forEach(i),ie.forEach(i),ee=D(ne),z=$(ne,"DIV",{class:!0});var Fe=v(z);P=$(Fe,"P",{});var qe=v(P);Y=I(qe,"Created: "),fe=I(qe,le),qe.forEach(i),Fe.forEach(i),we=D(ne),Q&&Q.l(ne),ne.forEach(i),Ve=D(T),F(oe.$$.fragment,T),T.forEach(i),Ee=D(k),G=$(k,"DIV",{class:!0});var ae=v(G);B&&B.l(ae),Ie=D(ae),he=$(ae,"DIV",{class:!0});var Me=v(he);F(ue.$$.fragment,Me),Me.forEach(i),S=D(ae),W=$(ae,"DIV",{class:!0});var Pe=v(W);se=$(Pe,"DIV",{class:!0});var He=v(se);F(Z.$$.fragment,He),He.forEach(i),ce=D(Pe),re=$(Pe,"DIV",{class:!0});var je=v(re);F(x.$$.fragment,je),je.forEach(i),Pe.forEach(i),ye=D(ae),_e=$(ae,"DIV",{class:!0});var Le=v(_e);F(ke.$$.fragment,Le),Le.forEach(i),Ze=D(ae),We=$(ae,"DIV",{class:!0});var Oe=v(We);F(be.$$.fragment,Oe),Oe.forEach(i),ae.forEach(i),Be=D(k),F(de.$$.fragment,k),Ge=D(k),F(pe.$$.fragment,k),this.h()},h(){b(t,"href",Ul({namespace:n[6]})),b(t,"class","absolute top-0 back-to-schedules svelte-1pb4ys0"),Ql(t,"left","-0.5rem"),b(p,"class","font-medium select-all"),b(p,"data-testid","schedule-name"),b(u,"class","text-2xl flex relative items-center gap-4"),b(o,"class","flex justify-between items-center mt-8"),b(O,"class","w-1 h-1 rounded-full bg-gray-900"),b(g,"class","flex items-center gap-2 text-sm"),b(z,"class","flex items-center gap-2 text-sm"),b(l,"class","flex flex-col gap-1 relative"),b(e,"class","flex flex-row justify-between gap-4 mb-8"),b(he,"class","w-full xl:w-1/2"),b(se,"class","w-full xl:w-3/4"),b(re,"class","w-full xl:w-1/4"),b(W,"class","flex flex-col xl:flex-row gap-4"),b(_e,"class","w-full xl:w-1/2"),b(We,"class","w-full xl:w-1/2"),b(G,"class","flex flex-col gap-4 pb-24")},m(k,T){w(k,e,T),c(e,l),c(l,t),M(r,t,null),c(t,a),c(l,s),c(l,o),c(o,u),M(f,u,null),c(u,h),c(u,p),c(p,m),c(l,d),c(l,g),c(g,q),c(q,C),c(g,U),c(g,O),c(g,te),c(g,j),c(j,K),c(l,ee),c(l,z),c(z,P),c(P,Y),c(P,fe),c(l,we),Q&&Q.m(l,null),c(e,Ve),M(oe,e,null),w(k,Ee,T),w(k,G,T),B&&B.m(G,null),c(G,Ie),c(G,he),M(ue,he,null),c(G,S),c(G,W),c(W,se),M(Z,se,null),c(W,ce),c(W,re),M(x,re,null),c(G,ye),c(G,_e),M(ke,_e,null),c(G,Ze),c(G,We),M(be,We,null),w(k,Be,T),M(de,k,T),w(k,Ge,T),M(pe,k,T),Ae=!0},p(k,T){var qe,ae,Me,Pe,He,je,Le,Oe,Ft,Mt,Ht,jt,Lt,Ot,Bt,Gt,Jt,zt,Kt,Qt,Xt,Yt,Zt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,il,fl,cl;n=k;const ne={};T&1&&(ne.status=(qe=n[22])!=null&&qe.schedule.state.paused?"Paused":"Running"),f.$set(ne),(!Ae||T&1)&&A!==(A=((je=(He=(Pe=(Me=(ae=n[22])==null?void 0:ae.schedule)==null?void 0:Me.action)==null?void 0:Pe.startWorkflow)==null?void 0:He.workflowType)==null?void 0:je.name)+"")&&J(K,A),(!Ae||T&33)&&le!==(le=me((Oe=(Le=n[22])==null?void 0:Le.info)==null?void 0:Oe.createTime,n[5])+"")&&J(fe,le),(Mt=(Ft=n[22])==null?void 0:Ft.info)!=null&&Mt.updateTime?Q?Q.p(n,T):(Q=Tl(n),Q.c(),Q.m(l,null)):Q&&(Q.d(1),Q=null);const Se={};T&1&&(Se.label=(Lt=(jt=(Ht=n[22])==null?void 0:Ht.schedule)==null?void 0:jt.state)!=null&&Lt.paused?"Unpause":"Pause"),T&67108864&&(Se.$$scope={dirty:T,ctx:n}),oe.$set(Se),(Bt=(Ot=n[22])==null?void 0:Ot.info)!=null&&Bt.invalidScheduleError?B?(B.p(n,T),T&1&&V(B,1)):(B=yl(n),B.c(),V(B,1),B.m(G,Ie)):B&&(ze(),y(B,1,1,()=>{B=null}),Ke());const Ce={};T&1&&(Ce.calendar=(Kt=(zt=(Jt=(Gt=n[22])==null?void 0:Gt.schedule)==null?void 0:Jt.spec)==null?void 0:zt.structuredCalendar)==null?void 0:Kt[0]),T&1&&(Ce.interval=(Zt=(Yt=(Xt=(Qt=n[22])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:Yt.interval)==null?void 0:Zt[0]),ue.$set(Ce);const Re={};T&1&&(Re.recentRuns=(el=(xt=n[22])==null?void 0:xt.info)==null?void 0:el.recentActions),Z.$set(Re);const Ue={};T&1&&(Ue.futureRuns=(ll=(tl=n[22])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),x.$set(Ue);const ie={};T&1&&(ie.spec=(rl=(sl=n[22])==null?void 0:sl.schedule)==null?void 0:rl.spec),T&1&&(ie.state=(al=(nl=n[22])==null?void 0:nl.schedule)==null?void 0:al.state),T&1&&(ie.policies=(ul=(ol=n[22])==null?void 0:ol.schedule)==null?void 0:ul.policies),ke.$set(ie);const Ne={};T&1&&(Ne.notes=(cl=(fl=(il=n[22])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),be.$set(Ne);const De={};T&1&&(De.confirmText=n[22].schedule.state.paused?"Unpause":"Pause"),T&8&&(De.confirmDisabled=!n[3]),T&67108873&&(De.$$scope={dirty:T,ctx:n}),de.$set(De);const Fe={};T&67108864&&(Fe.$$scope={dirty:T,ctx:n}),pe.$set(Fe)},i(k){Ae||(V(r.$$.fragment,k),V(f.$$.fragment,k),V(oe.$$.fragment,k),V(B),V(ue.$$.fragment,k),V(Z.$$.fragment,k),V(x.$$.fragment,k),V(ke.$$.fragment,k),V(be.$$.fragment,k),V(de.$$.fragment,k),V(pe.$$.fragment,k),Ae=!0)},o(k){y(r.$$.fragment,k),y(f.$$.fragment,k),y(oe.$$.fragment,k),y(B),y(ue.$$.fragment,k),y(Z.$$.fragment,k),y(x.$$.fragment,k),y(ke.$$.fragment,k),y(be.$$.fragment,k),y(de.$$.fragment,k),y(pe.$$.fragment,k),Ae=!1},d(k){k&&i(e),H(r),H(f),Q&&Q.d(),H(oe),k&&i(Ee),k&&i(G),B&&B.d(),H(ue),H(Z),H(x),H(ke),H(be),k&&i(Be),n[16](null),H(de,k),k&&i(Ge),n[18](null),H(pe,k)}}}function Ms(n){let e,l;return e=new Fl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p:L,i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Tl(n){var s,o;let e,l,t,r=me((o=(s=n[22])==null?void 0:s.info)==null?void 0:o.updateTime,n[5])+"",a;return{c(){e=_("div"),l=_("p"),t=E("Last updated: "),a=E(r),this.h()},l(u){e=$(u,"DIV",{class:!0});var f=v(e);l=$(f,"P",{});var h=v(l);t=I(h,"Last updated: "),a=I(h,r),h.forEach(i),f.forEach(i),this.h()},h(){b(e,"class","flex items-center gap-2 text-sm")},m(u,f){w(u,e,f),c(e,l),c(l,t),c(l,a)},p(u,f){var h,p;f&33&&r!==(r=me((p=(h=u[22])==null?void 0:h.info)==null?void 0:p.updateTime,u[5])+"")&&J(a,r)},d(u){u&&i(e)}}}function Vl(n){let e,l=n[23].label+"",t,r,a,s;return{c(){e=_("button"),t=E(l),r=R(),this.h()},l(o){e=$(o,"BUTTON",{class:!0});var u=v(e);t=I(u,l),r=D(u),u.forEach(i),this.h()},h(){var o;b(e,"class","cursor-pointer flex gap-2 py-3 px-4 items-center w-full hover:bg-gray-50 "+((o=n[23])==null?void 0:o.class)+" svelte-1pb4ys0")},m(o,u){w(o,e,u),c(e,t),c(e,r),a||(s=Xe(e,"click",n[23].onClick),a=!0)},p(o,u){n=o},d(o){o&&i(e),a=!1,s()}}}function Hs(n){let e,l=n[12],t=[];for(let r=0;re.parentNode,r.anchor=e,t=!0},p(a,[s]){n=a,r.ctx=n,s&1&&l!==(l=n[0])&&Qe(l,r)||Wl(r,n,s)},i(a){t||(V(r.block),t=!0)},o(a){for(let s=0;s<3;s+=1){const o=r.blocks[s];y(o)}t=!1},d(a){a&&i(e),r.block.d(a),r.token=null,r=null}}}function zs(n,e,l){let t,r,a,s;Te(n,Je,P=>l(4,t=P)),Te(n,Cl,P=>l(20,a=P)),Te(n,tt,P=>l(5,s=P));let o=a.params.namespace,u=a.params.schedule;const f={namespace:o,scheduleId:et(u)};let h=gl(f),p,m,d="",g=os();Te(n,g,P=>l(19,r=P));let q=r.namespaceWriteDisabled(o);const C=async()=>{try{xe(Je,t=!0,t),await ts({namespace:o,scheduleId:u}),m.close(),setTimeout(()=>{xe(Je,t=!1,t),vl(Ul({namespace:o}))},2e3)}catch(P){m.setError(`Cannot delete schedule. ${P==null?void 0:P.message}`),xe(Je,t=!1,t)}},U=async P=>{var Y,le;!((le=(Y=P==null?void 0:P.schedule)===null||Y===void 0?void 0:Y.state)===null||le===void 0)&&le.paused?await ls({namespace:o,scheduleId:u,reason:d}):await ss({namespace:o,scheduleId:u,reason:d}),l(0,h=gl(f,fetch)),p.close(),l(3,d="")};let O=[{label:"Edit",onClick:()=>vl(xl({namespace:o,scheduleId:u})),class:"edit"},{label:"Delete Schedule",onClick:()=>m.open(),class:"text-red-500 terminate"}];function te(P){Kl.call(this,n,P)}const j=()=>p.open();function A(){d=this.value,l(3,d)}function K(P){hl[P?"unshift":"push"](()=>{p=P,l(1,p)})}const ee=P=>U(P);function z(P){hl[P?"unshift":"push"](()=>{m=P,l(2,m)})}return[h,p,m,d,t,s,o,u,g,q,C,U,O,te,j,A,K,ee,z]}class Ks extends $e{constructor(e){super(),ve(this,e,zs,Js,ge,{})}}function Qs(n){let e,l,t,r;return e=new Zl({props:{title:`Schedule | ${n[1]}`,url:n[0].url.href}}),t=new Ks({}),{c(){N(e.$$.fragment),l=R(),N(t.$$.fragment)},l(a){F(e.$$.fragment,a),l=D(a),F(t.$$.fragment,a)},m(a,s){M(e,a,s),w(a,l,s),M(t,a,s),r=!0},p(a,[s]){const o={};s&1&&(o.url=a[0].url.href),e.$set(o)},i(a){r||(V(e.$$.fragment,a),V(t.$$.fragment,a),r=!0)},o(a){y(e.$$.fragment,a),y(t.$$.fragment,a),r=!1},d(a){H(e,a),a&&i(l),H(t,a)}}}function Xs(n,e,l){let t;Te(n,Cl,a=>l(0,t=a));const r=t.params.schedule;return[t,r]}class _r extends $e{constructor(e){super(),ve(this,e,Xs,Qs,ge,{})}}export{_r as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.0943d09a.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.dbb2673c.js similarity index 88% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.0943d09a.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.dbb2673c.js index cc4550f482..9ed9f41bad 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.0943d09a.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.dbb2673c.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.a36c9cb0.js";import{p as h}from"../chunks/stores.0bc9ce95.js";import{a as Q}from"../chunks/schedules.8e390e1d.js";import{S as T}from"../chunks/schedule-form-view.b6e72c91.js";import{P as W}from"../chunks/page-title.b9565d2f.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;Q({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 W({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.a36c9cb0.js";import{p as h}from"../chunks/stores.a2e3306d.js";import{a as Q}from"../chunks/schedules.9cce6c1a.js";import{S as T}from"../chunks/schedule-form-view.e833bcc4.js";import{P as W}from"../chunks/page-title.b9565d2f.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;Q({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 W({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.6b885cf3.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.06ae428e.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.6b885cf3.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.06ae428e.js index 66d1a958a1..289ff9ad19 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.6b885cf3.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.06ae428e.js @@ -1 +1 @@ -import{S as ne,b as ae,a as oe,C as k,D as T,E,j as g,g as b,F as S,G as Ve,H as je,I as ze,J as Ge,m as C,w as B,c as W,p as P,q as N,x as U,k as i,d as F,u as L,f as d,L as A,n as G,K as O,y as Y,z as se,h as re,a7 as ie,N as De,O as Re,A as Je,Y as Ke,Z as Oe,aq as Ce,e as Z,ar as ye,_ as ue}from"../chunks/index.a36c9cb0.js";import{p as me}from"../chunks/stores.48be4ca9.js";import{E as Ye}from"../chunks/empty-state.9fb63265.js";import{P as xe}from"../chunks/pagination.4cd37fec.js";import{B as Ze}from"../chunks/button.dbc76a4c.js";import{B as et}from"../chunks/badge.7f30446f.js";import{L as tt}from"../chunks/loading.bcb9b7b8.js";import{I as lt}from"../chunks/input.a193633b.js";import{g as st}from"../chunks/navigation.724a9b89.js";import{p as rt,g as Pe,q as nt}from"../chunks/route-for.6dec3e74.js";import{S as at,f as ot}from"../chunks/schedule-frequency.98fac758.js";import{T as ft,a as ut}from"../chunks/table-header-row.eb620974.js";import{t as le}from"../chunks/time-format.dc246788.js";import{f as fe}from"../chunks/format-date.7c274b02.js";import{W as ct}from"../chunks/workflow-status.47d31de2.js";import{L as it}from"../chunks/link.855bf830.js";import{T as Qe}from"../chunks/table-row.9df8daa0.js";import{c as Ne}from"../chunks/format-camel-case.960a78f9.js";import{I as mt}from"../chunks/icon.33859671.js";import{M as $t,a as _t,b as pt}from"../chunks/menu.c922b8b1.js";import{c as dt}from"../chunks/core-user.f8486d3a.js";import{M as ce}from"../chunks/menu-item.4122979b.js";import{P as ht}from"../chunks/page-title.b9565d2f.js";function gt(n){let e;const l=n[0].default,t=Ve(l,n,n[1],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&2)&&je(t,l,s,s[1],e?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function bt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;return{c(){e=C("th"),l=B("Status"),t=W(),s=C("th"),r=B("Schedule Name"),u=W(),a=C("th"),f=B("Workflow Type"),o=W(),c=C("th"),p=B("Recent Runs"),I=W(),D=C("th"),H=B("Upcoming Runs"),this.h()},l($){e=P($,"TH",{class:!0});var _=N(e);l=U(_,"Status"),_.forEach(i),t=F($),s=P($,"TH",{class:!0});var h=N(s);r=U(h,"Schedule Name"),h.forEach(i),u=F($),a=P($,"TH",{class:!0});var R=N(a);f=U(R,"Workflow Type"),R.forEach(i),o=F($),c=P($,"TH",{class:!0});var M=N(c);p=U(M,"Recent Runs"),M.forEach(i),I=F($),D=P($,"TH",{class:!0});var z=N(D);H=U(z,"Upcoming Runs"),z.forEach(i),this.h()},h(){L(e,"class","w-28"),L(s,"class","md:w-80 xl:w-auto"),L(a,"class","w-60 max-md:hidden xl:w-80"),L(c,"class","w-56 max-xl:hidden"),L(D,"class","w-56 max-xl:hidden")},m($,_){d($,e,_),A(e,l),d($,t,_),d($,s,_),A(s,r),d($,u,_),d($,a,_),A(a,f),d($,o,_),d($,c,_),A(c,p),d($,I,_),d($,D,_),A(D,H)},p:G,d($){$&&i(e),$&&i(t),$&&i(s),$&&i(u),$&&i(a),$&&i(o),$&&i(c),$&&i(I),$&&i(D)}}}function wt(n){let e,l;return e=new ut({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function vt(n){let e,l;return e=new ft({props:{class:"table-fixed",$$slots:{headers:[wt],default:[gt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function kt(n,e,l){let{$$slots:t={},$$scope:s}=e;return n.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[t,s]}class Tt extends ne{constructor(e){super(),ae(this,e,kt,vt,oe,{})}}function qe(n,e,l){const t=n.slice();return t[12]=e[l],t}function Le(n,e,l){const t=n.slice();return t[12]=e[l],t}function Et(n){var t;let e=fe((t=n[12])==null?void 0:t.actualTime,n[1])+"",l;return{c(){l=B(e)},l(s){l=U(s,e)},m(s,r){d(s,l,r)},p(s,r){var u;r&3&&e!==(e=fe((u=s[12])==null?void 0:u.actualTime,s[1])+"")&&Y(l,e)},d(s){s&&i(l)}}}function We(n){var r,u,a,f;let e,l,t,s;return l=new it({props:{href:Pe({namespace:n[2],workflow:(u=(r=n[12])==null?void 0:r.startWorkflowResult)==null?void 0:u.workflowId,run:(f=(a=n[12])==null?void 0:a.startWorkflowResult)==null?void 0:f.runId}),$$slots:{default:[Et]},$$scope:{ctx:n}}}),{c(){e=C("p"),k(l.$$.fragment),t=W()},l(o){e=P(o,"P",{});var c=N(e);T(l.$$.fragment,c),t=F(c),c.forEach(i)},m(o,c){d(o,e,c),E(l,e,null),A(e,t),s=!0},p(o,c){var I,D,H,$;const p={};c&1&&(p.href=Pe({namespace:o[2],workflow:(D=(I=o[12])==null?void 0:I.startWorkflowResult)==null?void 0:D.workflowId,run:($=(H=o[12])==null?void 0:H.startWorkflowResult)==null?void 0:$.runId})),c&131075&&(p.$$scope={dirty:c,ctx:o}),l.$set(p)},i(o){s||(g(l.$$.fragment,o),s=!0)},o(o){b(l.$$.fragment,o),s=!1},d(o){o&&i(e),S(l)}}}function Fe(n){let e,l=fe(n[12],n[1],"from now")+"",t;return{c(){e=C("div"),t=B(l)},l(s){e=P(s,"DIV",{});var r=N(e);t=U(r,l),r.forEach(i)},m(s,r){d(s,e,r),A(e,t)},p(s,r){r&3&&l!==(l=fe(s[12],s[1],"from now")+"")&&Y(t,l)},d(s){s&&i(e)}}}function St(n){var $e,_e,pe,de,he,ge,be,we,ve,ke;let e,l,t,s,r,u=n[0].scheduleId+"",a,f,o,c,p,I,D=(((pe=(_e=($e=n[0])==null?void 0:$e.info)==null?void 0:_e.workflowType)==null?void 0:pe.name)??"")+"",H,$,_,h,R,M;l=new ct({props:{status:(he=(de=n[0])==null?void 0:de.info)!=null&&he.paused?"Paused":"Running"}}),c=new at({props:{calendar:n[3],interval:n[4],class:"text-sm"}});let z=n[5]((be=(ge=n[0])==null?void 0:ge.info)==null?void 0:be.recentActions),q=[];for(let m=0;mb(q[m],1,1,()=>{q[m]=null});let K=((ke=(ve=(we=n[0])==null?void 0:we.info)==null?void 0:ve.futureActionTimes)==null?void 0:ke.slice(0,5))??[],V=[];for(let m=0;ml(10,t=$)),O(n,le,$=>l(1,s=$));var r,u,a;let{namespace:f}=t.params,{schedule:o}=e;const c=(r=o==null?void 0:o.info)===null||r===void 0?void 0:r.spec,p=(u=c==null?void 0:c.structuredCalendar)===null||u===void 0?void 0:u[0],I=(a=c==null?void 0:c.interval)===null||a===void 0?void 0:a[0],D=$=>{var _;return(_=$==null?void 0:$.sort((h,R)=>new Date(R.actualTime).getTime()-new Date(h.actualTime).getTime()).slice(0,5))!==null&&_!==void 0?_:[]},H=()=>rt({namespace:f,scheduleId:o==null?void 0:o.scheduleId});return n.$$set=$=>{"schedule"in $&&l(0,o=$.schedule)},[o,s,f,p,I,D,H]}class Rt extends ne{constructor(e){super(),ae(this,e,Dt,It,oe,{schedule:0})}}function He(n){let e,l,t;return l=new mt({props:{name:n[2]}}),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(s){e=P(s,"DIV",{class:!0});var r=N(e);T(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(e,"class","ml-2 flex items-center")},m(s,r){d(s,e,r),E(l,e,null),t=!0},p(s,r){const u={};r&4&&(u.name=s[2]),l.$set(u)},i(s){t||(g(l.$$.fragment,s),t=!0)},o(s){b(l.$$.fragment,s),t=!1},d(s){s&&i(e),S(l)}}}function Ct(n){let e,l,t,s,r=n[2]&&He(n);return{c(){r&&r.c(),e=W(),l=C("span"),t=B(n[0]),this.h()},l(u){r&&r.l(u),e=F(u),l=P(u,"SPAN",{class:!0});var a=N(l);t=U(a,n[0]),a.forEach(i),this.h()},h(){L(l,"class","ml-2 mr-8")},m(u,a){r&&r.m(u,a),d(u,e,a),d(u,l,a),A(l,t),s=!0},p(u,a){u[2]?r?(r.p(u,a),a&4&&g(r,1)):(r=He(u),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(se(),b(r,1,1,()=>{r=null}),re()),(!s||a&1)&&Y(t,u[0])},i(u){s||(g(r),s=!0)},o(u){b(r),s=!1},d(u){r&&r.d(u),u&&i(e),u&&i(l)}}}function Pt(n){let e;const l=n[6].default,t=Ve(l,n,n[8],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&256)&&je(t,l,s,s[8],e?Ge(l,s[8],r,null):ze(s[8]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function Nt(n){let e,l,t,s,r;function u(f){n[7](f)}let a={class:"flex flex-row items-center rounded-lg border border-gray-900 bg-white p-2",controls:n[1],disabled:n[3],hasIndicator:!n[3],$$slots:{default:[Ct]},$$scope:{ctx:n}};return n[4]!==void 0&&(a.show=n[4]),e=new _t({props:a}),Je.push(()=>Ke(e,"show",u)),s=new pt({props:{class:"min-w-max",id:n[1],show:n[4],$$slots:{default:[Pt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment),t=W(),k(s.$$.fragment)},l(f){T(e.$$.fragment,f),t=F(f),T(s.$$.fragment,f)},m(f,o){E(e,f,o),d(f,t,o),E(s,f,o),r=!0},p(f,o){const c={};o&2&&(c.controls=f[1]),o&8&&(c.disabled=f[3]),o&8&&(c.hasIndicator=!f[3]),o&261&&(c.$$scope={dirty:o,ctx:f}),!l&&o&16&&(l=!0,c.show=f[4],Oe(()=>l=!1)),e.$set(c);const p={};o&2&&(p.id=f[1]),o&16&&(p.show=f[4]),o&256&&(p.$$scope={dirty:o,ctx:f}),s.$set(p)},i(f){r||(g(e.$$.fragment,f),g(s.$$.fragment,f),r=!0)},o(f){b(e.$$.fragment,f),b(s.$$.fragment,f),r=!1},d(f){S(e,f),f&&i(t),S(s,f)}}}function qt(n){let e,l;return e=new $t({props:{class:n[5].class,$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&32&&(r.class=t[5].class),s&287&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Lt(n,e,l){let{$$slots:t={},$$scope:s}=e,{label:r}=e,{id:u}=e,{icon:a=null}=e,{readonly:f=!1}=e,o=!1;function c(p){o=p,l(4,o)}return n.$$set=p=>{l(5,e=De(De({},e),Re(p))),"label"in p&&l(0,r=p.label),"id"in p&&l(1,u=p.id),"icon"in p&&l(2,a=p.icon),"readonly"in p&&l(3,f=p.readonly),"$$scope"in p&&l(8,s=p.$$scope)},e=Re(e),[r,u,a,f,o,e,t,c,s]}class Wt extends ne{constructor(e){super(),ae(this,e,Lt,qt,oe,{label:0,id:1,icon:2,readonly:3})}}function Ae(n){n[14]=n[16].schedules,n[15]=n[16].error}function Be(n,e,l){const t=n.slice();return t[18]=e[l],t}function Ft(n){let e;return{c(){e=B("Beta")},l(l){e=U(l,"Beta")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ht(n){let e;return{c(){e=B("Create Schedule")},l(l){e=U(l,"Create Schedule")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function At(n){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function Bt(n){Ae(n);let e,l,t,s;const r=[Mt,Ut],u=[];function a(f,o){var c;return(c=f[14])!=null&&c.length?0:1}return e=a(n),l=u[e]=r[e](n),{c(){l.c(),t=Z()},l(f){l.l(f),t=Z()},m(f,o){u[e].m(f,o),d(f,t,o),s=!0},p(f,o){Ae(f);let c=e;e=a(f),e===c?u[e].p(f,o):(se(),b(u[c],1,1,()=>{u[c]=null}),re(),l=u[e],l?l.p(f,o):(l=u[e]=r[e](f),l.c()),g(l,1),l.m(t.parentNode,t))},i(f){s||(g(l),s=!0)},o(f){b(l),s=!1},d(f){u[e].d(f),f&&i(t)}}}function Ut(n){let e,l,t,s,r;return l=new Ye({props:{title:"No Schedules Found",content:xt,error:n[15]}}),s=new Ze({props:{as:"anchor",target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Vt]},$$scope:{ctx:n}}}),{c(){e=C("div"),k(l.$$.fragment),t=W(),k(s.$$.fragment),this.h()},l(u){e=P(u,"DIV",{class:!0});var a=N(e);T(l.$$.fragment,a),t=F(a),T(s.$$.fragment,a),a.forEach(i),this.h()},h(){L(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(u,a){d(u,e,a),E(l,e,null),A(e,t),E(s,e,null),r=!0},p(u,a){const f={};a&16&&(f.error=u[15]),l.$set(f);const o={};a&2097152&&(o.$$scope={dirty:a,ctx:u}),s.$set(o)},i(u){r||(g(l.$$.fragment,u),g(s.$$.fragment,u),r=!0)},o(u){b(l.$$.fragment,u),b(s.$$.fragment,u),r=!1},d(u){u&&i(e),S(l),S(s)}}}function Mt(n){let e,l;return e=new xe({props:{items:n[2](n[14]),"aria-label":"schedules",$$slots:{"action-top-right":[Qt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],"action-top-left":[Jt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],default:[Gt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&20&&(r.items=t[2](t[14])),s&2228257&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Vt(n){let e;return{c(){e=B("Get Started With Docs")},l(l){e=U(l,"Get Started With Docs")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ue(n){let e,l;return e=new Qe({props:{$$slots:{default:[jt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2097152&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function jt(n){let e,l,t,s,r,u,a,f;return s=new Ye({props:{title:"No Schedules Found",content:"Try a different search"}}),{c(){e=C("td"),l=W(),t=C("td"),k(s.$$.fragment),r=W(),u=C("td"),a=W(),this.h()},l(o){e=P(o,"TD",{class:!0}),N(e).forEach(i),l=F(o),t=P(o,"TD",{colspan:!0});var c=N(t);T(s.$$.fragment,c),c.forEach(i),r=F(o),u=P(o,"TD",{class:!0}),N(u).forEach(i),a=F(o),this.h()},h(){L(e,"class","hidden xl:table-cell"),L(t,"colspan","3"),L(u,"class","hidden xl:table-cell")},m(o,c){d(o,e,c),d(o,l,c),d(o,t,c),E(s,t,null),d(o,r,c),d(o,u,c),d(o,a,c),f=!0},p:G,i(o){f||(g(s.$$.fragment,o),f=!0)},o(o){b(s.$$.fragment,o),f=!1},d(o){o&&i(e),o&&i(l),o&&i(t),S(s),o&&i(r),o&&i(u),o&&i(a)}}}function Me(n){let e,l;return e=new Rt({props:{schedule:n[18]}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&131072&&(r.schedule=t[18]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function zt(n){let e,l,t=n[17],s=[];for(let a=0;ab(s[a],1,1,()=>{s[a]=null});let u=null;return t.length||(u=Ue(n)),{c(){for(let a=0;a{u=null}),re()):(u=Ue(a),u.c(),g(u,1),u.m(e.parentNode,e))}},i(a){if(!l){for(let f=0;fKe(l,"value",r)),l.$on("submit",G),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(a){e=P(a,"DIV",{class:!0});var f=N(e);T(l.$$.fragment,f),f.forEach(i),this.h()},h(){L(e,"class","w-full xl:w-1/2")},m(a,f){d(a,e,f),E(l,e,null),s=!0},p(a,f){const o={};!t&&f&1&&(t=!0,o.value=a[0],Oe(()=>t=!1)),l.$set(o)},i(a){s||(g(l.$$.fragment,a),s=!0)},o(a){b(l.$$.fragment,a),s=!1},d(a){a&&i(e),S(l)}}}function Kt(n){let e;return{c(){e=B("Relative")},l(l){e=U(l,"Relative")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ot(n){let e;return{c(){e=B("UTC")},l(l){e=U(l,"UTC")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Yt(n){let e;return{c(){e=B("Local")},l(l){e=U(l,"Local")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Zt(n){let e,l,t,s,r,u;return e=new ce({props:{$$slots:{default:[Kt]},$$scope:{ctx:n}}}),e.$on("click",n[10]),t=new ce({props:{$$slots:{default:[Ot]},$$scope:{ctx:n}}}),t.$on("click",n[11]),r=new ce({props:{$$slots:{default:[Yt]},$$scope:{ctx:n}}}),r.$on("click",n[12]),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment),s=W(),k(r.$$.fragment)},l(a){T(e.$$.fragment,a),l=F(a),T(t.$$.fragment,a),s=F(a),T(r.$$.fragment,a)},m(a,f){E(e,a,f),d(a,l,f),E(t,a,f),d(a,s,f),E(r,a,f),u=!0},p(a,f){const o={};f&2097152&&(o.$$scope={dirty:f,ctx:a}),e.$set(o);const c={};f&2097152&&(c.$$scope={dirty:f,ctx:a}),t.$set(c);const p={};f&2097152&&(p.$$scope={dirty:f,ctx:a}),r.$set(p)},i(a){u||(g(e.$$.fragment,a),g(t.$$.fragment,a),g(r.$$.fragment,a),u=!0)},o(a){b(e.$$.fragment,a),b(t.$$.fragment,a),b(r.$$.fragment,a),u=!1},d(a){S(e,a),a&&i(l),S(t,a),a&&i(s),S(r,a)}}}function Qt(n){let e,l;return e=new Wt({props:{id:"timezone",label:Ne(n[5]),icon:"clock",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&32&&(r.label=Ne(t[5])),s&2097184&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Xt(n){let e,l;return e=new tt({}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p:G,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function yt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;r=new et({props:{type:"beta",$$slots:{default:[Ft]},$$scope:{ctx:n}}}),c=new Ze({props:{class:"h-10",testId:"create-schedule",disabled:n[3],$$slots:{default:[Ht]},$$scope:{ctx:n}}}),c.$on("click",n[9]);let $={ctx:n,current:null,token:null,hasCatch:!1,pending:Xt,then:Bt,catch:At,value:16,blocks:[,,,]};return Ce(D=n[4],$),{c(){e=C("header"),l=C("div"),t=C("h1"),s=B("Schedules"),k(r.$$.fragment),u=W(),a=C("p"),f=B(n[1]),o=W(),k(c.$$.fragment),p=W(),I=Z(),$.block.c(),this.h()},l(_){e=P(_,"HEADER",{class:!0});var h=N(e);l=P(h,"DIV",{});var R=N(l);t=P(R,"H1",{class:!0});var M=N(t);s=U(M,"Schedules"),T(r.$$.fragment,M),M.forEach(i),u=F(R),a=P(R,"P",{class:!0,"data-testid":!0});var z=N(a);f=U(z,n[1]),z.forEach(i),R.forEach(i),o=F(h),T(c.$$.fragment,h),h.forEach(i),p=F(_),I=Z(),$.block.l(_),this.h()},h(){L(t,"class","flex items-center gap-2 text-2xl"),L(a,"class","text-sm text-gray-600"),L(a,"data-testid","namespace-name"),L(e,"class","flex flex-col justify-between gap-2 md:flex-row")},m(_,h){d(_,e,h),A(e,l),A(l,t),A(t,s),E(r,t,null),A(l,u),A(l,a),A(a,f),A(e,o),E(c,e,null),d(_,p,h),d(_,I,h),$.block.m(_,$.anchor=h),$.mount=()=>I.parentNode,$.anchor=I,H=!0},p(_,[h]){n=_;const R={};h&2097152&&(R.$$scope={dirty:h,ctx:n}),r.$set(R),(!H||h&2)&&Y(f,n[1]);const M={};h&8&&(M.disabled=n[3]),h&2097152&&(M.$$scope={dirty:h,ctx:n}),c.$set(M),$.ctx=n,h&16&&D!==(D=n[4])&&Ce(D,$)||ye($,n,h)},i(_){H||(g(r.$$.fragment,_),g(c.$$.fragment,_),g($.block),H=!0)},o(_){b(r.$$.fragment,_),b(c.$$.fragment,_);for(let h=0;h<3;h+=1){const R=$.blocks[h];b(R)}H=!1},d(_){_&&i(e),S(r),S(c),_&&i(p),_&&i(I),$.block.d(_),$.token=null,$=null}}}const xt="Create scheduled actions using our Public API or TCTL (CLI).";function el(n,e,l){let t,s,r,u,a,f,o;O(n,me,h=>l(8,f=h)),O(n,le,h=>l(5,o=h));let c=dt();O(n,c,h=>l(7,a=h));let p="";const I=()=>st(nt({namespace:t})),D=()=>ue(le,o="relative",o),H=()=>ue(le,o="UTC",o),$=()=>ue(le,o="local",o);function _(h){p=h,l(0,p)}return n.$$.update=()=>{n.$$.dirty&256&&l(1,t=f.params.namespace),n.$$.dirty&2&&l(4,s=ot(t)),n.$$.dirty&130&&l(3,r=a.namespaceWriteDisabled(t)),n.$$.dirty&1&&l(2,u=h=>p?h.filter(R=>R.scheduleId.toLowerCase().includes(p.toLowerCase())):h)},[p,t,u,r,s,o,c,a,f,I,D,H,$,_]}class tl extends ne{constructor(e){super(),ae(this,e,el,yt,oe,{})}}function ll(n){let e,l,t,s;return e=new ht({props:{title:`Schedules | ${n[0].params.namespace}`,url:n[0].url.href}}),t=new tl({}),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment)},l(r){T(e.$$.fragment,r),l=F(r),T(t.$$.fragment,r)},m(r,u){E(e,r,u),d(r,l,u),E(t,r,u),s=!0},p(r,[u]){const a={};u&1&&(a.title=`Schedules | ${r[0].params.namespace}`),u&1&&(a.url=r[0].url.href),e.$set(a)},i(r){s||(g(e.$$.fragment,r),g(t.$$.fragment,r),s=!0)},o(r){b(e.$$.fragment,r),b(t.$$.fragment,r),s=!1},d(r){S(e,r),r&&i(l),S(t,r)}}}function sl(n,e,l){let t;return O(n,me,s=>l(0,t=s)),[t]}class Dl extends ne{constructor(e){super(),ae(this,e,sl,ll,oe,{})}}export{Dl as default}; +import{S as ne,b as ae,a as oe,C as k,D as T,E,j as g,g as b,F as S,G as Ve,H as je,I as ze,J as Ge,m as C,w as B,c as W,p as P,q as N,x as U,k as i,d as F,u as L,f as d,L as A,n as G,K as O,y as Y,z as se,h as re,a7 as ie,N as De,O as Re,A as Je,Y as Ke,Z as Oe,aq as Ce,e as Z,ar as ye,_ as ue}from"../chunks/index.a36c9cb0.js";import{p as me}from"../chunks/stores.a2e3306d.js";import{E as Ye}from"../chunks/empty-state.9fb63265.js";import{P as xe}from"../chunks/pagination.c403d909.js";import{B as Ze}from"../chunks/button.dbc76a4c.js";import{B as et}from"../chunks/badge.7f30446f.js";import{L as tt}from"../chunks/loading.bcb9b7b8.js";import{I as lt}from"../chunks/input.a193633b.js";import{g as st}from"../chunks/navigation.58fc5f1f.js";import{p as rt,g as Pe,q as nt}from"../chunks/route-for.087ea268.js";import{S as at,f as ot}from"../chunks/schedule-frequency.b0daddd1.js";import{T as ft,a as ut}from"../chunks/table-header-row.eb620974.js";import{t as le}from"../chunks/time-format.dc246788.js";import{f as fe}from"../chunks/format-date.7c274b02.js";import{W as ct}from"../chunks/workflow-status.47d31de2.js";import{L as it}from"../chunks/link.855bf830.js";import{T as Qe}from"../chunks/table-row.9df8daa0.js";import{c as Ne}from"../chunks/format-camel-case.960a78f9.js";import{I as mt}from"../chunks/icon.33859671.js";import{M as $t,a as _t,b as pt}from"../chunks/menu.c922b8b1.js";import{c as dt}from"../chunks/core-user.f8486d3a.js";import{M as ce}from"../chunks/menu-item.4122979b.js";import{P as ht}from"../chunks/page-title.b9565d2f.js";function gt(n){let e;const l=n[0].default,t=Ve(l,n,n[1],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&2)&&je(t,l,s,s[1],e?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function bt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;return{c(){e=C("th"),l=B("Status"),t=W(),s=C("th"),r=B("Schedule Name"),u=W(),a=C("th"),f=B("Workflow Type"),o=W(),c=C("th"),p=B("Recent Runs"),I=W(),D=C("th"),H=B("Upcoming Runs"),this.h()},l($){e=P($,"TH",{class:!0});var _=N(e);l=U(_,"Status"),_.forEach(i),t=F($),s=P($,"TH",{class:!0});var h=N(s);r=U(h,"Schedule Name"),h.forEach(i),u=F($),a=P($,"TH",{class:!0});var R=N(a);f=U(R,"Workflow Type"),R.forEach(i),o=F($),c=P($,"TH",{class:!0});var M=N(c);p=U(M,"Recent Runs"),M.forEach(i),I=F($),D=P($,"TH",{class:!0});var z=N(D);H=U(z,"Upcoming Runs"),z.forEach(i),this.h()},h(){L(e,"class","w-28"),L(s,"class","md:w-80 xl:w-auto"),L(a,"class","w-60 max-md:hidden xl:w-80"),L(c,"class","w-56 max-xl:hidden"),L(D,"class","w-56 max-xl:hidden")},m($,_){d($,e,_),A(e,l),d($,t,_),d($,s,_),A(s,r),d($,u,_),d($,a,_),A(a,f),d($,o,_),d($,c,_),A(c,p),d($,I,_),d($,D,_),A(D,H)},p:G,d($){$&&i(e),$&&i(t),$&&i(s),$&&i(u),$&&i(a),$&&i(o),$&&i(c),$&&i(I),$&&i(D)}}}function wt(n){let e,l;return e=new ut({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function vt(n){let e,l;return e=new ft({props:{class:"table-fixed",$$slots:{headers:[wt],default:[gt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function kt(n,e,l){let{$$slots:t={},$$scope:s}=e;return n.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[t,s]}class Tt extends ne{constructor(e){super(),ae(this,e,kt,vt,oe,{})}}function qe(n,e,l){const t=n.slice();return t[12]=e[l],t}function Le(n,e,l){const t=n.slice();return t[12]=e[l],t}function Et(n){var t;let e=fe((t=n[12])==null?void 0:t.actualTime,n[1])+"",l;return{c(){l=B(e)},l(s){l=U(s,e)},m(s,r){d(s,l,r)},p(s,r){var u;r&3&&e!==(e=fe((u=s[12])==null?void 0:u.actualTime,s[1])+"")&&Y(l,e)},d(s){s&&i(l)}}}function We(n){var r,u,a,f;let e,l,t,s;return l=new it({props:{href:Pe({namespace:n[2],workflow:(u=(r=n[12])==null?void 0:r.startWorkflowResult)==null?void 0:u.workflowId,run:(f=(a=n[12])==null?void 0:a.startWorkflowResult)==null?void 0:f.runId}),$$slots:{default:[Et]},$$scope:{ctx:n}}}),{c(){e=C("p"),k(l.$$.fragment),t=W()},l(o){e=P(o,"P",{});var c=N(e);T(l.$$.fragment,c),t=F(c),c.forEach(i)},m(o,c){d(o,e,c),E(l,e,null),A(e,t),s=!0},p(o,c){var I,D,H,$;const p={};c&1&&(p.href=Pe({namespace:o[2],workflow:(D=(I=o[12])==null?void 0:I.startWorkflowResult)==null?void 0:D.workflowId,run:($=(H=o[12])==null?void 0:H.startWorkflowResult)==null?void 0:$.runId})),c&131075&&(p.$$scope={dirty:c,ctx:o}),l.$set(p)},i(o){s||(g(l.$$.fragment,o),s=!0)},o(o){b(l.$$.fragment,o),s=!1},d(o){o&&i(e),S(l)}}}function Fe(n){let e,l=fe(n[12],n[1],"from now")+"",t;return{c(){e=C("div"),t=B(l)},l(s){e=P(s,"DIV",{});var r=N(e);t=U(r,l),r.forEach(i)},m(s,r){d(s,e,r),A(e,t)},p(s,r){r&3&&l!==(l=fe(s[12],s[1],"from now")+"")&&Y(t,l)},d(s){s&&i(e)}}}function St(n){var $e,_e,pe,de,he,ge,be,we,ve,ke;let e,l,t,s,r,u=n[0].scheduleId+"",a,f,o,c,p,I,D=(((pe=(_e=($e=n[0])==null?void 0:$e.info)==null?void 0:_e.workflowType)==null?void 0:pe.name)??"")+"",H,$,_,h,R,M;l=new ct({props:{status:(he=(de=n[0])==null?void 0:de.info)!=null&&he.paused?"Paused":"Running"}}),c=new at({props:{calendar:n[3],interval:n[4],class:"text-sm"}});let z=n[5]((be=(ge=n[0])==null?void 0:ge.info)==null?void 0:be.recentActions),q=[];for(let m=0;mb(q[m],1,1,()=>{q[m]=null});let K=((ke=(ve=(we=n[0])==null?void 0:we.info)==null?void 0:ve.futureActionTimes)==null?void 0:ke.slice(0,5))??[],V=[];for(let m=0;ml(10,t=$)),O(n,le,$=>l(1,s=$));var r,u,a;let{namespace:f}=t.params,{schedule:o}=e;const c=(r=o==null?void 0:o.info)===null||r===void 0?void 0:r.spec,p=(u=c==null?void 0:c.structuredCalendar)===null||u===void 0?void 0:u[0],I=(a=c==null?void 0:c.interval)===null||a===void 0?void 0:a[0],D=$=>{var _;return(_=$==null?void 0:$.sort((h,R)=>new Date(R.actualTime).getTime()-new Date(h.actualTime).getTime()).slice(0,5))!==null&&_!==void 0?_:[]},H=()=>rt({namespace:f,scheduleId:o==null?void 0:o.scheduleId});return n.$$set=$=>{"schedule"in $&&l(0,o=$.schedule)},[o,s,f,p,I,D,H]}class Rt extends ne{constructor(e){super(),ae(this,e,Dt,It,oe,{schedule:0})}}function He(n){let e,l,t;return l=new mt({props:{name:n[2]}}),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(s){e=P(s,"DIV",{class:!0});var r=N(e);T(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(e,"class","ml-2 flex items-center")},m(s,r){d(s,e,r),E(l,e,null),t=!0},p(s,r){const u={};r&4&&(u.name=s[2]),l.$set(u)},i(s){t||(g(l.$$.fragment,s),t=!0)},o(s){b(l.$$.fragment,s),t=!1},d(s){s&&i(e),S(l)}}}function Ct(n){let e,l,t,s,r=n[2]&&He(n);return{c(){r&&r.c(),e=W(),l=C("span"),t=B(n[0]),this.h()},l(u){r&&r.l(u),e=F(u),l=P(u,"SPAN",{class:!0});var a=N(l);t=U(a,n[0]),a.forEach(i),this.h()},h(){L(l,"class","ml-2 mr-8")},m(u,a){r&&r.m(u,a),d(u,e,a),d(u,l,a),A(l,t),s=!0},p(u,a){u[2]?r?(r.p(u,a),a&4&&g(r,1)):(r=He(u),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(se(),b(r,1,1,()=>{r=null}),re()),(!s||a&1)&&Y(t,u[0])},i(u){s||(g(r),s=!0)},o(u){b(r),s=!1},d(u){r&&r.d(u),u&&i(e),u&&i(l)}}}function Pt(n){let e;const l=n[6].default,t=Ve(l,n,n[8],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&256)&&je(t,l,s,s[8],e?Ge(l,s[8],r,null):ze(s[8]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function Nt(n){let e,l,t,s,r;function u(f){n[7](f)}let a={class:"flex flex-row items-center rounded-lg border border-gray-900 bg-white p-2",controls:n[1],disabled:n[3],hasIndicator:!n[3],$$slots:{default:[Ct]},$$scope:{ctx:n}};return n[4]!==void 0&&(a.show=n[4]),e=new _t({props:a}),Je.push(()=>Ke(e,"show",u)),s=new pt({props:{class:"min-w-max",id:n[1],show:n[4],$$slots:{default:[Pt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment),t=W(),k(s.$$.fragment)},l(f){T(e.$$.fragment,f),t=F(f),T(s.$$.fragment,f)},m(f,o){E(e,f,o),d(f,t,o),E(s,f,o),r=!0},p(f,o){const c={};o&2&&(c.controls=f[1]),o&8&&(c.disabled=f[3]),o&8&&(c.hasIndicator=!f[3]),o&261&&(c.$$scope={dirty:o,ctx:f}),!l&&o&16&&(l=!0,c.show=f[4],Oe(()=>l=!1)),e.$set(c);const p={};o&2&&(p.id=f[1]),o&16&&(p.show=f[4]),o&256&&(p.$$scope={dirty:o,ctx:f}),s.$set(p)},i(f){r||(g(e.$$.fragment,f),g(s.$$.fragment,f),r=!0)},o(f){b(e.$$.fragment,f),b(s.$$.fragment,f),r=!1},d(f){S(e,f),f&&i(t),S(s,f)}}}function qt(n){let e,l;return e=new $t({props:{class:n[5].class,$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&32&&(r.class=t[5].class),s&287&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Lt(n,e,l){let{$$slots:t={},$$scope:s}=e,{label:r}=e,{id:u}=e,{icon:a=null}=e,{readonly:f=!1}=e,o=!1;function c(p){o=p,l(4,o)}return n.$$set=p=>{l(5,e=De(De({},e),Re(p))),"label"in p&&l(0,r=p.label),"id"in p&&l(1,u=p.id),"icon"in p&&l(2,a=p.icon),"readonly"in p&&l(3,f=p.readonly),"$$scope"in p&&l(8,s=p.$$scope)},e=Re(e),[r,u,a,f,o,e,t,c,s]}class Wt extends ne{constructor(e){super(),ae(this,e,Lt,qt,oe,{label:0,id:1,icon:2,readonly:3})}}function Ae(n){n[14]=n[16].schedules,n[15]=n[16].error}function Be(n,e,l){const t=n.slice();return t[18]=e[l],t}function Ft(n){let e;return{c(){e=B("Beta")},l(l){e=U(l,"Beta")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ht(n){let e;return{c(){e=B("Create Schedule")},l(l){e=U(l,"Create Schedule")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function At(n){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function Bt(n){Ae(n);let e,l,t,s;const r=[Mt,Ut],u=[];function a(f,o){var c;return(c=f[14])!=null&&c.length?0:1}return e=a(n),l=u[e]=r[e](n),{c(){l.c(),t=Z()},l(f){l.l(f),t=Z()},m(f,o){u[e].m(f,o),d(f,t,o),s=!0},p(f,o){Ae(f);let c=e;e=a(f),e===c?u[e].p(f,o):(se(),b(u[c],1,1,()=>{u[c]=null}),re(),l=u[e],l?l.p(f,o):(l=u[e]=r[e](f),l.c()),g(l,1),l.m(t.parentNode,t))},i(f){s||(g(l),s=!0)},o(f){b(l),s=!1},d(f){u[e].d(f),f&&i(t)}}}function Ut(n){let e,l,t,s,r;return l=new Ye({props:{title:"No Schedules Found",content:xt,error:n[15]}}),s=new Ze({props:{as:"anchor",target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Vt]},$$scope:{ctx:n}}}),{c(){e=C("div"),k(l.$$.fragment),t=W(),k(s.$$.fragment),this.h()},l(u){e=P(u,"DIV",{class:!0});var a=N(e);T(l.$$.fragment,a),t=F(a),T(s.$$.fragment,a),a.forEach(i),this.h()},h(){L(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(u,a){d(u,e,a),E(l,e,null),A(e,t),E(s,e,null),r=!0},p(u,a){const f={};a&16&&(f.error=u[15]),l.$set(f);const o={};a&2097152&&(o.$$scope={dirty:a,ctx:u}),s.$set(o)},i(u){r||(g(l.$$.fragment,u),g(s.$$.fragment,u),r=!0)},o(u){b(l.$$.fragment,u),b(s.$$.fragment,u),r=!1},d(u){u&&i(e),S(l),S(s)}}}function Mt(n){let e,l;return e=new xe({props:{items:n[2](n[14]),"aria-label":"schedules",$$slots:{"action-top-right":[Qt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],"action-top-left":[Jt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],default:[Gt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&20&&(r.items=t[2](t[14])),s&2228257&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Vt(n){let e;return{c(){e=B("Get Started With Docs")},l(l){e=U(l,"Get Started With Docs")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ue(n){let e,l;return e=new Qe({props:{$$slots:{default:[jt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2097152&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function jt(n){let e,l,t,s,r,u,a,f;return s=new Ye({props:{title:"No Schedules Found",content:"Try a different search"}}),{c(){e=C("td"),l=W(),t=C("td"),k(s.$$.fragment),r=W(),u=C("td"),a=W(),this.h()},l(o){e=P(o,"TD",{class:!0}),N(e).forEach(i),l=F(o),t=P(o,"TD",{colspan:!0});var c=N(t);T(s.$$.fragment,c),c.forEach(i),r=F(o),u=P(o,"TD",{class:!0}),N(u).forEach(i),a=F(o),this.h()},h(){L(e,"class","hidden xl:table-cell"),L(t,"colspan","3"),L(u,"class","hidden xl:table-cell")},m(o,c){d(o,e,c),d(o,l,c),d(o,t,c),E(s,t,null),d(o,r,c),d(o,u,c),d(o,a,c),f=!0},p:G,i(o){f||(g(s.$$.fragment,o),f=!0)},o(o){b(s.$$.fragment,o),f=!1},d(o){o&&i(e),o&&i(l),o&&i(t),S(s),o&&i(r),o&&i(u),o&&i(a)}}}function Me(n){let e,l;return e=new Rt({props:{schedule:n[18]}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&131072&&(r.schedule=t[18]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function zt(n){let e,l,t=n[17],s=[];for(let a=0;ab(s[a],1,1,()=>{s[a]=null});let u=null;return t.length||(u=Ue(n)),{c(){for(let a=0;a{u=null}),re()):(u=Ue(a),u.c(),g(u,1),u.m(e.parentNode,e))}},i(a){if(!l){for(let f=0;fKe(l,"value",r)),l.$on("submit",G),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(a){e=P(a,"DIV",{class:!0});var f=N(e);T(l.$$.fragment,f),f.forEach(i),this.h()},h(){L(e,"class","w-full xl:w-1/2")},m(a,f){d(a,e,f),E(l,e,null),s=!0},p(a,f){const o={};!t&&f&1&&(t=!0,o.value=a[0],Oe(()=>t=!1)),l.$set(o)},i(a){s||(g(l.$$.fragment,a),s=!0)},o(a){b(l.$$.fragment,a),s=!1},d(a){a&&i(e),S(l)}}}function Kt(n){let e;return{c(){e=B("Relative")},l(l){e=U(l,"Relative")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ot(n){let e;return{c(){e=B("UTC")},l(l){e=U(l,"UTC")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Yt(n){let e;return{c(){e=B("Local")},l(l){e=U(l,"Local")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Zt(n){let e,l,t,s,r,u;return e=new ce({props:{$$slots:{default:[Kt]},$$scope:{ctx:n}}}),e.$on("click",n[10]),t=new ce({props:{$$slots:{default:[Ot]},$$scope:{ctx:n}}}),t.$on("click",n[11]),r=new ce({props:{$$slots:{default:[Yt]},$$scope:{ctx:n}}}),r.$on("click",n[12]),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment),s=W(),k(r.$$.fragment)},l(a){T(e.$$.fragment,a),l=F(a),T(t.$$.fragment,a),s=F(a),T(r.$$.fragment,a)},m(a,f){E(e,a,f),d(a,l,f),E(t,a,f),d(a,s,f),E(r,a,f),u=!0},p(a,f){const o={};f&2097152&&(o.$$scope={dirty:f,ctx:a}),e.$set(o);const c={};f&2097152&&(c.$$scope={dirty:f,ctx:a}),t.$set(c);const p={};f&2097152&&(p.$$scope={dirty:f,ctx:a}),r.$set(p)},i(a){u||(g(e.$$.fragment,a),g(t.$$.fragment,a),g(r.$$.fragment,a),u=!0)},o(a){b(e.$$.fragment,a),b(t.$$.fragment,a),b(r.$$.fragment,a),u=!1},d(a){S(e,a),a&&i(l),S(t,a),a&&i(s),S(r,a)}}}function Qt(n){let e,l;return e=new Wt({props:{id:"timezone",label:Ne(n[5]),icon:"clock",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&32&&(r.label=Ne(t[5])),s&2097184&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Xt(n){let e,l;return e=new tt({}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p:G,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function yt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;r=new et({props:{type:"beta",$$slots:{default:[Ft]},$$scope:{ctx:n}}}),c=new Ze({props:{class:"h-10",testId:"create-schedule",disabled:n[3],$$slots:{default:[Ht]},$$scope:{ctx:n}}}),c.$on("click",n[9]);let $={ctx:n,current:null,token:null,hasCatch:!1,pending:Xt,then:Bt,catch:At,value:16,blocks:[,,,]};return Ce(D=n[4],$),{c(){e=C("header"),l=C("div"),t=C("h1"),s=B("Schedules"),k(r.$$.fragment),u=W(),a=C("p"),f=B(n[1]),o=W(),k(c.$$.fragment),p=W(),I=Z(),$.block.c(),this.h()},l(_){e=P(_,"HEADER",{class:!0});var h=N(e);l=P(h,"DIV",{});var R=N(l);t=P(R,"H1",{class:!0});var M=N(t);s=U(M,"Schedules"),T(r.$$.fragment,M),M.forEach(i),u=F(R),a=P(R,"P",{class:!0,"data-testid":!0});var z=N(a);f=U(z,n[1]),z.forEach(i),R.forEach(i),o=F(h),T(c.$$.fragment,h),h.forEach(i),p=F(_),I=Z(),$.block.l(_),this.h()},h(){L(t,"class","flex items-center gap-2 text-2xl"),L(a,"class","text-sm text-gray-600"),L(a,"data-testid","namespace-name"),L(e,"class","flex flex-col justify-between gap-2 md:flex-row")},m(_,h){d(_,e,h),A(e,l),A(l,t),A(t,s),E(r,t,null),A(l,u),A(l,a),A(a,f),A(e,o),E(c,e,null),d(_,p,h),d(_,I,h),$.block.m(_,$.anchor=h),$.mount=()=>I.parentNode,$.anchor=I,H=!0},p(_,[h]){n=_;const R={};h&2097152&&(R.$$scope={dirty:h,ctx:n}),r.$set(R),(!H||h&2)&&Y(f,n[1]);const M={};h&8&&(M.disabled=n[3]),h&2097152&&(M.$$scope={dirty:h,ctx:n}),c.$set(M),$.ctx=n,h&16&&D!==(D=n[4])&&Ce(D,$)||ye($,n,h)},i(_){H||(g(r.$$.fragment,_),g(c.$$.fragment,_),g($.block),H=!0)},o(_){b(r.$$.fragment,_),b(c.$$.fragment,_);for(let h=0;h<3;h+=1){const R=$.blocks[h];b(R)}H=!1},d(_){_&&i(e),S(r),S(c),_&&i(p),_&&i(I),$.block.d(_),$.token=null,$=null}}}const xt="Create scheduled actions using our Public API or TCTL (CLI).";function el(n,e,l){let t,s,r,u,a,f,o;O(n,me,h=>l(8,f=h)),O(n,le,h=>l(5,o=h));let c=dt();O(n,c,h=>l(7,a=h));let p="";const I=()=>st(nt({namespace:t})),D=()=>ue(le,o="relative",o),H=()=>ue(le,o="UTC",o),$=()=>ue(le,o="local",o);function _(h){p=h,l(0,p)}return n.$$.update=()=>{n.$$.dirty&256&&l(1,t=f.params.namespace),n.$$.dirty&2&&l(4,s=ot(t)),n.$$.dirty&130&&l(3,r=a.namespaceWriteDisabled(t)),n.$$.dirty&1&&l(2,u=h=>p?h.filter(R=>R.scheduleId.toLowerCase().includes(p.toLowerCase())):h)},[p,t,u,r,s,o,c,a,f,I,D,H,$,_]}class tl extends ne{constructor(e){super(),ae(this,e,el,yt,oe,{})}}function ll(n){let e,l,t,s;return e=new ht({props:{title:`Schedules | ${n[0].params.namespace}`,url:n[0].url.href}}),t=new tl({}),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment)},l(r){T(e.$$.fragment,r),l=F(r),T(t.$$.fragment,r)},m(r,u){E(e,r,u),d(r,l,u),E(t,r,u),s=!0},p(r,[u]){const a={};u&1&&(a.title=`Schedules | ${r[0].params.namespace}`),u&1&&(a.url=r[0].url.href),e.$set(a)},i(r){s||(g(e.$$.fragment,r),g(t.$$.fragment,r),s=!0)},o(r){b(e.$$.fragment,r),b(t.$$.fragment,r),s=!1},d(r){S(e,r),r&&i(l),S(t,r)}}}function sl(n,e,l){let t;return O(n,me,s=>l(0,t=s)),[t]}class Dl extends ne{constructor(e){super(),ae(this,e,sl,ll,oe,{})}}export{Dl as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.60717323.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.898cc34a.js similarity index 89% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.60717323.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.898cc34a.js index 9db7106ce0..77fda231a2 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.60717323.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.898cc34a.js @@ -1 +1 @@ -import{S as k,b as g,a as b,aq as P,e as _,f as d,ar as y,j as u,g as i,k as h,K as w,n as s,C as m,D as p,E as f,F as $,c as C,d as v}from"../chunks/index.a36c9cb0.js";import{p as q}from"../chunks/stores.0bc9ce95.js";import{W as Q}from"../chunks/workers-list.39b61477.js";import{g as S}from"../chunks/pollers-service.ed01de2f.js";import{P as T}from"../chunks/page-title.b9565d2f.js";function W(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function j(a){let r,o;return r=new Q({props:{taskQueue:a[0],workers:a[1]}}),{c(){m(r.$$.fragment)},l(e){p(r.$$.fragment,e)},m(e,n){f(r,e,n),o=!0},p:s,i(e){o||(u(r.$$.fragment,e),o=!0)},o(e){i(r.$$.fragment,e),o=!1},d(e){$(r,e)}}}function D(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function E(a){let r,o,e={ctx:a,current:null,token:null,hasCatch:!1,pending:D,then:j,catch:W,value:1,blocks:[,,,]};return P(a[1],e),{c(){r=_(),e.block.c()},l(n){r=_(),e.block.l(n)},m(n,t){d(n,r,t),e.block.m(n,e.anchor=t),e.mount=()=>r.parentNode,e.anchor=r,o=!0},p(n,[t]){a=n,y(e,a,t)},i(n){o||(u(e.block),o=!0)},o(n){for(let t=0;t<3;t+=1){const l=e.blocks[t];i(l)}o=!1},d(n){n&&h(r),e.block.d(n),e.token=null,e=null}}}function F(a,r,o){let e;w(a,q,c=>o(2,e=c));let{queue:n,namespace:t}=e.params,l=S({queue:n,namespace:t});return[n,l]}class K extends k{constructor(r){super(),g(this,r,F,E,b,{})}}function N(a){let r,o,e,n;return r=new T({props:{title:`Task Queue | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(r.$$.fragment),o=C(),m(e.$$.fragment)},l(t){p(r.$$.fragment,t),o=v(t),p(e.$$.fragment,t)},m(t,l){f(r,t,l),d(t,o,l),f(e,t,l),n=!0},p(t,[l]){const c={};l&1&&(c.url=t[0].url.href),r.$set(c)},i(t){n||(u(r.$$.fragment,t),u(e.$$.fragment,t),n=!0)},o(t){i(r.$$.fragment,t),i(e.$$.fragment,t),n=!1},d(t){$(r,t),t&&h(o),$(e,t)}}}function x(a,r,o){let e;w(a,q,t=>o(0,e=t));const n=e.params.queue;return[e,n]}class I extends k{constructor(r){super(),g(this,r,x,N,b,{})}}export{I as default}; +import{S as k,b as g,a as b,aq as P,e as _,f as d,ar as y,j as u,g as i,k as h,K as w,n as s,C as m,D as p,E as f,F as $,c as C,d as v}from"../chunks/index.a36c9cb0.js";import{p as q}from"../chunks/stores.a2e3306d.js";import{W as Q}from"../chunks/workers-list.39b61477.js";import{g as S}from"../chunks/pollers-service.4cba4448.js";import{P as T}from"../chunks/page-title.b9565d2f.js";function W(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function j(a){let r,o;return r=new Q({props:{taskQueue:a[0],workers:a[1]}}),{c(){m(r.$$.fragment)},l(e){p(r.$$.fragment,e)},m(e,n){f(r,e,n),o=!0},p:s,i(e){o||(u(r.$$.fragment,e),o=!0)},o(e){i(r.$$.fragment,e),o=!1},d(e){$(r,e)}}}function D(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function E(a){let r,o,e={ctx:a,current:null,token:null,hasCatch:!1,pending:D,then:j,catch:W,value:1,blocks:[,,,]};return P(a[1],e),{c(){r=_(),e.block.c()},l(n){r=_(),e.block.l(n)},m(n,t){d(n,r,t),e.block.m(n,e.anchor=t),e.mount=()=>r.parentNode,e.anchor=r,o=!0},p(n,[t]){a=n,y(e,a,t)},i(n){o||(u(e.block),o=!0)},o(n){for(let t=0;t<3;t+=1){const l=e.blocks[t];i(l)}o=!1},d(n){n&&h(r),e.block.d(n),e.token=null,e=null}}}function F(a,r,o){let e;w(a,q,c=>o(2,e=c));let{queue:n,namespace:t}=e.params,l=S({queue:n,namespace:t});return[n,l]}class K extends k{constructor(r){super(),g(this,r,F,E,b,{})}}function N(a){let r,o,e,n;return r=new T({props:{title:`Task Queue | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(r.$$.fragment),o=C(),m(e.$$.fragment)},l(t){p(r.$$.fragment,t),o=v(t),p(e.$$.fragment,t)},m(t,l){f(r,t,l),d(t,o,l),f(e,t,l),n=!0},p(t,[l]){const c={};l&1&&(c.url=t[0].url.href),r.$set(c)},i(t){n||(u(r.$$.fragment,t),u(e.$$.fragment,t),n=!0)},o(t){i(r.$$.fragment,t),i(e.$$.fragment,t),n=!1},d(t){$(r,t),t&&h(o),$(e,t)}}}function x(a,r,o){let e;w(a,q,t=>o(0,e=t));const n=e.params.queue;return[e,n]}class I extends k{constructor(r){super(),g(this,r,x,N,b,{})}}export{I as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.473cb8e4.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.473cb8e4.js deleted file mode 100644 index 92f209ad64..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.473cb8e4.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.fdb95c2e.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.d2969b2e.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.d2969b2e.js new file mode 100644 index 0000000000..d25ab64dd8 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.d2969b2e.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.2b64f7b2.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.473cb8e4.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.473cb8e4.js deleted file mode 100644 index db74cc53cb..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.473cb8e4.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.3552ec44.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.d2969b2e.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.d2969b2e.js new file mode 100644 index 0000000000..f432e1e3a5 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.d2969b2e.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.a33400eb.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.473cb8e4.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.473cb8e4.js deleted file mode 100644 index 20b62f188c..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.473cb8e4.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.519ce37d.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.d2969b2e.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.d2969b2e.js new file mode 100644 index 0000000000..e91fdb3808 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.d2969b2e.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.75c2ac3e.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.7bd6da90.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ffc1468c.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.7bd6da90.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ffc1468c.js index 6458b8cd14..b6065e7c99 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.7bd6da90.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ffc1468c.js @@ -1,4 +1,4 @@ -import{S as $e,b as _e,a as ge,e as re,f as v,j as h,z as ee,g as _,h as te,k as c,K as he,m as E,w as N,c as T,C,p as y,q as k,x as R,d as I,D as S,u as g,L as p,E as A,a1 as it,a2 as ft,F as W,y as se,as as Il,n as Z,G as Fe,N as Pe,R as gt,Q as lt,T as st,V as wt,H as Oe,I as Le,J as je,U as ut,r as Cl,a5 as rt,O as $l,P as vt,_ as ct,a7 as Al,a3 as Ne,a4 as Re,B as nt,i as Wl,a6 as Dl,aq as Sl,ar as Nl}from"../chunks/index.a36c9cb0.js";import{p as Ve}from"../chunks/stores.48be4ca9.js";import{d as at,e as Rl,b as kt}from"../chunks/event-view.f557cd63.js";import{D as _l,E as Pl,F as Vl}from"../chunks/is-event-type.763b5d4b.js";import{s as bt}from"../chunks/parse-with-big-int.0036a80a.js";import{h as Bl,a as Hl}from"../chunks/has.48bed8a5.js";import{a as gl,A as Fl,e as wl,b as Ol}from"../chunks/events-service.d0c588a2.js";import{w as Qe,a as Et,r as Ll}from"../chunks/workflow-run.8a407b5f.js";import{T as jl,a as tt}from"../chunks/toggle-buttons.dc1431b3.js";import{f as He}from"../chunks/format-date.7c274b02.js";import{h as yt,B as Tt}from"../chunks/format-time.c8c4770b.js";import{i as Ml,g as Ie,h as It,l as ot}from"../chunks/route-for.6dec3e74.js";import{L as Je}from"../chunks/link.855bf830.js";import{I as Ke}from"../chunks/icon.33859671.js";import{B as Te}from"../chunks/badge.7f30446f.js";import{C as Me}from"../chunks/code-block.2cc5a38d.js";import{T as vl,C as ql}from"../chunks/tooltip.bd2ec5a4.js";import{j as Ct,k as At}from"../chunks/format-event-attributes.7f34c129.js";import{t as Wt}from"../chunks/to-time-difference.7cff7598.js";import{v as Ul}from"../chunks/toaster.16c48a98.js";import{P as kl}from"../chunks/pagination.4cd37fec.js";import{T as bl,a as El}from"../chunks/table-header-row.eb620974.js";import{T as zl}from"../chunks/table-row.9df8daa0.js";import{E as Ql}from"../chunks/empty-state.9fb63265.js";import{t as Jl}from"../chunks/time-format.dc246788.js";import{b as yl,E as Kl,a as Gl}from"../chunks/event-empty-row.844d84b4.js";import{D as Yl}from"../chunks/drawer.62a75e11.js";import{B as Xl}from"../chunks/button.dbc76a4c.js";import{e as Zl}from"../chunks/filters.2b30fe96.js";import{a as xl}from"../chunks/auth-user.3a7bc4db.js";import{g as Dt}from"../chunks/index.f8c667a1.js";import{L as er}from"../chunks/loading.bcb9b7b8.js";import{P as tr}from"../chunks/page-title.b9565d2f.js";const lr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],St=n=>!!n.workflowExecutionStartedEventAttributes,Nt=n=>{for(const e of lr)if(n.eventType===e)return!0;return!1},Rt=n=>n.eventType==="WorkflowTaskFailed",Pt=n=>n.eventType==="WorkflowTaskCompleted",rr=n=>{var e;return _l(n)?(e=n.attributes.input)==null?void 0:e.payloads:Pl(n)?n.attributes.result===null?null:n.attributes.result.payloads:n.attributes},nr=n=>{var f,u;let e,l,t,r=!1,s,o,i,a=!1;for(const m of n.start)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){i&&(i=void 0);continue}else if(!a&&Rt(m)){i=m;continue}for(const m of n.end)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){a=!0;continue}else if(!a&&Rt(m)){i=m;continue}return s&&(e=bt(((u=(f=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:f.input)==null?void 0:u.payloads)??null)),o&&(r=_l(o),l=bt(rr(o))),i&&(t=i),{input:e,results:l,error:t,contAsNew:r}},sr=n=>{for(const e of n)if(Bl(e.attributes,"newExecutionRunId")&&Hl(e.attributes.newExecutionRunId))return e.attributes.newExecutionRunId},or=(n,e)=>{var u,m;const l=!!(n!=null&&n.pendingChildren.length),t=n==null?void 0:n.parent,r=e.start.find(Vl),s=sr(e.end),o=(u=r==null?void 0:r.attributes)==null?void 0:u.firstExecutionRunId,i=o===(n==null?void 0:n.runId)?void 0:o,a=(m=r==null?void 0:r.attributes)==null?void 0:m.continuedExecutionRunId;return{hasRelationships:!!(t||l||i||a||s),hasChildren:l,first:i,previous:a,parent:t,next:s}},ar=async({namespace:n,workflowId:e,runId:l})=>{const t=await gl({namespace:n,workflowId:e,runId:l,sort:"ascending"}),r=JSON.stringify({events:t},null,2);s(r,`${l}/events.json`,"text/plain");function s(o,i,a){const f=document.createElement("a"),u=new Blob([o],{type:a});f.href=URL.createObjectURL(u),f.download=i,f.click()}};function Vt(n,e,l){const t=n.slice();t[6]=e[l].id,t[7]=Il(e[l],["id"]);const r=t[7].attempt>1;return t[8]=r,t}function Bt(n){let e,l,t,r,s,o=[],i=new Map,a,f,u,m,d=n[0]&&Ht(n),$=n[2];const D=w=>w[6];for(let w=0;w<$.length;w+=1){let b=Vt(n,$,w),H=D(b);i.set(H,o[w]=Mt(H,b))}return u=new Je({props:{href:n[1],$$slots:{default:[pr]},$$scope:{ctx:n}}}),{c(){e=E("section"),l=E("h3"),t=N(`Pending Activities +import{S as $e,b as _e,a as ge,e as re,f as v,j as h,z as ee,g as _,h as te,k as c,K as he,m as E,w as N,c as T,C,p as y,q as k,x as R,d as I,D as S,u as g,L as p,E as A,a1 as it,a2 as ft,F as W,y as se,as as Il,n as Z,G as Fe,N as Pe,R as gt,Q as lt,T as st,V as wt,H as Oe,I as Le,J as je,U as ut,r as Cl,a5 as rt,O as $l,P as vt,_ as ct,a7 as Al,a3 as Ne,a4 as Re,B as nt,i as Wl,a6 as Dl,aq as Sl,ar as Nl}from"../chunks/index.a36c9cb0.js";import{p as Ve}from"../chunks/stores.a2e3306d.js";import{d as at,e as Rl,b as kt}from"../chunks/event-view.f557cd63.js";import{D as _l,E as Pl,F as Vl}from"../chunks/is-event-type.763b5d4b.js";import{s as bt}from"../chunks/parse-with-big-int.0036a80a.js";import{h as Bl,a as Hl}from"../chunks/has.48bed8a5.js";import{a as gl,A as Fl,e as wl,b as Ol}from"../chunks/events-service.df63a9ac.js";import{w as Qe,a as Et,r as Ll}from"../chunks/workflow-run.8a407b5f.js";import{T as jl,a as tt}from"../chunks/toggle-buttons.fba008ff.js";import{f as He}from"../chunks/format-date.7c274b02.js";import{h as yt,B as Tt}from"../chunks/format-time.c8c4770b.js";import{i as Ml,g as Ie,h as It,l as ot}from"../chunks/route-for.087ea268.js";import{L as Je}from"../chunks/link.855bf830.js";import{I as Ke}from"../chunks/icon.33859671.js";import{B as Te}from"../chunks/badge.7f30446f.js";import{C as Me}from"../chunks/code-block.2cc5a38d.js";import{T as vl,C as ql}from"../chunks/tooltip.bd2ec5a4.js";import{j as Ct,k as At}from"../chunks/format-event-attributes.7f34c129.js";import{t as Wt}from"../chunks/to-time-difference.7cff7598.js";import{v as Ul}from"../chunks/toaster.16c48a98.js";import{P as kl}from"../chunks/pagination.c403d909.js";import{T as bl,a as El}from"../chunks/table-header-row.eb620974.js";import{T as zl}from"../chunks/table-row.9df8daa0.js";import{E as Ql}from"../chunks/empty-state.9fb63265.js";import{t as Jl}from"../chunks/time-format.dc246788.js";import{b as yl,E as Kl,a as Gl}from"../chunks/event-empty-row.f23d95dc.js";import{D as Yl}from"../chunks/drawer.62a75e11.js";import{B as Xl}from"../chunks/button.dbc76a4c.js";import{e as Zl}from"../chunks/filters.ab2fc3ed.js";import{a as xl}from"../chunks/auth-user.3a7bc4db.js";import{g as Dt}from"../chunks/index.f8c667a1.js";import{L as er}from"../chunks/loading.bcb9b7b8.js";import{P as tr}from"../chunks/page-title.b9565d2f.js";const lr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],St=n=>!!n.workflowExecutionStartedEventAttributes,Nt=n=>{for(const e of lr)if(n.eventType===e)return!0;return!1},Rt=n=>n.eventType==="WorkflowTaskFailed",Pt=n=>n.eventType==="WorkflowTaskCompleted",rr=n=>{var e;return _l(n)?(e=n.attributes.input)==null?void 0:e.payloads:Pl(n)?n.attributes.result===null?null:n.attributes.result.payloads:n.attributes},nr=n=>{var f,u;let e,l,t,r=!1,s,o,i,a=!1;for(const m of n.start)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){i&&(i=void 0);continue}else if(!a&&Rt(m)){i=m;continue}for(const m of n.end)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){a=!0;continue}else if(!a&&Rt(m)){i=m;continue}return s&&(e=bt(((u=(f=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:f.input)==null?void 0:u.payloads)??null)),o&&(r=_l(o),l=bt(rr(o))),i&&(t=i),{input:e,results:l,error:t,contAsNew:r}},sr=n=>{for(const e of n)if(Bl(e.attributes,"newExecutionRunId")&&Hl(e.attributes.newExecutionRunId))return e.attributes.newExecutionRunId},or=(n,e)=>{var u,m;const l=!!(n!=null&&n.pendingChildren.length),t=n==null?void 0:n.parent,r=e.start.find(Vl),s=sr(e.end),o=(u=r==null?void 0:r.attributes)==null?void 0:u.firstExecutionRunId,i=o===(n==null?void 0:n.runId)?void 0:o,a=(m=r==null?void 0:r.attributes)==null?void 0:m.continuedExecutionRunId;return{hasRelationships:!!(t||l||i||a||s),hasChildren:l,first:i,previous:a,parent:t,next:s}},ar=async({namespace:n,workflowId:e,runId:l})=>{const t=await gl({namespace:n,workflowId:e,runId:l,sort:"ascending"}),r=JSON.stringify({events:t},null,2);s(r,`${l}/events.json`,"text/plain");function s(o,i,a){const f=document.createElement("a"),u=new Blob([o],{type:a});f.href=URL.createObjectURL(u),f.download=i,f.click()}};function Vt(n,e,l){const t=n.slice();t[6]=e[l].id,t[7]=Il(e[l],["id"]);const r=t[7].attempt>1;return t[8]=r,t}function Bt(n){let e,l,t,r,s,o=[],i=new Map,a,f,u,m,d=n[0]&&Ht(n),$=n[2];const D=w=>w[6];for(let w=0;w<$.length;w+=1){let b=Vt(n,$,w),H=D(b);i.set(H,o[w]=Mt(H,b))}return u=new Je({props:{href:n[1],$$slots:{default:[pr]},$$scope:{ctx:n}}}),{c(){e=E("section"),l=E("h3"),t=N(`Pending Activities `),d&&d.c(),r=T(),s=E("div");for(let w=0;w{d=null}),te()),b&6&&($=w[2],ee(),o=it(o,b,D,1,w,$,i,s,ft,Mt,null,Vt),te());const H={};b&2&&(H.href=w[1]),b&2048&&(H.$$scope={dirty:b,ctx:w}),u.$set(H)},i(w){if(!m){h(d);for(let b=0;b<$.length;b+=1)h(o[b]);h(u.$$.fragment,w),m=!0}},o(w){_(d);for(let b=0;b{s=null}),te()),(!r||i&4)&&l!==(l=o[7].attempt+"")&&se(t,l)},i(o){r||(h(s),r=!0)},o(o){_(s),r=!1},d(o){s&&s.d(o),o&&c(e),o&&c(t)}}}function mr(n){let e=At(n[7].maximumAttempts,n[7].attempt)+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=At(t[7].maximumAttempts,t[7].attempt)+"")&&se(l,e)},d(t){t&&c(l)}}}function Ot(n){let e,l,t,r,s,o;return s=new Te({props:{type:n[8]?"error":"default",$$slots:{default:[dr]},$$scope:{ctx:n}}}),{c(){e=E("div"),l=E("h4"),t=N("Next Retry"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Next Retry"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","pending-activity-detail svelte-155uvlv")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.type=i[8]?"error":"default"),a&2052&&(f.$$scope={dirty:a,ctx:i}),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function dr(n){let e=Wt(n[7].scheduledTime)+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=Wt(t[7].scheduledTime)+"")&&se(l,e)},d(t){t&&c(l)}}}function Lt(n){let e,l,t,r,s,o;return s=new Me({props:{class:"max-h-32",content:n[7].heartbeatDetails}}),{c(){e=E("div"),l=E("h4"),t=N("Heartbeat Details"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Heartbeat Details"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","w-1/2 grow")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.content=i[7].heartbeatDetails),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function jt(n){let e,l,t,r,s,o;return s=new Me({props:{class:"max-h-32",content:n[7].lastFailure}}),{c(){e=E("div"),l=E("h4"),t=N("Last Failure"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Last Failure"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","w-1/2 grow")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.content=i[7].lastFailure),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function Mt(n,e){var qe,Ue;let l,t,r=e[7].activityId+"",s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y=He(e[7].lastHeartbeatTime,"relative")+"",X,K,oe,x,z,J,M,ie,B,L,Q,F,O,fe,ce,V,q,ue,G,ne=Ct(e[7].maximumAttempts,yt(Tt({start:Date.now(),end:e[7].expirationTime})))+"",we,Ee,ae,Ae,ke,ye;w=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[ur]},$$scope:{ctx:e}}}),M=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[cr]},$$scope:{ctx:e}}}),O=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[mr]},$$scope:{ctx:e}}});let me=e[8]&&e[7].scheduledTime&&Ot(e),de=((qe=e[7])==null?void 0:qe.heartbeatDetails)&&Lt(e),pe=((Ue=e[7])==null?void 0:Ue.lastFailure)&&jt(e);return{key:n,first:null,c(){l=E("div"),t=E("h3"),s=N(r),o=T(),i=E("div"),a=E("div"),f=E("a"),u=E("div"),m=E("div"),d=E("h4"),$=N("Activity Type"),D=T(),C(w.$$.fragment),b=T(),H=E("div"),j=E("h4"),U=N("Last Heartbeat"),P=T(),X=N(Y),K=T(),oe=E("div"),x=E("h4"),z=N("Attempt"),J=T(),C(M.$$.fragment),ie=T(),B=E("div"),L=E("h4"),Q=N("Attempts Left"),F=T(),C(O.$$.fragment),fe=T(),me&&me.c(),ce=T(),V=E("div"),q=E("h4"),ue=N("Expiration"),G=T(),we=N(ne),Ee=T(),ae=E("div"),de&&de.c(),Ae=T(),pe&&pe.c(),ke=T(),this.h()},l(ve){l=y(ve,"DIV",{class:!0});var le=k(l);t=y(le,"H3",{class:!0});var We=k(t);s=R(We,r),We.forEach(c),o=I(le),i=y(le,"DIV",{class:!0});var Be=k(i);a=y(Be,"DIV",{class:!0});var De=k(a);f=y(De,"A",{class:!0,href:!0});var ze=k(f);u=y(ze,"DIV",{class:!0});var be=k(u);m=y(be,"DIV",{class:!0});var Ge=k(m);d=y(Ge,"H4",{class:!0});var dt=k(d);$=R(dt,"Activity Type"),dt.forEach(c),D=I(Ge),S(w.$$.fragment,Ge),Ge.forEach(c),b=I(be),H=y(be,"DIV",{class:!0});var Ye=k(H);j=y(Ye,"H4",{class:!0});var pt=k(j);U=R(pt,"Last Heartbeat"),pt.forEach(c),P=I(Ye),X=R(Ye,Y),Ye.forEach(c),K=I(be),oe=y(be,"DIV",{class:!0});var Xe=k(oe);x=y(Xe,"H4",{class:!0});var ht=k(x);z=R(ht,"Attempt"),ht.forEach(c),J=I(Xe),S(M.$$.fragment,Xe),Xe.forEach(c),ie=I(be),B=y(be,"DIV",{class:!0});var Ze=k(B);L=y(Ze,"H4",{class:!0});var $t=k(L);Q=R($t,"Attempts Left"),$t.forEach(c),F=I(Ze),S(O.$$.fragment,Ze),Ze.forEach(c),fe=I(be),me&&me.l(be),ce=I(be),V=y(be,"DIV",{class:!0});var xe=k(V);q=y(xe,"H4",{class:!0});var _t=k(q);ue=R(_t,"Expiration"),_t.forEach(c),G=I(xe),we=R(xe,ne),xe.forEach(c),be.forEach(c),ze.forEach(c),Ee=I(De),ae=y(De,"DIV",{class:!0});var et=k(ae);de&&de.l(et),Ae=I(et),pe&&pe.l(et),et.forEach(c),De.forEach(c),Be.forEach(c),ke=I(le),le.forEach(c),this.h()},h(){g(t,"class","w-full self-start text-sm font-normal text-gray-500"),g(d,"class","pending-activity-detail-header svelte-155uvlv"),g(m,"class","pending-activity-detail svelte-155uvlv"),g(j,"class","pending-activity-detail-header svelte-155uvlv"),g(H,"class","pending-activity-detail svelte-155uvlv"),g(x,"class","pending-activity-detail-header svelte-155uvlv"),g(oe,"class","pending-activity-detail svelte-155uvlv"),g(L,"class","pending-activity-detail-header svelte-155uvlv"),g(B,"class","pending-activity-detail svelte-155uvlv"),g(q,"class","pending-activity-detail-header svelte-155uvlv"),g(V,"class","pending-activity-detail svelte-155uvlv"),g(u,"class","pending-activity-inner-row svelte-155uvlv"),g(f,"class","flex w-full items-center hover:bg-gray-50"),g(f,"href",e[1]),g(ae,"class","pending-activity-failure-details svelte-155uvlv"),g(a,"class","pending-activity-summary svelte-155uvlv"),g(i,"class","pending-activity-row svelte-155uvlv"),g(l,"class","pending-activity-row-container svelte-155uvlv"),this.first=l},m(ve,le){v(ve,l,le),p(l,t),p(t,s),p(l,o),p(l,i),p(i,a),p(a,f),p(f,u),p(u,m),p(m,d),p(d,$),p(m,D),A(w,m,null),p(u,b),p(u,H),p(H,j),p(j,U),p(H,P),p(H,X),p(u,K),p(u,oe),p(oe,x),p(x,z),p(oe,J),A(M,oe,null),p(u,ie),p(u,B),p(B,L),p(L,Q),p(B,F),A(O,B,null),p(u,fe),me&&me.m(u,null),p(u,ce),p(u,V),p(V,q),p(q,ue),p(V,G),p(V,we),p(a,Ee),p(a,ae),de&&de.m(ae,null),p(ae,Ae),pe&&pe.m(ae,null),p(l,ke),ye=!0},p(ve,le){var ze,be;e=ve,(!ye||le&4)&&r!==(r=e[7].activityId+"")&&se(s,r);const We={};le&4&&(We.type=e[8]?"error":"default"),le&2052&&(We.$$scope={dirty:le,ctx:e}),w.$set(We),(!ye||le&4)&&Y!==(Y=He(e[7].lastHeartbeatTime,"relative")+"")&&se(X,Y);const Be={};le&4&&(Be.type=e[8]?"error":"default"),le&2052&&(Be.$$scope={dirty:le,ctx:e}),M.$set(Be);const De={};le&4&&(De.type=e[8]?"error":"default"),le&2052&&(De.$$scope={dirty:le,ctx:e}),O.$set(De),e[8]&&e[7].scheduledTime?me?(me.p(e,le),le&4&&h(me,1)):(me=Ot(e),me.c(),h(me,1),me.m(u,ce)):me&&(ee(),_(me,1,1,()=>{me=null}),te()),(!ye||le&4)&&ne!==(ne=Ct(e[7].maximumAttempts,yt(Tt({start:Date.now(),end:e[7].expirationTime})))+"")&&se(we,ne),(!ye||le&2)&&g(f,"href",e[1]),(ze=e[7])!=null&&ze.heartbeatDetails?de?(de.p(e,le),le&4&&h(de,1)):(de=Lt(e),de.c(),h(de,1),de.m(ae,Ae)):de&&(ee(),_(de,1,1,()=>{de=null}),te()),(be=e[7])!=null&&be.lastFailure?pe?(pe.p(e,le),le&4&&h(pe,1)):(pe=jt(e),pe.c(),h(pe,1),pe.m(ae,null)):pe&&(ee(),_(pe,1,1,()=>{pe=null}),te())},i(ve){ye||(h(w.$$.fragment,ve),h(M.$$.fragment,ve),h(O.$$.fragment,ve),h(me),h(de),h(pe),ye=!0)},o(ve){_(w.$$.fragment,ve),_(M.$$.fragment,ve),_(O.$$.fragment,ve),_(me),_(de),_(pe),ye=!1},d(ve){ve&&c(l),W(w),W(M),W(O),me&&me.d(),de&&de.d(),pe&&pe.d()}}}function pr(n){let e;return{c(){e=N("Show all")},l(l){e=R(l,"Show all")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function hr(n){let e,l,t=n[2].length&&Bt(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[2].length?t?(t.p(r,s),s&4&&h(t,1)):(t=Bt(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function $r(n,e,l){let t,r,s,o,i,a;return he(n,Ve,f=>l(4,i=f)),he(n,Qe,f=>l(5,a=f)),n.$$.update=()=>{n.$$.dirty&32&&l(3,{workflow:t}=a,t),n.$$.dirty&8&&l(2,r=t==null?void 0:t.pendingActivities),n.$$.dirty&16&&l(1,s=Ml({namespace:i.params.namespace,workflow:i.params.workflow,run:i.params.run})),n.$$.dirty&8&&l(0,o=["Terminated","TimedOut","Canceled"].includes(t==null?void 0:t.status))},[o,s,r,t,i,a]}class _r extends $e{constructor(e){super(),_e(this,e,$r,hr,ge,{})}}const gr=n=>({}),qt=n=>({}),wr=n=>({}),Ut=n=>({});function zt(n){let e,l;return e=new Ke({props:{name:n[4]}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&16&&(s.name=t[4]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Qt(n){let e,l;return e=new Ke({props:{name:n[0]?"chevron-up":"chevron-down",class:"rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(n[5]?"text-gray-500":"text-primary")}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&1&&(s.name=t[0]?"chevron-up":"chevron-down"),r&32&&(s.class="rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(t[5]?"text-gray-500":"text-primary")),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Jt(n){let e,l;return e=new Te({props:{class:"mr-2",type:"error",$$slots:{default:[vr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&32896&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function vr(n){let e;return{c(){e=N(n[7])},l(l){e=R(l,n[7])},m(l,t){v(l,e,t)},p(l,t){t&128&&se(e,l[7])},d(l){l&&c(e)}}}function kr(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z=n[4]&&zt(n);const J=n[12].summary,M=Fe(J,n,n[15],Ut),ie=n[12].action,B=Fe(ie,n,n[15],qt);let L=!n[6]&&Qt(n),Q=n[7]&&Jt(n);const F=n[12].default,O=Fe(F,n,n[15],null);let fe=[{class:X="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+n[8]},n[10]],ce={};for(let V=0;V{z=null}),te()),(!K||q&2)&&se(o,V[1]),M&&M.p&&(!K||q&32768)&&Oe(M,J,V,V[15],K?je(J,V[15],q,wr):Le(V[15]),Ut),B&&B.p&&(!K||q&32768)&&Oe(B,ie,V,V[15],K?je(ie,V[15],q,gr):Le(V[15]),qt),V[6]?L&&(ee(),_(L,1,1,()=>{L=null}),te()):L?(L.p(V,q),q&64&&h(L,1)):(L=Qt(V),L.c(),h(L,1),L.m(t,null)),V[7]?Q?(Q.p(V,q),q&128&&h(Q,1)):(Q=Jt(V),Q.c(),h(Q,1),Q.m(d,$)):Q&&(ee(),_(Q,1,1,()=>{Q=null}),te()),(!K||q&8)&&se(D,V[3]),(!K||q&4&&w!==(w=V[2]+"-trigger"))&&g(l,"id",w),(!K||q&1)&&g(l,"aria-expanded",V[0]),(!K||q&4&&b!==(b=V[2]+"-content"))&&g(l,"aria-controls",b),(!K||q&96&&H!==(H=V[5]||V[6]))&&(l.disabled=H),O&&O.p&&(!K||q&32768)&&Oe(O,F,V,V[15],K?je(F,V[15],q,null):Le(V[15]),null),(!K||q&4&&P!==(P=V[2]+"-content"))&&g(U,"id",P),(!K||q&4&&Y!==(Y=V[2]+"-trigger"))&&g(U,"aria-labelledby",Y),(!K||q&1)&>(U,"hidden",!V[0]),lt(e,ce=ut(fe,[(!K||q&256&&X!==(X="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+V[8]))&&{class:X},q&1024&&V[10]]))},i(V){K||(h(z),h(M,V),h(B,V),h(L),h(Q),h(O,V),K=!0)},o(V){_(z),_(M,V),_(B,V),_(L),_(Q),_(O,V),K=!1},d(V){V&&c(e),z&&z.d(),M&&M.d(V),B&&B.d(V),L&&L.d(),Q&&Q.d(),O&&O.d(V),oe=!1,Cl(x)}}}function br(n,e,l){const t=["title","id","subtitle","icon","open","disabled","readOnly","error","onToggle","class"];let r=rt(e,t),{$$slots:s={},$$scope:o}=e,{title:i}=e,{id:a=Ul()}=e,{subtitle:f=""}=e,{icon:u=null}=e,{open:m=!1}=e,{disabled:d=!1}=e,{readOnly:$=!1}=e,{error:D=""}=e,{onToggle:w=()=>{}}=e,{class:b=""}=e;const H=()=>{d||$||(l(0,m=!m),w())};function j(P){vt.call(this,n,P)}function U(P){vt.call(this,n,P)}return n.$$set=P=>{e=Pe(Pe({},e),$l(P)),l(10,r=rt(e,t)),"title"in P&&l(1,i=P.title),"id"in P&&l(2,a=P.id),"subtitle"in P&&l(3,f=P.subtitle),"icon"in P&&l(4,u=P.icon),"open"in P&&l(0,m=P.open),"disabled"in P&&l(5,d=P.disabled),"readOnly"in P&&l(6,$=P.readOnly),"error"in P&&l(7,D=P.error),"onToggle"in P&&l(11,w=P.onToggle),"class"in P&&l(8,b=P.class),"$$scope"in P&&l(15,o=P.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&l(0,m=d?!0:m)},[m,i,a,f,u,d,$,D,b,H,r,w,s,j,U,o]}class mt extends $e{constructor(e){super(),_e(this,e,br,kr,ge,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}function Kt(n,e,l){const t=n.slice();return t[3]=e[l],t}function Er(n){let e,l=n[3].workflowId+"",t,r,s,o=n[3].runId+"",i,a;return{c(){e=E("td"),t=N(l),r=T(),s=E("td"),i=N(o),a=T()},l(f){e=y(f,"TD",{});var u=k(e);t=R(u,l),u.forEach(c),r=I(f),s=y(f,"TD",{});var m=k(s);i=R(m,o),m.forEach(c),a=I(f)},m(f,u){v(f,e,u),p(e,t),v(f,r,u),v(f,s,u),p(s,i),v(f,a,u)},p(f,u){u&4&&l!==(l=f[3].workflowId+"")&&se(t,l),u&4&&o!==(o=f[3].runId+"")&&se(i,o)},d(f){f&&c(e),f&&c(r),f&&c(s),f&&c(a)}}}function Gt(n,e){let l,t,r;return t=new zl({props:{href:Ie({namespace:e[1],workflow:e[3].workflowId,run:e[3].runId}),$$slots:{default:[Er]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=re(),C(t.$$.fragment),this.h()},l(s){l=re(),S(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,o){v(s,l,o),A(t,s,o),r=!0},p(s,o){e=s;const i={};o&6&&(i.href=Ie({namespace:e[1],workflow:e[3].workflowId,run:e[3].runId})),o&68&&(i.$$scope={dirty:o,ctx:e}),t.$set(i)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&c(l),W(t,s)}}}function yr(n){let e=[],l=new Map,t,r,s=n[2];const o=i=>i[3].runId;for(let i=0;i({2:t}),({visibleItems:t})=>t?4:0]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,[r]){const s={};r&1&&(s.items=t[0]),r&70&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Wr(n,e,l){let{pendingChildren:t=[]}=e,{namespace:r}=e;return n.$$set=s=>{"pendingChildren"in s&&l(0,t=s.pendingChildren),"namespace"in s&&l(1,r=s.namespace)},[t,r]}class Dr extends $e{constructor(e){super(),_e(this,e,Wr,Ar,ge,{pendingChildren:0,namespace:1})}}function Sr(n){let e,l,t,r,s,o=n[0]&&Yt(n);const i=[Pr,Rr],a=[];function f(u,m){return u[3]?0:1}return l=f(n),t=a[l]=i[l](n),{c(){o&&o.c(),e=T(),t.c(),r=re()},l(u){o&&o.l(u),e=I(u),t.l(u),r=re()},m(u,m){o&&o.m(u,m),v(u,e,m),a[l].m(u,m),v(u,r,m),s=!0},p(u,m){u[0]?o?o.p(u,m):(o=Yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=l;l=f(u),l===d?a[l].p(u,m):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),t=a[l],t?t.p(u,m):(t=a[l]=i[l](u),t.c()),h(t,1),t.m(r.parentNode,r))},i(u){s||(h(t),s=!0)},o(u){_(t),s=!1},d(u){o&&o.d(u),u&&c(e),a[l].d(u),u&&c(r)}}}function Nr(n){let e,l;return e=new ql({props:{content:n[1],visible:!0,"container-class":"gap-1 w-full",$$slots:{default:[Or]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2&&(s.content=t[1]),r&43&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Yt(n){let e,l;return{c(){e=N(n[0]),l=N(":")},l(t){e=R(t,n[0]),l=R(t,":")},m(t,r){v(t,e,r),v(t,l,r)},p(t,r){r&1&&se(e,t[0])},d(t){t&&c(e),t&&c(l)}}}function Rr(n){let e,l;return{c(){e=E("span"),l=N(n[1]),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,n[1]),r.forEach(c),this.h()},h(){g(e,"class","select-all truncate")},m(t,r){v(t,e,r),p(e,l)},p(t,r){r&2&&se(l,t[1])},i:Z,o:Z,d(t){t&&c(e)}}}function Pr(n){let e,l;return e=new Je({props:{href:n[3],class:"truncate",$$slots:{default:[Vr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&8&&(s.href=t[3]),r&34&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Vr(n){let e;return{c(){e=N(n[1])},l(l){e=R(l,n[1])},m(l,t){v(l,e,t)},p(l,t){t&2&&se(e,l[1])},d(l){l&&c(e)}}}function Xt(n){let e,l;return{c(){e=N(n[0]),l=N(":")},l(t){e=R(t,n[0]),l=R(t,":")},m(t,r){v(t,e,r),v(t,l,r)},p(t,r){r&1&&se(e,t[0])},d(t){t&&c(e),t&&c(l)}}}function Br(n){let e,l;return{c(){e=E("span"),l=N(n[1]),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,n[1]),r.forEach(c),this.h()},h(){g(e,"class","select-all truncate")},m(t,r){v(t,e,r),p(e,l)},p(t,r){r&2&&se(l,t[1])},i:Z,o:Z,d(t){t&&c(e)}}}function Hr(n){let e,l;return e=new Je({props:{href:n[3],class:"truncate",$$slots:{default:[Fr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&8&&(s.href=t[3]),r&34&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Fr(n){let e;return{c(){e=N(n[1])},l(l){e=R(l,n[1])},m(l,t){v(l,e,t)},p(l,t){t&2&&se(e,l[1])},d(l){l&&c(e)}}}function Or(n){let e,l,t,r,s,o=n[0]&&Xt(n);const i=[Hr,Br],a=[];function f(u,m){return u[3]?0:1}return l=f(n),t=a[l]=i[l](n),{c(){o&&o.c(),e=T(),t.c(),r=re()},l(u){o&&o.l(u),e=I(u),t.l(u),r=re()},m(u,m){o&&o.m(u,m),v(u,e,m),a[l].m(u,m),v(u,r,m),s=!0},p(u,m){u[0]?o?o.p(u,m):(o=Xt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=l;l=f(u),l===d?a[l].p(u,m):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),t=a[l],t?t.p(u,m):(t=a[l]=i[l](u),t.c()),h(t,1),t.m(r.parentNode,r))},i(u){s||(h(t),s=!0)},o(u){_(t),s=!1},d(u){o&&o.d(u),u&&c(e),a[l].d(u),u&&c(r)}}}function Lr(n){let e,l,t,r,s;const o=[Nr,Sr],i=[];function a(f,u){return f[2]?0:1}return l=a(n),t=i[l]=o[l](n),{c(){e=E("p"),t.c(),this.h()},l(f){e=y(f,"P",{class:!0});var u=k(e);t.l(u),u.forEach(c),this.h()},h(){g(e,"class",r="flex items-center gap-2 text-"+n[4]+" whitespace-nowrap pt-2")},m(f,u){v(f,e,u),i[l].m(e,null),s=!0},p(f,[u]){let m=l;l=a(f),l===m?i[l].p(f,u):(ee(),_(i[m],1,1,()=>{i[m]=null}),te(),t=i[l],t?t.p(f,u):(t=i[l]=o[l](f),t.c()),h(t,1),t.m(e,null)),(!s||u&16&&r!==(r="flex items-center gap-2 text-"+f[4]+" whitespace-nowrap pt-2"))&&g(e,"class",r)},i(f){s||(h(t),s=!0)},o(f){_(t),s=!1},d(f){f&&c(e),i[l].d()}}}function jr(n,e,l){let{title:t=""}=e,{content:r}=e,{copyable:s=!1}=e,{href:o=null}=e,{textSize:i="md"}=e;return n.$$set=a=>{"title"in a&&l(0,t=a.title),"content"in a&&l(1,r=a.content),"copyable"in a&&l(2,s=a.copyable),"href"in a&&l(3,o=a.href),"textSize"in a&&l(4,i=a.textSize)},[t,r,s,o,i]}class Ce extends $e{constructor(e){super(),_e(this,e,jr,Lr,ge,{title:0,content:1,copyable:2,href:3,textSize:4})}}function Mr(n){let e,l;return{c(){e=E("p"),l=N("This workflow doesn’t have any relationships")},l(t){e=y(t,"P",{});var r=k(e);l=R(r,"This workflow doesn’t have any relationships"),r.forEach(c)},m(t,r){v(t,e,r),p(e,l)},p:Z,i:Z,o:Z,d(t){t&&c(e)}}}function qr(n){let e,l,t,r,s,o,i,a=n[3]&&Zt(n),f=n[2]&&xt(n),u=n[5]&&el(n),m=n[4]&&tl(n),d=n[0]&&ll(n);return{c(){e=E("div"),a&&a.c(),l=T(),f&&f.c(),t=T(),u&&u.c(),r=T(),m&&m.c(),s=T(),d&&d.c(),o=re(),this.h()},l($){e=y($,"DIV",{class:!0});var D=k(e);a&&a.l(D),l=I(D),f&&f.l(D),t=I(D),u&&u.l(D),r=I(D),m&&m.l(D),D.forEach(c),s=I($),d&&d.l($),o=re(),this.h()},h(){g(e,"class","flex w-full flex-wrap gap-4")},m($,D){v($,e,D),a&&a.m(e,null),p(e,l),f&&f.m(e,null),p(e,t),u&&u.m(e,null),p(e,r),m&&m.m(e,null),v($,s,D),d&&d.m($,D),v($,o,D),i=!0},p($,D){$[3]?a?(a.p($,D),D&8&&h(a,1)):(a=Zt($),a.c(),h(a,1),a.m(e,l)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),$[2]?f?(f.p($,D),D&4&&h(f,1)):(f=xt($),f.c(),h(f,1),f.m(e,t)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),$[5]?u?(u.p($,D),D&32&&h(u,1)):(u=el($),u.c(),h(u,1),u.m(e,r)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),$[4]?m?(m.p($,D),D&16&&h(m,1)):(m=tl($),m.c(),h(m,1),m.m(e,null)):m&&(ee(),_(m,1,1,()=>{m=null}),te()),$[0]?d?(d.p($,D),D&1&&h(d,1)):(d=ll($),d.c(),h(d,1),d.m(o.parentNode,o)):d&&(ee(),_(d,1,1,()=>{d=null}),te())},i($){i||(h(a),h(f),h(u),h(m),h(d),i=!0)},o($){_(a),_(f),_(u),_(m),_(d),i=!1},d($){$&&c(e),a&&a.d(),f&&f.d(),u&&u.d(),m&&m.d(),$&&c(s),d&&d.d($),$&&c(o)}}}function Zt(n){let e,l,t,r,s,o,i,a,f,u;return i=new Ce({props:{title:"Workflow ID",content:n[3].workflowId,copyable:!0,href:Ie({namespace:n[7],workflow:n[3].workflowId,run:n[3].runId})}}),f=new Ce({props:{title:"Run ID",content:n[3].runId,copyable:!0,href:Ie({namespace:n[7],workflow:n[3].workflowId,run:n[3].runId})}}),{c(){e=E("div"),l=E("h3"),t=N("Parent"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),a=T(),C(f.$$.fragment),this.h()},l(m){e=y(m,"DIV",{class:!0});var d=k(e);l=y(d,"H3",{class:!0});var $=k(l);t=R($,"Parent"),$.forEach(c),r=I(d),s=y(d,"DIV",{class:!0}),k(s).forEach(c),o=I(d),S(i.$$.fragment,d),a=I(d),S(f.$$.fragment,d),d.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(m,d){v(m,e,d),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),p(e,a),A(f,e,null),u=!0},p(m,d){const $={};d&8&&($.content=m[3].workflowId),d&136&&($.href=Ie({namespace:m[7],workflow:m[3].workflowId,run:m[3].runId})),i.$set($);const D={};d&8&&(D.content=m[3].runId),d&136&&(D.href=Ie({namespace:m[7],workflow:m[3].workflowId,run:m[3].runId})),f.$set(D)},i(m){u||(h(i.$$.fragment,m),h(f.$$.fragment,m),u=!0)},o(m){_(i.$$.fragment,m),_(f.$$.fragment,m),u=!1},d(m){m&&c(e),W(i),W(f)}}}function xt(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"First Execution Run ID",content:n[2],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[2]})}}),{c(){e=E("div"),l=E("h3"),t=N("First"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"First"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&4&&(m.content=f[2]),u&388&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[2]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function el(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"Continued Execution Run ID",content:n[5],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[5]})}}),{c(){e=E("div"),l=E("h3"),t=N("Previous"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"Previous"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&32&&(m.content=f[5]),u&416&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[5]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function tl(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"New Execution Run ID",content:n[4],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[4]})}}),{c(){e=E("div"),l=E("h3"),t=N("Next"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"Next"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&16&&(m.content=f[4]),u&400&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[4]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function ll(n){let e,l;return e=new Dr({props:{pendingChildren:n[9].workflow.pendingChildren,namespace:n[6].params.namespace}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&512&&(s.pendingChildren=t[9].workflow.pendingChildren),r&64&&(s.namespace=t[6].params.namespace),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Ur(n){let e,l,t,r;const s=[qr,Mr],o=[];function i(a,f){return a[1]?0:1}return e=i(n),l=o[e]=s[e](n),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,f){o[e].m(a,f),v(a,t,f),r=!0},p(a,f){let u=e;e=i(a),e===u?o[e].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),l=o[e],l?l.p(a,f):(l=o[e]=s[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){r||(h(l),r=!0)},o(a){_(l),r=!1},d(a){o[e].d(a),a&&c(t)}}}function zr(n){let e=(n[3]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Parent")},l(r){l=R(r,e),t=R(r," Parent")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&8&&e!==(e=(r[3]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Qr(n){let e=n[9].workflow.pendingChildren.length+"",l,t;return{c(){l=N(e),t=N(" Pending Children")},l(r){l=R(r,e),t=R(r," Pending Children")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&512&&e!==(e=r[9].workflow.pendingChildren.length+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Jr(n){let e=(n[2]?1:0)+"",l,t;return{c(){l=N(e),t=N(" First")},l(r){l=R(r,e),t=R(r," First")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&4&&e!==(e=(r[2]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Kr(n){let e=(n[5]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Previous")},l(r){l=R(r,e),t=R(r," Previous")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&32&&e!==(e=(r[5]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Gr(n){let e=(n[4]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Next")},l(r){l=R(r,e),t=R(r," Next")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&16&&e!==(e=(r[4]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Yr(n){let e,l,t,r,s,o,i,a,f,u,m;return l=new Te({props:{type:n[3]?"purple":"gray",$$slots:{default:[zr]},$$scope:{ctx:n}}}),r=new Te({props:{type:n[0]?"purple":"gray",$$slots:{default:[Qr]},$$scope:{ctx:n}}}),o=new Te({props:{type:n[2]?"purple":"gray",$$slots:{default:[Jr]},$$scope:{ctx:n}}}),a=new Te({props:{type:n[5]?"purple":"gray",$$slots:{default:[Kr]},$$scope:{ctx:n}}}),u=new Te({props:{type:n[4]?"purple":"gray",$$slots:{default:[Gr]},$$scope:{ctx:n}}}),{c(){e=E("div"),C(l.$$.fragment),t=T(),C(r.$$.fragment),s=T(),C(o.$$.fragment),i=T(),C(a.$$.fragment),f=T(),C(u.$$.fragment),this.h()},l(d){e=y(d,"DIV",{slot:!0,class:!0});var $=k(e);S(l.$$.fragment,$),t=I($),S(r.$$.fragment,$),s=I($),S(o.$$.fragment,$),i=I($),S(a.$$.fragment,$),f=I($),S(u.$$.fragment,$),$.forEach(c),this.h()},h(){g(e,"slot","summary"),g(e,"class","hidden flex-row gap-2 lg:flex")},m(d,$){v(d,e,$),A(l,e,null),p(e,t),A(r,e,null),p(e,s),A(o,e,null),p(e,i),A(a,e,null),p(e,f),A(u,e,null),m=!0},p(d,$){const D={};$&8&&(D.type=d[3]?"purple":"gray"),$&1032&&(D.$$scope={dirty:$,ctx:d}),l.$set(D);const w={};$&1&&(w.type=d[0]?"purple":"gray"),$&1536&&(w.$$scope={dirty:$,ctx:d}),r.$set(w);const b={};$&4&&(b.type=d[2]?"purple":"gray"),$&1028&&(b.$$scope={dirty:$,ctx:d}),o.$set(b);const H={};$&32&&(H.type=d[5]?"purple":"gray"),$&1056&&(H.$$scope={dirty:$,ctx:d}),a.$set(H);const j={};$&16&&(j.type=d[4]?"purple":"gray"),$&1040&&(j.$$scope={dirty:$,ctx:d}),u.$set(j)},i(d){m||(h(l.$$.fragment,d),h(r.$$.fragment,d),h(o.$$.fragment,d),h(a.$$.fragment,d),h(u.$$.fragment,d),m=!0)},o(d){_(l.$$.fragment,d),_(r.$$.fragment,d),_(o.$$.fragment,d),_(a.$$.fragment,d),_(u.$$.fragment,d),m=!1},d(d){d&&c(e),W(l),W(r),W(o),W(a),W(u)}}}function Xr(n){let e,l,t;return l=new mt({props:{title:"Relationships",icon:"relationship",$$slots:{summary:[Yr],default:[Ur]},$$scope:{ctx:n}}}),{c(){e=E("section"),C(l.$$.fragment)},l(r){e=y(r,"SECTION",{});var s=k(e);S(l.$$.fragment,s),s.forEach(c)},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,[s]){const o={};s&2047&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function Zr(n,e,l){let t,r,s,o;he(n,Ve,$=>l(6,s=$)),he(n,Qe,$=>l(9,o=$));let{hasChildren:i}=e,{hasRelationships:a}=e,{first:f}=e,{parent:u}=e,{next:m}=e,{previous:d}=e;return n.$$set=$=>{"hasChildren"in $&&l(0,i=$.hasChildren),"hasRelationships"in $&&l(1,a=$.hasRelationships),"first"in $&&l(2,f=$.first),"parent"in $&&l(3,u=$.parent),"next"in $&&l(4,m=$.next),"previous"in $&&l(5,d=$.previous)},n.$$.update=()=>{n.$$.dirty&64&&l(8,{workflow:t,namespace:r}=s.params,t,(l(7,r),l(6,s)))},[i,a,f,u,m,d,s,r,t,o]}class xr extends $e{constructor(e){super(),_e(this,e,Zr,Xr,ge,{hasChildren:0,hasRelationships:1,first:2,parent:3,next:4,previous:5})}}function rl(n){let e,l,t;return l=new Ql({props:{icon:"warning",title:"No Workers Running",content:"Please make sure you have at least one worker connected to the "+n[0].taskQueue+" Task Queue.",class:"my-0"}}),{c(){e=E("section"),C(l.$$.fragment),this.h()},l(r){e=y(r,"SECTION",{class:!0});var s=k(e);S(l.$$.fragment,s),s.forEach(c),this.h()},h(){g(e,"class","stack-trace svelte-y5tg73")},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,s){const o={};s&1&&(o.content="Please make sure you have at least one worker connected to the "+r[0].taskQueue+" Task Queue."),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function en(n){let e,l,t=n[1]&&rl(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[1]?t?(t.p(r,s),s&2&&h(t,1)):(t=rl(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function tn(n,e,l){let t,r,s,o;he(n,Qe,a=>l(4,o=a));var i;return n.$$.update=()=>{n.$$.dirty&16&&l(0,{workflow:t,workers:r}=o,t,(l(3,r),l(4,o))),n.$$.dirty&13&&l(1,s=t.isRunning&&!(!(l(2,i=r==null?void 0:r.pollers)===null||i===void 0)&&i.length))},[t,s,i,r,o]}class ln extends $e{constructor(e){super(),_e(this,e,tn,en,ge,{})}}function rn(n){var Q,F,O,fe,ce,V,q,ue;let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z,J,M,ie,B,L;return a=new Ce({props:{content:(Q=n[0])==null?void 0:Q.name,copyable:!0}}),u=new Ce({props:{title:"Run ID",content:(F=n[0])==null?void 0:F.runId,copyable:!0}}),j=new Ce({props:{content:(O=n[0])==null?void 0:O.taskQueue,href:It({namespace:n[2].params.namespace,workflow:(fe=n[0])==null?void 0:fe.id,run:(ce=n[0])==null?void 0:ce.runId}),copyable:!0}}),P=new Ce({props:{title:"State Transitions",content:(V=n[0])==null?void 0:V.stateTransitionCount}}),M=new Ce({props:{title:"Start Time",content:He((q=n[0])==null?void 0:q.startTime,n[3])}}),B=new Ce({props:{title:"Close Time",content:He((ue=n[0])==null?void 0:ue.endTime,n[3])}}),{c(){e=E("div"),l=E("div"),t=E("h3"),r=N("Workflow Type"),s=T(),o=E("div"),i=T(),C(a.$$.fragment),f=T(),C(u.$$.fragment),m=T(),d=E("div"),$=E("h3"),D=N("Task Queue"),w=T(),b=E("div"),H=T(),C(j.$$.fragment),U=T(),C(P.$$.fragment),Y=T(),X=E("div"),K=E("h3"),oe=N("Start & Close Time"),x=T(),z=E("div"),J=T(),C(M.$$.fragment),ie=T(),C(B.$$.fragment),this.h()},l(G){e=y(G,"DIV",{class:!0});var ne=k(e);l=y(ne,"DIV",{class:!0});var we=k(l);t=y(we,"H3",{class:!0});var Ee=k(t);r=R(Ee,"Workflow Type"),Ee.forEach(c),s=I(we),o=y(we,"DIV",{class:!0}),k(o).forEach(c),i=I(we),S(a.$$.fragment,we),f=I(we),S(u.$$.fragment,we),we.forEach(c),m=I(ne),d=y(ne,"DIV",{class:!0});var ae=k(d);$=y(ae,"H3",{class:!0});var Ae=k($);D=R(Ae,"Task Queue"),Ae.forEach(c),w=I(ae),b=y(ae,"DIV",{class:!0}),k(b).forEach(c),H=I(ae),S(j.$$.fragment,ae),U=I(ae),S(P.$$.fragment,ae),ae.forEach(c),Y=I(ne),X=y(ne,"DIV",{class:!0});var ke=k(X);K=y(ke,"H3",{class:!0});var ye=k(K);oe=R(ye,"Start & Close Time"),ye.forEach(c),x=I(ke),z=y(ke,"DIV",{class:!0}),k(z).forEach(c),J=I(ke),S(M.$$.fragment,ke),ie=I(ke),S(B.$$.fragment,ke),ke.forEach(c),ne.forEach(c),this.h()},h(){g(t,"class","font-medium"),g(o,"class","h-0.5 rounded-full bg-gray-900"),g(l,"class","col-span-1 md:col-span-2"),g($,"class","font-medium"),g(b,"class","h-0.5 rounded-full bg-gray-900"),g(d,"class","col-span-1"),g(K,"class","font-medium"),g(z,"class","h-0.5 rounded-full bg-gray-900"),g(X,"class","col-span-1"),g(e,"class","grid-row-3 grid w-full grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 xl:w-11/12")},m(G,ne){v(G,e,ne),p(e,l),p(l,t),p(t,r),p(l,s),p(l,o),p(l,i),A(a,l,null),p(l,f),A(u,l,null),p(e,m),p(e,d),p(d,$),p($,D),p(d,w),p(d,b),p(d,H),A(j,d,null),p(d,U),A(P,d,null),p(e,Y),p(e,X),p(X,K),p(K,oe),p(X,x),p(X,z),p(X,J),A(M,X,null),p(X,ie),A(B,X,null),L=!0},p(G,ne){var me,de,pe,qe,Ue,ve,le,We;const we={};ne&1&&(we.content=(me=G[0])==null?void 0:me.name),a.$set(we);const Ee={};ne&1&&(Ee.content=(de=G[0])==null?void 0:de.runId),u.$set(Ee);const ae={};ne&1&&(ae.content=(pe=G[0])==null?void 0:pe.taskQueue),ne&5&&(ae.href=It({namespace:G[2].params.namespace,workflow:(qe=G[0])==null?void 0:qe.id,run:(Ue=G[0])==null?void 0:Ue.runId})),j.$set(ae);const Ae={};ne&1&&(Ae.content=(ve=G[0])==null?void 0:ve.stateTransitionCount),P.$set(Ae);const ke={};ne&9&&(ke.content=He((le=G[0])==null?void 0:le.startTime,G[3])),M.$set(ke);const ye={};ne&9&&(ye.content=He((We=G[0])==null?void 0:We.endTime,G[3])),B.$set(ye)},i(G){L||(h(a.$$.fragment,G),h(u.$$.fragment,G),h(j.$$.fragment,G),h(P.$$.fragment,G),h(M.$$.fragment,G),h(B.$$.fragment,G),L=!0)},o(G){_(a.$$.fragment,G),_(u.$$.fragment,G),_(j.$$.fragment,G),_(P.$$.fragment,G),_(M.$$.fragment,G),_(B.$$.fragment,G),L=!1},d(G){G&&c(e),W(a),W(u),W(j),W(P),W(M),W(B)}}}function nn(n){let e,l,t;return l=new mt({props:{title:"Summary",icon:"summary",open:n[1],onToggle:n[5],$$slots:{default:[rn]},$$scope:{ctx:n}}}),{c(){e=E("section"),C(l.$$.fragment)},l(r){e=y(r,"SECTION",{});var s=k(e);S(l.$$.fragment,s),s.forEach(c)},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,[s]){const o={};s&2&&(o.open=r[1]),s&2&&(o.onToggle=r[5]),s&77&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function sn(n,e,l){let t,r,s,o,i;he(n,Qe,f=>l(4,r=f)),he(n,Et,f=>l(1,s=f)),he(n,Ve,f=>l(2,o=f)),he(n,Jl,f=>l(3,i=f));const a=()=>{ct(Et,s=!s,s)};return n.$$.update=()=>{n.$$.dirty&16&&l(0,{workflow:t}=r,t)},[t,s,o,i,r,a]}class on extends $e{constructor(e){super(),_e(this,e,sn,nn,ge,{})}}function nl(n){let e,l;return e=new Fl({props:{bold:!0,icon:"warning",intent:"warning",title:n[5],role:"status",$$slots:{default:[dn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&32&&(s.title=t[5]),r&2079&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function sl(n){let e,l,t,r;return l=new Je({props:{newTab:!0,href:"http://support.temporal.io/",$$slots:{default:[an]},$$scope:{ctx:n}}}),{c(){e=N("Please "),C(l.$$.fragment),t=N(".")},l(s){e=R(s,"Please "),S(l.$$.fragment,s),t=R(s,".")},m(s,o){v(s,e,o),A(l,s,o),v(s,t,o),r=!0},i(s){r||(h(l.$$.fragment,s),r=!0)},o(s){_(l.$$.fragment,s),r=!1},d(s){s&&c(e),W(l,s),s&&c(t)}}}function an(n){let e;return{c(){e=N("contact support")},l(l){e=R(l,"contact support")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function ol(n){let e,l,t,r,s;return t=new Je({props:{newTab:!0,href:n[2],$$slots:{default:[fn]},$$scope:{ctx:n}}}),{c(){e=E("p"),l=N("Learn more about "),C(t.$$.fragment),r=N(".")},l(o){e=y(o,"P",{});var i=k(e);l=R(i,"Learn more about "),S(t.$$.fragment,i),r=R(i,"."),i.forEach(c)},m(o,i){v(o,e,i),p(e,l),A(t,e,null),p(e,r),s=!0},p(o,i){const a={};i&4&&(a.href=o[2]),i&2056&&(a.$$scope={dirty:i,ctx:o}),t.$set(a)},i(o){s||(h(t.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),s=!1},d(o){o&&c(e),W(t)}}}function fn(n){let e;return{c(){e=N(n[3])},l(l){e=R(l,n[3])},m(l,t){v(l,e,t)},p(l,t){t&8&&se(e,l[3])},d(l){l&&c(e)}}}function un(n){let e,l;return e=new yl({props:{event:n[0],initialItem:n[0],visibleItems:[n[0]],typedError:!0}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&1&&(s.event=t[0]),r&1&&(s.initialItem=t[0]),r&1&&(s.visibleItems=[t[0]]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function cn(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D;return a=new Ke({props:{name:"clock"}}),{c(){e=E("th"),l=T(),t=E("th"),r=E("span"),s=N("Date & Time"),o=T(),i=E("span"),C(a.$$.fragment),f=T(),u=E("th"),m=N("Event"),d=T(),$=E("th"),this.h()},l(w){e=y(w,"TH",{class:!0}),k(e).forEach(c),l=I(w),t=y(w,"TH",{class:!0});var b=k(t);r=y(b,"SPAN",{class:!0});var H=k(r);s=R(H,"Date & Time"),H.forEach(c),o=I(b),i=y(b,"SPAN",{class:!0});var j=k(i);S(a.$$.fragment,j),j.forEach(c),b.forEach(c),f=I(w),u=y(w,"TH",{class:!0});var U=k(u);m=R(U,"Event"),U.forEach(c),d=I(w),$=y(w,"TH",{class:!0}),k($).forEach(c),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(r,"class","max-md:hidden "),g(i,"class","md:hidden"),g(t,"class","w-16 md:w-32"),g(u,"class","w-44"),g($,"class","w-auto xl:w-80")},m(w,b){v(w,e,b),v(w,l,b),v(w,t,b),p(t,r),p(r,s),p(t,o),p(t,i),A(a,i,null),v(w,f,b),v(w,u,b),p(u,m),v(w,d,b),v(w,$,b),D=!0},p:Z,i(w){D||(h(a.$$.fragment,w),D=!0)},o(w){_(a.$$.fragment,w),D=!1},d(w){w&&c(e),w&&c(l),w&&c(t),W(a),w&&c(f),w&&c(u),w&&c(d),w&&c($)}}}function mn(n){let e,l;return e=new El({props:{slot:"headers",$$slots:{default:[cn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2048&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function dn(n){let e,l,t,r,s,o,i,a,f=n[1]&&sl(n),u=n[3]&&n[2]&&ol(n);return i=new bl({props:{class:"dark w-full table-fixed",$$slots:{headers:[mn],default:[un]},$$scope:{ctx:n}}}),{c(){e=E("p"),l=N(n[4]),t=T(),f&&f.c(),r=T(),u&&u.c(),s=T(),o=E("div"),C(i.$$.fragment),this.h()},l(m){e=y(m,"P",{});var d=k(e);l=R(d,n[4]),t=I(d),f&&f.l(d),d.forEach(c),r=I(m),u&&u.l(m),s=I(m),o=y(m,"DIV",{class:!0});var $=k(o);S(i.$$.fragment,$),$.forEach(c),this.h()},h(){g(o,"class","mt-2 bg-white")},m(m,d){v(m,e,d),p(e,l),p(e,t),f&&f.m(e,null),v(m,r,d),u&&u.m(m,d),v(m,s,d),v(m,o,d),A(i,o,null),a=!0},p(m,d){(!a||d&16)&&se(l,m[4]),m[1]?f?d&2&&h(f,1):(f=sl(m),f.c(),h(f,1),f.m(e,null)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),m[3]&&m[2]?u?(u.p(m,d),d&12&&h(u,1)):(u=ol(m),u.c(),h(u,1),u.m(s.parentNode,s)):u&&(ee(),_(u,1,1,()=>{u=null}),te());const $={};d&2049&&($.$$scope={dirty:d,ctx:m}),i.$set($)},i(m){a||(h(f),h(u),h(i.$$.fragment,m),a=!0)},o(m){_(f),_(u),_(i.$$.fragment,m),a=!1},d(m){m&&c(e),f&&f.d(),m&&c(r),u&&u.d(m),m&&c(s),m&&c(o),W(i)}}}function pn(n){let e,l,t=(n[5]||n[4])&&nl(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[5]||r[4]?t?(t.p(r,s),s&48&&h(t,1)):(t=nl(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function hn(n,e,l){let t,r,s,o,i,a,f;var u;const m={Unspecified:{title:"Unspecified",copy:"The Workflow Task failed for an unknown reason.",contactSupport:!0},UnhandledCommand:{title:"Unhandled Command",copy:"The Workflow Task failed because there are new available events since the last Workflow Task started. A retry Workflow Task has been scheduled and the Workflow will have a chance to handle those new events."},BadScheduleActivityAttributes:{title:"Bad Schedule Activity Attributes",copy:"The Workflow Task failed because of missing or incorrect ScheduleActivity attributes."},BadRequestCancelActivityAttributes:{title:"Bad Request Cancel Activity Attributes",copy:"The Workflow Task failed because of bad RequestCancelActivity attributes. An Activity was scheduled to cancel, but the scheduled event id was never set."},BadStartTimerAttributes:{title:"Bad Start Timer Attributes",copy:"The Workflow Task failed because the scheduled event is missing a timer id."},BadCancelTimerAttributes:{title:"Bad Cancel Timer Attributes",copy:"The Workflow Task failed when trying to cancel a timer due to an unset timer id."},BadRecordMarkerAttributes:{title:"Bad Record Marker Attributes",copy:"The Workflow Task failed because of a missing or invalid Marker name."},BadCompleteWorkflowExecutionAttributes:{title:"Bad Complete Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset attribute on CompleteWorkflowExecution."},BadFailWorkflowExecutionAttribute:{title:"Bad Fail Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset FailWorkflowExecution attribute or failure."},BadCancelWorkflowExecutionAttributes:{title:"Bad Cancel Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset attribute on CancelWorkflowExecution."},BadRequestCancelExternalAttributes:{title:"Bad Request Cancel External Attributes",copy:"The Workflow Task failed due to an invalid attribute on a request to cancel an external Workflow. Check the Failure Message for more details."},BadContinueAsNewAttributes:{title:"Bad Continue As New Attributes",copy:"The Workflow Task failed because it failed to validate on a ContinueAsNew attribute. Check the Failure Message for more details."},StartTimerDuplicateId:{title:"Start Timer Duplicate",copy:"The Workflow Task failed because a timer with the given timer id has already started."},ResetStickyTaskQueue:{title:"Reset Sticky Task Queue",copy:"The Workflow Task failed because the Sticky Task Queue needs to be reset. The system will automatically retry."},WorkflowWorkerUnhandledFailure:{title:"Workflow Worker Unhandled Failure",copy:"The Workflow Task failed due to an unhandled failure from the Workflow code.",actionCopy:"deterministic constraints",link:"https://docs.temporal.io/workflows/#deterministic-constraints"},WorkflowTaskHeartbeatError:{title:"Workflow Task Heartbeat Error",copy:"The Workflow Task failed to send a heartbeat while executing long-running local Activities. These local Activities will re-execute on the next Workflow Task attempt. If this error is persistent, these local Activities will run repeatedly until the Workflow times out."},BadSignalWorkflowExecutionAttributes:{title:"Bad Signal Workflow Execution Attributes",copy:"The Workflow Task failed to validate attributes for SignalWorkflowExecution. Check the Failure Message for more details."},BadStartChildExecutionAttributes:{title:"Bad Start Child Execution Attributes",copy:"The Workflow Task failed to validate attributes needed for StartChildWorkflowExecution. Check the Failure Message for more details."},ForceCloseCommand:{title:"Force Close Command",copy:"The Workflow Task was forced to close. A retry will be scheduled if the error is recoverable."},FailoverCloseCommand:{title:"Failover Close Command",copy:"The Workflow Task was forced to close due to a Namespace failover. A retry will be scheduled automatically."},BadSignalInputSize:{title:"Bad Signal Input Size",copy:"The payload has exceeded the available input size on a Signal."},ResetWorkflow:{title:"Reset Workflow",copy:"The system failed this Workflow Task. If a reset for this Workflow was requested check the progress on the new Workflow, otherwise reset this Workflow."},BadBinary:{title:"Bad Binary",copy:"The system failed this Workflow Task because the deployment of this Worker is marked as bad binary."},ScheduleActivityDuplicatId:{title:"Schedule Activity Duplicate ID",copy:"The Workflow Task failed because the Activity ID is already in use, please check if you have specified the same Activity ID in your workflow."},BadSearchAttributes:{title:"Bad Search Attributes",copy:"A Search attribute is either missing or the value exceeds the limit. This might cause Workflow tasks to continue to retry without success.",actionCopy:"configuring search attributes",link:"https://docs.temporal.io/visibility#search-attribute"},NonDeterministicError:{title:"Non Deterministic Error",copy:"A non-deterministic error has caused the Workflow Task to fail. This usually means the workflow code has a non-backward compatible change without a proper versioning branch."},BadModifyWorkflowPropertiesAttributes:{title:"Bad Modify Workflow Properties Attributes",copy:"The Workflow Task failed to validate attributes on ModifyWorkflowProperty on the upsert memo. Check the Failure Message for more details."},PendingChildWorkflowsLimitExceeded:{title:"Pending Child Workflows Limit Exceeded",copy:"The capacity for pending child Workflows has been reached. The Workflow Task was failed to prevent any more child Workflows from being added."},PendingActivitiesLimitExceeded:{title:"Pending Activities Limit Exceeded",copy:"The capacity for pending Activities has been reached. The Workflow Task was failed to prevent another Activity from being created."},PendingSignalsLimitExceeded:{title:"Pending Signals Limit Exceeded",copy:"The capacity for pending Signals to be sent from this Workflow has been reached."},PendingRequestCancelLimitExceeded:{title:"Pending Request Cancel Limit Exceeded",copy:"The capacity for pending requests to cancel other Workflows has been reached."}};function d(D){var w;if(!D||!D.workflowTaskFailedEventAttributes)return;const{workflowTaskFailedEventAttributes:{failure:b,cause:H}}=D;return((w=b==null?void 0:b.applicationFailureInfo)===null||w===void 0?void 0:w.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":H}let{error:$}=e;return n.$$set=D=>{"error"in D&&l(0,$=D.error)},n.$$.update=()=>{n.$$.dirty&1&&l(8,t=d($)),n.$$.dirty&320&&l(7,r=l(6,u=m[t])!==null&&u!==void 0?u:{}),n.$$.dirty&128&&l(5,{title:s="",copy:o="",actionCopy:i="",link:a="",contactSupport:f=!1}=r,s,(l(4,o),l(7,r),l(8,t),l(6,u),l(0,$)),(l(3,i),l(7,r),l(8,t),l(6,u),l(0,$)),(l(2,a),l(7,r),l(8,t),l(6,u),l(0,$)),(l(1,f),l(7,r),l(8,t),l(6,u),l(0,$)))},[$,f,a,i,o,s,u,r,t]}class $n extends $e{constructor(e){super(),_e(this,e,hn,pn,ge,{error:0})}}function al(n,e,l){const t=n.slice();return t[1]=e[l],t}function il(n){let e,l;return e=new Te({props:{type:"count",class:"rounded-sm",$$slots:{default:[_n]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&516&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function _n(n){let e=n[2].length+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=t[2].length+"")&&se(l,e)},d(t){t&&c(l)}}}function gn(n){let e,l;return e=new Me({props:{content:"Results will appear upon completion.",language:"text",class:"mb-2 lg:max-h-[24rem]",copyable:!1}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p:Z,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function wn(n){let e,l,t,r;const s=[kn,vn],o=[];function i(a,f){return a[4]?0:1}return e=i(n),l=o[e]=s[e](n),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,f){o[e].m(a,f),v(a,t,f),r=!0},p(a,f){let u=e;e=i(a),e===u?o[e].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),l=o[e],l?l.p(a,f):(l=o[e]=s[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){r||(h(l),r=!0)},o(a){_(l),r=!1},d(a){o[e].d(a),a&&c(t)}}}function vn(n){let e,l;return e=new Me({props:{content:n[1],class:"mb-2 lg:max-h-[23.5rem]"}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2&&(s.content=t[1]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function kn(n){let e,l,t=n[2],r=[];for(let o=0;o_(r[o],1,1,()=>{r[o]=null});return{c(){e=E("div");for(let o=0;o{f=null}),te());let H=o;o=d(w),o===H?m[o].p(w,b):(ee(),_(m[H],1,1,()=>{m[H]=null}),te(),i=m[o],i?i.p(w,b):(i=m[o]=u[o](w),i.c()),h(i,1),i.m(e,null)),lt(e,D=ut($,[{class:"flex w-full flex-col lg:w-1/2"},b&32&&w[5]]))},i(w){a||(h(f),h(i),a=!0)},o(w){_(f),_(i),a=!1},d(w){w&&c(e),f&&f.d(),m[o].d()}}}function En(n,e,l){let t,r,s;const o=["content","title"];let i=rt(e,o),{content:a}=e,{title:f}=e;const u=m=>{try{const d=JSON.parse(m);return Array.isArray(d)?d:[]}catch{return[]}};return n.$$set=m=>{e=Pe(Pe({},e),$l(m)),l(5,i=rt(e,o)),"content"in m&&l(1,a=m.content),"title"in m&&l(0,f=m.title)},n.$$.update=()=>{n.$$.dirty&2&&l(2,t=u(a)),n.$$.dirty&4&&l(4,r=t.length>0),n.$$.dirty&4&&l(3,s=t.length>1)},[f,a,t,s,r,i]}class ul extends $e{constructor(e){super(),_e(this,e,En,bn,ge,{content:1,title:0})}}function yn(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key up"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key up"),a.forEach(c),this.h()},h(){g(l,"d","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 320 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Tn extends $e{constructor(e){super(),_e(this,e,null,yn,ge,{})}}function In(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key down"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key down"),a.forEach(c),this.h()},h(){g(l,"d","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 320 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Cn extends $e{constructor(e){super(),_e(this,e,null,In,ge,{})}}function An(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key right"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key right"),a.forEach(c),this.h()},h(){g(l,"d","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 256 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Wn extends $e{constructor(e){super(),_e(this,e,null,An,ge,{})}}function Dn(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key left"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key left"),a.forEach(c),this.h()},h(){g(l,"d","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 256 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Sn extends $e{constructor(e){super(),_e(this,e,null,Dn,ge,{})}}function Nn(n){let e;const l=n[3].default,t=Fe(l,n,n[4],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){t&&t.p&&(!e||s&16)&&Oe(t,l,r,r[4],e?je(l,r[4],s,null):Le(r[4]),null)},i(r){e||(h(t,r),e=!0)},o(r){_(t,r),e=!1},d(r){t&&t.d(r)}}}function Rn(n){let e,l,t;var r=n[2][n[1]];function s(o){return{}}return r&&(e=nt(r,s())),{c(){e&&C(e.$$.fragment),l=re()},l(o){e&&S(e.$$.fragment,o),l=re()},m(o,i){e&&A(e,o,i),v(o,l,i),t=!0},p(o,i){if(r!==(r=o[2][o[1]])){if(e){ee();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),te()}r?(e=nt(r,s()),C(e.$$.fragment),h(e.$$.fragment,1),A(e,l.parentNode,l)):e=null}},i(o){t||(e&&h(e.$$.fragment,o),t=!0)},o(o){e&&_(e.$$.fragment,o),t=!1},d(o){o&&c(l),e&&W(e,o)}}}function Pn(n){let e,l,t,r;const s=[Rn,Nn],o=[];function i(a,f){return a[1]?0:1}return l=i(n),t=o[l]=s[l](n),{c(){e=E("kbd"),t.c(),this.h()},l(a){e=y(a,"KBD",{class:!0});var f=k(e);t.l(f),f.forEach(c),this.h()},h(){g(e,"class","shortcut svelte-y44j93")},m(a,f){v(a,e,f),o[l].m(e,null),r=!0},p(a,f){let u=l;l=i(a),l===u?o[l].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),t=o[l],t?t.p(a,f):(t=o[l]=s[l](a),t.c()),h(t,1),t.m(e,null))},i(a){r||(h(t),r=!0)},o(a){_(t),r=!1},d(a){a&&c(e),o[l].d()}}}function Vn(n){let e,l;return e=new vl({props:{text:n[0],hide:!n[0],top:!0,$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,[r]){const s={};r&1&&(s.text=t[0]),r&1&&(s.hide=!t[0]),r&18&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Bn(n,e,l){let{$$slots:t={},$$scope:r}=e,{tooltipText:s=""}=e,{arrow:o=void 0}=e;const i={up:Tn,down:Cn,left:Sn,right:Wn};return n.$$set=a=>{"tooltipText"in a&&l(0,s=a.tooltipText),"arrow"in a&&l(1,o=a.arrow),"$$scope"in a&&l(4,r=a.$$scope)},[s,o,i,t,r]}class Se extends $e{constructor(e){super(),_e(this,e,Bn,Vn,ge,{tooltipText:0,arrow:1})}}function Hn(n){let e,l;return{c(){e=E("span"),l=N("?"),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,"?"),r.forEach(c),this.h()},h(){g(e,"class","flex h-[24px] w-[24px] items-center justify-center text-xl")},m(t,r){v(t,e,r),p(e,l)},p:Z,d(t){t&&c(e)}}}function Fn(n){let e;return{c(){e=N("L")},l(l){e=R(l,"L")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function On(n){let e;return{c(){e=N("H")},l(l){e=R(l,"H")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function Ln(n){let e;return{c(){e=N("J")},l(l){e=R(l,"J")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function jn(n){let e;return{c(){e=N("K")},l(l){e=R(l,"K")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function Mn(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z,J,M,ie;return s=new Se({props:{arrow:"right"}}),i=new Se({props:{$$slots:{default:[Fn]},$$scope:{ctx:n}}}),d=new Se({props:{arrow:"left"}}),D=new Se({props:{$$slots:{default:[On]},$$scope:{ctx:n}}}),U=new Se({props:{arrow:"down"}}),Y=new Se({props:{$$slots:{default:[Ln]},$$scope:{ctx:n}}}),z=new Se({props:{arrow:"up"}}),M=new Se({props:{$$slots:{default:[jn]},$$scope:{ctx:n}}}),{c(){e=E("div"),l=E("div"),t=N(`Next Page `),r=E("div"),C(s.$$.fragment),o=N("|"),C(i.$$.fragment),a=T(),f=E("div"),u=N(`Previous Page diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.c0e3330b.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.23c96af1.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.c0e3330b.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.23c96af1.js index 01db6aa0a8..54d3fafd95 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.c0e3330b.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.23c96af1.js @@ -1,4 +1,4 @@ -import{S as Vt,b as Wt,a as Ft,m as te,p as ie,u as X,f as z,n as Ye,k as T,N as ks,q as se,Q as Br,T as Uh,V as Kh,U as Gh,a5 as Ir,M as Qh,o as sr,O as Jh,P as Yh,A as _e,Y as kt,C as _,c as Z,D as V,d as ee,E as W,L as N,Z as vt,j as O,z as St,g as B,h as xt,F,e as yn,a7 as xl,w as ke,x as ve,K as ge,_ as Ie,i as Al,y as zn,aj as rr,$ as Cl,af as Ol,G as Tl,H as Ml,I as Dl,J as Pl}from"../chunks/index.a36c9cb0.js";import{w as Xh}from"../chunks/index.deae5bd4.js";import{p as or}from"../chunks/stores.0bc9ce95.js";import{r as ut,w as cn,i as Zh}from"../chunks/workflow-run.8a407b5f.js";import{e as Ci,A as Bl,t as Rr,i as ef,f as tf}from"../chunks/events-service.2f6a3c54.js";import{a as nf}from"../chunks/auth-user.3a7bc4db.js";import{f as Il}from"../chunks/icon-button.bcd06a36.js";import{a as un,e as Er}from"../chunks/event-view.f557cd63.js";import{S as sf,O as rf,w as of,a as lf,b as af}from"../chunks/workflow-terminate-enabled.3468108e.js";import{g as ii,h as Wi,i as Fi,j as Hi,k as zi,r as $r}from"../chunks/route-for.70dfbf18.js";import{B as lr}from"../chunks/badge.7f30446f.js";import{T as hf,C as ff}from"../chunks/tooltip.bd2ec5a4.js";import{c as ze,I as Rl}from"../chunks/icon.33859671.js";import{W as cf}from"../chunks/workflow-status.47d31de2.js";import{w as uf,t as df,c as pf,s as gf,r as mf,f as wf}from"../chunks/workflow-service.24d3174e.js";import{s as bf}from"../chunks/settings.34723850.js";import{c as yf}from"../chunks/core-user.f8486d3a.js";import{t as ts}from"../chunks/toaster.16c48a98.js";import{S as kf}from"../chunks/split-button.207826fc.js";import{M as vf}from"../chunks/menu-item.4122979b.js";import{M as qi}from"../chunks/modal.50ea7269.js";import{I as qn}from"../chunks/input.a193633b.js";import{p as Sf}from"../chunks/persist-store.863ae031.js";import{T as wi}from"../chunks/tab.e1caed35.js";import{T as xf}from"../chunks/toggle-switch.48168915.js";import{h as Af}from"../chunks/has.48bed8a5.js";import{L as Cf}from"../chunks/link.855bf830.js";import{L as Of}from"../chunks/loading.bcb9b7b8.js";import{g as Tf}from"../chunks/pollers-service.ed01de2f.js";import{p as Mf,c as Df}from"../chunks/is-http.1e6b12cd.js";import{g as Pf,a as Bf,c as If,d as Rf,e as Ef}from"../chunks/get-codec.f6f1b7ab.js";const El={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},$f=Xh(El),Lf=()=>{$f.set(El)};var Ge=(s=>(s[s.FirstWorkflowTask=0]="FirstWorkflowTask",s[s.LastWorkflowTask=1]="LastWorkflowTask",s[s.EventId=2]="EventId",s))(Ge||{});function Nf(s){let e;return{c(){e=te("hr"),this.h()},l(t){e=ie(t,"HR",{class:!0}),this.h()},h(){X(e,"class","mx-4 border-gray-300")},m(t,i){z(t,e,i)},p:Ye,i:Ye,o:Ye,d(t){t&&T(e)}}}class _f extends Vt{constructor(e){super(),Wt(this,e,null,Nf,Ft,{})}}class Q{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),dt.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),dt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Oi(this),r=new Oi(e);for(let o=t,l=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new $l(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ll(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Q.empty:e.length<=32?new ce(e):dt.from(ce.split(e,[]))}}class ce extends Q{constructor(e,t=Vf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((t?i:l)>=e)return new Wf(n,l,i,o);n=l+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new ce(Lr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),l=dn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ce(l,o.length+r.length));else{let a=l.length>>1;i.push(new ce(l.slice(0,a)),new ce(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ce))return super.replace(e,t,i);let n=dn(this.text,dn(i.text,Lr(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new ce(n,r):dt.from(ce.split(n,[]),r)}sliceString(e,t=this.length,i=` +import{S as Vt,b as Wt,a as Ft,m as te,p as ie,u as X,f as z,n as Ye,k as T,N as ks,q as se,Q as Br,T as Uh,V as Kh,U as Gh,a5 as Ir,M as Qh,o as sr,O as Jh,P as Yh,A as _e,Y as kt,C as _,c as Z,D as V,d as ee,E as W,L as N,Z as vt,j as O,z as St,g as B,h as xt,F,e as yn,a7 as xl,w as ke,x as ve,K as ge,_ as Ie,i as Al,y as zn,aj as rr,$ as Cl,af as Ol,G as Tl,H as Ml,I as Dl,J as Pl}from"../chunks/index.a36c9cb0.js";import{w as Xh}from"../chunks/index.deae5bd4.js";import{p as or}from"../chunks/stores.a2e3306d.js";import{r as ut,w as cn,i as Zh}from"../chunks/workflow-run.8a407b5f.js";import{e as Ci,A as Bl,t as Rr,i as ef,f as tf}from"../chunks/events-service.df63a9ac.js";import{a as nf}from"../chunks/auth-user.3a7bc4db.js";import{f as Il}from"../chunks/icon-button.bcd06a36.js";import{a as un,e as Er}from"../chunks/event-view.f557cd63.js";import{S as sf,O as rf,w as of,a as lf,b as af}from"../chunks/workflow-terminate-enabled.b144f440.js";import{g as ii,h as Wi,i as Fi,j as Hi,k as zi,r as $r}from"../chunks/route-for.087ea268.js";import{B as lr}from"../chunks/badge.7f30446f.js";import{T as hf,C as ff}from"../chunks/tooltip.bd2ec5a4.js";import{c as ze,I as Rl}from"../chunks/icon.33859671.js";import{W as cf}from"../chunks/workflow-status.47d31de2.js";import{w as uf,t as df,c as pf,s as gf,r as mf,f as wf}from"../chunks/workflow-service.b203d78a.js";import{s as bf}from"../chunks/settings.34723850.js";import{c as yf}from"../chunks/core-user.f8486d3a.js";import{t as ts}from"../chunks/toaster.16c48a98.js";import{S as kf}from"../chunks/split-button.207826fc.js";import{M as vf}from"../chunks/menu-item.4122979b.js";import{M as qi}from"../chunks/modal.50ea7269.js";import{I as qn}from"../chunks/input.a193633b.js";import{p as Sf}from"../chunks/persist-store.863ae031.js";import{T as wi}from"../chunks/tab.e1caed35.js";import{T as xf}from"../chunks/toggle-switch.48168915.js";import{h as Af}from"../chunks/has.48bed8a5.js";import{L as Cf}from"../chunks/link.855bf830.js";import{L as Of}from"../chunks/loading.bcb9b7b8.js";import{g as Tf}from"../chunks/pollers-service.4cba4448.js";import{p as Mf,c as Df}from"../chunks/is-http.1e6b12cd.js";import{g as Pf,a as Bf,c as If,d as Rf,e as Ef}from"../chunks/get-codec.d4d968ba.js";const El={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},$f=Xh(El),Lf=()=>{$f.set(El)};var Ge=(s=>(s[s.FirstWorkflowTask=0]="FirstWorkflowTask",s[s.LastWorkflowTask=1]="LastWorkflowTask",s[s.EventId=2]="EventId",s))(Ge||{});function Nf(s){let e;return{c(){e=te("hr"),this.h()},l(t){e=ie(t,"HR",{class:!0}),this.h()},h(){X(e,"class","mx-4 border-gray-300")},m(t,i){z(t,e,i)},p:Ye,i:Ye,o:Ye,d(t){t&&T(e)}}}class _f extends Vt{constructor(e){super(),Wt(this,e,null,Nf,Ft,{})}}class Q{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),dt.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),dt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Oi(this),r=new Oi(e);for(let o=t,l=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new $l(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ll(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Q.empty:e.length<=32?new ce(e):dt.from(ce.split(e,[]))}}class ce extends Q{constructor(e,t=Vf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((t?i:l)>=e)return new Wf(n,l,i,o);n=l+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new ce(Lr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),l=dn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ce(l,o.length+r.length));else{let a=l.length>>1;i.push(new ce(l.slice(0,a)),new ce(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ce))return super.replace(e,t,i);let n=dn(this.text,dn(i.text,Lr(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new ce(n,r):dt.from(ce.split(n,[]),r)}sliceString(e,t=this.length,i=` `){let n="";for(let r=0,o=0;r<=t&&oe&&o&&(n+=i),er&&(n+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,i.length==32&&(t.push(new ce(i,n)),i=[],n=-1);return n>-1&&t.push(new ce(i,n)),t}}class dt extends Q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,n);n=l+1,i=a+1}}decompose(e,t,i,n){for(let r=0,o=0;o<=t&&r=o){let h=n&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if(i.lines=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines>5-1&&a.lines>h>>5+1){let f=this.children.slice();return f[n]=a,new dt(f,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){let n="";for(let r=0,o=0;re&&r&&(n+=i),eo&&(n+=l.sliceString(e-o,t-o,i)),o=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof dt))return 0;let i=0,[n,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==o||r==l)return i;let a=this.children[n],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new ce(d,t)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],a=0,h=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof dt)for(let m of d.children)c(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof ce&&a&&(p=f[f.length-1])instanceof ce&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,f[f.length-1]=new ce(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,f.push(d))}function u(){a!=0&&(l.push(f.length==1?f[0]:dt.from(f,h)),h=-1,a=f.length=0)}for(let d of e)c(d);return u(),l.length==1?l[0]:new dt(l,t)}}Q.empty=new ce([""],0);function Vf(s){let e=-1;for(let t of s)e+=t.length+1;return e}function dn(s,e,t=0,i=1e9){for(let n=0,r=0,o=!0;r=t&&(a>i&&(l=l.slice(0,i-n)),n0?1:(e instanceof ce?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof ce?n.text.length:n.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(n instanceof ce){let a=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ce?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class $l{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Oi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ll{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Q.prototype[Symbol.iterator]=function(){return this.iter()},Oi.prototype[Symbol.iterator]=$l.prototype[Symbol.iterator]=Ll.prototype[Symbol.iterator]=function(){return this});class Wf{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}let si="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return si[e-1]<=s;return!1}function Nr(s){return s>=127462&&s<=127487}const _r=8205;function Ue(s,e,t=!0,i=!0){return(t?Nl:Hf)(s,e,i)}function Nl(s,e,t){if(e==s.length)return e;e&&_l(s.charCodeAt(e))&&Vl(s.charCodeAt(e-1))&&e--;let i=qe(s,e);for(e+=tt(i);e=0&&Nr(qe(s,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Hf(s,e,t){for(;e>0;){let i=Nl(s,e-2,t);if(i=56320&&s<57344}function Vl(s){return s>=55296&&s<56320}function qe(s,e){let t=s.charCodeAt(e);if(!Vl(t)||e+1==s.length)return t;let i=s.charCodeAt(e+1);return _l(i)?(t-55296<<10)+(i-56320)+65536:t}function Wl(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function tt(s){return s<65536?1:2}const vs=/\r\n?|\n/;var Ne=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(Ne||(Ne={}));class gt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-n);r+=l}else{if(i!=Ne.Simple&&h>=e&&(i==Ne.TrackDel&&ne||i==Ne.TrackBefore&&ne))return null;if(h>e||h==e&&t<0&&!l)return e==n||t<0?r:r+a;r+=a}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new gt(e)}static create(e){return new gt(e)}}class me extends gt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ss(this,(t,i,n,r,o)=>e=e.replace(n,n+(i-t),o),!1),e}mapDesc(e,t=!1){return xs(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n=0){t[n]=l,t[n+1]=o;let a=n>>1;for(;i.length0&&Dt(i,t,r.text),r.forward(f),l+=f}let h=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],o=0,l=null;function a(f=!1){if(!f&&!n.length)return;ou||c<0||u>t)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?Q.of(d.split(i||vs)):d:Q.empty,m=p.length;if(c==u&&m==0)return;co&&Pe(n,c-o,-1),Pe(n,u-c,m),Dt(r,n,p),o=u}}return h(e),a(!l),l}static empty(e){return new me(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==s[n+1]?s[n]+=e:e==0&&s[n]==0?s[n+1]+=t:i?(s[n]+=e,s[n+1]+=t):s.push(e,t)}function Dt(s,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],a=s.sections[o++];e(n,h,r,f,c),n=h,r=f}}}function xs(s,e,t,i=!1){let n=[],r=i?[]:null,o=new Di(s),l=new Di(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);Pe(n,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);h+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Di{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?Q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Kt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Kt(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return v.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return v.range(this.anchor,i)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return v.range(e.anchor,e.head)}static create(e,t,i){return new Kt(e,t,i)}}class v{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:v.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new v(e.ranges.map(t=>Kt.fromJSON(t)),e.main)}static single(e,t=e){return new v([v.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;ne?4:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((n,r)=>n.from-r.from),t=e.indexOf(i);for(let n=1;nr.head?v.range(a,l):v.range(l,a))}}return new v(e,t)}}function Hl(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let ar=0;class ${constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=ar++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}static define(e={}){return new $(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:hr),!!e.static,e.enables)}of(e){return new pn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function hr(s,e){return s==e||s.length==e.length&&s.every((t,i)=>t===e[i])}class pn{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=ar++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,f=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?h=!0:((t=e[c.id])!==null&&t!==void 0?t:1)&1||f.push(e[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||As(c,f)){let d=i(c);if(l?!Vr(d,c.values[o],n):!n(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let m=vn(u,p);if(this.dependencies.every(g=>g instanceof $?u.facet(g)===c.facet(g):g instanceof rt?u.field(g,!1)==c.field(g,!1):!0)||(l?Vr(d=i(c),m,n):n(d=i(c),m)))return c.values[o]=m,0}else d=i(c);return c.values[o]=d,1}}}}function Vr(s,e,t){if(s.length!=e.length)return!1;for(let i=0;is[a.id]),n=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=s[e.id]>>1;function l(a){let h=[];for(let f=0;fi===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Wr).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let r=i.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Wr.of({field:this,create:e})]}get extension(){return this}}const Ut={lowest:4,low:3,default:2,high:1,highest:0};function bi(s){return e=>new zl(e,s)}const jn={highest:bi(Ut.highest),high:bi(Ut.high),default:bi(Ut.default),low:bi(Ut.low),lowest:bi(Ut.lowest)};class zl{constructor(e,t){this.inner=e,this.prec=t}}class Un{of(e){return new Cs(this,e)}reconfigure(e){return Un.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Cs{constructor(e,t){this.compartment=e,this.inner=t}}class kn{constructor(e,t,i,n,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let n=[],r=Object.create(null),o=new Map;for(let u of qf(e,t,o))u instanceof rt?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of n)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=f&&f[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,hr(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(w=>w.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(w=>g.dynamicSlot(w)));l[p.id]=h.length<<1,h.push(g=>zf(g,p,d))}}let c=h.map(u=>u(l));return new kn(e,o,c,l,a,r)}}function qf(s,e,t){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let a=n.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Cs&&t.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Cs){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof zl)r(o.inner,o.prec);else if(o instanceof rt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof pn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Ut.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(s,Ut.default),i.reduce((o,l)=>o.concat(l))}function Ti(s,e){if(e&1)return 2;let t=e>>1,i=s.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[t]=4;let n=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|n}function vn(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const ql=$.define(),jl=$.define({combine:s=>s.some(e=>e),static:!0}),Ul=$.define({combine:s=>s.length?s[0]:void 0,static:!0}),Kl=$.define(),Gl=$.define(),Ql=$.define(),Jl=$.define({combine:s=>s.length?s[0]:!1});class Ht{constructor(e,t){this.type=e,this.value=t}static define(){return new jf}}class jf{of(e){return new Ht(this,e)}}class Uf{constructor(e){this.map=e}of(e){return new re(this,e)}}class re{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new re(this.type,t)}is(e){return this.type==e}static define(e={}){return new Uf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let r=n.map(t);r&&i.push(r)}return i}}re.reconfigure=re.define();re.appendConfig=re.define();class we{constructor(e,t,i,n,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Hl(i,t.newLength),r.some(l=>l.type==we.time)||(this.annotations=r.concat(we.time.of(Date.now())))}static create(e,t,i,n,r,o){return new we(e,t,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(we.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}we.time=Ht.define();we.userEvent=Ht.define();we.addToHistory=Ht.define();we.remote=Ht.define();function Kf(s,e){let t=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof we?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof we?s=r[0]:s=Xl(e,ri(r),!1)}return s}function Qf(s){let e=s.startState,t=e.facet(Ql),i=s;for(let n=t.length-1;n>=0;n--){let r=t[n](s);r&&Object.keys(r).length&&(i=Yl(i,Os(e,r,s.changes.newLength),!0))}return i==s?s:we.create(e,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const Jf=[];function ri(s){return s==null?Jf:Array.isArray(s)?s:[s]}var Qe=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(Qe||(Qe={}));const Yf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ts;try{Ts=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Xf(s){if(Ts)return Ts.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||Yf.test(t)))return!0}return!1}function Zf(s){return e=>{if(!/\S/.test(e))return Qe.Space;if(Xf(e))return Qe.Word;for(let t=0;t-1)return Qe.Word;return Qe.Other}}class G{constructor(e,t,i,n,r,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(a,l)),t=null),n.set(o.value.compartment,o.value.extension)):o.is(re.reconfigure)?(t=null,i=o.value):o.is(re.appendConfig)&&(t=null,i=ri(i).concat(o.value));let r;t?r=e.startState.values.slice():(t=kn.resolve(i,n,this),r=new G(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,a)=>a.reconfigure(l,this),null).values),new G(t,e.newDoc,e.newSelection,r,(o,l)=>l.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:v.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],o=ri(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return G.create({doc:e.doc,selection:v.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=kn.resolve(e.extensions||[],new Map),i=e.doc instanceof Q?e.doc:Q.of((e.doc||"").split(t.staticFacet(G.lineSeparator)||vs)),n=e.selection?e.selection instanceof v?e.selection:v.single(e.selection.anchor,e.selection.head):v.single(0);return Hl(n,i.length),t.staticFacet(jl)||(n=n.asSingle()),new G(t,i,n,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(G.tabSize)}get lineBreak(){return this.facet(G.lineSeparator)||` diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.3713d2b8.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4888e92a.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.3713d2b8.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4888e92a.js index 7b9cc29b12..6612d3f211 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.3713d2b8.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4888e92a.js @@ -1 +1 @@ -import{S as lt,b as rt,a as at,e as G,f as T,z as J,g as E,h as O,j as b,k as c,K as Pe,C as W,D as C,E as M,n as st,F as j,a1 as ft,a2 as nt,as as ot,m as $,w as I,c as k,p as h,q as d,x as A,d as w,u as S,L as u,y as B}from"../chunks/index.a36c9cb0.js";import{p as ut}from"../chunks/stores.48be4ca9.js";import{w as ct}from"../chunks/workflow-run.8a407b5f.js";import{I as mt}from"../chunks/icon.33859671.js";import{B as oe}from"../chunks/badge.7f30446f.js";import{E as pt}from"../chunks/empty-state.9fb63265.js";import{L as _t}from"../chunks/link.855bf830.js";import{C as it}from"../chunks/code-block.2cc5a38d.js";import{T as $t,a as ht}from"../chunks/table-header-row.eb620974.js";import{T as dt}from"../chunks/table-row.9df8daa0.js";import{f as te}from"../chunks/format-date.7c274b02.js";import{h as je,B as Be}from"../chunks/format-time.c8c4770b.js";import{k as qe,l as ze,j as Ke}from"../chunks/format-event-attributes.7f34c129.js";import{t as vt}from"../chunks/time-format.dc246788.js";import{t as Ue}from"../chunks/to-time-difference.7cff7598.js";import{P as bt}from"../chunks/page-title.b9565d2f.js";function Ve(o,e,l){const t=o.slice();t[4]=e[l].id,t[5]=e[l].activityId,t[6]=ot(e[l],["id","activityId"]);const f=t[6].attempt>1;return t[7]=f,t}function gt(o){let e,l;return e=new pt({props:{title:"No Pending Activities"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p:st,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function kt(o){let e,l;return e=new $t({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Pt],default:[Dt]},$$scope:{ctx:o}}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p(t,f){const r={};f&1027&&(r.$$scope={dirty:f,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function wt(o){let e=o[5]+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[5]+"")&&B(l,e)},d(t){t&&c(l)}}}function Et(o){let e=o[6].activityType+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[6].activityType+"")&&B(l,e)},d(t){t&&c(l)}}}function Ge(o){let e,l;return e=new mt({props:{class:"mr-1",name:"retry"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Tt(o){let e,l=o[6].attempt+"",t,f,r=o[7]&&Ge();return{c(){r&&r.c(),e=k(),t=I(l)},l(a){r&&r.l(a),e=w(a),t=A(a,l)},m(a,s){r&&r.m(a,s),T(a,e,s),T(a,t,s),f=!0},p(a,s){a[7]?r?s&1&&b(r,1):(r=Ge(),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(J(),E(r,1,1,()=>{r=null}),O()),(!f||s&1)&&l!==(l=a[6].attempt+"")&&B(t,l)},i(a){f||(b(r),f=!0)},o(a){E(r),f=!1},d(a){r&&r.d(a),a&&c(e),a&&c(t)}}}function Je(o){let e,l,t,f,r,a,s,i;r=new oe({props:{type:"error",$$slots:{default:[Lt]},$$scope:{ctx:o}}});let n=o[6].scheduledTime&&Oe(o);return{c(){e=$("li"),l=$("h4"),t=I("Attempts Left"),f=k(),W(r.$$.fragment),a=k(),n&&n.c(),s=G(),this.h()},l(_){e=h(_,"LI",{class:!0});var m=d(e);l=h(m,"H4",{});var g=d(l);t=A(g,"Attempts Left"),g.forEach(c),f=w(m),C(r.$$.fragment,m),m.forEach(c),a=w(_),n&&n.l(_),s=G(),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(_,m){T(_,e,m),u(e,l),u(l,t),u(e,f),M(r,e,null),T(_,a,m),n&&n.m(_,m),T(_,s,m),i=!0},p(_,m){const g={};m&1025&&(g.$$scope={dirty:m,ctx:_}),r.$set(g),_[6].scheduledTime?n?(n.p(_,m),m&1&&b(n,1)):(n=Oe(_),n.c(),b(n,1),n.m(s.parentNode,s)):n&&(J(),E(n,1,1,()=>{n=null}),O())},i(_){i||(b(r.$$.fragment,_),b(n),i=!0)},o(_){E(r.$$.fragment,_),E(n),i=!1},d(_){_&&c(e),j(r),_&&c(a),n&&n.d(_),_&&c(s)}}}function Lt(o){let e=qe(o[6].maximumAttempts,o[6].attempt)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=qe(t[6].maximumAttempts,t[6].attempt)+"")&&B(l,e)},d(t){t&&c(l)}}}function Oe(o){let e,l,t,f,r,a;return r=new oe({props:{type:"error",$$slots:{default:[It]},$$scope:{ctx:o}}}),{c(){e=$("li"),l=$("h4"),t=I("Next Retry"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Next Retry"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1025&&(n.$$scope={dirty:i,ctx:s}),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function It(o){let e=Ue(o[6].scheduledTime)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=Ue(t[6].scheduledTime)+"")&&B(l,e)},d(t){t&&c(l)}}}function At(o){let e=ze(o[6].maximumAttempts)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=ze(t[6].maximumAttempts)+"")&&B(l,e)},d(t){t&&c(l)}}}function Qe(o){let e,l,t,f,r,a,s,i=Ke(o[6].maximumAttempts,je(Be({start:Date.now(),end:o[6].expirationTime})))+"",n,_,m=o[6].heartbeatDetails&&Xe(o),g=o[6].lastFailure&&Ye(o);return{c(){m&&m.c(),e=k(),g&&g.c(),l=k(),t=$("li"),f=$("h4"),r=I("Retry Expiration"),a=k(),s=$("p"),n=I(i),this.h()},l(v){m&&m.l(v),e=w(v),g&&g.l(v),l=w(v),t=h(v,"LI",{class:!0});var D=d(t);f=h(D,"H4",{});var X=d(f);r=A(X,"Retry Expiration"),X.forEach(c),a=w(D),s=h(D,"P",{});var Y=d(s);n=A(Y,i),Y.forEach(c),D.forEach(c),this.h()},h(){S(t,"class","event-table-row svelte-pnunl5")},m(v,D){m&&m.m(v,D),T(v,e,D),g&&g.m(v,D),T(v,l,D),T(v,t,D),u(t,f),u(f,r),u(t,a),u(t,s),u(s,n),_=!0},p(v,D){v[6].heartbeatDetails?m?(m.p(v,D),D&1&&b(m,1)):(m=Xe(v),m.c(),b(m,1),m.m(e.parentNode,e)):m&&(J(),E(m,1,1,()=>{m=null}),O()),v[6].lastFailure?g?(g.p(v,D),D&1&&b(g,1)):(g=Ye(v),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(J(),E(g,1,1,()=>{g=null}),O()),(!_||D&1)&&i!==(i=Ke(v[6].maximumAttempts,je(Be({start:Date.now(),end:v[6].expirationTime})))+"")&&B(n,i)},i(v){_||(b(m),b(g),_=!0)},o(v){E(m),E(g),_=!1},d(v){m&&m.d(v),v&&c(e),g&&g.d(v),v&&c(l),v&&c(t)}}}function Xe(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].heartbeatDetails}}),{c(){e=$("li"),l=$("h4"),t=I("Heartbeat Details"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Heartbeat Details"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].heartbeatDetails),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ye(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].lastFailure}}),{c(){e=$("li"),l=$("h4"),t=I("Last Failure"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Last Failure"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].lastFailure),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ze(o){let e,l,t,f,r,a=te(o[6].lastStartedTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Started Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Started Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].lastStartedTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function xe(o){let e,l,t,f,r,a=te(o[6].scheduledTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Scheduled Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Scheduled Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].scheduledTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function et(o){let e,l,t,f,r,a=o[6].lastWorkerIdentity+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Worker Identity"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Worker Identity"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&1&&a!==(a=i[6].lastWorkerIdentity+"")&&B(s,a)},d(i){i&&c(e)}}}function Ht(o){let e,l,t,f,r,a,s,i,n,_,m,g,v,D,X,Y,q,ke,ue,z,le,we,Ee,K,Te,ce,U,re,Le,Ie,ae,se=te(o[6].lastHeartbeatTime,"relative")+"",me,Ae,V,ie,He,De,fe,ne=o[6].state+"",pe,ye,_e,$e,he,Z;t=new _t({props:{href:"#"+o[4],$$slots:{default:[wt]},$$scope:{ctx:o}}}),m=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Et]},$$scope:{ctx:o}}}),q=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Tt]},$$scope:{ctx:o}}});let y=o[7]&&Je(o);K=new oe({props:{$$slots:{default:[At]},$$scope:{ctx:o}}});let P=o[7]&&Qe(o),F=o[6].lastStartedTime&&Ze(o),N=o[6].scheduledTime&&xe(o),R=o[6].lastWorkerIdentity&&et(o);return{c(){e=$("td"),l=$("div"),W(t.$$.fragment),f=k(),r=$("td"),a=$("ul"),s=$("li"),i=$("h4"),n=I("Activity Type"),_=k(),W(m.$$.fragment),g=k(),v=$("li"),D=$("h4"),X=I("Attempt"),Y=k(),W(q.$$.fragment),ke=k(),y&&y.c(),ue=k(),z=$("li"),le=$("h4"),we=I("Maximum Attempts"),Ee=k(),W(K.$$.fragment),Te=k(),P&&P.c(),ce=k(),U=$("li"),re=$("h4"),Le=I("Last Heartbeat"),Ie=k(),ae=$("p"),me=I(se),Ae=k(),V=$("li"),ie=$("h4"),He=I("State"),De=k(),fe=$("p"),pe=I(ne),ye=k(),F&&F.c(),_e=k(),N&&N.c(),$e=k(),R&&R.c(),he=k(),this.h()},l(p){e=h(p,"TD",{class:!0});var L=d(e);l=h(L,"DIV",{class:!0});var x=d(l);C(t.$$.fragment,x),x.forEach(c),L.forEach(c),f=w(p),r=h(p,"TD",{class:!0});var ee=d(r);a=h(ee,"UL",{});var H=d(a);s=h(H,"LI",{class:!0});var Q=d(s);i=h(Q,"H4",{class:!0});var Se=d(i);n=A(Se,"Activity Type"),Se.forEach(c),_=w(Q),C(m.$$.fragment,Q),Q.forEach(c),g=w(H),v=h(H,"LI",{class:!0});var de=d(v);D=h(de,"H4",{});var Fe=d(D);X=A(Fe,"Attempt"),Fe.forEach(c),Y=w(de),C(q.$$.fragment,de),de.forEach(c),ke=w(H),y&&y.l(H),ue=w(H),z=h(H,"LI",{class:!0});var ve=d(z);le=h(ve,"H4",{});var Ne=d(le);we=A(Ne,"Maximum Attempts"),Ne.forEach(c),Ee=w(ve),C(K.$$.fragment,ve),ve.forEach(c),Te=w(H),P&&P.l(H),ce=w(H),U=h(H,"LI",{class:!0});var be=d(U);re=h(be,"H4",{});var Re=d(re);Le=A(Re,"Last Heartbeat"),Re.forEach(c),Ie=w(be),ae=h(be,"P",{});var We=d(ae);me=A(We,se),We.forEach(c),be.forEach(c),Ae=w(H),V=h(H,"LI",{class:!0});var ge=d(V);ie=h(ge,"H4",{});var Ce=d(ie);He=A(Ce,"State"),Ce.forEach(c),De=w(ge),fe=h(ge,"P",{});var Me=d(fe);pe=A(Me,ne),Me.forEach(c),ge.forEach(c),ye=w(H),F&&F.l(H),_e=w(H),N&&N.l(H),$e=w(H),R&&R.l(H),H.forEach(c),ee.forEach(c),he=w(p),this.h()},h(){S(l,"class","pt-1"),S(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),S(i,"class","font-semibold"),S(s,"class","event-table-row svelte-pnunl5"),S(v,"class","event-table-row svelte-pnunl5"),S(z,"class","event-table-row svelte-pnunl5"),S(U,"class","event-table-row svelte-pnunl5"),S(V,"class","event-table-row svelte-pnunl5"),S(r,"class","py-4 px-5")},m(p,L){T(p,e,L),u(e,l),M(t,l,null),T(p,f,L),T(p,r,L),u(r,a),u(a,s),u(s,i),u(i,n),u(s,_),M(m,s,null),u(a,g),u(a,v),u(v,D),u(D,X),u(v,Y),M(q,v,null),u(a,ke),y&&y.m(a,null),u(a,ue),u(a,z),u(z,le),u(le,we),u(z,Ee),M(K,z,null),u(a,Te),P&&P.m(a,null),u(a,ce),u(a,U),u(U,re),u(re,Le),u(U,Ie),u(U,ae),u(ae,me),u(a,Ae),u(a,V),u(V,ie),u(ie,He),u(V,De),u(V,fe),u(fe,pe),u(a,ye),F&&F.m(a,null),u(a,_e),N&&N.m(a,null),u(a,$e),R&&R.m(a,null),T(p,he,L),Z=!0},p(p,L){const x={};L&1&&(x.href="#"+p[4]),L&1025&&(x.$$scope={dirty:L,ctx:p}),t.$set(x);const ee={};L&1&&(ee.type=p[7]?"error":"default"),L&1025&&(ee.$$scope={dirty:L,ctx:p}),m.$set(ee);const H={};L&1&&(H.type=p[7]?"error":"default"),L&1025&&(H.$$scope={dirty:L,ctx:p}),q.$set(H),p[7]?y?(y.p(p,L),L&1&&b(y,1)):(y=Je(p),y.c(),b(y,1),y.m(a,ue)):y&&(J(),E(y,1,1,()=>{y=null}),O());const Q={};L&1025&&(Q.$$scope={dirty:L,ctx:p}),K.$set(Q),p[7]?P?(P.p(p,L),L&1&&b(P,1)):(P=Qe(p),P.c(),b(P,1),P.m(a,ce)):P&&(J(),E(P,1,1,()=>{P=null}),O()),(!Z||L&1)&&se!==(se=te(p[6].lastHeartbeatTime,"relative")+"")&&B(me,se),(!Z||L&1)&&ne!==(ne=p[6].state+"")&&B(pe,ne),p[6].lastStartedTime?F?F.p(p,L):(F=Ze(p),F.c(),F.m(a,_e)):F&&(F.d(1),F=null),p[6].scheduledTime?N?N.p(p,L):(N=xe(p),N.c(),N.m(a,$e)):N&&(N.d(1),N=null),p[6].lastWorkerIdentity?R?R.p(p,L):(R=et(p),R.c(),R.m(a,null)):R&&(R.d(1),R=null)},i(p){Z||(b(t.$$.fragment,p),b(m.$$.fragment,p),b(q.$$.fragment,p),b(y),b(K.$$.fragment,p),b(P),Z=!0)},o(p){E(t.$$.fragment,p),E(m.$$.fragment,p),E(q.$$.fragment,p),E(y),E(K.$$.fragment,p),E(P),Z=!1},d(p){p&&c(e),j(t),p&&c(f),p&&c(r),j(m),j(q),y&&y.d(),j(K),P&&P.d(),F&&F.d(),N&&N.d(),R&&R.d(),p&&c(he)}}}function tt(o,e){let l,t,f;return t=new dt({props:{$$slots:{default:[Ht]},$$scope:{ctx:e}}}),{key:o,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(r){l=G(),C(t.$$.fragment,r),this.h()},h(){this.first=l},m(r,a){T(r,l,a),M(t,r,a),f=!0},p(r,a){e=r;const s={};a&1027&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(r){f||(b(t.$$.fragment,r),f=!0)},o(r){E(t.$$.fragment,r),f=!1},d(r){r&&c(l),j(t,r)}}}function Dt(o){let e=[],l=new Map,t,f,r=o[0];const a=s=>s[4];for(let s=0;s{a[_]=null}),O(),l=a[e],l?l.p(i,n):(l=a[e]=r[e](i),l.c()),b(l,1),l.m(t.parentNode,t))},i(i){f||(b(l),f=!0)},o(i){E(l),f=!1},d(i){a[e].d(i),i&&c(t)}}}function Ft(o,e,l){let t,f,r;Pe(o,ct,s=>l(3,f=s)),Pe(o,vt,s=>l(1,r=s));var a;return o.$$.update=()=>{o.$$.dirty&12&&l(0,t=l(2,a=f.workflow)===null||a===void 0?void 0:a.pendingActivities)},[t,r,a,f]}class Nt extends lt{constructor(e){super(),rt(this,e,Ft,St,at,{})}}function Rt(o){let e,l,t,f;return e=new bt({props:{title:`Pending Activities | ${o[1]}`,url:o[0].url.href}}),t=new Nt({}),{c(){W(e.$$.fragment),l=k(),W(t.$$.fragment)},l(r){C(e.$$.fragment,r),l=w(r),C(t.$$.fragment,r)},m(r,a){M(e,r,a),T(r,l,a),M(t,r,a),f=!0},p(r,[a]){const s={};a&1&&(s.url=r[0].url.href),e.$set(s)},i(r){f||(b(e.$$.fragment,r),b(t.$$.fragment,r),f=!0)},o(r){E(e.$$.fragment,r),E(t.$$.fragment,r),f=!1},d(r){j(e,r),r&&c(l),j(t,r)}}}function Wt(o,e,l){let t;Pe(o,ut,r=>l(0,t=r));const f=t.params.workflow;return[t,f]}class xt extends lt{constructor(e){super(),rt(this,e,Wt,Rt,at,{})}}export{xt as default}; +import{S as lt,b as rt,a as at,e as G,f as T,z as J,g as E,h as O,j as b,k as c,K as Pe,C as W,D as C,E as M,n as st,F as j,a1 as ft,a2 as nt,as as ot,m as $,w as I,c as k,p as h,q as d,x as A,d as w,u as S,L as u,y as B}from"../chunks/index.a36c9cb0.js";import{p as ut}from"../chunks/stores.a2e3306d.js";import{w as ct}from"../chunks/workflow-run.8a407b5f.js";import{I as mt}from"../chunks/icon.33859671.js";import{B as oe}from"../chunks/badge.7f30446f.js";import{E as pt}from"../chunks/empty-state.9fb63265.js";import{L as _t}from"../chunks/link.855bf830.js";import{C as it}from"../chunks/code-block.2cc5a38d.js";import{T as $t,a as ht}from"../chunks/table-header-row.eb620974.js";import{T as dt}from"../chunks/table-row.9df8daa0.js";import{f as te}from"../chunks/format-date.7c274b02.js";import{h as je,B as Be}from"../chunks/format-time.c8c4770b.js";import{k as qe,l as ze,j as Ke}from"../chunks/format-event-attributes.7f34c129.js";import{t as vt}from"../chunks/time-format.dc246788.js";import{t as Ue}from"../chunks/to-time-difference.7cff7598.js";import{P as bt}from"../chunks/page-title.b9565d2f.js";function Ve(o,e,l){const t=o.slice();t[4]=e[l].id,t[5]=e[l].activityId,t[6]=ot(e[l],["id","activityId"]);const f=t[6].attempt>1;return t[7]=f,t}function gt(o){let e,l;return e=new pt({props:{title:"No Pending Activities"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p:st,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function kt(o){let e,l;return e=new $t({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Pt],default:[Dt]},$$scope:{ctx:o}}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p(t,f){const r={};f&1027&&(r.$$scope={dirty:f,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function wt(o){let e=o[5]+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[5]+"")&&B(l,e)},d(t){t&&c(l)}}}function Et(o){let e=o[6].activityType+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[6].activityType+"")&&B(l,e)},d(t){t&&c(l)}}}function Ge(o){let e,l;return e=new mt({props:{class:"mr-1",name:"retry"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Tt(o){let e,l=o[6].attempt+"",t,f,r=o[7]&&Ge();return{c(){r&&r.c(),e=k(),t=I(l)},l(a){r&&r.l(a),e=w(a),t=A(a,l)},m(a,s){r&&r.m(a,s),T(a,e,s),T(a,t,s),f=!0},p(a,s){a[7]?r?s&1&&b(r,1):(r=Ge(),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(J(),E(r,1,1,()=>{r=null}),O()),(!f||s&1)&&l!==(l=a[6].attempt+"")&&B(t,l)},i(a){f||(b(r),f=!0)},o(a){E(r),f=!1},d(a){r&&r.d(a),a&&c(e),a&&c(t)}}}function Je(o){let e,l,t,f,r,a,s,i;r=new oe({props:{type:"error",$$slots:{default:[Lt]},$$scope:{ctx:o}}});let n=o[6].scheduledTime&&Oe(o);return{c(){e=$("li"),l=$("h4"),t=I("Attempts Left"),f=k(),W(r.$$.fragment),a=k(),n&&n.c(),s=G(),this.h()},l(_){e=h(_,"LI",{class:!0});var m=d(e);l=h(m,"H4",{});var g=d(l);t=A(g,"Attempts Left"),g.forEach(c),f=w(m),C(r.$$.fragment,m),m.forEach(c),a=w(_),n&&n.l(_),s=G(),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(_,m){T(_,e,m),u(e,l),u(l,t),u(e,f),M(r,e,null),T(_,a,m),n&&n.m(_,m),T(_,s,m),i=!0},p(_,m){const g={};m&1025&&(g.$$scope={dirty:m,ctx:_}),r.$set(g),_[6].scheduledTime?n?(n.p(_,m),m&1&&b(n,1)):(n=Oe(_),n.c(),b(n,1),n.m(s.parentNode,s)):n&&(J(),E(n,1,1,()=>{n=null}),O())},i(_){i||(b(r.$$.fragment,_),b(n),i=!0)},o(_){E(r.$$.fragment,_),E(n),i=!1},d(_){_&&c(e),j(r),_&&c(a),n&&n.d(_),_&&c(s)}}}function Lt(o){let e=qe(o[6].maximumAttempts,o[6].attempt)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=qe(t[6].maximumAttempts,t[6].attempt)+"")&&B(l,e)},d(t){t&&c(l)}}}function Oe(o){let e,l,t,f,r,a;return r=new oe({props:{type:"error",$$slots:{default:[It]},$$scope:{ctx:o}}}),{c(){e=$("li"),l=$("h4"),t=I("Next Retry"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Next Retry"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1025&&(n.$$scope={dirty:i,ctx:s}),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function It(o){let e=Ue(o[6].scheduledTime)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=Ue(t[6].scheduledTime)+"")&&B(l,e)},d(t){t&&c(l)}}}function At(o){let e=ze(o[6].maximumAttempts)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=ze(t[6].maximumAttempts)+"")&&B(l,e)},d(t){t&&c(l)}}}function Qe(o){let e,l,t,f,r,a,s,i=Ke(o[6].maximumAttempts,je(Be({start:Date.now(),end:o[6].expirationTime})))+"",n,_,m=o[6].heartbeatDetails&&Xe(o),g=o[6].lastFailure&&Ye(o);return{c(){m&&m.c(),e=k(),g&&g.c(),l=k(),t=$("li"),f=$("h4"),r=I("Retry Expiration"),a=k(),s=$("p"),n=I(i),this.h()},l(v){m&&m.l(v),e=w(v),g&&g.l(v),l=w(v),t=h(v,"LI",{class:!0});var D=d(t);f=h(D,"H4",{});var X=d(f);r=A(X,"Retry Expiration"),X.forEach(c),a=w(D),s=h(D,"P",{});var Y=d(s);n=A(Y,i),Y.forEach(c),D.forEach(c),this.h()},h(){S(t,"class","event-table-row svelte-pnunl5")},m(v,D){m&&m.m(v,D),T(v,e,D),g&&g.m(v,D),T(v,l,D),T(v,t,D),u(t,f),u(f,r),u(t,a),u(t,s),u(s,n),_=!0},p(v,D){v[6].heartbeatDetails?m?(m.p(v,D),D&1&&b(m,1)):(m=Xe(v),m.c(),b(m,1),m.m(e.parentNode,e)):m&&(J(),E(m,1,1,()=>{m=null}),O()),v[6].lastFailure?g?(g.p(v,D),D&1&&b(g,1)):(g=Ye(v),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(J(),E(g,1,1,()=>{g=null}),O()),(!_||D&1)&&i!==(i=Ke(v[6].maximumAttempts,je(Be({start:Date.now(),end:v[6].expirationTime})))+"")&&B(n,i)},i(v){_||(b(m),b(g),_=!0)},o(v){E(m),E(g),_=!1},d(v){m&&m.d(v),v&&c(e),g&&g.d(v),v&&c(l),v&&c(t)}}}function Xe(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].heartbeatDetails}}),{c(){e=$("li"),l=$("h4"),t=I("Heartbeat Details"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Heartbeat Details"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].heartbeatDetails),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ye(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].lastFailure}}),{c(){e=$("li"),l=$("h4"),t=I("Last Failure"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Last Failure"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].lastFailure),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ze(o){let e,l,t,f,r,a=te(o[6].lastStartedTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Started Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Started Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].lastStartedTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function xe(o){let e,l,t,f,r,a=te(o[6].scheduledTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Scheduled Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Scheduled Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].scheduledTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function et(o){let e,l,t,f,r,a=o[6].lastWorkerIdentity+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Worker Identity"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Worker Identity"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&1&&a!==(a=i[6].lastWorkerIdentity+"")&&B(s,a)},d(i){i&&c(e)}}}function Ht(o){let e,l,t,f,r,a,s,i,n,_,m,g,v,D,X,Y,q,ke,ue,z,le,we,Ee,K,Te,ce,U,re,Le,Ie,ae,se=te(o[6].lastHeartbeatTime,"relative")+"",me,Ae,V,ie,He,De,fe,ne=o[6].state+"",pe,ye,_e,$e,he,Z;t=new _t({props:{href:"#"+o[4],$$slots:{default:[wt]},$$scope:{ctx:o}}}),m=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Et]},$$scope:{ctx:o}}}),q=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Tt]},$$scope:{ctx:o}}});let y=o[7]&&Je(o);K=new oe({props:{$$slots:{default:[At]},$$scope:{ctx:o}}});let P=o[7]&&Qe(o),F=o[6].lastStartedTime&&Ze(o),N=o[6].scheduledTime&&xe(o),R=o[6].lastWorkerIdentity&&et(o);return{c(){e=$("td"),l=$("div"),W(t.$$.fragment),f=k(),r=$("td"),a=$("ul"),s=$("li"),i=$("h4"),n=I("Activity Type"),_=k(),W(m.$$.fragment),g=k(),v=$("li"),D=$("h4"),X=I("Attempt"),Y=k(),W(q.$$.fragment),ke=k(),y&&y.c(),ue=k(),z=$("li"),le=$("h4"),we=I("Maximum Attempts"),Ee=k(),W(K.$$.fragment),Te=k(),P&&P.c(),ce=k(),U=$("li"),re=$("h4"),Le=I("Last Heartbeat"),Ie=k(),ae=$("p"),me=I(se),Ae=k(),V=$("li"),ie=$("h4"),He=I("State"),De=k(),fe=$("p"),pe=I(ne),ye=k(),F&&F.c(),_e=k(),N&&N.c(),$e=k(),R&&R.c(),he=k(),this.h()},l(p){e=h(p,"TD",{class:!0});var L=d(e);l=h(L,"DIV",{class:!0});var x=d(l);C(t.$$.fragment,x),x.forEach(c),L.forEach(c),f=w(p),r=h(p,"TD",{class:!0});var ee=d(r);a=h(ee,"UL",{});var H=d(a);s=h(H,"LI",{class:!0});var Q=d(s);i=h(Q,"H4",{class:!0});var Se=d(i);n=A(Se,"Activity Type"),Se.forEach(c),_=w(Q),C(m.$$.fragment,Q),Q.forEach(c),g=w(H),v=h(H,"LI",{class:!0});var de=d(v);D=h(de,"H4",{});var Fe=d(D);X=A(Fe,"Attempt"),Fe.forEach(c),Y=w(de),C(q.$$.fragment,de),de.forEach(c),ke=w(H),y&&y.l(H),ue=w(H),z=h(H,"LI",{class:!0});var ve=d(z);le=h(ve,"H4",{});var Ne=d(le);we=A(Ne,"Maximum Attempts"),Ne.forEach(c),Ee=w(ve),C(K.$$.fragment,ve),ve.forEach(c),Te=w(H),P&&P.l(H),ce=w(H),U=h(H,"LI",{class:!0});var be=d(U);re=h(be,"H4",{});var Re=d(re);Le=A(Re,"Last Heartbeat"),Re.forEach(c),Ie=w(be),ae=h(be,"P",{});var We=d(ae);me=A(We,se),We.forEach(c),be.forEach(c),Ae=w(H),V=h(H,"LI",{class:!0});var ge=d(V);ie=h(ge,"H4",{});var Ce=d(ie);He=A(Ce,"State"),Ce.forEach(c),De=w(ge),fe=h(ge,"P",{});var Me=d(fe);pe=A(Me,ne),Me.forEach(c),ge.forEach(c),ye=w(H),F&&F.l(H),_e=w(H),N&&N.l(H),$e=w(H),R&&R.l(H),H.forEach(c),ee.forEach(c),he=w(p),this.h()},h(){S(l,"class","pt-1"),S(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),S(i,"class","font-semibold"),S(s,"class","event-table-row svelte-pnunl5"),S(v,"class","event-table-row svelte-pnunl5"),S(z,"class","event-table-row svelte-pnunl5"),S(U,"class","event-table-row svelte-pnunl5"),S(V,"class","event-table-row svelte-pnunl5"),S(r,"class","py-4 px-5")},m(p,L){T(p,e,L),u(e,l),M(t,l,null),T(p,f,L),T(p,r,L),u(r,a),u(a,s),u(s,i),u(i,n),u(s,_),M(m,s,null),u(a,g),u(a,v),u(v,D),u(D,X),u(v,Y),M(q,v,null),u(a,ke),y&&y.m(a,null),u(a,ue),u(a,z),u(z,le),u(le,we),u(z,Ee),M(K,z,null),u(a,Te),P&&P.m(a,null),u(a,ce),u(a,U),u(U,re),u(re,Le),u(U,Ie),u(U,ae),u(ae,me),u(a,Ae),u(a,V),u(V,ie),u(ie,He),u(V,De),u(V,fe),u(fe,pe),u(a,ye),F&&F.m(a,null),u(a,_e),N&&N.m(a,null),u(a,$e),R&&R.m(a,null),T(p,he,L),Z=!0},p(p,L){const x={};L&1&&(x.href="#"+p[4]),L&1025&&(x.$$scope={dirty:L,ctx:p}),t.$set(x);const ee={};L&1&&(ee.type=p[7]?"error":"default"),L&1025&&(ee.$$scope={dirty:L,ctx:p}),m.$set(ee);const H={};L&1&&(H.type=p[7]?"error":"default"),L&1025&&(H.$$scope={dirty:L,ctx:p}),q.$set(H),p[7]?y?(y.p(p,L),L&1&&b(y,1)):(y=Je(p),y.c(),b(y,1),y.m(a,ue)):y&&(J(),E(y,1,1,()=>{y=null}),O());const Q={};L&1025&&(Q.$$scope={dirty:L,ctx:p}),K.$set(Q),p[7]?P?(P.p(p,L),L&1&&b(P,1)):(P=Qe(p),P.c(),b(P,1),P.m(a,ce)):P&&(J(),E(P,1,1,()=>{P=null}),O()),(!Z||L&1)&&se!==(se=te(p[6].lastHeartbeatTime,"relative")+"")&&B(me,se),(!Z||L&1)&&ne!==(ne=p[6].state+"")&&B(pe,ne),p[6].lastStartedTime?F?F.p(p,L):(F=Ze(p),F.c(),F.m(a,_e)):F&&(F.d(1),F=null),p[6].scheduledTime?N?N.p(p,L):(N=xe(p),N.c(),N.m(a,$e)):N&&(N.d(1),N=null),p[6].lastWorkerIdentity?R?R.p(p,L):(R=et(p),R.c(),R.m(a,null)):R&&(R.d(1),R=null)},i(p){Z||(b(t.$$.fragment,p),b(m.$$.fragment,p),b(q.$$.fragment,p),b(y),b(K.$$.fragment,p),b(P),Z=!0)},o(p){E(t.$$.fragment,p),E(m.$$.fragment,p),E(q.$$.fragment,p),E(y),E(K.$$.fragment,p),E(P),Z=!1},d(p){p&&c(e),j(t),p&&c(f),p&&c(r),j(m),j(q),y&&y.d(),j(K),P&&P.d(),F&&F.d(),N&&N.d(),R&&R.d(),p&&c(he)}}}function tt(o,e){let l,t,f;return t=new dt({props:{$$slots:{default:[Ht]},$$scope:{ctx:e}}}),{key:o,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(r){l=G(),C(t.$$.fragment,r),this.h()},h(){this.first=l},m(r,a){T(r,l,a),M(t,r,a),f=!0},p(r,a){e=r;const s={};a&1027&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(r){f||(b(t.$$.fragment,r),f=!0)},o(r){E(t.$$.fragment,r),f=!1},d(r){r&&c(l),j(t,r)}}}function Dt(o){let e=[],l=new Map,t,f,r=o[0];const a=s=>s[4];for(let s=0;s{a[_]=null}),O(),l=a[e],l?l.p(i,n):(l=a[e]=r[e](i),l.c()),b(l,1),l.m(t.parentNode,t))},i(i){f||(b(l),f=!0)},o(i){E(l),f=!1},d(i){a[e].d(i),i&&c(t)}}}function Ft(o,e,l){let t,f,r;Pe(o,ct,s=>l(3,f=s)),Pe(o,vt,s=>l(1,r=s));var a;return o.$$.update=()=>{o.$$.dirty&12&&l(0,t=l(2,a=f.workflow)===null||a===void 0?void 0:a.pendingActivities)},[t,r,a,f]}class Nt extends lt{constructor(e){super(),rt(this,e,Ft,St,at,{})}}function Rt(o){let e,l,t,f;return e=new bt({props:{title:`Pending Activities | ${o[1]}`,url:o[0].url.href}}),t=new Nt({}),{c(){W(e.$$.fragment),l=k(),W(t.$$.fragment)},l(r){C(e.$$.fragment,r),l=w(r),C(t.$$.fragment,r)},m(r,a){M(e,r,a),T(r,l,a),M(t,r,a),f=!0},p(r,[a]){const s={};a&1&&(s.url=r[0].url.href),e.$set(s)},i(r){f||(b(e.$$.fragment,r),b(t.$$.fragment,r),f=!0)},o(r){E(e.$$.fragment,r),E(t.$$.fragment,r),f=!1},d(r){j(e,r),r&&c(l),j(t,r)}}}function Wt(o,e,l){let t;Pe(o,ut,r=>l(0,t=r));const f=t.params.workflow;return[t,f]}class xt extends lt{constructor(e){super(),rt(this,e,Wt,Rt,at,{})}}export{xt as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.779cfcab.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.83cb87ac.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.779cfcab.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.83cb87ac.js index 45e995bb84..47d44757e1 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.779cfcab.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.83cb87ac.js @@ -1,3 +1,3 @@ -import{S as Z,b as G,a as H,aq as J,m as j,p as S,q as C,k as p,f as w,ar as M,j as g,g as h,K as U,C as y,D as E,E as q,n as $,F as I,A as x,Y as ee,c as N,w as Q,d as O,x as A,u as D,L as v,Z as te,e as K,z as ne,h as re,a7 as le}from"../chunks/index.a36c9cb0.js";import{p as X}from"../chunks/stores.0bc9ce95.js";import{g as oe,a as ae}from"../chunks/query-service.f44e9910.js";import{C as se}from"../chunks/code-block.2cc5a38d.js";import{S as ce,a as ue}from"../chunks/simple-select.6bb2c039.js";import{E as ie}from"../chunks/empty-state.9fb63265.js";import{B as fe}from"../chunks/button.dbc76a4c.js";import{L as me}from"../chunks/loading.bcb9b7b8.js";import{a as pe}from"../chunks/auth-user.3a7bc4db.js";import{T as $e}from"../chunks/toggle-switch.48168915.js";import{P as ge}from"../chunks/page-title.b9565d2f.js";function W(l,t,r){const e=l.slice();return e[16]=t[r],e}function _e(l){var e;let t,r;return t=new ie({props:{title:"An Error Occurred",content:"Please make sure you have at least one worker running.",error:(e=l[19])==null?void 0:e.message}}),{c(){y(t.$$.fragment)},l(n){E(t.$$.fragment,n)},m(n,o){q(t,n,o),r=!0},p:$,i(n){r||(g(t.$$.fragment,n),r=!0)},o(n){h(t.$$.fragment,n),r=!1},d(n){I(t,n)}}}function he(l){let t,r,e,n,o,a,s,c,u,B,d,T,k,L,P;function R(i){l[5](i)}let _={id:"query-select",label:"Query Type",testId:"query-select",$$slots:{default:[ke]},$$scope:{ctx:l}};l[0]!==void 0&&(_.value=l[0]),e=new ce({props:_}),x.push(()=>ee(e,"value",R)),a=new fe({props:{icon:"retry",loading:Ie,$$slots:{default:[be]},$$scope:{ctx:l}}}),a.$on("click",l[6]),d=new $e({props:{id:"json-formatting",checked:l[2]}}),d.$on("change",l[7]);let m={ctx:l,current:null,token:null,hasCatch:!1,pending:ye,then:we,catch:ve,value:15,blocks:[,,,]};return J(L=l[1],m),{c(){t=j("div"),r=j("div"),y(e.$$.fragment),o=N(),y(a.$$.fragment),s=N(),c=j("div"),u=j("label"),B=Q(`JSON Formatting +import{S as Z,b as G,a as H,aq as J,m as j,p as S,q as C,k as p,f as w,ar as M,j as g,g as h,K as U,C as y,D as E,E as q,n as $,F as I,A as x,Y as ee,c as N,w as Q,d as O,x as A,u as D,L as v,Z as te,e as K,z as ne,h as re,a7 as le}from"../chunks/index.a36c9cb0.js";import{p as X}from"../chunks/stores.a2e3306d.js";import{g as oe,a as ae}from"../chunks/query-service.d960637f.js";import{C as se}from"../chunks/code-block.2cc5a38d.js";import{S as ce,a as ue}from"../chunks/simple-select.6bb2c039.js";import{E as ie}from"../chunks/empty-state.9fb63265.js";import{B as fe}from"../chunks/button.dbc76a4c.js";import{L as me}from"../chunks/loading.bcb9b7b8.js";import{a as pe}from"../chunks/auth-user.3a7bc4db.js";import{T as $e}from"../chunks/toggle-switch.48168915.js";import{P as ge}from"../chunks/page-title.b9565d2f.js";function W(l,t,r){const e=l.slice();return e[16]=t[r],e}function _e(l){var e;let t,r;return t=new ie({props:{title:"An Error Occurred",content:"Please make sure you have at least one worker running.",error:(e=l[19])==null?void 0:e.message}}),{c(){y(t.$$.fragment)},l(n){E(t.$$.fragment,n)},m(n,o){q(t,n,o),r=!0},p:$,i(n){r||(g(t.$$.fragment,n),r=!0)},o(n){h(t.$$.fragment,n),r=!1},d(n){I(t,n)}}}function he(l){let t,r,e,n,o,a,s,c,u,B,d,T,k,L,P;function R(i){l[5](i)}let _={id:"query-select",label:"Query Type",testId:"query-select",$$slots:{default:[ke]},$$scope:{ctx:l}};l[0]!==void 0&&(_.value=l[0]),e=new ce({props:_}),x.push(()=>ee(e,"value",R)),a=new fe({props:{icon:"retry",loading:Ie,$$slots:{default:[be]},$$scope:{ctx:l}}}),a.$on("click",l[6]),d=new $e({props:{id:"json-formatting",checked:l[2]}}),d.$on("change",l[7]);let m={ctx:l,current:null,token:null,hasCatch:!1,pending:ye,then:we,catch:ve,value:15,blocks:[,,,]};return J(L=l[1],m),{c(){t=j("div"),r=j("div"),y(e.$$.fragment),o=N(),y(a.$$.fragment),s=N(),c=j("div"),u=j("label"),B=Q(`JSON Formatting `),y(d.$$.fragment),T=N(),k=j("div"),m.block.c(),this.h()},l(i){t=S(i,"DIV",{class:!0});var f=C(t);r=S(f,"DIV",{class:!0});var b=C(r);E(e.$$.fragment,b),o=O(b),E(a.$$.fragment,b),b.forEach(p),s=O(f),c=S(f,"DIV",{class:!0});var F=C(c);u=S(F,"LABEL",{for:!0,class:!0});var V=C(u);B=A(V,`JSON Formatting `),E(d.$$.fragment,V),V.forEach(p),F.forEach(p),f.forEach(p),T=O(i),k=S(i,"DIV",{class:!0});var z=C(k);m.block.l(z),z.forEach(p),this.h()},h(){D(r,"class","flex items-center gap-4"),D(u,"for","json-formatting"),D(u,"class","flex items-center gap-4 font-secondary text-sm"),D(c,"class","flex justify-end"),D(t,"class","flex justify-between"),D(k,"class","flex items-start h-full")},m(i,f){w(i,t,f),v(t,r),q(e,r,null),v(r,o),q(a,r,null),v(t,s),v(t,c),v(c,u),v(u,B),q(d,u,null),w(i,T,f),w(i,k,f),m.block.m(k,m.anchor=null),m.mount=()=>k,m.anchor=null,P=!0},p(i,f){l=i;const b={};f&1048576&&(b.$$scope={dirty:f,ctx:l}),!n&&f&1&&(n=!0,b.value=l[0],te(()=>n=!1)),e.$set(b);const F={};f&1048576&&(F.$$scope={dirty:f,ctx:l}),a.$set(F);const V={};f&4&&(V.checked=l[2]),d.$set(V),m.ctx=l,f&2&&L!==(L=l[1])&&J(L,m)||M(m,l,f)},i(i){P||(g(e.$$.fragment,i),g(a.$$.fragment,i),g(d.$$.fragment,i),g(m.block),P=!0)},o(i){h(e.$$.fragment,i),h(a.$$.fragment,i),h(d.$$.fragment,i);for(let f=0;f<3;f+=1){const b=m.blocks[f];h(b)}P=!1},d(i){i&&p(t),I(e),I(a),I(d),i&&p(T),i&&p(k),m.block.d(),m.token=null,m=null}}}function de(l){let t=l[16]+"",r;return{c(){r=Q(t)},l(e){r=A(e,t)},m(e,n){w(e,r,n)},p:$,d(e){e&&p(r)}}}function Y(l){let t,r;return t=new ue({props:{value:l[16],$$slots:{default:[de]},$$scope:{ctx:l}}}),{c(){y(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,n){q(t,e,n),r=!0},p(e,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){h(t.$$.fragment,e),r=!1},d(e){I(t,e)}}}function ke(l){let t,r,e=l[14],n=[];for(let a=0;ah(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,r=!0},p(n,[o]){l=n,M(e,l,o)},i(n){r||(g(e.block),r=!0)},o(n){for(let o=0;o<3;o+=1){const a=e.blocks[o];h(a)}r=!1},d(n){n&&p(t),e.block.d(),e.token=null,e=null}}}let Ie=!1;function Te(l,t,r){let e,n;U(l,pe,_=>r(8,e=_)),U(l,X,_=>r(9,n=_));const{namespace:o,workflow:a,run:s}=n.params,c={id:a,runId:s};let u,B=oe({namespace:o,workflow:c}).then(_=>(r(0,u=u||_[0]),_)),d;const T=_=>{var m;r(1,d=ae({namespace:o,workflow:c,queryType:_},(m=n.data)===null||m===void 0?void 0:m.settings,e==null?void 0:e.accessToken))};let k=!0;function L(_){u=_,r(0,u)}const P=()=>T(u),R=()=>r(2,k=!k);return l.$$.update=()=>{l.$$.dirty&1&&u&&T(u)},[u,d,k,B,T,L,P,R]}class je extends Z{constructor(t){super(),G(this,t,Te,qe,H,{})}}function Se(l){let t,r,e,n;return t=new ge({props:{title:`Query | ${l[1]}`,url:l[0].url.href}}),e=new je({}),{c(){y(t.$$.fragment),r=N(),y(e.$$.fragment)},l(o){E(t.$$.fragment,o),r=O(o),E(e.$$.fragment,o)},m(o,a){q(t,o,a),w(o,r,a),q(e,o,a),n=!0},p(o,[a]){const s={};a&1&&(s.url=o[0].url.href),t.$set(s)},i(o){n||(g(t.$$.fragment,o),g(e.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),h(e.$$.fragment,o),n=!1},d(o){I(t,o),o&&p(r),I(e,o)}}}function Ce(l,t,r){let e;U(l,X,o=>r(0,e=o));const n=e.params.workflow;return[e,n]}class Je extends Z{constructor(t){super(),G(this,t,Ce,Se,H,{})}}export{Je as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a37c5bb6.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.9a05b12d.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a37c5bb6.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.9a05b12d.js index 7b967e48b1..6a79304253 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a37c5bb6.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.9a05b12d.js @@ -1 +1 @@ -import{S as B,b as F,a as O,m as E,p as S,q as L,k as _,f as d,z as U,g as k,h as j,j as $,K as q,C as w,D as v,E as T,F as y,aq as Q,e as C,ar as H,w as h,x as b,L as g,y as z,n as A,c as D,d as I,u as N}from"../chunks/index.a36c9cb0.js";import{p as K}from"../chunks/stores.0bc9ce95.js";import{w as J}from"../chunks/workflow-run.8a407b5f.js";import{b as W}from"../chunks/query-service.f44e9910.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{B as X}from"../chunks/button.dbc76a4c.js";import{E as G}from"../chunks/empty-state.9fb63265.js";import{L as Y}from"../chunks/loading.bcb9b7b8.js";import{L as Z}from"../chunks/link.855bf830.js";import{a as x}from"../chunks/auth-user.3a7bc4db.js";import{P as ee}from"../chunks/page-title.b9565d2f.js";function te(c){let t,r;return t=new G({props:{title:"No Stack Traces Found",testId:"query-stack-trace-empty",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p(e,a){const n={};a&4105&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function re(c){let t,r,e,a={ctx:c,current:null,token:null,hasCatch:!0,pending:ce,then:le,catch:oe,value:10,error:11,blocks:[,,,]};return Q(r=c[2],a),{c(){t=C(),a.block.c()},l(n){t=C(),a.block.l(n)},m(n,o){d(n,t,o),a.block.m(n,a.anchor=o),a.mount=()=>t.parentNode,a.anchor=t,e=!0},p(n,o){c=n,a.ctx=c,o&4&&r!==(r=c[2])&&Q(r,a)||H(a,c,o)},i(n){e||($(a.block),e=!0)},o(n){for(let o=0;o<3;o+=1){const l=a.blocks[o];k(l)}e=!1},d(n){n&&_(t),a.block.d(n),a.token=null,a=null}}}function V(c){var p;let t,r,e,a,n=((p=c[0])==null?void 0:p.taskQueue)+"",o,l,s;return e=new Z({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ne]},$$scope:{ctx:c}}}),{c(){t=E("p"),r=h("To enable "),w(e.$$.fragment),a=h(", run a Worker on the "),o=h(n),l=h(" Task Queue.")},l(i){t=S(i,"P",{});var f=L(t);r=b(f,"To enable "),v(e.$$.fragment,f),a=b(f,", run a Worker on the "),o=b(f,n),l=b(f," Task Queue."),f.forEach(_)},m(i,f){d(i,t,f),g(t,r),T(e,t,null),g(t,a),g(t,o),g(t,l),s=!0},p(i,f){var u;const m={};f&4096&&(m.$$scope={dirty:f,ctx:i}),e.$set(m),(!s||f&1)&&n!==(n=((u=i[0])==null?void 0:u.taskQueue)+"")&&z(o,n)},i(i){s||($(e.$$.fragment,i),s=!0)},o(i){k(e.$$.fragment,i),s=!1},d(i){i&&_(t),y(e)}}}function ne(c){let t;return{c(){t=h("stack traces")},l(r){t=b(r,"stack traces")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ae(c){var a,n,o;let t,r,e=((a=c[0])==null?void 0:a.isRunning)&&((o=(n=c[3])==null?void 0:n.pollers)==null?void 0:o.length)===0&&V(c);return{c(){e&&e.c(),t=C()},l(l){e&&e.l(l),t=C()},m(l,s){e&&e.m(l,s),d(l,t,s),r=!0},p(l,s){var p,i,f;(p=l[0])!=null&&p.isRunning&&((f=(i=l[3])==null?void 0:i.pollers)==null?void 0:f.length)===0?e?(e.p(l,s),s&9&&$(e,1)):(e=V(l),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(U(),k(e,1,1,()=>{e=null}),j())},i(l){r||($(e),r=!0)},o(l){k(e),r=!1},d(l){e&&e.d(l),l&&_(t)}}}function oe(c){let t,r;return t=new G({props:{title:"An Error Occured",content:"Please make sure you have at least one worker running."}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p:A,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function le(c){let t,r,e,a,n,o=c[1].toLocaleTimeString()+"",l,s,p,i,f;return r=new X({props:{icon:"retry",loading:ue,$$slots:{default:[se]},$$scope:{ctx:c}}}),r.$on("click",c[4]),i=new M({props:{content:c[10],language:"text",testId:"query-stack-trace"}}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("Stack Trace at "),l=h(o),s=D(),p=E("div"),w(i.$$.fragment),this.h()},l(m){t=S(m,"DIV",{class:!0});var u=L(t);v(r.$$.fragment,u),e=I(u),a=S(u,"P",{});var R=L(a);n=b(R,"Stack Trace at "),l=b(R,o),R.forEach(_),u.forEach(_),s=I(m),p=S(m,"DIV",{class:!0});var P=L(p);v(i.$$.fragment,P),P.forEach(_),this.h()},h(){N(t,"class","flex items-center gap-4"),N(p,"class","flex items-start h-full")},m(m,u){d(m,t,u),T(r,t,null),g(t,e),g(t,a),g(a,n),g(a,l),d(m,s,u),d(m,p,u),T(i,p,null),f=!0},p(m,u){const R={};u&4096&&(R.$$scope={dirty:u,ctx:m}),r.$set(R),(!f||u&2)&&o!==(o=m[1].toLocaleTimeString()+"")&&z(l,o);const P={};u&4&&(P.content=m[10]),i.$set(P)},i(m){f||($(r.$$.fragment,m),$(i.$$.fragment,m),f=!0)},o(m){k(r.$$.fragment,m),k(i.$$.fragment,m),f=!1},d(m){m&&_(t),y(r),m&&_(s),m&&_(p),y(i)}}}function se(c){let t;return{c(){t=h("Refresh")},l(r){t=b(r,"Refresh")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ce(c){let t,r,e,a,n,o;return r=new Y({}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("(This will fail if you have no workers running.)"),this.h()},l(l){t=S(l,"DIV",{class:!0});var s=L(t);v(r.$$.fragment,s),e=I(s),a=S(s,"P",{});var p=L(a);n=b(p,"(This will fail if you have no workers running.)"),p.forEach(_),s.forEach(_),this.h()},h(){N(t,"class","text-center")},m(l,s){d(l,t,s),T(r,t,null),g(t,e),g(t,a),g(a,n),o=!0},p:A,i(l){o||($(r.$$.fragment,l),o=!0)},o(l){k(r.$$.fragment,l),o=!1},d(l){l&&_(t),y(r)}}}function ie(c){let t,r,e,a;const n=[re,te],o=[];function l(s,p){var i,f,m;return(i=s[0])!=null&&i.isRunning&&((m=(f=s[3])==null?void 0:f.pollers)==null?void 0:m.length)>0?0:1}return r=l(c),e=o[r]=n[r](c),{c(){t=E("section"),e.c()},l(s){t=S(s,"SECTION",{});var p=L(t);e.l(p),p.forEach(_)},m(s,p){d(s,t,p),o[r].m(t,null),a=!0},p(s,[p]){let i=r;r=l(s),r===i?o[r].p(s,p):(U(),k(o[i],1,1,()=>{o[i]=null}),j(),e=o[r],e?e.p(s,p):(e=o[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){a||($(e),a=!0)},o(s){k(e),a=!1},d(s){s&&_(t),o[r].d()}}}let ue=!1;function fe(c,t,r){let e,a,n,o,l;q(c,x,u=>r(6,n=u)),q(c,K,u=>r(7,o=u)),q(c,J,u=>r(5,l=u));const{namespace:s}=o.params;let p=new Date;const i=()=>{var u;return W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)};let f;const m=()=>{var u;r(2,f=W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)),f.then(()=>{r(1,p=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:a}=l,e,(r(3,a),r(5,l))),c.$$.dirty&1&&e.isRunning&&r(2,f=i())},[e,p,f,a,m,l]}class me extends B{constructor(t){super(),F(this,t,fe,ie,O,{})}}function pe(c){let t,r,e,a;return t=new ee({props:{title:`Stack Trace | ${c[1]}`,url:c[0].url.href}}),e=new me({}),{c(){w(t.$$.fragment),r=D(),w(e.$$.fragment)},l(n){v(t.$$.fragment,n),r=I(n),v(e.$$.fragment,n)},m(n,o){T(t,n,o),d(n,r,o),T(e,n,o),a=!0},p(n,[o]){const l={};o&1&&(l.url=n[0].url.href),t.$set(l)},i(n){a||($(t.$$.fragment,n),$(e.$$.fragment,n),a=!0)},o(n){k(t.$$.fragment,n),k(e.$$.fragment,n),a=!1},d(n){y(t,n),n&&_(r),y(e,n)}}}function _e(c,t,r){let e;q(c,K,n=>r(0,e=n));const a=e.params.workflow;return[e,a]}class Se extends B{constructor(t){super(),F(this,t,_e,pe,O,{})}}export{Se as default}; +import{S as B,b as F,a as O,m as E,p as S,q as L,k as _,f as d,z as U,g as k,h as j,j as $,K as q,C as w,D as v,E as T,F as y,aq as Q,e as C,ar as H,w as h,x as b,L as g,y as z,n as A,c as D,d as I,u as N}from"../chunks/index.a36c9cb0.js";import{p as K}from"../chunks/stores.a2e3306d.js";import{w as J}from"../chunks/workflow-run.8a407b5f.js";import{b as W}from"../chunks/query-service.d960637f.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{B as X}from"../chunks/button.dbc76a4c.js";import{E as G}from"../chunks/empty-state.9fb63265.js";import{L as Y}from"../chunks/loading.bcb9b7b8.js";import{L as Z}from"../chunks/link.855bf830.js";import{a as x}from"../chunks/auth-user.3a7bc4db.js";import{P as ee}from"../chunks/page-title.b9565d2f.js";function te(c){let t,r;return t=new G({props:{title:"No Stack Traces Found",testId:"query-stack-trace-empty",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p(e,a){const n={};a&4105&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function re(c){let t,r,e,a={ctx:c,current:null,token:null,hasCatch:!0,pending:ce,then:le,catch:oe,value:10,error:11,blocks:[,,,]};return Q(r=c[2],a),{c(){t=C(),a.block.c()},l(n){t=C(),a.block.l(n)},m(n,o){d(n,t,o),a.block.m(n,a.anchor=o),a.mount=()=>t.parentNode,a.anchor=t,e=!0},p(n,o){c=n,a.ctx=c,o&4&&r!==(r=c[2])&&Q(r,a)||H(a,c,o)},i(n){e||($(a.block),e=!0)},o(n){for(let o=0;o<3;o+=1){const l=a.blocks[o];k(l)}e=!1},d(n){n&&_(t),a.block.d(n),a.token=null,a=null}}}function V(c){var p;let t,r,e,a,n=((p=c[0])==null?void 0:p.taskQueue)+"",o,l,s;return e=new Z({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ne]},$$scope:{ctx:c}}}),{c(){t=E("p"),r=h("To enable "),w(e.$$.fragment),a=h(", run a Worker on the "),o=h(n),l=h(" Task Queue.")},l(i){t=S(i,"P",{});var f=L(t);r=b(f,"To enable "),v(e.$$.fragment,f),a=b(f,", run a Worker on the "),o=b(f,n),l=b(f," Task Queue."),f.forEach(_)},m(i,f){d(i,t,f),g(t,r),T(e,t,null),g(t,a),g(t,o),g(t,l),s=!0},p(i,f){var u;const m={};f&4096&&(m.$$scope={dirty:f,ctx:i}),e.$set(m),(!s||f&1)&&n!==(n=((u=i[0])==null?void 0:u.taskQueue)+"")&&z(o,n)},i(i){s||($(e.$$.fragment,i),s=!0)},o(i){k(e.$$.fragment,i),s=!1},d(i){i&&_(t),y(e)}}}function ne(c){let t;return{c(){t=h("stack traces")},l(r){t=b(r,"stack traces")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ae(c){var a,n,o;let t,r,e=((a=c[0])==null?void 0:a.isRunning)&&((o=(n=c[3])==null?void 0:n.pollers)==null?void 0:o.length)===0&&V(c);return{c(){e&&e.c(),t=C()},l(l){e&&e.l(l),t=C()},m(l,s){e&&e.m(l,s),d(l,t,s),r=!0},p(l,s){var p,i,f;(p=l[0])!=null&&p.isRunning&&((f=(i=l[3])==null?void 0:i.pollers)==null?void 0:f.length)===0?e?(e.p(l,s),s&9&&$(e,1)):(e=V(l),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(U(),k(e,1,1,()=>{e=null}),j())},i(l){r||($(e),r=!0)},o(l){k(e),r=!1},d(l){e&&e.d(l),l&&_(t)}}}function oe(c){let t,r;return t=new G({props:{title:"An Error Occured",content:"Please make sure you have at least one worker running."}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p:A,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function le(c){let t,r,e,a,n,o=c[1].toLocaleTimeString()+"",l,s,p,i,f;return r=new X({props:{icon:"retry",loading:ue,$$slots:{default:[se]},$$scope:{ctx:c}}}),r.$on("click",c[4]),i=new M({props:{content:c[10],language:"text",testId:"query-stack-trace"}}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("Stack Trace at "),l=h(o),s=D(),p=E("div"),w(i.$$.fragment),this.h()},l(m){t=S(m,"DIV",{class:!0});var u=L(t);v(r.$$.fragment,u),e=I(u),a=S(u,"P",{});var R=L(a);n=b(R,"Stack Trace at "),l=b(R,o),R.forEach(_),u.forEach(_),s=I(m),p=S(m,"DIV",{class:!0});var P=L(p);v(i.$$.fragment,P),P.forEach(_),this.h()},h(){N(t,"class","flex items-center gap-4"),N(p,"class","flex items-start h-full")},m(m,u){d(m,t,u),T(r,t,null),g(t,e),g(t,a),g(a,n),g(a,l),d(m,s,u),d(m,p,u),T(i,p,null),f=!0},p(m,u){const R={};u&4096&&(R.$$scope={dirty:u,ctx:m}),r.$set(R),(!f||u&2)&&o!==(o=m[1].toLocaleTimeString()+"")&&z(l,o);const P={};u&4&&(P.content=m[10]),i.$set(P)},i(m){f||($(r.$$.fragment,m),$(i.$$.fragment,m),f=!0)},o(m){k(r.$$.fragment,m),k(i.$$.fragment,m),f=!1},d(m){m&&_(t),y(r),m&&_(s),m&&_(p),y(i)}}}function se(c){let t;return{c(){t=h("Refresh")},l(r){t=b(r,"Refresh")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ce(c){let t,r,e,a,n,o;return r=new Y({}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("(This will fail if you have no workers running.)"),this.h()},l(l){t=S(l,"DIV",{class:!0});var s=L(t);v(r.$$.fragment,s),e=I(s),a=S(s,"P",{});var p=L(a);n=b(p,"(This will fail if you have no workers running.)"),p.forEach(_),s.forEach(_),this.h()},h(){N(t,"class","text-center")},m(l,s){d(l,t,s),T(r,t,null),g(t,e),g(t,a),g(a,n),o=!0},p:A,i(l){o||($(r.$$.fragment,l),o=!0)},o(l){k(r.$$.fragment,l),o=!1},d(l){l&&_(t),y(r)}}}function ie(c){let t,r,e,a;const n=[re,te],o=[];function l(s,p){var i,f,m;return(i=s[0])!=null&&i.isRunning&&((m=(f=s[3])==null?void 0:f.pollers)==null?void 0:m.length)>0?0:1}return r=l(c),e=o[r]=n[r](c),{c(){t=E("section"),e.c()},l(s){t=S(s,"SECTION",{});var p=L(t);e.l(p),p.forEach(_)},m(s,p){d(s,t,p),o[r].m(t,null),a=!0},p(s,[p]){let i=r;r=l(s),r===i?o[r].p(s,p):(U(),k(o[i],1,1,()=>{o[i]=null}),j(),e=o[r],e?e.p(s,p):(e=o[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){a||($(e),a=!0)},o(s){k(e),a=!1},d(s){s&&_(t),o[r].d()}}}let ue=!1;function fe(c,t,r){let e,a,n,o,l;q(c,x,u=>r(6,n=u)),q(c,K,u=>r(7,o=u)),q(c,J,u=>r(5,l=u));const{namespace:s}=o.params;let p=new Date;const i=()=>{var u;return W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)};let f;const m=()=>{var u;r(2,f=W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)),f.then(()=>{r(1,p=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:a}=l,e,(r(3,a),r(5,l))),c.$$.dirty&1&&e.isRunning&&r(2,f=i())},[e,p,f,a,m,l]}class me extends B{constructor(t){super(),F(this,t,fe,ie,O,{})}}function pe(c){let t,r,e,a;return t=new ee({props:{title:`Stack Trace | ${c[1]}`,url:c[0].url.href}}),e=new me({}),{c(){w(t.$$.fragment),r=D(),w(e.$$.fragment)},l(n){v(t.$$.fragment,n),r=I(n),v(e.$$.fragment,n)},m(n,o){T(t,n,o),d(n,r,o),T(e,n,o),a=!0},p(n,[o]){const l={};o&1&&(l.url=n[0].url.href),t.$set(l)},i(n){a||($(t.$$.fragment,n),$(e.$$.fragment,n),a=!0)},o(n){k(t.$$.fragment,n),k(e.$$.fragment,n),a=!1},d(n){y(t,n),n&&_(r),y(e,n)}}}function _e(c,t,r){let e;q(c,K,n=>r(0,e=n));const a=e.params.workflow;return[e,a]}class Se extends B{constructor(t){super(),F(this,t,_e,pe,O,{})}}export{Se as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.12a6364f.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.65c49a36.js similarity index 95% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.12a6364f.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.65c49a36.js index 1c891227a1..d849aefc0a 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.12a6364f.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.65c49a36.js @@ -1 +1 @@ -import{S as c,b as w,a as k,C as f,D as u,E as m,j as i,g as p,F as l,K as g,c as _,d as h,f as Q,k as W}from"../chunks/index.a36c9cb0.js";import{p as b}from"../chunks/stores.0bc9ce95.js";import{P as d}from"../chunks/page-title.b9565d2f.js";import{w as P}from"../chunks/workflow-run.8a407b5f.js";import{W as y}from"../chunks/workers-list.39b61477.js";function C(n){let t,s;return t=new y({props:{taskQueue:n[0].taskQueue,workers:n[1]}}),{c(){f(t.$$.fragment)},l(r){u(t.$$.fragment,r)},m(r,o){m(t,r,o),s=!0},p(r,[o]){const e={};o&1&&(e.taskQueue=r[0].taskQueue),o&2&&(e.workers=r[1]),t.$set(e)},i(r){s||(i(t.$$.fragment,r),s=!0)},o(r){p(t.$$.fragment,r),s=!1},d(r){l(t,r)}}}function R(n,t,s){let r,o,e;return g(n,P,a=>s(2,e=a)),n.$$.update=()=>{n.$$.dirty&4&&s(1,{workers:r,workflow:o}=e,r,(s(0,o),s(2,e)))},[o,r,e]}class S extends c{constructor(t){super(),w(this,t,R,C,k,{})}}function j(n){let t,s,r,o;return t=new d({props:{title:`Workers | ${n[1]}`,url:n[0].url.href}}),r=new S({}),{c(){f(t.$$.fragment),s=_(),f(r.$$.fragment)},l(e){u(t.$$.fragment,e),s=h(e),u(r.$$.fragment,e)},m(e,a){m(t,e,a),Q(e,s,a),m(r,e,a),o=!0},p(e,[a]){const $={};a&1&&($.url=e[0].url.href),t.$set($)},i(e){o||(i(t.$$.fragment,e),i(r.$$.fragment,e),o=!0)},o(e){p(t.$$.fragment,e),p(r.$$.fragment,e),o=!1},d(e){l(t,e),e&&W(s),l(r,e)}}}function q(n,t,s){let r;g(n,b,e=>s(0,r=e));const o=r.params.workflow;return[r,o]}class z extends c{constructor(t){super(),w(this,t,q,j,k,{})}}export{z as default}; +import{S as c,b as w,a as k,C as f,D as u,E as m,j as i,g as p,F as l,K as g,c as _,d as h,f as Q,k as W}from"../chunks/index.a36c9cb0.js";import{p as b}from"../chunks/stores.a2e3306d.js";import{P as d}from"../chunks/page-title.b9565d2f.js";import{w as P}from"../chunks/workflow-run.8a407b5f.js";import{W as y}from"../chunks/workers-list.39b61477.js";function C(n){let t,s;return t=new y({props:{taskQueue:n[0].taskQueue,workers:n[1]}}),{c(){f(t.$$.fragment)},l(r){u(t.$$.fragment,r)},m(r,o){m(t,r,o),s=!0},p(r,[o]){const e={};o&1&&(e.taskQueue=r[0].taskQueue),o&2&&(e.workers=r[1]),t.$set(e)},i(r){s||(i(t.$$.fragment,r),s=!0)},o(r){p(t.$$.fragment,r),s=!1},d(r){l(t,r)}}}function R(n,t,s){let r,o,e;return g(n,P,a=>s(2,e=a)),n.$$.update=()=>{n.$$.dirty&4&&s(1,{workers:r,workflow:o}=e,r,(s(0,o),s(2,e)))},[o,r,e]}class S extends c{constructor(t){super(),w(this,t,R,C,k,{})}}function j(n){let t,s,r,o;return t=new d({props:{title:`Workers | ${n[1]}`,url:n[0].url.href}}),r=new S({}),{c(){f(t.$$.fragment),s=_(),f(r.$$.fragment)},l(e){u(t.$$.fragment,e),s=h(e),u(r.$$.fragment,e)},m(e,a){m(t,e,a),Q(e,s,a),m(r,e,a),o=!0},p(e,[a]){const $={};a&1&&($.url=e[0].url.href),t.$set($)},i(e){o||(i(t.$$.fragment,e),i(r.$$.fragment,e),o=!0)},o(e){p(t.$$.fragment,e),p(r.$$.fragment,e),o=!1},d(e){l(t,e),e&&W(s),l(r,e)}}}function q(n,t,s){let r;g(n,b,e=>s(0,r=e));const o=r.params.workflow;return[r,o]}class z extends c{constructor(t){super(),w(this,t,q,j,k,{})}}export{z as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.229eadda.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.64dc03db.js similarity index 57% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.229eadda.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.64dc03db.js index 40a3c728ce..519eb513ab 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.229eadda.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.64dc03db.js @@ -1 +1 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.24d3174e.js";import{l as t}from"../chunks/_page.6428bd37.js";export{t as load}; +import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.b203d78a.js";import{l as t}from"../chunks/_page.68a74ae0.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.72c89f48.js b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.b996db0e.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.72c89f48.js rename to ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.b996db0e.js index ea31d2f086..a3eff4c6e5 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.72c89f48.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.b996db0e.js @@ -1,4 +1,4 @@ -import{S as ke,b as ve,a as Te,m as S,c as q,p as C,q as W,k as d,d as H,u as D,f as I,L as k,z as me,g as T,h as de,j as v,K as x,M as He,w as j,x as Q,T as ne,ab as Le,A as he,Y as be,C as O,D as N,E as V,Z as $e,F as R,e as Se,a7 as je,a1 as wt,a2 as Nl,y as _e,n as ge,o as Vl,_ as se,aj as pn,G as Qe,H as Ke,I as ze,J as Ye,W as Rl,R as ae,r as Me,N as Xe,O as ot,P as Be,Q as Wt,V as Ue,U as hn,a5 as At,v as Ll,$ as Ft,af as Ot,al as gn,i as bn,ae as Pl,a8 as $n}from"../chunks/index.a36c9cb0.js";import{p as Oe}from"../chunks/stores.48be4ca9.js";import{t as Pe}from"../chunks/time-format.dc246788.js";import{b as at,r as Je,c as Ml,u as Bl,l as Ul,d as ql,e as Hl,a as wn,w as kn,f as Ze,S as vn,O as gt}from"../chunks/workflow-terminate-enabled.50d3ef8f.js";import{l as it}from"../chunks/namespaces.85dd7810.js";import{E as ft}from"../chunks/empty-state.9fb63265.js";import{u as Ge,P as jl}from"../chunks/pagination.4cd37fec.js";import{t as Nt,j as Ql,S as Tn,W as En,a as yn,b as In,F as Vt}from"../chunks/search.89e1d454.js";import"../chunks/nav-open.98e0e195.js";import{I as Ce}from"../chunks/icon.33859671.js";import"../chunks/tooltip.bd2ec5a4.js";import{r as ut,t as Dn,x as ct,q as lt,j as Sn,k as Cn,l as Rt,m as Wn,s as An,u as Fn,v as On,w as Lt,y as nt,z as dt,A as Pt}from"../chunks/format-time.c8c4770b.js";import{t as Mt,s as xe,a as Nn}from"../chunks/list-workflow-query.900ba0a0.js";import{S as _t,a as qe}from"../chunks/simple-select.6bb2c039.js";import{I as Ne}from"../chunks/input.a193633b.js";import{a as Vn,d as Rn,c as Ln,j as Pn,k as Mn}from"../chunks/has.48bed8a5.js";import{L as mt}from"../chunks/loading.bcb9b7b8.js";import{P as Bn}from"../chunks/page-title.b9565d2f.js";import{w as We,a as pe}from"../chunks/filters.2b30fe96.js";import{T as Kl,a as zl}from"../chunks/table-header-row.eb620974.js";import{D as et}from"../chunks/dropdown-menu.c2d1df3e.js";import{W as Yl}from"../chunks/workflow-status.47d31de2.js";import{c as Un}from"../chunks/core-user.f8486d3a.js";import{f as Re}from"../chunks/format-date.7c274b02.js";import{g as qn}from"../chunks/route-for.6dec3e74.js";import{T as Hn}from"../chunks/table-row.9df8daa0.js";import{f as jn,a as Qn,I as st}from"../chunks/icon-button.bcd06a36.js";import{B as bt}from"../chunks/button.dbc76a4c.js";import{c as Bt}from"../chunks/format-camel-case.960a78f9.js";import{c as Gl,D as Kn}from"../chunks/drawer.62a75e11.js";import{S as zn}from"../chunks/simple-split-button.e333abd5.js";import{w as Ut,a as Yn,b as qt}from"../chunks/calendar.81d1e381.js";import{T as Gn,a as Ht}from"../chunks/toggle-buttons.dc1431b3.js";import{M as pt}from"../chunks/menu-item.4122979b.js";import{s as Jl}from"../chunks/parse-with-big-int.0036a80a.js";import{r as kt,a as vt}from"../chunks/route-for-api.6ac9324b.js";import{i as Zl}from"../chunks/version-check.d006b302.js";import{t as Xl}from"../chunks/versions.97216320.js";import{v as xl,t as rt}from"../chunks/toaster.16c48a98.js";import{M as Jn}from"../chunks/modal.50ea7269.js";import{a as Zn}from"../chunks/auth-user.3a7bc4db.js";import{d as Xn}from"../chunks/index.deae5bd4.js";import{s as xn}from"../chunks/settings.34723850.js";import{p as er}from"../chunks/persist-store.863ae031.js";function Tt(n,e){ut(2,arguments);var t=Dn(n).getTime(),l=ct(e);return new Date(t+l)}var tr=36e5;function lr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*tr)}var nr=6e4;function rr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*nr)}function sr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*1e3)}function jt(n,e,t){const l=n.slice();return l[16]=e[t][0],l[17]=e[t][1],l}function Qt(n,e,t){const l=n.slice();return l[17]=e[t],l}function or(n){let e,t,l,r,s;return{c(){e=S("a"),t=j("Advanced Search"),this.h()},l(a){e=C(a,"A",{href:!0,class:!0});var o=W(e);t=Q(o,"Advanced Search"),o.forEach(d),this.h()},h(){D(e,"href",l=n[2].url.pathname+"?searchType=advanced"),D(e,"class","text-blue-700")},m(a,o){I(a,e,o),k(e,t),r||(s=ne(e,"click",Le(n[6]("advanced"))),r=!0)},p(a,o){o&4&&l!==(l=a[2].url.pathname+"?searchType=advanced")&&D(e,"href",l)},d(a){a&&d(e),r=!1,s()}}}function ar(n){let e,t,l,r,s;return{c(){e=S("a"),t=j("Basic Search"),this.h()},l(a){e=C(a,"A",{href:!0,class:!0});var o=W(e);t=Q(o,"Basic Search"),o.forEach(d),this.h()},h(){D(e,"href",l=n[2].url.pathname+"?searchType=basic"),D(e,"class","text-blue-700")},m(a,o){I(a,e,o),k(e,t),r||(s=ne(e,"click",Le(n[6]("basic"))),r=!0)},p(a,o){o&4&&l!==(l=a[2].url.pathname+"?searchType=basic")&&D(e,"href",l)},d(a){a&&d(e),r=!1,s()}}}function ir(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h;function $(U){n[9](U)}let E={icon:"search",type:"search",id:"workflow-id-filter",placeholder:"Workflow ID"};n[3].workflowId!==void 0&&(E.value=n[3].workflowId),t=new Ne({props:E}),he.push(()=>be(t,"value",$)),t.$on("input",n[8]);function b(U){n[10](U)}let w={icon:"search",type:"search",id:"workflow-type-filter",placeholder:"Workflow Type"};n[3].workflowType!==void 0&&(w.value=n[3].workflowType),s=new Ne({props:w}),he.push(()=>be(s,"value",b)),s.$on("input",n[8]);function y(U){n[11](U)}let M={id:"time-range-filter",label:"Time Range",$$slots:{default:[dr]},$$scope:{ctx:n}};n[3].timeRange!==void 0&&(M.value=n[3].timeRange),i=new _t({props:M}),he.push(()=>be(i,"value",y)),i.$on("change",n[8]);function J(U){n[12](U)}let F={id:"execution-status-filter",label:"Workflow Status",$$slots:{default:[pr]},$$scope:{ctx:n}};n[3].executionStatus!==void 0&&(F.value=n[3].executionStatus),c=new _t({props:F}),he.push(()=>be(c,"value",J)),c.$on("change",n[8]);function G(U){n[13](U)}let X={id:"filter-by-relative-time",label:"Time Format",$$slots:{default:[$r]},$$scope:{ctx:n}};return n[4]!==void 0&&(X.value=n[4]),m=new _t({props:X}),he.push(()=>be(m,"value",G)),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),_=q(),O(m.$$.fragment),this.h()},l(U){e=C(U,"DIV",{role:!0,class:!0});var B=W(e);N(t.$$.fragment,B),r=H(B),N(s.$$.fragment,B),o=H(B),N(i.$$.fragment,B),p=H(B),N(c.$$.fragment,B),_=H(B),N(m.$$.fragment,B),B.forEach(d),this.h()},h(){D(e,"role","search"),D(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(U,B){I(U,e,B),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),k(e,_),V(m,e,null),h=!0},p(U,B){const P={};!l&&B&8&&(l=!0,P.value=U[3].workflowId,$e(()=>l=!1)),t.$set(P);const A={};!a&&B&8&&(a=!0,A.value=U[3].workflowType,$e(()=>a=!1)),s.$set(A);const L={};B&4194312&&(L.$$scope={dirty:B,ctx:U}),!f&&B&8&&(f=!0,L.value=U[3].timeRange,$e(()=>f=!1)),i.$set(L);const ee={};B&4194304&&(ee.$$scope={dirty:B,ctx:U}),!u&&B&8&&(u=!0,ee.value=U[3].executionStatus,$e(()=>u=!1)),c.$set(ee);const re={};B&4194304&&(re.$$scope={dirty:B,ctx:U}),!g&&B&16&&(g=!0,re.value=U[4],$e(()=>g=!1)),m.$set(re)},i(U){h||(v(t.$$.fragment,U),v(s.$$.fragment,U),v(i.$$.fragment,U),v(c.$$.fragment,U),v(m.$$.fragment,U),h=!0)},o(U){T(t.$$.fragment,U),T(s.$$.fragment,U),T(i.$$.fragment,U),T(c.$$.fragment,U),T(m.$$.fragment,U),h=!1},d(U){U&&d(e),R(t),R(s),R(i),R(c),R(m)}}}function fr(n){let e,t;return e=new Tn({props:{icon:!0,id:"advanced-search",placeholder:"Query…",value:n[1]}}),e.$on("submit",n[7]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ur(n){let e;return{c(){e=j("All")},l(t){e=Q(t,"All")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Kt(n){let e,t;return e=new qe({props:{value:n[3].timeRange,$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8&&(s.value=l[3].timeRange),r&4194312&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function cr(n){let e=n[3].timeRange+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p(l,r){r&8&&e!==(e=l[3].timeRange+"")&&_e(t,e)},d(l){l&&d(t)}}}function mr(n){let e=n[17]+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p:ge,d(l){l&&d(t)}}}function zt(n){let e,t;return e=new qe({props:{value:n[17],$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&4194304&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function dr(n){let e,t,l=n[3].timeRange&&!lt.includes(n[3].timeRange),r,s,a;e=new qe({props:{value:null,$$slots:{default:[ur]},$$scope:{ctx:n}}});let o=l&&Kt(n),i=lt,f=[];for(let c=0;cT(f[c],1,1,()=>{f[c]=null});return{c(){O(e.$$.fragment),t=q(),o&&o.c(),r=q();for(let c=0;c{o=null}),de()),u&0){i=lt;let m;for(m=0;mo[16];for(let o=0;o{c[g]=null}),de(),s=c[r],s?s.p(_,m):(s=c[r]=p[r](_),s.c()),v(s,1),s.m(e,null))},i(_){a||(v(s),a=!0)},o(_){T(s),a=!1},d(_){_&&d(e),f.d(),c[r].d()}}}function kr(n,e,t){let l,r,s,a;x(n,Oe,b=>t(2,s=b)),x(n,Pe,b=>t(4,a=b));const o=He();let{searchType:i}=e;const f=Mt({timeRange:"All"}),p={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=b=>()=>{t(0,i=b),Ge({parameter:"search",value:i,url:s.url})},u=b=>{o("search");const w=new FormData(b.target);t(1,l=String(w.get("query"))),t(3,r=Nt(l)),Ge({url:s.url,parameter:"query",value:l})},_=Ql(()=>{o("search"),t(1,l=Mt(r)),Ge({url:s.url,parameter:"query",value:l,allowEmpty:!0})},300);function m(b){n.$$.not_equal(r.workflowId,b)&&(r.workflowId=b,t(3,r),t(1,l),t(2,s))}function g(b){n.$$.not_equal(r.workflowType,b)&&(r.workflowType=b,t(3,r),t(1,l),t(2,s))}function h(b){n.$$.not_equal(r.timeRange,b)&&(r.timeRange=b,t(3,r),t(1,l),t(2,s))}function $(b){n.$$.not_equal(r.executionStatus,b)&&(r.executionStatus=b,t(3,r),t(1,l),t(2,s))}function E(b){a=b,Pe.set(a)}return n.$$set=b=>{"searchType"in b&&t(0,i=b.searchType)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=s.url.searchParams.get("query")),n.$$.dirty&2&&t(3,r=Nt(l??f))},[i,l,s,r,a,p,c,u,_,m,g,h,$,E]}class vr extends ke{constructor(e){super(),ve(this,e,kr,wr,Te,{searchType:0})}}const Tr=n=>Vn(n)?n==="basic"||n==="advanced":!1,Er=n=>{const e=n.searchParams.get("search");return Tr(e)?e:(n.searchParams.set("search","basic"),"basic")};function Gt(n,e,t){const l=n.slice();return l[14]=e[t],l}function Jt(n){let e,t,l,r,s,a,o,i,f,p;const c=[Ir,yr],u=[];function _($,E){return $[5]?0:1}l=_(n),r=u[l]=c[l](n);const m=[Sr,Dr],g=[];function h($,E){return $[5]?0:1}return o=h(n),i=g[o]=m[o](n),{c(){e=S("tr"),t=S("td"),r.c(),s=q(),a=S("td"),i.c(),f=q(),this.h()},l($){e=C($,"TR",{});var E=W(e);t=C(E,"TD",{colspan:!0,class:!0});var b=W(t);r.l(b),b.forEach(d),s=H(E),a=C(E,"TD",{colspan:!0,class:!0});var w=W(a);i.l(w),w.forEach(d),f=H(E),E.forEach(d),this.h()},h(){D(t,"colspan","5"),D(t,"class","xl:hidden"),D(a,"colspan","7"),D(a,"class","hidden xl:table-cell")},m($,E){I($,e,E),k(e,t),u[l].m(t,null),k(e,s),k(e,a),g[o].m(a,null),k(e,f),p=!0},p($,E){let b=l;l=_($),l===b?u[l].p($,E):(me(),T(u[b],1,1,()=>{u[b]=null}),de(),r=u[l],r?r.p($,E):(r=u[l]=c[l]($),r.c()),v(r,1),r.m(t,null));let w=o;o=h($),o===w?g[o].p($,E):(me(),T(g[w],1,1,()=>{g[w]=null}),de(),i=g[o],i?i.p($,E):(i=g[o]=m[o]($),i.c()),v(i,1),i.m(a,null))},i($){p||(v(r),v(i),p=!0)},o($){T(r),T(i),p=!1},d($){$&&d(e),u[l].d(),g[o].d()}}}function yr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ir(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Dr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Sr(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zt(n){let e,t;return e=new yn({props:{workflow:n[14],namespace:n[1].params.namespace,timeFormat:n[4]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8192&&(s.workflow=l[14]),r&2&&(s.namespace=l[1].params.namespace),r&16&&(s.timeFormat=l[4]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cr(n){let e,t,l=n[13],r=[];for(let o=0;oT(r[o],1,1,()=>{r[o]=null});let a=null;return l.length||(a=Jt(n)),{c(){for(let o=0;o{a=null}),de()):(a=Jt(o),a.c(),v(a,1),a.m(e.parentNode,e))}},i(o){if(!t){for(let i=0;ibe(g,"searchType",M)),E=new jl({props:{items:n[2],"aria-label":"recent workflows",$$slots:{default:[Wr,({visibleItems:F})=>({13:F}),({visibleItems:F})=>F?8192:0]},$$scope:{ctx:n}}}),{c(){e=S("header"),t=S("div"),l=S("h1"),r=j("Recent Workflows"),s=q(),a=S("div"),o=S("p"),f=j(i),p=q(),c=S("div"),u=S("button"),O(_.$$.fragment),m=q(),O(g.$$.fragment),$=q(),O(E.$$.fragment),this.h()},l(F){e=C(F,"HEADER",{class:!0});var G=W(e);t=C(G,"DIV",{});var X=W(t);l=C(X,"H1",{class:!0,"data-testid":!0});var U=W(l);r=Q(U,"Recent Workflows"),U.forEach(d),s=H(X),a=C(X,"DIV",{class:!0});var B=W(a);o=C(B,"P",{"data-testid":!0});var P=W(o);f=Q(P,i),P.forEach(d),B.forEach(d),X.forEach(d),p=H(G),c=C(G,"DIV",{});var A=W(c);u=C(A,"BUTTON",{"aria-label":!0,class:!0});var L=W(u);N(_.$$.fragment,L),L.forEach(d),A.forEach(d),G.forEach(d),m=H(F),N(g.$$.fragment,F),$=H(F),N(E.$$.fragment,F),this.h()},h(){D(l,"class","text-2xl"),D(l,"data-testid","namespace-title"),D(o,"data-testid","namespace-name"),D(a,"class","flex items-center gap-2 text-sm"),D(u,"aria-label","retry workflows"),D(u,"class","cursor-pointer rounded-full p-1 hover:bg-gray-900 hover:text-white"),D(e,"class","mb-2 flex justify-between")},m(F,G){I(F,e,G),k(e,t),k(t,l),k(l,r),k(t,s),k(t,a),k(a,o),k(o,f),k(e,p),k(e,c),k(c,u),V(_,u,null),I(F,m,G),V(g,F,G),I(F,$,G),V(E,F,G),b=!0,w||(y=ne(u,"click",n[8]),w=!0)},p(F,[G]){(!b||G&2)&&i!==(i=F[1].params.namespace+"")&&_e(f,i);const X={};!h&&G&1&&(h=!0,X.searchType=F[0],$e(()=>h=!1)),g.$set(X);const U={};G&4&&(U.items=F[2]),G&139386&&(U.$$scope={dirty:G,ctx:F}),E.$set(U)},i(F){b||(v(_.$$.fragment,F),v(g.$$.fragment,F),v(E.$$.fragment,F),b=!0)},o(F){T(_.$$.fragment,F),T(g.$$.fragment,F),T(E.$$.fragment,F),b=!1},d(F){F&&d(e),R(_),F&&d(m),R(g,F),F&&d($),R(E,F),w=!1,y()}}}function Fr(n,e,t){let l,r,s,a,o,i,f,p,c;x(n,Oe,h=>t(1,l=h)),x(n,at,h=>t(10,r=h)),x(n,Je,h=>t(11,s=h)),x(n,it,h=>t(12,a=h)),x(n,Ml,h=>t(2,o=h)),x(n,Bl,h=>t(3,i=h)),x(n,Pe,h=>t(4,f=h)),x(n,Ul,h=>t(5,p=h)),x(n,ql,h=>t(6,c=h));let u=Er(l.url);const _=u==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Vl(()=>{se(it,a=l.params.namespace,a)});const m=()=>{se(Je,s=Date.now(),s)};pn(()=>{se(at,r=l.url.searchParams.toString(),r)});function g(h){u=h,t(0,u)}return[u,l,o,i,f,p,c,_,m,g]}class Or extends ke{constructor(e){super(),ve(this,e,Fr,Ar,Te,{})}}const Nr=n=>({}),Xt=n=>({});function Vr(n){let e;const t=n[2].fallback,l=Qe(t,n,n[1],Xt);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,Nr):ze(r[1]),Xt)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Rr(n){let e;const t=n[2].default,l=Qe(t,n,n[1],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,null):ze(r[1]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Lr(n){let e,t,l,r;const s=[Rr,Vr],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function Pr(n,e,t){let l;x(n,xe,a=>t(0,l=a));let{$$slots:r={},$$scope:s}=e;return n.$$set=a=>{"$$scope"in a&&t(1,s=a.$$scope)},[l,s,r]}class Mr extends ke{constructor(e){super(),ve(this,e,Pr,Lr,Te,{})}}const Br={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ur=n=>!(n===null||n===void 0||n===""||typeof n=="string"&&n==="undefined"),qr=(n,e,t="=",l,r)=>{const s=Br[n]??n;return e==="All"?"":r?`${s} ${e}`:Sn(e)||Cn(e)?l||Rl(xe)?`${s} > "${Rt(e)}"`:`${s} BETWEEN "${Rt(e)}" AND "${Wn()}"`:`${s}${t}"${e}"`},Hr=(n,e)=>n.map(({attribute:t,value:l,conditional:r,operator:s,parenthesis:a,customDate:o})=>{if(Ur(l)){let i=qr(t,l,r,e,o);return a==="("?i=`(${i}`:a===")"&&(i=`${i})`),s&&(i=`${i} ${s} `),i}}).filter(Boolean),jr=(n=[],e=[],t=!1)=>{const l=e.length?` order by ${e[0].attribute} ${e[0].value}`:"";return Hr(n,t).join("")+l},Qr=n=>e=>e.toLowerCase()===n.toLowerCase(),xt=(n,e)=>n[e+2],Kr=(n,e)=>n[e-2],zr=n=>{if(n){for(const e of On)if(n[e])return{[e]:n[e]}}},Yr=Qr("Datetime"),ht=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),Gr={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword"},en=(n,e=Gr)=>{const t=In(n),l=[];let r=ht();if(!n)return[];try{return t.forEach((s,a)=>{if(e[s])if(r.attribute=s,Yr(e[s])){const o=xt(t,a);try{const i=An(o),f=zr(i);r.value=Fn(f)}catch(i){console.error("Error parsing Datetime field from query",i)}}else r.value=xt(t,a);Rn(s)&&(r.conditional=s),Ln(s)&&(r.parenthesis=s),Pn(s)&&!Mn(Kr(t,a))&&(r.operator=s,l.push(r),r=ht()),a===t.length-1&&(l.push(r),r=ht())}),l}catch(s){return console.error("Error setting filter parameters: ",s),[]}},Jr=n=>{const e=n.filter(a=>a.attribute==="ExecutionStatus"&&a.value),t=n.filter(a=>a.attribute==="WorkflowId"&&a.value),l=n.filter(a=>a.attribute==="WorkflowType"&&a.value),r=n.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),s=[e,t,l,r].filter(a=>a.length);return s.forEach((a,o)=>{var i,f;a.length&&((i=s[o+1])!=null&&i.length)?a[a.length-1].operator="AND":a.length&&!((f=s[o+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...t,...l,...r]},Ve=Ql((n,e,t)=>{const l=Jr(e),r=jr(l,t);Ge({url:n,parameter:"query",value:r,allowEmpty:!1})},300);function el(n,e,t){const l=n.slice();return l[10]=e[t][0],l[11]=e[t][1],l}function tl(n){let e,t;return e=new Ce({props:{class:"pointer-events-none -mt-[1px] -ml-[2px] text-white",name:"checkmark",width:20,height:20}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zr(n){let e,t;return e=new Yl({props:{status:n[11]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Xr(n){let e;return{c(){e=j("All Statuses")},l(t){e=Q(t,"All Statuses")},m(t,l){I(t,e,l)},p:ge,i:ge,o:ge,d(t){t&&d(e)}}}function ll(n,e){let t,l,r=e[0].find(_)||!e[0].length&&e[11]==="All",s,a,o,i,f,p,c,u;function _(...w){return e[6](e[11],...w)}let m=r&&tl();function g(...w){return e[7](e[11],...w)}const h=[Xr,Zr],$=[];function E(w,y){return w[11]==="All"?0:1}o=E(e),i=$[o]=h[o](e);function b(){return e[8](e[11])}return{key:n,first:null,c(){t=S("button"),l=S("div"),m&&m.c(),s=q(),a=S("div"),i.c(),f=q(),this.h()},l(w){t=C(w,"BUTTON",{class:!0,"data-testid":!0});var y=W(t);l=C(y,"DIV",{class:!0});var M=W(l);m&&m.l(M),M.forEach(d),s=H(y),a=C(y,"DIV",{class:!0});var J=W(a);i.l(J),J.forEach(d),f=H(y),y.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-4 w-4 rounded-sm ring-1 ring-gray-900 svelte-mpn3ee"),ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),D(a,"class","flex h-6 items-center text-sm hover:scale-[103%]"),D(t,"class","flex items-center transition-all hover:cursor-pointer"),D(t,"data-testid",e[10]),this.first=t},m(w,y){I(w,t,y),k(t,l),m&&m.m(l,null),k(t,s),k(t,a),$[o].m(a,null),k(t,f),p=!0,c||(u=ne(t,"click",b),c=!0)},p(w,y){e=w,y&1&&(r=e[0].find(_)||!e[0].length&&e[11]==="All"),r?m?y&1&&v(m,1):(m=tl(),m.c(),v(m,1),m.m(l,null)):m&&(me(),T(m,1,1,()=>{m=null}),de()),(!p||y&5)&&ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),i.p(e,y)},i(w){p||(v(m),v(i),p=!0)},o(w){T(m),T(i),p=!1},d(w){w&&d(t),m&&m.d(),$[o].d(),c=!1,u()}}}function xr(n){let e,t=[],l=new Map,r,s=Object.entries(n[2]);const a=o=>o[11];for(let o=0;o{const l=t===0?"(":t===n.length-1?")":"",r=t===n.length-1?"":"OR";return{...e,operator:r,parenthesis:l}})}const rl=n=>n.value;function ls(n,e,t){let l,r,s,a,o;x(n,We,_=>t(4,s=_)),x(n,pe,_=>t(5,a=_)),x(n,Oe,_=>t(9,o=_));const i={All:"All",Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},f=_=>{if(_==="All")se(pe,a=a.filter(m=>m.attribute!=="ExecutionStatus"),a);else if(l.find(m=>m.value===_)){const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl(l.filter(g=>g.value!==_))],a)}else if(!l.length)se(pe,a=[...a,$t(_)],a);else{const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl([...l,$t(_)])],a)}Ve(o.url,a,s)},p=(_,m)=>m.value===_,c=(_,m)=>m.value===_,u=_=>f(_);return n.$$.update=()=>{n.$$.dirty&32&&t(0,l=a.filter(_=>_.attribute==="ExecutionStatus")),n.$$.dirty&16&&t(1,r=s.find(_=>_.attribute==="ExecutionStatus"))},[l,r,i,f,s,a,p,c,u]}class tn extends ke{constructor(e){super(),ve(this,e,ls,ts,Te,{})}}function ns(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowId",placeholder:"Workflow ID",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function rs(n){let e;return{c(){e=j("Workflow ID")},l(t){e=Q(t,"Workflow ID")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ss(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-id-filter-button",$$slots:{label:[rs],default:[ns]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function os(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowId"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowId",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&(l!=null&&l.value)?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowId")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowId"))},[i,l,r,p,c,u,s,a,_]}class ln extends ke{constructor(e){super(),ve(this,e,os,ss,Te,{})}}function as(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowType",placeholder:"Workflow Type",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function is(n){let e;return{c(){e=j("Type")},l(t){e=Q(t,"Type")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function fs(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-type-filter-button",$$slots:{label:[is],default:[as]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function us(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowType"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowType",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&l?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowType")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowType"))},[i,l,r,p,c,u,s,a,_]}class nn extends ke{constructor(e){super(),ve(this,e,us,fs,Te,{})}}function cs(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$;return r=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"ascending",width:24,height:24}}),c=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"descending",width:24,height:24}}),{c(){e=S("div"),t=S("button"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),o=j("Ascending"),i=q(),f=S("button"),p=S("div"),O(c.$$.fragment),u=q(),_=S("div"),m=j("Descending"),this.h()},l(E){e=C(E,"DIV",{class:!0});var b=W(e);t=C(b,"BUTTON",{class:!0});var w=W(t);l=C(w,"DIV",{class:!0});var y=W(l);N(r.$$.fragment,y),y.forEach(d),s=H(w),a=C(w,"DIV",{class:!0});var M=W(a);o=Q(M,"Ascending"),M.forEach(d),w.forEach(d),i=H(b),f=C(b,"BUTTON",{class:!0});var J=W(f);p=C(J,"DIV",{class:!0});var F=W(p);N(c.$$.fragment,F),F.forEach(d),u=H(J),_=C(J,"DIV",{class:!0});var G=W(_);m=Q(G,"Descending"),G.forEach(d),J.forEach(d),b.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(l,"active",n[1].find(n[3])),D(a,"class","p-1 hover:scale-[103%]"),D(t,"class","flex items-center"),D(p,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(p,"active",n[1].find(n[5])),D(_,"class","p-1 hover:scale-[103%]"),D(f,"class","flex items-center"),D(e,"class","mt-2 transition-all hover:cursor-pointer")},m(E,b){I(E,e,b),k(e,t),k(t,l),V(r,l,null),k(t,s),k(t,a),k(a,o),k(e,i),k(e,f),k(f,p),V(c,p,null),k(f,u),k(f,_),k(_,m),g=!0,h||($=[ne(t,"click",n[4]),ne(f,"click",n[6])],h=!0)},p(E,[b]){(!g||b&3)&&ae(l,"active",E[1].find(E[3])),(!g||b&3)&&ae(p,"active",E[1].find(E[5]))},i(E){g||(v(r.$$.fragment,E),v(c.$$.fragment,E),g=!0)},o(E){T(r.$$.fragment,E),T(c.$$.fragment,E),g=!1},d(E){E&&d(e),R(r),R(c),h=!1,Me($)}}}function ms(n,e,t){let l,r,s;x(n,We,u=>t(1,l=u)),x(n,pe,u=>t(7,r=u)),x(n,Oe,u=>t(8,s=u));let{type:a}=e;const o=u=>{l.find(_=>_.value===u&&_.attribute===a)?se(We,l=[],l):se(We,l=[{attribute:a,value:u}],l),Ve(s.url,r,l)},i=u=>u.value==="asc"&&u.attribute===a,f=()=>o("asc"),p=u=>u.value==="desc"&&u.attribute===a,c=()=>o("desc");return n.$$set=u=>{"type"in u&&t(0,a=u.type)},[a,l,o,i,f,p,c]}class rn extends ke{constructor(e){super(),ve(this,e,ms,cs,Te,{type:0})}}function ds(n){let e,t,l;return t=new rn({props:{type:"StartTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function _s(n){let e;return{c(){e=j("Start Time")},l(t){e=Q(t,"Start Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ps(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[_s],default:[ds]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function hs(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="StartTime"))},[s,l,r]}class sn extends ke{constructor(e){super(),ve(this,e,hs,ps,Te,{disabled:0})}}function gs(n){let e,t,l;return t=new rn({props:{type:"CloseTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function bs(n){let e;return{c(){e=j("End Time")},l(t){e=Q(t,"End Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function $s(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[bs],default:[gs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function ws(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="CloseTime"))},[s,l,r]}class on extends ke{constructor(e){super(),ve(this,e,ws,$s,Te,{disabled:0})}}function ks(n){let e,t,l,r,s;const a=n[5].default,o=Qe(a,n,n[4],null);return{c(){e=S("button"),o&&o.c(),this.h()},l(i){e=C(i,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"data-testid",n[0]),e.disabled=n[1],D(e,"class",t="bulk-action-button "+n[2]+" "+n[3].class+" svelte-19w6g7u")},m(i,f){I(i,e,f),o&&o.m(e,null),l=!0,r||(s=ne(e,"click",n[6]),r=!0)},p(i,[f]){o&&o.p&&(!l||f&16)&&Ke(o,a,i,i[4],l?Ye(a,i[4],f,null):ze(i[4]),null),(!l||f&1)&&D(e,"data-testid",i[0]),(!l||f&2)&&(e.disabled=i[1]),(!l||f&12&&t!==(t="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&D(e,"class",t)},i(i){l||(v(o,i),l=!0)},o(i){T(o,i),l=!1},d(i){i&&d(e),o&&o.d(i),r=!1,s()}}}function vs(n,e,t){let{$$slots:l={},$$scope:r}=e,{testId:s=null}=e,{disabled:a=!1}=e,{variant:o="primary"}=e;function i(f){Be.call(this,n,f)}return n.$$set=f=>{t(3,e=Xe(Xe({},e),ot(f))),"testId"in f&&t(0,s=f.testId),"disabled"in f&&t(1,a=f.disabled),"variant"in f&&t(2,o=f.variant),"$$scope"in f&&t(4,r=f.$$scope)},e=ot(e),[s,a,o,e,r,l,i]}class an extends ke{constructor(e){super(),ve(this,e,vs,ks,Te,{testId:0,disabled:1,variant:2})}}function sl(n){let e,t;return{c(){e=S("span"),t=j(n[2]),this.h()},l(l){e=C(l,"SPAN",{class:!0});var r=W(e);t=Q(r,n[2]),r.forEach(d),this.h()},h(){D(e,"class","label svelte-l6k8ad"),ae(e,"hoverable",n[6])},m(l,r){I(l,e,r),k(e,t)},p(l,r){r&4&&_e(t,l[2]),r&64&&ae(e,"hoverable",l[6])},d(l){l&&d(e)}}}function Ts(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Es(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ys(n){let e,t,l,r,s,a,o,i,f,p,c,u,_=n[2]&&sl(n),m=[{id:n[1]},{__value:n[7]},{type:"checkbox"},{indeterminate:n[4]},{disabled:n[5]},n[10]],g={};for(let b=0;b{$[y]=null}),de()),~o?(i=$[o],i||(i=$[o]=h[o](b),i.c()),v(i,1),i.m(a,null)):i=null),(!p||w&64)&&ae(a,"hoverable",b[6]),(!p||w&8)&&ae(a,"on-dark",b[3]),(!p||w&64)&&ae(t,"hoverable",b[6]),(!p||w&32)&&ae(t,"disabled",b[5]),(!p||w&8)&&ae(t,"on-dark",b[3]),(!p||w&512&&f!==(f="relative "+b[9].class+" svelte-l6k8ad"))&&D(e,"class",f)},i(b){p||(v(i),p=!0)},o(b){T(i),p=!1},d(b){b&&d(e),_&&_.d(),~o&&$[o].d(),c=!1,Me(u)}}}function Is(n,e,t){const l=["id","checked","label","onDark","indeterminate","disabled","hoverable","value","group"];let r=At(e,l),{id:s=""}=e,{checked:a=!1}=e,{label:o=""}=e,{onDark:i=!1}=e,{indeterminate:f=!1}=e,{disabled:p=!1}=e,{hoverable:c=!1}=e,{value:u=void 0}=e,{group:_=void 0}=e;const m=He(),g=M=>{const{checked:J}=M.currentTarget;_!==void 0&&(J?t(11,_=[..._,u]):t(11,_=_.filter(F=>F!==u))),t(0,a=J),m("change",{checked:M.currentTarget.checked,value:u})};a=_!==void 0?_.includes(u):a;function h(M){Be.call(this,n,M)}function $(M){Be.call(this,n,M)}function E(M){Be.call(this,n,M)}function b(M){Be.call(this,n,M)}function w(M){Be.call(this,n,M)}function y(){a=this.checked,t(0,a)}return n.$$set=M=>{t(9,e=Xe(Xe({},e),ot(M))),t(10,r=At(e,l)),"id"in M&&t(1,s=M.id),"checked"in M&&t(0,a=M.checked),"label"in M&&t(2,o=M.label),"onDark"in M&&t(3,i=M.onDark),"indeterminate"in M&&t(4,f=M.indeterminate),"disabled"in M&&t(5,p=M.disabled),"hoverable"in M&&t(6,c=M.hoverable),"value"in M&&t(7,u=M.value),"group"in M&&t(11,_=M.group)},e=ot(e),[a,s,o,i,f,p,c,u,g,e,r,_,h,$,E,b,w,y]}class fn extends ke{constructor(e){super(),ve(this,e,Is,ys,Te,{id:1,checked:0,label:2,onDark:3,indeterminate:4,disabled:5,hoverable:6,value:7,group:11})}}function Ds(n){let e,t;return e=new Kl({props:{class:"w-full md:table-fixed",updating:n[1],$$slots:{headers:[As],default:[Cs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ss(n){let e,t;return e=new Kl({props:{id:"workflows-table-with-bulk-actions",class:"w-full min-w-[600px] table-fixed",updating:n[1],$$slots:{headers:[Bs],default:[Fs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Ws(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function As(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Fs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function ol(n){let e,t;return e=new fn({props:{id:"select-visible-workflows",onDark:!0,hoverable:!0,checked:n[7],indeterminate:n[5]}}),e.$on("change",n[15]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&128&&(s.checked=l[7]),r&32&&(s.indeterminate=l[5]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Os(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function Ns(n){let e,t,l,r,s,a,o,i,f,p,c,u,_;function m(b,w){return b[3]?Rs:Vs}let g=m(n),h=g(n),$=n[10]&&al(n),E=n[11]&&il(n);return{c(){e=S("th"),h.c(),t=q(),l=S("div"),$&&$.c(),r=q(),E&&E.c(),s=q(),a=S("th"),o=q(),i=S("th"),f=q(),p=S("th"),c=q(),u=S("th"),this.h()},l(b){e=C(b,"TH",{class:!0});var w=W(e);h.l(w),t=H(w),l=C(w,"DIV",{class:!0});var y=W(l);$&&$.l(y),r=H(y),E&&E.l(y),y.forEach(d),w.forEach(d),s=H(b),a=C(b,"TH",{}),W(a).forEach(d),o=H(b),i=C(b,"TH",{class:!0}),W(i).forEach(d),f=H(b),p=C(b,"TH",{class:!0}),W(p).forEach(d),c=H(b),u=C(b,"TH",{class:!0}),W(u).forEach(d),this.h()},h(){D(l,"class","ml-4 inline-flex gap-2"),D(e,"class","w-32 overflow-visible whitespace-nowrap"),D(i,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(u,"class","w-60 max-xl:hidden")},m(b,w){I(b,e,w),h.m(e,null),k(e,t),k(e,l),$&&$.m(l,null),k(l,r),E&&E.m(l,null),I(b,s,w),I(b,a,w),I(b,o,w),I(b,i,w),I(b,f,w),I(b,p,w),I(b,c,w),I(b,u,w),_=!0},p(b,w){g===(g=m(b))&&h?h.p(b,w):(h.d(1),h=g(b),h&&(h.c(),h.m(e,t))),b[10]?$?($.p(b,w),w&1024&&v($,1)):($=al(b),$.c(),v($,1),$.m(l,r)):$&&(me(),T($,1,1,()=>{$=null}),de()),b[11]?E?(E.p(b,w),w&2048&&v(E,1)):(E=il(b),E.c(),v(E,1),E.m(l,null)):E&&(me(),T(E,1,1,()=>{E=null}),de())},i(b){_||(v($),v(E),_=!0)},o(b){T($),T(E),_=!1},d(b){b&&d(e),h.d(),$&&$.d(),E&&E.d(),b&&d(s),b&&d(a),b&&d(o),b&&d(i),b&&d(f),b&&d(p),b&&d(c),b&&d(u)}}}function Vs(n){let e,t,l,r,s,a,o,i,f,p,c,u;return{c(){e=S("span"),t=j(n[2]),l=j(" selected"),r=q(),s=S("span"),a=j("(or "),o=S("button"),i=j("select all "),f=j(n[4]),p=j(")"),this.h()},l(_){e=C(_,"SPAN",{class:!0});var m=W(e);t=Q(m,n[2]),l=Q(m," selected"),m.forEach(d),r=H(_),s=C(_,"SPAN",{});var g=W(s);a=Q(g,"(or "),o=C(g,"BUTTON",{"data-testid":!0,class:!0});var h=W(o);i=Q(h,"select all "),f=Q(h,n[4]),h.forEach(d),p=Q(g,")"),g.forEach(d),this.h()},h(){D(e,"class","font-semibold"),D(o,"data-testid","select-all-workflows"),D(o,"class","cursor-pointer underline")},m(_,m){I(_,e,m),k(e,t),k(e,l),I(_,r,m),I(_,s,m),k(s,a),k(s,o),k(o,i),k(o,f),k(s,p),c||(u=ne(o,"click",n[14]),c=!0)},p(_,m){m&4&&_e(t,_[2]),m&16&&_e(f,_[4])},d(_){_&&d(e),_&&d(r),_&&d(s),c=!1,u()}}}function Rs(n){let e,t,l,r;return{c(){e=S("span"),t=j("All "),l=j(n[4]),r=j(" selected"),this.h()},l(s){e=C(s,"SPAN",{class:!0});var a=W(e);t=Q(a,"All "),l=Q(a,n[4]),r=Q(a," selected"),a.forEach(d),this.h()},h(){D(e,"class","font-semibold")},m(s,a){I(s,e,a),k(e,t),k(e,l),k(e,r)},p(s,a){a&16&&_e(l,s[4])},d(s){s&&d(e)}}}function al(n){let e,t;return e=new an({props:{testId:"bulk-cancel-button",disabled:n[8],$$slots:{default:[Ls]},$$scope:{ctx:n}}}),e.$on("click",n[13]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ls(n){let e;return{c(){e=j("Request Cancellation")},l(t){e=Q(t,"Request Cancellation")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function il(n){let e,t;return e=new an({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:n[8],$$slots:{default:[Ps]},$$scope:{ctx:n}}}),e.$on("click",n[12]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ps(n){let e;return{c(){e=j("Terminate")},l(t){e=Q(t,"Terminate")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Ms(n){let e,t,l,r,s,a,o=!n[1]&&ol(n);const i=[Ns,Os],f=[];function p(c,u){return c[6]?0:1}return l=p(n),r=f[l]=i[l](n),{c(){e=S("th"),o&&o.c(),t=q(),r.c(),s=Se(),this.h()},l(c){e=C(c,"TH",{style:!0,class:!0});var u=W(e);o&&o.l(u),u.forEach(d),t=H(c),r.l(c),s=Se(),this.h()},h(){Ll(e,"padding","0"),D(e,"class","w-12 h-10")},m(c,u){I(c,e,u),o&&o.m(e,null),I(c,t,u),f[l].m(c,u),I(c,s,u),a=!0},p(c,u){c[1]?o&&(me(),T(o,1,1,()=>{o=null}),de()):o?(o.p(c,u),u&2&&v(o,1)):(o=ol(c),o.c(),v(o,1),o.m(e,null));let _=l;l=p(c),l===_?f[l].p(c,u):(me(),T(f[_],1,1,()=>{f[_]=null}),de(),r=f[l],r?r.p(c,u):(r=f[l]=i[l](c),r.c()),v(r,1),r.m(s.parentNode,s))},i(c){a||(v(o),v(r),a=!0)},o(c){T(o),T(r),a=!1},d(c){c&&d(e),o&&o.d(),c&&d(t),f[l].d(c),c&&d(s)}}}function Bs(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ms]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Us(n){let e,t,l,r;const s=[Ss,Ds],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function qs(n,e,t){let l,r,s,a,o,i,f,p,c,u,_;x(n,Oe,P=>t(19,p=P)),x(n,Nn,P=>t(21,u=P)),x(n,Hl,P=>t(22,_=P));let{$$slots:m={},$$scope:g}=e;const h=He();let{bulkActionsEnabled:$=!1}=e,{updating:E=!1}=e,{visibleWorkflows:b}=e,{selectedWorkflowsCount:w}=e,{allSelected:y}=e,{pageSelected:M}=e,{filteredWorkflowCount:J}=e;const F=()=>{h("terminateWorkflows")},G=()=>{h("cancelWorkflows")},X=P=>{(P instanceof MouseEvent||P instanceof KeyboardEvent&&P.key==="Enter")&&h("toggleAll",{checked:!0})},U=P=>{const{checked:A}=P.detail;A?h("togglePage",{checked:!0,visibleWorkflows:b}):h("toggleAll",{checked:!1})};let B=Un();return x(n,B,P=>t(20,c=P)),n.$$set=P=>{"bulkActionsEnabled"in P&&t(0,$=P.bulkActionsEnabled),"updating"in P&&t(1,E=P.updating),"visibleWorkflows"in P&&t(17,b=P.visibleWorkflows),"selectedWorkflowsCount"in P&&t(2,w=P.selectedWorkflowsCount),"allSelected"in P&&t(3,y=P.allSelected),"pageSelected"in P&&t(18,M=P.pageSelected),"filteredWorkflowCount"in P&&t(4,J=P.filteredWorkflowCount),"$$scope"in P&&t(24,g=P.$$scope)},n.$$.update=()=>{n.$$.dirty&524288&&t(11,l=wn(p.data.settings)),n.$$.dirty&524288&&t(10,r=kn(p.data.settings)),n.$$.dirty&6291456&&t(9,s=(_==null?void 0:_.totalCount)>=1e6||!u),n.$$.dirty&1572864&&t(8,a=c.namespaceWriteDisabled(p.params.namespace)),n.$$.dirty&393228&&t(7,o=y||M||w===b.length&&w!==0),n.$$.dirty&12&&t(6,i=w>0||y),n.$$.dirty&131076&&t(5,f=w>0&&wbe(t,"checked",s)),t.$on("change",n[9]),{c(){e=S("td"),O(t.$$.fragment),this.h()},l(o){e=C(o,"TD",{style:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){Ll(e,"padding","0")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};i&16&&(f.disabled=o[4]),!l&&i&1&&(l=!0,f.checked=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function js(n){let e,t,l,r,s,a,o=n[2].id+"",i,f,p,c,u,_=Re(n[2].startTime,n[3])+"",m,g,h,$,E,b,w,y=n[2].name+"",M,J,F,G,X,U,B=Re(n[2].endTime,n[3])+"",P,A,L,ee,re=Re(n[2].startTime,n[3])+"",ie,fe,ue,we,ye=Re(n[2].endTime,n[3])+"",Ie,Ee,Ae,Z,te=n[1]&&fl(n);return l=new Yl({props:{status:n[2].status,delay:Lt(n[2].startTime)}}),p=new Vt({props:{show:n[5],content:n[2].id,onFilter:n[12],filtered:Boolean(n[7].find(n[13]))}}),G=new Vt({props:{show:n[5],content:n[2].name,onFilter:n[19],filtered:Boolean(n[7].find(n[20]))}}),{c(){te&&te.c(),e=q(),t=S("td"),O(l.$$.fragment),r=q(),s=S("td"),a=S("span"),i=j(o),f=q(),O(p.$$.fragment),c=q(),u=S("p"),m=j(_),g=q(),h=S("td"),$=S("h3"),E=j("Workflow Name:"),b=q(),w=S("button"),M=j(y),F=q(),O(G.$$.fragment),X=q(),U=S("p"),P=j(B),A=q(),L=S("td"),ee=S("p"),ie=j(re),fe=q(),ue=S("td"),we=S("p"),Ie=j(ye),this.h()},l(z){te&&te.l(z),e=H(z),t=C(z,"TD",{});var le=W(t);N(l.$$.fragment,le),le.forEach(d),r=H(z),s=C(z,"TD",{class:!0});var Y=W(s);a=C(Y,"SPAN",{class:!0});var oe=W(a);i=Q(oe,o),oe.forEach(d),f=H(Y),N(p.$$.fragment,Y),c=H(Y),u=C(Y,"P",{class:!0});var ce=W(u);m=Q(ce,_),ce.forEach(d),Y.forEach(d),g=H(z),h=C(z,"TD",{class:!0});var K=W(h);$=C(K,"H3",{class:!0});var De=W($);E=Q(De,"Workflow Name:"),De.forEach(d),b=H(K),w=C(K,"BUTTON",{class:!0,"aria-label":!0});var Fe=W(w);M=Q(Fe,y),Fe.forEach(d),F=H(K),N(G.$$.fragment,K),X=H(K),U=C(K,"P",{class:!0});var tt=W(U);P=Q(tt,B),tt.forEach(d),K.forEach(d),A=H(z),L=C(z,"TD",{class:!0});var It=W(L);ee=C(It,"P",{});var Dt=W(ee);ie=Q(Dt,re),Dt.forEach(d),It.forEach(d),fe=H(z),ue=C(z,"TD",{class:!0});var St=W(ue);we=C(St,"P",{});var Ct=W(we);Ie=Q(Ct,ye),Ct.forEach(d),St.forEach(d),this.h()},h(){D(a,"class","table-link svelte-1hpdy04"),D(u,"class","inline-time-cell svelte-1hpdy04"),D(s,"class","relative break-words pr-4"),D($,"class","md:hidden"),D(w,"class","table-link svelte-1hpdy04"),D(w,"aria-label",J="filter by "+n[2].name+" type"),D(U,"class","inline-time-cell svelte-1hpdy04"),D(h,"class","relative truncate"),D(L,"class","time-cell svelte-1hpdy04"),D(ue,"class","time-cell svelte-1hpdy04")},m(z,le){te&&te.m(z,le),I(z,e,le),I(z,t,le),V(l,t,null),I(z,r,le),I(z,s,le),k(s,a),k(a,i),k(s,f),V(p,s,null),k(s,c),k(s,u),k(u,m),I(z,g,le),I(z,h,le),k(h,$),k($,E),k(h,b),k(h,w),k(w,M),k(h,F),V(G,h,null),k(h,X),k(h,U),k(U,P),I(z,A,le),I(z,L,le),k(L,ee),k(ee,ie),I(z,fe,le),I(z,ue,le),k(ue,we),k(we,Ie),Ee=!0,Ae||(Z=[ne(s,"mouseover",n[14]),ne(s,"focus",n[15]),ne(s,"mouseleave",n[16]),ne(s,"blur",n[17]),ne(w,"click",Ue(Le(n[18]))),ne(h,"mouseover",n[21]),ne(h,"focus",n[22]),ne(h,"mouseleave",n[23]),ne(h,"blur",n[24])],Ae=!0)},p(z,le){z[1]?te?(te.p(z,le),le&2&&v(te,1)):(te=fl(z),te.c(),v(te,1),te.m(e.parentNode,e)):te&&(me(),T(te,1,1,()=>{te=null}),de());const Y={};le&4&&(Y.status=z[2].status),le&4&&(Y.delay=Lt(z[2].startTime)),l.$set(Y),(!Ee||le&4)&&o!==(o=z[2].id+"")&&_e(i,o);const oe={};le&32&&(oe.show=z[5]),le&4&&(oe.content=z[2].id),le&4&&(oe.onFilter=z[12]),le&132&&(oe.filtered=Boolean(z[7].find(z[13]))),p.$set(oe),(!Ee||le&12)&&_!==(_=Re(z[2].startTime,z[3])+"")&&_e(m,_),(!Ee||le&4)&&y!==(y=z[2].name+"")&&_e(M,y),(!Ee||le&4&&J!==(J="filter by "+z[2].name+" type"))&&D(w,"aria-label",J);const ce={};le&32&&(ce.show=z[5]),le&4&&(ce.content=z[2].name),le&4&&(ce.onFilter=z[19]),le&132&&(ce.filtered=Boolean(z[7].find(z[20]))),G.$set(ce),(!Ee||le&12)&&B!==(B=Re(z[2].endTime,z[3])+"")&&_e(P,B),(!Ee||le&12)&&re!==(re=Re(z[2].startTime,z[3])+"")&&_e(ie,re),(!Ee||le&12)&&ye!==(ye=Re(z[2].endTime,z[3])+"")&&_e(Ie,ye)},i(z){Ee||(v(te),v(l.$$.fragment,z),v(p.$$.fragment,z),v(G.$$.fragment,z),Ee=!0)},o(z){T(te),T(l.$$.fragment,z),T(p.$$.fragment,z),T(G.$$.fragment,z),Ee=!1},d(z){te&&te.d(z),z&&d(e),z&&d(t),R(l),z&&d(r),z&&d(s),R(p),z&&d(g),z&&d(h),R(G),z&&d(A),z&&d(L),z&&d(fe),z&&d(ue),Ae=!1,Me(Z)}}}function Qs(n){let e,t;return e=new Hn({props:{href:n[6],class:"workflow-summary-row",$$slots:{default:[js]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&64&&(s.href=l[6]),r&268435647&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ks(n,e,t){let l,r,s,a;x(n,We,L=>t(25,r=L)),x(n,pe,L=>t(7,s=L)),x(n,Oe,L=>t(26,a=L));const o=He();let{bulkActionsEnabled:i=!1}=e,{selected:f=!1}=e,{namespace:p}=e,{workflow:c}=e,{timeFormat:u}=e,{checkboxDisabled:_}=e,m=!1;const g=(L,ee)=>{const re=s.find(fe=>fe.attribute===L),ie=()=>s.filter(fe=>fe.attribute!==L);if(re)se(pe,s=[...ie()],s);else{const fe={attribute:L,value:ee,conditional:"=",operator:"",parenthesis:""};se(pe,s=[...ie(),fe],s)}Ve(a.url,s,r)},h=L=>{o("toggleWorkflow",{workflowRunId:c.runId,checked:L.detail.checked})};function $(L){f=L,t(0,f)}const E=()=>g("WorkflowId",c.id),b=L=>L.attribute==="WorkflowId"&&L.value===c.id,w=()=>t(5,m=!0),y=()=>t(5,m=!0),M=()=>t(5,m=!1),J=()=>t(5,m=!1),F=()=>g("WorkflowType",c.name),G=()=>g("WorkflowType",c.name),X=L=>L.attribute==="WorkflowType"&&L.value===c.name,U=()=>t(5,m=!0),B=()=>t(5,m=!0),P=()=>t(5,m=!1),A=()=>t(5,m=!1);return n.$$set=L=>{"bulkActionsEnabled"in L&&t(1,i=L.bulkActionsEnabled),"selected"in L&&t(0,f=L.selected),"namespace"in L&&t(10,p=L.namespace),"workflow"in L&&t(2,c=L.workflow),"timeFormat"in L&&t(3,u=L.timeFormat),"checkboxDisabled"in L&&t(4,_=L.checkboxDisabled)},n.$$.update=()=>{n.$$.dirty&1028&&t(6,l=qn({namespace:p,workflow:c.id,run:c.runId}))},[f,i,c,u,_,m,l,s,g,h,p,$,E,b,w,y,M,J,F,G,X,U,B,P,A]}class zs extends ke{constructor(e){super(),ve(this,e,Ks,Qs,Te,{bulkActionsEnabled:1,selected:0,namespace:10,workflow:2,timeFormat:3,checkboxDisabled:4})}}function Ys(n){let e;return{c(){e=j("Search")},l(t){e=Q(t,"Search")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Gs(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(g){n[5](g)}let m={id:"manual-search",type:"search",placeholder:"Enter a query",icon:"search",class:"w-3/4",clearable:!0,unroundRight:!0};return n[0]!==void 0&&(m.value=n[0]),r=new Ne({props:m}),he.push(()=>be(r,"value",_)),r.$on("clear",n[2]),o=new bt({props:{testId:"manual-search-button",variant:"primary",class:"h-10",unroundLeft:!0,type:"submit",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("div"),l=S("form"),O(r.$$.fragment),a=q(),O(o.$$.fragment),this.h()},l(g){e=C(g,"DIV",{class:!0});var h=W(e);t=C(h,"DIV",{class:!0});var $=W(t);l=C($,"FORM",{class:!0,role:!0});var E=W(l);N(r.$$.fragment,E),a=H(E),N(o.$$.fragment,E),E.forEach(d),$.forEach(d),h.forEach(d),this.h()},h(){D(l,"class","relative flex h-12 w-full items-center gap-0"),D(l,"role","search"),D(t,"class","flex h-12 w-full items-center gap-0"),D(e,"class","flex-items-center flex grow gap-4")},m(g,h){I(g,e,h),k(e,t),k(t,l),V(r,l,null),k(l,a),V(o,l,null),p=!0,c||(u=ne(l,"submit",Le(n[1])),c=!0)},p(g,[h]){const $={};!s&&h&1&&(s=!0,$.value=g[0],$e(()=>s=!1)),r.$set($);const E={};h&2048&&(E.$$scope={dirty:h,ctx:g}),o.$set(E)},i(g){p||(v(r.$$.fragment,g),v(o.$$.fragment,g),i||Ft(()=>{i=Ot(l,jn,{x:-100,duration:150}),i.start()}),f||Ft(()=>{f=Ot(t,Qn,{}),f.start()}),p=!0)},o(g){T(r.$$.fragment,g),T(o.$$.fragment,g),p=!1},d(g){g&&d(e),R(r),R(o),c=!1,u()}}}function Js(n,e,t){let l,r,s,a,o,i;x(n,Oe,m=>t(4,r=m)),x(n,Je,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Ze,m=>t(8,o=m)),x(n,We,m=>t(9,i=m));let f="";function p(m){t(0,f=m)}const c=()=>{if(!f)se(pe,a=[],a),se(We,i=[],i),se(Ze,o="",o);else try{se(pe,a=en(f),a)}catch{}f&&f===l?se(Je,s=Date.now(),s):Ge({url:r.url,parameter:"query",value:f,allowEmpty:!0})};function u(){c()}function _(m){f=m,t(0,f)}return n.$$.update=()=>{n.$$.dirty&16&&t(3,l=r.url.searchParams.get("query")),n.$$.dirty&8&&p(l)},[f,c,u,l,r,_]}class Zs extends ke{constructor(e){super(),ve(this,e,Js,Gs,Te,{})}}function ul(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function cl(n,e,t){const l=n.slice();return l[13]=e[t],l}function ml(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=S("p"),l=j(t),this.h()},l(r){e=C(r,"P",{class:!0});var s=W(e);l=Q(s,t),s.forEach(d),this.h()},h(){D(e,"class","cell svelte-1we9vff")},m(r,s){I(r,e,s),k(e,l)},p:ge,d(r){r&&d(e)}}}function dl(n,e){let t,l=(e[10]||"")+"",r,s,a,o;function i(){return e[6](e[10])}return{key:n,first:null,c(){t=S("button"),r=j(l),s=q(),this.h()},l(f){t=C(f,"BUTTON",{class:!0});var p=W(t);r=Q(p,l),s=H(p),p.forEach(d),this.h()},h(){D(t,"class","cell svelte-1we9vff"),ae(t,"highlight",e[9]&&e[10]),ae(t,"disabled",!e[9]),ae(t,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=t},m(f,p){I(f,t,p),k(t,r),k(t,s),a||(o=ne(t,"click",function(){bn(e[9]&&e[10]?i:ge)&&(e[9]&&e[10]?i:ge).apply(this,arguments)}),a=!0)},p(f,p){e=f,p&8&&l!==(l=(e[10]||"")+"")&&_e(r,l),p&8&&ae(t,"highlight",e[9]&&e[10]),p&8&&ae(t,"disabled",!e[9]),p&15&&ae(t,"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&&d(t),a=!1,o()}}}function Xs(n){let e,t,l,r,s=[],a=new Map,o=Ut,i=[];for(let c=0;cc[12];for(let c=0;c!0}=e,i=[];const f=u=>{l("datechange",new Date(a,s,u))},p=(u,_,m)=>m?o(new Date(u,_,m)):!0,c=u=>f(u);return n.$$set=u=>{"date"in u&&t(0,r=u.date),"month"in u&&t(1,s=u.month),"year"in u&&t(2,a=u.year),"isAllowed"in u&&t(5,o=u.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,i=Yn(s,a).map(u=>({value:u,allowed:p(a,s,u)})))},[r,s,a,i,f,o,c]}class eo extends ke{constructor(e){super(),ve(this,e,xs,Xs,Te,{date:0,month:1,year:2,isAllowed:5})}}function _l(n){var B;let e,t,l,r,s,a,o,i=(((B=qt(n[2]))==null?void 0:B.label)??"")+"",f,p,c,u,_,m,g,h,$,E,b,w,y,M,J,F,G,X,U;return s=new Ce({props:{name:"chevron-left"}}),g=new Ce({props:{name:"chevron-right"}}),$=new eo({props:{month:n[2],year:n[3],date:n[0],isAllowed:n[1]}}),$.$on("datechange",n[9]),{c(){e=S("div"),t=S("div"),l=S("div"),r=S("button"),O(s.$$.fragment),a=q(),o=S("div"),f=j(i),p=q(),c=j(n[3]),u=q(),_=S("div"),m=S("button"),O(g.$$.fragment),h=q(),O($.$$.fragment),E=q(),b=S("div"),w=S("button"),y=j("Today"),M=q(),J=S("button"),F=j("Close"),this.h()},l(P){e=C(P,"DIV",{class:!0});var A=W(e);t=C(A,"DIV",{class:!0});var L=W(t);l=C(L,"DIV",{class:!0});var ee=W(l);r=C(ee,"BUTTON",{});var re=W(r);N(s.$$.fragment,re),re.forEach(d),ee.forEach(d),a=H(L),o=C(L,"DIV",{class:!0});var ie=W(o);f=Q(ie,i),p=H(ie),c=Q(ie,n[3]),ie.forEach(d),u=H(L),_=C(L,"DIV",{class:!0});var fe=W(_);m=C(fe,"BUTTON",{});var ue=W(m);N(g.$$.fragment,ue),ue.forEach(d),fe.forEach(d),L.forEach(d),h=H(A),N($.$$.fragment,A),E=H(A),b=C(A,"DIV",{class:!0});var we=W(b);w=C(we,"BUTTON",{class:!0});var ye=W(w);y=Q(ye,"Today"),ye.forEach(d),M=H(we),J=C(we,"BUTTON",{class:!0});var Ie=W(J);F=Q(Ie,"Close"),Ie.forEach(d),we.forEach(d),A.forEach(d),this.h()},h(){D(l,"class","flex items-center justify-center"),D(o,"class","flex items-center justify-center"),D(_,"class","flex items-center justify-center"),D(t,"class","mx-3 my-2 flex items-center justify-around"),D(w,"class","cursor-pointer text-[12px]"),D(J,"class","cursor-pointer text-[12px]"),D(b,"class","my-1 flex justify-between px-2"),D(e,"class","absolute top-12 z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(P,A){I(P,e,A),k(e,t),k(t,l),k(l,r),V(s,r,null),k(t,a),k(t,o),k(o,f),k(o,p),k(o,c),k(t,u),k(t,_),k(_,m),V(g,m,null),k(e,h),V($,e,null),k(e,E),k(e,b),k(b,w),k(w,y),k(b,M),k(b,J),k(J,F),G=!0,X||(U=[ne(r,"click",n[8]),ne(m,"click",n[7]),ne(w,"click",n[10]),ne(J,"click",n[11])],X=!0)},p(P,A){var ee;(!G||A&4)&&i!==(i=(((ee=qt(P[2]))==null?void 0:ee.label)??"")+"")&&_e(f,i),(!G||A&8)&&_e(c,P[3]);const L={};A&4&&(L.month=P[2]),A&8&&(L.year=P[3]),A&1&&(L.date=P[0]),A&2&&(L.isAllowed=P[1]),$.$set(L)},i(P){G||(v(s.$$.fragment,P),v(g.$$.fragment,P),v($.$$.fragment,P),G=!0)},o(P){T(s.$$.fragment,P),T(g.$$.fragment,P),T($.$$.fragment,P),G=!1},d(P){P&&d(e),R(s),R(g),R($),X=!1,Me(U)}}}function to(n){let e,t,l,r,s,a;t=new Ne({props:{id:"datepicker",icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0}}),t.$on("focus",n[5]),t.$on("input",n[6]);let o=n[4]&&_l(n);return{c(){e=S("div"),O(t.$$.fragment),l=q(),o&&o.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var f=W(e);N(t.$$.fragment,f),l=H(f),o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"class","relative")},m(i,f){I(i,e,f),V(t,e,null),k(e,l),o&&o.m(e,null),r=!0,s||(a=[Pl(Gl.call(null,e)),ne(e,"click-outside",n[12])],s=!0)},p(i,[f]){const p={};f&1&&(p.value=i[0].toDateString()),t.$set(p),i[4]?o?(o.p(i,f),f&16&&v(o,1)):(o=_l(i),o.c(),v(o,1),o.m(e,null)):o&&(me(),T(o,1,1,()=>{o=null}),de())},i(i){r||(v(t.$$.fragment,i),v(o),r=!0)},o(i){T(t.$$.fragment,i),T(o),r=!1},d(i){i&&d(e),R(t),o&&o.d(),s=!1,Me(a)}}}function lo(n,e,t){const l=He();let{isAllowed:r=()=>!0}=e,{selected:s=new Date}=e,a,o,i=!1;const f=()=>{t(4,i=!0)},p=$=>{const b=$.target.value;if(b.length===8){const w=b==null?void 0:b.split("/"),M=2e3+parseInt(w[2]),J=parseInt(w[0])-1,F=parseInt(w[1]),G=new Date(M,J,F);l("datechange",G)}},c=()=>{if(a===11){t(2,a=0),t(3,o=o+1);return}t(2,a=a+1)},u=()=>{if(a===0){t(2,a=11),t(3,o-=1);return}t(2,a-=1)},_=$=>{t(4,i=!1),l("datechange",$.detail)},m=()=>t(0,s=new Date),g=()=>t(4,i=!1),h=()=>t(4,i=!1);return n.$$set=$=>{"isAllowed"in $&&t(1,r=$.isAllowed),"selected"in $&&t(0,s=$.selected)},n.$$.update=()=>{n.$$.dirty&1&&(t(2,a=s.getMonth()),t(3,o=s.getFullYear()))},[s,r,a,o,i,f,p,c,u,_,m,g,h]}class pl extends ke{constructor(e){super(),ve(this,e,lo,to,Te,{isAllowed:1,selected:0})}}function no(n){let e;return{c(){e=j("AM")},l(t){e=Q(t,"AM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ro(n){let e;return{c(){e=j("PM")},l(t){e=Q(t,"PM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function so(n){let e,t,l,r;return e=new Ht({props:{active:n[3]==="AM",$$slots:{default:[no]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new Ht({props:{active:n[3]==="PM",$$slots:{default:[ro]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){O(e.$$.fragment),t=q(),O(l.$$.fragment)},l(s){N(e.$$.fragment,s),t=H(s),N(l.$$.fragment,s)},m(s,a){V(e,s,a),I(s,t,a),V(l,s,a),r=!0},p(s,a){const o={};a&8&&(o.active=s[3]==="AM"),a&512&&(o.$$scope={dirty:a,ctx:s}),e.$set(o);const i={};a&8&&(i.active=s[3]==="PM"),a&512&&(i.$$scope={dirty:a,ctx:s}),l.$set(i)},i(s){r||(v(e.$$.fragment,s),v(l.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(l.$$.fragment,s),r=!1},d(s){R(e,s),s&&d(t),R(l,s)}}}function oo(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(b){n[4](b)}let m={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:Boolean(parseInt(n[0])>12)};n[0]!==void 0&&(m.value=n[0]),t=new Ne({props:m}),he.push(()=>be(t,"value",_));function g(b){n[5](b)}let h={id:"minute",required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(n[0])>59)};n[1]!==void 0&&(h.value=n[1]),s=new Ne({props:h}),he.push(()=>be(s,"value",g));function $(b){n[6](b)}let E={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(n[0])>59)};return n[2]!==void 0&&(E.value=n[2]),i=new Ne({props:E}),he.push(()=>be(i,"value",$)),c=new Gn({props:{$$slots:{default:[so]},$$scope:{ctx:n}}}),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),this.h()},l(b){e=C(b,"DIV",{class:!0});var w=W(e);N(t.$$.fragment,w),r=H(w),N(s.$$.fragment,w),o=H(w),N(i.$$.fragment,w),p=H(w),N(c.$$.fragment,w),w.forEach(d),this.h()},h(){D(e,"class","flex gap-2")},m(b,w){I(b,e,w),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),u=!0},p(b,[w]){const y={};w&1&&(y.error=Boolean(parseInt(b[0])>12)),!l&&w&1&&(l=!0,y.value=b[0],$e(()=>l=!1)),t.$set(y);const M={};w&1&&(M.error=Boolean(parseInt(b[0])>59)),!a&&w&2&&(a=!0,M.value=b[1],$e(()=>a=!1)),s.$set(M);const J={};w&1&&(J.error=Boolean(parseInt(b[0])>59)),!f&&w&4&&(f=!0,J.value=b[2],$e(()=>f=!1)),i.$set(J);const F={};w&520&&(F.$$scope={dirty:w,ctx:b}),c.$set(F)},i(b){u||(v(t.$$.fragment,b),v(s.$$.fragment,b),v(i.$$.fragment,b),v(c.$$.fragment,b),u=!0)},o(b){T(t.$$.fragment,b),T(s.$$.fragment,b),T(i.$$.fragment,b),T(c.$$.fragment,b),u=!1},d(b){b&&d(e),R(t),R(s),R(i),R(c)}}}function ao(n,e,t){let{hour:l=""}=e,{minute:r=""}=e,{second:s=""}=e,{half:a="AM"}=e;function o(u){l=u,t(0,l)}function i(u){r=u,t(1,r)}function f(u){s=u,t(2,s)}const p=()=>t(3,a="AM"),c=()=>t(3,a="PM");return n.$$set=u=>{"hour"in u&&t(0,l=u.hour),"minute"in u&&t(1,r=u.minute),"second"in u&&t(2,s=u.second),"half"in u&&t(3,a=u.half)},[l,r,s,a,o,i,f,p,c]}class hl extends ke{constructor(e){super(),ve(this,e,ao,oo,Te,{hour:0,minute:1,second:2,half:3})}}function gl(n,e,t){const l=n.slice();return l[46]=e[t],l}function io(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$,E,b,w,y,M;r=new gt({props:{value:"All Time",$$slots:{default:[uo]},$$scope:{ctx:n}}}),o=new gt({props:{value:"Custom",$$slots:{default:[co]},$$scope:{ctx:n}}});let J=Pt,F=[];for(let B=0;BT(F[B],1,1,()=>{F[B]=null});let X=n[3]==="StartTime"&&$l(),U=n[3]==="CloseTime"&&wl();return{c(){e=S("div"),t=S("div"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),O(o.$$.fragment),i=q();for(let B=0;Bbe(t,"value",$)),t.$on("input",n[8]);function b(U){n[10](U)}let w={icon:"search",type:"search",id:"workflow-type-filter",placeholder:"Workflow Type"};n[3].workflowType!==void 0&&(w.value=n[3].workflowType),s=new Ne({props:w}),he.push(()=>be(s,"value",b)),s.$on("input",n[8]);function y(U){n[11](U)}let M={id:"time-range-filter",label:"Time Range",$$slots:{default:[dr]},$$scope:{ctx:n}};n[3].timeRange!==void 0&&(M.value=n[3].timeRange),i=new _t({props:M}),he.push(()=>be(i,"value",y)),i.$on("change",n[8]);function J(U){n[12](U)}let F={id:"execution-status-filter",label:"Workflow Status",$$slots:{default:[pr]},$$scope:{ctx:n}};n[3].executionStatus!==void 0&&(F.value=n[3].executionStatus),c=new _t({props:F}),he.push(()=>be(c,"value",J)),c.$on("change",n[8]);function G(U){n[13](U)}let X={id:"filter-by-relative-time",label:"Time Format",$$slots:{default:[$r]},$$scope:{ctx:n}};return n[4]!==void 0&&(X.value=n[4]),m=new _t({props:X}),he.push(()=>be(m,"value",G)),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),_=q(),O(m.$$.fragment),this.h()},l(U){e=C(U,"DIV",{role:!0,class:!0});var B=W(e);N(t.$$.fragment,B),r=H(B),N(s.$$.fragment,B),o=H(B),N(i.$$.fragment,B),p=H(B),N(c.$$.fragment,B),_=H(B),N(m.$$.fragment,B),B.forEach(d),this.h()},h(){D(e,"role","search"),D(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(U,B){I(U,e,B),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),k(e,_),V(m,e,null),h=!0},p(U,B){const P={};!l&&B&8&&(l=!0,P.value=U[3].workflowId,$e(()=>l=!1)),t.$set(P);const A={};!a&&B&8&&(a=!0,A.value=U[3].workflowType,$e(()=>a=!1)),s.$set(A);const L={};B&4194312&&(L.$$scope={dirty:B,ctx:U}),!f&&B&8&&(f=!0,L.value=U[3].timeRange,$e(()=>f=!1)),i.$set(L);const ee={};B&4194304&&(ee.$$scope={dirty:B,ctx:U}),!u&&B&8&&(u=!0,ee.value=U[3].executionStatus,$e(()=>u=!1)),c.$set(ee);const re={};B&4194304&&(re.$$scope={dirty:B,ctx:U}),!g&&B&16&&(g=!0,re.value=U[4],$e(()=>g=!1)),m.$set(re)},i(U){h||(v(t.$$.fragment,U),v(s.$$.fragment,U),v(i.$$.fragment,U),v(c.$$.fragment,U),v(m.$$.fragment,U),h=!0)},o(U){T(t.$$.fragment,U),T(s.$$.fragment,U),T(i.$$.fragment,U),T(c.$$.fragment,U),T(m.$$.fragment,U),h=!1},d(U){U&&d(e),R(t),R(s),R(i),R(c),R(m)}}}function fr(n){let e,t;return e=new Tn({props:{icon:!0,id:"advanced-search",placeholder:"Query…",value:n[1]}}),e.$on("submit",n[7]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ur(n){let e;return{c(){e=j("All")},l(t){e=Q(t,"All")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Kt(n){let e,t;return e=new qe({props:{value:n[3].timeRange,$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8&&(s.value=l[3].timeRange),r&4194312&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function cr(n){let e=n[3].timeRange+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p(l,r){r&8&&e!==(e=l[3].timeRange+"")&&_e(t,e)},d(l){l&&d(t)}}}function mr(n){let e=n[17]+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p:ge,d(l){l&&d(t)}}}function zt(n){let e,t;return e=new qe({props:{value:n[17],$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&4194304&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function dr(n){let e,t,l=n[3].timeRange&&!lt.includes(n[3].timeRange),r,s,a;e=new qe({props:{value:null,$$slots:{default:[ur]},$$scope:{ctx:n}}});let o=l&&Kt(n),i=lt,f=[];for(let c=0;cT(f[c],1,1,()=>{f[c]=null});return{c(){O(e.$$.fragment),t=q(),o&&o.c(),r=q();for(let c=0;c{o=null}),de()),u&0){i=lt;let m;for(m=0;mo[16];for(let o=0;o{c[g]=null}),de(),s=c[r],s?s.p(_,m):(s=c[r]=p[r](_),s.c()),v(s,1),s.m(e,null))},i(_){a||(v(s),a=!0)},o(_){T(s),a=!1},d(_){_&&d(e),f.d(),c[r].d()}}}function kr(n,e,t){let l,r,s,a;x(n,Oe,b=>t(2,s=b)),x(n,Pe,b=>t(4,a=b));const o=He();let{searchType:i}=e;const f=Mt({timeRange:"All"}),p={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=b=>()=>{t(0,i=b),Ge({parameter:"search",value:i,url:s.url})},u=b=>{o("search");const w=new FormData(b.target);t(1,l=String(w.get("query"))),t(3,r=Nt(l)),Ge({url:s.url,parameter:"query",value:l})},_=Ql(()=>{o("search"),t(1,l=Mt(r)),Ge({url:s.url,parameter:"query",value:l,allowEmpty:!0})},300);function m(b){n.$$.not_equal(r.workflowId,b)&&(r.workflowId=b,t(3,r),t(1,l),t(2,s))}function g(b){n.$$.not_equal(r.workflowType,b)&&(r.workflowType=b,t(3,r),t(1,l),t(2,s))}function h(b){n.$$.not_equal(r.timeRange,b)&&(r.timeRange=b,t(3,r),t(1,l),t(2,s))}function $(b){n.$$.not_equal(r.executionStatus,b)&&(r.executionStatus=b,t(3,r),t(1,l),t(2,s))}function E(b){a=b,Pe.set(a)}return n.$$set=b=>{"searchType"in b&&t(0,i=b.searchType)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=s.url.searchParams.get("query")),n.$$.dirty&2&&t(3,r=Nt(l??f))},[i,l,s,r,a,p,c,u,_,m,g,h,$,E]}class vr extends ke{constructor(e){super(),ve(this,e,kr,wr,Te,{searchType:0})}}const Tr=n=>Vn(n)?n==="basic"||n==="advanced":!1,Er=n=>{const e=n.searchParams.get("search");return Tr(e)?e:(n.searchParams.set("search","basic"),"basic")};function Gt(n,e,t){const l=n.slice();return l[14]=e[t],l}function Jt(n){let e,t,l,r,s,a,o,i,f,p;const c=[Ir,yr],u=[];function _($,E){return $[5]?0:1}l=_(n),r=u[l]=c[l](n);const m=[Sr,Dr],g=[];function h($,E){return $[5]?0:1}return o=h(n),i=g[o]=m[o](n),{c(){e=S("tr"),t=S("td"),r.c(),s=q(),a=S("td"),i.c(),f=q(),this.h()},l($){e=C($,"TR",{});var E=W(e);t=C(E,"TD",{colspan:!0,class:!0});var b=W(t);r.l(b),b.forEach(d),s=H(E),a=C(E,"TD",{colspan:!0,class:!0});var w=W(a);i.l(w),w.forEach(d),f=H(E),E.forEach(d),this.h()},h(){D(t,"colspan","5"),D(t,"class","xl:hidden"),D(a,"colspan","7"),D(a,"class","hidden xl:table-cell")},m($,E){I($,e,E),k(e,t),u[l].m(t,null),k(e,s),k(e,a),g[o].m(a,null),k(e,f),p=!0},p($,E){let b=l;l=_($),l===b?u[l].p($,E):(me(),T(u[b],1,1,()=>{u[b]=null}),de(),r=u[l],r?r.p($,E):(r=u[l]=c[l]($),r.c()),v(r,1),r.m(t,null));let w=o;o=h($),o===w?g[o].p($,E):(me(),T(g[w],1,1,()=>{g[w]=null}),de(),i=g[o],i?i.p($,E):(i=g[o]=m[o]($),i.c()),v(i,1),i.m(a,null))},i($){p||(v(r),v(i),p=!0)},o($){T(r),T(i),p=!1},d($){$&&d(e),u[l].d(),g[o].d()}}}function yr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ir(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Dr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Sr(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zt(n){let e,t;return e=new yn({props:{workflow:n[14],namespace:n[1].params.namespace,timeFormat:n[4]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8192&&(s.workflow=l[14]),r&2&&(s.namespace=l[1].params.namespace),r&16&&(s.timeFormat=l[4]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cr(n){let e,t,l=n[13],r=[];for(let o=0;oT(r[o],1,1,()=>{r[o]=null});let a=null;return l.length||(a=Jt(n)),{c(){for(let o=0;o{a=null}),de()):(a=Jt(o),a.c(),v(a,1),a.m(e.parentNode,e))}},i(o){if(!t){for(let i=0;ibe(g,"searchType",M)),E=new jl({props:{items:n[2],"aria-label":"recent workflows",$$slots:{default:[Wr,({visibleItems:F})=>({13:F}),({visibleItems:F})=>F?8192:0]},$$scope:{ctx:n}}}),{c(){e=S("header"),t=S("div"),l=S("h1"),r=j("Recent Workflows"),s=q(),a=S("div"),o=S("p"),f=j(i),p=q(),c=S("div"),u=S("button"),O(_.$$.fragment),m=q(),O(g.$$.fragment),$=q(),O(E.$$.fragment),this.h()},l(F){e=C(F,"HEADER",{class:!0});var G=W(e);t=C(G,"DIV",{});var X=W(t);l=C(X,"H1",{class:!0,"data-testid":!0});var U=W(l);r=Q(U,"Recent Workflows"),U.forEach(d),s=H(X),a=C(X,"DIV",{class:!0});var B=W(a);o=C(B,"P",{"data-testid":!0});var P=W(o);f=Q(P,i),P.forEach(d),B.forEach(d),X.forEach(d),p=H(G),c=C(G,"DIV",{});var A=W(c);u=C(A,"BUTTON",{"aria-label":!0,class:!0});var L=W(u);N(_.$$.fragment,L),L.forEach(d),A.forEach(d),G.forEach(d),m=H(F),N(g.$$.fragment,F),$=H(F),N(E.$$.fragment,F),this.h()},h(){D(l,"class","text-2xl"),D(l,"data-testid","namespace-title"),D(o,"data-testid","namespace-name"),D(a,"class","flex items-center gap-2 text-sm"),D(u,"aria-label","retry workflows"),D(u,"class","cursor-pointer rounded-full p-1 hover:bg-gray-900 hover:text-white"),D(e,"class","mb-2 flex justify-between")},m(F,G){I(F,e,G),k(e,t),k(t,l),k(l,r),k(t,s),k(t,a),k(a,o),k(o,f),k(e,p),k(e,c),k(c,u),V(_,u,null),I(F,m,G),V(g,F,G),I(F,$,G),V(E,F,G),b=!0,w||(y=ne(u,"click",n[8]),w=!0)},p(F,[G]){(!b||G&2)&&i!==(i=F[1].params.namespace+"")&&_e(f,i);const X={};!h&&G&1&&(h=!0,X.searchType=F[0],$e(()=>h=!1)),g.$set(X);const U={};G&4&&(U.items=F[2]),G&139386&&(U.$$scope={dirty:G,ctx:F}),E.$set(U)},i(F){b||(v(_.$$.fragment,F),v(g.$$.fragment,F),v(E.$$.fragment,F),b=!0)},o(F){T(_.$$.fragment,F),T(g.$$.fragment,F),T(E.$$.fragment,F),b=!1},d(F){F&&d(e),R(_),F&&d(m),R(g,F),F&&d($),R(E,F),w=!1,y()}}}function Fr(n,e,t){let l,r,s,a,o,i,f,p,c;x(n,Oe,h=>t(1,l=h)),x(n,at,h=>t(10,r=h)),x(n,Je,h=>t(11,s=h)),x(n,it,h=>t(12,a=h)),x(n,Ml,h=>t(2,o=h)),x(n,Bl,h=>t(3,i=h)),x(n,Pe,h=>t(4,f=h)),x(n,Ul,h=>t(5,p=h)),x(n,ql,h=>t(6,c=h));let u=Er(l.url);const _=u==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Vl(()=>{se(it,a=l.params.namespace,a)});const m=()=>{se(Je,s=Date.now(),s)};pn(()=>{se(at,r=l.url.searchParams.toString(),r)});function g(h){u=h,t(0,u)}return[u,l,o,i,f,p,c,_,m,g]}class Or extends ke{constructor(e){super(),ve(this,e,Fr,Ar,Te,{})}}const Nr=n=>({}),Xt=n=>({});function Vr(n){let e;const t=n[2].fallback,l=Qe(t,n,n[1],Xt);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,Nr):ze(r[1]),Xt)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Rr(n){let e;const t=n[2].default,l=Qe(t,n,n[1],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,null):ze(r[1]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Lr(n){let e,t,l,r;const s=[Rr,Vr],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function Pr(n,e,t){let l;x(n,xe,a=>t(0,l=a));let{$$slots:r={},$$scope:s}=e;return n.$$set=a=>{"$$scope"in a&&t(1,s=a.$$scope)},[l,s,r]}class Mr extends ke{constructor(e){super(),ve(this,e,Pr,Lr,Te,{})}}const Br={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ur=n=>!(n===null||n===void 0||n===""||typeof n=="string"&&n==="undefined"),qr=(n,e,t="=",l,r)=>{const s=Br[n]??n;return e==="All"?"":r?`${s} ${e}`:Sn(e)||Cn(e)?l||Rl(xe)?`${s} > "${Rt(e)}"`:`${s} BETWEEN "${Rt(e)}" AND "${Wn()}"`:`${s}${t}"${e}"`},Hr=(n,e)=>n.map(({attribute:t,value:l,conditional:r,operator:s,parenthesis:a,customDate:o})=>{if(Ur(l)){let i=qr(t,l,r,e,o);return a==="("?i=`(${i}`:a===")"&&(i=`${i})`),s&&(i=`${i} ${s} `),i}}).filter(Boolean),jr=(n=[],e=[],t=!1)=>{const l=e.length?` order by ${e[0].attribute} ${e[0].value}`:"";return Hr(n,t).join("")+l},Qr=n=>e=>e.toLowerCase()===n.toLowerCase(),xt=(n,e)=>n[e+2],Kr=(n,e)=>n[e-2],zr=n=>{if(n){for(const e of On)if(n[e])return{[e]:n[e]}}},Yr=Qr("Datetime"),ht=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),Gr={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword"},en=(n,e=Gr)=>{const t=In(n),l=[];let r=ht();if(!n)return[];try{return t.forEach((s,a)=>{if(e[s])if(r.attribute=s,Yr(e[s])){const o=xt(t,a);try{const i=An(o),f=zr(i);r.value=Fn(f)}catch(i){console.error("Error parsing Datetime field from query",i)}}else r.value=xt(t,a);Rn(s)&&(r.conditional=s),Ln(s)&&(r.parenthesis=s),Pn(s)&&!Mn(Kr(t,a))&&(r.operator=s,l.push(r),r=ht()),a===t.length-1&&(l.push(r),r=ht())}),l}catch(s){return console.error("Error setting filter parameters: ",s),[]}},Jr=n=>{const e=n.filter(a=>a.attribute==="ExecutionStatus"&&a.value),t=n.filter(a=>a.attribute==="WorkflowId"&&a.value),l=n.filter(a=>a.attribute==="WorkflowType"&&a.value),r=n.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),s=[e,t,l,r].filter(a=>a.length);return s.forEach((a,o)=>{var i,f;a.length&&((i=s[o+1])!=null&&i.length)?a[a.length-1].operator="AND":a.length&&!((f=s[o+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...t,...l,...r]},Ve=Ql((n,e,t)=>{const l=Jr(e),r=jr(l,t);Ge({url:n,parameter:"query",value:r,allowEmpty:!1})},300);function el(n,e,t){const l=n.slice();return l[10]=e[t][0],l[11]=e[t][1],l}function tl(n){let e,t;return e=new Ce({props:{class:"pointer-events-none -mt-[1px] -ml-[2px] text-white",name:"checkmark",width:20,height:20}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zr(n){let e,t;return e=new Yl({props:{status:n[11]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Xr(n){let e;return{c(){e=j("All Statuses")},l(t){e=Q(t,"All Statuses")},m(t,l){I(t,e,l)},p:ge,i:ge,o:ge,d(t){t&&d(e)}}}function ll(n,e){let t,l,r=e[0].find(_)||!e[0].length&&e[11]==="All",s,a,o,i,f,p,c,u;function _(...w){return e[6](e[11],...w)}let m=r&&tl();function g(...w){return e[7](e[11],...w)}const h=[Xr,Zr],$=[];function E(w,y){return w[11]==="All"?0:1}o=E(e),i=$[o]=h[o](e);function b(){return e[8](e[11])}return{key:n,first:null,c(){t=S("button"),l=S("div"),m&&m.c(),s=q(),a=S("div"),i.c(),f=q(),this.h()},l(w){t=C(w,"BUTTON",{class:!0,"data-testid":!0});var y=W(t);l=C(y,"DIV",{class:!0});var M=W(l);m&&m.l(M),M.forEach(d),s=H(y),a=C(y,"DIV",{class:!0});var J=W(a);i.l(J),J.forEach(d),f=H(y),y.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-4 w-4 rounded-sm ring-1 ring-gray-900 svelte-mpn3ee"),ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),D(a,"class","flex h-6 items-center text-sm hover:scale-[103%]"),D(t,"class","flex items-center transition-all hover:cursor-pointer"),D(t,"data-testid",e[10]),this.first=t},m(w,y){I(w,t,y),k(t,l),m&&m.m(l,null),k(t,s),k(t,a),$[o].m(a,null),k(t,f),p=!0,c||(u=ne(t,"click",b),c=!0)},p(w,y){e=w,y&1&&(r=e[0].find(_)||!e[0].length&&e[11]==="All"),r?m?y&1&&v(m,1):(m=tl(),m.c(),v(m,1),m.m(l,null)):m&&(me(),T(m,1,1,()=>{m=null}),de()),(!p||y&5)&&ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),i.p(e,y)},i(w){p||(v(m),v(i),p=!0)},o(w){T(m),T(i),p=!1},d(w){w&&d(t),m&&m.d(),$[o].d(),c=!1,u()}}}function xr(n){let e,t=[],l=new Map,r,s=Object.entries(n[2]);const a=o=>o[11];for(let o=0;o{const l=t===0?"(":t===n.length-1?")":"",r=t===n.length-1?"":"OR";return{...e,operator:r,parenthesis:l}})}const rl=n=>n.value;function ls(n,e,t){let l,r,s,a,o;x(n,We,_=>t(4,s=_)),x(n,pe,_=>t(5,a=_)),x(n,Oe,_=>t(9,o=_));const i={All:"All",Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},f=_=>{if(_==="All")se(pe,a=a.filter(m=>m.attribute!=="ExecutionStatus"),a);else if(l.find(m=>m.value===_)){const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl(l.filter(g=>g.value!==_))],a)}else if(!l.length)se(pe,a=[...a,$t(_)],a);else{const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl([...l,$t(_)])],a)}Ve(o.url,a,s)},p=(_,m)=>m.value===_,c=(_,m)=>m.value===_,u=_=>f(_);return n.$$.update=()=>{n.$$.dirty&32&&t(0,l=a.filter(_=>_.attribute==="ExecutionStatus")),n.$$.dirty&16&&t(1,r=s.find(_=>_.attribute==="ExecutionStatus"))},[l,r,i,f,s,a,p,c,u]}class tn extends ke{constructor(e){super(),ve(this,e,ls,ts,Te,{})}}function ns(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowId",placeholder:"Workflow ID",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function rs(n){let e;return{c(){e=j("Workflow ID")},l(t){e=Q(t,"Workflow ID")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ss(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-id-filter-button",$$slots:{label:[rs],default:[ns]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function os(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowId"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowId",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&(l!=null&&l.value)?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowId")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowId"))},[i,l,r,p,c,u,s,a,_]}class ln extends ke{constructor(e){super(),ve(this,e,os,ss,Te,{})}}function as(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowType",placeholder:"Workflow Type",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function is(n){let e;return{c(){e=j("Type")},l(t){e=Q(t,"Type")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function fs(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-type-filter-button",$$slots:{label:[is],default:[as]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function us(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowType"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowType",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&l?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowType")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowType"))},[i,l,r,p,c,u,s,a,_]}class nn extends ke{constructor(e){super(),ve(this,e,us,fs,Te,{})}}function cs(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$;return r=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"ascending",width:24,height:24}}),c=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"descending",width:24,height:24}}),{c(){e=S("div"),t=S("button"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),o=j("Ascending"),i=q(),f=S("button"),p=S("div"),O(c.$$.fragment),u=q(),_=S("div"),m=j("Descending"),this.h()},l(E){e=C(E,"DIV",{class:!0});var b=W(e);t=C(b,"BUTTON",{class:!0});var w=W(t);l=C(w,"DIV",{class:!0});var y=W(l);N(r.$$.fragment,y),y.forEach(d),s=H(w),a=C(w,"DIV",{class:!0});var M=W(a);o=Q(M,"Ascending"),M.forEach(d),w.forEach(d),i=H(b),f=C(b,"BUTTON",{class:!0});var J=W(f);p=C(J,"DIV",{class:!0});var F=W(p);N(c.$$.fragment,F),F.forEach(d),u=H(J),_=C(J,"DIV",{class:!0});var G=W(_);m=Q(G,"Descending"),G.forEach(d),J.forEach(d),b.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(l,"active",n[1].find(n[3])),D(a,"class","p-1 hover:scale-[103%]"),D(t,"class","flex items-center"),D(p,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(p,"active",n[1].find(n[5])),D(_,"class","p-1 hover:scale-[103%]"),D(f,"class","flex items-center"),D(e,"class","mt-2 transition-all hover:cursor-pointer")},m(E,b){I(E,e,b),k(e,t),k(t,l),V(r,l,null),k(t,s),k(t,a),k(a,o),k(e,i),k(e,f),k(f,p),V(c,p,null),k(f,u),k(f,_),k(_,m),g=!0,h||($=[ne(t,"click",n[4]),ne(f,"click",n[6])],h=!0)},p(E,[b]){(!g||b&3)&&ae(l,"active",E[1].find(E[3])),(!g||b&3)&&ae(p,"active",E[1].find(E[5]))},i(E){g||(v(r.$$.fragment,E),v(c.$$.fragment,E),g=!0)},o(E){T(r.$$.fragment,E),T(c.$$.fragment,E),g=!1},d(E){E&&d(e),R(r),R(c),h=!1,Me($)}}}function ms(n,e,t){let l,r,s;x(n,We,u=>t(1,l=u)),x(n,pe,u=>t(7,r=u)),x(n,Oe,u=>t(8,s=u));let{type:a}=e;const o=u=>{l.find(_=>_.value===u&&_.attribute===a)?se(We,l=[],l):se(We,l=[{attribute:a,value:u}],l),Ve(s.url,r,l)},i=u=>u.value==="asc"&&u.attribute===a,f=()=>o("asc"),p=u=>u.value==="desc"&&u.attribute===a,c=()=>o("desc");return n.$$set=u=>{"type"in u&&t(0,a=u.type)},[a,l,o,i,f,p,c]}class rn extends ke{constructor(e){super(),ve(this,e,ms,cs,Te,{type:0})}}function ds(n){let e,t,l;return t=new rn({props:{type:"StartTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function _s(n){let e;return{c(){e=j("Start Time")},l(t){e=Q(t,"Start Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ps(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[_s],default:[ds]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function hs(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="StartTime"))},[s,l,r]}class sn extends ke{constructor(e){super(),ve(this,e,hs,ps,Te,{disabled:0})}}function gs(n){let e,t,l;return t=new rn({props:{type:"CloseTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function bs(n){let e;return{c(){e=j("End Time")},l(t){e=Q(t,"End Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function $s(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[bs],default:[gs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function ws(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="CloseTime"))},[s,l,r]}class on extends ke{constructor(e){super(),ve(this,e,ws,$s,Te,{disabled:0})}}function ks(n){let e,t,l,r,s;const a=n[5].default,o=Qe(a,n,n[4],null);return{c(){e=S("button"),o&&o.c(),this.h()},l(i){e=C(i,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"data-testid",n[0]),e.disabled=n[1],D(e,"class",t="bulk-action-button "+n[2]+" "+n[3].class+" svelte-19w6g7u")},m(i,f){I(i,e,f),o&&o.m(e,null),l=!0,r||(s=ne(e,"click",n[6]),r=!0)},p(i,[f]){o&&o.p&&(!l||f&16)&&Ke(o,a,i,i[4],l?Ye(a,i[4],f,null):ze(i[4]),null),(!l||f&1)&&D(e,"data-testid",i[0]),(!l||f&2)&&(e.disabled=i[1]),(!l||f&12&&t!==(t="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&D(e,"class",t)},i(i){l||(v(o,i),l=!0)},o(i){T(o,i),l=!1},d(i){i&&d(e),o&&o.d(i),r=!1,s()}}}function vs(n,e,t){let{$$slots:l={},$$scope:r}=e,{testId:s=null}=e,{disabled:a=!1}=e,{variant:o="primary"}=e;function i(f){Be.call(this,n,f)}return n.$$set=f=>{t(3,e=Xe(Xe({},e),ot(f))),"testId"in f&&t(0,s=f.testId),"disabled"in f&&t(1,a=f.disabled),"variant"in f&&t(2,o=f.variant),"$$scope"in f&&t(4,r=f.$$scope)},e=ot(e),[s,a,o,e,r,l,i]}class an extends ke{constructor(e){super(),ve(this,e,vs,ks,Te,{testId:0,disabled:1,variant:2})}}function sl(n){let e,t;return{c(){e=S("span"),t=j(n[2]),this.h()},l(l){e=C(l,"SPAN",{class:!0});var r=W(e);t=Q(r,n[2]),r.forEach(d),this.h()},h(){D(e,"class","label svelte-l6k8ad"),ae(e,"hoverable",n[6])},m(l,r){I(l,e,r),k(e,t)},p(l,r){r&4&&_e(t,l[2]),r&64&&ae(e,"hoverable",l[6])},d(l){l&&d(e)}}}function Ts(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Es(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ys(n){let e,t,l,r,s,a,o,i,f,p,c,u,_=n[2]&&sl(n),m=[{id:n[1]},{__value:n[7]},{type:"checkbox"},{indeterminate:n[4]},{disabled:n[5]},n[10]],g={};for(let b=0;b{$[y]=null}),de()),~o?(i=$[o],i||(i=$[o]=h[o](b),i.c()),v(i,1),i.m(a,null)):i=null),(!p||w&64)&&ae(a,"hoverable",b[6]),(!p||w&8)&&ae(a,"on-dark",b[3]),(!p||w&64)&&ae(t,"hoverable",b[6]),(!p||w&32)&&ae(t,"disabled",b[5]),(!p||w&8)&&ae(t,"on-dark",b[3]),(!p||w&512&&f!==(f="relative "+b[9].class+" svelte-l6k8ad"))&&D(e,"class",f)},i(b){p||(v(i),p=!0)},o(b){T(i),p=!1},d(b){b&&d(e),_&&_.d(),~o&&$[o].d(),c=!1,Me(u)}}}function Is(n,e,t){const l=["id","checked","label","onDark","indeterminate","disabled","hoverable","value","group"];let r=At(e,l),{id:s=""}=e,{checked:a=!1}=e,{label:o=""}=e,{onDark:i=!1}=e,{indeterminate:f=!1}=e,{disabled:p=!1}=e,{hoverable:c=!1}=e,{value:u=void 0}=e,{group:_=void 0}=e;const m=He(),g=M=>{const{checked:J}=M.currentTarget;_!==void 0&&(J?t(11,_=[..._,u]):t(11,_=_.filter(F=>F!==u))),t(0,a=J),m("change",{checked:M.currentTarget.checked,value:u})};a=_!==void 0?_.includes(u):a;function h(M){Be.call(this,n,M)}function $(M){Be.call(this,n,M)}function E(M){Be.call(this,n,M)}function b(M){Be.call(this,n,M)}function w(M){Be.call(this,n,M)}function y(){a=this.checked,t(0,a)}return n.$$set=M=>{t(9,e=Xe(Xe({},e),ot(M))),t(10,r=At(e,l)),"id"in M&&t(1,s=M.id),"checked"in M&&t(0,a=M.checked),"label"in M&&t(2,o=M.label),"onDark"in M&&t(3,i=M.onDark),"indeterminate"in M&&t(4,f=M.indeterminate),"disabled"in M&&t(5,p=M.disabled),"hoverable"in M&&t(6,c=M.hoverable),"value"in M&&t(7,u=M.value),"group"in M&&t(11,_=M.group)},e=ot(e),[a,s,o,i,f,p,c,u,g,e,r,_,h,$,E,b,w,y]}class fn extends ke{constructor(e){super(),ve(this,e,Is,ys,Te,{id:1,checked:0,label:2,onDark:3,indeterminate:4,disabled:5,hoverable:6,value:7,group:11})}}function Ds(n){let e,t;return e=new Kl({props:{class:"w-full md:table-fixed",updating:n[1],$$slots:{headers:[As],default:[Cs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ss(n){let e,t;return e=new Kl({props:{id:"workflows-table-with-bulk-actions",class:"w-full min-w-[600px] table-fixed",updating:n[1],$$slots:{headers:[Bs],default:[Fs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Ws(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function As(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Fs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function ol(n){let e,t;return e=new fn({props:{id:"select-visible-workflows",onDark:!0,hoverable:!0,checked:n[7],indeterminate:n[5]}}),e.$on("change",n[15]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&128&&(s.checked=l[7]),r&32&&(s.indeterminate=l[5]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Os(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function Ns(n){let e,t,l,r,s,a,o,i,f,p,c,u,_;function m(b,w){return b[3]?Rs:Vs}let g=m(n),h=g(n),$=n[10]&&al(n),E=n[11]&&il(n);return{c(){e=S("th"),h.c(),t=q(),l=S("div"),$&&$.c(),r=q(),E&&E.c(),s=q(),a=S("th"),o=q(),i=S("th"),f=q(),p=S("th"),c=q(),u=S("th"),this.h()},l(b){e=C(b,"TH",{class:!0});var w=W(e);h.l(w),t=H(w),l=C(w,"DIV",{class:!0});var y=W(l);$&&$.l(y),r=H(y),E&&E.l(y),y.forEach(d),w.forEach(d),s=H(b),a=C(b,"TH",{}),W(a).forEach(d),o=H(b),i=C(b,"TH",{class:!0}),W(i).forEach(d),f=H(b),p=C(b,"TH",{class:!0}),W(p).forEach(d),c=H(b),u=C(b,"TH",{class:!0}),W(u).forEach(d),this.h()},h(){D(l,"class","ml-4 inline-flex gap-2"),D(e,"class","w-32 overflow-visible whitespace-nowrap"),D(i,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(u,"class","w-60 max-xl:hidden")},m(b,w){I(b,e,w),h.m(e,null),k(e,t),k(e,l),$&&$.m(l,null),k(l,r),E&&E.m(l,null),I(b,s,w),I(b,a,w),I(b,o,w),I(b,i,w),I(b,f,w),I(b,p,w),I(b,c,w),I(b,u,w),_=!0},p(b,w){g===(g=m(b))&&h?h.p(b,w):(h.d(1),h=g(b),h&&(h.c(),h.m(e,t))),b[10]?$?($.p(b,w),w&1024&&v($,1)):($=al(b),$.c(),v($,1),$.m(l,r)):$&&(me(),T($,1,1,()=>{$=null}),de()),b[11]?E?(E.p(b,w),w&2048&&v(E,1)):(E=il(b),E.c(),v(E,1),E.m(l,null)):E&&(me(),T(E,1,1,()=>{E=null}),de())},i(b){_||(v($),v(E),_=!0)},o(b){T($),T(E),_=!1},d(b){b&&d(e),h.d(),$&&$.d(),E&&E.d(),b&&d(s),b&&d(a),b&&d(o),b&&d(i),b&&d(f),b&&d(p),b&&d(c),b&&d(u)}}}function Vs(n){let e,t,l,r,s,a,o,i,f,p,c,u;return{c(){e=S("span"),t=j(n[2]),l=j(" selected"),r=q(),s=S("span"),a=j("(or "),o=S("button"),i=j("select all "),f=j(n[4]),p=j(")"),this.h()},l(_){e=C(_,"SPAN",{class:!0});var m=W(e);t=Q(m,n[2]),l=Q(m," selected"),m.forEach(d),r=H(_),s=C(_,"SPAN",{});var g=W(s);a=Q(g,"(or "),o=C(g,"BUTTON",{"data-testid":!0,class:!0});var h=W(o);i=Q(h,"select all "),f=Q(h,n[4]),h.forEach(d),p=Q(g,")"),g.forEach(d),this.h()},h(){D(e,"class","font-semibold"),D(o,"data-testid","select-all-workflows"),D(o,"class","cursor-pointer underline")},m(_,m){I(_,e,m),k(e,t),k(e,l),I(_,r,m),I(_,s,m),k(s,a),k(s,o),k(o,i),k(o,f),k(s,p),c||(u=ne(o,"click",n[14]),c=!0)},p(_,m){m&4&&_e(t,_[2]),m&16&&_e(f,_[4])},d(_){_&&d(e),_&&d(r),_&&d(s),c=!1,u()}}}function Rs(n){let e,t,l,r;return{c(){e=S("span"),t=j("All "),l=j(n[4]),r=j(" selected"),this.h()},l(s){e=C(s,"SPAN",{class:!0});var a=W(e);t=Q(a,"All "),l=Q(a,n[4]),r=Q(a," selected"),a.forEach(d),this.h()},h(){D(e,"class","font-semibold")},m(s,a){I(s,e,a),k(e,t),k(e,l),k(e,r)},p(s,a){a&16&&_e(l,s[4])},d(s){s&&d(e)}}}function al(n){let e,t;return e=new an({props:{testId:"bulk-cancel-button",disabled:n[8],$$slots:{default:[Ls]},$$scope:{ctx:n}}}),e.$on("click",n[13]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ls(n){let e;return{c(){e=j("Request Cancellation")},l(t){e=Q(t,"Request Cancellation")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function il(n){let e,t;return e=new an({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:n[8],$$slots:{default:[Ps]},$$scope:{ctx:n}}}),e.$on("click",n[12]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ps(n){let e;return{c(){e=j("Terminate")},l(t){e=Q(t,"Terminate")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Ms(n){let e,t,l,r,s,a,o=!n[1]&&ol(n);const i=[Ns,Os],f=[];function p(c,u){return c[6]?0:1}return l=p(n),r=f[l]=i[l](n),{c(){e=S("th"),o&&o.c(),t=q(),r.c(),s=Se(),this.h()},l(c){e=C(c,"TH",{style:!0,class:!0});var u=W(e);o&&o.l(u),u.forEach(d),t=H(c),r.l(c),s=Se(),this.h()},h(){Ll(e,"padding","0"),D(e,"class","w-12 h-10")},m(c,u){I(c,e,u),o&&o.m(e,null),I(c,t,u),f[l].m(c,u),I(c,s,u),a=!0},p(c,u){c[1]?o&&(me(),T(o,1,1,()=>{o=null}),de()):o?(o.p(c,u),u&2&&v(o,1)):(o=ol(c),o.c(),v(o,1),o.m(e,null));let _=l;l=p(c),l===_?f[l].p(c,u):(me(),T(f[_],1,1,()=>{f[_]=null}),de(),r=f[l],r?r.p(c,u):(r=f[l]=i[l](c),r.c()),v(r,1),r.m(s.parentNode,s))},i(c){a||(v(o),v(r),a=!0)},o(c){T(o),T(r),a=!1},d(c){c&&d(e),o&&o.d(),c&&d(t),f[l].d(c),c&&d(s)}}}function Bs(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ms]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Us(n){let e,t,l,r;const s=[Ss,Ds],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function qs(n,e,t){let l,r,s,a,o,i,f,p,c,u,_;x(n,Oe,P=>t(19,p=P)),x(n,Nn,P=>t(21,u=P)),x(n,Hl,P=>t(22,_=P));let{$$slots:m={},$$scope:g}=e;const h=He();let{bulkActionsEnabled:$=!1}=e,{updating:E=!1}=e,{visibleWorkflows:b}=e,{selectedWorkflowsCount:w}=e,{allSelected:y}=e,{pageSelected:M}=e,{filteredWorkflowCount:J}=e;const F=()=>{h("terminateWorkflows")},G=()=>{h("cancelWorkflows")},X=P=>{(P instanceof MouseEvent||P instanceof KeyboardEvent&&P.key==="Enter")&&h("toggleAll",{checked:!0})},U=P=>{const{checked:A}=P.detail;A?h("togglePage",{checked:!0,visibleWorkflows:b}):h("toggleAll",{checked:!1})};let B=Un();return x(n,B,P=>t(20,c=P)),n.$$set=P=>{"bulkActionsEnabled"in P&&t(0,$=P.bulkActionsEnabled),"updating"in P&&t(1,E=P.updating),"visibleWorkflows"in P&&t(17,b=P.visibleWorkflows),"selectedWorkflowsCount"in P&&t(2,w=P.selectedWorkflowsCount),"allSelected"in P&&t(3,y=P.allSelected),"pageSelected"in P&&t(18,M=P.pageSelected),"filteredWorkflowCount"in P&&t(4,J=P.filteredWorkflowCount),"$$scope"in P&&t(24,g=P.$$scope)},n.$$.update=()=>{n.$$.dirty&524288&&t(11,l=wn(p.data.settings)),n.$$.dirty&524288&&t(10,r=kn(p.data.settings)),n.$$.dirty&6291456&&t(9,s=(_==null?void 0:_.totalCount)>=1e6||!u),n.$$.dirty&1572864&&t(8,a=c.namespaceWriteDisabled(p.params.namespace)),n.$$.dirty&393228&&t(7,o=y||M||w===b.length&&w!==0),n.$$.dirty&12&&t(6,i=w>0||y),n.$$.dirty&131076&&t(5,f=w>0&&wbe(t,"checked",s)),t.$on("change",n[9]),{c(){e=S("td"),O(t.$$.fragment),this.h()},l(o){e=C(o,"TD",{style:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){Ll(e,"padding","0")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};i&16&&(f.disabled=o[4]),!l&&i&1&&(l=!0,f.checked=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function js(n){let e,t,l,r,s,a,o=n[2].id+"",i,f,p,c,u,_=Re(n[2].startTime,n[3])+"",m,g,h,$,E,b,w,y=n[2].name+"",M,J,F,G,X,U,B=Re(n[2].endTime,n[3])+"",P,A,L,ee,re=Re(n[2].startTime,n[3])+"",ie,fe,ue,we,ye=Re(n[2].endTime,n[3])+"",Ie,Ee,Ae,Z,te=n[1]&&fl(n);return l=new Yl({props:{status:n[2].status,delay:Lt(n[2].startTime)}}),p=new Vt({props:{show:n[5],content:n[2].id,onFilter:n[12],filtered:Boolean(n[7].find(n[13]))}}),G=new Vt({props:{show:n[5],content:n[2].name,onFilter:n[19],filtered:Boolean(n[7].find(n[20]))}}),{c(){te&&te.c(),e=q(),t=S("td"),O(l.$$.fragment),r=q(),s=S("td"),a=S("span"),i=j(o),f=q(),O(p.$$.fragment),c=q(),u=S("p"),m=j(_),g=q(),h=S("td"),$=S("h3"),E=j("Workflow Name:"),b=q(),w=S("button"),M=j(y),F=q(),O(G.$$.fragment),X=q(),U=S("p"),P=j(B),A=q(),L=S("td"),ee=S("p"),ie=j(re),fe=q(),ue=S("td"),we=S("p"),Ie=j(ye),this.h()},l(z){te&&te.l(z),e=H(z),t=C(z,"TD",{});var le=W(t);N(l.$$.fragment,le),le.forEach(d),r=H(z),s=C(z,"TD",{class:!0});var Y=W(s);a=C(Y,"SPAN",{class:!0});var oe=W(a);i=Q(oe,o),oe.forEach(d),f=H(Y),N(p.$$.fragment,Y),c=H(Y),u=C(Y,"P",{class:!0});var ce=W(u);m=Q(ce,_),ce.forEach(d),Y.forEach(d),g=H(z),h=C(z,"TD",{class:!0});var K=W(h);$=C(K,"H3",{class:!0});var De=W($);E=Q(De,"Workflow Name:"),De.forEach(d),b=H(K),w=C(K,"BUTTON",{class:!0,"aria-label":!0});var Fe=W(w);M=Q(Fe,y),Fe.forEach(d),F=H(K),N(G.$$.fragment,K),X=H(K),U=C(K,"P",{class:!0});var tt=W(U);P=Q(tt,B),tt.forEach(d),K.forEach(d),A=H(z),L=C(z,"TD",{class:!0});var It=W(L);ee=C(It,"P",{});var Dt=W(ee);ie=Q(Dt,re),Dt.forEach(d),It.forEach(d),fe=H(z),ue=C(z,"TD",{class:!0});var St=W(ue);we=C(St,"P",{});var Ct=W(we);Ie=Q(Ct,ye),Ct.forEach(d),St.forEach(d),this.h()},h(){D(a,"class","table-link svelte-1hpdy04"),D(u,"class","inline-time-cell svelte-1hpdy04"),D(s,"class","relative break-words pr-4"),D($,"class","md:hidden"),D(w,"class","table-link svelte-1hpdy04"),D(w,"aria-label",J="filter by "+n[2].name+" type"),D(U,"class","inline-time-cell svelte-1hpdy04"),D(h,"class","relative truncate"),D(L,"class","time-cell svelte-1hpdy04"),D(ue,"class","time-cell svelte-1hpdy04")},m(z,le){te&&te.m(z,le),I(z,e,le),I(z,t,le),V(l,t,null),I(z,r,le),I(z,s,le),k(s,a),k(a,i),k(s,f),V(p,s,null),k(s,c),k(s,u),k(u,m),I(z,g,le),I(z,h,le),k(h,$),k($,E),k(h,b),k(h,w),k(w,M),k(h,F),V(G,h,null),k(h,X),k(h,U),k(U,P),I(z,A,le),I(z,L,le),k(L,ee),k(ee,ie),I(z,fe,le),I(z,ue,le),k(ue,we),k(we,Ie),Ee=!0,Ae||(Z=[ne(s,"mouseover",n[14]),ne(s,"focus",n[15]),ne(s,"mouseleave",n[16]),ne(s,"blur",n[17]),ne(w,"click",Ue(Le(n[18]))),ne(h,"mouseover",n[21]),ne(h,"focus",n[22]),ne(h,"mouseleave",n[23]),ne(h,"blur",n[24])],Ae=!0)},p(z,le){z[1]?te?(te.p(z,le),le&2&&v(te,1)):(te=fl(z),te.c(),v(te,1),te.m(e.parentNode,e)):te&&(me(),T(te,1,1,()=>{te=null}),de());const Y={};le&4&&(Y.status=z[2].status),le&4&&(Y.delay=Lt(z[2].startTime)),l.$set(Y),(!Ee||le&4)&&o!==(o=z[2].id+"")&&_e(i,o);const oe={};le&32&&(oe.show=z[5]),le&4&&(oe.content=z[2].id),le&4&&(oe.onFilter=z[12]),le&132&&(oe.filtered=Boolean(z[7].find(z[13]))),p.$set(oe),(!Ee||le&12)&&_!==(_=Re(z[2].startTime,z[3])+"")&&_e(m,_),(!Ee||le&4)&&y!==(y=z[2].name+"")&&_e(M,y),(!Ee||le&4&&J!==(J="filter by "+z[2].name+" type"))&&D(w,"aria-label",J);const ce={};le&32&&(ce.show=z[5]),le&4&&(ce.content=z[2].name),le&4&&(ce.onFilter=z[19]),le&132&&(ce.filtered=Boolean(z[7].find(z[20]))),G.$set(ce),(!Ee||le&12)&&B!==(B=Re(z[2].endTime,z[3])+"")&&_e(P,B),(!Ee||le&12)&&re!==(re=Re(z[2].startTime,z[3])+"")&&_e(ie,re),(!Ee||le&12)&&ye!==(ye=Re(z[2].endTime,z[3])+"")&&_e(Ie,ye)},i(z){Ee||(v(te),v(l.$$.fragment,z),v(p.$$.fragment,z),v(G.$$.fragment,z),Ee=!0)},o(z){T(te),T(l.$$.fragment,z),T(p.$$.fragment,z),T(G.$$.fragment,z),Ee=!1},d(z){te&&te.d(z),z&&d(e),z&&d(t),R(l),z&&d(r),z&&d(s),R(p),z&&d(g),z&&d(h),R(G),z&&d(A),z&&d(L),z&&d(fe),z&&d(ue),Ae=!1,Me(Z)}}}function Qs(n){let e,t;return e=new Hn({props:{href:n[6],class:"workflow-summary-row",$$slots:{default:[js]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&64&&(s.href=l[6]),r&268435647&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ks(n,e,t){let l,r,s,a;x(n,We,L=>t(25,r=L)),x(n,pe,L=>t(7,s=L)),x(n,Oe,L=>t(26,a=L));const o=He();let{bulkActionsEnabled:i=!1}=e,{selected:f=!1}=e,{namespace:p}=e,{workflow:c}=e,{timeFormat:u}=e,{checkboxDisabled:_}=e,m=!1;const g=(L,ee)=>{const re=s.find(fe=>fe.attribute===L),ie=()=>s.filter(fe=>fe.attribute!==L);if(re)se(pe,s=[...ie()],s);else{const fe={attribute:L,value:ee,conditional:"=",operator:"",parenthesis:""};se(pe,s=[...ie(),fe],s)}Ve(a.url,s,r)},h=L=>{o("toggleWorkflow",{workflowRunId:c.runId,checked:L.detail.checked})};function $(L){f=L,t(0,f)}const E=()=>g("WorkflowId",c.id),b=L=>L.attribute==="WorkflowId"&&L.value===c.id,w=()=>t(5,m=!0),y=()=>t(5,m=!0),M=()=>t(5,m=!1),J=()=>t(5,m=!1),F=()=>g("WorkflowType",c.name),G=()=>g("WorkflowType",c.name),X=L=>L.attribute==="WorkflowType"&&L.value===c.name,U=()=>t(5,m=!0),B=()=>t(5,m=!0),P=()=>t(5,m=!1),A=()=>t(5,m=!1);return n.$$set=L=>{"bulkActionsEnabled"in L&&t(1,i=L.bulkActionsEnabled),"selected"in L&&t(0,f=L.selected),"namespace"in L&&t(10,p=L.namespace),"workflow"in L&&t(2,c=L.workflow),"timeFormat"in L&&t(3,u=L.timeFormat),"checkboxDisabled"in L&&t(4,_=L.checkboxDisabled)},n.$$.update=()=>{n.$$.dirty&1028&&t(6,l=qn({namespace:p,workflow:c.id,run:c.runId}))},[f,i,c,u,_,m,l,s,g,h,p,$,E,b,w,y,M,J,F,G,X,U,B,P,A]}class zs extends ke{constructor(e){super(),ve(this,e,Ks,Qs,Te,{bulkActionsEnabled:1,selected:0,namespace:10,workflow:2,timeFormat:3,checkboxDisabled:4})}}function Ys(n){let e;return{c(){e=j("Search")},l(t){e=Q(t,"Search")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Gs(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(g){n[5](g)}let m={id:"manual-search",type:"search",placeholder:"Enter a query",icon:"search",class:"w-3/4",clearable:!0,unroundRight:!0};return n[0]!==void 0&&(m.value=n[0]),r=new Ne({props:m}),he.push(()=>be(r,"value",_)),r.$on("clear",n[2]),o=new bt({props:{testId:"manual-search-button",variant:"primary",class:"h-10",unroundLeft:!0,type:"submit",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("div"),l=S("form"),O(r.$$.fragment),a=q(),O(o.$$.fragment),this.h()},l(g){e=C(g,"DIV",{class:!0});var h=W(e);t=C(h,"DIV",{class:!0});var $=W(t);l=C($,"FORM",{class:!0,role:!0});var E=W(l);N(r.$$.fragment,E),a=H(E),N(o.$$.fragment,E),E.forEach(d),$.forEach(d),h.forEach(d),this.h()},h(){D(l,"class","relative flex h-12 w-full items-center gap-0"),D(l,"role","search"),D(t,"class","flex h-12 w-full items-center gap-0"),D(e,"class","flex-items-center flex grow gap-4")},m(g,h){I(g,e,h),k(e,t),k(t,l),V(r,l,null),k(l,a),V(o,l,null),p=!0,c||(u=ne(l,"submit",Le(n[1])),c=!0)},p(g,[h]){const $={};!s&&h&1&&(s=!0,$.value=g[0],$e(()=>s=!1)),r.$set($);const E={};h&2048&&(E.$$scope={dirty:h,ctx:g}),o.$set(E)},i(g){p||(v(r.$$.fragment,g),v(o.$$.fragment,g),i||Ft(()=>{i=Ot(l,jn,{x:-100,duration:150}),i.start()}),f||Ft(()=>{f=Ot(t,Qn,{}),f.start()}),p=!0)},o(g){T(r.$$.fragment,g),T(o.$$.fragment,g),p=!1},d(g){g&&d(e),R(r),R(o),c=!1,u()}}}function Js(n,e,t){let l,r,s,a,o,i;x(n,Oe,m=>t(4,r=m)),x(n,Je,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Ze,m=>t(8,o=m)),x(n,We,m=>t(9,i=m));let f="";function p(m){t(0,f=m)}const c=()=>{if(!f)se(pe,a=[],a),se(We,i=[],i),se(Ze,o="",o);else try{se(pe,a=en(f),a)}catch{}f&&f===l?se(Je,s=Date.now(),s):Ge({url:r.url,parameter:"query",value:f,allowEmpty:!0})};function u(){c()}function _(m){f=m,t(0,f)}return n.$$.update=()=>{n.$$.dirty&16&&t(3,l=r.url.searchParams.get("query")),n.$$.dirty&8&&p(l)},[f,c,u,l,r,_]}class Zs extends ke{constructor(e){super(),ve(this,e,Js,Gs,Te,{})}}function ul(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function cl(n,e,t){const l=n.slice();return l[13]=e[t],l}function ml(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=S("p"),l=j(t),this.h()},l(r){e=C(r,"P",{class:!0});var s=W(e);l=Q(s,t),s.forEach(d),this.h()},h(){D(e,"class","cell svelte-1we9vff")},m(r,s){I(r,e,s),k(e,l)},p:ge,d(r){r&&d(e)}}}function dl(n,e){let t,l=(e[10]||"")+"",r,s,a,o;function i(){return e[6](e[10])}return{key:n,first:null,c(){t=S("button"),r=j(l),s=q(),this.h()},l(f){t=C(f,"BUTTON",{class:!0});var p=W(t);r=Q(p,l),s=H(p),p.forEach(d),this.h()},h(){D(t,"class","cell svelte-1we9vff"),ae(t,"highlight",e[9]&&e[10]),ae(t,"disabled",!e[9]),ae(t,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=t},m(f,p){I(f,t,p),k(t,r),k(t,s),a||(o=ne(t,"click",function(){bn(e[9]&&e[10]?i:ge)&&(e[9]&&e[10]?i:ge).apply(this,arguments)}),a=!0)},p(f,p){e=f,p&8&&l!==(l=(e[10]||"")+"")&&_e(r,l),p&8&&ae(t,"highlight",e[9]&&e[10]),p&8&&ae(t,"disabled",!e[9]),p&15&&ae(t,"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&&d(t),a=!1,o()}}}function Xs(n){let e,t,l,r,s=[],a=new Map,o=Ut,i=[];for(let c=0;cc[12];for(let c=0;c!0}=e,i=[];const f=u=>{l("datechange",new Date(a,s,u))},p=(u,_,m)=>m?o(new Date(u,_,m)):!0,c=u=>f(u);return n.$$set=u=>{"date"in u&&t(0,r=u.date),"month"in u&&t(1,s=u.month),"year"in u&&t(2,a=u.year),"isAllowed"in u&&t(5,o=u.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,i=Yn(s,a).map(u=>({value:u,allowed:p(a,s,u)})))},[r,s,a,i,f,o,c]}class eo extends ke{constructor(e){super(),ve(this,e,xs,Xs,Te,{date:0,month:1,year:2,isAllowed:5})}}function _l(n){var B;let e,t,l,r,s,a,o,i=(((B=qt(n[2]))==null?void 0:B.label)??"")+"",f,p,c,u,_,m,g,h,$,E,b,w,y,M,J,F,G,X,U;return s=new Ce({props:{name:"chevron-left"}}),g=new Ce({props:{name:"chevron-right"}}),$=new eo({props:{month:n[2],year:n[3],date:n[0],isAllowed:n[1]}}),$.$on("datechange",n[9]),{c(){e=S("div"),t=S("div"),l=S("div"),r=S("button"),O(s.$$.fragment),a=q(),o=S("div"),f=j(i),p=q(),c=j(n[3]),u=q(),_=S("div"),m=S("button"),O(g.$$.fragment),h=q(),O($.$$.fragment),E=q(),b=S("div"),w=S("button"),y=j("Today"),M=q(),J=S("button"),F=j("Close"),this.h()},l(P){e=C(P,"DIV",{class:!0});var A=W(e);t=C(A,"DIV",{class:!0});var L=W(t);l=C(L,"DIV",{class:!0});var ee=W(l);r=C(ee,"BUTTON",{});var re=W(r);N(s.$$.fragment,re),re.forEach(d),ee.forEach(d),a=H(L),o=C(L,"DIV",{class:!0});var ie=W(o);f=Q(ie,i),p=H(ie),c=Q(ie,n[3]),ie.forEach(d),u=H(L),_=C(L,"DIV",{class:!0});var fe=W(_);m=C(fe,"BUTTON",{});var ue=W(m);N(g.$$.fragment,ue),ue.forEach(d),fe.forEach(d),L.forEach(d),h=H(A),N($.$$.fragment,A),E=H(A),b=C(A,"DIV",{class:!0});var we=W(b);w=C(we,"BUTTON",{class:!0});var ye=W(w);y=Q(ye,"Today"),ye.forEach(d),M=H(we),J=C(we,"BUTTON",{class:!0});var Ie=W(J);F=Q(Ie,"Close"),Ie.forEach(d),we.forEach(d),A.forEach(d),this.h()},h(){D(l,"class","flex items-center justify-center"),D(o,"class","flex items-center justify-center"),D(_,"class","flex items-center justify-center"),D(t,"class","mx-3 my-2 flex items-center justify-around"),D(w,"class","cursor-pointer text-[12px]"),D(J,"class","cursor-pointer text-[12px]"),D(b,"class","my-1 flex justify-between px-2"),D(e,"class","absolute top-12 z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(P,A){I(P,e,A),k(e,t),k(t,l),k(l,r),V(s,r,null),k(t,a),k(t,o),k(o,f),k(o,p),k(o,c),k(t,u),k(t,_),k(_,m),V(g,m,null),k(e,h),V($,e,null),k(e,E),k(e,b),k(b,w),k(w,y),k(b,M),k(b,J),k(J,F),G=!0,X||(U=[ne(r,"click",n[8]),ne(m,"click",n[7]),ne(w,"click",n[10]),ne(J,"click",n[11])],X=!0)},p(P,A){var ee;(!G||A&4)&&i!==(i=(((ee=qt(P[2]))==null?void 0:ee.label)??"")+"")&&_e(f,i),(!G||A&8)&&_e(c,P[3]);const L={};A&4&&(L.month=P[2]),A&8&&(L.year=P[3]),A&1&&(L.date=P[0]),A&2&&(L.isAllowed=P[1]),$.$set(L)},i(P){G||(v(s.$$.fragment,P),v(g.$$.fragment,P),v($.$$.fragment,P),G=!0)},o(P){T(s.$$.fragment,P),T(g.$$.fragment,P),T($.$$.fragment,P),G=!1},d(P){P&&d(e),R(s),R(g),R($),X=!1,Me(U)}}}function to(n){let e,t,l,r,s,a;t=new Ne({props:{id:"datepicker",icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0}}),t.$on("focus",n[5]),t.$on("input",n[6]);let o=n[4]&&_l(n);return{c(){e=S("div"),O(t.$$.fragment),l=q(),o&&o.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var f=W(e);N(t.$$.fragment,f),l=H(f),o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"class","relative")},m(i,f){I(i,e,f),V(t,e,null),k(e,l),o&&o.m(e,null),r=!0,s||(a=[Pl(Gl.call(null,e)),ne(e,"click-outside",n[12])],s=!0)},p(i,[f]){const p={};f&1&&(p.value=i[0].toDateString()),t.$set(p),i[4]?o?(o.p(i,f),f&16&&v(o,1)):(o=_l(i),o.c(),v(o,1),o.m(e,null)):o&&(me(),T(o,1,1,()=>{o=null}),de())},i(i){r||(v(t.$$.fragment,i),v(o),r=!0)},o(i){T(t.$$.fragment,i),T(o),r=!1},d(i){i&&d(e),R(t),o&&o.d(),s=!1,Me(a)}}}function lo(n,e,t){const l=He();let{isAllowed:r=()=>!0}=e,{selected:s=new Date}=e,a,o,i=!1;const f=()=>{t(4,i=!0)},p=$=>{const b=$.target.value;if(b.length===8){const w=b==null?void 0:b.split("/"),M=2e3+parseInt(w[2]),J=parseInt(w[0])-1,F=parseInt(w[1]),G=new Date(M,J,F);l("datechange",G)}},c=()=>{if(a===11){t(2,a=0),t(3,o=o+1);return}t(2,a=a+1)},u=()=>{if(a===0){t(2,a=11),t(3,o-=1);return}t(2,a-=1)},_=$=>{t(4,i=!1),l("datechange",$.detail)},m=()=>t(0,s=new Date),g=()=>t(4,i=!1),h=()=>t(4,i=!1);return n.$$set=$=>{"isAllowed"in $&&t(1,r=$.isAllowed),"selected"in $&&t(0,s=$.selected)},n.$$.update=()=>{n.$$.dirty&1&&(t(2,a=s.getMonth()),t(3,o=s.getFullYear()))},[s,r,a,o,i,f,p,c,u,_,m,g,h]}class pl extends ke{constructor(e){super(),ve(this,e,lo,to,Te,{isAllowed:1,selected:0})}}function no(n){let e;return{c(){e=j("AM")},l(t){e=Q(t,"AM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ro(n){let e;return{c(){e=j("PM")},l(t){e=Q(t,"PM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function so(n){let e,t,l,r;return e=new Ht({props:{active:n[3]==="AM",$$slots:{default:[no]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new Ht({props:{active:n[3]==="PM",$$slots:{default:[ro]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){O(e.$$.fragment),t=q(),O(l.$$.fragment)},l(s){N(e.$$.fragment,s),t=H(s),N(l.$$.fragment,s)},m(s,a){V(e,s,a),I(s,t,a),V(l,s,a),r=!0},p(s,a){const o={};a&8&&(o.active=s[3]==="AM"),a&512&&(o.$$scope={dirty:a,ctx:s}),e.$set(o);const i={};a&8&&(i.active=s[3]==="PM"),a&512&&(i.$$scope={dirty:a,ctx:s}),l.$set(i)},i(s){r||(v(e.$$.fragment,s),v(l.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(l.$$.fragment,s),r=!1},d(s){R(e,s),s&&d(t),R(l,s)}}}function oo(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(b){n[4](b)}let m={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:Boolean(parseInt(n[0])>12)};n[0]!==void 0&&(m.value=n[0]),t=new Ne({props:m}),he.push(()=>be(t,"value",_));function g(b){n[5](b)}let h={id:"minute",required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(n[0])>59)};n[1]!==void 0&&(h.value=n[1]),s=new Ne({props:h}),he.push(()=>be(s,"value",g));function $(b){n[6](b)}let E={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(n[0])>59)};return n[2]!==void 0&&(E.value=n[2]),i=new Ne({props:E}),he.push(()=>be(i,"value",$)),c=new Gn({props:{$$slots:{default:[so]},$$scope:{ctx:n}}}),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),this.h()},l(b){e=C(b,"DIV",{class:!0});var w=W(e);N(t.$$.fragment,w),r=H(w),N(s.$$.fragment,w),o=H(w),N(i.$$.fragment,w),p=H(w),N(c.$$.fragment,w),w.forEach(d),this.h()},h(){D(e,"class","flex gap-2")},m(b,w){I(b,e,w),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),u=!0},p(b,[w]){const y={};w&1&&(y.error=Boolean(parseInt(b[0])>12)),!l&&w&1&&(l=!0,y.value=b[0],$e(()=>l=!1)),t.$set(y);const M={};w&1&&(M.error=Boolean(parseInt(b[0])>59)),!a&&w&2&&(a=!0,M.value=b[1],$e(()=>a=!1)),s.$set(M);const J={};w&1&&(J.error=Boolean(parseInt(b[0])>59)),!f&&w&4&&(f=!0,J.value=b[2],$e(()=>f=!1)),i.$set(J);const F={};w&520&&(F.$$scope={dirty:w,ctx:b}),c.$set(F)},i(b){u||(v(t.$$.fragment,b),v(s.$$.fragment,b),v(i.$$.fragment,b),v(c.$$.fragment,b),u=!0)},o(b){T(t.$$.fragment,b),T(s.$$.fragment,b),T(i.$$.fragment,b),T(c.$$.fragment,b),u=!1},d(b){b&&d(e),R(t),R(s),R(i),R(c)}}}function ao(n,e,t){let{hour:l=""}=e,{minute:r=""}=e,{second:s=""}=e,{half:a="AM"}=e;function o(u){l=u,t(0,l)}function i(u){r=u,t(1,r)}function f(u){s=u,t(2,s)}const p=()=>t(3,a="AM"),c=()=>t(3,a="PM");return n.$$set=u=>{"hour"in u&&t(0,l=u.hour),"minute"in u&&t(1,r=u.minute),"second"in u&&t(2,s=u.second),"half"in u&&t(3,a=u.half)},[l,r,s,a,o,i,f,p,c]}class hl extends ke{constructor(e){super(),ve(this,e,ao,oo,Te,{hour:0,minute:1,second:2,half:3})}}function gl(n,e,t){const l=n.slice();return l[46]=e[t],l}function io(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$,E,b,w,y,M;r=new gt({props:{value:"All Time",$$slots:{default:[uo]},$$scope:{ctx:n}}}),o=new gt({props:{value:"Custom",$$slots:{default:[co]},$$scope:{ctx:n}}});let J=Pt,F=[];for(let B=0;BT(F[B],1,1,()=>{F[B]=null});let X=n[3]==="StartTime"&&$l(),U=n[3]==="CloseTime"&&wl();return{c(){e=S("div"),t=S("div"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),O(o.$$.fragment),i=q();for(let B=0;B({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&2&&(c.items=e[1]),a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function re(f){let t,r,e=f[3].namespaceInfo.name+"",a,c,s;return{c(){t=N("td"),r=N("a"),a=F(e),s=x(),this.h()},l(n){t=T(n,"TD",{});var o=P(t);r=T(o,"A",{href:!0,class:!0});var p=P(r);a=q(p,e),p.forEach(m),o.forEach(m),s=C(n),this.h()},h(){v(r,"href",c=S({namespace:f[3].namespaceInfo.name})),v(r,"class","hover:text-blue-700 hover:underline hover:decoration-blue-700")},m(n,o){h(n,t,o),y(t,r),y(r,a),h(n,s,o)},p(n,o){o&4&&e!==(e=n[3].namespaceInfo.name+"")&&O(a,e),o&4&&c!==(c=S({namespace:n[3].namespaceInfo.name}))&&v(r,"href",c)},d(n){n&&m(t),n&&m(s)}}}function z(f){let t,r;return t=new ee({props:{$$slots:{default:[re]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function se(f){let t,r,e=f[2],a=[];for(let s=0;s$(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return s=D(f),n=_[s]=A[s](f),{c(){g(t.$$.fragment),r=x(),e=N("h1"),a=F("Namespaces"),c=x(),n.c(),o=E(),this.h()},l(l){d(t.$$.fragment,l),r=C(l),e=T(l,"H1",{"data-testid":!0,class:!0});var i=P(e);a=q(i,"Namespaces"),i.forEach(m),c=C(l),n.l(l),o=E(),this.h()},h(){v(e,"data-testid","namespace-selector-title"),v(e,"class","mb-8 text-2xl")},m(l,i){b(t,l,i),h(l,r,i),h(l,e,i),y(e,a),h(l,c,i),_[s].m(l,i),h(l,o,i),p=!0},p(l,[i]){const k={};i&1&&(k.url=l[0].url.href),t.$set(k);let I=s;s=D(l),s===I?_[s].p(l,i):(K(),$(_[I],1,1,()=>{_[I]=null}),B(),n=_[s],n?n.p(l,i):(n=_[s]=A[s](l),n.c()),u(n,1),n.m(o.parentNode,o))},i(l){p||(u(t.$$.fragment,l),u(n),p=!0)},o(l){$(t.$$.fragment,l),$(n),p=!1},d(l){w(t,l),l&&m(r),l&&m(e),l&&m(c),_[s].d(l),l&&m(o)}}}function fe(f,t,r){let e,a;return H(f,Q,c=>r(0,e=c)),H(f,R,c=>r(1,a=c)),[e,a]}class be extends Y{constructor(t){super(),G(this,t,fe,ce,J,{})}}export{be as default}; +import{S as Y,b as G,a as J,C as g,c as x,m as N,w as F,e as E,D as d,d as C,p as T,q as P,x as q,k as m,u as v,E as b,f as h,L as y,g as $,h as B,j as u,F as w,K as H,z as K,n as L,a7 as M,y as O}from"../chunks/index.a36c9cb0.js";import{o as S}from"../chunks/route-for.087ea268.js";import{p as Q}from"../chunks/stores.a2e3306d.js";import{n as R}from"../chunks/namespaces.85dd7810.js";import{E as U}from"../chunks/empty-state.9fb63265.js";import{P as V}from"../chunks/page-title.b9565d2f.js";import{P as W}from"../chunks/pagination.c403d909.js";import{T as X,a as Z}from"../chunks/table-header-row.eb620974.js";import{T as ee}from"../chunks/table-row.9df8daa0.js";function j(f,t,r){const e=f.slice();return e[3]=t[r],e}function te(f){let t,r;return t=new U({props:{title:"No Namespaces Found",content:"You do not have access to a Namespace. Contact your Administrator for assistance."}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p:L,i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function ae(f){let t,r;return t=new W({props:{items:f[1],"aria-label":"namespaces",$$slots:{default:[le,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&2&&(c.items=e[1]),a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function re(f){let t,r,e=f[3].namespaceInfo.name+"",a,c,s;return{c(){t=N("td"),r=N("a"),a=F(e),s=x(),this.h()},l(n){t=T(n,"TD",{});var o=P(t);r=T(o,"A",{href:!0,class:!0});var p=P(r);a=q(p,e),p.forEach(m),o.forEach(m),s=C(n),this.h()},h(){v(r,"href",c=S({namespace:f[3].namespaceInfo.name})),v(r,"class","hover:text-blue-700 hover:underline hover:decoration-blue-700")},m(n,o){h(n,t,o),y(t,r),y(r,a),h(n,s,o)},p(n,o){o&4&&e!==(e=n[3].namespaceInfo.name+"")&&O(a,e),o&4&&c!==(c=S({namespace:n[3].namespaceInfo.name}))&&v(r,"href",c)},d(n){n&&m(t),n&&m(s)}}}function z(f){let t,r;return t=new ee({props:{$$slots:{default:[re]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function se(f){let t,r,e=f[2],a=[];for(let s=0;s$(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return s=D(f),n=_[s]=A[s](f),{c(){g(t.$$.fragment),r=x(),e=N("h1"),a=F("Namespaces"),c=x(),n.c(),o=E(),this.h()},l(l){d(t.$$.fragment,l),r=C(l),e=T(l,"H1",{"data-testid":!0,class:!0});var i=P(e);a=q(i,"Namespaces"),i.forEach(m),c=C(l),n.l(l),o=E(),this.h()},h(){v(e,"data-testid","namespace-selector-title"),v(e,"class","mb-8 text-2xl")},m(l,i){b(t,l,i),h(l,r,i),h(l,e,i),y(e,a),h(l,c,i),_[s].m(l,i),h(l,o,i),p=!0},p(l,[i]){const k={};i&1&&(k.url=l[0].url.href),t.$set(k);let I=s;s=D(l),s===I?_[s].p(l,i):(K(),$(_[I],1,1,()=>{_[I]=null}),B(),n=_[s],n?n.p(l,i):(n=_[s]=A[s](l),n.c()),u(n,1),n.m(o.parentNode,o))},i(l){p||(u(t.$$.fragment,l),u(n),p=!0)},o(l){$(t.$$.fragment,l),$(n),p=!1},d(l){w(t,l),l&&m(r),l&&m(e),l&&m(c),_[s].d(l),l&&m(o)}}}function fe(f,t,r){let e,a;return H(f,Q,c=>r(0,e=c)),H(f,R,c=>r(1,a=c)),[e,a]}class be extends Y{constructor(t){super(),G(this,t,fe,ce,J,{})}}export{be as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.b13e7f65.js b/ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.27bcc3a4.js similarity index 79% rename from ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.b13e7f65.js rename to ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.27bcc3a4.js index 320ae1b899..e4a1116813 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.b13e7f65.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-page.svelte.27bcc3a4.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.a36c9cb0.js";import{g as s}from"../chunks/navigation.214139c0.js";import{d as b}from"../chunks/workflow-service.24d3174e.js";import{l as x}from"../chunks/namespaces.85dd7810.js";import{L as y}from"../chunks/loading.bcb9b7b8.js";import{r as S,m as c}from"../chunks/route-for.70dfbf18.js";function k(r){let a,e;return a=new y({}),{c(){p(a.$$.fragment)},l(t){d(a.$$.fragment,t)},m(t,n){g(a,t,n),e=!0},p:_,i(t){e||(h(a.$$.fragment,t),e=!0)},o(t){$(a.$$.fragment,t),e=!1},d(t){w(a,t)}}}function z(r,a,e){let t;F(r,x,o=>e(1,t=o));let{data:n}=a,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await b(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&e(0,n=o.data)},[n]}class A extends f{constructor(a){super(),u(this,a,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.a36c9cb0.js";import{g as s}from"../chunks/navigation.58fc5f1f.js";import{d as b}from"../chunks/workflow-service.b203d78a.js";import{l as x}from"../chunks/namespaces.85dd7810.js";import{L as y}from"../chunks/loading.bcb9b7b8.js";import{r as S,m as c}from"../chunks/route-for.087ea268.js";function k(r){let a,e;return a=new y({}),{c(){p(a.$$.fragment)},l(t){d(a.$$.fragment,t)},m(t,n){g(a,t,n),e=!0},p:_,i(t){e||(h(a.$$.fragment,t),e=!0)},o(t){$(a.$$.fragment,t),e=!1},d(t){w(a,t)}}}function z(r,a,e){let t;F(r,x,o=>e(1,t=o));let{data:n}=a,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await b(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&e(0,n=o.data)},[n]}class A extends f{constructor(a){super(),u(this,a,z,k,l,{data:0})}}export{A as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.145c4ad7.js b/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.145c4ad7.js deleted file mode 100644 index 381854e590..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.145c4ad7.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.70dfbf18.js";import{l as t}from"../chunks/_page.5f52b423.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.26029ab4.js b/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.26029ab4.js new file mode 100644 index 0000000000..dbcd0a05e4 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(app)-page.ts.26029ab4.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.087ea268.js";import{l as t}from"../chunks/_page.edd987e4.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.9ae9cf92.js b/ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.166ea9f3.js similarity index 97% rename from ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.9ae9cf92.js rename to ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.166ea9f3.js index 839f79675a..ee945a4996 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.9ae9cf92.js +++ b/ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.166ea9f3.js @@ -1 +1 @@ -import{S as he,b as me,a as pe,m as N,p as S,q as V,k as b,v as M,at as le,$ as ve,f as A,L as y,am as be,T as Z,z as se,a1 as ke,a2 as we,h as re,j as H,g as U,o as ye,G as Ee,c as O,d as F,H as Te,I as Le,J as Ie,t as ee,A as ae,w as x,x as $,C as B,D as j,u as T,E as G,a9 as ne,V as Ne,F as J,r as Se,K as te,_ as Ve,P as He,n as ge,e as oe,R as X,y as Ue}from"../chunks/index.a36c9cb0.js";import{g as Pe}from"../chunks/navigation.724a9b89.js";import{p as Re}from"../chunks/stores.48be4ca9.js";import{l as ie,n as ze}from"../chunks/namespaces.85dd7810.js";import{r as Ce}from"../chunks/route-for.6dec3e74.js";import{E as de}from"../chunks/empty-state.9fb63265.js";import{I as We}from"../chunks/icon.33859671.js";import{P as Ae}from"../chunks/page-title.b9565d2f.js";import{d as Me}from"../chunks/workflow-service.11be6188.js";import{t as Oe}from"../chunks/toaster.16c48a98.js";function ce(s,e,t){const l=s.slice();return l[23]=e[t],l}const Fe=s=>({item:s&16}),ue=s=>({item:s[23].data});function De(s){let e;return{c(){e=x("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){A(t,e,l)},d(t){t&&b(e)}}}function _e(s,e){let t,l,o;const h=e[14].default,f=Ee(h,e,e[13],ue),_=f||De();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=O(),this.h()},l(r){t=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var n=V(t);_&&_.l(n),l=F(n),n.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(r,n){A(r,t,n),_&&_.m(t,null),y(t,l),o=!0},p(r,n){e=r,f&&f.p&&(!o||n&8208)&&Te(f,h,e,e[13],o?Ie(h,e[13],n,Fe):Le(e[13]),ue)},i(r){o||(H(_,r),o=!0)},o(r){U(_,r),o=!1},d(r){r&&b(t),_&&_.d(r)}}}function qe(s){let e,t,l=[],o=new Map,h,f,_,r,n=s[4];const m=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,i){A(c,e,i),y(e,t);for(let u=0;ua){t(8,r=v),t(5,k=E);break}E+=d,v+=1}for(;va+p)););t(9,n=v);const R=h.length-n;for(I=E/n;v{c=u.getElementsByTagName("svelte-virtual-list-row"),t(12,L=!0)});function Y(a){ae[a?"unshift":"push"](()=>{u=a,t(3,u)})}function P(a){ae[a?"unshift":"push"](()=>{i=a,t(2,i)})}function Q(){p=this.offsetHeight,t(1,p)}return s.$$set=a=>{"items"in a&&t(10,h=a.items),"height"in a&&t(0,f=a.height),"itemHeight"in a&&t(11,_=a.itemHeight),"start"in a&&t(8,r=a.start),"end"in a&&t(9,n=a.end),"$$scope"in a&&t(13,o=a.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,z=h.slice(r,n).map((a,g)=>({index:g+r,data:a}))),s.$$.dirty&7170&&L&&D(h,p,_)},[f,p,i,u,z,k,w,K,r,n,h,_,L,o,l,Y,P,Q]}class je extends he{constructor(e){super(),me(this,e,Be,qe,pe,{items:10,height:0,itemHeight:11,start:8,end:9})}}function fe(s){const e=s[10]===s[2][0];s[11]=e;const t=s[10]===s[2][s[2].length-1];s[12]=t}function Ge(s){let e,t;return e=new de({props:{title:"No Namespaces. Contact your admin to create one."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Je(s){let e,t,l,o;const h=[Ye,Ke],f=[];function _(r,n){return r[2].length?0:1}return e=_(s),t=f[e]=h[e](s),{c(){t.c(),l=oe()},l(r){t.l(r),l=oe()},m(r,n){f[e].m(r,n),A(r,l,n),o=!0},p(r,n){let m=e;e=_(r),e===m?f[e].p(r,n):(se(),U(f[m],1,1,()=>{f[m]=null}),re(),t=f[e],t?t.p(r,n):(t=f[e]=h[e](r),t.c()),H(t,1),t.m(l.parentNode,l))},i(r){o||(H(t),o=!0)},o(r){U(t),o=!1},d(r){f[e].d(r),r&&b(l)}}}function Ke(s){let e,t;return e=new de({props:{title:"No results."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Ye(s){let e,t;return e=new je({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({10:l}),({item:l})=>l?1024:0]},$$scope:{ctx:s}}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p(l,o){const h={};o&4&&(h.items=l[2]),o&9220&&(h.$$scope={dirty:o,ctx:l}),e.$set(h)},i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Qe(s){fe(s);let e,t,l=s[10].namespace+"",o,h,f;function _(){return s[8](s[10])}return{c(){e=N("li"),t=N("button"),o=x(l),this.h()},l(r){e=S(r,"LI",{class:!0});var n=V(e);t=S(n,"BUTTON",{class:!0});var m=V(t);o=$(m,l),m.forEach(b),n.forEach(b),this.h()},h(){T(t,"class","w-full p-3 text-left"),T(e,"class","link-item svelte-8ihh0f"),X(e,"first",s[11]),X(e,"last",s[12])},m(r,n){A(r,e,n),y(e,t),y(t,o),h||(f=Z(t,"click",_),h=!0)},p(r,n){s=r,fe(s),n&1024&&l!==(l=s[10].namespace+"")&&Ue(o,l),n&1028&&X(e,"first",s[11]),n&1028&&X(e,"last",s[12])},d(r){r&&b(e),h=!1,f()}}}function Xe(s){let e,t,l,o,h,f,_,r,n,m,c,i,u,p,z,L,k,w,I,D,K;e=new Ae({props:{title:"Select Namespace",url:s[3].url.href}}),i=new We({props:{name:"search"}});const Y=[Je,Ge],P=[];function Q(a,g){return a[1].length?0:1}return k=Q(s),w=P[k]=Y[k](s),{c(){B(e.$$.fragment),t=O(),l=N("div"),o=N("h1"),h=x("Welcome to Temporal"),f=O(),_=N("p"),r=x("Select a Namespace to get started."),n=O(),m=N("form"),c=N("div"),B(i.$$.fragment),u=O(),p=N("input"),z=O(),L=N("ul"),w.c(),this.h()},l(a){j(e.$$.fragment,a),t=F(a),l=S(a,"DIV",{class:!0});var g=V(l);o=S(g,"H1",{class:!0});var v=V(o);h=$(v,"Welcome to Temporal"),v.forEach(b),f=F(g),_=S(g,"P",{class:!0});var E=V(_);r=$(E,"Select a Namespace to get started."),E.forEach(b),n=F(g),m=S(g,"FORM",{class:!0,role:!0});var R=V(m);c=S(R,"DIV",{class:!0});var d=V(c);j(i.$$.fragment,d),d.forEach(b),u=F(R),p=S(R,"INPUT",{class:!0,placeholder:!0,type:!0}),R.forEach(b),z=F(g),L=S(g,"UL",{class:!0,"aria-label":!0});var C=V(L);w.l(C),C.forEach(b),g.forEach(b),this.h()},h(){T(o,"class","my-4 text-3xl"),T(_,"class","mb-8"),T(c,"class","ml-4 mr-2"),T(p,"class","w-full"),T(p,"placeholder","Search"),T(p,"type","search"),T(m,"class","search svelte-8ihh0f"),T(m,"role","search"),T(L,"class","h-screen w-full"),T(L,"aria-label","namespaces"),T(l,"class","w-full p-8 xl:w-1/2")},m(a,g){G(e,a,g),A(a,t,g),A(a,l,g),y(l,o),y(o,h),y(l,f),y(l,_),y(_,r),y(l,n),y(l,m),y(m,c),G(i,c,null),y(m,u),y(m,p),ne(p,s[0]),y(l,z),y(l,L),P[k].m(L,null),I=!0,D||(K=[Z(p,"keydown",Ne(s[6])),Z(p,"input",s[7])],D=!0)},p(a,[g]){const v={};g&8&&(v.url=a[3].url.href),e.$set(v),g&1&&ne(p,a[0]);let E=k;k=Q(a),k===E?P[k].p(a,g):(se(),U(P[E],1,1,()=>{P[E]=null}),re(),w=P[k],w?w.p(a,g):(w=P[k]=Y[k](a),w.c()),H(w,1),w.m(L,null))},i(a){I||(H(e.$$.fragment,a),H(i.$$.fragment,a),H(w),I=!0)},o(a){U(e.$$.fragment,a),U(i.$$.fragment,a),U(w),I=!1},d(a){J(e,a),a&&b(t),a&&b(l),J(i),P[k].d(),D=!1,Se(K)}}}function Ze(s,e,t){let l,o,h,f,_,r;te(s,ie,u=>t(9,f=u)),te(s,ze,u=>t(5,_=u)),te(s,Re,u=>t(3,r=u));let n="";function m(u){He.call(this,s,u)}function c(){n=this.value,t(0,n)}const i=u=>u==null?void 0:u.onClick(u.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(u=>{var p;return(p=u==null?void 0:u.namespaceInfo)===null||p===void 0?void 0:p.name})),s.$$.dirty&16&&t(1,o=l.map(u=>({namespace:u,onClick:async p=>{const{authorized:z}=await Me(p);z?(Ve(ie,f=p,f),Pe(Ce({namespace:p}))):Oe.push({variant:"error",message:"You do not have access to this namespace."})}}))),s.$$.dirty&3&&t(2,h=o.filter(({namespace:u})=>u.includes(n)))},[n,o,h,r,l,_,m,c,i]}class it extends he{constructor(e){super(),me(this,e,Ze,Xe,pe,{})}}export{it as default}; +import{S as he,b as me,a as pe,m as N,p as S,q as V,k as b,v as M,at as le,$ as ve,f as A,L as y,am as be,T as Z,z as se,a1 as ke,a2 as we,h as re,j as H,g as U,o as ye,G as Ee,c as O,d as F,H as Te,I as Le,J as Ie,t as ee,A as ae,w as x,x as $,C as B,D as j,u as T,E as G,a9 as ne,V as Ne,F as J,r as Se,K as te,_ as Ve,P as He,n as ge,e as oe,R as X,y as Ue}from"../chunks/index.a36c9cb0.js";import{g as Pe}from"../chunks/navigation.58fc5f1f.js";import{p as Re}from"../chunks/stores.a2e3306d.js";import{l as ie,n as ze}from"../chunks/namespaces.85dd7810.js";import{r as Ce}from"../chunks/route-for.087ea268.js";import{E as de}from"../chunks/empty-state.9fb63265.js";import{I as We}from"../chunks/icon.33859671.js";import{P as Ae}from"../chunks/page-title.b9565d2f.js";import{d as Me}from"../chunks/workflow-service.b203d78a.js";import{t as Oe}from"../chunks/toaster.16c48a98.js";function ce(s,e,t){const l=s.slice();return l[23]=e[t],l}const Fe=s=>({item:s&16}),ue=s=>({item:s[23].data});function De(s){let e;return{c(){e=x("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){A(t,e,l)},d(t){t&&b(e)}}}function _e(s,e){let t,l,o;const h=e[14].default,f=Ee(h,e,e[13],ue),_=f||De();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=O(),this.h()},l(r){t=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var n=V(t);_&&_.l(n),l=F(n),n.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(r,n){A(r,t,n),_&&_.m(t,null),y(t,l),o=!0},p(r,n){e=r,f&&f.p&&(!o||n&8208)&&Te(f,h,e,e[13],o?Ie(h,e[13],n,Fe):Le(e[13]),ue)},i(r){o||(H(_,r),o=!0)},o(r){U(_,r),o=!1},d(r){r&&b(t),_&&_.d(r)}}}function qe(s){let e,t,l=[],o=new Map,h,f,_,r,n=s[4];const m=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,i){A(c,e,i),y(e,t);for(let u=0;ua){t(8,r=v),t(5,k=E);break}E+=d,v+=1}for(;va+p)););t(9,n=v);const R=h.length-n;for(I=E/n;v{c=u.getElementsByTagName("svelte-virtual-list-row"),t(12,L=!0)});function Y(a){ae[a?"unshift":"push"](()=>{u=a,t(3,u)})}function P(a){ae[a?"unshift":"push"](()=>{i=a,t(2,i)})}function Q(){p=this.offsetHeight,t(1,p)}return s.$$set=a=>{"items"in a&&t(10,h=a.items),"height"in a&&t(0,f=a.height),"itemHeight"in a&&t(11,_=a.itemHeight),"start"in a&&t(8,r=a.start),"end"in a&&t(9,n=a.end),"$$scope"in a&&t(13,o=a.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,z=h.slice(r,n).map((a,g)=>({index:g+r,data:a}))),s.$$.dirty&7170&&L&&D(h,p,_)},[f,p,i,u,z,k,w,K,r,n,h,_,L,o,l,Y,P,Q]}class je extends he{constructor(e){super(),me(this,e,Be,qe,pe,{items:10,height:0,itemHeight:11,start:8,end:9})}}function fe(s){const e=s[10]===s[2][0];s[11]=e;const t=s[10]===s[2][s[2].length-1];s[12]=t}function Ge(s){let e,t;return e=new de({props:{title:"No Namespaces. Contact your admin to create one."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Je(s){let e,t,l,o;const h=[Ye,Ke],f=[];function _(r,n){return r[2].length?0:1}return e=_(s),t=f[e]=h[e](s),{c(){t.c(),l=oe()},l(r){t.l(r),l=oe()},m(r,n){f[e].m(r,n),A(r,l,n),o=!0},p(r,n){let m=e;e=_(r),e===m?f[e].p(r,n):(se(),U(f[m],1,1,()=>{f[m]=null}),re(),t=f[e],t?t.p(r,n):(t=f[e]=h[e](r),t.c()),H(t,1),t.m(l.parentNode,l))},i(r){o||(H(t),o=!0)},o(r){U(t),o=!1},d(r){f[e].d(r),r&&b(l)}}}function Ke(s){let e,t;return e=new de({props:{title:"No results."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Ye(s){let e,t;return e=new je({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({10:l}),({item:l})=>l?1024:0]},$$scope:{ctx:s}}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p(l,o){const h={};o&4&&(h.items=l[2]),o&9220&&(h.$$scope={dirty:o,ctx:l}),e.$set(h)},i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Qe(s){fe(s);let e,t,l=s[10].namespace+"",o,h,f;function _(){return s[8](s[10])}return{c(){e=N("li"),t=N("button"),o=x(l),this.h()},l(r){e=S(r,"LI",{class:!0});var n=V(e);t=S(n,"BUTTON",{class:!0});var m=V(t);o=$(m,l),m.forEach(b),n.forEach(b),this.h()},h(){T(t,"class","w-full p-3 text-left"),T(e,"class","link-item svelte-8ihh0f"),X(e,"first",s[11]),X(e,"last",s[12])},m(r,n){A(r,e,n),y(e,t),y(t,o),h||(f=Z(t,"click",_),h=!0)},p(r,n){s=r,fe(s),n&1024&&l!==(l=s[10].namespace+"")&&Ue(o,l),n&1028&&X(e,"first",s[11]),n&1028&&X(e,"last",s[12])},d(r){r&&b(e),h=!1,f()}}}function Xe(s){let e,t,l,o,h,f,_,r,n,m,c,i,u,p,z,L,k,w,I,D,K;e=new Ae({props:{title:"Select Namespace",url:s[3].url.href}}),i=new We({props:{name:"search"}});const Y=[Je,Ge],P=[];function Q(a,g){return a[1].length?0:1}return k=Q(s),w=P[k]=Y[k](s),{c(){B(e.$$.fragment),t=O(),l=N("div"),o=N("h1"),h=x("Welcome to Temporal"),f=O(),_=N("p"),r=x("Select a Namespace to get started."),n=O(),m=N("form"),c=N("div"),B(i.$$.fragment),u=O(),p=N("input"),z=O(),L=N("ul"),w.c(),this.h()},l(a){j(e.$$.fragment,a),t=F(a),l=S(a,"DIV",{class:!0});var g=V(l);o=S(g,"H1",{class:!0});var v=V(o);h=$(v,"Welcome to Temporal"),v.forEach(b),f=F(g),_=S(g,"P",{class:!0});var E=V(_);r=$(E,"Select a Namespace to get started."),E.forEach(b),n=F(g),m=S(g,"FORM",{class:!0,role:!0});var R=V(m);c=S(R,"DIV",{class:!0});var d=V(c);j(i.$$.fragment,d),d.forEach(b),u=F(R),p=S(R,"INPUT",{class:!0,placeholder:!0,type:!0}),R.forEach(b),z=F(g),L=S(g,"UL",{class:!0,"aria-label":!0});var C=V(L);w.l(C),C.forEach(b),g.forEach(b),this.h()},h(){T(o,"class","my-4 text-3xl"),T(_,"class","mb-8"),T(c,"class","ml-4 mr-2"),T(p,"class","w-full"),T(p,"placeholder","Search"),T(p,"type","search"),T(m,"class","search svelte-8ihh0f"),T(m,"role","search"),T(L,"class","h-screen w-full"),T(L,"aria-label","namespaces"),T(l,"class","w-full p-8 xl:w-1/2")},m(a,g){G(e,a,g),A(a,t,g),A(a,l,g),y(l,o),y(o,h),y(l,f),y(l,_),y(_,r),y(l,n),y(l,m),y(m,c),G(i,c,null),y(m,u),y(m,p),ne(p,s[0]),y(l,z),y(l,L),P[k].m(L,null),I=!0,D||(K=[Z(p,"keydown",Ne(s[6])),Z(p,"input",s[7])],D=!0)},p(a,[g]){const v={};g&8&&(v.url=a[3].url.href),e.$set(v),g&1&&ne(p,a[0]);let E=k;k=Q(a),k===E?P[k].p(a,g):(se(),U(P[E],1,1,()=>{P[E]=null}),re(),w=P[k],w?w.p(a,g):(w=P[k]=Y[k](a),w.c()),H(w,1),w.m(L,null))},i(a){I||(H(e.$$.fragment,a),H(i.$$.fragment,a),H(w),I=!0)},o(a){U(e.$$.fragment,a),U(i.$$.fragment,a),U(w),I=!1},d(a){J(e,a),a&&b(t),a&&b(l),J(i),P[k].d(),D=!1,Se(K)}}}function Ze(s,e,t){let l,o,h,f,_,r;te(s,ie,u=>t(9,f=u)),te(s,ze,u=>t(5,_=u)),te(s,Re,u=>t(3,r=u));let n="";function m(u){He.call(this,s,u)}function c(){n=this.value,t(0,n)}const i=u=>u==null?void 0:u.onClick(u.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(u=>{var p;return(p=u==null?void 0:u.namespaceInfo)===null||p===void 0?void 0:p.name})),s.$$.dirty&16&&t(1,o=l.map(u=>({namespace:u,onClick:async p=>{const{authorized:z}=await Me(p);z?(Ve(ie,f=p,f),Pe(Ce({namespace:p}))):Oe.push({variant:"error",message:"You do not have access to this namespace."})}}))),s.$$.dirty&3&&t(2,h=o.filter(({namespace:u})=>u.includes(n)))},[n,o,h,r,l,_,m,c,i]}class it extends he{constructor(e){super(),me(this,e,Ze,Xe,pe,{})}}export{it as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.6d257209.js b/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.6d257209.js deleted file mode 100644 index 6a222f82c0..0000000000 --- a/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.6d257209.js +++ /dev/null @@ -1 +0,0 @@ -/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.713ab407.js";import{l as t,s as a}from"../chunks/_layout.ca39c28d.js";export{t as load,a as ssr}; diff --git a/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.a0a8e274.js b/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.a0a8e274.js new file mode 100644 index 0000000000..74ac0e0b81 --- /dev/null +++ b/ui/assets/cloud/_app/immutable/entry/(login)-layout.ts.a0a8e274.js @@ -0,0 +1 @@ +/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.2d7ee284.js";import{l as t,s as a}from"../chunks/_layout.27af8aca.js";export{t as load,a as ssr}; diff --git a/ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.a6553057.js b/ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.3eb1deb8.js similarity index 94% rename from ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.a6553057.js rename to ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.3eb1deb8.js index 991480ef16..4011735d89 100644 --- a/ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.a6553057.js +++ b/ui/assets/cloud/_app/immutable/entry/(login)-login-page.svelte.3eb1deb8.js @@ -1 +1 @@ -import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.0bc9ce95.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.70dfbf18.js";import{F as at,L as st}from"../chunks/feedback-button.9303fa9f.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; +import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.a2e3306d.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.087ea268.js";import{F as at,L as st}from"../chunks/feedback-button.4e415ec0.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.a6553057.js b/ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.3eb1deb8.js similarity index 94% rename from ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.a6553057.js rename to ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.3eb1deb8.js index 991480ef16..4011735d89 100644 --- a/ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.a6553057.js +++ b/ui/assets/cloud/_app/immutable/entry/(login)-signin-page.svelte.3eb1deb8.js @@ -1 +1 @@ -import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.0bc9ce95.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.70dfbf18.js";import{F as at,L as st}from"../chunks/feedback-button.9303fa9f.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; +import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.a2e3306d.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.087ea268.js";import{F as at,L as st}from"../chunks/feedback-button.4e415ec0.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/_error.svelte.7943e0a1.js b/ui/assets/cloud/_app/immutable/entry/_error.svelte.2df9e59d.js similarity index 86% rename from ui/assets/cloud/_app/immutable/entry/_error.svelte.7943e0a1.js rename to ui/assets/cloud/_app/immutable/entry/_error.svelte.2df9e59d.js index 91dbea4c6e..1f6abd281c 100644 --- a/ui/assets/cloud/_app/immutable/entry/_error.svelte.7943e0a1.js +++ b/ui/assets/cloud/_app/immutable/entry/_error.svelte.2df9e59d.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.a36c9cb0.js";/* empty css */import{p as d}from"../chunks/stores.0bc9ce95.js";import{E as h}from"../chunks/error.34f8ab49.js";import{i as b}from"../chunks/is-network-error.cb50de70.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{}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.a36c9cb0.js";/* empty css */import{p as d}from"../chunks/stores.a2e3306d.js";import{E as h}from"../chunks/error.51af1584.js";import{i as b}from"../chunks/is-network-error.cb50de70.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{}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.8d73a32f.js b/ui/assets/cloud/_app/immutable/entry/app.253e0f43.js similarity index 66% rename from ui/assets/local/_app/immutable/entry/app.8d73a32f.js rename to ui/assets/cloud/_app/immutable/entry/app.253e0f43.js index d1794a1214..4bde83ac60 100644 --- a/ui/assets/local/_app/immutable/entry/app.8d73a32f.js +++ b/ui/assets/cloud/_app/immutable/entry/app.253e0f43.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 $,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 R,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.a36c9cb0.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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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 A=e;e=s(c),e===A?o[e].p(c,g):(R(),p(o[A],1,1,()=>{o[A]=null}),$(),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:A=null}=e;X(r.page.notify);let I=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{I&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,I=!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 B(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(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,A=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,A,I,T,V,r,i,S,C,B,j,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 $e=[()=>u(()=>import("../chunks/0.d61a942d.js"),["../chunks/0.d61a942d.js","../chunks/_layout.e4a84b88.js","./layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/1.8673d393.js"),["../chunks/1.8673d393.js","./_error.svelte.6a9edf30.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/error.895ac9a4.js","../chunks/navigation.724a9b89.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/link.855bf830.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ab760c94.css"],import.meta.url),()=>u(()=>import("../chunks/2.e7c209e1.js"),["../chunks/2.e7c209e1.js","../chunks/_layout.74bf892c.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.5ac9963d.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/cluster.c8f1465c.js","../chunks/namespaces-service.971cb4c8.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.a32521a1.js","../chunks/search-attributes.b68ffd52.js","../chunks/atob.da26e476.js","../assets/_layout.845f7340.css","../assets/app.ab760c94.css","./(app)-layout.svelte.d61dbdd2.js","../chunks/navigation.724a9b89.js","../chunks/version-check.d006b302.js","../chunks/error.895ac9a4.js","../chunks/link.855bf830.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/filters.2b30fe96.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/modal.a1162225.css","../chunks/nav-open.98e0e195.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/empty-state.9fb63265.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/menu-item.4122979b.js","../assets/menu-item.c8f2a9b8.css","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/workflow-run.8a407b5f.js","../assets/_layout.c5cc5311.css"],import.meta.url),()=>u(()=>import("../chunks/3.3fc12d93.js"),["../chunks/3.3fc12d93.js","./(app)-import-layout.svelte.decd5f70.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/4.30fcd01f.js"),["../chunks/4.30fcd01f.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4f0ef61e.js","../chunks/index.a36c9cb0.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/toggle-buttons.dc1431b3.js","../chunks/icon.33859671.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../assets/toggle-buttons.642fc5fa.css","../chunks/event-history-file-import.a9e20a3c.js","../chunks/navigation.724a9b89.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.1292c373.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.da26e476.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js"],import.meta.url),()=>u(()=>import("../chunks/5.3ec660d8.js"),["../chunks/5.3ec660d8.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/6.f1bd4009.js"),["../chunks/6.f1bd4009.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.c6d29908.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/7.1a49f87f.js"),["../chunks/7.1a49f87f.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.140848ac.js","../chunks/index.a36c9cb0.js","../chunks/index.deae5bd4.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/paths.88db541d.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/events-service.d0c588a2.js","../chunks/event-view.f557cd63.js","../chunks/route-for.6dec3e74.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.a32521a1.js","../chunks/route-for-api.6ac9324b.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/index.1292c373.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.da26e476.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/workflow-terminate-enabled.50d3ef8f.js","../chunks/workflow-service.11be6188.js","../chunks/settings.34723850.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/core-user.f8486d3a.js","../chunks/split-button.207826fc.js","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../assets/split-button.b0d29bb4.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/link.855bf830.js","../chunks/loading.bcb9b7b8.js","../chunks/pollers-service.2fa449c9.js","../assets/_layout.d9b807f9.css"],import.meta.url),()=>u(()=>import("../chunks/8.653af22e.js"),["../chunks/8.653af22e.js","../chunks/_layout.4efc6a26.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.5ac9963d.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../assets/app.ab760c94.css","./(login)-layout.svelte.1b6cce0a.js"],import.meta.url),()=>u(()=>import("../chunks/9.c22a1e02.js"),["../chunks/9.c22a1e02.js","../chunks/_page.2b7718b3.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","./(app)-page.svelte.891da897.js","../chunks/index.a36c9cb0.js","../chunks/navigation.724a9b89.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/workflow-service.11be6188.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.48be4ca9.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd7810.js","../chunks/loading.bcb9b7b8.js"],import.meta.url),()=>u(()=>import("../chunks/10.10bbae81.js"),["../chunks/10.10bbae81.js","./(app)-data-converter-_port_-page.svelte.f8c5ca87.js","../chunks/index.a36c9cb0.js","../chunks/navigation.724a9b89.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/stores.48be4ca9.js","../chunks/toaster.16c48a98.js","../chunks/data-converter-config.28d58945.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js"],import.meta.url),()=>u(()=>import("../chunks/11.d5456cd4.js"),["../chunks/11.d5456cd4.js","../chunks/_page.8a42b2d6.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js"],import.meta.url),()=>u(()=>import("../chunks/12.aebb51f3.js"),["../chunks/12.aebb51f3.js","./(app)-import-events-page.svelte.1941c7ec.js","../chunks/index.a36c9cb0.js","../chunks/event-history-file-import.a9e20a3c.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/navigation.724a9b89.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.1292c373.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.da26e476.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/stores.48be4ca9.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js"],import.meta.url),()=>u(()=>import("../chunks/13.e0286c5d.js"),["../chunks/13.e0286c5d.js","../chunks/_page.406e9187.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js"],import.meta.url),()=>u(()=>import("../chunks/14.99e591dd.js"),["../chunks/14.99e591dd.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.36c10683.js","../chunks/index.a36c9cb0.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.844d84b4.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.48be4ca9.js","../chunks/route-for.6dec3e74.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.2b30fe96.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/15.fafeea92.js"),["../chunks/15.fafeea92.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.e6d38d0c.js","../chunks/index.a36c9cb0.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.844d84b4.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.48be4ca9.js","../chunks/route-for.6dec3e74.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.2b30fe96.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/16.a4a3f50e.js"),["../chunks/16.a4a3f50e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.edfe12a1.js","../chunks/index.a36c9cb0.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/index.deae5bd4.js","../chunks/parse-with-big-int.0036a80a.js","../assets/code-block.86c182bf.css","../chunks/import-events.8d158e6c.js"],import.meta.url),()=>u(()=>import("../chunks/17.b9aa5b10.js"),["../chunks/17.b9aa5b10.js","./(app)-namespaces-page.svelte.b84c641d.js","../chunks/index.a36c9cb0.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/18.3389fe64.js"),["../chunks/18.3389fe64.js","../chunks/_page.0300ab5e.js","../chunks/namespaces-service.971cb4c8.js","../chunks/toaster.16c48a98.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/paginated.a32521a1.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/auth-user.3a7bc4db.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","./(app)-namespaces-_namespace_-page.svelte.83cbd1cd.js","../chunks/versions.97216320.js","../chunks/cluster.c8f1465c.js","../chunks/settings.34723850.js","../chunks/search-attributes.b68ffd52.js","../chunks/format-time.c8c4770b.js","../chunks/page-title.b9565d2f.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/_page.c4e4432a.css"],import.meta.url),()=>u(()=>import("../chunks/19.a946af7f.js"),["../chunks/19.a946af7f.js","../chunks/_page.a0c99197.js","../chunks/workflow-service.11be6188.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces-service.971cb4c8.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.a32521a1.js","./(app)-namespaces-_namespace_-archival-page.svelte.31e4b322.js","../chunks/time-format.dc246788.js","../chunks/search.89e1d454.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/empty-state.9fb63265.js","../chunks/code-block.2cc5a38d.js","../assets/code-block.86c182bf.css","../chunks/page-title.b9565d2f.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/20.4c195666.js"),["../chunks/20.4c195666.js","./(app)-namespaces-_namespace_-schedules-page.svelte.6b885cf3.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/route-for.6dec3e74.js","../chunks/schedule-frequency.98fac758.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/link.855bf830.js","../chunks/table-row.9df8daa0.js","../chunks/format-camel-case.960a78f9.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/core-user.f8486d3a.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/page-title.b9565d2f.js","../assets/_page.75cb2ee6.css"],import.meta.url),()=>u(()=>import("../chunks/21.121d85f3.js"),["../chunks/21.121d85f3.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.cbac3665.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js","../chunks/icon.33859671.js","../chunks/route-for.6dec3e74.js","../chunks/navigation.724a9b89.js","../chunks/schedule-frequency.98fac758.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/time-format.dc246788.js","../chunks/schedules.b90ce875.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/workflow-service.11be6188.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/modal.a1162225.css","../chunks/split-button.207826fc.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/split-button.b0d29bb4.css","../chunks/loading.bcb9b7b8.js","../chunks/core-user.f8486d3a.js","../assets/_page.b0c2dab8.css"],import.meta.url),()=>u(()=>import("../chunks/22.f65382c3.js"),["../chunks/22.f65382c3.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.aadc1c43.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js","../chunks/schedules.b90ce875.js","../chunks/navigation.724a9b89.js","../chunks/route-for.6dec3e74.js","../chunks/schedule-frequency.98fac758.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/loading.bcb9b7b8.js","../chunks/schedule-form-view.811c5f7d.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.dc1431b3.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css"],import.meta.url),()=>u(()=>import("../chunks/23.03097753.js"),["../chunks/23.03097753.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.eb0e8412.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/schedules.b90ce875.js","../chunks/navigation.724a9b89.js","../chunks/route-for.6dec3e74.js","../chunks/schedule-frequency.98fac758.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/schedule-form-view.811c5f7d.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.dc1431b3.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/24.2129c3c7.js"),["../chunks/24.2129c3c7.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/25.adf8b853.js"),["../chunks/25.adf8b853.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.3aa72fcc.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/pollers-service.2fa449c9.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/26.73cb6697.js"),["../chunks/26.73cb6697.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.72c89f48.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.50d3ef8f.js","../chunks/workflow-service.11be6188.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/icon.33859671.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/namespaces.85dd7810.js","../chunks/empty-state.9fb63265.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/search.89e1d454.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/nav-open.98e0e195.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/loading.bcb9b7b8.js","../chunks/page-title.b9565d2f.js","../chunks/filters.2b30fe96.js","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/core-user.f8486d3a.js","../chunks/format-camel-case.960a78f9.js","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/simple-split-button.e333abd5.js","../assets/simple-split-button.58c6befd.css","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.dc1431b3.js","../assets/toggle-buttons.642fc5fa.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../assets/_page.99adfc9e.css"],import.meta.url),()=>u(()=>import("../chunks/27.74c43b4b.js"),["../chunks/27.74c43b4b.js","../chunks/_page.88f44cfb.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.11be6188.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/28.8a81a7db.js"),["../chunks/28.8a81a7db.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/29.d7b906be.js"),["../chunks/29.d7b906be.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.7bd6da90.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/is-event-type.763b5d4b.js","../chunks/has.48bed8a5.js","../chunks/events-service.d0c588a2.js","../chunks/route-for.6dec3e74.js","../chunks/workflow-run.8a407b5f.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.a32521a1.js","../chunks/route-for-api.6ac9324b.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/index.1292c373.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.da26e476.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/toggle-buttons.dc1431b3.js","../assets/toggle-buttons.642fc5fa.css","../chunks/link.855bf830.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/pagination.4cd37fec.js","../chunks/navigation.724a9b89.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/empty-state.9fb63265.js","../chunks/event-empty-row.844d84b4.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/filters.2b30fe96.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../chunks/page-title.b9565d2f.js","../assets/_page.250e64e1.css"],import.meta.url),()=>u(()=>import("../chunks/30.fe3e592c.js"),["../chunks/30.fe3e592c.js","../chunks/_page.5430b7c5.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js"],import.meta.url),()=>u(()=>import("../chunks/31.fe3e592c.js"),["../chunks/31.fe3e592c.js","../chunks/_page.f3d1bbfc.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js"],import.meta.url),()=>u(()=>import("../chunks/32.fe3e592c.js"),["../chunks/32.fe3e592c.js","../chunks/_page.74c63f76.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.6dec3e74.js","../chunks/paths.88db541d.js"],import.meta.url),()=>u(()=>import("../chunks/33.c091dd39.js"),["../chunks/33.c091dd39.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.3713d2b8.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/page-title.b9565d2f.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/34.89f92ef1.js"),["../chunks/34.89f92ef1.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.01f8de7b.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/query-service.9f914e5c.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.da26e476.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../chunks/empty-state.9fb63265.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/35.ee63f436.js"),["../chunks/35.ee63f436.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a4467d25.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/query-service.9f914e5c.js","../chunks/route-for-api.6ac9324b.js","../chunks/route-for.6dec3e74.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.8518c13e.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.da26e476.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../chunks/link.855bf830.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/36.7e838d49.js"),["../chunks/36.7e838d49.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.64cb234f.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/37.c5c2e341.js"),["../chunks/37.c5c2e341.js","./(app)-select-namespace-page.svelte.9ae9cf92.js","../chunks/index.a36c9cb0.js","../chunks/navigation.724a9b89.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/stores.48be4ca9.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.6dec3e74.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-service.11be6188.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.6ac9324b.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.900ba0a0.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../assets/_page.df90e04e.css"],import.meta.url),()=>u(()=>import("../chunks/38.d386fcfd.js"),["../chunks/38.d386fcfd.js","./(login)-login-page.svelte.ca96e93b.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.6dec3e74.js","../chunks/feedback-button.fa3b5f9f.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url),()=>u(()=>import("../chunks/39.c8168e71.js"),["../chunks/39.c8168e71.js","./(login)-signin-page.svelte.ca96e93b.js","../chunks/index.a36c9cb0.js","../chunks/stores.48be4ca9.js","../chunks/singletons.7cea9c5f.js","../chunks/index.deae5bd4.js","../chunks/paths.88db541d.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.6dec3e74.js","../chunks/feedback-button.fa3b5f9f.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url)],Re=[],Le={"/(app)":[9,[2]],"/(app)/data-converter/[port]":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[38,[8]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2]],"/(app)/namespaces/[namespace]/archival":[19,[2]],"/(app)/namespaces/[namespace]/schedules":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[22,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[24,[2,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[25,[2,6]],"/(app)/namespaces/[namespace]/workflows":[26,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[27,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[28,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[29,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[30,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[31,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[32,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[33,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[34,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[35,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[36,[2,7]],"/(app)/select-namespace":[37,[2]],"/(login)/signin":[39,[8]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,$e as nodes,be as root,Re 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 $,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 R,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.a36c9cb0.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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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 A=e;e=s(c),e===A?o[e].p(c,g):(R(),p(o[A],1,1,()=>{o[A]=null}),$(),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:A=null}=e;X(r.page.notify);let I=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{I&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,I=!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 B(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(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,A=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,A,I,T,V,r,i,S,C,B,j,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 $e=[()=>u(()=>import("../chunks/0.d61a942d.js"),["../chunks/0.d61a942d.js","../chunks/_layout.e4a84b88.js","./layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/1.a294f349.js"),["../chunks/1.a294f349.js","./_error.svelte.2df9e59d.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/error.51af1584.js","../chunks/navigation.58fc5f1f.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/link.855bf830.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ab760c94.css"],import.meta.url),()=>u(()=>import("../chunks/2.822cfcc8.js"),["../chunks/2.822cfcc8.js","../chunks/_layout.35732f64.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.2d7ee284.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/cluster.c8f1465c.js","../chunks/namespaces-service.1ee08ff7.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.1c9fb8c8.js","../chunks/search-attributes.b68ffd52.js","../chunks/atob.c08bef0d.js","../assets/_layout.845f7340.css","../assets/app.ab760c94.css","./(app)-layout.svelte.afdd893c.js","../chunks/navigation.58fc5f1f.js","../chunks/version-check.d006b302.js","../chunks/error.51af1584.js","../chunks/link.855bf830.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/filters.ab2fc3ed.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/modal.a1162225.css","../chunks/nav-open.98e0e195.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/empty-state.9fb63265.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/menu-item.4122979b.js","../assets/menu-item.c8f2a9b8.css","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/workflow-run.8a407b5f.js","../assets/_layout.c5cc5311.css"],import.meta.url),()=>u(()=>import("../chunks/3.18571f15.js"),["../chunks/3.18571f15.js","./(app)-import-layout.svelte.fae8b342.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/4.672b8b80.js"),["../chunks/4.672b8b80.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.b05d1f2e.js","../chunks/index.a36c9cb0.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/toggle-buttons.fba008ff.js","../chunks/icon.33859671.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../assets/toggle-buttons.642fc5fa.css","../chunks/event-history-file-import.26212091.js","../chunks/navigation.58fc5f1f.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.14accc17.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.c08bef0d.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js"],import.meta.url),()=>u(()=>import("../chunks/5.3ec660d8.js"),["../chunks/5.3ec660d8.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/6.f1bd4009.js"),["../chunks/6.f1bd4009.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.c6d29908.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/7.b4f543c4.js"),["../chunks/7.b4f543c4.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.23c96af1.js","../chunks/index.a36c9cb0.js","../chunks/index.deae5bd4.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/paths.4fd8dc14.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/events-service.df63a9ac.js","../chunks/event-view.f557cd63.js","../chunks/route-for.087ea268.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.1c9fb8c8.js","../chunks/route-for-api.75ac86ec.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/index.14accc17.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.c08bef0d.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/workflow-terminate-enabled.b144f440.js","../chunks/workflow-service.b203d78a.js","../chunks/settings.34723850.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/core-user.f8486d3a.js","../chunks/split-button.207826fc.js","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../assets/split-button.b0d29bb4.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/link.855bf830.js","../chunks/loading.bcb9b7b8.js","../chunks/pollers-service.4cba4448.js","../assets/_layout.d9b807f9.css"],import.meta.url),()=>u(()=>import("../chunks/8.ae55835b.js"),["../chunks/8.ae55835b.js","../chunks/_layout.27af8aca.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.2d7ee284.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../assets/app.ab760c94.css","./(login)-layout.svelte.1b6cce0a.js"],import.meta.url),()=>u(()=>import("../chunks/9.64dd0ee4.js"),["../chunks/9.64dd0ee4.js","../chunks/_page.edd987e4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","./(app)-page.svelte.27bcc3a4.js","../chunks/index.a36c9cb0.js","../chunks/navigation.58fc5f1f.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/workflow-service.b203d78a.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.a2e3306d.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd7810.js","../chunks/loading.bcb9b7b8.js"],import.meta.url),()=>u(()=>import("../chunks/10.1716a5b9.js"),["../chunks/10.1716a5b9.js","./(app)-data-converter-_port_-page.svelte.a94a9060.js","../chunks/index.a36c9cb0.js","../chunks/navigation.58fc5f1f.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/stores.a2e3306d.js","../chunks/toaster.16c48a98.js","../chunks/data-converter-config.28d58945.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js"],import.meta.url),()=>u(()=>import("../chunks/11.ba8075a7.js"),["../chunks/11.ba8075a7.js","../chunks/_page.be03befd.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js"],import.meta.url),()=>u(()=>import("../chunks/12.ab130623.js"),["../chunks/12.ab130623.js","./(app)-import-events-page.svelte.51774b71.js","../chunks/index.a36c9cb0.js","../chunks/event-history-file-import.26212091.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/navigation.58fc5f1f.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.14accc17.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.c08bef0d.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/stores.a2e3306d.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js"],import.meta.url),()=>u(()=>import("../chunks/13.48abd10e.js"),["../chunks/13.48abd10e.js","../chunks/_page.045d2d42.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js"],import.meta.url),()=>u(()=>import("../chunks/14.91860b3a.js"),["../chunks/14.91860b3a.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.5e0eca44.js","../chunks/index.a36c9cb0.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.f23d95dc.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.a2e3306d.js","../chunks/route-for.087ea268.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.ab2fc3ed.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/15.7de15486.js"),["../chunks/15.7de15486.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.1cf4f027.js","../chunks/index.a36c9cb0.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.f23d95dc.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.a2e3306d.js","../chunks/route-for.087ea268.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.ab2fc3ed.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/16.a4a3f50e.js"),["../chunks/16.a4a3f50e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.edfe12a1.js","../chunks/index.a36c9cb0.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/index.deae5bd4.js","../chunks/parse-with-big-int.0036a80a.js","../assets/code-block.86c182bf.css","../chunks/import-events.8d158e6c.js"],import.meta.url),()=>u(()=>import("../chunks/17.eced0f46.js"),["../chunks/17.eced0f46.js","./(app)-namespaces-page.svelte.e3cb8df8.js","../chunks/index.a36c9cb0.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/18.f697705b.js"),["../chunks/18.f697705b.js","../chunks/_page.2b0c4c74.js","../chunks/namespaces-service.1ee08ff7.js","../chunks/toaster.16c48a98.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/paginated.1c9fb8c8.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/auth-user.3a7bc4db.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","./(app)-namespaces-_namespace_-page.svelte.84696901.js","../chunks/versions.97216320.js","../chunks/cluster.c8f1465c.js","../chunks/settings.34723850.js","../chunks/search-attributes.b68ffd52.js","../chunks/format-time.c8c4770b.js","../chunks/page-title.b9565d2f.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/_page.c4e4432a.css"],import.meta.url),()=>u(()=>import("../chunks/19.5d9811df.js"),["../chunks/19.5d9811df.js","../chunks/_page.de41eaf1.js","../chunks/workflow-service.b203d78a.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces-service.1ee08ff7.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.1c9fb8c8.js","./(app)-namespaces-_namespace_-archival-page.svelte.4ef79eb9.js","../chunks/time-format.dc246788.js","../chunks/search.9f7ab7f3.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/empty-state.9fb63265.js","../chunks/code-block.2cc5a38d.js","../assets/code-block.86c182bf.css","../chunks/page-title.b9565d2f.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/20.b6657f2e.js"),["../chunks/20.b6657f2e.js","./(app)-namespaces-_namespace_-schedules-page.svelte.06ae428e.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/route-for.087ea268.js","../chunks/schedule-frequency.b0daddd1.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/link.855bf830.js","../chunks/table-row.9df8daa0.js","../chunks/format-camel-case.960a78f9.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/core-user.f8486d3a.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/page-title.b9565d2f.js","../assets/_page.75cb2ee6.css"],import.meta.url),()=>u(()=>import("../chunks/21.37941c15.js"),["../chunks/21.37941c15.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.21b1363d.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js","../chunks/icon.33859671.js","../chunks/route-for.087ea268.js","../chunks/navigation.58fc5f1f.js","../chunks/schedule-frequency.b0daddd1.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/time-format.dc246788.js","../chunks/schedules.9cce6c1a.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/workflow-service.b203d78a.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/modal.a1162225.css","../chunks/split-button.207826fc.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/split-button.b0d29bb4.css","../chunks/loading.bcb9b7b8.js","../chunks/core-user.f8486d3a.js","../assets/_page.b0c2dab8.css"],import.meta.url),()=>u(()=>import("../chunks/22.7af2d653.js"),["../chunks/22.7af2d653.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.f2b749ed.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js","../chunks/schedules.9cce6c1a.js","../chunks/navigation.58fc5f1f.js","../chunks/route-for.087ea268.js","../chunks/schedule-frequency.b0daddd1.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/loading.bcb9b7b8.js","../chunks/schedule-form-view.e833bcc4.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.fba008ff.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css"],import.meta.url),()=>u(()=>import("../chunks/23.30cb4df2.js"),["../chunks/23.30cb4df2.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.dbb2673c.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/schedules.9cce6c1a.js","../chunks/navigation.58fc5f1f.js","../chunks/route-for.087ea268.js","../chunks/schedule-frequency.b0daddd1.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/schedule-form-view.e833bcc4.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.fba008ff.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/24.2129c3c7.js"),["../chunks/24.2129c3c7.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/25.f30c040f.js"),["../chunks/25.f30c040f.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.898cc34a.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/pollers-service.4cba4448.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/26.7514e783.js"),["../chunks/26.7514e783.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.b996db0e.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.b144f440.js","../chunks/workflow-service.b203d78a.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/icon.33859671.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/namespaces.85dd7810.js","../chunks/empty-state.9fb63265.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/search.9f7ab7f3.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/nav-open.98e0e195.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/loading.bcb9b7b8.js","../chunks/page-title.b9565d2f.js","../chunks/filters.ab2fc3ed.js","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/core-user.f8486d3a.js","../chunks/format-camel-case.960a78f9.js","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/simple-split-button.e333abd5.js","../assets/simple-split-button.58c6befd.css","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.fba008ff.js","../assets/toggle-buttons.642fc5fa.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../assets/_page.99adfc9e.css"],import.meta.url),()=>u(()=>import("../chunks/27.36fa525b.js"),["../chunks/27.36fa525b.js","../chunks/_page.68a74ae0.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.b203d78a.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/28.8a81a7db.js"),["../chunks/28.8a81a7db.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/29.5c65ac97.js"),["../chunks/29.5c65ac97.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ffc1468c.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/is-event-type.763b5d4b.js","../chunks/has.48bed8a5.js","../chunks/events-service.df63a9ac.js","../chunks/route-for.087ea268.js","../chunks/workflow-run.8a407b5f.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.1c9fb8c8.js","../chunks/route-for-api.75ac86ec.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/index.14accc17.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.c08bef0d.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/toggle-buttons.fba008ff.js","../assets/toggle-buttons.642fc5fa.css","../chunks/link.855bf830.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/pagination.c403d909.js","../chunks/navigation.58fc5f1f.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/empty-state.9fb63265.js","../chunks/event-empty-row.f23d95dc.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/filters.ab2fc3ed.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../chunks/page-title.b9565d2f.js","../assets/_page.250e64e1.css"],import.meta.url),()=>u(()=>import("../chunks/30.6bf1a68e.js"),["../chunks/30.6bf1a68e.js","../chunks/_page.2b64f7b2.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js"],import.meta.url),()=>u(()=>import("../chunks/31.6bf1a68e.js"),["../chunks/31.6bf1a68e.js","../chunks/_page.a33400eb.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js"],import.meta.url),()=>u(()=>import("../chunks/32.6bf1a68e.js"),["../chunks/32.6bf1a68e.js","../chunks/_page.75c2ac3e.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.087ea268.js","../chunks/paths.4fd8dc14.js"],import.meta.url),()=>u(()=>import("../chunks/33.77c4ea2e.js"),["../chunks/33.77c4ea2e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4888e92a.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/page-title.b9565d2f.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/34.c3685080.js"),["../chunks/34.c3685080.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.83cb87ac.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/query-service.d960637f.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.c08bef0d.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../chunks/empty-state.9fb63265.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/35.d09540e1.js"),["../chunks/35.d09540e1.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.9a05b12d.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/query-service.d960637f.js","../chunks/route-for-api.75ac86ec.js","../chunks/route-for.087ea268.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.d4d968ba.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.c08bef0d.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../chunks/link.855bf830.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/36.693c4fd1.js"),["../chunks/36.693c4fd1.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.65c49a36.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/37.18596a2f.js"),["../chunks/37.18596a2f.js","./(app)-select-namespace-page.svelte.166ea9f3.js","../chunks/index.a36c9cb0.js","../chunks/navigation.58fc5f1f.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/stores.a2e3306d.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.087ea268.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-service.b203d78a.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.75ac86ec.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.34f80e4f.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../assets/_page.df90e04e.css"],import.meta.url),()=>u(()=>import("../chunks/38.61b05597.js"),["../chunks/38.61b05597.js","./(login)-login-page.svelte.3eb1deb8.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.087ea268.js","../chunks/feedback-button.4e415ec0.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url),()=>u(()=>import("../chunks/39.3f818244.js"),["../chunks/39.3f818244.js","./(login)-signin-page.svelte.3eb1deb8.js","../chunks/index.a36c9cb0.js","../chunks/stores.a2e3306d.js","../chunks/singletons.d80358da.js","../chunks/index.deae5bd4.js","../chunks/paths.4fd8dc14.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.087ea268.js","../chunks/feedback-button.4e415ec0.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url)],Re=[],Le={"/(app)":[9,[2]],"/(app)/data-converter/[port]":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[38,[8]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2]],"/(app)/namespaces/[namespace]/archival":[19,[2]],"/(app)/namespaces/[namespace]/schedules":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[22,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[24,[2,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[25,[2,6]],"/(app)/namespaces/[namespace]/workflows":[26,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[27,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[28,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[29,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[30,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[31,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[32,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[33,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[34,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[35,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[36,[2,7]],"/(app)/select-namespace":[37,[2]],"/(login)/signin":[39,[8]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,$e as nodes,be as root,Re as server_loads}; diff --git a/ui/assets/cloud/_app/immutable/entry/start.18294d82.js b/ui/assets/cloud/_app/immutable/entry/start.2b418bf7.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/start.18294d82.js rename to ui/assets/cloud/_app/immutable/entry/start.2b418bf7.js index 7ce917bb59..693e8f1dce 100644 --- a/ui/assets/cloud/_app/immutable/entry/start.18294d82.js +++ b/ui/assets/cloud/_app/immutable/entry/start.2b418bf7.js @@ -1,3 +1,3 @@ -import{o as De,t as se}from"../chunks/index.a36c9cb0.js";import{S as ze,a as Be,I as q,g as Ce,f as qe,b as ge,c as ce,s as M,i as Fe,d as Q,P as Me,e as We}from"../chunks/singletons.1bc1b54a.js";import{b as B}from"../chunks/paths.bb4ad9d4.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(be(n)),le(n,i));const te=new Map;function it(n,i){const p=be(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=be(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((_,y)=>{if(y%2){if(_.startsWith("x+"))return ye(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return ye(String.fromCharCode(..._.slice(2).split("-").map(I=>parseInt(I,16))));const h=ct.exec(_);if(!h)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,A,v,P]=h;return i.push({name:v,matcher:P,optional:!!$,rest:!!A,chained:A?y===1&&L[0]==="":!1}),A?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return ye(_)}).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;Ly).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const y=i[L+1],h=u[L+1];y&&!y.rest&&y.optional&&h&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function ye(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,[_,y,h]])=>{const{pattern:$,params:A}=lt(l),v={id:l,exec:P=>{const I=$.exec(P);if(I)return dt(I,A,c)},errors:[1,...h||[]].map(P=>n[P]),layouts:[0,...y||[]].map(L),leaf:d(_)};return v.errors.length=v.layouts.length=Math.max(v.errors.length,v.layouts.length),v});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],y=i==null?void 0:i[_];if(y)return c[d]=y(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const h=new Set;c[d]=h;for(let v=1;vi!=null)}const z=Ge(ze)??{},Z=Ge(Be)??{};function we(n){z[n]=Q()}function kt(n,i){var xe;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const y={before_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},$=!1,A=!1,v=!0,P=!1,I=!1,G=!1,H=!1,F,N=(xe=history.state)==null?void 0:xe[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=z[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,ve,ne;async function Ee(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=Y(t,!0);_=null,await Ie(e,t,[])}function ke(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 Se(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 Re(){we(N),Ve(ze,z),ke(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},m,f){return typeof t=="string"&&(t=new URL(t,Ce(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:m,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Le(t){return _={id:t.id,promise:Oe(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 Ie(t,e,r,a,s,o={},m){var w,g,R;ve=o;let f=t&&await Oe(t);if(f||(f=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)),e=(t==null?void 0:t.url)||e,ve!==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((w=f.props.page)==null?void 0:w.status)>=400&&await M.updated.check()&&await W(e);if(L.length=0,H=!1,P=!0,a&&(we(a),ke(a)),(g=f.props.page)!=null&&g.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:k}=s,O=k.replaceState?0:1;if(k.state[q]=N+=O,history[k.replaceState?"replaceState":"pushState"](k.state,"",e),!k.replaceState){let S=N+1;for(;Z[S]||z[S];)delete Z[S],delete z[S],S+=1}}if(_=null,A?(h=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Ae(f),s){const{scroll:k,keepfocus:O}=s,{activeElement:S}=document;if(await se(),v){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));k?scrollTo(k.x,k.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!O&&!b&&await _e()}else await se();v=!0,f.props.page&&(V=f.props.page),m&&m(),P=!1}function Ae(t){var a;h=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}),Se(N);const r={from:null,to:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};y.after_navigate.forEach(s=>s(r)),A=!0}async function J({url:t,params:e,branch:r,status:a,error:s,route:o,form:m}){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 w={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};m!==void 0&&(w.props.form=m);let g={},R=!V,k=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 O(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),A?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:O,parent(){return f.parent=!0,e()}};m=await w.universal.load.call(null,S)??null,m=m?await ht(m):null}return{node:w,loader:t,server:o,universal:(R=w.universal)!=null&&R.load?{type:"data",data:m,uses:f}:null,data:m??(o==null?void 0:o.data)??null,slash:((k=w.universal)==null?void 0:k.trailingSlash)??(o==null?void 0:o.slash)}}function Pe(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]!==h.params[o])return!0;for(const o of a.dependencies)if(L.some(m=>m(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 Oe({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:m,leaf:f}=s,w=[...m,f];o.forEach(E=>E==null?void 0:E().catch(()=>{})),w.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let g=null;const R=h.url?t!==h.url.pathname+h.url.search:!1,k=h.route?s.id!==h.route.id:!1;let O=!1;const S=w.map((E,T)=>{var K;const j=h.branch[T],x=!!(E!=null&&E[0])&&((j==null?void 0:j.loader)!==E[1]||Pe(O,k,R,(K=j.server)==null?void 0:K.uses,a));return x&&(O=!0),x});if(S.some(Boolean)){try{g=await Ke(r,S)}catch(E){return re({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(g.type==="redirect")return g}const b=g==null?void 0:g.nodes;let U=!1;const D=w.map(async(E,T)=>{var he;if(!E)return;const j=h.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&E[1]===(j==null?void 0:j.loader)&&!Pe(U,k,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:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const $e={};for(let me=0;me{});const C=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(o)}),w={node:await u(),loader:u,universal:null,server:null,data:null};return await J({url:r,params:s,branch:[f,w],status:t,error:e,route:null})}function Y(t,e){if(Fe(t,B))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(B.length)||"/")}function je({url:t,type:e,intent:r,delta:a}){var f,w;let s=!1;const o={from:{params:h.params,route:{id:((f=h.route)==null?void 0:f.id)??null},url:h.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((w=r==null?void 0:r.route)==null?void 0:w.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const m={...o,cancel:()=>{s=!0}};return I||y.before_navigate.forEach(g=>g(m)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:m,nav_token:f,accepted:w,blocked:g}){const R=Y(t,!1),k=je({url:t,type:o,delta:m,intent:R});if(!k){g();return}const O=N;w(),I=!0,A&&M.navigating.set(k),await Ie(R,t,a,O,{scroll:e,keepfocus:r,details:s},f,()=>{I=!1,y.after_navigate.forEach(S=>S(k)),M.navigating.set(null)})}async function Ne(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await W(t)}function W(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const m=o.target;clearTimeout(t),t=setTimeout(()=>{a(m,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 m of o)m.isIntersecting&&(ae(oe(new URL(m.target.href))),r.unobserve(m.target))},{threshold:0});function a(o,m){const f=qe(o,d);if(!f)return;const{url:w,external:g}=ge(f,B);if(g)return;const R=ce(f);if(!R.reload)if(m<=R.preload_data){const k=Y(w,!1);k&&Le(k)}else m<=R.preload_code&&ae(oe(w))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:m,external:f}=ge(o,B);if(f)continue;const w=ce(o);w.reload||(w.preload_code===Me.viewport&&r.observe(o),w.preload_code===Me.eager&&ae(oe(m)))}}y.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=>{De(()=>(y.after_navigate.push(t),()=>{const e=y.after_navigate.indexOf(t);y.after_navigate.splice(e,1)}))},before_navigate:t=>{De(()=>(y.before_navigate.push(t),()=>{const e=y.before_navigate.indexOf(t);y.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(P||!A)&&(v=!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 Ee()},invalidateAll:()=>(H=!0,Ee()),preload_data:async t=>{const e=new URL(t,Ce(document)),r=Y(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Le(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=h;if(!a)return;const s=await Ue(h.branch.length,r,a.errors);if(s){const o=await J({url:e,params:h.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});h=o.state,F.$set(o.props),se().then(_e)}}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"&&_e())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Re(),!I){const s={from:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:h.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};y.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Re()}),(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=qe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,B);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const m=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||m.reload){je({url:a,type:"link"})?I=!0:e.preventDefault();return}const[w,g]=a.href.split("#");if(g!==void 0&&w===location.href.split("#")[0]){G=!0,we(N),h.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:m.noscroll?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState: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(Fe(o,B))return;const m=e.target,{noscroll:f,reload:w}=ce(m);if(w)return;e.preventDefault(),e.stopPropagation();const g=new FormData(m),R=a==null?void 0:a.getAttribute("name");R&&g.append(R,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(g).toString(),ie({url:o,scroll:f?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},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=z[e.state[q]];if(h.url.href.split("#")[0]===location.href.split("#")[0]){z[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||Se(N)}}),addEventListener("hashchange",()=>{G&&(G=!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:m})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=Y(f,!1)||{});let w;try{const g=r.map(async(R,k)=>{const O=o[k];return O!=null&&O.uses&&(O.uses=Je(O.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(g){if(g instanceof He){await W(new URL(g.location,location.href));return}w=await re({status:g instanceof ee?g.status:500,error:await X(g,{url:f,params:a,route:s}),url:f,route:s})}Ae(w)}}}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 h;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:A=>new Promise((v,P)=>{d.set(A,{fulfil:v,reject:P})})})}let y="";for(;;){const{done:$,value:A}=await L.read();if($&&!y)break;for(y+=!A&&y?` +import{o as De,t as se}from"../chunks/index.a36c9cb0.js";import{S as ze,a as Be,I as q,g as Ce,f as qe,b as ge,c as ce,s as M,i as Fe,d as Q,P as Me,e as We}from"../chunks/singletons.d80358da.js";import{b as B}from"../chunks/paths.4fd8dc14.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(be(n)),le(n,i));const te=new Map;function it(n,i){const p=be(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=be(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((_,y)=>{if(y%2){if(_.startsWith("x+"))return ye(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return ye(String.fromCharCode(..._.slice(2).split("-").map(I=>parseInt(I,16))));const h=ct.exec(_);if(!h)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,A,v,P]=h;return i.push({name:v,matcher:P,optional:!!$,rest:!!A,chained:A?y===1&&L[0]==="":!1}),A?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return ye(_)}).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;Ly).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const y=i[L+1],h=u[L+1];y&&!y.rest&&y.optional&&h&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function ye(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,[_,y,h]])=>{const{pattern:$,params:A}=lt(l),v={id:l,exec:P=>{const I=$.exec(P);if(I)return dt(I,A,c)},errors:[1,...h||[]].map(P=>n[P]),layouts:[0,...y||[]].map(L),leaf:d(_)};return v.errors.length=v.layouts.length=Math.max(v.errors.length,v.layouts.length),v});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],y=i==null?void 0:i[_];if(y)return c[d]=y(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const h=new Set;c[d]=h;for(let v=1;vi!=null)}const z=Ge(ze)??{},Z=Ge(Be)??{};function we(n){z[n]=Q()}function kt(n,i){var xe;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const y={before_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},$=!1,A=!1,v=!0,P=!1,I=!1,G=!1,H=!1,F,N=(xe=history.state)==null?void 0:xe[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=z[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,ve,ne;async function Ee(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=Y(t,!0);_=null,await Ie(e,t,[])}function ke(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 Se(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 Re(){we(N),Ve(ze,z),ke(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},m,f){return typeof t=="string"&&(t=new URL(t,Ce(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:m,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Le(t){return _={id:t.id,promise:Oe(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 Ie(t,e,r,a,s,o={},m){var w,g,R;ve=o;let f=t&&await Oe(t);if(f||(f=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)),e=(t==null?void 0:t.url)||e,ve!==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((w=f.props.page)==null?void 0:w.status)>=400&&await M.updated.check()&&await W(e);if(L.length=0,H=!1,P=!0,a&&(we(a),ke(a)),(g=f.props.page)!=null&&g.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:k}=s,O=k.replaceState?0:1;if(k.state[q]=N+=O,history[k.replaceState?"replaceState":"pushState"](k.state,"",e),!k.replaceState){let S=N+1;for(;Z[S]||z[S];)delete Z[S],delete z[S],S+=1}}if(_=null,A?(h=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Ae(f),s){const{scroll:k,keepfocus:O}=s,{activeElement:S}=document;if(await se(),v){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));k?scrollTo(k.x,k.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!O&&!b&&await _e()}else await se();v=!0,f.props.page&&(V=f.props.page),m&&m(),P=!1}function Ae(t){var a;h=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}),Se(N);const r={from:null,to:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};y.after_navigate.forEach(s=>s(r)),A=!0}async function J({url:t,params:e,branch:r,status:a,error:s,route:o,form:m}){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 w={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};m!==void 0&&(w.props.form=m);let g={},R=!V,k=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 O(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),A?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:O,parent(){return f.parent=!0,e()}};m=await w.universal.load.call(null,S)??null,m=m?await ht(m):null}return{node:w,loader:t,server:o,universal:(R=w.universal)!=null&&R.load?{type:"data",data:m,uses:f}:null,data:m??(o==null?void 0:o.data)??null,slash:((k=w.universal)==null?void 0:k.trailingSlash)??(o==null?void 0:o.slash)}}function Pe(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]!==h.params[o])return!0;for(const o of a.dependencies)if(L.some(m=>m(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 Oe({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:m,leaf:f}=s,w=[...m,f];o.forEach(E=>E==null?void 0:E().catch(()=>{})),w.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let g=null;const R=h.url?t!==h.url.pathname+h.url.search:!1,k=h.route?s.id!==h.route.id:!1;let O=!1;const S=w.map((E,T)=>{var K;const j=h.branch[T],x=!!(E!=null&&E[0])&&((j==null?void 0:j.loader)!==E[1]||Pe(O,k,R,(K=j.server)==null?void 0:K.uses,a));return x&&(O=!0),x});if(S.some(Boolean)){try{g=await Ke(r,S)}catch(E){return re({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(g.type==="redirect")return g}const b=g==null?void 0:g.nodes;let U=!1;const D=w.map(async(E,T)=>{var he;if(!E)return;const j=h.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&E[1]===(j==null?void 0:j.loader)&&!Pe(U,k,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:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const $e={};for(let me=0;me{});const C=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(o)}),w={node:await u(),loader:u,universal:null,server:null,data:null};return await J({url:r,params:s,branch:[f,w],status:t,error:e,route:null})}function Y(t,e){if(Fe(t,B))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(B.length)||"/")}function je({url:t,type:e,intent:r,delta:a}){var f,w;let s=!1;const o={from:{params:h.params,route:{id:((f=h.route)==null?void 0:f.id)??null},url:h.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((w=r==null?void 0:r.route)==null?void 0:w.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const m={...o,cancel:()=>{s=!0}};return I||y.before_navigate.forEach(g=>g(m)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:m,nav_token:f,accepted:w,blocked:g}){const R=Y(t,!1),k=je({url:t,type:o,delta:m,intent:R});if(!k){g();return}const O=N;w(),I=!0,A&&M.navigating.set(k),await Ie(R,t,a,O,{scroll:e,keepfocus:r,details:s},f,()=>{I=!1,y.after_navigate.forEach(S=>S(k)),M.navigating.set(null)})}async function Ne(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await W(t)}function W(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const m=o.target;clearTimeout(t),t=setTimeout(()=>{a(m,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 m of o)m.isIntersecting&&(ae(oe(new URL(m.target.href))),r.unobserve(m.target))},{threshold:0});function a(o,m){const f=qe(o,d);if(!f)return;const{url:w,external:g}=ge(f,B);if(g)return;const R=ce(f);if(!R.reload)if(m<=R.preload_data){const k=Y(w,!1);k&&Le(k)}else m<=R.preload_code&&ae(oe(w))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:m,external:f}=ge(o,B);if(f)continue;const w=ce(o);w.reload||(w.preload_code===Me.viewport&&r.observe(o),w.preload_code===Me.eager&&ae(oe(m)))}}y.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=>{De(()=>(y.after_navigate.push(t),()=>{const e=y.after_navigate.indexOf(t);y.after_navigate.splice(e,1)}))},before_navigate:t=>{De(()=>(y.before_navigate.push(t),()=>{const e=y.before_navigate.indexOf(t);y.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(P||!A)&&(v=!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 Ee()},invalidateAll:()=>(H=!0,Ee()),preload_data:async t=>{const e=new URL(t,Ce(document)),r=Y(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Le(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=h;if(!a)return;const s=await Ue(h.branch.length,r,a.errors);if(s){const o=await J({url:e,params:h.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});h=o.state,F.$set(o.props),se().then(_e)}}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"&&_e())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Re(),!I){const s={from:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:h.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};y.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Re()}),(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=qe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,B);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const m=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||m.reload){je({url:a,type:"link"})?I=!0:e.preventDefault();return}const[w,g]=a.href.split("#");if(g!==void 0&&w===location.href.split("#")[0]){G=!0,we(N),h.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:m.noscroll?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState: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(Fe(o,B))return;const m=e.target,{noscroll:f,reload:w}=ce(m);if(w)return;e.preventDefault(),e.stopPropagation();const g=new FormData(m),R=a==null?void 0:a.getAttribute("name");R&&g.append(R,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(g).toString(),ie({url:o,scroll:f?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},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=z[e.state[q]];if(h.url.href.split("#")[0]===location.href.split("#")[0]){z[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||Se(N)}}),addEventListener("hashchange",()=>{G&&(G=!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:m})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=Y(f,!1)||{});let w;try{const g=r.map(async(R,k)=>{const O=o[k];return O!=null&&O.uses&&(O.uses=Je(O.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(g){if(g instanceof He){await W(new URL(g.location,location.href));return}w=await re({status:g instanceof ee?g.status:500,error:await X(g,{url:f,params:a,route:s}),url:f,route:s})}Ae(w)}}}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 h;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:A=>new Promise((v,P)=>{d.set(A,{fulfil:v,reject:P})})})}let y="";for(;;){const{done:$,value:A}=await L.read();if($&&!y)break;for(y+=!A&&y?` `:l.decode(A);;){const v=y.indexOf(` `);if(v===-1)break;const P=JSON.parse(y.slice(0,v));if(y=y.slice(v+1),P.type==="redirect")return u(P);if(P.type==="data")(h=P.nodes)==null||h.forEach(I=>{(I==null?void 0:I.type)==="data"&&(I.uses=Je(I.uses),I.data=_(I.data))}),u(P);else if(P.type==="chunk"){const{id:I,data:G,error:H}=P,F=d.get(I);d.delete(I),H?F.reject(_(H)):F.fulfil(_(G))}}}})}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 _e(){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/cloud/_app/version.json b/ui/assets/cloud/_app/version.json index cab75f1d8a..8d09f7b9f7 100644 --- a/ui/assets/cloud/_app/version.json +++ b/ui/assets/cloud/_app/version.json @@ -1 +1 @@ -{"version":"1680058342322"} \ No newline at end of file +{"version":"1680062610093"} \ No newline at end of file diff --git a/ui/assets/cloud/index.html b/ui/assets/cloud/index.html index d49838ed1c..87fda672e9 100644 --- a/ui/assets/cloud/index.html +++ b/ui/assets/cloud/index.html @@ -4,30 +4,30 @@ - + - + - + - +
diff --git a/ui/assets/local/_app/immutable/chunks/1.8673d393.js b/ui/assets/local/_app/immutable/chunks/1.8673d393.js deleted file mode 100644 index 456d62f8f9..0000000000 --- a/ui/assets/local/_app/immutable/chunks/1.8673d393.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/_error.svelte.6a9edf30.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/1.b43a1a1d.js b/ui/assets/local/_app/immutable/chunks/1.b43a1a1d.js new file mode 100644 index 0000000000..4a1d260832 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/1.b43a1a1d.js @@ -0,0 +1 @@ +import{default as t}from"../entry/_error.svelte.c4809115.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/10.3896fcb4.js b/ui/assets/local/_app/immutable/chunks/10.673daa5d.js similarity index 57% rename from ui/assets/cloud/_app/immutable/chunks/10.3896fcb4.js rename to ui/assets/local/_app/immutable/chunks/10.673daa5d.js index b63b552d3d..b0fd8aeb6d 100644 --- a/ui/assets/cloud/_app/immutable/chunks/10.3896fcb4.js +++ b/ui/assets/local/_app/immutable/chunks/10.673daa5d.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.99157774.js";export{t as component}; +import{default as t}from"../entry/(app)-data-converter-_port_-page.svelte.e1c96b62.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/11.05f481fc.js b/ui/assets/local/_app/immutable/chunks/11.05f481fc.js new file mode 100644 index 0000000000..aae950bac4 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/11.05f481fc.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.63185530.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/11.d5456cd4.js b/ui/assets/local/_app/immutable/chunks/11.d5456cd4.js deleted file mode 100644 index 2248a53b12..0000000000 --- a/ui/assets/local/_app/immutable/chunks/11.d5456cd4.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.8a42b2d6.js";export{e as universal}; diff --git a/ui/assets/cloud/_app/immutable/chunks/12.fe6aafc3.js b/ui/assets/local/_app/immutable/chunks/12.65b0f656.js similarity index 62% rename from ui/assets/cloud/_app/immutable/chunks/12.fe6aafc3.js rename to ui/assets/local/_app/immutable/chunks/12.65b0f656.js index 7594451b3d..994614f54c 100644 --- a/ui/assets/cloud/_app/immutable/chunks/12.fe6aafc3.js +++ b/ui/assets/local/_app/immutable/chunks/12.65b0f656.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-page.svelte.cb0573c1.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-page.svelte.2f02ee77.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/13.9a50ae36.js b/ui/assets/local/_app/immutable/chunks/13.9a50ae36.js new file mode 100644 index 0000000000..cb614c53ce --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/13.9a50ae36.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.dc44871d.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/13.e0286c5d.js b/ui/assets/local/_app/immutable/chunks/13.e0286c5d.js deleted file mode 100644 index 2fe3ae7cf3..0000000000 --- a/ui/assets/local/_app/immutable/chunks/13.e0286c5d.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.406e9187.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/14.99e591dd.js b/ui/assets/local/_app/immutable/chunks/14.09424401.js similarity index 56% rename from ui/assets/local/_app/immutable/chunks/14.99e591dd.js rename to ui/assets/local/_app/immutable/chunks/14.09424401.js index ae02e69042..b1e84ce2a8 100644 --- a/ui/assets/local/_app/immutable/chunks/14.99e591dd.js +++ b/ui/assets/local/_app/immutable/chunks/14.09424401.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.36c10683.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.3d7cbc03.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/15.14f298d7.js b/ui/assets/local/_app/immutable/chunks/15.88990bdc.js similarity index 55% rename from ui/assets/cloud/_app/immutable/chunks/15.14f298d7.js rename to ui/assets/local/_app/immutable/chunks/15.88990bdc.js index 25f113c5b1..bad46baee7 100644 --- a/ui/assets/cloud/_app/immutable/chunks/15.14f298d7.js +++ b/ui/assets/local/_app/immutable/chunks/15.88990bdc.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.9eff47c5.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.cd526e60.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/17.501cabc3.js b/ui/assets/local/_app/immutable/chunks/17.501cabc3.js new file mode 100644 index 0000000000..1c4e0f827c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/17.501cabc3.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-page.svelte.46fbe155.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/17.b9aa5b10.js b/ui/assets/local/_app/immutable/chunks/17.b9aa5b10.js deleted file mode 100644 index 6d14dfc1d1..0000000000 --- a/ui/assets/local/_app/immutable/chunks/17.b9aa5b10.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-page.svelte.b84c641d.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/18.3389fe64.js b/ui/assets/local/_app/immutable/chunks/18.3389fe64.js deleted file mode 100644 index 96e3ed827f..0000000000 --- a/ui/assets/local/_app/immutable/chunks/18.3389fe64.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.0300ab5e.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.83cbd1cd.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/18.64c27fe4.js b/ui/assets/local/_app/immutable/chunks/18.64c27fe4.js new file mode 100644 index 0000000000..ce9dfe229c --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/18.64c27fe4.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.2d2d6704.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-page.svelte.92ac8e22.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/19.a946af7f.js b/ui/assets/local/_app/immutable/chunks/19.a946af7f.js deleted file mode 100644 index c56d358503..0000000000 --- a/ui/assets/local/_app/immutable/chunks/19.a946af7f.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.a0c99197.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.31e4b322.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/19.beae6e9e.js b/ui/assets/local/_app/immutable/chunks/19.beae6e9e.js new file mode 100644 index 0000000000..3bc61900bf --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/19.beae6e9e.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.6a136dce.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-archival-page.svelte.8f3cd89b.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/2.33df14f4.js b/ui/assets/local/_app/immutable/chunks/2.33df14f4.js new file mode 100644 index 0000000000..58a7842b09 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/2.33df14f4.js @@ -0,0 +1 @@ +import{_ as r}from"./_layout.172b4801.js";import{default as t}from"../entry/(app)-layout.svelte.82055955.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/2.e7c209e1.js b/ui/assets/local/_app/immutable/chunks/2.e7c209e1.js deleted file mode 100644 index 100bca2ea8..0000000000 --- a/ui/assets/local/_app/immutable/chunks/2.e7c209e1.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_layout.74bf892c.js";import{default as t}from"../entry/(app)-layout.svelte.d61dbdd2.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/20.4c195666.js b/ui/assets/local/_app/immutable/chunks/20.0d08c415.js similarity index 52% rename from ui/assets/local/_app/immutable/chunks/20.4c195666.js rename to ui/assets/local/_app/immutable/chunks/20.0d08c415.js index e7b5e5de55..b4685b07e4 100644 --- a/ui/assets/local/_app/immutable/chunks/20.4c195666.js +++ b/ui/assets/local/_app/immutable/chunks/20.0d08c415.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.6b885cf3.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-page.svelte.4b0c2447.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/21.70dc607c.js b/ui/assets/local/_app/immutable/chunks/21.ec96ce57.js similarity index 51% rename from ui/assets/cloud/_app/immutable/chunks/21.70dc607c.js rename to ui/assets/local/_app/immutable/chunks/21.ec96ce57.js index 8f82b8e416..217a5fc447 100644 --- a/ui/assets/cloud/_app/immutable/chunks/21.70dc607c.js +++ b/ui/assets/local/_app/immutable/chunks/21.ec96ce57.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e6a92bd3.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e5fae646.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/22.37472f78.js b/ui/assets/local/_app/immutable/chunks/22.53246032.js similarity index 53% rename from ui/assets/cloud/_app/immutable/chunks/22.37472f78.js rename to ui/assets/local/_app/immutable/chunks/22.53246032.js index 5f77049452..7157f3c310 100644 --- a/ui/assets/cloud/_app/immutable/chunks/22.37472f78.js +++ b/ui/assets/local/_app/immutable/chunks/22.53246032.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.6f3ad57a.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.9092ec53.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/23.5ee43c0a.js b/ui/assets/local/_app/immutable/chunks/23.3a059c1b.js similarity index 50% rename from ui/assets/cloud/_app/immutable/chunks/23.5ee43c0a.js rename to ui/assets/local/_app/immutable/chunks/23.3a059c1b.js index 6b40964efb..dbd0674931 100644 --- a/ui/assets/cloud/_app/immutable/chunks/23.5ee43c0a.js +++ b/ui/assets/local/_app/immutable/chunks/23.3a059c1b.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.0943d09a.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.f0825f49.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/25.adf8b853.js b/ui/assets/local/_app/immutable/chunks/25.66a6de3f.js similarity index 51% rename from ui/assets/local/_app/immutable/chunks/25.adf8b853.js rename to ui/assets/local/_app/immutable/chunks/25.66a6de3f.js index 9352656080..3179f9ccd0 100644 --- a/ui/assets/local/_app/immutable/chunks/25.adf8b853.js +++ b/ui/assets/local/_app/immutable/chunks/25.66a6de3f.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.3aa72fcc.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.2d909e23.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/26.73cb6697.js b/ui/assets/local/_app/immutable/chunks/26.73cb6697.js deleted file mode 100644 index 7590bef492..0000000000 --- a/ui/assets/local/_app/immutable/chunks/26.73cb6697.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.72c89f48.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/26.a4207a87.js b/ui/assets/local/_app/immutable/chunks/26.a4207a87.js new file mode 100644 index 0000000000..2e5c1f123f --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/26.a4207a87.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.b14944b6.js";import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-page.svelte.5f628e67.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/27.435a19c1.js b/ui/assets/local/_app/immutable/chunks/27.435a19c1.js new file mode 100644 index 0000000000..537037c843 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/27.435a19c1.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.f4dc3afd.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/27.74c43b4b.js b/ui/assets/local/_app/immutable/chunks/27.74c43b4b.js deleted file mode 100644 index 490772c4ec..0000000000 --- a/ui/assets/local/_app/immutable/chunks/27.74c43b4b.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.88f44cfb.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/29.d7b906be.js b/ui/assets/local/_app/immutable/chunks/29.55cb2cc7.js similarity index 68% rename from ui/assets/local/_app/immutable/chunks/29.d7b906be.js rename to ui/assets/local/_app/immutable/chunks/29.55cb2cc7.js index 778791030e..a331e85c58 100644 --- a/ui/assets/local/_app/immutable/chunks/29.d7b906be.js +++ b/ui/assets/local/_app/immutable/chunks/29.55cb2cc7.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.7bd6da90.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.ad9f09bb.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/3.3fc12d93.js b/ui/assets/local/_app/immutable/chunks/3.3fc12d93.js deleted file mode 100644 index 949aaececf..0000000000 --- a/ui/assets/local/_app/immutable/chunks/3.3fc12d93.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-import-layout.svelte.decd5f70.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/3.dc0f47ed.js b/ui/assets/local/_app/immutable/chunks/3.dc0f47ed.js new file mode 100644 index 0000000000..7fd3651218 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/3.dc0f47ed.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-import-layout.svelte.48385c32.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/30.06497628.js b/ui/assets/local/_app/immutable/chunks/30.06497628.js new file mode 100644 index 0000000000..a8daa1c43b --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/30.06497628.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.b4504080.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/30.fe3e592c.js b/ui/assets/local/_app/immutable/chunks/30.fe3e592c.js deleted file mode 100644 index a3ea3ff390..0000000000 --- a/ui/assets/local/_app/immutable/chunks/30.fe3e592c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.5430b7c5.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/31.06497628.js b/ui/assets/local/_app/immutable/chunks/31.06497628.js new file mode 100644 index 0000000000..3fa9d04755 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/31.06497628.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.52adf0a4.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/31.fe3e592c.js b/ui/assets/local/_app/immutable/chunks/31.fe3e592c.js deleted file mode 100644 index ffd2d16912..0000000000 --- a/ui/assets/local/_app/immutable/chunks/31.fe3e592c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.f3d1bbfc.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/32.06497628.js b/ui/assets/local/_app/immutable/chunks/32.06497628.js new file mode 100644 index 0000000000..1132b54165 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/32.06497628.js @@ -0,0 +1 @@ +import{_ as e}from"./_page.cd220957.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/32.fe3e592c.js b/ui/assets/local/_app/immutable/chunks/32.fe3e592c.js deleted file mode 100644 index 978350c543..0000000000 --- a/ui/assets/local/_app/immutable/chunks/32.fe3e592c.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as e}from"./_page.74c63f76.js";export{e as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/33.00c77b32.js b/ui/assets/local/_app/immutable/chunks/33.00c77b32.js new file mode 100644 index 0000000000..59408c9ecd --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/33.00c77b32.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.9989f0e0.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/33.c091dd39.js b/ui/assets/local/_app/immutable/chunks/33.c091dd39.js deleted file mode 100644 index aa8fe4f2da..0000000000 --- a/ui/assets/local/_app/immutable/chunks/33.c091dd39.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.3713d2b8.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/34.89f92ef1.js b/ui/assets/local/_app/immutable/chunks/34.b098431d.js similarity index 55% rename from ui/assets/local/_app/immutable/chunks/34.89f92ef1.js rename to ui/assets/local/_app/immutable/chunks/34.b098431d.js index 537fb3270d..1566d4ef8a 100644 --- a/ui/assets/local/_app/immutable/chunks/34.89f92ef1.js +++ b/ui/assets/local/_app/immutable/chunks/34.b098431d.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.01f8de7b.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.cac9274d.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/35.f35c83e6.js b/ui/assets/local/_app/immutable/chunks/35.e87a9d37.js similarity index 57% rename from ui/assets/cloud/_app/immutable/chunks/35.f35c83e6.js rename to ui/assets/local/_app/immutable/chunks/35.e87a9d37.js index 4afb2ab690..2780eeb05c 100644 --- a/ui/assets/cloud/_app/immutable/chunks/35.f35c83e6.js +++ b/ui/assets/local/_app/immutable/chunks/35.e87a9d37.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a37c5bb6.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.f1d13c9d.js";export{t as component}; diff --git a/ui/assets/cloud/_app/immutable/chunks/36.1131689f.js b/ui/assets/local/_app/immutable/chunks/36.2affd622.js similarity index 56% rename from ui/assets/cloud/_app/immutable/chunks/36.1131689f.js rename to ui/assets/local/_app/immutable/chunks/36.2affd622.js index 878fb2f859..bec2e7a979 100644 --- a/ui/assets/cloud/_app/immutable/chunks/36.1131689f.js +++ b/ui/assets/local/_app/immutable/chunks/36.2affd622.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.12a6364f.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.975f4e79.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/37.c5c2e341.js b/ui/assets/local/_app/immutable/chunks/37.ff403f4b.js similarity index 60% rename from ui/assets/local/_app/immutable/chunks/37.c5c2e341.js rename to ui/assets/local/_app/immutable/chunks/37.ff403f4b.js index 2c6490ac80..6f0d7ba123 100644 --- a/ui/assets/local/_app/immutable/chunks/37.c5c2e341.js +++ b/ui/assets/local/_app/immutable/chunks/37.ff403f4b.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-select-namespace-page.svelte.9ae9cf92.js";export{t as component}; +import{default as t}from"../entry/(app)-select-namespace-page.svelte.c0fd0080.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/38.7bc6e567.js b/ui/assets/local/_app/immutable/chunks/38.7bc6e567.js new file mode 100644 index 0000000000..db6e608208 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/38.7bc6e567.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-login-page.svelte.11520b85.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/38.d386fcfd.js b/ui/assets/local/_app/immutable/chunks/38.d386fcfd.js deleted file mode 100644 index f47609c644..0000000000 --- a/ui/assets/local/_app/immutable/chunks/38.d386fcfd.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-login-page.svelte.ca96e93b.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/39.a5bad190.js b/ui/assets/local/_app/immutable/chunks/39.a5bad190.js new file mode 100644 index 0000000000..53fda0088d --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/39.a5bad190.js @@ -0,0 +1 @@ +import{default as t}from"../entry/(login)-signin-page.svelte.11520b85.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/39.c8168e71.js b/ui/assets/local/_app/immutable/chunks/39.c8168e71.js deleted file mode 100644 index 32a172fb99..0000000000 --- a/ui/assets/local/_app/immutable/chunks/39.c8168e71.js +++ /dev/null @@ -1 +0,0 @@ -import{default as t}from"../entry/(login)-signin-page.svelte.ca96e93b.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/4.30fcd01f.js b/ui/assets/local/_app/immutable/chunks/4.98b5acf0.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/4.30fcd01f.js rename to ui/assets/local/_app/immutable/chunks/4.98b5acf0.js index d06d7fc577..002690f18c 100644 --- a/ui/assets/local/_app/immutable/chunks/4.30fcd01f.js +++ b/ui/assets/local/_app/immutable/chunks/4.98b5acf0.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4f0ef61e.js";export{t as component}; +import{default as t}from"../entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.8f3cea98.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/7.1a49f87f.js b/ui/assets/local/_app/immutable/chunks/7.78563745.js similarity index 54% rename from ui/assets/local/_app/immutable/chunks/7.1a49f87f.js rename to ui/assets/local/_app/immutable/chunks/7.78563745.js index 517caa9490..dc69e1c0f1 100644 --- a/ui/assets/local/_app/immutable/chunks/7.1a49f87f.js +++ b/ui/assets/local/_app/immutable/chunks/7.78563745.js @@ -1 +1 @@ -import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.140848ac.js";export{t as component}; +import{default as t}from"../entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.bb0bded7.js";export{t as component}; diff --git a/ui/assets/local/_app/immutable/chunks/8.653af22e.js b/ui/assets/local/_app/immutable/chunks/8.04182f08.js similarity index 57% rename from ui/assets/local/_app/immutable/chunks/8.653af22e.js rename to ui/assets/local/_app/immutable/chunks/8.04182f08.js index ee763a5658..538c257d88 100644 --- a/ui/assets/local/_app/immutable/chunks/8.653af22e.js +++ b/ui/assets/local/_app/immutable/chunks/8.04182f08.js @@ -1 +1 @@ -import{_ as r}from"./_layout.4efc6a26.js";import{default as t}from"../entry/(login)-layout.svelte.1b6cce0a.js";export{t as component,r as universal}; +import{_ as r}from"./_layout.fd539a93.js";import{default as t}from"../entry/(login)-layout.svelte.1b6cce0a.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/9.968e9ce2.js b/ui/assets/local/_app/immutable/chunks/9.968e9ce2.js new file mode 100644 index 0000000000..2235311937 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/9.968e9ce2.js @@ -0,0 +1 @@ +import{_ as r}from"./_page.a4d16f8f.js";import{default as t}from"../entry/(app)-page.svelte.b42fe80a.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/9.c22a1e02.js b/ui/assets/local/_app/immutable/chunks/9.c22a1e02.js deleted file mode 100644 index bf8f63d618..0000000000 --- a/ui/assets/local/_app/immutable/chunks/9.c22a1e02.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as r}from"./_page.2b7718b3.js";import{default as t}from"../entry/(app)-page.svelte.891da897.js";export{t as component,r as universal}; diff --git a/ui/assets/local/_app/immutable/chunks/_layout.74bf892c.js b/ui/assets/local/_app/immutable/chunks/_layout.172b4801.js similarity index 96% rename from ui/assets/local/_app/immutable/chunks/_layout.74bf892c.js rename to ui/assets/local/_app/immutable/chunks/_layout.172b4801.js index 3644b35717..29cb51fb30 100644 --- a/ui/assets/local/_app/immutable/chunks/_layout.74bf892c.js +++ b/ui/assets/local/_app/immutable/chunks/_layout.172b4801.js @@ -1 +1 @@ -import{r as ne}from"./index.b1f5b21f.js";/* empty css */import{f as re}from"./settings-service.5ac9963d.js";import{s as ae,g as oe}from"./auth-user.3a7bc4db.js";import{c as ie}from"./cluster.c8f1465c.js";import{r as K,a as Q}from"./route-for-api.6ac9324b.js";import{f as le}from"./namespaces-service.971cb4c8.js";import{s as se}from"./search-attributes.b68ffd52.js";import{f as X,e as ce}from"./route-for.6dec3e74.js";import{p as ue}from"./parse-with-big-int.0036a80a.js";import{a as ge}from"./atob.da26e476.js";var fe=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},_=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,f=0,g={},o={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof d?new d(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(t,e){var a=o.util.clone(o.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){var r=(n=n||o.languages)[t],l={};for(var i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(i)||(l[i]=r[i])}var m=n[t];return n[t]=l,o.languages.DFS(o.languages,function(b,F){F===m&&b!=t&&(this[b]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=o.util.objId;for(var i in e)if(e.hasOwnProperty(i)){a.call(e,i,e[i],n||i);var s=e[i],m=o.util.type(s);m!=="Object"||r[l(s)]?m!=="Array"||r[l(s)]||(r[l(s)]=!0,t(s,a,i,r)):(r[l(s)]=!0,t(s,a,null,r))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),o.hooks.run("before-all-elements-highlight",n);for(var r,l=0;r=n.elements[l++];)o.highlightElement(r,e===!0,n.callback)},highlightElement:function(t,e,a){var n=o.util.getLanguage(t),r=o.languages[n];t.className=t.className.replace(c,"").replace(/\s+/g," ")+" language-"+n;var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&(l.className=l.className.replace(c,"").replace(/\s+/g," ")+" language-"+n);var i={element:t,language:n,grammar:r,code:t.textContent};function s(b){i.highlightedCode=b,o.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,o.hooks.run("after-highlight",i),o.hooks.run("complete",i),a&&a.call(i.element)}if(o.hooks.run("before-sanity-check",i),(l=i.element.parentElement)&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!i.code)return o.hooks.run("complete",i),void(a&&a.call(i.element));if(o.hooks.run("before-highlight",i),i.grammar)if(e&&u.Worker){var m=new Worker(o.filename);m.onmessage=function(b){s(b.data)},m.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(o.highlight(i.code,i.grammar,i.language));else s(o.util.encode(i.code))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};return o.hooks.run("before-tokenize",n),n.tokens=o.tokenize(n.code,n.grammar),o.hooks.run("after-tokenize",n),d.stringify(o.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new W;return L(r,r.head,t),function l(i,s,m,b,F,v){for(var A in m)if(m.hasOwnProperty(A)&&m[A]){var S=m[A];S=Array.isArray(S)?S:[S];for(var E=0;E=v.reach);k+=p.value.length,p=p.next){var C=p.value;if(s.length>i.length)return;if(!(C instanceof d)){var w,j=1;if(V){if(!(w=h(G,k,i,$)))break;var P=w.index,ee=w.index+w[0].length,x=k;for(x+=p.value.length;x<=P;)p=p.next,x+=p.value.length;if(x-=p.value.length,k=x,p.value instanceof d)continue;for(var N=p;N!==s.tail&&(xv.reach&&(v.reach=U);var I=p.prev;q&&(I=L(s,I,q),k+=q.length),Y(s,I,j);var te=new d(A,H?o.tokenize(T,H):T,Z,T);if(p=L(s,I,te),J&&L(s,p,J),1v.reach&&(v.reach=B.reach)}}}}}}(t,r,e,r.head,0),function(l){for(var i=[],s=l.head.next;s!==l.tail;)i.push(s.value),s=s.next;return i}(r)},hooks:{all:{},add:function(t,e){var a=o.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=o.hooks.all[t];if(a&&a.length)for(var n,r=0;n=a[r++];)n(e)}},Token:d};function d(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=0|(n||"").length}function h(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function W(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function L(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function Y(t,e,a){for(var n=e.next,r=0;r"+r.content+""},!u.document)return u.addEventListener&&(o.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(o.highlight(n,o.languages[a],a)),r&&u.close()},!1)),o;var O=o.util.currentScript();function z(){o.manual||o.highlightAll()}if(O&&(o.filename=O.src,O.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var D=document.readyState;D==="loading"||D==="interactive"&&O&&O.defer?document.addEventListener("DOMContentLoaded",z):window.requestAnimationFrame?window.requestAnimationFrame(z):window.setTimeout(z,16)}return o}(fe);typeof module<"u"&&module.exports&&(module.exports=_),typeof global<"u"&&(global.Prism=_);_.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},_.languages.webmanifest=_.languages.json;const he=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("cluster");return await Q(f,{request:c}).then(g=>(ie.set(g),g))},de=async(u=fetch)=>{try{const c=await u("https://api.github.com/repos/temporalio/ui-server/releases"),f=await c.json();if(!c.ok)return;let g;if(f.length>0){const{tag_name:o}=f[0];g=o.replace("v","")}return g}catch{return""}},pe=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("search-attributes");return await Q(f,{request:c}).then(g=>(g!=null&&g.keys&&se.set(g.keys),g))},me=(u,c)=>!u.auth.enabled||Boolean(c==null?void 0:c.accessToken),M="user",ve=(u=X)=>{if(!u)return{};const c=document.cookie.split(";");let f=0,g=c.find(d=>d.includes(M+f)),o="";for(;g;){const[d,h]=g.split("=");o+=h,f++,g=c.find(W=>W.includes(M+f))}if(o)try{const d=ge(o),h=ue(d);return{accessToken:h==null?void 0:h.AccessToken,idToken:h==null?void 0:h.IDToken,name:h==null?void 0:h.Name,picture:h==null?void 0:h.Picture,email:h==null?void 0:h.Email}}catch(d){console.error(d)}return{}},ye=(u=X)=>{if(!u)return;const c=document.cookie.split(";");let f=0,g=c.find(o=>o.includes(M+f));for(;g;){const[o]=g.split("=");document.cookie=`${o}=; max-age=-1; path=/`,f++,g=c.find(d=>d.includes(M+f))}},ke=async function({fetch:u}){const c=await re(u),f=ve();f!=null&&f.accessToken&&(ae(f),ye());const g=oe();if(!me(c,g))throw ne(302,ce());le(c,u),pe(c,u);const o=await he(c,u),d={current:c.version,recommended:c.notifyOnNewVersion?await de(u):void 0};return{user:g,uiVersionInfo:d,settings:c,cluster:o}},je=Object.freeze(Object.defineProperty({__proto__:null,load:ke},Symbol.toStringTag,{value:"Module"}));export{je as _,ke as l}; +import{r as ne}from"./index.b1f5b21f.js";/* empty css */import{f as re}from"./settings-service.98a38158.js";import{s as ae,g as oe}from"./auth-user.3a7bc4db.js";import{c as ie}from"./cluster.c8f1465c.js";import{r as K,a as Q}from"./route-for-api.1addc328.js";import{f as le}from"./namespaces-service.9dd6901c.js";import{s as se}from"./search-attributes.b68ffd52.js";import{f as X,e as ce}from"./route-for.e1b7889c.js";import{p as ue}from"./parse-with-big-int.0036a80a.js";import{a as ge}from"./atob.cd2a0f1e.js";var fe=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{},_=function(u){var c=/\blang(?:uage)?-([\w-]+)\b/i,f=0,g={},o={manual:u.Prism&&u.Prism.manual,disableWorkerMessageHandler:u.Prism&&u.Prism.disableWorkerMessageHandler,util:{encode:function t(e){return e instanceof d?new d(e.type,t(e.content),e.alias):Array.isArray(e)?e.map(t):e.replace(/&/g,"&").replace(/"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(n){var t=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(n.stack)||[])[1];if(t){var e=document.getElementsByTagName("script");for(var a in e)if(e[a].src==t)return e[a]}return null}},isActive:function(t,e,a){for(var n="no-"+e;t;){var r=t.classList;if(r.contains(e))return!0;if(r.contains(n))return!1;t=t.parentElement}return!!a}},languages:{plain:g,plaintext:g,text:g,txt:g,extend:function(t,e){var a=o.util.clone(o.languages[t]);for(var n in e)a[n]=e[n];return a},insertBefore:function(t,e,a,n){var r=(n=n||o.languages)[t],l={};for(var i in r)if(r.hasOwnProperty(i)){if(i==e)for(var s in a)a.hasOwnProperty(s)&&(l[s]=a[s]);a.hasOwnProperty(i)||(l[i]=r[i])}var m=n[t];return n[t]=l,o.languages.DFS(o.languages,function(b,F){F===m&&b!=t&&(this[b]=l)}),l},DFS:function t(e,a,n,r){r=r||{};var l=o.util.objId;for(var i in e)if(e.hasOwnProperty(i)){a.call(e,i,e[i],n||i);var s=e[i],m=o.util.type(s);m!=="Object"||r[l(s)]?m!=="Array"||r[l(s)]||(r[l(s)]=!0,t(s,a,i,r)):(r[l(s)]=!0,t(s,a,null,r))}}},plugins:{},highlightAll:function(t,e){o.highlightAllUnder(document,t,e)},highlightAllUnder:function(t,e,a){var n={callback:a,container:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",n),n.elements=Array.prototype.slice.apply(n.container.querySelectorAll(n.selector)),o.hooks.run("before-all-elements-highlight",n);for(var r,l=0;r=n.elements[l++];)o.highlightElement(r,e===!0,n.callback)},highlightElement:function(t,e,a){var n=o.util.getLanguage(t),r=o.languages[n];t.className=t.className.replace(c,"").replace(/\s+/g," ")+" language-"+n;var l=t.parentElement;l&&l.nodeName.toLowerCase()==="pre"&&(l.className=l.className.replace(c,"").replace(/\s+/g," ")+" language-"+n);var i={element:t,language:n,grammar:r,code:t.textContent};function s(b){i.highlightedCode=b,o.hooks.run("before-insert",i),i.element.innerHTML=i.highlightedCode,o.hooks.run("after-highlight",i),o.hooks.run("complete",i),a&&a.call(i.element)}if(o.hooks.run("before-sanity-check",i),(l=i.element.parentElement)&&l.nodeName.toLowerCase()==="pre"&&!l.hasAttribute("tabindex")&&l.setAttribute("tabindex","0"),!i.code)return o.hooks.run("complete",i),void(a&&a.call(i.element));if(o.hooks.run("before-highlight",i),i.grammar)if(e&&u.Worker){var m=new Worker(o.filename);m.onmessage=function(b){s(b.data)},m.postMessage(JSON.stringify({language:i.language,code:i.code,immediateClose:!0}))}else s(o.highlight(i.code,i.grammar,i.language));else s(o.util.encode(i.code))},highlight:function(t,e,a){var n={code:t,grammar:e,language:a};return o.hooks.run("before-tokenize",n),n.tokens=o.tokenize(n.code,n.grammar),o.hooks.run("after-tokenize",n),d.stringify(o.util.encode(n.tokens),n.language)},tokenize:function(t,e){var a=e.rest;if(a){for(var n in a)e[n]=a[n];delete e.rest}var r=new W;return L(r,r.head,t),function l(i,s,m,b,F,v){for(var A in m)if(m.hasOwnProperty(A)&&m[A]){var S=m[A];S=Array.isArray(S)?S:[S];for(var E=0;E=v.reach);k+=p.value.length,p=p.next){var C=p.value;if(s.length>i.length)return;if(!(C instanceof d)){var w,j=1;if(V){if(!(w=h(G,k,i,$)))break;var P=w.index,ee=w.index+w[0].length,x=k;for(x+=p.value.length;x<=P;)p=p.next,x+=p.value.length;if(x-=p.value.length,k=x,p.value instanceof d)continue;for(var N=p;N!==s.tail&&(xv.reach&&(v.reach=U);var I=p.prev;q&&(I=L(s,I,q),k+=q.length),Y(s,I,j);var te=new d(A,H?o.tokenize(T,H):T,Z,T);if(p=L(s,I,te),J&&L(s,p,J),1v.reach&&(v.reach=B.reach)}}}}}}(t,r,e,r.head,0),function(l){for(var i=[],s=l.head.next;s!==l.tail;)i.push(s.value),s=s.next;return i}(r)},hooks:{all:{},add:function(t,e){var a=o.hooks.all;a[t]=a[t]||[],a[t].push(e)},run:function(t,e){var a=o.hooks.all[t];if(a&&a.length)for(var n,r=0;n=a[r++];)n(e)}},Token:d};function d(t,e,a,n){this.type=t,this.content=e,this.alias=a,this.length=0|(n||"").length}function h(t,e,a,n){t.lastIndex=e;var r=t.exec(a);if(r&&n&&r[1]){var l=r[1].length;r.index+=l,r[0]=r[0].slice(l)}return r}function W(){var t={value:null,prev:null,next:null},e={value:null,prev:t,next:null};t.next=e,this.head=t,this.tail=e,this.length=0}function L(t,e,a){var n=e.next,r={value:a,prev:e,next:n};return e.next=r,n.prev=r,t.length++,r}function Y(t,e,a){for(var n=e.next,r=0;r"+r.content+""},!u.document)return u.addEventListener&&(o.disableWorkerMessageHandler||u.addEventListener("message",function(t){var e=JSON.parse(t.data),a=e.language,n=e.code,r=e.immediateClose;u.postMessage(o.highlight(n,o.languages[a],a)),r&&u.close()},!1)),o;var O=o.util.currentScript();function z(){o.manual||o.highlightAll()}if(O&&(o.filename=O.src,O.hasAttribute("data-manual")&&(o.manual=!0)),!o.manual){var D=document.readyState;D==="loading"||D==="interactive"&&O&&O.defer?document.addEventListener("DOMContentLoaded",z):window.requestAnimationFrame?window.requestAnimationFrame(z):window.setTimeout(z,16)}return o}(fe);typeof module<"u"&&module.exports&&(module.exports=_),typeof global<"u"&&(global.Prism=_);_.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:true|false)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},_.languages.webmanifest=_.languages.json;const he=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("cluster");return await Q(f,{request:c}).then(g=>(ie.set(g),g))},de=async(u=fetch)=>{try{const c=await u("https://api.github.com/repos/temporalio/ui-server/releases"),f=await c.json();if(!c.ok)return;let g;if(f.length>0){const{tag_name:o}=f[0];g=o.replace("v","")}return g}catch{return""}},pe=async(u,c=fetch)=>{if(u.runtimeEnvironment.isCloud)return;const f=K("search-attributes");return await Q(f,{request:c}).then(g=>(g!=null&&g.keys&&se.set(g.keys),g))},me=(u,c)=>!u.auth.enabled||Boolean(c==null?void 0:c.accessToken),M="user",ve=(u=X)=>{if(!u)return{};const c=document.cookie.split(";");let f=0,g=c.find(d=>d.includes(M+f)),o="";for(;g;){const[d,h]=g.split("=");o+=h,f++,g=c.find(W=>W.includes(M+f))}if(o)try{const d=ge(o),h=ue(d);return{accessToken:h==null?void 0:h.AccessToken,idToken:h==null?void 0:h.IDToken,name:h==null?void 0:h.Name,picture:h==null?void 0:h.Picture,email:h==null?void 0:h.Email}}catch(d){console.error(d)}return{}},ye=(u=X)=>{if(!u)return;const c=document.cookie.split(";");let f=0,g=c.find(o=>o.includes(M+f));for(;g;){const[o]=g.split("=");document.cookie=`${o}=; max-age=-1; path=/`,f++,g=c.find(d=>d.includes(M+f))}},ke=async function({fetch:u}){const c=await re(u),f=ve();f!=null&&f.accessToken&&(ae(f),ye());const g=oe();if(!me(c,g))throw ne(302,ce());le(c,u),pe(c,u);const o=await he(c,u),d={current:c.version,recommended:c.notifyOnNewVersion?await de(u):void 0};return{user:g,uiVersionInfo:d,settings:c,cluster:o}},je=Object.freeze(Object.defineProperty({__proto__:null,load:ke},Symbol.toStringTag,{value:"Module"}));export{je as _,ke as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_layout.4efc6a26.js b/ui/assets/local/_app/immutable/chunks/_layout.fd539a93.js similarity index 81% rename from ui/assets/local/_app/immutable/chunks/_layout.4efc6a26.js rename to ui/assets/local/_app/immutable/chunks/_layout.fd539a93.js index d334242382..19b849529f 100644 --- a/ui/assets/local/_app/immutable/chunks/_layout.4efc6a26.js +++ b/ui/assets/local/_app/immutable/chunks/_layout.fd539a93.js @@ -1 +1 @@ -/* empty css */import{e}from"./index.b1f5b21f.js";import{f as r}from"./settings-service.5ac9963d.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.98a38158.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/_page.0300ab5e.js b/ui/assets/local/_app/immutable/chunks/_page.2d2d6704.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/_page.0300ab5e.js rename to ui/assets/local/_app/immutable/chunks/_page.2d2d6704.js index 75e56b8b1e..6adc8f6e04 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.0300ab5e.js +++ b/ui/assets/local/_app/immutable/chunks/_page.2d2d6704.js @@ -1 +1 @@ -import{a as l}from"./namespaces-service.971cb4c8.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.9dd6901c.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.5430b7c5.js b/ui/assets/local/_app/immutable/chunks/_page.52adf0a4.js similarity index 80% rename from ui/assets/local/_app/immutable/chunks/_page.5430b7c5.js rename to ui/assets/local/_app/immutable/chunks/_page.52adf0a4.js index 9e37defa7e..2cf947acaa 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.5430b7c5.js +++ b/ui/assets/local/_app/immutable/chunks/_page.52adf0a4.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.6dec3e74.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.e1b7889c.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.8a42b2d6.js b/ui/assets/local/_app/immutable/chunks/_page.63185530.js similarity index 74% rename from ui/assets/local/_app/immutable/chunks/_page.8a42b2d6.js rename to ui/assets/local/_app/immutable/chunks/_page.63185530.js index 99e2679b9a..5dc4116b6e 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.8a42b2d6.js +++ b/ui/assets/local/_app/immutable/chunks/_page.63185530.js @@ -1 +1 @@ -import{r}from"./index.b1f5b21f.js";import{d as t}from"./route-for.6dec3e74.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{d as t}from"./route-for.e1b7889c.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.a0c99197.js b/ui/assets/local/_app/immutable/chunks/_page.6a136dce.js similarity index 84% rename from ui/assets/local/_app/immutable/chunks/_page.a0c99197.js rename to ui/assets/local/_app/immutable/chunks/_page.6a136dce.js index 4970ecf580..eb2ea4d3a3 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.a0c99197.js +++ b/ui/assets/local/_app/immutable/chunks/_page.6a136dce.js @@ -1 +1 @@ -import{e as h}from"./workflow-service.11be6188.js";import{a as m}from"./namespaces-service.971cb4c8.js";const b=async function({params:o,url:l}){var r,s;const{searchParams:e}=l;e.has("time-range")||e.set("time-range","1 day");const c=e.get("workflow-id"),f=e.get("workflow-type"),w=e.get("time-range"),g=e.get("status"),d={workflowId:c,workflowType:f,closeTime:w,executionStatus:g},t=await m(o.namespace),a=((r=t==null?void 0:t.config)==null?void 0:r.historyArchivalState)==="Enabled",i=((s=t==null?void 0:t.config)==null?void 0:s.visibilityArchivalState)==="Enabled",n=a&&i?await h(o.namespace,d,fetch):null;return{workflows:n?n.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:i}},p=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));export{p as _,b as l}; +import{e as h}from"./workflow-service.a6d60dde.js";import{a as m}from"./namespaces-service.9dd6901c.js";const b=async function({params:o,url:l}){var r,s;const{searchParams:e}=l;e.has("time-range")||e.set("time-range","1 day");const c=e.get("workflow-id"),f=e.get("workflow-type"),w=e.get("time-range"),g=e.get("status"),d={workflowId:c,workflowType:f,closeTime:w,executionStatus:g},t=await m(o.namespace),a=((r=t==null?void 0:t.config)==null?void 0:r.historyArchivalState)==="Enabled",i=((s=t==null?void 0:t.config)==null?void 0:s.visibilityArchivalState)==="Enabled",n=a&&i?await h(o.namespace,d,fetch):null;return{workflows:n?n.workflows:[],namespace:t,archivalEnabled:a,visibilityArchivalEnabled:i}},p=Object.freeze(Object.defineProperty({__proto__:null,load:b},Symbol.toStringTag,{value:"Module"}));export{p as _,b as l}; diff --git a/ui/assets/local/_app/immutable/chunks/_page.74c63f76.js b/ui/assets/local/_app/immutable/chunks/_page.74c63f76.js deleted file mode 100644 index 9e37defa7e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/_page.74c63f76.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.6dec3e74.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.2b7718b3.js b/ui/assets/local/_app/immutable/chunks/_page.a4d16f8f.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/_page.2b7718b3.js rename to ui/assets/local/_app/immutable/chunks/_page.a4d16f8f.js index c9c1ac4524..e90c8d3c1e 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.2b7718b3.js +++ b/ui/assets/local/_app/immutable/chunks/_page.a4d16f8f.js @@ -1 +1 @@ -import{r as a}from"./index.b1f5b21f.js";import{r as n}from"./route-for.6dec3e74.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.e1b7889c.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.b4504080.js b/ui/assets/local/_app/immutable/chunks/_page.b4504080.js new file mode 100644 index 0000000000..2cf947acaa --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/_page.b4504080.js @@ -0,0 +1 @@ +import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.e1b7889c.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.cd220957.js b/ui/assets/local/_app/immutable/chunks/_page.cd220957.js new file mode 100644 index 0000000000..2cf947acaa --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/_page.cd220957.js @@ -0,0 +1 @@ +import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.e1b7889c.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.406e9187.js b/ui/assets/local/_app/immutable/chunks/_page.dc44871d.js similarity index 75% rename from ui/assets/local/_app/immutable/chunks/_page.406e9187.js rename to ui/assets/local/_app/immutable/chunks/_page.dc44871d.js index e6ff309953..b9e8d065cb 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.406e9187.js +++ b/ui/assets/local/_app/immutable/chunks/_page.dc44871d.js @@ -1 +1 @@ -import{r as t}from"./index.b1f5b21f.js";import{d as e}from"./route-for.6dec3e74.js";const r=async function(){const o=e("feed");throw t(302,o)},c=Object.freeze(Object.defineProperty({__proto__:null,load:r},Symbol.toStringTag,{value:"Module"}));export{c as _,r as l}; +import{r as t}from"./index.b1f5b21f.js";import{d as e}from"./route-for.e1b7889c.js";const r=async function(){const o=e("feed");throw t(302,o)},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.f3d1bbfc.js b/ui/assets/local/_app/immutable/chunks/_page.f3d1bbfc.js deleted file mode 100644 index 9e37defa7e..0000000000 --- a/ui/assets/local/_app/immutable/chunks/_page.f3d1bbfc.js +++ /dev/null @@ -1 +0,0 @@ -import{r as a}from"./index.b1f5b21f.js";import{g as s}from"./route-for.6dec3e74.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.88f44cfb.js b/ui/assets/local/_app/immutable/chunks/_page.f4dc3afd.js similarity index 83% rename from ui/assets/local/_app/immutable/chunks/_page.88f44cfb.js rename to ui/assets/local/_app/immutable/chunks/_page.f4dc3afd.js index ea703d641b..306428cc3a 100644 --- a/ui/assets/local/_app/immutable/chunks/_page.88f44cfb.js +++ b/ui/assets/local/_app/immutable/chunks/_page.f4dc3afd.js @@ -1 +1 @@ -import{r as n,e as s}from"./index.b1f5b21f.js";import{h as c}from"./workflow-service.11be6188.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{h as c}from"./workflow-service.a6d60dde.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/atob.da26e476.js b/ui/assets/local/_app/immutable/chunks/atob.cd2a0f1e.js similarity index 72% rename from ui/assets/local/_app/immutable/chunks/atob.da26e476.js rename to ui/assets/local/_app/immutable/chunks/atob.cd2a0f1e.js index e38ec3b802..f178635ec9 100644 --- a/ui/assets/local/_app/immutable/chunks/atob.da26e476.js +++ b/ui/assets/local/_app/immutable/chunks/atob.cd2a0f1e.js @@ -1 +1 @@ -import{f as n}from"./route-for.6dec3e74.js";function t(o){return decodeURIComponent(window.atob(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,e=n)=>e?t(o):o;export{i as a}; +import{f as n}from"./route-for.e1b7889c.js";function t(o){return decodeURIComponent(window.atob(o).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join(""))}const i=(o,e=n)=>e?t(o):o;export{i as a}; diff --git a/ui/assets/local/_app/immutable/chunks/error.895ac9a4.js b/ui/assets/local/_app/immutable/chunks/error.c66eca4c.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/error.895ac9a4.js rename to ui/assets/local/_app/immutable/chunks/error.c66eca4c.js index 123936c0c7..af94fd83da 100644 --- a/ui/assets/local/_app/immutable/chunks/error.895ac9a4.js +++ b/ui/assets/local/_app/immutable/chunks/error.c66eca4c.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 D,p as x,q as T,x as $,k as p,d as N,D as U,u as _,f as P,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.a36c9cb0.js";import{b as Q}from"./navigation.724a9b89.js";import{p as R}from"./stores.48be4ca9.js";import{i as V}from"./is-network-error.cb50de70.js";import{L as M}from"./link.855bf830.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){P(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){P(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,b,c,i,f,L,m,j,v;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"),b=g(a[2]),c=y(),i=S("p"),D(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 D,p as x,q as T,x as $,k as p,d as N,D as U,u as _,f as P,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.a36c9cb0.js";import{b as Q}from"./navigation.0861544c.js";import{p as R}from"./stores.4d55fa19.js";import{i as V}from"./is-network-error.cb50de70.js";import{L as M}from"./link.855bf830.js";function W(a){let e;return{c(){e=g("Try a refresh")},l(t){e=$(t,"Try a refresh")},m(t,l){P(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){P(t,e,l)},d(t){t&&p(e)}}}function Y(a){let e,t,l,h,n,d,E,u,b,c,i,f,L,m,j,v;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"),b=g(a[2]),c=y(),i=S("p"),D(f.$$.fragment),L=g(` or `),D(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=N(r),n=x(r,"P",{class:!0});var w=T(n);d=$(w,"Uh oh. There's an error."),w.forEach(p),E=N(r),u=x(r,"P",{class:!0});var q=T(u);b=$(q,a[2]),q.forEach(p),c=N(r),i=x(r,"P",{class:!0});var C=T(i);U(f.$$.fragment,C),L=$(C,` or diff --git a/ui/assets/local/_app/immutable/chunks/event-empty-row.844d84b4.js b/ui/assets/local/_app/immutable/chunks/event-empty-row.0657830c.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/event-empty-row.844d84b4.js rename to ui/assets/local/_app/immutable/chunks/event-empty-row.0657830c.js index 812ac449a9..76dab656e6 100644 --- a/ui/assets/local/_app/immutable/chunks/event-empty-row.844d84b4.js +++ b/ui/assets/local/_app/immutable/chunks/event-empty-row.0657830c.js @@ -1 +1 @@ -import{S as _e,b as me,a as he,m as b,p as k,q as $,k as m,u as g,f as I,z,g as w,h as Q,j as p,K as ce,N as we,O as De,w as B,c as C,x as M,d as A,R as j,L as h,y as U,n as Te,C as G,D as S,E as O,F as N,G as jt,X as nt,T as $e,H as Lt,I as Bt,J as Mt,P as el,e as le,M as Ut,a1 as Ee,a2 as Ve,al as tl,V as qt,ab as ll,U as nl,a6 as rl,A as sl,Y as al,Z as il,$ as ol,af as fl,_ as Oe}from"./index.a36c9cb0.js";import{a as cl}from"./icon-button.bcd06a36.js";import{I as ve}from"./icon.33859671.js";import{c as Ne,e as Me,b as ul}from"./event-view.f557cd63.js";import{t as Ht,s as dl}from"./time-format.dc246788.js";import{e as Ue,a as qe,b as He,i as Fe}from"./index.f8c667a1.js";import{f as rt}from"./format-date.7c274b02.js";import{n as We}from"./format-time.c8c4770b.js";import{s as Wt,a as zt,b as Qt,c as Re,g as ze,d as _l,e as st,f as Jt,h as ml,i as at}from"./format-event-attributes.7f34c129.js";import{p as Be}from"./stores.48be4ca9.js";import{f as ne}from"./format-camel-case.960a78f9.js";import{n as je,g as ke}from"./route-for.6dec3e74.js";import{C as Qe}from"./code-block.2cc5a38d.js";import{L as Pe}from"./link.855bf830.js";import{C as ye}from"./tooltip.bd2ec5a4.js";import{B as Le}from"./is-event-type.763b5d4b.js";import{T as Kt,a as hl}from"./table-header-row.eb620974.js";import{D as Xt}from"./dropdown-menu.c2d1df3e.js";import{c as vl,a as pl}from"./get-event-categorization.d6ff7ec7.js";import{u as Yt}from"./pagination.4cd37fec.js";import{e as it}from"./filters.2b30fe96.js";import{E as gl}from"./empty-state.9fb63265.js";import{L as bl}from"./loading.bcb9b7b8.js";function kl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","w-full select-all text-gray-700 svelte-n4ehvt"),j(i,"badge",!Re(s[0])),g(o,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function $l(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"",$$slots:{default:[Tl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm "),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function wl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Pl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&262&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function El(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":" xl:flex-row",$$slots:{default:[Cl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Il(s){let e,l,t=ne(s[0])+"",n,r,o,i;return o=new Qe({props:{content:ze(s[1]),inline:s[3]}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),G(o.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var a=$(e);l=k(a,"P",{class:!0});var f=$(l);n=M(f,t),f.forEach(m),r=A(a),S(o.$$.fragment,a),a.forEach(m),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){I(c,e,a),h(e,l),h(l,n),h(e,r),O(o,e,null),i=!0},p(c,a){(!i||a&1)&&t!==(t=ne(c[0])+"")&&U(n,t);const f={};a&2&&(f.content=ze(c[1])),a&8&&(f.inline=c[3]),o.$set(f)},i(c){i||(p(o.$$.fragment,c),i=!0)},o(c){w(o.$$.fragment,c),i=!1},d(c){c&&m(e),N(o)}}}function Dl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Tl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[Dl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Pl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Vl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Cl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[yl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Al(s){let e,l,t,n,r,o,i,c;const a=[Il,El,wl,$l,kl],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+d[6].class+" svelte-n4ehvt"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function Gl(s,e,l){let t;ce(s,Be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:i=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=we(we({},e),De(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,o=f.attributes),"inline"in f&&l(3,i=f.inline)},e=De(e),[n,r,o,i,c,a,e]}class Sl extends _e{constructor(e){super(),me(this,e,Gl,Al,he,{key:0,value:1,attributes:2,inline:3})}}function Ol(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(i,"class","select-all px-2 svelte-cl0oev"),j(i,"badge",!Re(s[0])),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function Nl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Fl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1030&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Rl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function jl(s){let e,l,t,n=ne(s[0])+"",r,o,i,c,a,f;i=new Qe({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":""),inline:s[3]}});let u=s[5]&&!s[3]&&ot(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=B(n),o=C(),G(i.$$.fragment),a=C(),u&&u.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"P",{class:!0});var E=$(t);r=M(E,n),E.forEach(m),o=A(v),S(i.$$.fragment,v),v.forEach(m),a=A(_),u&&u.l(_),_.forEach(m),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-cl0oev"),j(e,"code-with-stack-trace",s[5])},m(d,_){I(d,e,_),h(e,l),h(l,t),h(t,r),h(l,o),O(i,l,null),h(e,a),u&&u.m(e,null),f=!0},p(d,_){(!f||_&1)&&n!==(n=ne(d[0])+"")&&U(r,n);const v={};_&16&&(v.content=d[4]),_&32&&(v.class="h-auto "+(d[5]?"mb-2":"")),_&8&&(v.inline=d[3]),i.$set(v),(!f||_&32&&c!==(c="flex flex-col "+(d[5]?"lg:w-1/2":"")))&&g(l,"class",c),d[5]&&!d[3]?u?(u.p(d,_),_&40&&p(u,1)):(u=ot(d),u.c(),p(u,1),u.m(e,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!f||_&32)&&j(e,"code-with-stack-trace",d[5])},i(d){f||(p(i.$$.fragment,d),p(u),f=!0)},o(d){w(i.$$.fragment,d),w(u),f=!1},d(d){d&&m(e),N(i),u&&u.d()}}}function Ll(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Bl(s){let e,l;return e=new Pe({props:{newTab:!0,href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ml(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Ul(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({namespace:t[7],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ql(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Hl(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ot(s){let e,l,t,n,r,o;return r=new Qe({props:{content:s[5],class:"mb-2 h-full lg:pr-2",language:"text"}}),{c(){e=b("div"),l=b("p"),t=B("Stack trace"),n=C(),G(r.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=$(e);l=k(c,"P",{class:!0});var a=$(l);t=M(a,"Stack trace"),a.forEach(m),n=A(c),S(r.$$.fragment,c),c.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(i,c){I(i,e,c),h(e,l),h(l,t),h(e,n),O(r,e,null),o=!0},p(i,c){const a={};c&32&&(a.content=i[5]),r.$set(a)},i(i){o||(p(r.$$.fragment,i),o=!0)},o(i){w(r.$$.fragment,i),o=!1},d(i){i&&m(e),N(r)}}}function Wl(s){let e,l,t,n,r,o,i,c;const a=[jl,Rl,Fl,Nl,Ol],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="row "+s[8].class+" svelte-cl0oev")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&256&&i!==(i="row "+d[8].class+" svelte-cl0oev"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function zl(s,e,l){let t,n,r;ce(s,Be,d=>l(9,r=d));let{key:o}=e,{value:i}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=d=>{l(8,e=we(we({},e),De(d))),"key"in d&&l(0,o=d.key),"value"in d&&l(1,i=d.value),"attributes"in d&&l(2,c=d.attributes),"inline"in d&&l(3,a=d.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ze(i)),s.$$.dirty&16&&l(5,n=_l(t))},e=De(e),[o,i,c,a,t,n,f,u,e]}class Zt extends _e{constructor(e){super(),me(this,e,zl,Wl,he,{key:0,value:1,attributes:2,inline:3})}}function ft(s){let e,l,t;return l=new ve({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),G(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=$(e);S(l.$$.fragment,r),r.forEach(m),this.h()},h(){j(e,"animate-spin",s[1])},m(n,r){I(n,e,r),O(l,e,null),t=!0},p(n,r){const o={};r&10&&(o.name=n[1]?"spinner":n[3]),l.$set(o),(!t||r&2)&&j(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&m(e),N(l)}}}function Ql(s){let e,l,t,n,r,o,i=s[3]&&ft(s);const c=s[7].default,a=jt(c,s,s[6],null);return{c(){e=b("button"),i&&i.c(),l=C(),a&&a.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=$(e);i&&i.l(u),l=A(u),a&&a.l(u),u.forEach(m),this.h()},h(){g(e,"class",t=nt(`pill ${s[5]} ${s[4]}`)+" svelte-czm4v2"),e.disabled=s[0],j(e,"active",s[2])},m(f,u){I(f,e,u),i&&i.m(e,null),h(e,l),a&&a.m(e,null),n=!0,r||(o=$e(e,"click",s[8]),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=ft(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),w(i,1,1,()=>{i=null}),Q()),a&&a.p&&(!n||u&64)&&Lt(a,c,f,f[6],n?Mt(c,f[6],u,null):Bt(f[6]),null),(!n||u&48&&t!==(t=nt(`pill ${f[5]} ${f[4]}`)+" svelte-czm4v2"))&&g(e,"class",t),(!n||u&1)&&(e.disabled=f[0]),(!n||u&52)&&j(e,"active",f[2])},i(f){n||(p(i),p(a,f),n=!0)},o(f){w(i),w(a,f),n=!1},d(f){f&&m(e),i&&i.d(),a&&a.d(f),r=!1,o()}}}function Jl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:o=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function u(d){el.call(this,s,d)}return s.$$set=d=>{l(9,e=we(we({},e),De(d))),"disabled"in d&&l(0,r=d.disabled),"loading"in d&&l(1,o=d.loading),"active"in d&&l(2,i=d.active),"icon"in d&&l(3,c=d.icon),"classes"in d&&l(4,a=d.classes),"color"in d&&l(5,f=d.color),"$$scope"in d&&l(6,n=d.$$scope)},e=De(e),[r,o,i,c,a,f,n,t,u]}class Kl extends _e{constructor(e){super(),me(this,e,Jl,Ql,he,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function ct(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 ut(s){let e,l,t=[],n=new Map,r,o=Object.entries(s[0]);const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){w(r),n=!1},d(o){o&&m(l),r&&r.d(o),o&&m(t)}}}function Yl(s){let e,l,t=s[2]>1&&ut(s);return{c(){t&&t.c(),e=le()},l(n){t&&t.l(n),e=le()},m(n,r){t&&t.m(n,r),I(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),w(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){w(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function Zl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const o=Ut(),i=c=>o("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,a)=>(a.length&&(c+=1),c),0))},[n,r,t,o,i]}class xt extends _e{constructor(e){super(),me(this,e,Zl,Yl,he,{attributeGrouping:0,activePill:1})}}function mt(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ht(s,e){let l,t,n,r,o,i=e[4]+"",c,a,f,u,d=(Le(e[5])?"LocalActivity":e[5].eventType)+"",_,v,E,T,W,H;function Y(){return e[3](e[4])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=C(),r=b("td"),o=b("p"),c=B(i),a=C(),f=b("td"),u=b("p"),_=B(d),v=C(),E=b("td"),T=C(),this.h()},l(D){l=k(D,"TR",{class:!0});var P=$(l);t=k(P,"TD",{class:!0}),$(t).forEach(m),n=A(P),r=k(P,"TD",{class:!0});var Z=$(r);o=k(Z,"P",{class:!0});var J=$(o);c=M(J,i),J.forEach(m),Z.forEach(m),a=A(P),f=k(P,"TD",{});var K=$(f);u=k(K,"P",{class:!0});var x=$(u);_=M(x,d),x.forEach(m),K.forEach(m),v=A(P),E=k(P,"TD",{}),$(E).forEach(m),T=A(P),P.forEach(m),this.h()},h(){g(t,"class","w-1/12"),g(o,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(u,"class","event-type truncate text-sm md:text-base svelte-1joe2mb"),g(l,"class","row svelte-1joe2mb"),j(l,"active",e[4]===e[1]),j(l,"failure",Ue(e[5])),j(l,"canceled",qe(e[5])),j(l,"terminated",He(e[5])),this.first=l},m(D,P){I(D,l,P),h(l,t),h(l,n),h(l,r),h(r,o),h(o,c),h(l,a),h(l,f),h(f,u),h(u,_),h(l,v),h(l,E),h(l,T),W||(H=$e(l,"click",qt(ll(Y))),W=!0)},p(D,P){e=D,P&1&&i!==(i=e[4]+"")&&U(c,i),P&1&&d!==(d=(Le(e[5])?"LocalActivity":e[5].eventType)+"")&&U(_,d),P&3&&j(l,"active",e[4]===e[1]),P&1&&j(l,"failure",Ue(e[5])),P&1&&j(l,"canceled",qe(e[5])),P&1&&j(l,"terminated",He(e[5]))},d(D){D&&m(l),W=!1,H()}}}function xl(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=o=>o[4];for(let o=0;or(i);return s.$$set=i=>{"eventGroup"in i&&l(0,t=i.eventGroup),"selectedId"in i&&l(1,n=i.selectedId),"onGroupClick"in i&&l(2,r=i.onGroupClick)},[t,n,r,o]}class ln extends _e{constructor(e){super(),me(this,e,tn,en,he,{eventGroup:0,selectedId:1,onGroupClick:2})}}function vt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function pt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,o;l=new xt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=s[6];const c=a=>a[10];for(let a=0;ad[10];for(let d=0;d{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function kt(s){let e,l;return e=new Zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function $t(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=le(),o&&o.c(),n=le(),this.h()},l(c){l=le(),o&&o.l(c),n=le(),this.h()},h(){this.first=l},m(c,a){I(c,l,a),o&&o.m(c,a),I(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?o?(o.p(e,a),a&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),w(o,1,1,()=>{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function sn(s){let e,l,t,n,r;const o=[rn,nn],i=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&Fe(a[1]))),e?0:1}return l=c(s,-1),t=i[l]=o[l](s),{c(){t.c(),n=le()},l(a){t.l(a),n=le()},m(a,f){i[l].m(a,f),I(a,n,f),r=!0},p(a,[f]){let u=l;l=c(a,f),l===u?i[l].p(a,f):(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(a,f):(t=i[l]=o[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){w(t),r=!1},d(a){i[l].d(a),a&&m(n)}}}function an(s,e,l){let t,n,r,o,{event:i}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},d=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[f,i,a,t,n,r,o,u,d,c]}class on extends _e{constructor(e){super(),me(this,e,an,sn,he,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){var t;let e=rt((t=s[0])==null?void 0:t.eventTime,s[12])+"",l;return{c(){l=B(e)},l(n){l=M(n,e)},m(n,r){I(n,l,r)},p(n,r){var o;r&4097&&e!==(e=rt((o=n[0])==null?void 0:o.eventTime,n[12])+"")&&U(l,e)},d(n){n&&m(l)}}}function cn(s){let e=We({start:s[1].eventTime,end:s[7].eventTime})+"",l,t,n;return{c(){l=B(e),t=C(),n=B(s[9])},l(r){l=M(r,e),t=A(r),n=M(r,s[9])},m(r,o){I(r,l,o),I(r,t,o),I(r,n,o)},p(r,o){o&130&&e!==(e=We({start:r[1].eventTime,end:r[7].eventTime})+"")&&U(l,e),o&512&&U(n,r[9])},d(r){r&&m(l),r&&m(t),r&&m(n)}}}function wt(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Et(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function It(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Dt(s){let e,l;const t=[at(s[7]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let n={};for(let r=0;ral(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),G(t.$$.fragment),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{class:!0,colspan:!0});var u=$(l);S(t.$$.fragment,u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","expanded-cell svelte-aaifo7"),g(l,"colspan","6"),g(e,"class","svelte-aaifo7"),j(e,"typedError",s[4])},m(a,f){I(a,e,f),h(e,l),O(t,l,null),o=!0},p(a,f){const u={};f&1&&(u.event=a[0]),f&128&&(u.currentEvent=a[7]),f&4&&(u.compact=a[2]),!n&&f&64&&(n=!0,u.selectedId=a[6],il(()=>n=!1)),t.$set(u),(!o||f&16)&&j(e,"typedError",a[4])},i(a){o||(p(t.$$.fragment,a),a&&(r||ol(()=>{r=fl(e,cl,{}),r.start()})),o=!0)},o(a){w(t.$$.fragment,a),o=!1},d(a){a&&m(e),N(t)}}}function un(s){let e,l,t,n,r,o,i=s[0].id+"",c,a,f,u,d,_,v,E,T,W,H,Y,D=(Le(s[0])?"LocalActivity":s[0].name)+"",P,Z,J,K,x,fe,pe,F,oe,q,R,V,X,ue,ie,Ie,Ce;function ge(y,L){return y[11]?cn:fn}let Ge=ge(s),de=Ge(s),re=s[2]&&s[14]&&wt(),se=s[2]&&s[15]&&Et(),ae=s[2]&&s[16]&&It(),ee=!s[8]&&Dt(s);F=new ve({props:{class:"inline",name:s[8]?"chevron-up":"chevron-down"}});let te=s[8]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=C(),n=b("td"),r=b("a"),o=b("p"),c=B(i),f=C(),u=b("td"),d=b("p"),de.c(),_=C(),v=b("td"),E=b("div"),re&&re.c(),T=C(),se&&se.c(),W=C(),ae&&ae.c(),H=C(),Y=b("p"),P=B(D),Z=C(),J=b("td"),K=b("div"),x=b("div"),ee&&ee.c(),fe=C(),pe=b("div"),G(F.$$.fragment),oe=C(),q=b("td"),X=C(),te&&te.c(),ue=le(),this.h()},l(y){e=k(y,"TR",{class:!0,id:!0,"aria-expanded":!0,"data-testid":!0});var L=$(e);l=k(L,"TD",{}),$(l).forEach(m),t=A(L),n=k(L,"TD",{class:!0});var Ae=$(n);r=k(Ae,"A",{class:!0,href:!0});var Je=$(r);o=k(Je,"P",{class:!0});var Ke=$(o);c=M(Ke,i),Ke.forEach(m),Je.forEach(m),Ae.forEach(m),f=A(L),u=k(L,"TD",{class:!0});var Xe=$(u);d=k(Xe,"P",{class:!0});var Ye=$(d);de.l(Ye),Ye.forEach(m),Xe.forEach(m),_=A(L),v=k(L,"TD",{class:!0});var Ze=$(v);E=k(Ze,"DIV",{class:!0});var be=$(E);re&&re.l(be),T=A(be),se&&se.l(be),W=A(be),ae&&ae.l(be),H=A(be),Y=k(be,"P",{class:!0});var xe=$(Y);P=M(xe,D),xe.forEach(m),be.forEach(m),Ze.forEach(m),Z=A(L),J=k(L,"TD",{class:!0});var et=$(J);K=k(et,"DIV",{class:!0});var Se=$(K);x=k(Se,"DIV",{class:!0});var tt=$(x);ee&&ee.l(tt),tt.forEach(m),fe=A(Se),pe=k(Se,"DIV",{});var lt=$(pe);S(F.$$.fragment,lt),lt.forEach(m),Se.forEach(m),et.forEach(m),oe=A(L),q=k(L,"TD",{}),$(q).forEach(m),L.forEach(m),X=A(y),te&&te.l(y),ue=le(),this.h()},h(){g(o,"class","truncate"),g(r,"class","text-sm text-gray-500 md:text-base"),g(r,"href",a="#"+s[0].id),g(n,"class","w-24 text-left"),g(d,"class","break-word truncate text-sm md:whitespace-normal md:text-base"),g(u,"class","text-left"),g(Y,"class","event-name truncate text-sm font-semibold md:text-base svelte-aaifo7"),g(E,"class","flex"),g(v,"class","text-right text-sm font-normal xl:text-left"),g(x,"class","grow truncate"),g(K,"class","flex w-full items-center justify-between"),g(J,"class","overflow-hidden"),g(e,"class","row svelte-aaifo7"),g(e,"id",R=s[0].id),g(e,"aria-expanded",V=s[8]||s[3]),g(e,"data-testid","event-summary-row"),j(e,"expanded",s[8]&&!s[3]),j(e,"active",s[5]),j(e,"failure",s[14]),j(e,"canceled",s[15]),j(e,"terminated",s[16]),j(e,"typedError",s[4])},m(y,L){I(y,e,L),h(e,l),h(e,t),h(e,n),h(n,r),h(r,o),h(o,c),h(e,f),h(e,u),h(u,d),de.m(d,null),h(e,_),h(e,v),h(v,E),re&&re.m(E,null),h(E,T),se&&se.m(E,null),h(E,W),ae&&ae.m(E,null),h(E,H),h(E,Y),h(Y,P),h(e,Z),h(e,J),h(J,K),h(K,x),ee&&ee.m(x,null),h(K,fe),h(K,pe),O(F,pe,null),h(e,oe),h(e,q),I(y,X,L),te&&te.m(y,L),I(y,ue,L),ie=!0,Ie||(Ce=$e(e,"click",qt(s[13])),Ie=!0)},p(y,[L]){(!ie||L&1)&&i!==(i=y[0].id+"")&&U(c,i),(!ie||L&1&&a!==(a="#"+y[0].id))&&g(r,"href",a),Ge===(Ge=ge(y))&&de?de.p(y,L):(de.d(1),de=Ge(y),de&&(de.c(),de.m(d,null))),y[2]&&y[14]?re?L&4&&p(re,1):(re=wt(),re.c(),p(re,1),re.m(E,T)):re&&(z(),w(re,1,1,()=>{re=null}),Q()),y[2]&&y[15]?se?L&4&&p(se,1):(se=Et(),se.c(),p(se,1),se.m(E,W)):se&&(z(),w(se,1,1,()=>{se=null}),Q()),y[2]&&y[16]?ae?L&4&&p(ae,1):(ae=It(),ae.c(),p(ae,1),ae.m(E,H)):ae&&(z(),w(ae,1,1,()=>{ae=null}),Q()),(!ie||L&1)&&D!==(D=(Le(y[0])?"LocalActivity":y[0].name)+"")&&U(P,D),y[8]?ee&&(z(),w(ee,1,1,()=>{ee=null}),Q()):ee?(ee.p(y,L),L&256&&p(ee,1)):(ee=Dt(y),ee.c(),p(ee,1),ee.m(x,null));const Ae={};L&256&&(Ae.name=y[8]?"chevron-up":"chevron-down"),F.$set(Ae),(!ie||L&1&&R!==(R=y[0].id))&&g(e,"id",R),(!ie||L&264&&V!==(V=y[8]||y[3]))&&g(e,"aria-expanded",V),(!ie||L&264)&&j(e,"expanded",y[8]&&!y[3]),(!ie||L&32)&&j(e,"active",y[5]),(!ie||L&16)&&j(e,"typedError",y[4]),y[8]?te?(te.p(y,L),L&256&&p(te,1)):(te=Tt(y),te.c(),p(te,1),te.m(ue.parentNode,ue)):te&&(z(),w(te,1,1,()=>{te=null}),Q())},i(y){ie||(p(re),p(se),p(ae),p(ee),p(F.$$.fragment,y),p(te),ie=!0)},o(y){w(re),w(se),w(ae),w(ee),w(F.$$.fragment,y),w(te),ie=!1},d(y){y&&m(e),de.d(),re&&re.d(),se&&se.d(),ae&&ae.d(),ee&&ee.d(),N(F),y&&m(X),te&&te.d(y),y&&m(ue),Ie=!1,Ce()}}}function dn(s,e,l){let t,n,r,o,i,c,a,f,u,d;ce(s,Ne,F=>l(22,f=F)),ce(s,Me,F=>l(23,u=F)),ce(s,Ht,F=>l(12,d=F));var _;let{event:v}=e,{visibleItems:E}=e,{initialItem:T}=e,{compact:W=!1}=e,{expandAll:H=!1}=e,{typedError:Y=!1}=e,{active:D=!1}=e,{onRowClick:P=Te}=e,Z=Fe(v)?Array.from(v.events.keys()).pop():v.id;const J=()=>{l(8,t=!t),P()},K=Ue(v),x=qe(v),fe=He(v);function pe(F){Z=F,l(6,Z)}return s.$$set=F=>{"event"in F&&l(0,v=F.event),"visibleItems"in F&&l(17,E=F.visibleItems),"initialItem"in F&&l(1,T=F.initialItem),"compact"in F&&l(2,W=F.compact),"expandAll"in F&&l(3,H=F.expandAll),"typedError"in F&&l(4,Y=F.typedError),"active"in F&&l(5,D=F.active),"onRowClick"in F&&l(18,P=F.onRowClick)},s.$$.update=()=>{if(s.$$.dirty&40&&l(8,t=H||D),s.$$.dirty&65&&l(7,n=Fe(v)?v.events.get(Z):v),s.$$.dirty&8388608&&l(20,r=u==="descending"),s.$$.dirty&4194304&&l(21,o=f==="true"),s.$$.dirty&2097155&&l(11,i=o&&T&&v.id!==T.id),s.$$.dirty&5&&l(10,c=Jt(v,{compact:W})),s.$$.dirty&1704065){const F=E.indexOf(v),oe=E[F-1];if(oe){const q=We({start:Fe(oe)?l(19,_=oe==null?void 0:oe.initialEvent)===null||_===void 0?void 0:_.eventTime:oe==null?void 0:oe.eventTime,end:n==null?void 0:n.eventTime});l(9,a=q?`(${r?"-":"+"}${q})`:"")}}},l(9,a=""),[v,T,W,H,Y,D,Z,n,t,a,c,i,d,J,K,x,fe,E,P,_,r,o,f,u,pe]}class lr extends _e{constructor(e){super(),me(this,e,dn,un,he,{event:0,visibleItems:17,initialItem:1,compact:2,expandAll:3,typedError:4,active:5,onRowClick:18})}}function Vt(s,e,l){const t=s.slice();return t[1]=e[l].label,t[10]=e[l].option,t}function Pt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yt(s,e){let l,t,n,r,o=e[1]+"",i,c,a,f,u,d=e[0]===e[10]&&Pt();function _(){return e[8](e[10])}return{key:s,first:null,c(){l=b("div"),t=b("div"),d&&d.c(),n=C(),r=b("button"),i=B(o),c=C(),this.h()},l(v){l=k(v,"DIV",{class:!0});var E=$(l);t=k(E,"DIV",{class:!0});var T=$(t);d&&d.l(T),T.forEach(m),n=A(E),r=k(E,"BUTTON",{"data-testid":!0});var W=$(r);i=M(W,o),W.forEach(m),c=A(E),E.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-category-option"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[0]===e[10]),this.first=l},m(v,E){I(v,l,E),h(l,t),d&&d.m(t,null),h(l,n),h(l,r),h(r,i),h(l,c),a=!0,f||(u=$e(r,"click",_),f=!0)},p(v,E){e=v,e[0]===e[10]?d?E&1&&p(d,1):(d=Pt(),d.c(),p(d,1),d.m(t,null)):d&&(z(),w(d,1,1,()=>{d=null}),Q()),(!a||E&5)&&j(l,"active",e[0]===e[10])},i(v){a||(p(d),a=!0)},o(v){w(d),a=!1},d(v){v&&m(l),d&&d.d(),f=!1,u()}}}function _n(s){let e,l=[],t=new Map,n,r=s[2];const o=i=>i[10];for(let i=0;il(9,r=_)),ce(s,Be,_=>l(7,o=_));var i,c;let{compact:a=!1}=e,f=a?vl:pl;const u=_=>{l(0,n=_)},d=_=>u(_);return s.$$set=_=>{"compact"in _&&l(4,a=_.compact)},s.$$.update=()=>{s.$$.dirty&16&&l(1,t=a?"Event Type":"Workflow Events"),s.$$.dirty&224&&l(0,n=l(6,c=l(5,i=o.url)===null||i===void 0?void 0:i.searchParams)===null||c===void 0?void 0:c.get(Ct)),s.$$.dirty&129&&Yt({parameter:Ct,value:n,url:o.url}).then(_=>{var v;l(0,n=(v=_==null?void 0:_.toString())!==null&&v!==void 0?v:null),Oe(it,r=n,r)})},[n,t,f,u,a,i,c,o,d]}class pn extends _e{constructor(e){super(),me(this,e,vn,hn,he,{compact:4})}}const gn=({compact:s,timeFormat:e,sortOrder:l,showElapsed:t})=>{if(!((s||l==="descending")&&e==="UTC"&&t==="false"))return`${l}:${e}:${t}`};function At(s,e,l){const t=s.slice();return t[13]=e[l].label,t[14]=e[l].option,t}function Gt(s,e,l){const t=s.slice();return t[14]=e[l].option,t[13]=e[l].label,t}function St(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ot(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[1]===e[14]&&St();function d(){return e[10](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[1]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[1]===e[14]?u?v&2&&p(u,1):(u=St(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&18)&&j(l,"active",e[1]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Nt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ft(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[2]===e[14]&&Nt();function d(){return e[11](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{"data-testid":!0});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-date-filter-"+e[14]),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[2]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[2]===e[14]?u?v&4&&p(u,1):(u=Nt(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&36)&&j(l,"active",e[2]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Rt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function bn(s){let e,l=[],t=new Map,n,r,o,i,c,a,f=[],u=new Map,d,_,v,E,T,W,H,Y,D,P,Z,J,K,x,fe=s[4];const pe=R=>R[14];for(let R=0;RR[14];for(let R=0;R{q=null}),Q()),(!J||V&1)&&j(H,"active",R[0]==="true")},i(R){if(!J){for(let V=0;Vl(0,n=T)),ce(s,Me,T=>l(1,r=T)),ce(s,Ht,T=>l(2,o=T)),ce(s,Be,T=>l(12,i=T));let{compact:c}=e,a=[{label:"Sort 1-9",option:"ascending"},{label:"Sort 9-1",option:"descending"}],f=[{label:"Relative",option:"relative"},{label:"UTC",option:"UTC"},{label:"Local",option:"local"}];const u=T=>{Oe(Me,r=T,r),Yt({parameter:"sort",value:T,url:i.url})},d=T=>{dl(T)},_=()=>{n==="true"?Oe(Ne,n="false",n):Oe(Ne,n="true",n)},v=T=>u(T),E=T=>d(T);return s.$$set=T=>{"compact"in T&&l(9,c=T.compact)},s.$$.update=()=>{s.$$.dirty&519&&l(3,t=gn({compact:c,timeFormat:o,sortOrder:r,showElapsed:n}))},[n,r,o,t,a,f,u,d,_,c,v,E]}class En extends _e{constructor(e){super(),me(this,e,wn,$n,he,{compact:9})}}function In(s){let e;const l=s[4].default,t=jt(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)&&Lt(t,l,n,n[5],e?Mt(l,n[5],r,null):Bt(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){w(t,n),e=!1},d(n){t&&t.d(n)}}}function Dn(s){let e,l,t,n,r,o,i,c,a,f,u,d,_=s[2]?"Collapse all":"Expand All",v,E,T,W,H,Y;return n=new En({props:{compact:s[0]}}),i=new pn({props:{compact:s[0]}}),T=new ve({props:{name:s[2]?"chevron-up":"chevron-down"}}),{c(){e=b("th"),l=C(),t=b("th"),G(n.$$.fragment),r=C(),o=b("th"),G(i.$$.fragment),c=C(),a=b("th"),f=b("div"),u=b("button"),d=b("span"),v=B(_),E=C(),G(T.$$.fragment),this.h()},l(D){e=k(D,"TH",{class:!0}),$(e).forEach(m),l=A(D),t=k(D,"TH",{class:!0});var P=$(t);S(n.$$.fragment,P),P.forEach(m),r=A(D),o=k(D,"TH",{class:!0});var Z=$(o);S(i.$$.fragment,Z),Z.forEach(m),c=A(D),a=k(D,"TH",{class:!0});var J=$(a);f=k(J,"DIV",{class:!0});var K=$(f);u=k(K,"BUTTON",{class:!0});var x=$(u);d=k(x,"SPAN",{class:!0});var fe=$(d);v=M(fe,_),fe.forEach(m),E=A(x),S(T.$$.fragment,x),x.forEach(m),K.forEach(m),J.forEach(m),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(o,"class","w-44"),g(d,"class","hidden sm:block"),g(u,"class","relative flex w-28 items-center justify-end rounded sm:justify-between"),g(f,"class","flex w-full justify-end"),g(a,"class","w-auto xl:w-80")},m(D,P){I(D,e,P),I(D,l,P),I(D,t,P),O(n,t,null),I(D,r,P),I(D,o,P),O(i,o,null),I(D,c,P),I(D,a,P),h(a,f),h(f,u),h(u,d),h(d,v),h(u,E),O(T,u,null),W=!0,H||(Y=$e(u,"click",s[3]),H=!0)},p(D,P){const Z={};P&1&&(Z.compact=D[0]),n.$set(Z);const J={};P&1&&(J.compact=D[0]),i.$set(J),(!W||P&4)&&_!==(_=D[2]?"Collapse all":"Expand All")&&U(v,_);const K={};P&4&&(K.name=D[2]?"chevron-up":"chevron-down"),T.$set(K)},i(D){W||(p(n.$$.fragment,D),p(i.$$.fragment,D),p(T.$$.fragment,D),W=!0)},o(D){w(n.$$.fragment,D),w(i.$$.fragment,D),w(T.$$.fragment,D),W=!1},d(D){D&&m(e),D&&m(l),D&&m(t),N(n),D&&m(r),D&&m(o),N(i),D&&m(c),D&&m(a),N(T),H=!1,Y()}}}function Tn(s){let e,l;return e=new hl({props:{slot:"headers",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vn(s){let e,l;return e=new Kt({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Tn],default:[In]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Pn(s,e,l){let t;ce(s,ul,u=>l(6,t=u));let{$$slots:n={},$$scope:r}=e,{compact:o=!1}=e,{updating:i=!1}=e,c=t==="true";const a=Ut();function f(){l(2,c=!c),a("expandAll",{expanded:c?"true":"false"})}return s.$$set=u=>{"compact"in u&&l(0,o=u.compact),"updating"in u&&l(1,i=u.updating),"$$scope"in u&&l(5,r=u.$$scope)},[o,i,c,f,n,r]}class nr extends _e{constructor(e){super(),me(this,e,Pn,Vn,he,{compact:0,updating:1})}}function yn(s){let e,l;return e=new gl({props:{title:"No Events Match",content:"There are no events that match your filters or selected view. Adjust your filters or view to see your events."}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Cn(s){let e,l;return e=new bl({}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function An(s){let e,l,t,n,r;const o=[Cn,yn],i=[];function c(a,f){return a[0]?0:1}return t=c(s),n=i[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{colspan:!0});var u=$(l);n.l(u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(a,f){I(a,e,f),h(e,l),i[t].m(l,null),r=!0},p(a,[f]){let u=t;t=c(a),t!==u&&(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n||(n=i[t]=o[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){w(n),r=!1},d(a){a&&m(e),i[t].d()}}}function Gn(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class rr extends _e{constructor(e){super(),me(this,e,Gn,An,he,{loading:0})}}export{nr as E,rr as a,lr as b}; +import{S as _e,b as me,a as he,m as b,p as k,q as $,k as m,u as g,f as I,z,g as w,h as Q,j as p,K as ce,N as we,O as De,w as B,c as C,x as M,d as A,R as j,L as h,y as U,n as Te,C as G,D as S,E as O,F as N,G as jt,X as nt,T as $e,H as Lt,I as Bt,J as Mt,P as el,e as le,M as Ut,a1 as Ee,a2 as Ve,al as tl,V as qt,ab as ll,U as nl,a6 as rl,A as sl,Y as al,Z as il,$ as ol,af as fl,_ as Oe}from"./index.a36c9cb0.js";import{a as cl}from"./icon-button.bcd06a36.js";import{I as ve}from"./icon.33859671.js";import{c as Ne,e as Me,b as ul}from"./event-view.f557cd63.js";import{t as Ht,s as dl}from"./time-format.dc246788.js";import{e as Ue,a as qe,b as He,i as Fe}from"./index.f8c667a1.js";import{f as rt}from"./format-date.7c274b02.js";import{n as We}from"./format-time.c8c4770b.js";import{s as Wt,a as zt,b as Qt,c as Re,g as ze,d as _l,e as st,f as Jt,h as ml,i as at}from"./format-event-attributes.7f34c129.js";import{p as Be}from"./stores.4d55fa19.js";import{f as ne}from"./format-camel-case.960a78f9.js";import{n as je,g as ke}from"./route-for.e1b7889c.js";import{C as Qe}from"./code-block.2cc5a38d.js";import{L as Pe}from"./link.855bf830.js";import{C as ye}from"./tooltip.bd2ec5a4.js";import{B as Le}from"./is-event-type.763b5d4b.js";import{T as Kt,a as hl}from"./table-header-row.eb620974.js";import{D as Xt}from"./dropdown-menu.c2d1df3e.js";import{c as vl,a as pl}from"./get-event-categorization.d6ff7ec7.js";import{u as Yt}from"./pagination.6f9a2b9c.js";import{e as it}from"./filters.f7fa907d.js";import{E as gl}from"./empty-state.9fb63265.js";import{L as bl}from"./loading.bcb9b7b8.js";function kl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(i,"class","w-full select-all text-gray-700 svelte-n4ehvt"),j(i,"badge",!Re(s[0])),g(o,"class","truncate text-right text-sm xl:text-left"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function $l(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"",$$slots:{default:[Tl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm "),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function wl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Pl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&262&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function El(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":" xl:flex-row",$$slots:{default:[Cl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","mr-3 truncate text-sm"),g(o,"class","truncate text-sm"),g(e,"class","flex w-full flex-wrap items-center gap-1 pr-1")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&258&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Il(s){let e,l,t=ne(s[0])+"",n,r,o,i;return o=new Qe({props:{content:ze(s[1]),inline:s[3]}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),G(o.$$.fragment),this.h()},l(c){e=k(c,"DIV",{class:!0});var a=$(e);l=k(a,"P",{class:!0});var f=$(l);n=M(f,t),f.forEach(m),r=A(a),S(o.$$.fragment,a),a.forEach(m),this.h()},h(){g(l,"class","min-w-fit text-sm"),g(e,"class","flex w-full flex-wrap items-center pr-1 xl:flex-nowrap xl:gap-4")},m(c,a){I(c,e,a),h(e,l),h(l,n),h(e,r),O(o,e,null),i=!0},p(c,a){(!i||a&1)&&t!==(t=ne(c[0])+"")&&U(n,t);const f={};a&2&&(f.content=ze(c[1])),a&8&&(f.inline=c[3]),o.$set(f)},i(c){i||(p(o.$$.fragment,c),i=!0)},o(c){w(o.$$.fragment,c),i=!1},d(c){c&&m(e),N(o)}}}function Dl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Tl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:je({namespace:s[5],queue:s[1]}),$$slots:{default:[Dl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Pl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Vl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yl(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Cl(s){let e,l;return e=new Pe({props:{class:"truncate",newTab:!0,href:ke({namespace:s[5],workflow:s[4],run:s[1]}),$$slots:{default:[yl]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Al(s){let e,l,t,n,r,o,i,c;const a=[Il,El,wl,$l,kl],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+s[6].class+" svelte-n4ehvt")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&64&&i!==(i="flex flex-row items-center gap-2 first:pt-0 last:border-b-0 xl:gap-4 "+d[6].class+" svelte-n4ehvt"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function Gl(s,e,l){let t;ce(s,Be,f=>l(7,t=f));let{key:n}=e,{value:r}=e,{attributes:o}=e,{inline:i=!1}=e;const{workflow:c,namespace:a}=t.params;return s.$$set=f=>{l(6,e=we(we({},e),De(f))),"key"in f&&l(0,n=f.key),"value"in f&&l(1,r=f.value),"attributes"in f&&l(2,o=f.attributes),"inline"in f&&l(3,i=f.inline)},e=De(e),[n,r,o,i,c,a,e]}class Sl extends _e{constructor(e){super(),me(this,e,Gl,Al,he,{key:0,value:1,attributes:2,inline:3})}}function Ol(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("p"),i=b("span"),c=B(s[1]),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"P",{class:!0});var d=$(o);i=k(d,"SPAN",{class:!0});var _=$(i);c=M(_,s[1]),_.forEach(m),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(i,"class","select-all px-2 svelte-cl0oev"),j(i,"badge",!Re(s[0])),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),h(o,i),h(i,c)},p(a,f){f&1&&t!==(t=ne(a[0])+"")&&U(n,t),f&2&&U(c,a[1]),f&1&&j(i,"badge",!Re(a[0]))},i:Te,o:Te,d(a){a&&m(e)}}}function Nl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Bl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Fl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"xl:flex-row",$$slots:{default:[Ul]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1030&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function Rl(s){let e,l,t=ne(s[0])+"",n,r,o,i,c;return i=new ye({props:{content:s[1],"container-class":"flex-row-reverse xl:flex-row",$$slots:{default:[Hl]},$$scope:{ctx:s}}}),{c(){e=b("div"),l=b("p"),n=B(t),r=C(),o=b("div"),G(i.$$.fragment),this.h()},l(a){e=k(a,"DIV",{class:!0});var f=$(e);l=k(f,"P",{class:!0});var u=$(l);n=M(u,t),u.forEach(m),r=A(f),o=k(f,"DIV",{class:!0});var d=$(o);S(i.$$.fragment,d),d.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(o,"class","text-sm"),g(e,"class","content detail-row svelte-cl0oev")},m(a,f){I(a,e,f),h(e,l),h(l,n),h(e,r),h(e,o),O(i,o,null),c=!0},p(a,f){(!c||f&1)&&t!==(t=ne(a[0])+"")&&U(n,t);const u={};f&2&&(u.content=a[1]),f&1026&&(u.$$scope={dirty:f,ctx:a}),i.$set(u)},i(a){c||(p(i.$$.fragment,a),c=!0)},o(a){w(i.$$.fragment,a),c=!1},d(a){a&&m(e),N(i)}}}function jl(s){let e,l,t,n=ne(s[0])+"",r,o,i,c,a,f;i=new Qe({props:{content:s[4],class:"h-auto "+(s[5]?"mb-2":""),inline:s[3]}});let u=s[5]&&!s[3]&&ot(s);return{c(){e=b("div"),l=b("div"),t=b("p"),r=B(n),o=C(),G(i.$$.fragment),a=C(),u&&u.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"P",{class:!0});var E=$(t);r=M(E,n),E.forEach(m),o=A(v),S(i.$$.fragment,v),v.forEach(m),a=A(_),u&&u.l(_),_.forEach(m),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-cl0oev"),j(e,"code-with-stack-trace",s[5])},m(d,_){I(d,e,_),h(e,l),h(l,t),h(t,r),h(l,o),O(i,l,null),h(e,a),u&&u.m(e,null),f=!0},p(d,_){(!f||_&1)&&n!==(n=ne(d[0])+"")&&U(r,n);const v={};_&16&&(v.content=d[4]),_&32&&(v.class="h-auto "+(d[5]?"mb-2":"")),_&8&&(v.inline=d[3]),i.$set(v),(!f||_&32&&c!==(c="flex flex-col "+(d[5]?"lg:w-1/2":"")))&&g(l,"class",c),d[5]&&!d[3]?u?(u.p(d,_),_&40&&p(u,1)):(u=ot(d),u.c(),p(u,1),u.m(e,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!f||_&32)&&j(e,"code-with-stack-trace",d[5])},i(d){f||(p(i.$$.fragment,d),p(u),f=!0)},o(d){w(i.$$.fragment,d),w(u),f=!1},d(d){d&&m(e),N(i),u&&u.d()}}}function Ll(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Bl(s){let e,l;return e=new Pe({props:{newTab:!0,href:je({namespace:s[7],queue:s[1]}),$$slots:{default:[Ll]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=je({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ml(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Ul(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[2].workflowExecutionWorkflowId,run:s[2].workflowExecutionRunId}),$$slots:{default:[Ml]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&4&&(r.href=ke({namespace:t[7],workflow:t[2].workflowExecutionWorkflowId,run:t[2].workflowExecutionRunId})),n&1026&&(r.$$scope={dirty:n,ctx:t}),e.$set(r)},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ql(s){let e;return{c(){e=B(s[1])},l(l){e=M(l,s[1])},m(l,t){I(l,e,t)},p(l,t){t&2&&U(e,l[1])},d(l){l&&m(e)}}}function Hl(s){let e,l;return e=new Pe({props:{newTab:!0,href:ke({namespace:s[7],workflow:s[6],run:s[1]}),$$slots:{default:[ql]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},p(t,n){const r={};n&2&&(r.href=ke({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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function ot(s){let e,l,t,n,r,o;return r=new Qe({props:{content:s[5],class:"mb-2 h-full lg:pr-2",language:"text"}}),{c(){e=b("div"),l=b("p"),t=B("Stack trace"),n=C(),G(r.$$.fragment),this.h()},l(i){e=k(i,"DIV",{class:!0});var c=$(e);l=k(c,"P",{class:!0});var a=$(l);t=M(a,"Stack trace"),a.forEach(m),n=A(c),S(r.$$.fragment,c),c.forEach(m),this.h()},h(){g(l,"class","text-sm"),g(e,"class","flex flex-col lg:w-1/2")},m(i,c){I(i,e,c),h(e,l),h(l,t),h(e,n),O(r,e,null),o=!0},p(i,c){const a={};c&32&&(a.content=i[5]),r.$set(a)},i(i){o||(p(r.$$.fragment,i),o=!0)},o(i){w(r.$$.fragment,i),o=!1},d(i){i&&m(e),N(r)}}}function Wl(s){let e,l,t,n,r,o,i,c;const a=[jl,Rl,Fl,Nl,Ol],f=[];function u(d,_){return _&1&&(l=null),_&5&&(t=null),_&1&&(n=null),typeof d[1]=="object"?0:(l==null&&(l=!!Wt(d[0])),l?1:(t==null&&(t=!!zt(d[0],d[2])),t?2:(n==null&&(n=!!Qt(d[0])),n?3:4)))}return r=u(s,-1),o=f[r]=a[r](s),{c(){e=b("div"),o.c(),this.h()},l(d){e=k(d,"DIV",{class:!0});var _=$(e);o.l(_),_.forEach(m),this.h()},h(){g(e,"class",i="row "+s[8].class+" svelte-cl0oev")},m(d,_){I(d,e,_),f[r].m(e,null),c=!0},p(d,[_]){let v=r;r=u(d,_),r===v?f[r].p(d,_):(z(),w(f[v],1,1,()=>{f[v]=null}),Q(),o=f[r],o?o.p(d,_):(o=f[r]=a[r](d),o.c()),p(o,1),o.m(e,null)),(!c||_&256&&i!==(i="row "+d[8].class+" svelte-cl0oev"))&&g(e,"class",i)},i(d){c||(p(o),c=!0)},o(d){w(o),c=!1},d(d){d&&m(e),f[r].d()}}}function zl(s,e,l){let t,n,r;ce(s,Be,d=>l(9,r=d));let{key:o}=e,{value:i}=e,{attributes:c}=e,{inline:a=!1}=e;const{workflow:f,namespace:u}=r.params;return s.$$set=d=>{l(8,e=we(we({},e),De(d))),"key"in d&&l(0,o=d.key),"value"in d&&l(1,i=d.value),"attributes"in d&&l(2,c=d.attributes),"inline"in d&&l(3,a=d.inline)},s.$$.update=()=>{s.$$.dirty&2&&l(4,t=ze(i)),s.$$.dirty&16&&l(5,n=_l(t))},e=De(e),[o,i,c,a,t,n,f,u,e]}class Zt extends _e{constructor(e){super(),me(this,e,zl,Wl,he,{key:0,value:1,attributes:2,inline:3})}}function ft(s){let e,l,t;return l=new ve({props:{name:s[1]?"spinner":s[3]}}),{c(){e=b("span"),G(l.$$.fragment),this.h()},l(n){e=k(n,"SPAN",{});var r=$(e);S(l.$$.fragment,r),r.forEach(m),this.h()},h(){j(e,"animate-spin",s[1])},m(n,r){I(n,e,r),O(l,e,null),t=!0},p(n,r){const o={};r&10&&(o.name=n[1]?"spinner":n[3]),l.$set(o),(!t||r&2)&&j(e,"animate-spin",n[1])},i(n){t||(p(l.$$.fragment,n),t=!0)},o(n){w(l.$$.fragment,n),t=!1},d(n){n&&m(e),N(l)}}}function Ql(s){let e,l,t,n,r,o,i=s[3]&&ft(s);const c=s[7].default,a=jt(c,s,s[6],null);return{c(){e=b("button"),i&&i.c(),l=C(),a&&a.c(),this.h()},l(f){e=k(f,"BUTTON",{class:!0});var u=$(e);i&&i.l(u),l=A(u),a&&a.l(u),u.forEach(m),this.h()},h(){g(e,"class",t=nt(`pill ${s[5]} ${s[4]}`)+" svelte-czm4v2"),e.disabled=s[0],j(e,"active",s[2])},m(f,u){I(f,e,u),i&&i.m(e,null),h(e,l),a&&a.m(e,null),n=!0,r||(o=$e(e,"click",s[8]),r=!0)},p(f,[u]){f[3]?i?(i.p(f,u),u&8&&p(i,1)):(i=ft(f),i.c(),p(i,1),i.m(e,l)):i&&(z(),w(i,1,1,()=>{i=null}),Q()),a&&a.p&&(!n||u&64)&&Lt(a,c,f,f[6],n?Mt(c,f[6],u,null):Bt(f[6]),null),(!n||u&48&&t!==(t=nt(`pill ${f[5]} ${f[4]}`)+" svelte-czm4v2"))&&g(e,"class",t),(!n||u&1)&&(e.disabled=f[0]),(!n||u&52)&&j(e,"active",f[2])},i(f){n||(p(i),p(a,f),n=!0)},o(f){w(i),w(a,f),n=!1},d(f){f&&m(e),i&&i.d(),a&&a.d(f),r=!1,o()}}}function Jl(s,e,l){let{$$slots:t={},$$scope:n}=e,{disabled:r=!1}=e,{loading:o=!1}=e,{active:i=!1}=e,{icon:c=null}=e,{classes:a=e.class}=e,{color:f="gray"}=e;function u(d){el.call(this,s,d)}return s.$$set=d=>{l(9,e=we(we({},e),De(d))),"disabled"in d&&l(0,r=d.disabled),"loading"in d&&l(1,o=d.loading),"active"in d&&l(2,i=d.active),"icon"in d&&l(3,c=d.icon),"classes"in d&&l(4,a=d.classes),"color"in d&&l(5,f=d.color),"$$scope"in d&&l(6,n=d.$$scope)},e=De(e),[r,o,i,c,a,f,n,t,u]}class Kl extends _e{constructor(e){super(),me(this,e,Jl,Ql,he,{disabled:0,loading:1,active:2,icon:3,classes:4,color:5})}}function ct(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 ut(s){let e,l,t=[],n=new Map,r,o=Object.entries(s[0]);const i=c=>c[5];for(let c=0;c{r=null}),Q())},i(o){n||(p(r),n=!0)},o(o){w(r),n=!1},d(o){o&&m(l),r&&r.d(o),o&&m(t)}}}function Yl(s){let e,l,t=s[2]>1&&ut(s);return{c(){t&&t.c(),e=le()},l(n){t&&t.l(n),e=le()},m(n,r){t&&t.m(n,r),I(n,e,r),l=!0},p(n,[r]){n[2]>1?t?(t.p(n,r),r&4&&p(t,1)):(t=ut(n),t.c(),p(t,1),t.m(e.parentNode,e)):t&&(z(),w(t,1,1,()=>{t=null}),Q())},i(n){l||(p(t),l=!0)},o(n){w(t),l=!1},d(n){t&&t.d(n),n&&m(e)}}}function Zl(s,e,l){let t,{attributeGrouping:n}=e,{activePill:r}=e;const o=Ut(),i=c=>o("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,a)=>(a.length&&(c+=1),c),0))},[n,r,t,o,i]}class xt extends _e{constructor(e){super(),me(this,e,Zl,Yl,he,{attributeGrouping:0,activePill:1})}}function mt(s,e,l){const t=s.slice();return t[4]=e[l][0],t[5]=e[l][1],t}function ht(s,e){let l,t,n,r,o,i=e[4]+"",c,a,f,u,d=(Le(e[5])?"LocalActivity":e[5].eventType)+"",_,v,E,T,W,H;function Y(){return e[3](e[4])}return{key:s,first:null,c(){l=b("tr"),t=b("td"),n=C(),r=b("td"),o=b("p"),c=B(i),a=C(),f=b("td"),u=b("p"),_=B(d),v=C(),E=b("td"),T=C(),this.h()},l(D){l=k(D,"TR",{class:!0});var P=$(l);t=k(P,"TD",{class:!0}),$(t).forEach(m),n=A(P),r=k(P,"TD",{class:!0});var Z=$(r);o=k(Z,"P",{class:!0});var J=$(o);c=M(J,i),J.forEach(m),Z.forEach(m),a=A(P),f=k(P,"TD",{});var K=$(f);u=k(K,"P",{class:!0});var x=$(u);_=M(x,d),x.forEach(m),K.forEach(m),v=A(P),E=k(P,"TD",{}),$(E).forEach(m),T=A(P),P.forEach(m),this.h()},h(){g(t,"class","w-1/12"),g(o,"class","truncate text-sm text-gray-500 md:text-base"),g(r,"class","w-24"),g(u,"class","event-type truncate text-sm md:text-base svelte-1joe2mb"),g(l,"class","row svelte-1joe2mb"),j(l,"active",e[4]===e[1]),j(l,"failure",Ue(e[5])),j(l,"canceled",qe(e[5])),j(l,"terminated",He(e[5])),this.first=l},m(D,P){I(D,l,P),h(l,t),h(l,n),h(l,r),h(r,o),h(o,c),h(l,a),h(l,f),h(f,u),h(u,_),h(l,v),h(l,E),h(l,T),W||(H=$e(l,"click",qt(ll(Y))),W=!0)},p(D,P){e=D,P&1&&i!==(i=e[4]+"")&&U(c,i),P&1&&d!==(d=(Le(e[5])?"LocalActivity":e[5].eventType)+"")&&U(_,d),P&3&&j(l,"active",e[4]===e[1]),P&1&&j(l,"failure",Ue(e[5])),P&1&&j(l,"canceled",qe(e[5])),P&1&&j(l,"terminated",He(e[5]))},d(D){D&&m(l),W=!1,H()}}}function xl(s){let e=[],l=new Map,t,n=[...s[0].events].reverse();const r=o=>o[4];for(let o=0;or(i);return s.$$set=i=>{"eventGroup"in i&&l(0,t=i.eventGroup),"selectedId"in i&&l(1,n=i.selectedId),"onGroupClick"in i&&l(2,r=i.onGroupClick)},[t,n,r,o]}class ln extends _e{constructor(e){super(),me(this,e,tn,en,he,{eventGroup:0,selectedId:1,onGroupClick:2})}}function vt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function pt(s,e,l){const t=s.slice();return t[10]=e[l][0],t[11]=e[l][1],t}function nn(s){let e,l,t,n=[],r=new Map,o;l=new xt({props:{attributeGrouping:s[4],activePill:s[5]}}),l.$on("pillChange",s[7]);let i=s[6];const c=a=>a[10];for(let a=0;ad[10];for(let d=0;d{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function kt(s){let e,l;return e=new Zt({props:{key:s[10],value:s[11],attributes:s[3],class:"w-full"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function $t(s,e){var i;let l,t=(i=e[4][e[5]])==null?void 0:i.includes(e[10]),n,r,o=t&&kt(e);return{key:s,first:null,c(){l=le(),o&&o.c(),n=le(),this.h()},l(c){l=le(),o&&o.l(c),n=le(),this.h()},h(){this.first=l},m(c,a){I(c,l,a),o&&o.m(c,a),I(c,n,a),r=!0},p(c,a){var f;e=c,a&112&&(t=(f=e[4][e[5]])==null?void 0:f.includes(e[10])),t?o?(o.p(e,a),a&112&&p(o,1)):(o=kt(e),o.c(),p(o,1),o.m(n.parentNode,n)):o&&(z(),w(o,1,1,()=>{o=null}),Q())},i(c){r||(p(o),r=!0)},o(c){w(o),r=!1},d(c){c&&m(l),o&&o.d(c),c&&m(n)}}}function sn(s){let e,l,t,n,r;const o=[rn,nn],i=[];function c(a,f){return f&6&&(e=null),e==null&&(e=!!(a[2]&&Fe(a[1]))),e?0:1}return l=c(s,-1),t=i[l]=o[l](s),{c(){t.c(),n=le()},l(a){t.l(a),n=le()},m(a,f){i[l].m(a,f),I(a,n,f),r=!0},p(a,[f]){let u=l;l=c(a,f),l===u?i[l].p(a,f):(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),t=i[l],t?t.p(a,f):(t=i[l]=o[l](a),t.c()),p(t,1),t.m(n.parentNode,n))},i(a){r||(p(t),r=!0)},o(a){w(t),r=!1},d(a){i[l].d(a),a&&m(n)}}}function an(s,e,l){let t,n,r,o,{event:i}=e,{currentEvent:c}=e,{compact:a=!1}=e,{selectedId:f}=e;const u=_=>{l(5,r=_.detail.key)},d=_=>l(0,f=_);return s.$$set=_=>{"event"in _&&l(1,i=_.event),"currentEvent"in _&&l(9,c=_.currentEvent),"compact"in _&&l(2,a=_.compact),"selectedId"in _&&l(0,f=_.selectedId)},s.$$.update=()=>{s.$$.dirty&516&&l(3,t=Jt(c,{compact:a})),s.$$.dirty&10&&l(4,n=ml(i,t)),s.$$.dirty&16&&l(5,r=Object.keys(n).find(_=>n[_].length)),s.$$.dirty&8&&l(6,o=Object.entries(t))},[f,i,a,t,n,r,o,u,d,c]}class on extends _e{constructor(e){super(),me(this,e,an,sn,he,{event:1,currentEvent:9,compact:2,selectedId:0})}}function fn(s){var t;let e=rt((t=s[0])==null?void 0:t.eventTime,s[12])+"",l;return{c(){l=B(e)},l(n){l=M(n,e)},m(n,r){I(n,l,r)},p(n,r){var o;r&4097&&e!==(e=rt((o=n[0])==null?void 0:o.eventTime,n[12])+"")&&U(l,e)},d(n){n&&m(l)}}}function cn(s){let e=We({start:s[1].eventTime,end:s[7].eventTime})+"",l,t,n;return{c(){l=B(e),t=C(),n=B(s[9])},l(r){l=M(r,e),t=A(r),n=M(r,s[9])},m(r,o){I(r,l,o),I(r,t,o),I(r,n,o)},p(r,o){o&130&&e!==(e=We({start:r[1].eventTime,end:r[7].eventTime})+"")&&U(l,e),o&512&&U(n,r[9])},d(r){r&&m(l),r&&m(t),r&&m(n)}}}function wt(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-red-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Et(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-yellow-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function It(s){let e,l;return e=new ve({props:{class:"mr-1.5 inline text-pink-700",name:"clock"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Dt(s){let e,l;const t=[at(s[7]),{attributes:s[10]},{class:"invisible h-0 w-0 md:visible md:h-auto md:w-auto"},{inline:!0}];let n={};for(let r=0;ral(t,"selectedId",i)),{c(){e=b("tr"),l=b("td"),G(t.$$.fragment),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{class:!0,colspan:!0});var u=$(l);S(t.$$.fragment,u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"class","expanded-cell svelte-aaifo7"),g(l,"colspan","6"),g(e,"class","svelte-aaifo7"),j(e,"typedError",s[4])},m(a,f){I(a,e,f),h(e,l),O(t,l,null),o=!0},p(a,f){const u={};f&1&&(u.event=a[0]),f&128&&(u.currentEvent=a[7]),f&4&&(u.compact=a[2]),!n&&f&64&&(n=!0,u.selectedId=a[6],il(()=>n=!1)),t.$set(u),(!o||f&16)&&j(e,"typedError",a[4])},i(a){o||(p(t.$$.fragment,a),a&&(r||ol(()=>{r=fl(e,cl,{}),r.start()})),o=!0)},o(a){w(t.$$.fragment,a),o=!1},d(a){a&&m(e),N(t)}}}function un(s){let e,l,t,n,r,o,i=s[0].id+"",c,a,f,u,d,_,v,E,T,W,H,Y,D=(Le(s[0])?"LocalActivity":s[0].name)+"",P,Z,J,K,x,fe,pe,F,oe,q,R,V,X,ue,ie,Ie,Ce;function ge(y,L){return y[11]?cn:fn}let Ge=ge(s),de=Ge(s),re=s[2]&&s[14]&&wt(),se=s[2]&&s[15]&&Et(),ae=s[2]&&s[16]&&It(),ee=!s[8]&&Dt(s);F=new ve({props:{class:"inline",name:s[8]?"chevron-up":"chevron-down"}});let te=s[8]&&Tt(s);return{c(){e=b("tr"),l=b("td"),t=C(),n=b("td"),r=b("a"),o=b("p"),c=B(i),f=C(),u=b("td"),d=b("p"),de.c(),_=C(),v=b("td"),E=b("div"),re&&re.c(),T=C(),se&&se.c(),W=C(),ae&&ae.c(),H=C(),Y=b("p"),P=B(D),Z=C(),J=b("td"),K=b("div"),x=b("div"),ee&&ee.c(),fe=C(),pe=b("div"),G(F.$$.fragment),oe=C(),q=b("td"),X=C(),te&&te.c(),ue=le(),this.h()},l(y){e=k(y,"TR",{class:!0,id:!0,"aria-expanded":!0,"data-testid":!0});var L=$(e);l=k(L,"TD",{}),$(l).forEach(m),t=A(L),n=k(L,"TD",{class:!0});var Ae=$(n);r=k(Ae,"A",{class:!0,href:!0});var Je=$(r);o=k(Je,"P",{class:!0});var Ke=$(o);c=M(Ke,i),Ke.forEach(m),Je.forEach(m),Ae.forEach(m),f=A(L),u=k(L,"TD",{class:!0});var Xe=$(u);d=k(Xe,"P",{class:!0});var Ye=$(d);de.l(Ye),Ye.forEach(m),Xe.forEach(m),_=A(L),v=k(L,"TD",{class:!0});var Ze=$(v);E=k(Ze,"DIV",{class:!0});var be=$(E);re&&re.l(be),T=A(be),se&&se.l(be),W=A(be),ae&&ae.l(be),H=A(be),Y=k(be,"P",{class:!0});var xe=$(Y);P=M(xe,D),xe.forEach(m),be.forEach(m),Ze.forEach(m),Z=A(L),J=k(L,"TD",{class:!0});var et=$(J);K=k(et,"DIV",{class:!0});var Se=$(K);x=k(Se,"DIV",{class:!0});var tt=$(x);ee&&ee.l(tt),tt.forEach(m),fe=A(Se),pe=k(Se,"DIV",{});var lt=$(pe);S(F.$$.fragment,lt),lt.forEach(m),Se.forEach(m),et.forEach(m),oe=A(L),q=k(L,"TD",{}),$(q).forEach(m),L.forEach(m),X=A(y),te&&te.l(y),ue=le(),this.h()},h(){g(o,"class","truncate"),g(r,"class","text-sm text-gray-500 md:text-base"),g(r,"href",a="#"+s[0].id),g(n,"class","w-24 text-left"),g(d,"class","break-word truncate text-sm md:whitespace-normal md:text-base"),g(u,"class","text-left"),g(Y,"class","event-name truncate text-sm font-semibold md:text-base svelte-aaifo7"),g(E,"class","flex"),g(v,"class","text-right text-sm font-normal xl:text-left"),g(x,"class","grow truncate"),g(K,"class","flex w-full items-center justify-between"),g(J,"class","overflow-hidden"),g(e,"class","row svelte-aaifo7"),g(e,"id",R=s[0].id),g(e,"aria-expanded",V=s[8]||s[3]),g(e,"data-testid","event-summary-row"),j(e,"expanded",s[8]&&!s[3]),j(e,"active",s[5]),j(e,"failure",s[14]),j(e,"canceled",s[15]),j(e,"terminated",s[16]),j(e,"typedError",s[4])},m(y,L){I(y,e,L),h(e,l),h(e,t),h(e,n),h(n,r),h(r,o),h(o,c),h(e,f),h(e,u),h(u,d),de.m(d,null),h(e,_),h(e,v),h(v,E),re&&re.m(E,null),h(E,T),se&&se.m(E,null),h(E,W),ae&&ae.m(E,null),h(E,H),h(E,Y),h(Y,P),h(e,Z),h(e,J),h(J,K),h(K,x),ee&&ee.m(x,null),h(K,fe),h(K,pe),O(F,pe,null),h(e,oe),h(e,q),I(y,X,L),te&&te.m(y,L),I(y,ue,L),ie=!0,Ie||(Ce=$e(e,"click",qt(s[13])),Ie=!0)},p(y,[L]){(!ie||L&1)&&i!==(i=y[0].id+"")&&U(c,i),(!ie||L&1&&a!==(a="#"+y[0].id))&&g(r,"href",a),Ge===(Ge=ge(y))&&de?de.p(y,L):(de.d(1),de=Ge(y),de&&(de.c(),de.m(d,null))),y[2]&&y[14]?re?L&4&&p(re,1):(re=wt(),re.c(),p(re,1),re.m(E,T)):re&&(z(),w(re,1,1,()=>{re=null}),Q()),y[2]&&y[15]?se?L&4&&p(se,1):(se=Et(),se.c(),p(se,1),se.m(E,W)):se&&(z(),w(se,1,1,()=>{se=null}),Q()),y[2]&&y[16]?ae?L&4&&p(ae,1):(ae=It(),ae.c(),p(ae,1),ae.m(E,H)):ae&&(z(),w(ae,1,1,()=>{ae=null}),Q()),(!ie||L&1)&&D!==(D=(Le(y[0])?"LocalActivity":y[0].name)+"")&&U(P,D),y[8]?ee&&(z(),w(ee,1,1,()=>{ee=null}),Q()):ee?(ee.p(y,L),L&256&&p(ee,1)):(ee=Dt(y),ee.c(),p(ee,1),ee.m(x,null));const Ae={};L&256&&(Ae.name=y[8]?"chevron-up":"chevron-down"),F.$set(Ae),(!ie||L&1&&R!==(R=y[0].id))&&g(e,"id",R),(!ie||L&264&&V!==(V=y[8]||y[3]))&&g(e,"aria-expanded",V),(!ie||L&264)&&j(e,"expanded",y[8]&&!y[3]),(!ie||L&32)&&j(e,"active",y[5]),(!ie||L&16)&&j(e,"typedError",y[4]),y[8]?te?(te.p(y,L),L&256&&p(te,1)):(te=Tt(y),te.c(),p(te,1),te.m(ue.parentNode,ue)):te&&(z(),w(te,1,1,()=>{te=null}),Q())},i(y){ie||(p(re),p(se),p(ae),p(ee),p(F.$$.fragment,y),p(te),ie=!0)},o(y){w(re),w(se),w(ae),w(ee),w(F.$$.fragment,y),w(te),ie=!1},d(y){y&&m(e),de.d(),re&&re.d(),se&&se.d(),ae&&ae.d(),ee&&ee.d(),N(F),y&&m(X),te&&te.d(y),y&&m(ue),Ie=!1,Ce()}}}function dn(s,e,l){let t,n,r,o,i,c,a,f,u,d;ce(s,Ne,F=>l(22,f=F)),ce(s,Me,F=>l(23,u=F)),ce(s,Ht,F=>l(12,d=F));var _;let{event:v}=e,{visibleItems:E}=e,{initialItem:T}=e,{compact:W=!1}=e,{expandAll:H=!1}=e,{typedError:Y=!1}=e,{active:D=!1}=e,{onRowClick:P=Te}=e,Z=Fe(v)?Array.from(v.events.keys()).pop():v.id;const J=()=>{l(8,t=!t),P()},K=Ue(v),x=qe(v),fe=He(v);function pe(F){Z=F,l(6,Z)}return s.$$set=F=>{"event"in F&&l(0,v=F.event),"visibleItems"in F&&l(17,E=F.visibleItems),"initialItem"in F&&l(1,T=F.initialItem),"compact"in F&&l(2,W=F.compact),"expandAll"in F&&l(3,H=F.expandAll),"typedError"in F&&l(4,Y=F.typedError),"active"in F&&l(5,D=F.active),"onRowClick"in F&&l(18,P=F.onRowClick)},s.$$.update=()=>{if(s.$$.dirty&40&&l(8,t=H||D),s.$$.dirty&65&&l(7,n=Fe(v)?v.events.get(Z):v),s.$$.dirty&8388608&&l(20,r=u==="descending"),s.$$.dirty&4194304&&l(21,o=f==="true"),s.$$.dirty&2097155&&l(11,i=o&&T&&v.id!==T.id),s.$$.dirty&5&&l(10,c=Jt(v,{compact:W})),s.$$.dirty&1704065){const F=E.indexOf(v),oe=E[F-1];if(oe){const q=We({start:Fe(oe)?l(19,_=oe==null?void 0:oe.initialEvent)===null||_===void 0?void 0:_.eventTime:oe==null?void 0:oe.eventTime,end:n==null?void 0:n.eventTime});l(9,a=q?`(${r?"-":"+"}${q})`:"")}}},l(9,a=""),[v,T,W,H,Y,D,Z,n,t,a,c,i,d,J,K,x,fe,E,P,_,r,o,f,u,pe]}class lr extends _e{constructor(e){super(),me(this,e,dn,un,he,{event:0,visibleItems:17,initialItem:1,compact:2,expandAll:3,typedError:4,active:5,onRowClick:18})}}function Vt(s,e,l){const t=s.slice();return t[1]=e[l].label,t[10]=e[l].option,t}function Pt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function yt(s,e){let l,t,n,r,o=e[1]+"",i,c,a,f,u,d=e[0]===e[10]&&Pt();function _(){return e[8](e[10])}return{key:s,first:null,c(){l=b("div"),t=b("div"),d&&d.c(),n=C(),r=b("button"),i=B(o),c=C(),this.h()},l(v){l=k(v,"DIV",{class:!0});var E=$(l);t=k(E,"DIV",{class:!0});var T=$(t);d&&d.l(T),T.forEach(m),n=A(E),r=k(E,"BUTTON",{"data-testid":!0});var W=$(r);i=M(W,o),W.forEach(m),c=A(E),E.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-category-option"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[0]===e[10]),this.first=l},m(v,E){I(v,l,E),h(l,t),d&&d.m(t,null),h(l,n),h(l,r),h(r,i),h(l,c),a=!0,f||(u=$e(r,"click",_),f=!0)},p(v,E){e=v,e[0]===e[10]?d?E&1&&p(d,1):(d=Pt(),d.c(),p(d,1),d.m(t,null)):d&&(z(),w(d,1,1,()=>{d=null}),Q()),(!a||E&5)&&j(l,"active",e[0]===e[10])},i(v){a||(p(d),a=!0)},o(v){w(d),a=!1},d(v){v&&m(l),d&&d.d(),f=!1,u()}}}function _n(s){let e,l=[],t=new Map,n,r=s[2];const o=i=>i[10];for(let i=0;il(9,r=_)),ce(s,Be,_=>l(7,o=_));var i,c;let{compact:a=!1}=e,f=a?vl:pl;const u=_=>{l(0,n=_)},d=_=>u(_);return s.$$set=_=>{"compact"in _&&l(4,a=_.compact)},s.$$.update=()=>{s.$$.dirty&16&&l(1,t=a?"Event Type":"Workflow Events"),s.$$.dirty&224&&l(0,n=l(6,c=l(5,i=o.url)===null||i===void 0?void 0:i.searchParams)===null||c===void 0?void 0:c.get(Ct)),s.$$.dirty&129&&Yt({parameter:Ct,value:n,url:o.url}).then(_=>{var v;l(0,n=(v=_==null?void 0:_.toString())!==null&&v!==void 0?v:null),Oe(it,r=n,r)})},[n,t,f,u,a,i,c,o,d]}class pn extends _e{constructor(e){super(),me(this,e,vn,hn,he,{compact:4})}}const gn=({compact:s,timeFormat:e,sortOrder:l,showElapsed:t})=>{if(!((s||l==="descending")&&e==="UTC"&&t==="false"))return`${l}:${e}:${t}`};function At(s,e,l){const t=s.slice();return t[13]=e[l].label,t[14]=e[l].option,t}function Gt(s,e,l){const t=s.slice();return t[14]=e[l].option,t[13]=e[l].label,t}function St(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ot(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[1]===e[14]&&St();function d(){return e[10](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[1]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[1]===e[14]?u?v&2&&p(u,1):(u=St(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&18)&&j(l,"active",e[1]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Nt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Ft(s,e){let l,t,n,r,o=e[13]+"",i,c,a,f,u=e[2]===e[14]&&Nt();function d(){return e[11](e[14])}return{key:s,first:null,c(){l=b("div"),t=b("div"),u&&u.c(),n=C(),r=b("button"),i=B(o),this.h()},l(_){l=k(_,"DIV",{class:!0});var v=$(l);t=k(v,"DIV",{class:!0});var E=$(t);u&&u.l(E),E.forEach(m),n=A(v),r=k(v,"BUTTON",{"data-testid":!0});var T=$(r);i=M(T,o),T.forEach(m),v.forEach(m),this.h()},h(){g(t,"class","check active svelte-1rp7hf"),g(r,"data-testid","event-date-filter-"+e[14]),g(l,"class","option svelte-1rp7hf"),j(l,"active",e[2]===e[14]),this.first=l},m(_,v){I(_,l,v),h(l,t),u&&u.m(t,null),h(l,n),h(l,r),h(r,i),c=!0,a||(f=$e(r,"click",d),a=!0)},p(_,v){e=_,e[2]===e[14]?u?v&4&&p(u,1):(u=Nt(),u.c(),p(u,1),u.m(t,null)):u&&(z(),w(u,1,1,()=>{u=null}),Q()),(!c||v&36)&&j(l,"active",e[2]===e[14])},i(_){c||(p(u),c=!0)},o(_){w(u),c=!1},d(_){_&&m(l),u&&u.d(),a=!1,f()}}}function Rt(s){let e,l;return e=new ve({props:{name:"checkmark"}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function bn(s){let e,l=[],t=new Map,n,r,o,i,c,a,f=[],u=new Map,d,_,v,E,T,W,H,Y,D,P,Z,J,K,x,fe=s[4];const pe=R=>R[14];for(let R=0;RR[14];for(let R=0;R{q=null}),Q()),(!J||V&1)&&j(H,"active",R[0]==="true")},i(R){if(!J){for(let V=0;Vl(0,n=T)),ce(s,Me,T=>l(1,r=T)),ce(s,Ht,T=>l(2,o=T)),ce(s,Be,T=>l(12,i=T));let{compact:c}=e,a=[{label:"Sort 1-9",option:"ascending"},{label:"Sort 9-1",option:"descending"}],f=[{label:"Relative",option:"relative"},{label:"UTC",option:"UTC"},{label:"Local",option:"local"}];const u=T=>{Oe(Me,r=T,r),Yt({parameter:"sort",value:T,url:i.url})},d=T=>{dl(T)},_=()=>{n==="true"?Oe(Ne,n="false",n):Oe(Ne,n="true",n)},v=T=>u(T),E=T=>d(T);return s.$$set=T=>{"compact"in T&&l(9,c=T.compact)},s.$$.update=()=>{s.$$.dirty&519&&l(3,t=gn({compact:c,timeFormat:o,sortOrder:r,showElapsed:n}))},[n,r,o,t,a,f,u,d,_,c,v,E]}class En extends _e{constructor(e){super(),me(this,e,wn,$n,he,{compact:9})}}function In(s){let e;const l=s[4].default,t=jt(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)&&Lt(t,l,n,n[5],e?Mt(l,n[5],r,null):Bt(n[5]),null)},i(n){e||(p(t,n),e=!0)},o(n){w(t,n),e=!1},d(n){t&&t.d(n)}}}function Dn(s){let e,l,t,n,r,o,i,c,a,f,u,d,_=s[2]?"Collapse all":"Expand All",v,E,T,W,H,Y;return n=new En({props:{compact:s[0]}}),i=new pn({props:{compact:s[0]}}),T=new ve({props:{name:s[2]?"chevron-up":"chevron-down"}}),{c(){e=b("th"),l=C(),t=b("th"),G(n.$$.fragment),r=C(),o=b("th"),G(i.$$.fragment),c=C(),a=b("th"),f=b("div"),u=b("button"),d=b("span"),v=B(_),E=C(),G(T.$$.fragment),this.h()},l(D){e=k(D,"TH",{class:!0}),$(e).forEach(m),l=A(D),t=k(D,"TH",{class:!0});var P=$(t);S(n.$$.fragment,P),P.forEach(m),r=A(D),o=k(D,"TH",{class:!0});var Z=$(o);S(i.$$.fragment,Z),Z.forEach(m),c=A(D),a=k(D,"TH",{class:!0});var J=$(a);f=k(J,"DIV",{class:!0});var K=$(f);u=k(K,"BUTTON",{class:!0});var x=$(u);d=k(x,"SPAN",{class:!0});var fe=$(d);v=M(fe,_),fe.forEach(m),E=A(x),S(T.$$.fragment,x),x.forEach(m),K.forEach(m),J.forEach(m),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(t,"class","w-16 md:w-32"),g(o,"class","w-44"),g(d,"class","hidden sm:block"),g(u,"class","relative flex w-28 items-center justify-end rounded sm:justify-between"),g(f,"class","flex w-full justify-end"),g(a,"class","w-auto xl:w-80")},m(D,P){I(D,e,P),I(D,l,P),I(D,t,P),O(n,t,null),I(D,r,P),I(D,o,P),O(i,o,null),I(D,c,P),I(D,a,P),h(a,f),h(f,u),h(u,d),h(d,v),h(u,E),O(T,u,null),W=!0,H||(Y=$e(u,"click",s[3]),H=!0)},p(D,P){const Z={};P&1&&(Z.compact=D[0]),n.$set(Z);const J={};P&1&&(J.compact=D[0]),i.$set(J),(!W||P&4)&&_!==(_=D[2]?"Collapse all":"Expand All")&&U(v,_);const K={};P&4&&(K.name=D[2]?"chevron-up":"chevron-down"),T.$set(K)},i(D){W||(p(n.$$.fragment,D),p(i.$$.fragment,D),p(T.$$.fragment,D),W=!0)},o(D){w(n.$$.fragment,D),w(i.$$.fragment,D),w(T.$$.fragment,D),W=!1},d(D){D&&m(e),D&&m(l),D&&m(t),N(n),D&&m(r),D&&m(o),N(i),D&&m(c),D&&m(a),N(T),H=!1,Y()}}}function Tn(s){let e,l;return e=new hl({props:{slot:"headers",$$slots:{default:[Dn]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Vn(s){let e,l;return e=new Kt({props:{updating:s[1],class:"dark w-full table-fixed",$$slots:{headers:[Tn],default:[In]},$$scope:{ctx:s}}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(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){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Pn(s,e,l){let t;ce(s,ul,u=>l(6,t=u));let{$$slots:n={},$$scope:r}=e,{compact:o=!1}=e,{updating:i=!1}=e,c=t==="true";const a=Ut();function f(){l(2,c=!c),a("expandAll",{expanded:c?"true":"false"})}return s.$$set=u=>{"compact"in u&&l(0,o=u.compact),"updating"in u&&l(1,i=u.updating),"$$scope"in u&&l(5,r=u.$$scope)},[o,i,c,f,n,r]}class nr extends _e{constructor(e){super(),me(this,e,Pn,Vn,he,{compact:0,updating:1})}}function yn(s){let e,l;return e=new gl({props:{title:"No Events Match",content:"There are no events that match your filters or selected view. Adjust your filters or view to see your events."}}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function Cn(s){let e,l;return e=new bl({}),{c(){G(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,n){O(e,t,n),l=!0},i(t){l||(p(e.$$.fragment,t),l=!0)},o(t){w(e.$$.fragment,t),l=!1},d(t){N(e,t)}}}function An(s){let e,l,t,n,r;const o=[Cn,yn],i=[];function c(a,f){return a[0]?0:1}return t=c(s),n=i[t]=o[t](s),{c(){e=b("tr"),l=b("td"),n.c(),this.h()},l(a){e=k(a,"TR",{class:!0});var f=$(e);l=k(f,"TD",{colspan:!0});var u=$(l);n.l(u),u.forEach(m),f.forEach(m),this.h()},h(){g(l,"colspan","6"),g(e,"class","row svelte-kwty14")},m(a,f){I(a,e,f),h(e,l),i[t].m(l,null),r=!0},p(a,[f]){let u=t;t=c(a),t!==u&&(z(),w(i[u],1,1,()=>{i[u]=null}),Q(),n=i[t],n||(n=i[t]=o[t](a),n.c()),p(n,1),n.m(l,null))},i(a){r||(p(n),r=!0)},o(a){w(n),r=!1},d(a){a&&m(e),i[t].d()}}}function Gn(s,e,l){let{loading:t=!1}=e;return s.$$set=n=>{"loading"in n&&l(0,t=n.loading)},[t]}class rr extends _e{constructor(e){super(),me(this,e,Gn,An,he,{loading:0})}}export{nr as E,rr as a,lr as b}; diff --git a/ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e20a3c.js b/ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e077a9.js similarity index 88% rename from ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e20a3c.js rename to ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e077a9.js index 04da250a6e..c44ea49550 100644 --- a/ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e20a3c.js +++ b/ui/assets/local/_app/immutable/chunks/event-history-file-import.a9e077a9.js @@ -1 +1 @@ -import{S as $,b as C,a as k,m as w,c as F,C as I,p as N,d as T,D as U,u as g,f as y,E as x,T as A,j as B,g as j,k as b,F as G,K as h,w as H,x as J}from"./index.a36c9cb0.js";import{d as O}from"./route-for.6dec3e74.js";import{g as q}from"./navigation.724a9b89.js";import{B as D}from"./button.dbc76a4c.js";import{t as K}from"./index.1292c373.js";import{t as S}from"./toaster.16c48a98.js";import{i as L,a as P}from"./import-events.8d158e6c.js";import{p as R}from"./parse-with-big-int.0036a80a.js";import{g as W}from"./index.f8c667a1.js";import{p as z}from"./stores.48be4ca9.js";import{a as M}from"./auth-user.3a7bc4db.js";import{l as Q}from"./namespaces.85dd7810.js";function V(r){let o;return{c(){o=H("Import")},l(e){o=J(e,"Import")},m(e,s){y(e,o,s)},d(e){e&&b(o)}}}function X(r){let o,e,s,p,c,a;return s=new D({props:{icon:"file-upload",disabled:!r[0],$$slots:{default:[V]},$$scope:{ctx:r}}}),s.$on("click",r[2]),{c(){o=w("input"),e=F(),I(s.$$.fragment),this.h()},l(t){o=N(t,"INPUT",{class:!0,type:!0,accept:!0}),e=T(t),U(s.$$.fragment,t),this.h()},h(){g(o,"class","import-input block rounded-md border border-gray-200 p-2"),g(o,"type","file"),g(o,"accept",".json")},m(t,i){y(t,o,i),y(t,e,i),x(s,t,i),p=!0,c||(a=A(o,"change",r[1]),c=!0)},p(t,[i]){const f={};i&1&&(f.disabled=!t[0]),i&128&&(f.$$scope={dirty:i,ctx:t}),s.$set(f)},i(t){p||(B(s.$$.fragment,t),p=!0)},o(t){j(s.$$.fragment,t),p=!1},d(t){t&&b(o),t&&b(e),G(s,t),c=!1,a()}}}function Y(r,o,e){let s,p,c;h(r,Q,n=>e(4,s=n)),h(r,M,n=>e(5,p=n)),h(r,z,n=>e(6,c=n));let a,t=!1;return[t,async n=>{var l;const m=n.target,d=(l=m==null?void 0:m.files)===null||l===void 0?void 0:l[0],u=new FileReader;d&&(u.readAsText(d),u.onload=()=>{var _,v;try{const E=(v=(_=u==null?void 0:u.result)===null||_===void 0?void 0:_.toString())!==null&&v!==void 0?v:"";a=R(E),e(0,t=!0)}catch{S.push({variant:"error",message:"Could not parse JSON"}),e(0,t=!1)}})},async()=>{const{settings:n}=c.data;try{const l=await K({response:Array.isArray(a)?a:a==null?void 0:a.events,namespace:s,settings:n,accessToken:p.accessToken}),m=W(l);L.set(l),P.set(m),e(0,t=!1);const d=O(s,"feed");q(d)}catch(l){console.error(l),S.push({variant:"error",message:"Could not create event history from JSON"})}}]}class mt extends ${constructor(o){super(),C(this,o,Y,X,k,{})}}export{mt as E}; +import{S as $,b as C,a as k,m as w,c as F,C as I,p as N,d as T,D as U,u as g,f as y,E as x,T as A,j as B,g as j,k as b,F as G,K as h,w as H,x as J}from"./index.a36c9cb0.js";import{d as O}from"./route-for.e1b7889c.js";import{g as q}from"./navigation.0861544c.js";import{B as D}from"./button.dbc76a4c.js";import{t as K}from"./index.42d6ae10.js";import{t as S}from"./toaster.16c48a98.js";import{i as L,a as P}from"./import-events.8d158e6c.js";import{p as R}from"./parse-with-big-int.0036a80a.js";import{g as W}from"./index.f8c667a1.js";import{p as z}from"./stores.4d55fa19.js";import{a as M}from"./auth-user.3a7bc4db.js";import{l as Q}from"./namespaces.85dd7810.js";function V(r){let o;return{c(){o=H("Import")},l(e){o=J(e,"Import")},m(e,s){y(e,o,s)},d(e){e&&b(o)}}}function X(r){let o,e,s,p,c,a;return s=new D({props:{icon:"file-upload",disabled:!r[0],$$slots:{default:[V]},$$scope:{ctx:r}}}),s.$on("click",r[2]),{c(){o=w("input"),e=F(),I(s.$$.fragment),this.h()},l(t){o=N(t,"INPUT",{class:!0,type:!0,accept:!0}),e=T(t),U(s.$$.fragment,t),this.h()},h(){g(o,"class","import-input block rounded-md border border-gray-200 p-2"),g(o,"type","file"),g(o,"accept",".json")},m(t,i){y(t,o,i),y(t,e,i),x(s,t,i),p=!0,c||(a=A(o,"change",r[1]),c=!0)},p(t,[i]){const f={};i&1&&(f.disabled=!t[0]),i&128&&(f.$$scope={dirty:i,ctx:t}),s.$set(f)},i(t){p||(B(s.$$.fragment,t),p=!0)},o(t){j(s.$$.fragment,t),p=!1},d(t){t&&b(o),t&&b(e),G(s,t),c=!1,a()}}}function Y(r,o,e){let s,p,c;h(r,Q,n=>e(4,s=n)),h(r,M,n=>e(5,p=n)),h(r,z,n=>e(6,c=n));let a,t=!1;return[t,async n=>{var l;const m=n.target,d=(l=m==null?void 0:m.files)===null||l===void 0?void 0:l[0],u=new FileReader;d&&(u.readAsText(d),u.onload=()=>{var _,v;try{const E=(v=(_=u==null?void 0:u.result)===null||_===void 0?void 0:_.toString())!==null&&v!==void 0?v:"";a=R(E),e(0,t=!0)}catch{S.push({variant:"error",message:"Could not parse JSON"}),e(0,t=!1)}})},async()=>{const{settings:n}=c.data;try{const l=await K({response:Array.isArray(a)?a:a==null?void 0:a.events,namespace:s,settings:n,accessToken:p.accessToken}),m=W(l);L.set(l),P.set(m),e(0,t=!1);const d=O(s,"feed");q(d)}catch(l){console.error(l),S.push({variant:"error",message:"Could not create event history from JSON"})}}]}class mt extends ${constructor(o){super(),C(this,o,Y,X,k,{})}}export{mt as E}; diff --git a/ui/assets/local/_app/immutable/chunks/events-service.d0c588a2.js b/ui/assets/local/_app/immutable/chunks/events-service.389da786.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/events-service.d0c588a2.js rename to ui/assets/local/_app/immutable/chunks/events-service.389da786.js index ca9b5f390a..4f949ca4c2 100644 --- a/ui/assets/local/_app/immutable/chunks/events-service.d0c588a2.js +++ b/ui/assets/local/_app/immutable/chunks/events-service.389da786.js @@ -1 +1 @@ -import{d as p,w as B}from"./index.deae5bd4.js";import{p as S}from"./stores.48be4ca9.js";import{e as W}from"./event-view.f557cd63.js";import{l as R}from"./route-for.6dec3e74.js";import{r as V}from"./workflow-run.8a407b5f.js";import{a as X}from"./auth-user.3a7bc4db.js";import{S as Y,b as Z,a as U,N as q,m as b,c as z,w as x,p as k,q as y,d as C,x as $,k as h,u as A,Q as N,R as w,f as D,L as E,j as v,z as j,g,h as G,y as ee,U as te,a5 as J,ad as se,O as ne,C as ae,D as re,E as oe,F as le,G as ie,H as ce,I as fe,J as ue}from"./index.a36c9cb0.js";import{I as me}from"./icon.33859671.js";import{p as K}from"./paginated.a32521a1.js";import{r as H,a as P}from"./route-for-api.6ac9324b.js";import{t as F}from"./index.1292c373.js";import{b as de}from"./has.48bed8a5.js";const _e=p([S],([t])=>t.params.namespace?R(t.params.namespace):""),ve=p([S],([t])=>t.params.workflow?R(t.params.workflow):""),he=p([S],([t])=>t.params.run?R(t.params.run):""),pe=p([S],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),ge=p([X],([t])=>t==null?void 0:t.accessToken),Ee=p([_e,ve,he,W],([t,e,n,o])=>({namespace:t,workflowId:e,runId:n,sort:o}));p([Ee,pe,ge,V],([t,e,n,o])=>({...t,settings:e,accessToken:n,refresh:V,$refresh:o}));const be={start:[],end:[]},ze=B(be),Ce=B(null);function L(t){let e,n,o;return n=new me({props:{name:t[2]}}),{c(){e=b("div"),ae(n.$$.fragment)},l(s){e=k(s,"DIV",{});var r=y(e);re(n.$$.fragment,r),r.forEach(h)},m(s,r){D(s,e,r),oe(n,e,null),o=!0},p(s,r){const c={};r&4&&(c.name=s[2]),n.$set(c)},i(s){o||(v(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&h(e),le(n)}}}function O(t){let e,n;const o=t[8].default,s=ie(o,t,t[7],null);return{c(){e=b("div"),s&&s.c(),this.h()},l(r){e=k(r,"DIV",{class:!0});var c=y(e);s&&s.l(c),c.forEach(h),this.h()},h(){A(e,"class","content svelte-1u0e3fc")},m(r,c){D(r,e,c),s&&s.m(e,null),n=!0},p(r,c){s&&s.p&&(!n||c&128)&&ce(s,o,r,r[7],n?ue(o,r[7],c,null):fe(r[7]),null)},i(r){n||(v(s,r),n=!0)},o(r){g(s,r),n=!1},d(r){r&&h(e),s&&s.d(r)}}}function ke(t){let e,n,o,s,r,c,m,u,i=t[2]&&L(t),l=t[6].default&&O(t),d=[{class:m="alert "+t[0]+" "+t[4]},{role:"alert"},t[5]],_={};for(let a=0;a{i=null}),G()),(!u||f&2)&&ee(r,a[1]),a[6].default?l?(l.p(a,f),f&64&&v(l,1)):(l=O(a),l.c(),v(l,1),l.m(o,null)):l&&(j(),g(l,1,1,()=>{l=null}),G()),N(e,_=te(d,[(!u||f&17&&m!==(m="alert "+a[0]+" "+a[4]))&&{class:m},{role:"alert"},f&32&&a[5]])),w(e,"bold",a[3]),w(e,"svelte-1u0e3fc",!0)},i(a){u||(v(i),v(l),u=!0)},o(a){g(i),g(l),u=!1},d(a){a&&h(e),i&&i.d(),l&&l.d()}}}function ye(t,e,n){const o=["intent","title","icon","bold","class"];let s=J(e,o),{$$slots:r={},$$scope:c}=e;const m=se(r);let{intent:u}=e,{title:i}=e,{icon:l=null}=e,{bold:d=!1}=e,{class:_=""}=e;return t.$$set=a=>{e=q(q({},e),ne(a)),n(5,s=J(e,o)),"intent"in a&&n(0,u=a.intent),"title"in a&&n(1,i=a.title),"icon"in a&&n(2,l=a.icon),"bold"in a&&n(3,d=a.bold),"class"in a&&n(4,_=a.class),"$$scope"in a&&n(7,c=a.$$scope)},[u,i,l,d,_,s,m,c,r]}class Ne extends Y{constructor(e){super(),Z(this,e,ye,ke,U,{intent:0,title:1,icon:2,bold:3,class:4})}}const M=t=>!de(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",je=async({namespace:t,workflowId:e,runId:n,sort:o,onStart:s,onUpdate:r,onComplete:c})=>{const m=M(o),u=H(m,{namespace:t,workflowId:e,runId:n});return(await K(async l=>P(u,{token:l,request:fetch}),{onStart:s,onUpdate:r,onComplete:c})).history.events},Ge=async({namespace:t,workflowId:e,runId:n,sort:o,settings:s,accessToken:r,onStart:c,onUpdate:m,onComplete:u})=>{const i=M(o),l=H(i,{namespace:t,workflowId:e,runId:n}),d=await K(async a=>P(l,{token:a,request:fetch}),{onStart:c,onUpdate:m,onComplete:u});return await F({response:d.history.events,namespace:t,settings:s,accessToken:r})},Q=async({namespace:t,workflowId:e,runId:n,sort:o})=>{const s=H(`events.${o}`,{namespace:t,workflowId:e,runId:n});try{return(await P(s,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},Je=async t=>{const{settings:e,namespace:n,accessToken:o}=t,s=await Q({...t,sort:"ascending"}),r=await Q({...t,sort:"descending"}),[c,m]=await Promise.all([F({response:s,namespace:n,settings:e,accessToken:o}),F({response:r,namespace:n,settings:e,accessToken:o})]);return{start:c,end:m}};export{Ne as A,je as a,Ge as b,ze as e,Je as f,be as i,Ce as t}; +import{d as p,w as B}from"./index.deae5bd4.js";import{p as S}from"./stores.4d55fa19.js";import{e as W}from"./event-view.f557cd63.js";import{l as R}from"./route-for.e1b7889c.js";import{r as V}from"./workflow-run.8a407b5f.js";import{a as X}from"./auth-user.3a7bc4db.js";import{S as Y,b as Z,a as U,N as q,m as b,c as z,w as x,p as k,q as y,d as C,x as $,k as h,u as A,Q as N,R as w,f as D,L as E,j as v,z as j,g,h as G,y as ee,U as te,a5 as J,ad as se,O as ne,C as ae,D as re,E as oe,F as le,G as ie,H as ce,I as fe,J as ue}from"./index.a36c9cb0.js";import{I as me}from"./icon.33859671.js";import{p as K}from"./paginated.9206d4de.js";import{r as H,a as P}from"./route-for-api.1addc328.js";import{t as F}from"./index.42d6ae10.js";import{b as de}from"./has.48bed8a5.js";const _e=p([S],([t])=>t.params.namespace?R(t.params.namespace):""),ve=p([S],([t])=>t.params.workflow?R(t.params.workflow):""),he=p([S],([t])=>t.params.run?R(t.params.run):""),pe=p([S],([t])=>{var e;return(e=t.data)==null?void 0:e.settings}),ge=p([X],([t])=>t==null?void 0:t.accessToken),Ee=p([_e,ve,he,W],([t,e,n,o])=>({namespace:t,workflowId:e,runId:n,sort:o}));p([Ee,pe,ge,V],([t,e,n,o])=>({...t,settings:e,accessToken:n,refresh:V,$refresh:o}));const be={start:[],end:[]},ze=B(be),Ce=B(null);function L(t){let e,n,o;return n=new me({props:{name:t[2]}}),{c(){e=b("div"),ae(n.$$.fragment)},l(s){e=k(s,"DIV",{});var r=y(e);re(n.$$.fragment,r),r.forEach(h)},m(s,r){D(s,e,r),oe(n,e,null),o=!0},p(s,r){const c={};r&4&&(c.name=s[2]),n.$set(c)},i(s){o||(v(n.$$.fragment,s),o=!0)},o(s){g(n.$$.fragment,s),o=!1},d(s){s&&h(e),le(n)}}}function O(t){let e,n;const o=t[8].default,s=ie(o,t,t[7],null);return{c(){e=b("div"),s&&s.c(),this.h()},l(r){e=k(r,"DIV",{class:!0});var c=y(e);s&&s.l(c),c.forEach(h),this.h()},h(){A(e,"class","content svelte-1u0e3fc")},m(r,c){D(r,e,c),s&&s.m(e,null),n=!0},p(r,c){s&&s.p&&(!n||c&128)&&ce(s,o,r,r[7],n?ue(o,r[7],c,null):fe(r[7]),null)},i(r){n||(v(s,r),n=!0)},o(r){g(s,r),n=!1},d(r){r&&h(e),s&&s.d(r)}}}function ke(t){let e,n,o,s,r,c,m,u,i=t[2]&&L(t),l=t[6].default&&O(t),d=[{class:m="alert "+t[0]+" "+t[4]},{role:"alert"},t[5]],_={};for(let a=0;a{i=null}),G()),(!u||f&2)&&ee(r,a[1]),a[6].default?l?(l.p(a,f),f&64&&v(l,1)):(l=O(a),l.c(),v(l,1),l.m(o,null)):l&&(j(),g(l,1,1,()=>{l=null}),G()),N(e,_=te(d,[(!u||f&17&&m!==(m="alert "+a[0]+" "+a[4]))&&{class:m},{role:"alert"},f&32&&a[5]])),w(e,"bold",a[3]),w(e,"svelte-1u0e3fc",!0)},i(a){u||(v(i),v(l),u=!0)},o(a){g(i),g(l),u=!1},d(a){a&&h(e),i&&i.d(),l&&l.d()}}}function ye(t,e,n){const o=["intent","title","icon","bold","class"];let s=J(e,o),{$$slots:r={},$$scope:c}=e;const m=se(r);let{intent:u}=e,{title:i}=e,{icon:l=null}=e,{bold:d=!1}=e,{class:_=""}=e;return t.$$set=a=>{e=q(q({},e),ne(a)),n(5,s=J(e,o)),"intent"in a&&n(0,u=a.intent),"title"in a&&n(1,i=a.title),"icon"in a&&n(2,l=a.icon),"bold"in a&&n(3,d=a.bold),"class"in a&&n(4,_=a.class),"$$scope"in a&&n(7,c=a.$$scope)},[u,i,l,d,_,s,m,c,r]}class Ne extends Y{constructor(e){super(),Z(this,e,ye,ke,U,{intent:0,title:1,icon:2,bold:3,class:4})}}const M=t=>!de(t)||t==="descending"?"events.descending":t==="ascending"?"events.ascending":"events.descending",je=async({namespace:t,workflowId:e,runId:n,sort:o,onStart:s,onUpdate:r,onComplete:c})=>{const m=M(o),u=H(m,{namespace:t,workflowId:e,runId:n});return(await K(async l=>P(u,{token:l,request:fetch}),{onStart:s,onUpdate:r,onComplete:c})).history.events},Ge=async({namespace:t,workflowId:e,runId:n,sort:o,settings:s,accessToken:r,onStart:c,onUpdate:m,onComplete:u})=>{const i=M(o),l=H(i,{namespace:t,workflowId:e,runId:n}),d=await K(async a=>P(l,{token:a,request:fetch}),{onStart:c,onUpdate:m,onComplete:u});return await F({response:d.history.events,namespace:t,settings:s,accessToken:r})},Q=async({namespace:t,workflowId:e,runId:n,sort:o})=>{const s=H(`events.${o}`,{namespace:t,workflowId:e,runId:n});try{return(await P(s,{request:fetch,params:{maximumPageSize:"20"}})).history.events}catch{return[]}},Je=async t=>{const{settings:e,namespace:n,accessToken:o}=t,s=await Q({...t,sort:"ascending"}),r=await Q({...t,sort:"descending"}),[c,m]=await Promise.all([F({response:s,namespace:n,settings:e,accessToken:o}),F({response:r,namespace:n,settings:e,accessToken:o})]);return{start:c,end:m}};export{Ne as A,je as a,Ge as b,ze as e,Je as f,be as i,Ce as t}; diff --git a/ui/assets/local/_app/immutable/chunks/feedback-button.fa3b5f9f.js b/ui/assets/local/_app/immutable/chunks/feedback-button.d96698de.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/feedback-button.fa3b5f9f.js rename to ui/assets/local/_app/immutable/chunks/feedback-button.d96698de.js index 50859b3da3..8f5602f3db 100644 --- a/ui/assets/local/_app/immutable/chunks/feedback-button.fa3b5f9f.js +++ b/ui/assets/local/_app/immutable/chunks/feedback-button.d96698de.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.a36c9cb0.js";import{I as C}from"./icon.33859671.js";import{p as G}from"./stores.48be4ca9.js";const A=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;function R(c){let e,s,n,t,o,i;return t=new C({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.a36c9cb0.js";import{I as C}from"./icon.33859671.js";import{p as G}from"./stores.4d55fa19.js";const A=""+new URL("../assets/logo.44c7bc2a.svg",import.meta.url).href;function R(c){let e,s,n,t,o,i;return t=new C({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,G,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 B extends v{constructor(e){super(),b(this,e,S,R,g,{})}}export{B as F,A as L}; diff --git a/ui/assets/local/_app/immutable/chunks/filters.2b30fe96.js b/ui/assets/local/_app/immutable/chunks/filters.f7fa907d.js similarity index 87% rename from ui/assets/local/_app/immutable/chunks/filters.2b30fe96.js rename to ui/assets/local/_app/immutable/chunks/filters.f7fa907d.js index 9df594ddf7..f7c0c9d406 100644 --- a/ui/assets/local/_app/immutable/chunks/filters.2b30fe96.js +++ b/ui/assets/local/_app/immutable/chunks/filters.f7fa907d.js @@ -1 +1 @@ -import{d as t,w as s}from"./index.deae5bd4.js";import{p as u}from"./stores.48be4ca9.js";import{W as o}from"./index.a36c9cb0.js";const n=t([u],([r])=>r.url.searchParams.get("query")),c=t([u],([r])=>r.url.searchParams.get("category")),a=t([n,c],([r,e])=>({query:r,category:e})),l=r=>a.subscribe(({query:e})=>{!e&&o(g).length&&r([])}),i=r=>a.subscribe(({query:e})=>{!e&&o(y).length&&r([])}),g=s([],l),y=s([],i),p=r=>a.subscribe(({category:e})=>{!e&&o(f)&&r(null)}),f=s(null,p);export{g as a,f as e,y as w}; +import{d as t,w as s}from"./index.deae5bd4.js";import{p as u}from"./stores.4d55fa19.js";import{W as o}from"./index.a36c9cb0.js";const n=t([u],([r])=>r.url.searchParams.get("query")),c=t([u],([r])=>r.url.searchParams.get("category")),a=t([n,c],([r,e])=>({query:r,category:e})),l=r=>a.subscribe(({query:e})=>{!e&&o(g).length&&r([])}),i=r=>a.subscribe(({query:e})=>{!e&&o(y).length&&r([])}),g=s([],l),y=s([],i),p=r=>a.subscribe(({category:e})=>{!e&&o(f)&&r(null)}),f=s(null,p);export{g as a,f as e,y as w}; diff --git a/ui/assets/local/_app/immutable/chunks/get-codec.8518c13e.js b/ui/assets/local/_app/immutable/chunks/get-codec.d25c452e.js similarity index 99% rename from ui/assets/local/_app/immutable/chunks/get-codec.8518c13e.js rename to ui/assets/local/_app/immutable/chunks/get-codec.d25c452e.js index 5c816fa639..0fad86ff33 100644 --- a/ui/assets/local/_app/immutable/chunks/get-codec.8518c13e.js +++ b/ui/assets/local/_app/immutable/chunks/get-codec.d25c452e.js @@ -1,2 +1,2 @@ -import{W as Y}from"./index.a36c9cb0.js";import{s as Ee,d as zt,a as Xt}from"./data-converter-config.28d58945.js";import{s as U,p as Le}from"./parse-with-big-int.0036a80a.js";import{v as Yt,s as xe,b as Qt,c as Zt,p as er,i as tr}from"./is-http.1e6b12cd.js";import{a as We}from"./atob.da26e476.js";var Ie={},rr={get exports(){return Ie},set exports(r){Ie=r}};/* chnl v1.2.0 by Vitaliy Potapov @preserve */function It(r){return(It=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 q(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function Ne(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 ir(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function sr(r,e){return!e||typeof e!="object"&&typeof e!="function"?ir(r):e}function ar(r){var e=or();return function(){var t,n=Oe(r);if(e){var o=Oe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return sr(this,t)}}function Be(r){return cr(r)||ur(r)||lr(r)||pr()}function cr(r){if(Array.isArray(r))return ke(r)}function ur(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function lr(r,e){if(r){if(typeof r=="string")return ke(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)?ke(r,e):void 0}}function ke(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);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 ir(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function sr(r,e){return!e||typeof e!="object"&&typeof e!="function"?ir(r):e}function ar(r){var e=or();return function(){var t,n=Oe(r);if(e){var o=Oe(this).constructor;t=Reflect.construct(n,arguments,o)}else t=n.apply(this,arguments);return sr(this,t)}}function Be(r){return cr(r)||ur(r)||lr(r)||pr()}function cr(r){if(Array.isArray(r))return ke(r)}function ur(r){if(typeof Symbol<"u"&&Symbol.iterator in Object(r))return Array.from(r)}function lr(r,e){if(r){if(typeof r=="string")return ke(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)?ke(r,e):void 0}}function ke(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=Ue(this._options.timeoutReason),t=typeof e=="string"?e.replace("{timeout}",this._options.timeout):"",n=new F.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){Ge(e)&&e.then(t=>this.resolve(t),t=>this.reject(t))}};F.TimeoutError=Ct("TimeoutError");F.ResetError=Ct("ResetError");var jt=F,Z={};Object.defineProperty(Z,"__esModule",{value:!0});Z.PromisedMap=void 0;var mr=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}();Z.PromisedMap=mr;var V={},_r={get exports(){return V},set exports(r){V=r}},gr="Function.prototype.bind called on incompatible ",re=Array.prototype.slice,br=Object.prototype.toString,Pr="[object Function]",wr=function(e){var t=this;if(typeof t!="function"||br.call(t)!==Pr)throw new TypeError(gr+t);for(var n=re.call(arguments,1),o,s=function(){if(this instanceof o){var p=t.apply(this,n.concat(re.call(arguments)));return Object(p)===p?p:this}else return t.apply(e,n.concat(re.call(arguments)))},a=Math.max(0,t.length-n.length),i=[],c=0;c"u"?y:A(Uint8Array),T={"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":k?A([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":C,"%AsyncGenerator%":C,"%AsyncGeneratorFunction%":C,"%AsyncIteratorPrototype%":C,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":Tt,"%GeneratorFunction%":C,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":k?A(A([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!k?y:A(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!k?y:A(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":k?A(""[Symbol.iterator]()):y,"%Symbol%":k?Symbol:y,"%SyntaxError%":L,"%ThrowTypeError%":Or,"%TypedArray%":kr,"%TypeError%":j,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet},Cr=function r(e){var t;if(e==="%AsyncFunction%")t=ne("async function () {}");else if(e==="%GeneratorFunction%")t=ne("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=ne("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var o=r("%AsyncGenerator%");o&&(t=A(o.prototype))}return T[e]=t,t},He={"%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"]},x=De,H=E,jr=x.call(Function.call,Array.prototype.concat),Tr=x.call(Function.apply,Array.prototype.splice),Je=x.call(Function.call,String.prototype.replace),J=x.call(Function.call,String.prototype.slice),Lr=x.call(Function.call,RegExp.prototype.exec),$r=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Dr=/\\(\\)?/g,Fr=function(e){var t=J(e,0,1),n=J(e,-1);if(t==="%"&&n!=="%")throw new L("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new L("invalid intrinsic syntax, expected opening `%`");var o=[];return Je(e,$r,function(s,a,i,c){o[o.length]=i?Je(c,Dr,"$1"):a||s}),o},qr=function(e,t){var n=e,o;if(H(He,n)&&(o=He[n],n="%"+o[0]+"%"),H(T,n)){var s=T[n];if(s===C&&(s=Cr(n)),typeof s>"u"&&!t)throw new j("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:o,name:n,value:s}}throw new L("intrinsic "+e+" does not exist!")},b=function(e,t){if(typeof e!="string"||e.length===0)throw new j("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new j('"allowMissing" argument must be a boolean');if(Lr(/^%?[^%]*%?$/,e)===null)throw new L("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Fr(e),o=n.length>0?n[0]:"",s=qr("%"+o+"%",t),a=s.name,i=s.value,c=!1,u=s.alias;u&&(o=u[0],Tr(n,jr([0,1],u)));for(var p=1,h=!0;p=n.length){var g=R(i,f);h=!!g,h&&"get"in g&&!("originalValue"in g.get)?i=g.get:i=i[f]}else h=H(i,f),i=i[f];h&&!c&&(T[a]=i)}}return i};(function(r){var e=De,t=b,n=t("%Function.prototype.apply%"),o=t("%Function.prototype.call%"),s=t("%Reflect.apply%",!0)||e.call(o,n),a=t("%Object.getOwnPropertyDescriptor%",!0),i=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}r.exports=function(h){var f=s(e,o,arguments);if(a&&i){var l=a(f,"length");l.configurable&&i(f,"length",{value:1+c(0,h.length-(arguments.length-1))})}return f};var u=function(){return s(e,n,arguments)};i?i(r.exports,"apply",{value:u}):r.exports.apply=u})(_r);var Ke=Object.prototype.toString,Lt=function(e){var t=Ke.call(e),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&Ke.call(e.callee)==="[object Function]"),n},ie,ze;function Mr(){if(ze)return ie;ze=1;var r;if(!Object.keys){var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Lt,o=Object.prototype.propertyIsEnumerable,s=!o.call({toString:null},"toString"),a=o.call(function(){},"prototype"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],c=function(f){var l=f.constructor;return l&&l.prototype===f},u={$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},p=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&e.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{c(window[f])}catch{return!0}}catch{return!0}return!1}(),h=function(f){if(typeof window>"u"||!p)return c(f);try{return c(f)}catch{return!1}};r=function(l){var m=l!==null&&typeof l=="object",g=t.call(l)==="[object Function]",O=n(l),ee=m&&t.call(l)==="[object String]",_=[];if(!m&&!g&&!O)throw new TypeError("Object.keys called on a non-object");var d=a&&g;if(ee&&l.length>0&&!e.call(l,0))for(var v=0;v0)for(var $=0;$2?arguments[2]:{},n=Gr(e);Ur&&(n=Hr.call(n,Object.getOwnPropertySymbols(e)));for(var o=0;o"u"||typeof d=="object"))try{var v=i.call(d);return(v===h||v===f||v===l||v===c)&&d("")==null}catch{}return!1})}return se=e?function(d){if(O(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;try{e(d,null,t)}catch(v){if(v!==n)return!1}return!s(d)&&a(d)}:function(d){if(O(d))return!0;if(!d||typeof d!="function"&&typeof d!="object")return!1;if(m)return a(d);if(s(d))return!1;var v=i.call(d);return v!==u&&v!==p&&!/^\[object HTML/.test(v)?!1:a(d)},se}var Ze;function xt(){return Ze||(Ze=1,function(r){r.exports=Yr()}(Xr)),K}var z={},et={get exports(){return z},set exports(r){z=r}},X={},Qr={get exports(){return X},set exports(r){X=r}},tt;function Zr(){return tt||(tt=1,function(r){r.exports=b}(Qr)),X}var ae,rt;function en(){if(rt)return ae;rt=1;var r=b,e=E,t=r("%TypeError%");return ae=function(o,s){if(o.Type(s)!=="Object")return!1;var a={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var i in s)if(e(s,i)&&!a[i])return!1;if(o.IsDataDescriptor(s)&&o.IsAccessorDescriptor(s))throw new t("Property Descriptors may not be both accessor and data descriptors");return!0},ae}var ce,nt;function Wt(){if(nt)return ce;nt=1;var r=b,e=V,t=e(r("String.prototype.indexOf"));return ce=function(o,s){var a=r(o,!!s);return typeof a=="function"&&t(o,".prototype.")>-1?e(a):a},ce}var ue,ot;function tn(){if(ot)return ue;ot=1;var r=b,e=r("%Array%"),t=!e.isArray&&Wt()("Object.prototype.toString");return ue=e.isArray||function(o){return t(o)==="[object Array]"},ue}var le,it;function rn(){if(it)return le;it=1;var r=$t,e=b,t=r()&&e("%Object.defineProperty%",!0),n=r.hasArrayLengthDefineBug(),o=n&&tn(),s=Wt(),a=s("Object.prototype.propertyIsEnumerable");return le=function(c,u,p,h,f,l){if(!t){if(!c(l)||!l["[[Configurable]]"]||!l["[[Writable]]"]||f in h&&a(h,f)!==!!l["[[Enumerable]]"])return!1;var m=l["[[Value]]"];return h[f]=m,u(h[f],m)}return n&&f==="length"&&"[[Value]]"in l&&o(h)&&h.length!==l["[[Value]]"]?(h.length=l["[[Value]]"],h.length===l["[[Value]]"]):(t(h,f,p(l)),!0)},le}var pe,st;function nn(){if(st)return pe;st=1;var r=E;return pe=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]]"])},pe}var fe,at;function qe(){if(at)return fe;at=1;var r=b,e=r("%TypeError%"),t=r("%SyntaxError%"),n=E,o=nn(),s={"Property Descriptor":function(i){var c={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var u in i)if(n(i,u)&&!c[u])return!1;var p=n(i,"[[Value]]"),h=n(i,"[[Get]]")||n(i,"[[Set]]");if(p&&h)throw new e("Property Descriptors may not be both accessor and data descriptors");return!0},"Match Record":o,"Iterator Record":function(i){return n(i,"[[Iterator]]")&&n(i,"[[NextMethod]]")&&n(i,"[[Done]]")},"PromiseCapability Record":function(i){return i&&n(i,"[[Resolve]]")&&typeof i["[[Resolve]]"]=="function"&&n(i,"[[Reject]]")&&typeof i["[[Reject]]"]=="function"&&n(i,"[[Promise]]")&&i["[[Promise]]"]&&typeof i["[[Promise]]"].then=="function"},"AsyncGeneratorRequest Record":function(i){return i&&n(i,"[[Completion]]")&&n(i,"[[Capability]]")&&s["PromiseCapability Record"](i["[[Capability]]"])}};return fe=function(i,c,u,p){var h=s[c];if(typeof h!="function")throw new t("unknown record type: "+c);if(i(p)!=="Object"||!h(p))throw new e(u+" must be a "+c)},fe}var ye,ct;function on(){return ct||(ct=1,ye=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}),ye}var he,ut;function sn(){return ut||(ut=1,he=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"}),he}var de,lt;function I(){if(lt)return de;lt=1;var r=sn();return de=function(t){return typeof t=="symbol"?"Symbol":typeof t=="bigint"?"BigInt":r(t)},de}var ve,pt;function an(){if(pt)return ve;pt=1;var r=qe(),e=on(),t=I();return ve=function(o){return typeof o<"u"&&r(t,"Property Descriptor","Desc",o),e(o)},ve}var me,ft;function cn(){if(ft)return me;ft=1;var r=E,e=qe(),t=I();return me=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Get]]")&&!r(o,"[[Set]]")))},me}var _e,yt;function un(){if(yt)return _e;yt=1;var r=E,e=qe(),t=I();return _e=function(o){return!(typeof o>"u"||(e(t,"Property Descriptor","Desc",o),!r(o,"[[Value]]")&&!r(o,"[[Writable]]")))},_e}var ge,ht;function ln(){return ht||(ht=1,ge=function(e){return typeof e=="string"||typeof e=="symbol"}),ge}var be,dt;function pn(){return dt||(dt=1,be=Number.isNaN||function(e){return e!==e}),be}var Pe,vt;function fn(){if(vt)return Pe;vt=1;var r=pn();return Pe=function(t,n){return t===n?t===0?1/t===1/n:!0:r(t)&&r(n)},Pe}var we,mt;function yn(){return mt||(mt=1,we=function(e){return!!e}),we}var Se,_t;function hn(){if(_t)return Se;_t=1;var r=E,e=b,t=e("%TypeError%"),n=I(),o=yn(),s=xt();return Se=function(i){if(n(i)!=="Object")throw new t("ToPropertyDescriptor requires an object");var c={};if(r(i,"enumerable")&&(c["[[Enumerable]]"]=o(i.enumerable)),r(i,"configurable")&&(c["[[Configurable]]"]=o(i.configurable)),r(i,"value")&&(c["[[Value]]"]=i.value),r(i,"writable")&&(c["[[Writable]]"]=o(i.writable)),r(i,"get")){var u=i.get;if(typeof u<"u"&&!s(u))throw new t("getter must be a function");c["[[Get]]"]=u}if(r(i,"set")){var p=i.set;if(typeof p<"u"&&!s(p))throw new t("setter must be a function");c["[[Set]]"]=p}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},Se}var Ae,gt;function dn(){if(gt)return Ae;gt=1;var r=b,e=r("%TypeError%"),t=en(),n=rn(),o=an(),s=cn(),a=un(),i=ln(),c=fn(),u=hn(),p=I();return Ae=function(f,l,m){if(p(f)!=="Object")throw new e("Assertion failed: Type(O) is not Object");if(!i(l))throw new e("Assertion failed: IsPropertyKey(P) is not true");var g=t({Type:p,IsDataDescriptor:a,IsAccessorDescriptor:s},m)?m:u(m);if(!t({Type:p,IsDataDescriptor:a,IsAccessorDescriptor:s},g))throw new e("Assertion failed: Desc is not a valid Property Descriptor");return n(a,c,o,f,l,g)},Ae}var bt;function vn(){if(bt)return z;bt=1;var r=Zr(),e=r("%Reflect.construct%",!0),t=dn();try{t({},"",{"[[Get]]":function(){}})}catch{t=null}if(t&&e){var n={},o={};t(o,"length",{"[[Get]]":function(){throw n},"[[Enumerable]]":!0}),et.exports=function(a){try{e(a,o)}catch(i){return i===n}}}else et.exports=function(a){return typeof a=="function"&&!!a.prototype};return z}var Re,Pt;function mn(){if(Pt)return Re;Pt=1;var r=b,e=r("%Symbol.species%",!0),t=r("%TypeError%"),n=vn(),o=I();return Re=function(a,i){if(o(a)!=="Object")throw new t("Assertion failed: Type(O) is not Object");var c=a.constructor;if(typeof c>"u")return i;if(o(c)!=="Object")throw new t("O.constructor is not an Object");var u=e?c[e]:void 0;if(u==null)return i;if(n(u))return u;throw new t("no constructor found")},Re}var _n=Fe;_n();var gn=xt(),bn=mn(),Pn=I(),Nt=function(e,t){return new e(function(n){n(t)})},wn=Promise,Sn=function(e,t){return function(n){var o=t(),s=Nt(e,o),a=function(){return n};return s.then(a)}},An=function(e,t){return function(n){var o=t(),s=Nt(e,o),a=function(){throw n};return s.then(a)}},Te=function(e){var t=this;if(Pn(t)!=="Object")throw new TypeError("receiver is not an Object");var n=bn(t,wn),o=e,s=e;return gn(e)&&(o=Sn(n,e),s=An(n,e)),t.then(o,s)};if(Object.getOwnPropertyDescriptor){var wt=Object.getOwnPropertyDescriptor(Te,"name");wt&&wt.configurable&&Object.defineProperty(Te,"name",{configurable:!0,value:"finally"})}var Bt=Te,Rn=Fe,En=Bt,Gt=function(){return Rn(),typeof Promise.prototype.finally=="function"?Promise.prototype.finally:En},In=Fe,On=Gt,kn=Mt,Cn=function(){In();var e=On();return kn(Promise.prototype,{finally:e},{finally:function(){return Promise.prototype.finally!==e}}),e},jn=V,Tn=Mt,Ln=Bt,Ut=Gt,$n=Cn,Vt=jn(Ut());Tn(Vt,{getPolyfill:Ut,implementation:Ln,shim:$n});var Dn=Vt;const Fn=jt,qn=Dn;var Mn=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 Fn({timeout:n,timeoutReason:`WebSocket request was rejected by timeout (${n} ms). RequestId: ${e}`});return this._items.set(e,o),qn(o.call(t),()=>this._deleteRequest(e,o))}_deleteRequest(e,t){this._items.get(e)===t&&this._items.delete(e)}},xn={createWebSocket:r=>new WebSocket(r),packMessage:null,unpackMessage:null,attachRequestId:null,extractRequestId:null,extractMessageData:r=>r.data,timeout:0,connectionTimeout:0},Me={};Me.throwIf=(r,e)=>{if(r)throw new Error(e)};Me.isPromise=r=>r&&typeof r.then=="function";const w=Ie,St=jt,{PromisedMap:Wn}=Z,Nn=Mn,At=xn,{throwIf:N,isPromise:Bn}=Me,B={CONNECTING:0,OPEN:1,CLOSING:2,CLOSED:3};class Gn{constructor(e,t){this._assertOptions(t),this._url=e,this._options=Object.assign({},At,t),this._requests=new Nn,this._promisedMap=new Wn,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===B.CONNECTING)}get isOpened(){return Boolean(this._ws&&this._ws.readyState===B.OPEN)}get isClosing(){return Boolean(this._ws&&this._ws.readyState===B.CLOSING)}get isClosed(){return Boolean(!this._ws||this._ws.readyState===B.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 s=this._options.attachRequestId(e,n);this.sendPacked(s)},o)}sendPacked(e){this._assertPackingHandlers();const t=this._options.packMessage(e);this.send(t)}send(e){N(!this.isOpened,"Can't send data because WebSocket is not opened."),this._ws.send(e),this._onSend.dispatchAsync(e)}waitUnpackedMessage(e,t={}){return N(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 St({timeout:e,timeoutReason:`Can't open WebSocket within allowed timeout: ${e} ms.`})}_createClosingController(){const e=this._options.timeout;this._closing=new St({timeout:e,timeoutReason:`Can't close WebSocket within allowed timeout: ${e} ms.`})}_createChannels(){this._onOpen=new w,this._onMessage=new w,this._onUnpackedMessage=new w,this._onResponse=new w,this._onSend=new w,this._onClose=new w,this._onError=new w}_createWS(){this._ws=this._options.createWebSocket(this._url),this._wsSubscription=new w.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),Bn(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(s){this._promisedMap.reject(n,s);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(!At.hasOwnProperty(t))throw new Error(`Unknown option: ${t}`)})}_assertPackingHandlers(){const{packMessage:e,unpackMessage:t}=this._options;N(!e||!t,"Please define 'options.packMessage / options.unpackMessage' for sending packed messages.")}_assertRequestIdHandlers(){const{attachRequestId:e,extractRequestId:t}=this._options;N(!e||!t,"Please define 'options.attachRequestId / options.extractRequestId' for sending requests.")}}var Un=Gn;let S=null;const Vn=Y(zt)??null,Hn=(r,e)=>{if(!r)return{hasWebsocket:!1,websocket:null,closeSocket:()=>null};try{S=new Un(`ws://localhost:${r}/`,{packMessage:t=>U(t),unpackMessage:t=>Le(t),attachRequestId:(t,n)=>Object.assign({requestId:n},t),extractRequestId:t=>t&&t.requestId,...e}),S.onError.addListener(t=>{console.error(`Websocket connection error: ${t}`)})}catch(t){Ee(`Error creating websocket: ${t}`)}return S==null||S.open(),{hasWebsocket:!0,websocket:S,closeSocket:()=>S?S.close():null}},Jn=Hn(Vn);async function Rt(r,e){if(!e)return r;if(!e.isOpened)try{await e.open()}catch(n){Ee(`Error opening websocket: ${n}`)}return e.isOpened?e.sendRequest({payload:U(r)}).then(n=>{Xt();try{return Le(n.content)}catch{return n.content}}).catch(n=>{Ee(`Error decoding websocket response: ${n}`)}):Promise.resolve(r)}async function Et({payloads:r,namespace:e,settings:t,accessToken:n}){var u,p,h;const o=(u=t==null?void 0:t.codec)==null?void 0:u.endpoint,s=(p=t==null?void 0:t.codec)==null?void 0:p.passAccessToken,a={"Content-Type":"application/json","X-Namespace":e};if(s)if(Yt(o))a.Authorization=`Bearer ${n}`;else return xe(),r;const i=(h=t==null?void 0:t.codec)!=null&&h.includeCredentials?{headers:a,credentials:"include",method:"POST",body:U(r)}:{headers:a,method:"POST",body:U(r)};return fetch(o+"/decode",i).then(f=>f.json()).then(f=>(Qt(),f)).catch(()=>(xe(),r))}function P(r){var t;if(r===null)return r;const e=We(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 Le(We(String((r==null?void 0:r.data)??"")))}catch(n){console.warn("Could not parse payload: ",n)}return r}const to=r=>{var t,n,o,s,a,i;const e=r;if((t=e==null?void 0:e.searchAttributes)!=null&&t.indexedFields){const c=(n=e==null?void 0:e.searchAttributes)==null?void 0:n.indexedFields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if((o=e==null?void 0:e.memo)!=null&&o.fields){const c=(s=e==null?void 0:e.memo)==null?void 0:s.fields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if((a=e==null?void 0:e.header)!=null&&a.fields){const c=(i=e==null?void 0:e.header)==null?void 0:i.fields;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}if(e!=null&&e.queryResult){const c=e==null?void 0:e.queryResult;Object.entries(c).forEach(([u,p])=>{c[u]=P(p)})}return e},Ht=async(r,e,t,n)=>{var o,s;if(r)for(const a of Object.keys(r))if(a==="payloads"){let i;const c=r[a];if((o=t==null?void 0:t.codec)!=null&&o.endpoint){const u=await Et({payloads:{payloads:c},namespace:e,settings:t,accessToken:n});i=((u==null?void 0:u.payloads)??[]).map(P)}else i=c.map(P);r[a]=i}else if(a==="encodedAttributes"&&r[a]){let i;const c=r[a];if((s=t==null?void 0:t.codec)!=null&&s.endpoint){const u=await Et({payloads:{payloads:[c]},namespace:e,settings:t,accessToken:n});i=P(u==null?void 0:u.payloads[0])}else i=P(c);r[a]=i}else typeof r[a]=="object"&&(r[a]=await Ht(r[a],e,t,n));return r},Jt=async(r,e)=>{if(r)for(const t of Object.keys(r))if(t==="payloads"){let n;const o=r[t];e!=null&&e.hasWebsocket?n=await Promise.all((o??[]).map(async a=>await Rt(a,e.websocket))):n=o.map(P),r[t]=n}else if(t==="encodedAttributes"&&r[t]){let n;const o=r[t];e!=null&&e.hasWebsocket?n=await Rt(o,e.websocket):n=P(o),r[t]=n}else typeof r[t]=="object"&&(r[t]=await Jt(r[t],e));return r},ro=async({attributes:r,namespace:e,settings:t,accessToken:n})=>await Ht(r,e,t,n),no=async(r,e)=>await Jt(r,e??Jn),oo=(r,e=Zt)=>{var t;return Y(e)||((t=r==null?void 0:r.codec)==null?void 0:t.endpoint)||""},io=(r,e=er)=>{var t;return!!Y(e)||!!((t=r==null?void 0:r.codec)!=null&&t.passAccessToken)},so=(r,e=tr)=>{var t;return Y(e)||((t=r==null?void 0:r.codec)==null?void 0:t.includeCredentials)};export{io as a,so as b,ro as c,no as d,to as e,oo as g}; diff --git a/ui/assets/local/_app/immutable/chunks/index.1292c373.js b/ui/assets/local/_app/immutable/chunks/index.42d6ae10.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/index.1292c373.js rename to ui/assets/local/_app/immutable/chunks/index.42d6ae10.js index 3247f53856..d5ac6fd670 100644 --- a/ui/assets/local/_app/immutable/chunks/index.1292c373.js +++ b/ui/assets/local/_app/immutable/chunks/index.42d6ae10.js @@ -1 +1 @@ -import{c as y,p as T,i as g}from"./is-http.1e6b12cd.js";import{g as v,a as k,b as w,c as P,d as S,e as R}from"./get-codec.8518c13e.js";import{f as q}from"./format-date.7c274b02.js";import{f as E}from"./is-event-type.763b5d4b.js";import{g as I}from"./get-event-categorization.d6ff7ec7.js";import{s as W}from"./simplify-attributes.ba9e7501.js";const F=["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 F)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:o},{convertWithCodec:a=P,convertWithWebsocket:s=S,decodeAttributes:c=R,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=v(t,i),p=k(t,d),f=w(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},A=m?await a({attributes:u,namespace:n,settings:C,accessToken:o}):await s(u),b=c(A);return{type:l,...b}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:o})=>{const a=String(e.eventId),s=e.eventType,c=q(String(e.eventTime)),i=J(s),d=I(s),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:o}).then(l=>W(l));return{...e,name:s,id:a,eventType:s,timestamp:c,classification:i,category:d,attributes:r}},h=async({response:e,namespace:n,settings:t,accessToken:o})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:o})));export{h as t}; +import{c as y,p as T,i as g}from"./is-http.1e6b12cd.js";import{g as v,a as k,b as w,c as P,d as S,e as R}from"./get-codec.d25c452e.js";import{f as q}from"./format-date.7c274b02.js";import{f as E}from"./is-event-type.763b5d4b.js";import{g as I}from"./get-event-categorization.d6ff7ec7.js";import{s as W}from"./simplify-attributes.ba9e7501.js";const F=["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 F)if(e.includes(n))return n};async function O({historyEvent:e,namespace:n,settings:t,accessToken:o},{convertWithCodec:a=P,convertWithWebsocket:s=S,decodeAttributes:c=R,encoderEndpoint:i=y,codecPassAccessToken:d=T,codecIncludeCredentials:r=g}={}){const{key:l,attributes:u}=E(e),m=v(t,i),p=k(t,d),f=w(t,r),C={...t,codec:{...t==null?void 0:t.codec,endpoint:m,passAccessToken:p,includeCredentials:f}},A=m?await a({attributes:u,namespace:n,settings:C,accessToken:o}):await s(u),b=c(A);return{type:l,...b}}const x=async({historyEvent:e,namespace:n,settings:t,accessToken:o})=>{const a=String(e.eventId),s=e.eventType,c=q(String(e.eventTime)),i=J(s),d=I(s),r=await O({historyEvent:e,namespace:n,settings:t,accessToken:o}).then(l=>W(l));return{...e,name:s,id:a,eventType:s,timestamp:c,classification:i,category:d,attributes:r}},h=async({response:e,namespace:n,settings:t,accessToken:o})=>await Promise.all(e.map(a=>x({historyEvent:a,namespace:n,settings:t,accessToken:o})));export{h as t}; diff --git a/ui/assets/local/_app/immutable/chunks/list-workflow-query.900ba0a0.js b/ui/assets/local/_app/immutable/chunks/list-workflow-query.11f239c5.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/list-workflow-query.900ba0a0.js rename to ui/assets/local/_app/immutable/chunks/list-workflow-query.11f239c5.js index 6720104291..373e5a24b2 100644 --- a/ui/assets/local/_app/immutable/chunks/list-workflow-query.900ba0a0.js +++ b/ui/assets/local/_app/immutable/chunks/list-workflow-query.11f239c5.js @@ -1 +1 @@ -import{j as f,k as d,l as s,m}from"./format-time.c8c4770b.js";import{d as o}from"./index.deae5bd4.js";import{p as l}from"./stores.48be4ca9.js";import{c as n}from"./cluster.c8f1465c.js";import{t as u}from"./versions.97216320.js";import{i as c}from"./version-check.d006b302.js";import{W as p}from"./index.a36c9cb0.js";const y=(t,r)=>{var i;return((i=t==null?void 0:t.visibilityStore)==null?void 0:i.includes("elasticsearch"))||c(r,"1.19")},w=t=>{var r;return(r=t==null?void 0:t.visibilityStore)==null?void 0:r.includes("elasticsearch")},a=o([l],([t])=>{var r,i,e;return(e=(i=(r=t.data)==null?void 0:r.settings)==null?void 0:i.runtimeEnvironment)==null?void 0:e.isCloud}),b=o([n,u,a],([t,r,i])=>y(t,r)||i),D=o([n,a],([t,r])=>w(t)||r),S={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},g=["workflowId","workflowType","timeRange","executionStatus","closeTime"],T=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),E=t=>{if(typeof t!="string")return!1;for(const r of g)if(r===t)return!0;return!1},V=(t,r,i)=>{const e=S[t];return r==="All"?"":f(r)||d(r)?i||p(b)?`${e} > "${s(r)}"`:`${e} BETWEEN "${s(r)}" AND "${m()}"`:`${e}="${r}"`},W=(t,r)=>Object.entries(t).map(([i,e])=>{if(E(i)&&T(e))return V(i,e,r)}).filter(Boolean),j=(t,r=!1)=>W(t,r).join(" and ");export{D as a,b as s,j as t}; +import{j as f,k as d,l as s,m}from"./format-time.c8c4770b.js";import{d as o}from"./index.deae5bd4.js";import{p as l}from"./stores.4d55fa19.js";import{c as n}from"./cluster.c8f1465c.js";import{t as u}from"./versions.97216320.js";import{i as c}from"./version-check.d006b302.js";import{W as p}from"./index.a36c9cb0.js";const y=(t,r)=>{var i;return((i=t==null?void 0:t.visibilityStore)==null?void 0:i.includes("elasticsearch"))||c(r,"1.19")},w=t=>{var r;return(r=t==null?void 0:t.visibilityStore)==null?void 0:r.includes("elasticsearch")},a=o([l],([t])=>{var r,i,e;return(e=(i=(r=t.data)==null?void 0:r.settings)==null?void 0:i.runtimeEnvironment)==null?void 0:e.isCloud}),b=o([n,u,a],([t,r,i])=>y(t,r)||i),D=o([n,a],([t,r])=>w(t)||r),S={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},g=["workflowId","workflowType","timeRange","executionStatus","closeTime"],T=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),E=t=>{if(typeof t!="string")return!1;for(const r of g)if(r===t)return!0;return!1},V=(t,r,i)=>{const e=S[t];return r==="All"?"":f(r)||d(r)?i||p(b)?`${e} > "${s(r)}"`:`${e} BETWEEN "${s(r)}" AND "${m()}"`:`${e}="${r}"`},W=(t,r)=>Object.entries(t).map(([i,e])=>{if(E(i)&&T(e))return V(i,e,r)}).filter(Boolean),j=(t,r=!1)=>W(t,r).join(" and ");export{D as a,b as s,j as t}; diff --git a/ui/assets/local/_app/immutable/chunks/namespaces-service.971cb4c8.js b/ui/assets/local/_app/immutable/chunks/namespaces-service.9dd6901c.js similarity index 85% rename from ui/assets/local/_app/immutable/chunks/namespaces-service.971cb4c8.js rename to ui/assets/local/_app/immutable/chunks/namespaces-service.9dd6901c.js index 70aa0c91f5..40a33bfea8 100644 --- a/ui/assets/local/_app/immutable/chunks/namespaces-service.971cb4c8.js +++ b/ui/assets/local/_app/immutable/chunks/namespaces-service.9dd6901c.js @@ -1 +1 @@ -import{t as c}from"./toaster.16c48a98.js";import{n as o}from"./namespaces.85dd7810.js";import{p as i}from"./paginated.a32521a1.js";import{r as p,a as f}from"./route-for-api.6ac9324b.js";const u={namespaces:[]};async function E(r,s=fetch){if(r.runtimeEnvironment.isCloud){o.set([]);return}try{const t=p("namespaces"),e=await i(async a=>f(t,{request:s,token:a,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})),{showTemporalSystemNamespace:n}=r,m=((e==null?void 0:e.namespaces)??[]).filter(a=>n||a.namespaceInfo.name!=="temporal-system");o.set(m)}catch{o.set([])}}async function N(r,s,t=fetch){var a;const[e]=u.namespaces;if((a=s==null?void 0:s.runtimeEnvironment)!=null&&a.isCloud)return e;const n=p("namespace",{namespace:r});return await f(n,{request:t,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})??e}export{N as a,E as f}; +import{t as c}from"./toaster.16c48a98.js";import{n as o}from"./namespaces.85dd7810.js";import{p as i}from"./paginated.9206d4de.js";import{r as p,a as f}from"./route-for-api.1addc328.js";const u={namespaces:[]};async function E(r,s=fetch){if(r.runtimeEnvironment.isCloud){o.set([]);return}try{const t=p("namespaces"),e=await i(async a=>f(t,{request:s,token:a,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})),{showTemporalSystemNamespace:n}=r,m=((e==null?void 0:e.namespaces)??[]).filter(a=>n||a.namespaceInfo.name!=="temporal-system");o.set(m)}catch{o.set([])}}async function N(r,s,t=fetch){var a;const[e]=u.namespaces;if((a=s==null?void 0:s.runtimeEnvironment)!=null&&a.isCloud)return e;const n=p("namespace",{namespace:r});return await f(n,{request:t,onError:()=>c.push({variant:"error",message:"Unable to fetch namespaces"})})??e}export{N as a,E as f}; diff --git a/ui/assets/local/_app/immutable/chunks/navigation.724a9b89.js b/ui/assets/local/_app/immutable/chunks/navigation.0861544c.js similarity index 70% rename from ui/assets/local/_app/immutable/chunks/navigation.724a9b89.js rename to ui/assets/local/_app/immutable/chunks/navigation.0861544c.js index ee03bd62b3..fe81c5bfa5 100644 --- a/ui/assets/local/_app/immutable/chunks/navigation.724a9b89.js +++ b/ui/assets/local/_app/immutable/chunks/navigation.0861544c.js @@ -1 +1 @@ -import{h as a}from"./singletons.7cea9c5f.js";a.disable_scroll_handling;const o=a.goto,t=a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;const i=a.before_navigate;a.after_navigate;export{i as b,o as g,t as i}; +import{h as a}from"./singletons.65b9baf3.js";a.disable_scroll_handling;const o=a.goto,t=a.invalidate;a.invalidateAll;a.preload_data;a.preload_code;const i=a.before_navigate;a.after_navigate;export{i as b,o as g,t as i}; diff --git a/ui/assets/local/_app/immutable/chunks/paginated.a32521a1.js b/ui/assets/local/_app/immutable/chunks/paginated.9206d4de.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/paginated.a32521a1.js rename to ui/assets/local/_app/immutable/chunks/paginated.9206d4de.js index 5e29776f99..b0d03198c6 100644 --- a/ui/assets/local/_app/immutable/chunks/paginated.a32521a1.js +++ b/ui/assets/local/_app/immutable/chunks/paginated.9206d4de.js @@ -1 +1 @@ -import{h as g}from"./route-for-api.6ac9324b.js";import{i as c}from"./persist-store.863ae031.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.1addc328.js";import{i as c}from"./persist-store.863ae031.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/cloud/_app/immutable/chunks/pagination.69c5aeb5.js b/ui/assets/local/_app/immutable/chunks/pagination.6f9a2b9c.js similarity index 98% rename from ui/assets/cloud/_app/immutable/chunks/pagination.69c5aeb5.js rename to ui/assets/local/_app/immutable/chunks/pagination.6f9a2b9c.js index 2be10301f0..ba2d602f18 100644 --- a/ui/assets/cloud/_app/immutable/chunks/pagination.69c5aeb5.js +++ b/ui/assets/local/_app/immutable/chunks/pagination.6f9a2b9c.js @@ -1 +1 @@ -import{W as A,S as lt,b as at,a as st,N as he,A as Ut,Y as Wt,C as Ne,D as Ae,E as Se,U as Ct,a6 as Ht,Z as Lt,j as I,g as P,F as Ee,K as Dt,O as Fe,G as de,H as ge,I as be,J as ve,e as vt,f as G,z as Ke,h as Te,a7 as qt,k as b,m as j,p as K,q as T,u as p,n as le,$ as ht,c as L,d as q,R as re,X as We,L as h,am as Gt,T as me,r as Jt,a5 as pt,ad as Xt,o as Zt,s as yt,w as $,x as ee,y as Re}from"./index.a36c9cb0.js";import{p as nt}from"./stores.0bc9ce95.js";import{d as Qt,w as xe}from"./index.deae5bd4.js";import{i as Yt,g as xt}from"./navigation.214139c0.js";import{S as $t,a as el}from"./simple-select.6bb2c039.js";const tl={keepFocus:!0,noScroll:!0},Ce=async({parameter:e,value:t,url:s,goto:a=xt,allowEmpty:l=!1})=>{var r,i;const f=String(t);if(t?s.searchParams.set(e,f):l?s.searchParams.set(e,""):s.searchParams.delete(e),s.href!==window.location.href){const o=`/namespaces/${(i=(r=A(nt))==null?void 0:r.params)==null?void 0:i.namespace}/workflows`;s.pathname===o&&await Yt(g=>g.pathname===o),a(s,tl)}return t},Ve=100,Me=["100","250","500"],De="per-page",It=Me[Me.length-1],He=(e,t)=>Math.floor(e/t)+1,Ft=(e,t,s)=>isNaN(e)||e<=1?0:e>Mt(t,s)?s.length-t:Math.floor(t*(e-1)),ll=(e,t,s)=>{const a=He(e,t);return Ft(a,t,s)},wt=(e,t)=>Math.min(e-1,t-1),Mt=(e,t)=>Math.ceil(t.length/e),$e=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,al=(e=[],t=Ve,s=0)=>{t=zt(t);const a=ll(tt(s),t,e),l=xe(t),f=xe(a),r=xe(void 0),i=_=>{l.set(tt(_))},u=()=>{f.update(_=>{const d=_+A(l);return et(d,e)?_:$e(d,e)})},o=()=>{f.update(_=>{const d=_-A(l);return $e(d,e)})},g=_=>{const d=A(l),D=Ft(Number(_),d,e),Q=e.slice(D,D+d).length;return A(r)>Q-1&&r.set(Q-1),f.set(D)},ae=_=>{const d=He(Number(_),A(l));g(d)},k=_=>{for(let d=0;d{const d=k(_);return He(d,A(l))},E=_=>{const d=e.slice(A(f),A(f)+A(l)).length,D=wt(d,A(l));_<=D&&r.set(_)},w=()=>{const _=e.slice(A(f),A(f)+A(l)).length,d=wt(_,A(l));A(r)===void 0?r.set(0):A(r){const _=A(r)>=1?A(r)-1:0;r.set(_)},{subscribe:z}=Qt([f,l,r],([_,d,D])=>({items:e.slice(_,_+d),initialItem:e[0],hasPrevious:!et(_-d,e),hasNext:!et(_+d,e),startingIndex:_,endingIndex:$e(_+d-1,e),length:e.length,pageSize:d,currentPage:He(_,d),totalPages:Mt(d,e),activeRowIndex:D}));return{subscribe:z,adjustPageSize:i,next:u,previous:o,jumpToPage:g,jumpToIndex:ae,findIndex:k,findPage:S,nextRow:w,previousRow:V,setActiveRowIndex:E}},zt=(e=Ve)=>{const t=tt(e);return isNaN(t)||!t?Ve:t},tt=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)};function Pt(e,t,s){const a=e.slice();return a[13]=t[s],a}function kt(e){let t,s;return t=new el({props:{value:e[13]}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&1&&(f.value=a[13]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function sl(e){let t,s,a=e[0].map(Rt),l=[];for(let r=0;rP(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;rWt(t,"value",f)),t.$on("change",e[3]),{c(){Ne(t.$$.fragment)},l(i){Ae(t.$$.fragment,i)},m(i,u){Se(t,i,u),a=!0},p(i,[u]){const o=u&20?Ct(l,[u&4&&{id:i[2]},u&16&&Ht(i[4]),l[2]]):{};u&1025&&(o.$$scope={dirty:u,ctx:i}),!s&&u&2&&(s=!0,o.value=i[1],Lt(()=>s=!1)),t.$set(o)},i(i){a||(I(t.$$.fragment,i),a=!0)},o(i){P(t.$$.fragment,i),a=!1},d(i){Ee(t,i)}}}const Rt=e=>e.toString();function il(e,t,s){let a;Dt(e,nt,w=>s(11,a=w));let{$$slots:l={},$$scope:f}=t,{label:r=null}=t,{value:i}=t,{options:u=[]}=t,{parameter:o=null}=t;const g=`${o||r}-filter`;let k=o&&a.url.searchParams.get(o)||i&&i.toString();const S=()=>{Ce({parameter:o,value:k,url:a.url}).then(w=>s(5,i=w))};function E(w){k=w,s(1,k)}return e.$$set=w=>{s(4,t=he(he({},t),Fe(w))),"label"in w&&s(6,r=w.label),"value"in w&&s(5,i=w.value),"options"in w&&s(0,u=w.options),"parameter"in w&&s(7,o=w.parameter),"$$scope"in w&&s(10,f=w.$$scope)},t=Fe(t),[u,k,g,S,t,i,r,o,l,E,f]}class Bt extends lt{constructor(t){super(),at(this,t,il,ol,st,{label:6,value:5,options:0,parameter:7})}}const rl=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t+14}px`:"";function fl(e){let t,s;return{c(){t=j("div"),this.h()},l(a){t=K(a,"DIV",{class:!0}),T(t).forEach(b),this.h()},h(){p(t,"class",s="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(a,l){G(a,t,l)},p(a,[l]){l&1&&s!==(s="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+a[0].class+" svelte-1hpjfio")&&p(t,"class",s)},i:le,o:le,d(a){a&&b(t)}}}function ul(e,t,s){return e.$$set=a=>{s(0,t=he(he({},t),Fe(a)))},t=Fe(t),[t]}class Ot extends lt{constructor(t){super(),at(this,t,ul,fl,st,{})}}const cl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Nt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),_l=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),At=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),ml=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),St=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),dl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Et=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),gl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),jt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),bl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Kt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex});function Tt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function vl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function hl(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function Vt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function pl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function Il(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function wl(e){let t,s,a,l,f,r,i,u,o,g,ae,k,S,E,w,V,z,_,d,D,Q,fe,ue,ce,F,Y,M,pe,J,X,te,Ie,je,se,m,Z,Le,x,_e,ze,qe,Be,Oe,v,Ge,ot;ht(e[23]);const Je=e[22]["action-top-left"],B=de(Je,e,e[21],Kt),Xe=e[22]["action-top-center"],O=de(Xe,e,e[21],jt);let R=!e[0]&&Tt(e);const it=[hl,vl],ne=[];function rt(n,c){return n[1]?0:1}S=rt(e),E=ne[S]=it[S](e);const Ze=e[22]["action-top-right"],U=de(Ze,e,e[21],Et),ye=e[22].default,W=de(ye,e,e[21],St),Qe=e[22]["action-bottom-left"],C=de(Qe,e,e[21],At);let N=!e[0]&&Vt(e);const ft=[Il,pl],oe=[];function ut(n,c){return n[1]?0:1}m=ut(e),Z=oe[m]=ft[m](e);const Ye=e[22]["action-bottom-right"],H=de(Ye,e,e[21],Nt);return{c(){t=j("div"),s=j("div"),B&&B.c(),a=L(),l=j("nav"),O&&O.c(),f=L(),R&&R.c(),r=L(),i=j("div"),u=j("button"),o=j("span"),ae=L(),k=j("p"),E.c(),w=L(),V=j("button"),z=j("span"),d=L(),U&&U.c(),ue=L(),W&&W.c(),ce=L(),F=j("nav"),C&&C.c(),Y=L(),M=j("div"),N&&N.c(),pe=L(),J=j("div"),X=j("button"),te=j("span"),je=L(),se=j("p"),Z.c(),Le=L(),x=j("button"),_e=j("span"),qe=L(),H&&H.c(),this.h()},l(n){t=K(n,"DIV",{class:!0});var c=T(t);s=K(c,"DIV",{class:!0});var ie=T(s);B&&B.l(ie),a=q(ie),l=K(ie,"NAV",{style:!0,class:!0,"aria-label":!0});var y=T(l);O&&O.l(y),f=q(y),R&&R.l(y),r=q(y),i=K(y,"DIV",{class:!0});var we=T(i);u=K(we,"BUTTON",{class:!0,"aria-label":!0});var ct=T(u);o=K(ct,"SPAN",{class:!0}),T(o).forEach(b),ct.forEach(b),ae=q(we),k=K(we,"P",{});var _t=T(k);E.l(_t),_t.forEach(b),w=q(we),V=K(we,"BUTTON",{class:!0,"aria-label":!0});var mt=T(V);z=K(mt,"SPAN",{class:!0}),T(z).forEach(b),mt.forEach(b),we.forEach(b),d=q(y),U&&U.l(y),y.forEach(b),ie.forEach(b),ue=q(c),W&&W.l(c),ce=q(c),F=K(c,"NAV",{class:!0,"aria-label":!0});var Ue=T(F);C&&C.l(Ue),Y=q(Ue),M=K(Ue,"DIV",{class:!0});var Pe=T(M);N&&N.l(Pe),pe=q(Pe),J=K(Pe,"DIV",{class:!0});var ke=T(J);X=K(ke,"BUTTON",{class:!0,"aria-label":!0});var dt=T(X);te=K(dt,"SPAN",{class:!0}),T(te).forEach(b),dt.forEach(b),je=q(ke),se=K(ke,"P",{});var gt=T(se);Z.l(gt),gt.forEach(b),Le=q(ke),x=K(ke,"BUTTON",{class:!0,"aria-label":!0});var bt=T(x);_e=K(bt,"SPAN",{class:!0}),T(_e).forEach(b),bt.forEach(b),ke.forEach(b),qe=q(Pe),H&&H.l(Pe),Pe.forEach(b),Ue.forEach(b),c.forEach(b),this.h()},h(){p(o,"class","arrow arrow-left svelte-1780ds3"),re(o,"arrow-left-disabled",!e[6].hasPrevious),p(u,"class","caret svelte-1780ds3"),u.disabled=g=!e[6].hasPrevious,p(u,"aria-label","previous"),p(z,"class","arrow arrow-right svelte-1780ds3"),re(z,"arrow-right-disabled",!e[6].hasNext),p(V,"class","caret svelte-1780ds3"),V.disabled=_=!e[6].hasNext,p(V,"aria-label","next"),p(i,"class","flex items-center justify-center gap-3"),p(l,"style",e[7]),p(l,"class","flex flex-col justify-end gap-4 md:flex-row"),p(l,"aria-label",D=e[12]["aria-label"]),ht(()=>e[26].call(l)),p(s,"class",fe=We(`flex flex-col items-center gap-4 lg:flex-row ${e[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(te,"class","arrow arrow-left svelte-1780ds3"),re(te,"arrow-left-disabled",!e[6].hasPrevious),p(X,"class","caret svelte-1780ds3"),X.disabled=Ie=!e[6].hasPrevious,p(X,"aria-label","previous"),p(_e,"class","arrow arrow-right svelte-1780ds3"),re(_e,"arrow-right-disabled",!e[6].hasNext),p(x,"class","caret svelte-1780ds3"),x.disabled=ze=!e[6].hasNext,p(x,"aria-label","next"),p(J,"class","flex items-center justify-center gap-3"),p(M,"class","flex gap-4"),p(F,"class",Be=We(`flex ${e[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(F,"aria-label",Oe=e[12]["aria-label"]),p(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(n,c){G(n,t,c),h(t,s),B&&B.m(s,null),h(s,a),h(s,l),O&&O.m(l,null),h(l,f),R&&R.m(l,null),h(l,r),h(l,i),h(i,u),h(u,o),h(i,ae),h(i,k),ne[S].m(k,null),h(i,w),h(i,V),h(V,z),h(l,d),U&&U.m(l,null),Q=Gt(l,e[26].bind(l)),h(t,ue),W&&W.m(t,null),h(t,ce),h(t,F),C&&C.m(F,null),h(F,Y),h(F,M),N&&N.m(M,null),h(M,pe),h(M,J),h(J,X),h(X,te),h(J,je),h(J,se),oe[m].m(se,null),h(J,Le),h(J,x),h(x,_e),h(M,qe),H&&H.m(M,null),v=!0,Ge||(ot=[me(window,"resize",e[9]),me(window,"keydown",e[10]),me(window,"resize",e[23]),me(u,"click",e[24]),me(V,"click",e[25]),me(X,"click",e[27]),me(x,"click",e[28])],Ge=!0)},p(n,[c]){B&&B.p&&(!v||c&2097232)&&ge(B,Je,n,n[21],v?ve(Je,n[21],c,bl):be(n[21]),Kt),O&&O.p&&(!v||c&2097232)&&ge(O,Xe,n,n[21],v?ve(Xe,n[21],c,gl):be(n[21]),jt),n[0]?R&&(Ke(),P(R,1,1,()=>{R=null}),Te()):R?(R.p(n,c),c&1&&I(R,1)):(R=Tt(n),R.c(),I(R,1),R.m(l,r)),(!v||c&64)&&re(o,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&g!==(g=!n[6].hasPrevious))&&(u.disabled=g);let ie=S;S=rt(n),S===ie?ne[S].p(n,c):(Ke(),P(ne[ie],1,1,()=>{ne[ie]=null}),Te(),E=ne[S],E?E.p(n,c):(E=ne[S]=it[S](n),E.c()),I(E,1),E.m(k,null)),(!v||c&64)&&re(z,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&_!==(_=!n[6].hasNext))&&(V.disabled=_),U&&U.p&&(!v||c&2097232)&&ge(U,Ze,n,n[21],v?ve(Ze,n[21],c,dl):be(n[21]),Et),(!v||c&128)&&p(l,"style",n[7]),(!v||c&4096&&D!==(D=n[12]["aria-label"]))&&p(l,"aria-label",D),(!v||c&2048&&fe!==(fe=We(`flex flex-col items-center gap-4 lg:flex-row ${n[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(s,"class",fe),W&&W.p&&(!v||c&2097232)&&ge(W,ye,n,n[21],v?ve(ye,n[21],c,ml):be(n[21]),St),C&&C.p&&(!v||c&2097232)&&ge(C,Qe,n,n[21],v?ve(Qe,n[21],c,_l):be(n[21]),At),n[0]?N&&(Ke(),P(N,1,1,()=>{N=null}),Te()):N?(N.p(n,c),c&1&&I(N,1)):(N=Vt(n),N.c(),I(N,1),N.m(M,pe)),(!v||c&64)&&re(te,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&Ie!==(Ie=!n[6].hasPrevious))&&(X.disabled=Ie);let y=m;m=ut(n),m===y?oe[m].p(n,c):(Ke(),P(oe[y],1,1,()=>{oe[y]=null}),Te(),Z=oe[m],Z?Z.p(n,c):(Z=oe[m]=ft[m](n),Z.c()),I(Z,1),Z.m(se,null)),(!v||c&64)&&re(_e,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&ze!==(ze=!n[6].hasNext))&&(x.disabled=ze),H&&H.p&&(!v||c&2097232)&&ge(H,Ye,n,n[21],v?ve(Ye,n[21],c,cl):be(n[21]),Nt),(!v||c&2048&&Be!==(Be=We(`flex ${n[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(F,"class",Be),(!v||c&4096&&Oe!==(Oe=n[12]["aria-label"]))&&p(F,"aria-label",Oe)},i(n){v||(I(B,n),I(O,n),I(R),I(E),I(U,n),I(W,n),I(C,n),I(N),I(Z),I(H,n),v=!0)},o(n){P(B,n),P(O,n),P(R),P(E),P(U,n),P(W,n),P(C,n),P(N),P(Z),P(H,n),v=!1},d(n){n&&b(t),B&&B.d(n),O&&O.d(n),R&&R.d(),ne[S].d(),U&&U.d(n),Q(),W&&W.d(n),C&&C.d(n),N&&N.d(),oe[m].d(),H&&H.d(n),Ge=!1,Jt(ot)}}}function Pl(e,t,s){let a,l,f,r;const i=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating"];let u=pt(t,i),o,g=le,ae=()=>(g(),g=yt(l,m=>s(6,o=m)),l),k;Dt(e,nt,m=>s(20,k=m)),e.$$.on_destroy.push(()=>g());let{$$slots:S={},$$scope:E}=t;const w=Xt(S);var V;let{items:z}=t,{floatId:_=void 0}=t,{startingIndex:d=0}=t,{currentPageKey:D="page"}=t,{itemsPerPage:Q=null}=t,{updating:fe=!1}=t,ue,ce,F;Zt(()=>{M(),d>0&&Y()});const Y=()=>{Ce({parameter:D,value:o.currentPage,url:k.url})},M=()=>{var m;_&&s(18,ce=(m=document.getElementById(_))===null||m===void 0?void 0:m.clientWidth)};async function pe(m){switch(m.code){case"ArrowRight":case"KeyL":o.hasNext&&(l.next(),Y());break;case"ArrowLeft":case"KeyH":o.hasPrevious&&(l.previous(),Y());break;case"ArrowUp":case"KeyK":l.previousRow();break;case"ArrowDown":case"KeyJ":l.nextRow();break}}function J(){s(2,ue=window.innerWidth)}const X=()=>{l.previous(),Y()},te=()=>{l.next(),Y()};function Ie(){F=this.clientHeight,s(3,F)}const je=()=>l.previous(),se=()=>l.next();return e.$$set=m=>{t=he(he({},t),Fe(m)),s(12,u=pt(t,i)),"items"in m&&s(13,z=m.items),"floatId"in m&&s(14,_=m.floatId),"startingIndex"in m&&s(15,d=m.startingIndex),"currentPageKey"in m&&s(16,D=m.currentPageKey),"itemsPerPage"in m&&s(0,Q=m.itemsPerPage),"updating"in m&&s(1,fe=m.updating),"$$scope"in m&&s(21,E=m.$$scope)},e.$$.update=()=>{e.$$.dirty&1048577&&s(5,a=Q!==null?String(Q):String(zt(k.url.searchParams.get(De))).toString()),e.$$.dirty&1048608&&(parseInt(a,10)>parseInt(It,10)?Ce({parameter:De,value:It,url:k.url}):Me.includes(a)||Ce({parameter:De,value:Ve,url:k.url})),e.$$.dirty&40992&&ae(s(4,l=al(z,a,d))),e.$$.dirty&1245248&&s(19,f=s(17,V=k.url.searchParams.get(D))!==null&&V!==void 0?V:o.currentPage),e.$$.dirty&524304&&l.jumpToPage(f),e.$$.dirty&262156&&s(7,r=rl({width:ce,height:F,screenWidth:ue}))},[Q,fe,ue,F,l,a,o,r,Y,M,pe,w,u,z,_,d,D,V,ce,f,k,E,S,J,X,te,Ie,je,se]}class El extends lt{constructor(t){super(),at(this,t,Pl,wl,st,{items:13,floatId:14,startingIndex:15,currentPageKey:16,itemsPerPage:0,updating:1})}}export{Bt as F,El as P,Ce as u}; +import{W as A,S as lt,b as at,a as st,N as he,A as Ut,Y as Wt,C as Ne,D as Ae,E as Se,U as Ct,a6 as Ht,Z as Lt,j as I,g as P,F as Ee,K as Dt,O as Fe,G as de,H as ge,I as be,J as ve,e as vt,f as G,z as Ke,h as Te,a7 as qt,k as b,m as j,p as K,q as T,u as p,n as le,$ as ht,c as L,d as q,R as re,X as We,L as h,am as Gt,T as me,r as Jt,a5 as pt,ad as Xt,o as Zt,s as yt,w as $,x as ee,y as Re}from"./index.a36c9cb0.js";import{p as nt}from"./stores.4d55fa19.js";import{d as Qt,w as xe}from"./index.deae5bd4.js";import{i as Yt,g as xt}from"./navigation.0861544c.js";import{S as $t,a as el}from"./simple-select.6bb2c039.js";const tl={keepFocus:!0,noScroll:!0},Ce=async({parameter:e,value:t,url:s,goto:a=xt,allowEmpty:l=!1})=>{var r,i;const f=String(t);if(t?s.searchParams.set(e,f):l?s.searchParams.set(e,""):s.searchParams.delete(e),s.href!==window.location.href){const o=`/namespaces/${(i=(r=A(nt))==null?void 0:r.params)==null?void 0:i.namespace}/workflows`;s.pathname===o&&await Yt(g=>g.pathname===o),a(s,tl)}return t},Ve=100,Me=["100","250","500"],De="per-page",It=Me[Me.length-1],He=(e,t)=>Math.floor(e/t)+1,Ft=(e,t,s)=>isNaN(e)||e<=1?0:e>Mt(t,s)?s.length-t:Math.floor(t*(e-1)),ll=(e,t,s)=>{const a=He(e,t);return Ft(a,t,s)},wt=(e,t)=>Math.min(e-1,t-1),Mt=(e,t)=>Math.ceil(t.length/e),$e=(e,t)=>isNaN(e)||e<0?0:ee>=t.length||e<0,al=(e=[],t=Ve,s=0)=>{t=zt(t);const a=ll(tt(s),t,e),l=xe(t),f=xe(a),r=xe(void 0),i=_=>{l.set(tt(_))},u=()=>{f.update(_=>{const d=_+A(l);return et(d,e)?_:$e(d,e)})},o=()=>{f.update(_=>{const d=_-A(l);return $e(d,e)})},g=_=>{const d=A(l),D=Ft(Number(_),d,e),Q=e.slice(D,D+d).length;return A(r)>Q-1&&r.set(Q-1),f.set(D)},ae=_=>{const d=He(Number(_),A(l));g(d)},k=_=>{for(let d=0;d{const d=k(_);return He(d,A(l))},E=_=>{const d=e.slice(A(f),A(f)+A(l)).length,D=wt(d,A(l));_<=D&&r.set(_)},w=()=>{const _=e.slice(A(f),A(f)+A(l)).length,d=wt(_,A(l));A(r)===void 0?r.set(0):A(r){const _=A(r)>=1?A(r)-1:0;r.set(_)},{subscribe:z}=Qt([f,l,r],([_,d,D])=>({items:e.slice(_,_+d),initialItem:e[0],hasPrevious:!et(_-d,e),hasNext:!et(_+d,e),startingIndex:_,endingIndex:$e(_+d-1,e),length:e.length,pageSize:d,currentPage:He(_,d),totalPages:Mt(d,e),activeRowIndex:D}));return{subscribe:z,adjustPageSize:i,next:u,previous:o,jumpToPage:g,jumpToIndex:ae,findIndex:k,findPage:S,nextRow:w,previousRow:V,setActiveRowIndex:E}},zt=(e=Ve)=>{const t=tt(e);return isNaN(t)||!t?Ve:t},tt=(e=0)=>{const t=Number(e);return isNaN(t)||!t?0:Math.abs(t)};function Pt(e,t,s){const a=e.slice();return a[13]=t[s],a}function kt(e){let t,s;return t=new el({props:{value:e[13]}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&1&&(f.value=a[13]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function sl(e){let t,s,a=e[0].map(Rt),l=[];for(let r=0;rP(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;rWt(t,"value",f)),t.$on("change",e[3]),{c(){Ne(t.$$.fragment)},l(i){Ae(t.$$.fragment,i)},m(i,u){Se(t,i,u),a=!0},p(i,[u]){const o=u&20?Ct(l,[u&4&&{id:i[2]},u&16&&Ht(i[4]),l[2]]):{};u&1025&&(o.$$scope={dirty:u,ctx:i}),!s&&u&2&&(s=!0,o.value=i[1],Lt(()=>s=!1)),t.$set(o)},i(i){a||(I(t.$$.fragment,i),a=!0)},o(i){P(t.$$.fragment,i),a=!1},d(i){Ee(t,i)}}}const Rt=e=>e.toString();function il(e,t,s){let a;Dt(e,nt,w=>s(11,a=w));let{$$slots:l={},$$scope:f}=t,{label:r=null}=t,{value:i}=t,{options:u=[]}=t,{parameter:o=null}=t;const g=`${o||r}-filter`;let k=o&&a.url.searchParams.get(o)||i&&i.toString();const S=()=>{Ce({parameter:o,value:k,url:a.url}).then(w=>s(5,i=w))};function E(w){k=w,s(1,k)}return e.$$set=w=>{s(4,t=he(he({},t),Fe(w))),"label"in w&&s(6,r=w.label),"value"in w&&s(5,i=w.value),"options"in w&&s(0,u=w.options),"parameter"in w&&s(7,o=w.parameter),"$$scope"in w&&s(10,f=w.$$scope)},t=Fe(t),[u,k,g,S,t,i,r,o,l,E,f]}class Bt extends lt{constructor(t){super(),at(this,t,il,ol,st,{label:6,value:5,options:0,parameter:7})}}const rl=({width:e,height:t,screenWidth:s,breakpoint:a=1279})=>e&&t&&s>a?`position: absolute; right: ${e+20}px; top: -${t+14}px`:"";function fl(e){let t,s;return{c(){t=j("div"),this.h()},l(a){t=K(a,"DIV",{class:!0}),T(t).forEach(b),this.h()},h(){p(t,"class",s="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(a,l){G(a,t,l)},p(a,[l]){l&1&&s!==(s="background-animate w-full rounded-full bg-gradient-to-r from-gray-100 via-gray-200 to-gray-300 "+a[0].class+" svelte-1hpjfio")&&p(t,"class",s)},i:le,o:le,d(a){a&&b(t)}}}function ul(e,t,s){return e.$$set=a=>{s(0,t=he(he({},t),Fe(a)))},t=Fe(t),[t]}class Ot extends lt{constructor(t){super(),at(this,t,ul,fl,st,{})}}const cl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Nt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),_l=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),At=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),ml=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),St=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),dl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Et=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),gl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),jt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex}),bl=e=>({visibleItems:e&64,initialItem:e&64,activeRowIndex:e&64,setActiveRowIndex:e&16}),Kt=e=>({visibleItems:e[6].items,initialItem:e[6].initialItem,activeRowIndex:e[6].activeRowIndex,setActiveRowIndex:e[4].setActiveRowIndex});function Tt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function vl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function hl(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function Vt(e){let t,s;return t=new Bt({props:{label:"Per Page",parameter:De,value:e[5],options:Me}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p(a,l){const f={};l&32&&(f.value=a[5]),t.$set(f)},i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function pl(e){let t=(e[6].length?e[6].startingIndex+1:0)+"",s,a,l=e[6].endingIndex+1+"",f,r,i=e[6].length+"",u;return{c(){s=$(t),a=$("–"),f=$(l),r=$(" of "),u=$(i)},l(o){s=ee(o,t),a=ee(o,"–"),f=ee(o,l),r=ee(o," of "),u=ee(o,i)},m(o,g){G(o,s,g),G(o,a,g),G(o,f,g),G(o,r,g),G(o,u,g)},p(o,g){g&64&&t!==(t=(o[6].length?o[6].startingIndex+1:0)+"")&&Re(s,t),g&64&&l!==(l=o[6].endingIndex+1+"")&&Re(f,l),g&64&&i!==(i=o[6].length+"")&&Re(u,i)},i:le,o:le,d(o){o&&b(s),o&&b(a),o&&b(f),o&&b(r),o&&b(u)}}}function Il(e){let t,s;return t=new Ot({props:{class:"block h-5 w-24"}}),{c(){Ne(t.$$.fragment)},l(a){Ae(t.$$.fragment,a)},m(a,l){Se(t,a,l),s=!0},p:le,i(a){s||(I(t.$$.fragment,a),s=!0)},o(a){P(t.$$.fragment,a),s=!1},d(a){Ee(t,a)}}}function wl(e){let t,s,a,l,f,r,i,u,o,g,ae,k,S,E,w,V,z,_,d,D,Q,fe,ue,ce,F,Y,M,pe,J,X,te,Ie,je,se,m,Z,Le,x,_e,ze,qe,Be,Oe,v,Ge,ot;ht(e[23]);const Je=e[22]["action-top-left"],B=de(Je,e,e[21],Kt),Xe=e[22]["action-top-center"],O=de(Xe,e,e[21],jt);let R=!e[0]&&Tt(e);const it=[hl,vl],ne=[];function rt(n,c){return n[1]?0:1}S=rt(e),E=ne[S]=it[S](e);const Ze=e[22]["action-top-right"],U=de(Ze,e,e[21],Et),ye=e[22].default,W=de(ye,e,e[21],St),Qe=e[22]["action-bottom-left"],C=de(Qe,e,e[21],At);let N=!e[0]&&Vt(e);const ft=[Il,pl],oe=[];function ut(n,c){return n[1]?0:1}m=ut(e),Z=oe[m]=ft[m](e);const Ye=e[22]["action-bottom-right"],H=de(Ye,e,e[21],Nt);return{c(){t=j("div"),s=j("div"),B&&B.c(),a=L(),l=j("nav"),O&&O.c(),f=L(),R&&R.c(),r=L(),i=j("div"),u=j("button"),o=j("span"),ae=L(),k=j("p"),E.c(),w=L(),V=j("button"),z=j("span"),d=L(),U&&U.c(),ue=L(),W&&W.c(),ce=L(),F=j("nav"),C&&C.c(),Y=L(),M=j("div"),N&&N.c(),pe=L(),J=j("div"),X=j("button"),te=j("span"),je=L(),se=j("p"),Z.c(),Le=L(),x=j("button"),_e=j("span"),qe=L(),H&&H.c(),this.h()},l(n){t=K(n,"DIV",{class:!0});var c=T(t);s=K(c,"DIV",{class:!0});var ie=T(s);B&&B.l(ie),a=q(ie),l=K(ie,"NAV",{style:!0,class:!0,"aria-label":!0});var y=T(l);O&&O.l(y),f=q(y),R&&R.l(y),r=q(y),i=K(y,"DIV",{class:!0});var we=T(i);u=K(we,"BUTTON",{class:!0,"aria-label":!0});var ct=T(u);o=K(ct,"SPAN",{class:!0}),T(o).forEach(b),ct.forEach(b),ae=q(we),k=K(we,"P",{});var _t=T(k);E.l(_t),_t.forEach(b),w=q(we),V=K(we,"BUTTON",{class:!0,"aria-label":!0});var mt=T(V);z=K(mt,"SPAN",{class:!0}),T(z).forEach(b),mt.forEach(b),we.forEach(b),d=q(y),U&&U.l(y),y.forEach(b),ie.forEach(b),ue=q(c),W&&W.l(c),ce=q(c),F=K(c,"NAV",{class:!0,"aria-label":!0});var Ue=T(F);C&&C.l(Ue),Y=q(Ue),M=K(Ue,"DIV",{class:!0});var Pe=T(M);N&&N.l(Pe),pe=q(Pe),J=K(Pe,"DIV",{class:!0});var ke=T(J);X=K(ke,"BUTTON",{class:!0,"aria-label":!0});var dt=T(X);te=K(dt,"SPAN",{class:!0}),T(te).forEach(b),dt.forEach(b),je=q(ke),se=K(ke,"P",{});var gt=T(se);Z.l(gt),gt.forEach(b),Le=q(ke),x=K(ke,"BUTTON",{class:!0,"aria-label":!0});var bt=T(x);_e=K(bt,"SPAN",{class:!0}),T(_e).forEach(b),bt.forEach(b),ke.forEach(b),qe=q(Pe),H&&H.l(Pe),Pe.forEach(b),Ue.forEach(b),c.forEach(b),this.h()},h(){p(o,"class","arrow arrow-left svelte-1780ds3"),re(o,"arrow-left-disabled",!e[6].hasPrevious),p(u,"class","caret svelte-1780ds3"),u.disabled=g=!e[6].hasPrevious,p(u,"aria-label","previous"),p(z,"class","arrow arrow-right svelte-1780ds3"),re(z,"arrow-right-disabled",!e[6].hasNext),p(V,"class","caret svelte-1780ds3"),V.disabled=_=!e[6].hasNext,p(V,"aria-label","next"),p(i,"class","flex items-center justify-center gap-3"),p(l,"style",e[7]),p(l,"class","flex flex-col justify-end gap-4 md:flex-row"),p(l,"aria-label",D=e[12]["aria-label"]),ht(()=>e[26].call(l)),p(s,"class",fe=We(`flex flex-col items-center gap-4 lg:flex-row ${e[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(te,"class","arrow arrow-left svelte-1780ds3"),re(te,"arrow-left-disabled",!e[6].hasPrevious),p(X,"class","caret svelte-1780ds3"),X.disabled=Ie=!e[6].hasPrevious,p(X,"aria-label","previous"),p(_e,"class","arrow arrow-right svelte-1780ds3"),re(_e,"arrow-right-disabled",!e[6].hasNext),p(x,"class","caret svelte-1780ds3"),x.disabled=ze=!e[6].hasNext,p(x,"aria-label","next"),p(J,"class","flex items-center justify-center gap-3"),p(M,"class","flex gap-4"),p(F,"class",Be=We(`flex ${e[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"),p(F,"aria-label",Oe=e[12]["aria-label"]),p(t,"class","pagination relative mb-8 flex flex-col gap-4")},m(n,c){G(n,t,c),h(t,s),B&&B.m(s,null),h(s,a),h(s,l),O&&O.m(l,null),h(l,f),R&&R.m(l,null),h(l,r),h(l,i),h(i,u),h(u,o),h(i,ae),h(i,k),ne[S].m(k,null),h(i,w),h(i,V),h(V,z),h(l,d),U&&U.m(l,null),Q=Gt(l,e[26].bind(l)),h(t,ue),W&&W.m(t,null),h(t,ce),h(t,F),C&&C.m(F,null),h(F,Y),h(F,M),N&&N.m(M,null),h(M,pe),h(M,J),h(J,X),h(X,te),h(J,je),h(J,se),oe[m].m(se,null),h(J,Le),h(J,x),h(x,_e),h(M,qe),H&&H.m(M,null),v=!0,Ge||(ot=[me(window,"resize",e[9]),me(window,"keydown",e[10]),me(window,"resize",e[23]),me(u,"click",e[24]),me(V,"click",e[25]),me(X,"click",e[27]),me(x,"click",e[28])],Ge=!0)},p(n,[c]){B&&B.p&&(!v||c&2097232)&&ge(B,Je,n,n[21],v?ve(Je,n[21],c,bl):be(n[21]),Kt),O&&O.p&&(!v||c&2097232)&&ge(O,Xe,n,n[21],v?ve(Xe,n[21],c,gl):be(n[21]),jt),n[0]?R&&(Ke(),P(R,1,1,()=>{R=null}),Te()):R?(R.p(n,c),c&1&&I(R,1)):(R=Tt(n),R.c(),I(R,1),R.m(l,r)),(!v||c&64)&&re(o,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&g!==(g=!n[6].hasPrevious))&&(u.disabled=g);let ie=S;S=rt(n),S===ie?ne[S].p(n,c):(Ke(),P(ne[ie],1,1,()=>{ne[ie]=null}),Te(),E=ne[S],E?E.p(n,c):(E=ne[S]=it[S](n),E.c()),I(E,1),E.m(k,null)),(!v||c&64)&&re(z,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&_!==(_=!n[6].hasNext))&&(V.disabled=_),U&&U.p&&(!v||c&2097232)&&ge(U,Ze,n,n[21],v?ve(Ze,n[21],c,dl):be(n[21]),Et),(!v||c&128)&&p(l,"style",n[7]),(!v||c&4096&&D!==(D=n[12]["aria-label"]))&&p(l,"aria-label",D),(!v||c&2048&&fe!==(fe=We(`flex flex-col items-center gap-4 lg:flex-row ${n[11]["action-top-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(s,"class",fe),W&&W.p&&(!v||c&2097232)&&ge(W,ye,n,n[21],v?ve(ye,n[21],c,ml):be(n[21]),St),C&&C.p&&(!v||c&2097232)&&ge(C,Qe,n,n[21],v?ve(Qe,n[21],c,_l):be(n[21]),At),n[0]?N&&(Ke(),P(N,1,1,()=>{N=null}),Te()):N?(N.p(n,c),c&1&&I(N,1)):(N=Vt(n),N.c(),I(N,1),N.m(M,pe)),(!v||c&64)&&re(te,"arrow-left-disabled",!n[6].hasPrevious),(!v||c&64&&Ie!==(Ie=!n[6].hasPrevious))&&(X.disabled=Ie);let y=m;m=ut(n),m===y?oe[m].p(n,c):(Ke(),P(oe[y],1,1,()=>{oe[y]=null}),Te(),Z=oe[m],Z?Z.p(n,c):(Z=oe[m]=ft[m](n),Z.c()),I(Z,1),Z.m(se,null)),(!v||c&64)&&re(_e,"arrow-right-disabled",!n[6].hasNext),(!v||c&64&&ze!==(ze=!n[6].hasNext))&&(x.disabled=ze),H&&H.p&&(!v||c&2097232)&&ge(H,Ye,n,n[21],v?ve(Ye,n[21],c,cl):be(n[21]),Nt),(!v||c&2048&&Be!==(Be=We(`flex ${n[11]["action-bottom-left"]?"justify-between":"justify-end"}`)+" svelte-1780ds3"))&&p(F,"class",Be),(!v||c&4096&&Oe!==(Oe=n[12]["aria-label"]))&&p(F,"aria-label",Oe)},i(n){v||(I(B,n),I(O,n),I(R),I(E),I(U,n),I(W,n),I(C,n),I(N),I(Z),I(H,n),v=!0)},o(n){P(B,n),P(O,n),P(R),P(E),P(U,n),P(W,n),P(C,n),P(N),P(Z),P(H,n),v=!1},d(n){n&&b(t),B&&B.d(n),O&&O.d(n),R&&R.d(),ne[S].d(),U&&U.d(n),Q(),W&&W.d(n),C&&C.d(n),N&&N.d(),oe[m].d(),H&&H.d(n),Ge=!1,Jt(ot)}}}function Pl(e,t,s){let a,l,f,r;const i=["items","floatId","startingIndex","currentPageKey","itemsPerPage","updating"];let u=pt(t,i),o,g=le,ae=()=>(g(),g=yt(l,m=>s(6,o=m)),l),k;Dt(e,nt,m=>s(20,k=m)),e.$$.on_destroy.push(()=>g());let{$$slots:S={},$$scope:E}=t;const w=Xt(S);var V;let{items:z}=t,{floatId:_=void 0}=t,{startingIndex:d=0}=t,{currentPageKey:D="page"}=t,{itemsPerPage:Q=null}=t,{updating:fe=!1}=t,ue,ce,F;Zt(()=>{M(),d>0&&Y()});const Y=()=>{Ce({parameter:D,value:o.currentPage,url:k.url})},M=()=>{var m;_&&s(18,ce=(m=document.getElementById(_))===null||m===void 0?void 0:m.clientWidth)};async function pe(m){switch(m.code){case"ArrowRight":case"KeyL":o.hasNext&&(l.next(),Y());break;case"ArrowLeft":case"KeyH":o.hasPrevious&&(l.previous(),Y());break;case"ArrowUp":case"KeyK":l.previousRow();break;case"ArrowDown":case"KeyJ":l.nextRow();break}}function J(){s(2,ue=window.innerWidth)}const X=()=>{l.previous(),Y()},te=()=>{l.next(),Y()};function Ie(){F=this.clientHeight,s(3,F)}const je=()=>l.previous(),se=()=>l.next();return e.$$set=m=>{t=he(he({},t),Fe(m)),s(12,u=pt(t,i)),"items"in m&&s(13,z=m.items),"floatId"in m&&s(14,_=m.floatId),"startingIndex"in m&&s(15,d=m.startingIndex),"currentPageKey"in m&&s(16,D=m.currentPageKey),"itemsPerPage"in m&&s(0,Q=m.itemsPerPage),"updating"in m&&s(1,fe=m.updating),"$$scope"in m&&s(21,E=m.$$scope)},e.$$.update=()=>{e.$$.dirty&1048577&&s(5,a=Q!==null?String(Q):String(zt(k.url.searchParams.get(De))).toString()),e.$$.dirty&1048608&&(parseInt(a,10)>parseInt(It,10)?Ce({parameter:De,value:It,url:k.url}):Me.includes(a)||Ce({parameter:De,value:Ve,url:k.url})),e.$$.dirty&40992&&ae(s(4,l=al(z,a,d))),e.$$.dirty&1245248&&s(19,f=s(17,V=k.url.searchParams.get(D))!==null&&V!==void 0?V:o.currentPage),e.$$.dirty&524304&&l.jumpToPage(f),e.$$.dirty&262156&&s(7,r=rl({width:ce,height:F,screenWidth:ue}))},[Q,fe,ue,F,l,a,o,r,Y,M,pe,w,u,z,_,d,D,V,ce,f,k,E,S,J,X,te,Ie,je,se]}class El extends lt{constructor(t){super(),at(this,t,Pl,wl,st,{items:13,floatId:14,startingIndex:15,currentPageKey:16,itemsPerPage:0,updating:1})}}export{Bt as F,El as P,Ce as u}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.88db541d.js b/ui/assets/local/_app/immutable/chunks/paths.88db541d.js deleted file mode 100644 index e52646f019..0000000000 --- a/ui/assets/local/_app/immutable/chunks/paths.88db541d.js +++ /dev/null @@ -1 +0,0 @@ -var s;const a=((s=globalThis.__sveltekit_esy1vg)==null?void 0:s.base)??"";var e;const t=((e=globalThis.__sveltekit_esy1vg)==null?void 0:e.assets)??a;export{t as a,a as b}; diff --git a/ui/assets/local/_app/immutable/chunks/paths.9a3098df.js b/ui/assets/local/_app/immutable/chunks/paths.9a3098df.js new file mode 100644 index 0000000000..479ac652b8 --- /dev/null +++ b/ui/assets/local/_app/immutable/chunks/paths.9a3098df.js @@ -0,0 +1 @@ +var s;const e=((s=globalThis.__sveltekit_v0ko3c)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_v0ko3c)==null?void 0:a.assets)??e;export{t as a,e as b}; diff --git a/ui/assets/local/_app/immutable/chunks/pollers-service.2fa449c9.js b/ui/assets/local/_app/immutable/chunks/pollers-service.35343e4c.js similarity index 93% rename from ui/assets/local/_app/immutable/chunks/pollers-service.2fa449c9.js rename to ui/assets/local/_app/immutable/chunks/pollers-service.35343e4c.js index ec1c59033d..1bebfac75b 100644 --- a/ui/assets/local/_app/immutable/chunks/pollers-service.2fa449c9.js +++ b/ui/assets/local/_app/immutable/chunks/pollers-service.35343e4c.js @@ -1 +1 @@ -import{r as y,a as l}from"./route-for-api.6ac9324b.js";async function m(n,r=fetch){const o=y("task-queue",n),a=await l(o,{request:r,params:{taskQueueType:"1"}}),s=await l(o,{request:r,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(t,u)=>{const c=t[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return t[u.identity]={lastAccessTime:!c.lastAccessTime||c.lastAccessTimea.pollers.some(t=>{if(e.identity===t.identity)return e.taskQueueTypes=[...t.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const T=s.pollers.length?s.pollers:a.pollers,p=s.pollers.length?s.taskQueueStatus:a.taskQueueStatus;return{pollers:T,taskQueueStatus:p}}export{m as g}; +import{r as y,a as l}from"./route-for-api.1addc328.js";async function m(n,r=fetch){const o=y("task-queue",n),a=await l(o,{request:r,params:{taskQueueType:"1"}}),s=await l(o,{request:r,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(t,u)=>{const c=t[u.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return t[u.identity]={lastAccessTime:!c.lastAccessTime||c.lastAccessTimea.pollers.some(t=>{if(e.identity===t.identity)return e.taskQueueTypes=[...t.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const T=s.pollers.length?s.pollers:a.pollers,p=s.pollers.length?s.taskQueueStatus:a.taskQueueStatus;return{pollers:T,taskQueueStatus:p}}export{m as g}; diff --git a/ui/assets/local/_app/immutable/chunks/query-service.9f914e5c.js b/ui/assets/local/_app/immutable/chunks/query-service.7e164ee8.js similarity index 91% rename from ui/assets/local/_app/immutable/chunks/query-service.9f914e5c.js rename to ui/assets/local/_app/immutable/chunks/query-service.7e164ee8.js index 86eb9cd19e..d5caaca700 100644 --- a/ui/assets/local/_app/immutable/chunks/query-service.9f914e5c.js +++ b/ui/assets/local/_app/immutable/chunks/query-service.7e164ee8.js @@ -1 +1 @@ -import{r as f,a as l,d as m}from"./route-for-api.6ac9324b.js";import{g as h,a as T,c as _,d as g}from"./get-codec.8518c13e.js";import{s as d,p as I}from"./parse-with-big-int.0036a80a.js";import{p as P}from"./is-http.1e6b12cd.js";const O=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)},W=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,n){t=await t;const c=await W(e,t),s=f("query",c);return await l(s,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function B(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(O(n.body.message)):a(n)})})}async function b(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:c}=n??{queryResult:{payloads:[]}};let s=c.payloads;try{if(s[0]){const o=h(e),y=T(e,P),p={...e,codec:{...e==null?void 0:e.codec,endpoint:o,passAccessToken:y}},i=o?await _({attributes:c,namespace:t.namespace,settings:p,accessToken:r}):await g(c);s=i==null?void 0:i.payloads[0]}return I(s)}catch{return typeof s!="string"?d(s):s}})}async function C(t,e,r){return b({...t,queryType:"__stack_trace"},e,r)}export{b as a,C as b,B as g}; +import{r as f,a as l,d as m}from"./route-for-api.1addc328.js";import{g as h,a as T,c as _,d as g}from"./get-codec.d25c452e.js";import{s as d,p as I}from"./parse-with-big-int.0036a80a.js";import{p as P}from"./is-http.1e6b12cd.js";const O=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)},W=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,n){t=await t;const c=await W(e,t),s=f("query",c);return await l(s,{options:{method:"POST",body:d({execution:{workflowId:t.id,runId:t.runId},query:{queryType:r}})},request:a,onError:n,notifyOnError:!1})}async function B(t,e=fetch){return new Promise((r,a)=>{u({...t,queryType:"@@temporal-internal__list"},e,n=>{m(n.body)&&n.body.message.includes("@@temporal-internal__list")?r(O(n.body.message)):a(n)})})}async function b(t,e,r,a=fetch){return u(t,a).then(async n=>{const{queryResult:c}=n??{queryResult:{payloads:[]}};let s=c.payloads;try{if(s[0]){const o=h(e),y=T(e,P),p={...e,codec:{...e==null?void 0:e.codec,endpoint:o,passAccessToken:y}},i=o?await _({attributes:c,namespace:t.namespace,settings:p,accessToken:r}):await g(c);s=i==null?void 0:i.payloads[0]}return I(s)}catch{return typeof s!="string"?d(s):s}})}async function C(t,e,r){return b({...t,queryType:"__stack_trace"},e,r)}export{b as a,C as b,B as g}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for-api.6ac9324b.js b/ui/assets/local/_app/immutable/chunks/route-for-api.1addc328.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for-api.6ac9324b.js rename to ui/assets/local/_app/immutable/chunks/route-for-api.1addc328.js index 7933ac8d35..01056c9f98 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for-api.6ac9324b.js +++ b/ui/assets/local/_app/immutable/chunks/route-for-api.1addc328.js @@ -1 +1 @@ -import{f as l,e as $,t as W}from"./route-for.6dec3e74.js";import{g}from"./auth-user.3a7bc4db.js";import{n as O,W as P}from"./index.a36c9cb0.js";import{w as N}from"./index.deae5bd4.js";import{t as _}from"./toaster.16c48a98.js";import{i as z}from"./is-network-error.cb50de70.js";import{h as e}from"./has.48bed8a5.js";import{i as S}from"./persist-store.863ae031.js";import{p as L}from"./stores.48be4ca9.js";import{b as H}from"./paths.88db541d.js";const K=N(null);function X(c=l){const n="",o=!n.startsWith("http");let s="";return o?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const B=(c,n=_,o=K,s=l)=>{if(typeof c=="string")return n.push({variant:"error",message:c});if(c instanceof Error)return n.push({variant:"error",message:c.message});if(y(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(b(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(z(c))throw n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c),c.report=!1,c},wn=(c,n=l)=>{var s;const o=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(y(c)&&n){window.location.assign($(o));return}if(b(c)&&n){window.location.assign($(o));return}},y=c=>T(c,401),b=c=>T(c,403),T=(c,n)=>e(c,"statusCode")?c.statusCode===n:e(c,"status")?c.status===n:!1,fn=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",D=async(c,n={},o=10)=>{const{params:s={},request:f=fetch,token:i,shouldRetry:t=!1,notifyOnError:U=!0,handleError:E=B,onRetry:A=O,onError:k,retryInterval:x=5e3,isBrowser:I=l}=n;let{options:d}=n;const C=i?{next_page_token:i}:{},q=new URLSearchParams({...s,...C}),R=W(c,q);try{d=G(d,I),d=await J(d,I);const u=await f(R,d),w=await u.json(),{status:h,statusText:F}=u;if(!u.ok)if(k&&S(k))k({status:h,statusText:F,body:w});else throw{statusCode:u.status,statusText:u.statusText,response:u,message:(w==null?void 0:w.message)??u.statusText};return w}catch(u){if(U){if(E(u),t&&o>0)return new Promise(w=>{const h=o-1;A(h),setTimeout(()=>{w(D(c,n,h))},x)})}else throw u}},G=(c,n=l)=>{const o={credentials:"include",...c};return o.headers=Q(c==null?void 0:c.headers,n),o},J=async(c,n=l)=>(g().accessToken?(c.headers=await v(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=M(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await v(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),v=async(c,n,o=l)=>{if(c||(c={}),!o)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},M=(c={},n,o=l)=>(o&&n&&(c["Authorization-Extras"]=n),c),Q=(c,n=l)=>{if(c||(c={}),!n)return c;const o="_csrf=",s="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(o));i&&!c[s]&&(i=i.trim().slice(o.length),c[s]=i)}catch(f){console.error(f)}return c},V=(c,n)=>c?c.replace("%namespace%",n):"",Y=c=>{var i,t;let n="";const o=(i=P(L).data)==null?void 0:i.webUrl,s=o&&c,f=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=o:f?(console.warn("Using fallback api url, web url not found"),n=V(globalThis.AppConfig.apiUrl,c)):n=X(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${H}`,n},Z=(c,n)=>(c.startsWith("/")&&(c=c.slice(1)),`${Y(n)}/api/v1/${c}`),j=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function tn(c,n,o=!0){o&&(n=j(n));const s={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":"/search-attributes",settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,user:"/me","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 Z(s[c],n==null?void 0:n.namespace)}export{D as a,wn as b,b as c,fn as d,X as g,B as h,y as i,K as n,tn as r}; +import{f as l,e as $,t as W}from"./route-for.e1b7889c.js";import{g}from"./auth-user.3a7bc4db.js";import{n as O,W as P}from"./index.a36c9cb0.js";import{w as N}from"./index.deae5bd4.js";import{t as _}from"./toaster.16c48a98.js";import{i as z}from"./is-network-error.cb50de70.js";import{h as e}from"./has.48bed8a5.js";import{i as S}from"./persist-store.863ae031.js";import{p as L}from"./stores.4d55fa19.js";import{b as H}from"./paths.9a3098df.js";const K=N(null);function X(c=l){const n="",o=!n.startsWith("http");let s="";return o?s=c?window.location.origin+n:"":s=n,s.endsWith("/")&&(s=s.slice(0,-1)),s}const B=(c,n=_,o=K,s=l)=>{if(typeof c=="string")return n.push({variant:"error",message:c});if(c instanceof Error)return n.push({variant:"error",message:c.message});if(y(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(b(c)&&s)return window.location.assign($(c==null?void 0:c.message));if(z(c))throw n.push({variant:"error",message:`${c.statusCode} ${c.statusText}`}),o.set(c),c.report=!1,c},wn=(c,n=l)=>{var s;const o=`${c==null?void 0:c.status} ${(s=c==null?void 0:c.body)==null?void 0:s.message}`;if(y(c)&&n){window.location.assign($(o));return}if(b(c)&&n){window.location.assign($(o));return}},y=c=>T(c,401),b=c=>T(c,403),T=(c,n)=>e(c,"statusCode")?c.statusCode===n:e(c,"status")?c.status===n:!1,fn=c=>(c==null?void 0:c.message)!==void 0&&typeof(c==null?void 0:c.message)=="string",D=async(c,n={},o=10)=>{const{params:s={},request:f=fetch,token:i,shouldRetry:t=!1,notifyOnError:U=!0,handleError:E=B,onRetry:A=O,onError:k,retryInterval:x=5e3,isBrowser:I=l}=n;let{options:d}=n;const C=i?{next_page_token:i}:{},q=new URLSearchParams({...s,...C}),R=W(c,q);try{d=G(d,I),d=await J(d,I);const u=await f(R,d),w=await u.json(),{status:h,statusText:F}=u;if(!u.ok)if(k&&S(k))k({status:h,statusText:F,body:w});else throw{statusCode:u.status,statusText:u.statusText,response:u,message:(w==null?void 0:w.message)??u.statusText};return w}catch(u){if(U){if(E(u),t&&o>0)return new Promise(w=>{const h=o-1;A(h),setTimeout(()=>{w(D(c,n,h))},x)})}else throw u}},G=(c,n=l)=>{const o={credentials:"include",...c};return o.headers=Q(c==null?void 0:c.headers,n),o},J=async(c,n=l)=>(g().accessToken?(c.headers=await v(c==null?void 0:c.headers,async()=>g().accessToken,n),c.headers=M(c==null?void 0:c.headers,g().idToken,n)):globalThis!=null&&globalThis.AccessToken&&(c.headers=await v(c==null?void 0:c.headers,globalThis.AccessToken,n)),c),v=async(c,n,o=l)=>{if(c||(c={}),!o)return c;try{const s=await n();s&&(c.Authorization=`Bearer ${s}`)}catch(s){console.error(s)}return c},M=(c={},n,o=l)=>(o&&n&&(c["Authorization-Extras"]=n),c),Q=(c,n=l)=>{if(c||(c={}),!n)return c;const o="_csrf=",s="X-CSRF-TOKEN";try{let i=document.cookie.split(";").find(t=>t.includes(o));i&&!c[s]&&(i=i.trim().slice(o.length),c[s]=i)}catch(f){console.error(f)}return c},V=(c,n)=>c?c.replace("%namespace%",n):"",Y=c=>{var i,t;let n="";const o=(i=P(L).data)==null?void 0:i.webUrl,s=o&&c,f=((t=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:t.apiUrl)&&c;return s?n=o:f?(console.warn("Using fallback api url, web url not found"),n=V(globalThis.AppConfig.apiUrl,c)):n=X(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${H}`,n},Z=(c,n)=>(c.startsWith("/")&&(c=c.slice(1)),`${Y(n)}/api/v1/${c}`),j=c=>Object.keys(c??{}).reduce((n,o)=>(n[o]=encodeURIComponent(encodeURIComponent(c[o])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:"",activityId:""});function tn(c,n,o=!0){o&&(n=j(n));const s={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":"/search-attributes",settings:"/settings","task-queue":`/namespaces/${n==null?void 0:n.namespace}/task-queues/${n==null?void 0:n.queue}`,user:"/me","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 Z(s[c],n==null?void 0:n.namespace)}export{D as a,wn as b,b as c,fn as d,X as g,B as h,y as i,K as n,tn as r}; diff --git a/ui/assets/local/_app/immutable/chunks/route-for.6dec3e74.js b/ui/assets/local/_app/immutable/chunks/route-for.e1b7889c.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/route-for.6dec3e74.js rename to ui/assets/local/_app/immutable/chunks/route-for.e1b7889c.js index 3b8963da0c..5eb79adcac 100644 --- a/ui/assets/local/_app/immutable/chunks/route-for.6dec3e74.js +++ b/ui/assets/local/_app/immutable/chunks/route-for.e1b7889c.js @@ -1 +1 @@ -import{b as o}from"./paths.88db541d.js";const p=!0,h=p,F=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e};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 w=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,S=()=>`${o}/select-namespace`,f=e=>`${u(e)}/workflows`,P=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const n=c(e);return`${f(t)}/${n}/${r}`},i=e=>`${u(e)}/schedules`,U=({namespace:e})=>`${i({namespace:e})}/create`,k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}`},v=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}/edit`},R=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return F(`${t}`,e)},y=e=>`${s(e)}/workers`,L=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},W=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,q=e=>`${s(e)}/pending-activities`,A=e=>{const{settings:r,searchParams:t,originUrl:n}=e,a=new URL(`${o}/auth/sso`,r.baseUrl);let l=r.auth.options??[];return l=[...l,"returnUrl"],l.forEach(g=>{if(!t)return;const $=t.get(g);$&&a.searchParams.set(g,$)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},C=(e="",r=h)=>{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`},E=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`;export{P as a,w as b,i as c,E as d,C as e,h as f,R as g,y as h,q as i,W as j,b as k,m as l,S as m,L as n,u as o,k as p,U as q,f as r,v as s,F as t,A as u}; +import{b as o}from"./paths.9a3098df.js";const p=!0,h=p,F=(e,r)=>{const t=r instanceof URLSearchParams;return r&&!t&&(r=new URLSearchParams(r)),r?`${e}?${r}`:e};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 w=()=>`${o}/namespaces`,u=({namespace:e})=>`${o}/namespaces/${e}`,S=()=>`${o}/select-namespace`,f=e=>`${u(e)}/workflows`,P=e=>`${u(e)}/archival`,s=({workflow:e,run:r,...t})=>{const n=c(e);return`${f(t)}/${n}/${r}`},i=e=>`${u(e)}/schedules`,U=({namespace:e})=>`${i({namespace:e})}/create`,k=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}`},v=({scheduleId:e,namespace:r})=>{const t=c(e);return`${i({namespace:r})}/${t}/edit`},R=({queryParams:e,...r})=>{const t=`${s(r)}/history`;return F(`${t}`,e)},y=e=>`${s(e)}/workers`,L=e=>{const r=c(e.queue);return`${u({namespace:e.namespace})}/task-queues/${r}`},W=e=>`${s(e)}/stack-trace`,b=e=>`${s(e)}/query`,q=e=>`${s(e)}/pending-activities`,A=e=>{const{settings:r,searchParams:t,originUrl:n}=e,a=new URL(`${o}/auth/sso`,r.baseUrl);let l=r.auth.options??[];return l=[...l,"returnUrl"],l.forEach(g=>{if(!t)return;const $=t.get(g);$&&a.searchParams.set(g,$)}),!a.searchParams.get("returnUrl")&&n&&a.searchParams.set("returnUrl",n),a.toString()},C=(e="",r=h)=>{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`},E=(e,r)=>e&&r?`${o}/import/events/${e}/workflow/run/history/${r}`:`${o}/import/events`;export{P as a,w as b,i as c,E as d,C as e,h as f,R as g,y as h,q as i,W as j,b as k,m as l,S as m,L as n,u as o,k as p,U as q,f as r,v as s,F as t,A as u}; diff --git a/ui/assets/cloud/_app/immutable/chunks/schedule-form-view.b6e72c91.js b/ui/assets/local/_app/immutable/chunks/schedule-form-view.bc5fe269.js similarity index 99% rename from ui/assets/cloud/_app/immutable/chunks/schedule-form-view.b6e72c91.js rename to ui/assets/local/_app/immutable/chunks/schedule-form-view.bc5fe269.js index b31e52c430..28a64cf4de 100644 --- a/ui/assets/cloud/_app/immutable/chunks/schedule-form-view.b6e72c91.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-form-view.bc5fe269.js @@ -1,4 +1,4 @@ -import{S as we,b as ke,a as ye,A as L,Y as R,m as S,w as Z,c as C,C as z,p as M,q as $,x as X,k as v,d as P,D as G,u as T,f as se,L as h,E as J,Z as q,j as U,g as A,F as Y,T as Ee,n as be,r as mn,a7 as qe,R as Ie,ab as Qe,G as gn,z as je,h as Ke,H as pn,I as vn,J as bn,K as Re,v as hn,y as wn}from"./index.a36c9cb0.js";import{l as kn,e as yn}from"./schedules.8e390e1d.js";import{I as On}from"./icon.33859671.js";import{B as En}from"./button.dbc76a4c.js";import{L as In}from"./loading.bcb9b7b8.js";import{I as ve}from"./input.a193633b.js";import{T as He}from"./tab.e1caed35.js";import{S as Sn}from"./simple-split-button.e333abd5.js";import{g as Fe,w as Ze,m as Xe}from"./calendar.81d1e381.js";import{T as Mn,a as xe}from"./toggle-buttons.323d739d.js";import{p as dn}from"./stores.0bc9ce95.js";import{S as $n}from"./schedule-frequency.9f1a589f.js";import{p as Dn,c as Wn}from"./route-for.70dfbf18.js";function Tn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p;return{c(){e=S("div"),t=S("button"),s=Z("days"),u=C(),i=S("button"),a=Z("hrs"),o=C(),l=S("button"),r=Z("min"),c=C(),f=S("button"),d=Z("sec"),this.h()},l(O){e=M(O,"DIV",{class:!0});var y=$(e);t=M(y,"BUTTON",{class:!0});var I=$(t);s=X(I,"days"),I.forEach(v),u=P(y),i=M(y,"BUTTON",{class:!0});var V=$(i);a=X(V,"hrs"),V.forEach(v),o=P(y),l=M(y,"BUTTON",{class:!0});var F=$(l);r=X(F,"min"),F.forEach(v),c=P(y),f=M(y,"BUTTON",{class:!0});var k=$(f);d=X(k,"sec"),k.forEach(v),y.forEach(v),this.h()},h(){T(t,"class","days-label"),T(i,"class","hrs-label"),T(l,"class","min-label"),T(f,"class","sec-label"),T(e,"class","flex flex-col gap-4 p-4")},m(O,y){se(O,e,y),h(e,t),h(t,s),h(e,u),h(e,i),h(i,a),h(e,o),h(e,l),h(l,r),h(e,c),h(e,f),h(f,d),g||(p=[Ee(t,"click",n[14]),Ee(i,"click",n[15]),Ee(l,"click",n[16]),Ee(f,"click",n[17])],g=!0)},p:be,d(O){O&&v(e),g=!1,mn(p)}}}function Vn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p,O,y,I,V,F,k,E,j,x,K,ee,b,m,B,N,H,Q,ie,fe,ue,ce,_e,he,te,pe,ae,de,W,Se,me,Oe;function Me(D){n[9](D)}let $e={id:"days",placeholder:"00",suffix:"days",maxLength:3,error:n[7](n[0])};n[0]!==void 0&&($e.value=n[0]),c=new ve({props:$e}),L.push(()=>R(c,"value",Me));function Ce(D){n[10](D)}let De={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(De.value=n[1]),I=new ve({props:De}),L.push(()=>R(I,"value",Ce));function Pe(D){n[11](D)}let We={id:"minute",placeholder:"00",suffix:"min",maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(We.value=n[2]),K=new ve({props:We}),L.push(()=>R(K,"value",Pe));function Be(D){n[12](D)}let Te={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Te.value=n[3]),Q=new ve({props:Te}),L.push(()=>R(Q,"value",Be));function Ne(D){n[13](D)}let Ve={id:"phase",placeholder:"00",error:n[7](n[4]),unroundRight:!0,class:"h-10"};return n[5]!==void 0&&(Ve.value=n[5]),de=new ve({props:Ve}),L.push(()=>R(de,"value",Ne)),me=new Sn({props:{class:"rounded-tr rounded-br bg-offWhite",buttonClass:"border border-gray-900 border-l-0",id:"phase",label:n[6],position:"right",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("h3"),s=Z("Recurring Time"),u=C(),i=S("p"),a=Z(`Specify the time interval for this schedule to run (for example every 5 +import{S as we,b as ke,a as ye,A as L,Y as R,m as S,w as Z,c as C,C as z,p as M,q as $,x as X,k as v,d as P,D as G,u as T,f as se,L as h,E as J,Z as q,j as U,g as A,F as Y,T as Ee,n as be,r as mn,a7 as qe,R as Ie,ab as Qe,G as gn,z as je,h as Ke,H as pn,I as vn,J as bn,K as Re,v as hn,y as wn}from"./index.a36c9cb0.js";import{l as kn,e as yn}from"./schedules.44518418.js";import{I as On}from"./icon.33859671.js";import{B as En}from"./button.dbc76a4c.js";import{L as In}from"./loading.bcb9b7b8.js";import{I as ve}from"./input.a193633b.js";import{T as He}from"./tab.e1caed35.js";import{S as Sn}from"./simple-split-button.e333abd5.js";import{g as Fe,w as Ze,m as Xe}from"./calendar.81d1e381.js";import{T as Mn,a as xe}from"./toggle-buttons.9513a782.js";import{p as dn}from"./stores.4d55fa19.js";import{S as $n}from"./schedule-frequency.d59b15a7.js";import{p as Dn,c as Wn}from"./route-for.e1b7889c.js";function Tn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p;return{c(){e=S("div"),t=S("button"),s=Z("days"),u=C(),i=S("button"),a=Z("hrs"),o=C(),l=S("button"),r=Z("min"),c=C(),f=S("button"),d=Z("sec"),this.h()},l(O){e=M(O,"DIV",{class:!0});var y=$(e);t=M(y,"BUTTON",{class:!0});var I=$(t);s=X(I,"days"),I.forEach(v),u=P(y),i=M(y,"BUTTON",{class:!0});var V=$(i);a=X(V,"hrs"),V.forEach(v),o=P(y),l=M(y,"BUTTON",{class:!0});var F=$(l);r=X(F,"min"),F.forEach(v),c=P(y),f=M(y,"BUTTON",{class:!0});var k=$(f);d=X(k,"sec"),k.forEach(v),y.forEach(v),this.h()},h(){T(t,"class","days-label"),T(i,"class","hrs-label"),T(l,"class","min-label"),T(f,"class","sec-label"),T(e,"class","flex flex-col gap-4 p-4")},m(O,y){se(O,e,y),h(e,t),h(t,s),h(e,u),h(e,i),h(i,a),h(e,o),h(e,l),h(l,r),h(e,c),h(e,f),h(f,d),g||(p=[Ee(t,"click",n[14]),Ee(i,"click",n[15]),Ee(l,"click",n[16]),Ee(f,"click",n[17])],g=!0)},p:be,d(O){O&&v(e),g=!1,mn(p)}}}function Vn(n){let e,t,s,u,i,a,o,l,r,c,f,d,g,p,O,y,I,V,F,k,E,j,x,K,ee,b,m,B,N,H,Q,ie,fe,ue,ce,_e,he,te,pe,ae,de,W,Se,me,Oe;function Me(D){n[9](D)}let $e={id:"days",placeholder:"00",suffix:"days",maxLength:3,error:n[7](n[0])};n[0]!==void 0&&($e.value=n[0]),c=new ve({props:$e}),L.push(()=>R(c,"value",Me));function Ce(D){n[10](D)}let De={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:n[7](n[1])};n[1]!==void 0&&(De.value=n[1]),I=new ve({props:De}),L.push(()=>R(I,"value",Ce));function Pe(D){n[11](D)}let We={id:"minute",placeholder:"00",suffix:"min",maxLength:2,error:n[7](n[2])};n[2]!==void 0&&(We.value=n[2]),K=new ve({props:We}),L.push(()=>R(K,"value",Pe));function Be(D){n[12](D)}let Te={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:n[7](n[3])};n[3]!==void 0&&(Te.value=n[3]),Q=new ve({props:Te}),L.push(()=>R(Q,"value",Be));function Ne(D){n[13](D)}let Ve={id:"phase",placeholder:"00",error:n[7](n[4]),unroundRight:!0,class:"h-10"};return n[5]!==void 0&&(Ve.value=n[5]),de=new ve({props:Ve}),L.push(()=>R(de,"value",Ne)),me=new Sn({props:{class:"rounded-tr rounded-br bg-offWhite",buttonClass:"border border-gray-900 border-l-0",id:"phase",label:n[6],position:"right",$$slots:{default:[Tn]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("h3"),s=Z("Recurring Time"),u=C(),i=S("p"),a=Z(`Specify the time interval for this schedule to run (for example every 5 minutes).`),o=C(),l=S("div"),r=S("div"),z(c.$$.fragment),d=C(),g=S("div"),p=Z(":"),O=C(),y=S("div"),z(I.$$.fragment),F=C(),k=S("div"),E=Z(":"),j=C(),x=S("div"),z(K.$$.fragment),b=C(),m=S("div"),B=Z(":"),N=C(),H=S("div"),z(Q.$$.fragment),fe=C(),ue=S("h3"),ce=Z("Offset"),_e=C(),he=S("p"),te=Z(`Specify the time to offset when this schedule will run (for example 15 min past the hour).`),pe=C(),ae=S("div"),z(de.$$.fragment),Se=C(),z(me.$$.fragment),this.h()},l(D){e=M(D,"DIV",{class:!0});var _=$(e);t=M(_,"H3",{class:!0});var w=$(t);s=X(w,"Recurring Time"),w.forEach(v),u=P(_),i=M(_,"P",{});var oe=$(i);a=X(oe,`Specify the time interval for this schedule to run (for example every 5 minutes).`),oe.forEach(v),o=P(_),l=M(_,"DIV",{class:!0});var ne=$(l);r=M(ne,"DIV",{class:!0});var le=$(r);G(c.$$.fragment,le),le.forEach(v),d=P(ne),g=M(ne,"DIV",{});var ge=$(g);p=X(ge,":"),ge.forEach(v),O=P(ne),y=M(ne,"DIV",{class:!0});var re=$(y);G(I.$$.fragment,re),re.forEach(v),F=P(ne),k=M(ne,"DIV",{});var Ue=$(k);E=X(Ue,":"),Ue.forEach(v),j=P(ne),x=M(ne,"DIV",{class:!0});var Ae=$(x);G(K.$$.fragment,Ae),Ae.forEach(v),b=P(ne),m=M(ne,"DIV",{});var ze=$(m);B=X(ze,":"),ze.forEach(v),N=P(ne),H=M(ne,"DIV",{class:!0});var Ge=$(H);G(Q.$$.fragment,Ge),Ge.forEach(v),ne.forEach(v),fe=P(_),ue=M(_,"H3",{class:!0});var Je=$(ue);ce=X(Je,"Offset"),Je.forEach(v),_e=P(_),he=M(_,"P",{});var Ye=$(he);te=X(Ye,`Specify the time to offset when this schedule will run (for example 15 min diff --git a/ui/assets/local/_app/immutable/chunks/schedule-frequency.98fac758.js b/ui/assets/local/_app/immutable/chunks/schedule-frequency.d59b15a7.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/schedule-frequency.98fac758.js rename to ui/assets/local/_app/immutable/chunks/schedule-frequency.d59b15a7.js index b1ea16872a..a03cb901f9 100644 --- a/ui/assets/local/_app/immutable/chunks/schedule-frequency.98fac758.js +++ b/ui/assets/local/_app/immutable/chunks/schedule-frequency.d59b15a7.js @@ -1 +1 @@ -import{r as m,a as p}from"./route-for-api.6ac9324b.js";import{s as $}from"./parse-with-big-int.0036a80a.js";import{v as k}from"./toaster.16c48a98.js";import{S as w,b as L,a as D,m as v,p as S,q as b,k as f,u as _,f as y,n as q,N as I,O as C,w as g,c as H,x as E,d as R,L as T,y as j}from"./index.a36c9cb0.js";import{g as F,w as M,m as O}from"./calendar.81d1e381.js";const X=async(l,e=fetch)=>{let n="";const c=a=>{var i;return n=((i=a==null?void 0:a.body)==null?void 0:i.message)??`Error fetching schedules: ${a.status}: ${a.statusText}`},s=m("schedules",{namespace:l}),{schedules:o,nextPageToken:t}=await p(s,{params:{},onError:c,request:e})??{schedules:[],nextPageToken:""};return{schedules:o,nextPageToken:String(t),error:n}};async function Y(l,e=fetch){const n=m("schedule",l);return p(n,{request:e})}async function Z(l,e=fetch){const n=m("schedule.delete",l);return p(n,{request:e,options:{method:"DELETE"}})}async function ee({namespace:l,body:e}){let n="";const c=t=>{var a;return n=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error creating schedule: ${t.status}: ${t.statusText}`},s=m("schedules",{namespace:l}),{conflictToken:o}=await p(s,{options:{method:"POST",body:$({request_id:k(),...e})},shouldRetry:!1,onError:c});return{conflictToken:o,error:n}}async function te({namespace:l,scheduleId:e,body:n}){let c="";const s=t=>{var a;return c=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error editing schedule: ${t.status}: ${t.statusText}`},o=m("schedule",{namespace:l,scheduleId:e});return await p(o,{options:{method:"POST",body:$({request_id:k(),...n})},shouldRetry:!1,onError:s}),{error:c}}async function se({namespace:l,scheduleId:e,reason:n}){const c={patch:{pause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1,onError:o=>console.error(o)})}async function ae({namespace:l,scheduleId:e,reason:n}){const c={patch:{unpause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1})}const ne=({preset:l,month:e,dayOfMonth:n,dayOfWeek:c,hour:s,minute:o})=>{let t="";const a=!s||!parseInt(s)||parseInt(s)<12?"am":"pm",r=`${(!s||!parseInt(s)?"12":parseInt(s)<=12?s:(parseInt(s)-12).toString()).padStart(2,"0")}:${o?o.padStart(2,"0"):"00"}${a}`;if(l==="week"){const u=F.find(d=>d.value===c);u?t=`${u.label} at ${r}`:t=`${c.split(",").map(P=>M.find(A=>A.value===P).label).join(", ")} at ${r}`}else if(l==="month")if(e==="*")t=`Every ${n} of the month at ${r}`;else{const d=e.split(",").map(h=>O.find(x=>x.value===h).label).join(", ");t=`Every ${n} of ${d} at ${r}`}return t},N=(l="",e=!1)=>{let n="";if(!l)return n;const c=parseInt(l.slice(0,-1)),s=Math.floor(c/(60*60*24));let o=c-(s>0?s*60*60*24:0);const t=Math.floor(o/(60*60));o=o-(t>0?t*60*60:0);const a=Math.floor(o/60),i=a>0?o-a*60:o,r=`${t?t.toString().padStart(2,"0"):"00"}hrs`,u=`${a?a.toString().padStart(2,"0"):"00"}min`,d=`${i?i.toString().padStart(2,"0"):"00"}sec`,h=e?"Offset":"Every";return s?n=`${h} ${s}days:${r}:${u}:${d}`:t?n=`${h} ${r}:${u}:${d}`:a?n=`${h} ${u}:${d}`:i&&(n=`${h} ${d}`),n};function U(l){let e,n=N(l[1])+"",c,s,o,t=N(l[2],!0)+"",a;return{c(){e=v("p"),c=g(n),s=H(),o=v("p"),a=g(t),this.h()},l(i){e=S(i,"P",{"data-testid":!0});var r=b(e);c=E(r,n),r.forEach(f),s=R(i),o=S(i,"P",{"data-testid":!0});var u=b(o);a=E(u,t),u.forEach(f),this.h()},h(){_(e,"data-testid","schedule-interval-frequency"),_(o,"data-testid","schedule-phase-frequency")},m(i,r){y(i,e,r),T(e,c),y(i,s,r),y(i,o,r),T(o,a)},p:q,d(i){i&&f(e),i&&f(s),i&&f(o)}}}function W(l){var o;let e,n=(((o=l[0])==null?void 0:o.comment)??"")+"",c,s;return{c(){e=v("p"),c=g(n),s=g(" UTC"),this.h()},l(t){e=S(t,"P",{"data-testid":!0});var a=b(e);c=E(a,n),s=E(a," UTC"),a.forEach(f),this.h()},h(){_(e,"data-testid","schedule-calendar-frequency")},m(t,a){y(t,e,a),T(e,c),T(e,s)},p(t,a){var i;a&1&&n!==(n=(((i=t[0])==null?void 0:i.comment)??"")+"")&&j(c,n)},d(t){t&&f(e)}}}function B(l){let e,n;function c(t,a){return t[0]?W:U}let s=c(l),o=s(l);return{c(){e=v("div"),o.c(),this.h()},l(t){e=S(t,"DIV",{class:!0});var a=b(e);o.l(a),a.forEach(f),this.h()},h(){_(e,"class",n="flex flex-col "+l[3].class)},m(t,a){y(t,e,a),o.m(e,null)},p(t,[a]){s===(s=c(t))&&o?o.p(t,a):(o.d(1),o=s(t),o&&(o.c(),o.m(e,null))),a&8&&n!==(n="flex flex-col "+t[3].class)&&_(e,"class",n)},i:q,o:q,d(t){t&&f(e),o.d()}}}function V(l,e,n){let{calendar:c=void 0}=e,{interval:s=void 0}=e;const o=s==null?void 0:s.interval,t=s==null?void 0:s.phase;return l.$$set=a=>{n(3,e=I(I({},e),C(a))),"calendar"in a&&n(0,c=a.calendar),"interval"in a&&n(4,s=a.interval)},e=C(e),[c,o,t,e,s]}class oe extends w{constructor(e){super(),L(this,e,V,B,D,{calendar:0,interval:4})}}export{oe as S,Y as a,ne as b,ee as c,Z as d,te as e,X as f,se as p,ae as u}; +import{r as m,a as p}from"./route-for-api.1addc328.js";import{s as $}from"./parse-with-big-int.0036a80a.js";import{v as k}from"./toaster.16c48a98.js";import{S as w,b as L,a as D,m as v,p as S,q as b,k as f,u as _,f as y,n as q,N as I,O as C,w as g,c as H,x as E,d as R,L as T,y as j}from"./index.a36c9cb0.js";import{g as F,w as M,m as O}from"./calendar.81d1e381.js";const X=async(l,e=fetch)=>{let n="";const c=a=>{var i;return n=((i=a==null?void 0:a.body)==null?void 0:i.message)??`Error fetching schedules: ${a.status}: ${a.statusText}`},s=m("schedules",{namespace:l}),{schedules:o,nextPageToken:t}=await p(s,{params:{},onError:c,request:e})??{schedules:[],nextPageToken:""};return{schedules:o,nextPageToken:String(t),error:n}};async function Y(l,e=fetch){const n=m("schedule",l);return p(n,{request:e})}async function Z(l,e=fetch){const n=m("schedule.delete",l);return p(n,{request:e,options:{method:"DELETE"}})}async function ee({namespace:l,body:e}){let n="";const c=t=>{var a;return n=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error creating schedule: ${t.status}: ${t.statusText}`},s=m("schedules",{namespace:l}),{conflictToken:o}=await p(s,{options:{method:"POST",body:$({request_id:k(),...e})},shouldRetry:!1,onError:c});return{conflictToken:o,error:n}}async function te({namespace:l,scheduleId:e,body:n}){let c="";const s=t=>{var a;return c=((a=t==null?void 0:t.body)==null?void 0:a.message)??`Error editing schedule: ${t.status}: ${t.statusText}`},o=m("schedule",{namespace:l,scheduleId:e});return await p(o,{options:{method:"POST",body:$({request_id:k(),...n})},shouldRetry:!1,onError:s}),{error:c}}async function se({namespace:l,scheduleId:e,reason:n}){const c={patch:{pause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1,onError:o=>console.error(o)})}async function ae({namespace:l,scheduleId:e,reason:n}){const c={patch:{unpause:n}},s=m("schedule",{namespace:l,scheduleId:e});return await p(s,{options:{method:"PATCH",body:$({...c,request_id:k()})},shouldRetry:!1})}const ne=({preset:l,month:e,dayOfMonth:n,dayOfWeek:c,hour:s,minute:o})=>{let t="";const a=!s||!parseInt(s)||parseInt(s)<12?"am":"pm",r=`${(!s||!parseInt(s)?"12":parseInt(s)<=12?s:(parseInt(s)-12).toString()).padStart(2,"0")}:${o?o.padStart(2,"0"):"00"}${a}`;if(l==="week"){const u=F.find(d=>d.value===c);u?t=`${u.label} at ${r}`:t=`${c.split(",").map(P=>M.find(A=>A.value===P).label).join(", ")} at ${r}`}else if(l==="month")if(e==="*")t=`Every ${n} of the month at ${r}`;else{const d=e.split(",").map(h=>O.find(x=>x.value===h).label).join(", ");t=`Every ${n} of ${d} at ${r}`}return t},N=(l="",e=!1)=>{let n="";if(!l)return n;const c=parseInt(l.slice(0,-1)),s=Math.floor(c/(60*60*24));let o=c-(s>0?s*60*60*24:0);const t=Math.floor(o/(60*60));o=o-(t>0?t*60*60:0);const a=Math.floor(o/60),i=a>0?o-a*60:o,r=`${t?t.toString().padStart(2,"0"):"00"}hrs`,u=`${a?a.toString().padStart(2,"0"):"00"}min`,d=`${i?i.toString().padStart(2,"0"):"00"}sec`,h=e?"Offset":"Every";return s?n=`${h} ${s}days:${r}:${u}:${d}`:t?n=`${h} ${r}:${u}:${d}`:a?n=`${h} ${u}:${d}`:i&&(n=`${h} ${d}`),n};function U(l){let e,n=N(l[1])+"",c,s,o,t=N(l[2],!0)+"",a;return{c(){e=v("p"),c=g(n),s=H(),o=v("p"),a=g(t),this.h()},l(i){e=S(i,"P",{"data-testid":!0});var r=b(e);c=E(r,n),r.forEach(f),s=R(i),o=S(i,"P",{"data-testid":!0});var u=b(o);a=E(u,t),u.forEach(f),this.h()},h(){_(e,"data-testid","schedule-interval-frequency"),_(o,"data-testid","schedule-phase-frequency")},m(i,r){y(i,e,r),T(e,c),y(i,s,r),y(i,o,r),T(o,a)},p:q,d(i){i&&f(e),i&&f(s),i&&f(o)}}}function W(l){var o;let e,n=(((o=l[0])==null?void 0:o.comment)??"")+"",c,s;return{c(){e=v("p"),c=g(n),s=g(" UTC"),this.h()},l(t){e=S(t,"P",{"data-testid":!0});var a=b(e);c=E(a,n),s=E(a," UTC"),a.forEach(f),this.h()},h(){_(e,"data-testid","schedule-calendar-frequency")},m(t,a){y(t,e,a),T(e,c),T(e,s)},p(t,a){var i;a&1&&n!==(n=(((i=t[0])==null?void 0:i.comment)??"")+"")&&j(c,n)},d(t){t&&f(e)}}}function B(l){let e,n;function c(t,a){return t[0]?W:U}let s=c(l),o=s(l);return{c(){e=v("div"),o.c(),this.h()},l(t){e=S(t,"DIV",{class:!0});var a=b(e);o.l(a),a.forEach(f),this.h()},h(){_(e,"class",n="flex flex-col "+l[3].class)},m(t,a){y(t,e,a),o.m(e,null)},p(t,[a]){s===(s=c(t))&&o?o.p(t,a):(o.d(1),o=s(t),o&&(o.c(),o.m(e,null))),a&8&&n!==(n="flex flex-col "+t[3].class)&&_(e,"class",n)},i:q,o:q,d(t){t&&f(e),o.d()}}}function V(l,e,n){let{calendar:c=void 0}=e,{interval:s=void 0}=e;const o=s==null?void 0:s.interval,t=s==null?void 0:s.phase;return l.$$set=a=>{n(3,e=I(I({},e),C(a))),"calendar"in a&&n(0,c=a.calendar),"interval"in a&&n(4,s=a.interval)},e=C(e),[c,o,t,e,s]}class oe extends w{constructor(e){super(),L(this,e,V,B,D,{calendar:0,interval:4})}}export{oe as S,Y as a,ne as b,ee as c,Z as d,te as e,X as f,se as p,ae as u}; diff --git a/ui/assets/local/_app/immutable/chunks/schedules.b90ce875.js b/ui/assets/local/_app/immutable/chunks/schedules.44518418.js similarity index 89% rename from ui/assets/local/_app/immutable/chunks/schedules.b90ce875.js rename to ui/assets/local/_app/immutable/chunks/schedules.44518418.js index eeb5933bc4..2c7733e626 100644 --- a/ui/assets/local/_app/immutable/chunks/schedules.b90ce875.js +++ b/ui/assets/local/_app/immutable/chunks/schedules.44518418.js @@ -1 +1 @@ -import{g}from"./navigation.724a9b89.js";import{w as v}from"./index.deae5bd4.js";import{c as y,p as M}from"./route-for.6dec3e74.js";import{c as C,e as O,b as Q}from"./schedule-frequency.98fac758.js";const f=e=>e?parseInt(e):0,W=(e,a,t,s)=>`${f(e)*60*60*24+f(a)*60*60+f(t)*60+f(s)}s`,j=({months:e=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,n;const s=e.sort((o,i)=>parseInt(o)-parseInt(i)).join(","),r=a.sort((o,i)=>o-i).join(","),u=(((n=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:n.length)>1?t[0].split(","):t).sort((o,i)=>parseInt(o)-parseInt(i)).join(",");return{month:s,dayOfMonth:r,dayOfWeek:u}},I=(e,a,t)=>{const{hour:s,minute:r,second:c,phase:u,cronString:l}=a,{preset:n,months:o,days:i,daysOfMonth:p,daysOfWeek:h}=t;if(n==="string"){const m=`${l}#${l}`;e.schedule.spec.cronString=[m],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const m=W(i,s,r,c);e.schedule.spec.interval=[{interval:m,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:S}=j({months:o,daysOfMonth:p,daysOfWeek:h}),T=Q({preset:n,month:m,dayOfMonth:k,dayOfWeek:S,hour:s,minute:r,second:c});e.schedule.spec.calendar=[{year:"*",month:n==="month"?m:"",dayOfMonth:n==="month"?k:"",dayOfWeek:n==="week"?S:"",hour:s,minute:r,second:c,comment:T}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},F=async({action:e,spec:a,presets:t})=>{const{namespace:s,name:r,workflowId:c,workflowType:u,taskQueue:l}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:c,workflowType:{name:u},taskQueue:{name:l}}}}};I(n,a,t),d.set(!0);const{error:o}=await C({namespace:s,body:n});o?(w.set(o),d.set(!1)):setTimeout(()=>{w.set(""),d.set(!1),g(y({namespace:s}))},2e3)},A=async({action:e,spec:a,presets:t},s,r)=>{const{namespace:c,name:u,workflowId:l,workflowType:n,taskQueue:o}=e,{preset:i}=t,p={schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:l,workflowType:{name:n},taskQueue:{name:o}}}}};i==="existing"?p.schedule.spec=s.spec:(I(p,a,t),p.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await O({namespace:c,scheduleId:r,body:p});h?(w.set(h),d.set(!1)):setTimeout(()=>{g(M({namespace:c,scheduleId:u})),w.set(""),d.set(!1)},2e3)},d=v(!1),w=v("");export{F as a,w as e,d as l,A as s}; +import{g}from"./navigation.0861544c.js";import{w as v}from"./index.deae5bd4.js";import{c as y,p as M}from"./route-for.e1b7889c.js";import{c as C,e as O,b as Q}from"./schedule-frequency.d59b15a7.js";const f=e=>e?parseInt(e):0,W=(e,a,t,s)=>`${f(e)*60*60*24+f(a)*60*60+f(t)*60+f(s)}s`,j=({months:e=[],daysOfMonth:a=[],daysOfWeek:t=[]})=>{var l,n;const s=e.sort((o,i)=>parseInt(o)-parseInt(i)).join(","),r=a.sort((o,i)=>o-i).join(","),u=(((n=(l=t==null?void 0:t[0])==null?void 0:l.split(","))==null?void 0:n.length)>1?t[0].split(","):t).sort((o,i)=>parseInt(o)-parseInt(i)).join(",");return{month:s,dayOfMonth:r,dayOfWeek:u}},I=(e,a,t)=>{const{hour:s,minute:r,second:c,phase:u,cronString:l}=a,{preset:n,months:o,days:i,daysOfMonth:p,daysOfWeek:h}=t;if(n==="string"){const m=`${l}#${l}`;e.schedule.spec.cronString=[m],e.schedule.spec.calendar=[],e.schedule.spec.interval=[]}else if(n==="interval"){const m=W(i,s,r,c);e.schedule.spec.interval=[{interval:m,phase:u||"0s"}],e.schedule.spec.cronString=[],e.schedule.spec.calendar=[]}else{const{month:m,dayOfMonth:k,dayOfWeek:S}=j({months:o,daysOfMonth:p,daysOfWeek:h}),T=Q({preset:n,month:m,dayOfMonth:k,dayOfWeek:S,hour:s,minute:r,second:c});e.schedule.spec.calendar=[{year:"*",month:n==="month"?m:"",dayOfMonth:n==="month"?k:"",dayOfWeek:n==="week"?S:"",hour:s,minute:r,second:c,comment:T}],e.schedule.spec.interval=[],e.schedule.spec.cronString=[]}},F=async({action:e,spec:a,presets:t})=>{const{namespace:s,name:r,workflowId:c,workflowType:u,taskQueue:l}=e,n={schedule_id:r,schedule:{spec:{calendar:[],interval:[],cronString:[]},action:{startWorkflow:{workflowId:c,workflowType:{name:u},taskQueue:{name:l}}}}};I(n,a,t),d.set(!0);const{error:o}=await C({namespace:s,body:n});o?(w.set(o),d.set(!1)):setTimeout(()=>{w.set(""),d.set(!1),g(y({namespace:s}))},2e3)},A=async({action:e,spec:a,presets:t},s,r)=>{const{namespace:c,name:u,workflowId:l,workflowType:n,taskQueue:o}=e,{preset:i}=t,p={schedule:{...s,action:{startWorkflow:{...s.action.startWorkflow,workflowId:l,workflowType:{name:n},taskQueue:{name:o}}}}};i==="existing"?p.schedule.spec=s.spec:(I(p,a,t),p.schedule.spec.structuredCalendar=[]),d.set(!0);const{error:h}=await O({namespace:c,scheduleId:r,body:p});h?(w.set(h),d.set(!1)):setTimeout(()=>{g(M({namespace:c,scheduleId:u})),w.set(""),d.set(!1)},2e3)},d=v(!1),w=v("");export{F as a,w as e,d as l,A as s}; diff --git a/ui/assets/local/_app/immutable/chunks/search.89e1d454.js b/ui/assets/local/_app/immutable/chunks/search.75414562.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/search.89e1d454.js rename to ui/assets/local/_app/immutable/chunks/search.75414562.js index 1d4b8b0aee..6e23cba264 100644 --- a/ui/assets/local/_app/immutable/chunks/search.89e1d454.js +++ b/ui/assets/local/_app/immutable/chunks/search.75414562.js @@ -1 +1 @@ -import{S as ye,b as Te,a as he,C as V,D as z,E as K,j as S,g as W,F as M,G as Xe,H as Ye,I as Ze,J as $e,m as g,w as H,c as P,p as E,q as F,x as L,k as c,d as C,u as w,f as T,L as k,n as te,e as Ue,z as me,h as _e,K as Je,T as j,V as le,ab as se,r as qe,R as Re,i as xe,y as Y,P as Se}from"./index.a36c9cb0.js";import{T as et,a as tt}from"./table-header-row.eb620974.js";import{p as lt}from"./stores.48be4ca9.js";import{f as X}from"./format-date.7c274b02.js";import{s as st,u as rt,v as at,w as Ae}from"./format-time.c8c4770b.js";import{g as ot}from"./route-for.6dec3e74.js";import{u as nt}from"./pagination.4cd37fec.js";import{t as Oe}from"./list-workflow-query.900ba0a0.js";import{c as ft,d as Fe,e as ut,f as it,g as ct}from"./has.48bed8a5.js";import{W as mt}from"./workflow-status.47d31de2.js";import{I as De}from"./icon.33859671.js";import{c as _t}from"./copy-to-clipboard.d1283b5b.js";import{T as ht}from"./table-row.9df8daa0.js";import{B as dt}from"./button.dbc76a4c.js";function pt(r){let e;const s=r[1].default,t=Xe(s,r,r[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,o){t&&t.m(l,o),e=!0},p(l,o){t&&t.p&&(!e||o&4)&&Ye(t,s,l,l[2],e?$e(s,l[2],o,null):Ze(l[2]),null)},i(l){e||(S(t,l),e=!0)},o(l){W(t,l),e=!1},d(l){t&&t.d(l)}}}function bt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b,m,_,q,B;return{c(){e=g("th"),s=H("Status"),t=P(),l=g("th"),o=H("Workflow ID"),a=P(),n=g("th"),f=H("Type"),i=P(),h=g("th"),D=H("Start"),p=P(),b=g("th"),m=H("End"),_=P(),q=g("th"),B=H("Summary"),this.h()},l(d){e=E(d,"TH",{class:!0});var y=F(e);s=L(y,"Status"),y.forEach(c),t=C(d),l=E(d,"TH",{class:!0});var I=F(l);o=L(I,"Workflow ID"),I.forEach(c),a=C(d),n=E(d,"TH",{class:!0});var G=F(n);f=L(G,"Type"),G.forEach(c),i=C(d),h=E(d,"TH",{class:!0});var U=F(h);D=L(U,"Start"),U.forEach(c),p=C(d),b=E(d,"TH",{class:!0});var R=F(b);m=L(R,"End"),R.forEach(c),_=C(d),q=E(d,"TH",{class:!0,colspan:!0});var N=F(q);B=L(N,"Summary"),N.forEach(c),this.h()},h(){w(e,"class","w-32 max-md:hidden"),w(l,"class","max-md:hidden md:w-auto"),w(n,"class","w-60 max-md:hidden"),w(h,"class","w-60 max-xl:hidden"),w(b,"class","w-60 max-xl:hidden"),w(q,"class","md:hidden"),w(q,"colspan","3")},m(d,y){T(d,e,y),k(e,s),T(d,t,y),T(d,l,y),k(l,o),T(d,a,y),T(d,n,y),k(n,f),T(d,i,y),T(d,h,y),k(h,D),T(d,p,y),T(d,b,y),k(b,m),T(d,_,y),T(d,q,y),k(q,B)},p:te,d(d){d&&c(e),d&&c(t),d&&c(l),d&&c(a),d&&c(n),d&&c(i),d&&c(h),d&&c(p),d&&c(b),d&&c(_),d&&c(q)}}}function wt(r){let e,s;return e=new tt({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,l){const o={};l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function kt(r){let e,s;return e=new et({props:{class:"w-full md:table-fixed",updating:r[0],$$slots:{headers:[wt],default:[pt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&1&&(o.updating=t[0]),l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function vt(r,e,s){let{$$slots:t={},$$scope:l}=e,{updating:o=!1}=e;return r.$$set=a=>{"updating"in a&&s(0,o=a.updating),"$$scope"in a&&s(2,l=a.$$scope)},[o,t,l]}class Zt extends ye{constructor(e){super(),Te(this,e,vt,kt,he,{updating:0})}}const yt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),ve=(r,e)=>r[e+2],Tt=r=>{if(r){for(const e of at)if(r[e])return{[e]:r[e]}}},gt=ge("WorkflowType"),Et=ge("WorkflowId"),St=ge("StartTime"),Ft=ge("ExecutionStatus"),qt=r=>{const e=yt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Et(t)&&(s.workflowId=ve(e,l)),gt(t)&&(s.workflowType=ve(e,l)),Ft(t)){const o=ve(e,l);ct(o)&&(s.executionStatus=o)}if(St(t)){const o=ve(e,l);try{const a=st(o),n=Tt(a);s.timeRange=rt(n)}catch(a){console.error("Error parsing StartTime from query",a)}}}),s};function Qe(r){let e,s,t,l,o,a,n=r[1]&&Ve(r),f=r[2]&&Ke(r);return{c(){e=g("div"),n&&n.c(),s=P(),f&&f.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var h=F(e);n&&n.l(h),s=C(h),f&&f.l(h),h.forEach(c),this.h()},h(){w(e,"class",t="copy-or-filter "+r[6]+" svelte-1f7279h")},m(i,h){T(i,e,h),n&&n.m(e,null),k(e,s),f&&f.m(e,null),l=!0,o||(a=[j(e,"click",le(se(te))),j(e,"keyup",le(se(te)))],o=!0)},p(i,h){i[1]?n?(n.p(i,h),h&2&&S(n,1)):(n=Ve(i),n.c(),S(n,1),n.m(e,s)):n&&(me(),W(n,1,1,()=>{n=null}),_e()),i[2]?f?(f.p(i,h),h&4&&S(f,1)):(f=Ke(i),f.c(),S(f,1),f.m(e,null)):f&&(me(),W(f,1,1,()=>{f=null}),_e()),(!l||h&64&&t!==(t="copy-or-filter "+i[6]+" svelte-1f7279h"))&&w(e,"class",t)},i(i){l||(S(n),S(f),l=!0)},o(i){W(n),W(f),l=!1},d(i){i&&c(e),n&&n.d(),f&&f.d(),o=!1,qe(a)}}}function Ve(r){let e,s=r[5],t,l,o,a=ze();return{c(){e=g("button"),a.c(),this.h()},l(n){e=E(n,"BUTTON",{class:!0});var f=F(e);a.l(f),f.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h"),Re(e,"filtered",r[5])},m(n,f){T(n,e,f),a.m(e,null),t=!0,l||(o=j(e,"click",le(se(function(){xe(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,f){r=n,f&32&&he(s,s=r[5])?(me(),W(a,1,1,te),_e(),a=ze(),a.c(),S(a,1),a.m(e,null)):a.p(r,f),(!t||f&32)&&Re(e,"filtered",r[5])},i(n){t||(S(a),t=!0)},o(n){W(a),t=!1},d(n){n&&c(e),a.d(n),l=!1,o()}}}function ze(r){let e,s;return e=new De({props:{name:"filter"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p:te,i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(r){let e,s,t,l,o;return s=new De({props:{name:r[7]?"checkmark":"copy",stroke:"#000"}}),{c(){e=g("button"),V(s.$$.fragment),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var n=F(e);z(s.$$.fragment,n),n.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h")},m(a,n){T(a,e,n),K(s,e,null),t=!0,l||(o=j(e,"click",le(se(r[10]))),l=!0)},p(a,n){const f={};n&128&&(f.name=a[7]?"checkmark":"copy"),s.$set(f)},i(a){t||(S(s.$$.fragment,a),t=!0)},o(a){W(s.$$.fragment,a),t=!1},d(a){a&&c(e),M(s),l=!1,o()}}}function Dt(r){let e,s,t=r[0]&&Qe(r);return{c(){t&&t.c(),e=Ue()},l(l){t&&t.l(l),e=Ue()},m(l,o){t&&t.m(l,o),T(l,e,o),s=!0},p(l,[o]){l[0]?t?(t.p(l,o),o&1&&S(t,1)):(t=Qe(l),t.c(),S(t,1),t.m(e.parentNode,e)):t&&(me(),W(t,1,1,()=>{t=null}),_e())},i(l){s||(S(t),s=!0)},o(l){W(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function Wt(r,e,s){let t,{show:l=!1}=e,{filterable:o=!0}=e,{copyable:a=!0}=e,{content:n}=e,{onFilter:f=te}=e,{filtered:i=!1}=e,{class:h=""}=e;const{copy:D,copied:p}=_t(700);Je(r,p,m=>s(7,t=m));const b=m=>D(m,n);return r.$$set=m=>{"show"in m&&s(0,l=m.show),"filterable"in m&&s(1,o=m.filterable),"copyable"in m&&s(2,a=m.copyable),"content"in m&&s(3,n=m.content),"onFilter"in m&&s(4,f=m.onFilter),"filtered"in m&&s(5,i=m.filtered),"class"in m&&s(6,h=m.class)},[l,o,a,n,f,i,h,t,D,p,b]}class Me extends ye{constructor(e){super(),Te(this,e,Wt,Dt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,class:6})}}function It(r){var Ie,Pe,Ce;let e,s,t,l,o,a=r[0].id+"",n,f,i,h,D,p=X(r[0].startTime,r[1])+"",b,m,_,q,B,d,y,I=r[0].name+"",G,U,R,N,re,x,ae=X(r[0].endTime,r[1])+"",de,pe,Z,oe,ne=X(r[0].startTime,r[1])+"",be,we,$,fe,ue=X(r[0].endTime,r[1])+"",ke,A,Ee,We;return s=new mt({props:{status:r[0].status,delay:Ae(r[0].startTime)}}),i=new Me({props:{show:r[2],content:r[0].id,filterable:!1}}),N=new Me({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(Ce=(Pe=(Ie=r[4].url)==null?void 0:Ie.searchParams)==null?void 0:Pe.get("query"))==null?void 0:Ce.includes(r[0].name)}}),{c(){e=g("td"),V(s.$$.fragment),t=P(),l=g("td"),o=g("span"),n=H(a),f=P(),V(i.$$.fragment),h=P(),D=g("p"),b=H(p),m=P(),_=g("td"),q=g("h3"),B=H("Workflow Name:"),d=P(),y=g("button"),G=H(I),R=P(),V(N.$$.fragment),re=P(),x=g("p"),de=H(ae),pe=P(),Z=g("td"),oe=g("p"),be=H(ne),we=P(),$=g("td"),fe=g("p"),ke=H(ue),this.h()},l(u){e=E(u,"TD",{});var v=F(e);z(s.$$.fragment,v),v.forEach(c),t=C(u),l=E(u,"TD",{class:!0});var Q=F(l);o=E(Q,"SPAN",{class:!0});var ee=F(o);n=L(ee,a),ee.forEach(c),f=C(Q),z(i.$$.fragment,Q),h=C(Q),D=E(Q,"P",{class:!0});var J=F(D);b=L(J,p),J.forEach(c),Q.forEach(c),m=C(u),_=E(u,"TD",{class:!0});var O=F(_);q=E(O,"H3",{class:!0});var ie=F(q);B=L(ie,"Workflow Name:"),ie.forEach(c),d=C(O),y=E(O,"BUTTON",{class:!0,"aria-label":!0});var ce=F(y);G=L(ce,I),ce.forEach(c),R=C(O),z(N.$$.fragment,O),re=C(O),x=E(O,"P",{class:!0});var je=F(x);de=L(je,ae),je.forEach(c),O.forEach(c),pe=C(u),Z=E(u,"TD",{class:!0});var He=F(Z);oe=E(He,"P",{});var Le=F(oe);be=L(Le,ne),Le.forEach(c),He.forEach(c),we=C(u),$=E(u,"TD",{class:!0});var Ne=F($);fe=E(Ne,"P",{});var Be=F(fe);ke=L(Be,ue),Be.forEach(c),Ne.forEach(c),this.h()},h(){w(o,"class","table-link svelte-tyqpjy"),w(D,"class","inline-time-cell svelte-tyqpjy"),w(l,"class","relative break-words pr-4"),w(q,"class","md:hidden"),w(y,"class","table-link svelte-tyqpjy"),w(y,"aria-label",U="filter by "+r[0].name+" type"),w(x,"class","inline-time-cell svelte-tyqpjy"),w(_,"class","relative truncate"),w(Z,"class","time-cell svelte-tyqpjy"),w($,"class","time-cell svelte-tyqpjy")},m(u,v){T(u,e,v),K(s,e,null),T(u,t,v),T(u,l,v),k(l,o),k(o,n),k(l,f),K(i,l,null),k(l,h),k(l,D),k(D,b),T(u,m,v),T(u,_,v),k(_,q),k(q,B),k(_,d),k(_,y),k(y,G),k(_,R),K(N,_,null),k(_,re),k(_,x),k(x,de),T(u,pe,v),T(u,Z,v),k(Z,oe),k(oe,be),T(u,we,v),T(u,$,v),k($,fe),k(fe,ke),A=!0,Ee||(We=[j(l,"mouseover",r[7]),j(l,"focus",r[8]),j(l,"mouseleave",r[9]),j(l,"blur",r[10]),j(y,"click",le(se(r[11]))),j(_,"mouseover",r[13]),j(_,"focus",r[14]),j(_,"mouseleave",r[15]),j(_,"blur",r[16])],Ee=!0)},p(u,v){var O,ie,ce;const Q={};v&1&&(Q.status=u[0].status),v&1&&(Q.delay=Ae(u[0].startTime)),s.$set(Q),(!A||v&1)&&a!==(a=u[0].id+"")&&Y(n,a);const ee={};v&4&&(ee.show=u[2]),v&1&&(ee.content=u[0].id),i.$set(ee),(!A||v&3)&&p!==(p=X(u[0].startTime,u[1])+"")&&Y(b,p),(!A||v&1)&&I!==(I=u[0].name+"")&&Y(G,I),(!A||v&1&&U!==(U="filter by "+u[0].name+" type"))&&w(y,"aria-label",U);const J={};v&4&&(J.show=u[2]),v&1&&(J.content=u[0].name),v&1&&(J.onFilter=u[12]),v&17&&(J.filtered=(ce=(ie=(O=u[4].url)==null?void 0:O.searchParams)==null?void 0:ie.get("query"))==null?void 0:ce.includes(u[0].name)),N.$set(J),(!A||v&3)&&ae!==(ae=X(u[0].endTime,u[1])+"")&&Y(de,ae),(!A||v&3)&&ne!==(ne=X(u[0].startTime,u[1])+"")&&Y(be,ne),(!A||v&3)&&ue!==(ue=X(u[0].endTime,u[1])+"")&&Y(ke,ue)},i(u){A||(S(s.$$.fragment,u),S(i.$$.fragment,u),S(N.$$.fragment,u),A=!0)},o(u){W(s.$$.fragment,u),W(i.$$.fragment,u),W(N.$$.fragment,u),A=!1},d(u){u&&c(e),M(s),u&&c(t),u&&c(l),M(i),u&&c(m),u&&c(_),M(N),u&&c(pe),u&&c(Z),u&&c(we),u&&c($),Ee=!1,qe(We)}}}function Pt(r){let e,s;return e=new ht({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[It]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&8&&(o.href=t[3]),l&131095&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ct(r,e,s){let t,l;Je(r,lt,I=>s(4,l=I));let{namespace:o}=e,{workflow:a}=e,{timeFormat:n}=e,f=!1;const i=I=>{const G=Oe({timeRange:"All"}),U=l.url.searchParams.get("query"),R=qt(U??G),N=(R==null?void 0:R.workflowType)===I?"":I,re=Oe({...R,workflowType:N});nt({url:l.url,parameter:"query",value:re,allowEmpty:!0})},h=()=>s(2,f=!0),D=()=>s(2,f=!0),p=()=>s(2,f=!1),b=()=>s(2,f=!1),m=()=>i(a.name),_=()=>i(a.name),q=()=>s(2,f=!0),B=()=>s(2,f=!0),d=()=>s(2,f=!1),y=()=>s(2,f=!1);return r.$$set=I=>{"namespace"in I&&s(6,o=I.namespace),"workflow"in I&&s(0,a=I.workflow),"timeFormat"in I&&s(1,n=I.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=ot({namespace:o,workflow:a.id,run:a.runId}))},[a,n,f,t,l,i,o,h,D,p,b,m,_,q,B,d,y]}class $t extends ye{constructor(e){super(),Te(this,e,Ct,Pt,he,{namespace:6,workflow:0,timeFormat:1})}}var xt=jt;function jt(r,e,s,t){var l,o,a;return function(){if(a=this,o=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return i(),l=setTimeout(f,e),l;l=setTimeout(i,e),r.apply(a,o);function f(){i(),r.apply(a,o)}function i(){clearTimeout(l),l=null}}}function Ge(r){let e,s;return e=new De({props:{name:"search",class:"ml-4 flex items-center text-gray-700"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ht(r){let e;return{c(){e=H(r[2])},l(s){e=L(s,r[2])},m(s,t){T(s,e,t)},p(s,t){t&4&&Y(e,s[2])},d(s){s&&c(e)}}}function Lt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b=r[4]&&Ge();return i=new dt({props:{class:"m-2",type:"submit",$$slots:{default:[Ht]},$$scope:{ctx:r}}}),{c(){e=g("form"),b&&b.c(),s=P(),t=g("label"),l=H(r[2]),o=P(),a=g("input"),n=P(),f=g("div"),V(i.$$.fragment),this.h()},l(m){e=E(m,"FORM",{class:!0,role:!0});var _=F(e);b&&b.l(_),s=C(_),t=E(_,"LABEL",{for:!0,class:!0});var q=F(t);l=L(q,r[2]),q.forEach(c),o=C(_),a=E(_,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),n=C(_),f=E(_,"DIV",{});var B=F(f);z(i.$$.fragment,B),B.forEach(c),_.forEach(c),this.h()},h(){w(t,"for",r[5]),w(t,"class","hidden"),w(a,"id",r[5]),w(a,"type","search"),w(a,"class","w-full rounded-l-lg px-4 focus:outline-none"),w(a,"name",r[3]),a.value=r[1],w(a,"placeholder",r[0]),w(a,"autocomplete","off"),w(e,"class","relative flex items-center rounded-lg border-2 bg-white transition-colors focus-within:border-blue-700"),w(e,"role","search")},m(m,_){T(m,e,_),b&&b.m(e,null),k(e,s),k(e,t),k(t,l),k(e,o),k(e,a),k(e,n),k(e,f),K(i,f,null),h=!0,D||(p=[j(a,"input",r[7]),j(a,"keydown",le(r[8])),j(e,"submit",se(r[6]))],D=!0)},p(m,[_]){m[4]?b?_&16&&S(b,1):(b=Ge(),b.c(),S(b,1),b.m(e,s)):b&&(me(),W(b,1,1,()=>{b=null}),_e()),(!h||_&4)&&Y(l,m[2]),(!h||_&32)&&w(t,"for",m[5]),(!h||_&32)&&w(a,"id",m[5]),(!h||_&8)&&w(a,"name",m[3]),(!h||_&2&&a.value!==m[1])&&(a.value=m[1]),(!h||_&1)&&w(a,"placeholder",m[0]);const q={};_&516&&(q.$$scope={dirty:_,ctx:m}),i.$set(q)},i(m){h||(S(b),S(i.$$.fragment,m),h=!0)},o(m){W(b),W(i.$$.fragment,m),h=!1},d(m){m&&c(e),b&&b.d(),M(i),D=!1,qe(p)}}}function Nt(r,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:o="Search"}=e,{name:a="query"}=e,{icon:n=!1}=e,{id:f=`${o.toLocaleUpperCase()}-input`}=e;function i(p){Se.call(this,r,p)}function h(p){Se.call(this,r,p)}function D(p){Se.call(this,r,p)}return r.$$set=p=>{"placeholder"in p&&s(0,t=p.placeholder),"value"in p&&s(1,l=p.value),"label"in p&&s(2,o=p.label),"name"in p&&s(3,a=p.name),"icon"in p&&s(4,n=p.icon),"id"in p&&s(5,f=p.id)},[t,l,o,a,n,f,i,h,D]}class el extends ye{constructor(e){super(),Te(this,e,Nt,Lt,he,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{Me as F,el as S,Zt as W,$t as a,yt as b,xt as j,qt as t}; +import{S as ye,b as Te,a as he,C as V,D as z,E as K,j as S,g as W,F as M,G as Xe,H as Ye,I as Ze,J as $e,m as g,w as H,c as P,p as E,q as F,x as L,k as c,d as C,u as w,f as T,L as k,n as te,e as Ue,z as me,h as _e,K as Je,T as j,V as le,ab as se,r as qe,R as Re,i as xe,y as Y,P as Se}from"./index.a36c9cb0.js";import{T as et,a as tt}from"./table-header-row.eb620974.js";import{p as lt}from"./stores.4d55fa19.js";import{f as X}from"./format-date.7c274b02.js";import{s as st,u as rt,v as at,w as Ae}from"./format-time.c8c4770b.js";import{g as ot}from"./route-for.e1b7889c.js";import{u as nt}from"./pagination.6f9a2b9c.js";import{t as Oe}from"./list-workflow-query.11f239c5.js";import{c as ft,d as Fe,e as ut,f as it,g as ct}from"./has.48bed8a5.js";import{W as mt}from"./workflow-status.47d31de2.js";import{I as De}from"./icon.33859671.js";import{c as _t}from"./copy-to-clipboard.d1283b5b.js";import{T as ht}from"./table-row.9df8daa0.js";import{B as dt}from"./button.dbc76a4c.js";function pt(r){let e;const s=r[1].default,t=Xe(s,r,r[2],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,o){t&&t.m(l,o),e=!0},p(l,o){t&&t.p&&(!e||o&4)&&Ye(t,s,l,l[2],e?$e(s,l[2],o,null):Ze(l[2]),null)},i(l){e||(S(t,l),e=!0)},o(l){W(t,l),e=!1},d(l){t&&t.d(l)}}}function bt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b,m,_,q,B;return{c(){e=g("th"),s=H("Status"),t=P(),l=g("th"),o=H("Workflow ID"),a=P(),n=g("th"),f=H("Type"),i=P(),h=g("th"),D=H("Start"),p=P(),b=g("th"),m=H("End"),_=P(),q=g("th"),B=H("Summary"),this.h()},l(d){e=E(d,"TH",{class:!0});var y=F(e);s=L(y,"Status"),y.forEach(c),t=C(d),l=E(d,"TH",{class:!0});var I=F(l);o=L(I,"Workflow ID"),I.forEach(c),a=C(d),n=E(d,"TH",{class:!0});var G=F(n);f=L(G,"Type"),G.forEach(c),i=C(d),h=E(d,"TH",{class:!0});var U=F(h);D=L(U,"Start"),U.forEach(c),p=C(d),b=E(d,"TH",{class:!0});var R=F(b);m=L(R,"End"),R.forEach(c),_=C(d),q=E(d,"TH",{class:!0,colspan:!0});var N=F(q);B=L(N,"Summary"),N.forEach(c),this.h()},h(){w(e,"class","w-32 max-md:hidden"),w(l,"class","max-md:hidden md:w-auto"),w(n,"class","w-60 max-md:hidden"),w(h,"class","w-60 max-xl:hidden"),w(b,"class","w-60 max-xl:hidden"),w(q,"class","md:hidden"),w(q,"colspan","3")},m(d,y){T(d,e,y),k(e,s),T(d,t,y),T(d,l,y),k(l,o),T(d,a,y),T(d,n,y),k(n,f),T(d,i,y),T(d,h,y),k(h,D),T(d,p,y),T(d,b,y),k(b,m),T(d,_,y),T(d,q,y),k(q,B)},p:te,d(d){d&&c(e),d&&c(t),d&&c(l),d&&c(a),d&&c(n),d&&c(i),d&&c(h),d&&c(p),d&&c(b),d&&c(_),d&&c(q)}}}function wt(r){let e,s;return e=new tt({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,l){const o={};l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function kt(r){let e,s;return e=new et({props:{class:"w-full md:table-fixed",updating:r[0],$$slots:{headers:[wt],default:[pt]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&1&&(o.updating=t[0]),l&4&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function vt(r,e,s){let{$$slots:t={},$$scope:l}=e,{updating:o=!1}=e;return r.$$set=a=>{"updating"in a&&s(0,o=a.updating),"$$scope"in a&&s(2,l=a.$$scope)},[o,t,l]}class Zt extends ye{constructor(e){super(),Te(this,e,vt,kt,he,{updating:0})}}const yt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),ve=(r,e)=>r[e+2],Tt=r=>{if(r){for(const e of at)if(r[e])return{[e]:r[e]}}},gt=ge("WorkflowType"),Et=ge("WorkflowId"),St=ge("StartTime"),Ft=ge("ExecutionStatus"),qt=r=>{const e=yt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(Et(t)&&(s.workflowId=ve(e,l)),gt(t)&&(s.workflowType=ve(e,l)),Ft(t)){const o=ve(e,l);ct(o)&&(s.executionStatus=o)}if(St(t)){const o=ve(e,l);try{const a=st(o),n=Tt(a);s.timeRange=rt(n)}catch(a){console.error("Error parsing StartTime from query",a)}}}),s};function Qe(r){let e,s,t,l,o,a,n=r[1]&&Ve(r),f=r[2]&&Ke(r);return{c(){e=g("div"),n&&n.c(),s=P(),f&&f.c(),this.h()},l(i){e=E(i,"DIV",{class:!0});var h=F(e);n&&n.l(h),s=C(h),f&&f.l(h),h.forEach(c),this.h()},h(){w(e,"class",t="copy-or-filter "+r[6]+" svelte-1f7279h")},m(i,h){T(i,e,h),n&&n.m(e,null),k(e,s),f&&f.m(e,null),l=!0,o||(a=[j(e,"click",le(se(te))),j(e,"keyup",le(se(te)))],o=!0)},p(i,h){i[1]?n?(n.p(i,h),h&2&&S(n,1)):(n=Ve(i),n.c(),S(n,1),n.m(e,s)):n&&(me(),W(n,1,1,()=>{n=null}),_e()),i[2]?f?(f.p(i,h),h&4&&S(f,1)):(f=Ke(i),f.c(),S(f,1),f.m(e,null)):f&&(me(),W(f,1,1,()=>{f=null}),_e()),(!l||h&64&&t!==(t="copy-or-filter "+i[6]+" svelte-1f7279h"))&&w(e,"class",t)},i(i){l||(S(n),S(f),l=!0)},o(i){W(n),W(f),l=!1},d(i){i&&c(e),n&&n.d(),f&&f.d(),o=!1,qe(a)}}}function Ve(r){let e,s=r[5],t,l,o,a=ze();return{c(){e=g("button"),a.c(),this.h()},l(n){e=E(n,"BUTTON",{class:!0});var f=F(e);a.l(f),f.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h"),Re(e,"filtered",r[5])},m(n,f){T(n,e,f),a.m(e,null),t=!0,l||(o=j(e,"click",le(se(function(){xe(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,f){r=n,f&32&&he(s,s=r[5])?(me(),W(a,1,1,te),_e(),a=ze(),a.c(),S(a,1),a.m(e,null)):a.p(r,f),(!t||f&32)&&Re(e,"filtered",r[5])},i(n){t||(S(a),t=!0)},o(n){W(a),t=!1},d(n){n&&c(e),a.d(n),l=!1,o()}}}function ze(r){let e,s;return e=new De({props:{name:"filter"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p:te,i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ke(r){let e,s,t,l,o;return s=new De({props:{name:r[7]?"checkmark":"copy",stroke:"#000"}}),{c(){e=g("button"),V(s.$$.fragment),this.h()},l(a){e=E(a,"BUTTON",{class:!0});var n=F(e);z(s.$$.fragment,n),n.forEach(c),this.h()},h(){w(e,"class","copy-or-filter-button svelte-1f7279h")},m(a,n){T(a,e,n),K(s,e,null),t=!0,l||(o=j(e,"click",le(se(r[10]))),l=!0)},p(a,n){const f={};n&128&&(f.name=a[7]?"checkmark":"copy"),s.$set(f)},i(a){t||(S(s.$$.fragment,a),t=!0)},o(a){W(s.$$.fragment,a),t=!1},d(a){a&&c(e),M(s),l=!1,o()}}}function Dt(r){let e,s,t=r[0]&&Qe(r);return{c(){t&&t.c(),e=Ue()},l(l){t&&t.l(l),e=Ue()},m(l,o){t&&t.m(l,o),T(l,e,o),s=!0},p(l,[o]){l[0]?t?(t.p(l,o),o&1&&S(t,1)):(t=Qe(l),t.c(),S(t,1),t.m(e.parentNode,e)):t&&(me(),W(t,1,1,()=>{t=null}),_e())},i(l){s||(S(t),s=!0)},o(l){W(t),s=!1},d(l){t&&t.d(l),l&&c(e)}}}function Wt(r,e,s){let t,{show:l=!1}=e,{filterable:o=!0}=e,{copyable:a=!0}=e,{content:n}=e,{onFilter:f=te}=e,{filtered:i=!1}=e,{class:h=""}=e;const{copy:D,copied:p}=_t(700);Je(r,p,m=>s(7,t=m));const b=m=>D(m,n);return r.$$set=m=>{"show"in m&&s(0,l=m.show),"filterable"in m&&s(1,o=m.filterable),"copyable"in m&&s(2,a=m.copyable),"content"in m&&s(3,n=m.content),"onFilter"in m&&s(4,f=m.onFilter),"filtered"in m&&s(5,i=m.filtered),"class"in m&&s(6,h=m.class)},[l,o,a,n,f,i,h,t,D,p,b]}class Me extends ye{constructor(e){super(),Te(this,e,Wt,Dt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5,class:6})}}function It(r){var Ie,Pe,Ce;let e,s,t,l,o,a=r[0].id+"",n,f,i,h,D,p=X(r[0].startTime,r[1])+"",b,m,_,q,B,d,y,I=r[0].name+"",G,U,R,N,re,x,ae=X(r[0].endTime,r[1])+"",de,pe,Z,oe,ne=X(r[0].startTime,r[1])+"",be,we,$,fe,ue=X(r[0].endTime,r[1])+"",ke,A,Ee,We;return s=new mt({props:{status:r[0].status,delay:Ae(r[0].startTime)}}),i=new Me({props:{show:r[2],content:r[0].id,filterable:!1}}),N=new Me({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(Ce=(Pe=(Ie=r[4].url)==null?void 0:Ie.searchParams)==null?void 0:Pe.get("query"))==null?void 0:Ce.includes(r[0].name)}}),{c(){e=g("td"),V(s.$$.fragment),t=P(),l=g("td"),o=g("span"),n=H(a),f=P(),V(i.$$.fragment),h=P(),D=g("p"),b=H(p),m=P(),_=g("td"),q=g("h3"),B=H("Workflow Name:"),d=P(),y=g("button"),G=H(I),R=P(),V(N.$$.fragment),re=P(),x=g("p"),de=H(ae),pe=P(),Z=g("td"),oe=g("p"),be=H(ne),we=P(),$=g("td"),fe=g("p"),ke=H(ue),this.h()},l(u){e=E(u,"TD",{});var v=F(e);z(s.$$.fragment,v),v.forEach(c),t=C(u),l=E(u,"TD",{class:!0});var Q=F(l);o=E(Q,"SPAN",{class:!0});var ee=F(o);n=L(ee,a),ee.forEach(c),f=C(Q),z(i.$$.fragment,Q),h=C(Q),D=E(Q,"P",{class:!0});var J=F(D);b=L(J,p),J.forEach(c),Q.forEach(c),m=C(u),_=E(u,"TD",{class:!0});var O=F(_);q=E(O,"H3",{class:!0});var ie=F(q);B=L(ie,"Workflow Name:"),ie.forEach(c),d=C(O),y=E(O,"BUTTON",{class:!0,"aria-label":!0});var ce=F(y);G=L(ce,I),ce.forEach(c),R=C(O),z(N.$$.fragment,O),re=C(O),x=E(O,"P",{class:!0});var je=F(x);de=L(je,ae),je.forEach(c),O.forEach(c),pe=C(u),Z=E(u,"TD",{class:!0});var He=F(Z);oe=E(He,"P",{});var Le=F(oe);be=L(Le,ne),Le.forEach(c),He.forEach(c),we=C(u),$=E(u,"TD",{class:!0});var Ne=F($);fe=E(Ne,"P",{});var Be=F(fe);ke=L(Be,ue),Be.forEach(c),Ne.forEach(c),this.h()},h(){w(o,"class","table-link svelte-tyqpjy"),w(D,"class","inline-time-cell svelte-tyqpjy"),w(l,"class","relative break-words pr-4"),w(q,"class","md:hidden"),w(y,"class","table-link svelte-tyqpjy"),w(y,"aria-label",U="filter by "+r[0].name+" type"),w(x,"class","inline-time-cell svelte-tyqpjy"),w(_,"class","relative truncate"),w(Z,"class","time-cell svelte-tyqpjy"),w($,"class","time-cell svelte-tyqpjy")},m(u,v){T(u,e,v),K(s,e,null),T(u,t,v),T(u,l,v),k(l,o),k(o,n),k(l,f),K(i,l,null),k(l,h),k(l,D),k(D,b),T(u,m,v),T(u,_,v),k(_,q),k(q,B),k(_,d),k(_,y),k(y,G),k(_,R),K(N,_,null),k(_,re),k(_,x),k(x,de),T(u,pe,v),T(u,Z,v),k(Z,oe),k(oe,be),T(u,we,v),T(u,$,v),k($,fe),k(fe,ke),A=!0,Ee||(We=[j(l,"mouseover",r[7]),j(l,"focus",r[8]),j(l,"mouseleave",r[9]),j(l,"blur",r[10]),j(y,"click",le(se(r[11]))),j(_,"mouseover",r[13]),j(_,"focus",r[14]),j(_,"mouseleave",r[15]),j(_,"blur",r[16])],Ee=!0)},p(u,v){var O,ie,ce;const Q={};v&1&&(Q.status=u[0].status),v&1&&(Q.delay=Ae(u[0].startTime)),s.$set(Q),(!A||v&1)&&a!==(a=u[0].id+"")&&Y(n,a);const ee={};v&4&&(ee.show=u[2]),v&1&&(ee.content=u[0].id),i.$set(ee),(!A||v&3)&&p!==(p=X(u[0].startTime,u[1])+"")&&Y(b,p),(!A||v&1)&&I!==(I=u[0].name+"")&&Y(G,I),(!A||v&1&&U!==(U="filter by "+u[0].name+" type"))&&w(y,"aria-label",U);const J={};v&4&&(J.show=u[2]),v&1&&(J.content=u[0].name),v&1&&(J.onFilter=u[12]),v&17&&(J.filtered=(ce=(ie=(O=u[4].url)==null?void 0:O.searchParams)==null?void 0:ie.get("query"))==null?void 0:ce.includes(u[0].name)),N.$set(J),(!A||v&3)&&ae!==(ae=X(u[0].endTime,u[1])+"")&&Y(de,ae),(!A||v&3)&&ne!==(ne=X(u[0].startTime,u[1])+"")&&Y(be,ne),(!A||v&3)&&ue!==(ue=X(u[0].endTime,u[1])+"")&&Y(ke,ue)},i(u){A||(S(s.$$.fragment,u),S(i.$$.fragment,u),S(N.$$.fragment,u),A=!0)},o(u){W(s.$$.fragment,u),W(i.$$.fragment,u),W(N.$$.fragment,u),A=!1},d(u){u&&c(e),M(s),u&&c(t),u&&c(l),M(i),u&&c(m),u&&c(_),M(N),u&&c(pe),u&&c(Z),u&&c(we),u&&c($),Ee=!1,qe(We)}}}function Pt(r){let e,s;return e=new ht({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[It]},$$scope:{ctx:r}}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},p(t,[l]){const o={};l&8&&(o.href=t[3]),l&131095&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ct(r,e,s){let t,l;Je(r,lt,I=>s(4,l=I));let{namespace:o}=e,{workflow:a}=e,{timeFormat:n}=e,f=!1;const i=I=>{const G=Oe({timeRange:"All"}),U=l.url.searchParams.get("query"),R=qt(U??G),N=(R==null?void 0:R.workflowType)===I?"":I,re=Oe({...R,workflowType:N});nt({url:l.url,parameter:"query",value:re,allowEmpty:!0})},h=()=>s(2,f=!0),D=()=>s(2,f=!0),p=()=>s(2,f=!1),b=()=>s(2,f=!1),m=()=>i(a.name),_=()=>i(a.name),q=()=>s(2,f=!0),B=()=>s(2,f=!0),d=()=>s(2,f=!1),y=()=>s(2,f=!1);return r.$$set=I=>{"namespace"in I&&s(6,o=I.namespace),"workflow"in I&&s(0,a=I.workflow),"timeFormat"in I&&s(1,n=I.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=ot({namespace:o,workflow:a.id,run:a.runId}))},[a,n,f,t,l,i,o,h,D,p,b,m,_,q,B,d,y]}class $t extends ye{constructor(e){super(),Te(this,e,Ct,Pt,he,{namespace:6,workflow:0,timeFormat:1})}}var xt=jt;function jt(r,e,s,t){var l,o,a;return function(){if(a=this,o=Array.prototype.slice.call(arguments),l&&(s||t))return;if(!s)return i(),l=setTimeout(f,e),l;l=setTimeout(i,e),r.apply(a,o);function f(){i(),r.apply(a,o)}function i(){clearTimeout(l),l=null}}}function Ge(r){let e,s;return e=new De({props:{name:"search",class:"ml-4 flex items-center text-gray-700"}}),{c(){V(e.$$.fragment)},l(t){z(e.$$.fragment,t)},m(t,l){K(e,t,l),s=!0},i(t){s||(S(e.$$.fragment,t),s=!0)},o(t){W(e.$$.fragment,t),s=!1},d(t){M(e,t)}}}function Ht(r){let e;return{c(){e=H(r[2])},l(s){e=L(s,r[2])},m(s,t){T(s,e,t)},p(s,t){t&4&&Y(e,s[2])},d(s){s&&c(e)}}}function Lt(r){let e,s,t,l,o,a,n,f,i,h,D,p,b=r[4]&&Ge();return i=new dt({props:{class:"m-2",type:"submit",$$slots:{default:[Ht]},$$scope:{ctx:r}}}),{c(){e=g("form"),b&&b.c(),s=P(),t=g("label"),l=H(r[2]),o=P(),a=g("input"),n=P(),f=g("div"),V(i.$$.fragment),this.h()},l(m){e=E(m,"FORM",{class:!0,role:!0});var _=F(e);b&&b.l(_),s=C(_),t=E(_,"LABEL",{for:!0,class:!0});var q=F(t);l=L(q,r[2]),q.forEach(c),o=C(_),a=E(_,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),n=C(_),f=E(_,"DIV",{});var B=F(f);z(i.$$.fragment,B),B.forEach(c),_.forEach(c),this.h()},h(){w(t,"for",r[5]),w(t,"class","hidden"),w(a,"id",r[5]),w(a,"type","search"),w(a,"class","w-full rounded-l-lg px-4 focus:outline-none"),w(a,"name",r[3]),a.value=r[1],w(a,"placeholder",r[0]),w(a,"autocomplete","off"),w(e,"class","relative flex items-center rounded-lg border-2 bg-white transition-colors focus-within:border-blue-700"),w(e,"role","search")},m(m,_){T(m,e,_),b&&b.m(e,null),k(e,s),k(e,t),k(t,l),k(e,o),k(e,a),k(e,n),k(e,f),K(i,f,null),h=!0,D||(p=[j(a,"input",r[7]),j(a,"keydown",le(r[8])),j(e,"submit",se(r[6]))],D=!0)},p(m,[_]){m[4]?b?_&16&&S(b,1):(b=Ge(),b.c(),S(b,1),b.m(e,s)):b&&(me(),W(b,1,1,()=>{b=null}),_e()),(!h||_&4)&&Y(l,m[2]),(!h||_&32)&&w(t,"for",m[5]),(!h||_&32)&&w(a,"id",m[5]),(!h||_&8)&&w(a,"name",m[3]),(!h||_&2&&a.value!==m[1])&&(a.value=m[1]),(!h||_&1)&&w(a,"placeholder",m[0]);const q={};_&516&&(q.$$scope={dirty:_,ctx:m}),i.$set(q)},i(m){h||(S(b),S(i.$$.fragment,m),h=!0)},o(m){W(b),W(i.$$.fragment,m),h=!1},d(m){m&&c(e),b&&b.d(),M(i),D=!1,qe(p)}}}function Nt(r,e,s){let{placeholder:t=""}=e,{value:l=""}=e,{label:o="Search"}=e,{name:a="query"}=e,{icon:n=!1}=e,{id:f=`${o.toLocaleUpperCase()}-input`}=e;function i(p){Se.call(this,r,p)}function h(p){Se.call(this,r,p)}function D(p){Se.call(this,r,p)}return r.$$set=p=>{"placeholder"in p&&s(0,t=p.placeholder),"value"in p&&s(1,l=p.value),"label"in p&&s(2,o=p.label),"name"in p&&s(3,a=p.name),"icon"in p&&s(4,n=p.icon),"id"in p&&s(5,f=p.id)},[t,l,o,a,n,f,i,h,D]}class el extends ye{constructor(e){super(),Te(this,e,Nt,Lt,he,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{Me as F,el as S,Zt as W,$t as a,yt as b,xt as j,qt as t}; diff --git a/ui/assets/local/_app/immutable/chunks/settings-service.5ac9963d.js b/ui/assets/local/_app/immutable/chunks/settings-service.98a38158.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/settings-service.5ac9963d.js rename to ui/assets/local/_app/immutable/chunks/settings-service.98a38158.js index 943a015674..8551d5e8f7 100644 --- a/ui/assets/local/_app/immutable/chunks/settings-service.5ac9963d.js +++ b/ui/assets/local/_app/immutable/chunks/settings-service.98a38158.js @@ -1 +1 @@ -import{s as t}from"./settings.34723850.js";import{r as b,a as e,g as A}from"./route-for-api.6ac9324b.js";function D(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,n=async(m=fetch)=>{var o,c,d,i,u;const w=b("settings"),a=await e(w,{request:m}),r=D(),l={auth:{enabled:!!((o=a==null?void 0:a.Auth)!=null&&o.Enabled),options:(c=a==null?void 0:a.Auth)==null?void 0:c.Options},baseUrl:A(),codec:{endpoint:(d=a==null?void 0:a.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=a==null?void 0:a.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=a==null?void 0:a.Codec)==null?void 0:u.IncludeCredentials},defaultNamespace:(a==null?void 0:a.DefaultNamespace)||"default",disableWriteActions:!!(a!=null&&a.DisableWriteActions)||!1,workflowTerminateDisabled:!!(a!=null&&a.WorkflowTerminateDisabled),workflowCancelDisabled:!!(a!=null&&a.WorkflowCancelDisabled),workflowSignalDisabled:!!(a!=null&&a.WorkflowSignalDisabled),workflowResetDisabled:!!(a!=null&&a.WorkflowResetDisabled),batchActionsDisabled:!!(a!=null&&a.BatchActionsDisabled),showTemporalSystemNamespace:a==null?void 0:a.ShowTemporalSystemNamespace,notifyOnNewVersion:a==null?void 0:a.NotifyOnNewVersion,feedbackURL:a==null?void 0:a.FeedbackURL,runtimeEnvironment:{get isCloud(){return r?r==="cloud":f.test(window.location.hostname)},get isLocal(){return r?r==="local":f.test(window.location.hostname)},envOverride:Boolean(r)},version:a==null?void 0:a.Version};return t.set(l),l};export{n as f,f as i}; +import{s as t}from"./settings.34723850.js";import{r as b,a as e,g as A}from"./route-for-api.1addc328.js";function D(){return{}.VITE_TEMPORAL_UI_BUILD_TARGET??null}const f=/(tmprl\.cloud|tmprl-test\.cloud)$/,n=async(m=fetch)=>{var o,c,d,i,u;const w=b("settings"),a=await e(w,{request:m}),r=D(),l={auth:{enabled:!!((o=a==null?void 0:a.Auth)!=null&&o.Enabled),options:(c=a==null?void 0:a.Auth)==null?void 0:c.Options},baseUrl:A(),codec:{endpoint:(d=a==null?void 0:a.Codec)==null?void 0:d.Endpoint,passAccessToken:(i=a==null?void 0:a.Codec)==null?void 0:i.PassAccessToken,includeCredentials:(u=a==null?void 0:a.Codec)==null?void 0:u.IncludeCredentials},defaultNamespace:(a==null?void 0:a.DefaultNamespace)||"default",disableWriteActions:!!(a!=null&&a.DisableWriteActions)||!1,workflowTerminateDisabled:!!(a!=null&&a.WorkflowTerminateDisabled),workflowCancelDisabled:!!(a!=null&&a.WorkflowCancelDisabled),workflowSignalDisabled:!!(a!=null&&a.WorkflowSignalDisabled),workflowResetDisabled:!!(a!=null&&a.WorkflowResetDisabled),batchActionsDisabled:!!(a!=null&&a.BatchActionsDisabled),showTemporalSystemNamespace:a==null?void 0:a.ShowTemporalSystemNamespace,notifyOnNewVersion:a==null?void 0:a.NotifyOnNewVersion,feedbackURL:a==null?void 0:a.FeedbackURL,runtimeEnvironment:{get isCloud(){return r?r==="cloud":f.test(window.location.hostname)},get isLocal(){return r?r==="local":f.test(window.location.hostname)},envOverride:Boolean(r)},version:a==null?void 0:a.Version};return t.set(l),l};export{n as f,f as i}; diff --git a/ui/assets/local/_app/immutable/chunks/singletons.7cea9c5f.js b/ui/assets/local/_app/immutable/chunks/singletons.65b9baf3.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/singletons.7cea9c5f.js rename to ui/assets/local/_app/immutable/chunks/singletons.65b9baf3.js index 0d208ea0f1..01c5f92383 100644 --- a/ui/assets/local/_app/immutable/chunks/singletons.7cea9c5f.js +++ b/ui/assets/local/_app/immutable/chunks/singletons.65b9baf3.js @@ -1 +1 @@ -import{w as u}from"./index.deae5bd4.js";import{a as _}from"./paths.88db541d.js";const g="1680058308176",k="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function T(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}function I(){return{x:pageXOffset,y:pageYOffset}}function i(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function S(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const s=t instanceof SVGAElement?t.target.baseVal:t.target,a=!n||!!s||v(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external")||t.hasAttribute("download");return{url:n,external:a,target:s}}function x(t){let e=null,n=null,s=null,a=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),e===null&&(e=i(o,"noscroll")),a===null&&(a=i(o,"reload")),o=h(o);return{preload_code:d[n??"off"],preload_data:d[s??"off"],noscroll:e==="off"?!1:e===""?!0:null,reload:a==="off"?!1:a===""?!0:null}}function p(t){const e=u(t);let n=!0;function s(){n=!0,e.update(r=>r)}function a(r){n=!1,e.set(r)}function o(r){let l;return e.subscribe(c=>{(l===void 0||n&&c!==l)&&r(l=c)})}return{notify:s,set:a,subscribe:o}}function b(){const{set:t,subscribe:e}=u(!1),n=1e4;let s;async function a(){clearTimeout(s),s=setTimeout(a,n);const o=await fetch(`${_}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(o.ok){const l=(await o.json()).version!==g;return l&&(t(!0),clearTimeout(s)),l}else throw new Error(`Version check failed: ${o.status}`)}return s=setTimeout(a,n),{subscribe:e,check:a}}function v(t,e){return t.origin!==location.origin||!t.pathname.startsWith(e)}let m;function O(t){m=t.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,k as a,y as b,x as c,I as d,O as e,S as f,T as g,m as h,v as i,U as s}; +import{w as u}from"./index.deae5bd4.js";import{a as _}from"./paths.9a3098df.js";const g="1680062575256",k="sveltekit:snapshot",A="sveltekit:scroll",R="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function T(t){let e=t.baseURI;if(!e){const n=t.getElementsByTagName("base");e=n.length?n[0].href:t.URL}return e}function I(){return{x:pageXOffset,y:pageYOffset}}function i(t,e){return t.getAttribute(`data-sveltekit-${e}`)}const d={...f,"":f.hover};function h(t){let e=t.assignedSlot??t.parentNode;return(e==null?void 0:e.nodeType)===11&&(e=e.host),e}function S(t,e){for(;t&&t!==e;){if(t.nodeName.toUpperCase()==="A"&&t.hasAttribute("href"))return t;t=h(t)}}function y(t,e){let n;try{n=new URL(t instanceof SVGAElement?t.href.baseVal:t.href,document.baseURI)}catch{}const s=t instanceof SVGAElement?t.target.baseVal:t.target,a=!n||!!s||v(n,e)||(t.getAttribute("rel")||"").split(/\s+/).includes("external")||t.hasAttribute("download");return{url:n,external:a,target:s}}function x(t){let e=null,n=null,s=null,a=null,o=t;for(;o&&o!==document.documentElement;)n===null&&(n=i(o,"preload-code")),s===null&&(s=i(o,"preload-data")),e===null&&(e=i(o,"noscroll")),a===null&&(a=i(o,"reload")),o=h(o);return{preload_code:d[n??"off"],preload_data:d[s??"off"],noscroll:e==="off"?!1:e===""?!0:null,reload:a==="off"?!1:a===""?!0:null}}function p(t){const e=u(t);let n=!0;function s(){n=!0,e.update(r=>r)}function a(r){n=!1,e.set(r)}function o(r){let l;return e.subscribe(c=>{(l===void 0||n&&c!==l)&&r(l=c)})}return{notify:s,set:a,subscribe:o}}function b(){const{set:t,subscribe:e}=u(!1),n=1e4;let s;async function a(){clearTimeout(s),s=setTimeout(a,n);const o=await fetch(`${_}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(o.ok){const l=(await o.json()).version!==g;return l&&(t(!0),clearTimeout(s)),l}else throw new Error(`Version check failed: ${o.status}`)}return s=setTimeout(a,n),{subscribe:e,check:a}}function v(t,e){return t.origin!==location.origin||!t.pathname.startsWith(e)}let m;function O(t){m=t.client}const U={url:p({}),page:p({}),navigating:u(null),updated:b()};export{R as I,f as P,A as S,k as a,y as b,x as c,I as d,O as e,S as f,T as g,m as h,v as i,U as s}; diff --git a/ui/assets/local/_app/immutable/chunks/stores.48be4ca9.js b/ui/assets/local/_app/immutable/chunks/stores.4d55fa19.js similarity index 69% rename from ui/assets/local/_app/immutable/chunks/stores.48be4ca9.js rename to ui/assets/local/_app/immutable/chunks/stores.4d55fa19.js index b7d43ee71b..f070d57c3f 100644 --- a/ui/assets/local/_app/immutable/chunks/stores.48be4ca9.js +++ b/ui/assets/local/_app/immutable/chunks/stores.4d55fa19.js @@ -1 +1 @@ -import"./index.a36c9cb0.js";import{s as t}from"./singletons.7cea9c5f.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.a36c9cb0.js";import{s as t}from"./singletons.65b9baf3.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.dc1431b3.js b/ui/assets/local/_app/immutable/chunks/toggle-buttons.9513a782.js similarity index 98% rename from ui/assets/local/_app/immutable/chunks/toggle-buttons.dc1431b3.js rename to ui/assets/local/_app/immutable/chunks/toggle-buttons.9513a782.js index 3dddfdd09e..ebc9c52a36 100644 --- a/ui/assets/local/_app/immutable/chunks/toggle-buttons.dc1431b3.js +++ b/ui/assets/local/_app/immutable/chunks/toggle-buttons.9513a782.js @@ -1 +1 @@ -import{ah as w,S as J,b as K,a as L,e as F,f as j,z,g,h as B,j as v,k as b,K as $,N as T,O as G,P as H,m as y,p as E,q as I,Q as V,R as p,T as O,U as Q,G as D,H as A,I as N,J as S,C as R,c as U,D as M,d as W,u as C,E as X,L as P,F as Y,ai as x}from"./index.a36c9cb0.js";import{I as Z}from"./icon.33859671.js";import{p as ee}from"./stores.48be4ca9.js";function le(r){return w(r)}function te(r){let e,l,t,s,a,u,i,n;const f=[re,ne],c=[];function h(_,o){return _[0]?0:1}l=h(r),t=c[l]=f[l](r);let k=[{class:s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{id:a=r[6].id},r[6]],d={};for(let _=0;_{c[m]=null}),B(),t=c[l],t?t.p(_,o):(t=c[l]=f[l](_),t.c()),v(t,1),t.m(e,null)),V(e,d=Q(k,[(!u||o&64&&s!==(s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+_[6].class))&&{class:s},(!u||o&64&&a!==(a=_[6].id))&&{id:a},o&64&&_[6]])),p(e,"rounded-lg",!_[1]),p(e,"active",_[4]),p(e,"group",_[1]),p(e,"svelte-1orl6nd",!0)},i(_){u||(v(t),u=!0)},o(_){g(t),u=!1},d(_){_&&b(e),c[l].d(),i=!1,n()}}}function se(r){let e,l,t,s,a,u,i,n,f;const c=[ie,ae],h=[];function k(o,m){return o[0]?0:1}l=k(r),t=h[l]=c[l](r);let d=[{class:s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{href:a=r[2]+r[5].url.search},{id:u=r[6].id},r[6]],_={};for(let o=0;o{h[q]=null}),B(),t=h[l],t?t.p(o,m):(t=h[l]=c[l](o),t.c()),v(t,1),t.m(e,null)),V(e,_=Q(d,[(!i||m&64&&s!==(s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+o[6].class))&&{class:s},(!i||m&36&&a!==(a=o[2]+o[5].url.search))&&{href:a},(!i||m&64&&u!==(u=o[6].id))&&{id:u},m&64&&o[6]])),p(e,"rounded-lg",!o[1]),p(e,"active",o[5].url.pathname.includes(o[3])||o[4]),p(e,"group",o[1]),p(e,"svelte-1orl6nd",!0)},i(o){i||(v(t),i=!0)},o(o){g(t),i=!1},d(o){o&&b(e),h[l].d(),n=!1,f()}}}function ne(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function re(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function ae(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function ie(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function oe(r){let e,l,t,s;const a=[se,te],u=[];function i(n,f){return n[2]?0:1}return e=i(r),l=u[e]=a[e](r),{c(){l.c(),t=F()},l(n){l.l(n),t=F()},m(n,f){u[e].m(n,f),j(n,t,f),s=!0},p(n,[f]){let c=e;e=i(n),e===c?u[e].p(n,f):(z(),g(u[c],1,1,()=>{u[c]=null}),B(),l=u[e],l?l.p(n,f):(l=u[e]=a[e](n),l.c()),v(l,1),l.m(t.parentNode,t))},i(n){s||(v(l),s=!0)},o(n){g(l),s=!1},d(n){u[e].d(n),n&&b(t)}}}function ue(r,e,l){let t;$(r,ee,d=>l(5,t=d));let{$$slots:s={},$$scope:a}=e,{icon:u=null}=e,{group:i=le("group")}=e,{href:n=""}=e,{base:f=n}=e,{active:c=!1}=e;function h(d){H.call(this,r,d)}function k(d){H.call(this,r,d)}return r.$$set=d=>{l(6,e=T(T({},e),G(d))),"icon"in d&&l(0,u=d.icon),"group"in d&&l(1,i=d.group),"href"in d&&l(2,n=d.href),"base"in d&&l(3,f=d.base),"active"in d&&l(4,c=d.active),"$$scope"in d&&l(7,a=d.$$scope)},e=G(e),[u,i,n,f,c,t,e,a,s,h,k]}class pe extends J{constructor(e){super(),K(this,e,ue,oe,L,{icon:0,group:1,href:2,base:3,active:4})}}function fe(r){let e,l;const t=r[1].default,s=D(t,r,r[0],null);return{c(){e=y("div"),s&&s.c(),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);s&&s.l(u),u.forEach(b),this.h()},h(){C(e,"class","flex")},m(a,u){j(a,e,u),s&&s.m(e,null),l=!0},p(a,[u]){s&&s.p&&(!l||u&1)&&A(s,t,a,a[0],l?S(t,a[0],u,null):N(a[0]),null)},i(a){l||(v(s,a),l=!0)},o(a){g(s,a),l=!1},d(a){a&&b(e),s&&s.d(a)}}}function ce(r,e,l){let{$$slots:t={},$$scope:s}=e;return x("group",!0),r.$$set=a=>{"$$scope"in a&&l(0,s=a.$$scope)},[s,t]}class he extends J{constructor(e){super(),K(this,e,ce,fe,L,{})}}export{he as T,pe as a}; +import{ah as w,S as J,b as K,a as L,e as F,f as j,z,g,h as B,j as v,k as b,K as $,N as T,O as G,P as H,m as y,p as E,q as I,Q as V,R as p,T as O,U as Q,G as D,H as A,I as N,J as S,C as R,c as U,D as M,d as W,u as C,E as X,L as P,F as Y,ai as x}from"./index.a36c9cb0.js";import{I as Z}from"./icon.33859671.js";import{p as ee}from"./stores.4d55fa19.js";function le(r){return w(r)}function te(r){let e,l,t,s,a,u,i,n;const f=[re,ne],c=[];function h(_,o){return _[0]?0:1}l=h(r),t=c[l]=f[l](r);let k=[{class:s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{id:a=r[6].id},r[6]],d={};for(let _=0;_{c[m]=null}),B(),t=c[l],t?t.p(_,o):(t=c[l]=f[l](_),t.c()),v(t,1),t.m(e,null)),V(e,d=Q(k,[(!u||o&64&&s!==(s="flex cursor-pointer items-center justify-center border border-gray-900 py-2 px-4 text-sm "+_[6].class))&&{class:s},(!u||o&64&&a!==(a=_[6].id))&&{id:a},o&64&&_[6]])),p(e,"rounded-lg",!_[1]),p(e,"active",_[4]),p(e,"group",_[1]),p(e,"svelte-1orl6nd",!0)},i(_){u||(v(t),u=!0)},o(_){g(t),u=!1},d(_){_&&b(e),c[l].d(),i=!1,n()}}}function se(r){let e,l,t,s,a,u,i,n,f;const c=[ie,ae],h=[];function k(o,m){return o[0]?0:1}l=k(r),t=h[l]=c[l](r);let d=[{class:s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+r[6].class},{href:a=r[2]+r[5].url.search},{id:u=r[6].id},r[6]],_={};for(let o=0;o{h[q]=null}),B(),t=h[l],t?t.p(o,m):(t=h[l]=c[l](o),t.c()),v(t,1),t.m(e,null)),V(e,_=Q(d,[(!i||m&64&&s!==(s="flex items-center justify-center border border-gray-900 py-2 px-4 text-sm "+o[6].class))&&{class:s},(!i||m&36&&a!==(a=o[2]+o[5].url.search))&&{href:a},(!i||m&64&&u!==(u=o[6].id))&&{id:u},m&64&&o[6]])),p(e,"rounded-lg",!o[1]),p(e,"active",o[5].url.pathname.includes(o[3])||o[4]),p(e,"group",o[1]),p(e,"svelte-1orl6nd",!0)},i(o){i||(v(t),i=!0)},o(o){g(t),i=!1},d(o){o&&b(e),h[l].d(),n=!1,f()}}}function ne(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function re(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function ae(r){let e;const l=r[8].default,t=D(l,r,r[7],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,a){t&&t.m(s,a),e=!0},p(s,a){t&&t.p&&(!e||a&128)&&A(t,l,s,s[7],e?S(l,s[7],a,null):N(s[7]),null)},i(s){e||(v(t,s),e=!0)},o(s){g(t,s),e=!1},d(s){t&&t.d(s)}}}function ie(r){let e,l,t,s,a;l=new Z({props:{name:r[0]}});const u=r[8].default,i=D(u,r,r[7],null);return{c(){e=y("div"),R(l.$$.fragment),t=U(),s=y("span"),i&&i.c(),this.h()},l(n){e=E(n,"DIV",{class:!0});var f=I(e);M(l.$$.fragment,f),t=W(f),s=E(f,"SPAN",{class:!0});var c=I(s);i&&i.l(c),c.forEach(b),f.forEach(b),this.h()},h(){C(s,"class","hidden md:block"),C(e,"class","flex items-center gap-2")},m(n,f){j(n,e,f),X(l,e,null),P(e,t),P(e,s),i&&i.m(s,null),a=!0},p(n,f){const c={};f&1&&(c.name=n[0]),l.$set(c),i&&i.p&&(!a||f&128)&&A(i,u,n,n[7],a?S(u,n[7],f,null):N(n[7]),null)},i(n){a||(v(l.$$.fragment,n),v(i,n),a=!0)},o(n){g(l.$$.fragment,n),g(i,n),a=!1},d(n){n&&b(e),Y(l),i&&i.d(n)}}}function oe(r){let e,l,t,s;const a=[se,te],u=[];function i(n,f){return n[2]?0:1}return e=i(r),l=u[e]=a[e](r),{c(){l.c(),t=F()},l(n){l.l(n),t=F()},m(n,f){u[e].m(n,f),j(n,t,f),s=!0},p(n,[f]){let c=e;e=i(n),e===c?u[e].p(n,f):(z(),g(u[c],1,1,()=>{u[c]=null}),B(),l=u[e],l?l.p(n,f):(l=u[e]=a[e](n),l.c()),v(l,1),l.m(t.parentNode,t))},i(n){s||(v(l),s=!0)},o(n){g(l),s=!1},d(n){u[e].d(n),n&&b(t)}}}function ue(r,e,l){let t;$(r,ee,d=>l(5,t=d));let{$$slots:s={},$$scope:a}=e,{icon:u=null}=e,{group:i=le("group")}=e,{href:n=""}=e,{base:f=n}=e,{active:c=!1}=e;function h(d){H.call(this,r,d)}function k(d){H.call(this,r,d)}return r.$$set=d=>{l(6,e=T(T({},e),G(d))),"icon"in d&&l(0,u=d.icon),"group"in d&&l(1,i=d.group),"href"in d&&l(2,n=d.href),"base"in d&&l(3,f=d.base),"active"in d&&l(4,c=d.active),"$$scope"in d&&l(7,a=d.$$scope)},e=G(e),[u,i,n,f,c,t,e,a,s,h,k]}class pe extends J{constructor(e){super(),K(this,e,ue,oe,L,{icon:0,group:1,href:2,base:3,active:4})}}function fe(r){let e,l;const t=r[1].default,s=D(t,r,r[0],null);return{c(){e=y("div"),s&&s.c(),this.h()},l(a){e=E(a,"DIV",{class:!0});var u=I(e);s&&s.l(u),u.forEach(b),this.h()},h(){C(e,"class","flex")},m(a,u){j(a,e,u),s&&s.m(e,null),l=!0},p(a,[u]){s&&s.p&&(!l||u&1)&&A(s,t,a,a[0],l?S(t,a[0],u,null):N(a[0]),null)},i(a){l||(v(s,a),l=!0)},o(a){g(s,a),l=!1},d(a){a&&b(e),s&&s.d(a)}}}function ce(r,e,l){let{$$slots:t={},$$scope:s}=e;return x("group",!0),r.$$set=a=>{"$$scope"in a&&l(0,s=a.$$scope)},[s,t]}class he extends J{constructor(e){super(),K(this,e,ce,fe,L,{})}}export{he as T,pe as a}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-service.11be6188.js b/ui/assets/local/_app/immutable/chunks/workflow-service.a6d60dde.js similarity index 95% rename from ui/assets/local/_app/immutable/chunks/workflow-service.11be6188.js rename to ui/assets/local/_app/immutable/chunks/workflow-service.a6d60dde.js index 27570c2570..04a0e284f7 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-service.11be6188.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-service.a6d60dde.js @@ -1 +1 @@ -import{W as v,n as d}from"./index.a36c9cb0.js";import{s as C}from"./settings.34723850.js";import{s as F}from"./simplify-attributes.ba9e7501.js";import{r as l,a as f,b as O,i as z,c as U}from"./route-for-api.6ac9324b.js";import{t as $}from"./list-workflow-query.900ba0a0.js";import{s as y}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.6dec3e74.js";import{v as R}from"./toaster.16c48a98.js";const q=(o=C)=>!v(o).disableWriteActions,_=(o=[])=>o.map(t=>{const n=F(t,!0),r=t.activityId;return{...n,id:r}}),g=o=>{var I,x,T,W,b;const t=o.workflowExecutionInfo.type.name,n=o.workflowExecutionInfo.execution.workflowId,r=o.workflowExecutionInfo.execution.runId,e=String(o.workflowExecutionInfo.startTime),a=String(o.workflowExecutionInfo.closeTime),i=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",u=o.workflowExecutionInfo.historyLength,w=`/workflows/${n}/${r}`,h=(x=(I=o==null?void 0:o.executionConfig)==null?void 0:I.taskQueue)==null?void 0:x.name,E=(T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.parentNamespaceId,s=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,k=o.workflowExecutionInfo.stateTransitionCount,m=(b=o.executionConfig)==null?void 0:b.defaultWorkflowTaskTimeout,P=_(o.pendingActivities),S=(o==null?void 0:o.pendingChildren)??[];return{name:t,id:n,runId:r,startTime:e,endTime:a,status:i,historyEvents:u,url:w,taskQueue:h,pendingActivities:P,pendingChildren:S,parentNamespaceId:E,parent:s,stateTransitionCount:k,isRunning:c,defaultWorkflowTaskTimeout:m,get canBeTerminated(){return c&&q()}}},A=o=>(o.executions||[]).map(t=>g({workflowExecutionInfo:t})),B=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),p=(o,t=Q)=>t?B(o):o,V=async(o,t,n=fetch)=>{let r=0,e=0;try{const a=l("workflows.count",{namespace:o});if(t){const i=f(a,{params:{query:t},onError:d,handleError:d,request:n}),c=f(a,{params:{query:""},onError:d,handleError:d,request:n}),[u,w]=await Promise.all([i,c]);e=u==null?void 0:u.count,r=w==null?void 0:w.count}else{const i=await f(a,{params:{},onError:d,handleError:d,request:n});r=i==null?void 0:i.count}}catch{}return{count:e,totalCount:r}},D=async(o,t,n=fetch,r=!1)=>{const e=t.query||$(t,r);let a;try{a=decodeURIComponent(e)}catch{a=e}const i=r?"workflows.archived":"workflows";let c="";const u=s=>{var k,m;O(s),(k=s==null?void 0:s.body)!=null&&k.message||s!=null&&s.status?c=((m=s==null?void 0:s.body)==null?void 0:m.message)??`Error fetching workflows: ${s.status}: ${s.statusText}`:c="Error fetching workflows: Server failed to respond"},w=l(i,{namespace:o}),{executions:h,nextPageToken:E}=await f(w,{params:{query:a},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:A({executions:h}),nextPageToken:String(E),error:c}},X=async(o,t=fetch)=>{var u;const{namespace:n,workflowId:r}=o,a=l("workflows",{namespace:n}),{executions:i}=await f(a,{params:{query:`WorkflowId="${r}"`,pageSize:"1"},request:t})??{executions:[]},c=(u=A({executions:i}))==null?void 0:u[0];return{runId:c==null?void 0:c.runId}},Y=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const a=c=>{(z(c)||U(c))&&(e=!1)},i=l(r,{namespace:o});return await f(i,{params:{pageSize:"1"},onError:a,handleError:a,request:t}),{authorized:e}},Z=async(o,t,n=fetch)=>D(o,t,n,!0);async function oo(o,t=fetch){const n=l("workflow",o);return f(n,{request:t}).then(g)}async function to({workflow:o,namespace:t,reason:n}){const r=l("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await f(r,{options:{method:"POST",body:y({reason:n})},shouldRetry:!1,notifyOnError:!1})}async function no({namespace:o,workflowId:t,runId:n},r=fetch){const e=l("workflow.cancel",{namespace:o,workflowId:t,runId:n});return f(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function ro({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e}){const a=l("workflow.signal",{namespace:o,workflowId:t,runId:n});return f(a,{notifyOnError:!1,options:{method:"POST",body:y({signalName:r,input:{payloads:e?[{metadata:{encoding:p("json/plain")},data:p(e)}]:null}})}})}async function eo({namespace:o,workflowId:t,runId:n,eventId:r,reason:e}){const a=l("workflow.reset",{namespace:o,workflowId:t,runId:n}),i={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,requestId:R(),reason:e};return f(a,{notifyOnError:!1,options:{method:"POST",body:y(i)}})}async function ao(o,t=fetch){const n=e=>{console.error(e)},r=l("workflow",o);return f(r,{request:t,onError:n,handleError:n}).then(g)}export{D as a,V as b,no as c,Y as d,Z as e,oo as f,ao as g,X as h,eo as r,ro as s,to as t,q as w}; +import{W as v,n as d}from"./index.a36c9cb0.js";import{s as C}from"./settings.34723850.js";import{s as F}from"./simplify-attributes.ba9e7501.js";import{r as l,a as f,b as O,i as z,c as U}from"./route-for-api.1addc328.js";import{t as $}from"./list-workflow-query.11f239c5.js";import{s as y}from"./parse-with-big-int.0036a80a.js";import{f as Q}from"./route-for.e1b7889c.js";import{v as R}from"./toaster.16c48a98.js";const q=(o=C)=>!v(o).disableWriteActions,_=(o=[])=>o.map(t=>{const n=F(t,!0),r=t.activityId;return{...n,id:r}}),g=o=>{var I,x,T,W,b;const t=o.workflowExecutionInfo.type.name,n=o.workflowExecutionInfo.execution.workflowId,r=o.workflowExecutionInfo.execution.runId,e=String(o.workflowExecutionInfo.startTime),a=String(o.workflowExecutionInfo.closeTime),i=o.workflowExecutionInfo.status,c=o.workflowExecutionInfo.status==="Running",u=o.workflowExecutionInfo.historyLength,w=`/workflows/${n}/${r}`,h=(x=(I=o==null?void 0:o.executionConfig)==null?void 0:I.taskQueue)==null?void 0:x.name,E=(T=o==null?void 0:o.workflowExecutionInfo)==null?void 0:T.parentNamespaceId,s=(W=o==null?void 0:o.workflowExecutionInfo)==null?void 0:W.parentExecution,k=o.workflowExecutionInfo.stateTransitionCount,m=(b=o.executionConfig)==null?void 0:b.defaultWorkflowTaskTimeout,P=_(o.pendingActivities),S=(o==null?void 0:o.pendingChildren)??[];return{name:t,id:n,runId:r,startTime:e,endTime:a,status:i,historyEvents:u,url:w,taskQueue:h,pendingActivities:P,pendingChildren:S,parentNamespaceId:E,parent:s,stateTransitionCount:k,isRunning:c,defaultWorkflowTaskTimeout:m,get canBeTerminated(){return c&&q()}}},A=o=>(o.executions||[]).map(t=>g({workflowExecutionInfo:t})),B=o=>window.btoa(encodeURIComponent(o).replace(/%([0-9A-F]{2})/g,(t,n)=>String.fromCharCode(parseInt(n,16)))),p=(o,t=Q)=>t?B(o):o,V=async(o,t,n=fetch)=>{let r=0,e=0;try{const a=l("workflows.count",{namespace:o});if(t){const i=f(a,{params:{query:t},onError:d,handleError:d,request:n}),c=f(a,{params:{query:""},onError:d,handleError:d,request:n}),[u,w]=await Promise.all([i,c]);e=u==null?void 0:u.count,r=w==null?void 0:w.count}else{const i=await f(a,{params:{},onError:d,handleError:d,request:n});r=i==null?void 0:i.count}}catch{}return{count:e,totalCount:r}},D=async(o,t,n=fetch,r=!1)=>{const e=t.query||$(t,r);let a;try{a=decodeURIComponent(e)}catch{a=e}const i=r?"workflows.archived":"workflows";let c="";const u=s=>{var k,m;O(s),(k=s==null?void 0:s.body)!=null&&k.message||s!=null&&s.status?c=((m=s==null?void 0:s.body)==null?void 0:m.message)??`Error fetching workflows: ${s.status}: ${s.statusText}`:c="Error fetching workflows: Server failed to respond"},w=l(i,{namespace:o}),{executions:h,nextPageToken:E}=await f(w,{params:{query:a},onError:u,handleError:u,request:n})??{executions:[],nextPageToken:""};return{workflows:A({executions:h}),nextPageToken:String(E),error:c}},X=async(o,t=fetch)=>{var u;const{namespace:n,workflowId:r}=o,a=l("workflows",{namespace:n}),{executions:i}=await f(a,{params:{query:`WorkflowId="${r}"`,pageSize:"1"},request:t})??{executions:[]},c=(u=A({executions:i}))==null?void 0:u[0];return{runId:c==null?void 0:c.runId}},Y=async(o,t=fetch,n=!1)=>{const r=n?"workflows.archived":"workflows";let e=!0;const a=c=>{(z(c)||U(c))&&(e=!1)},i=l(r,{namespace:o});return await f(i,{params:{pageSize:"1"},onError:a,handleError:a,request:t}),{authorized:e}},Z=async(o,t,n=fetch)=>D(o,t,n,!0);async function oo(o,t=fetch){const n=l("workflow",o);return f(n,{request:t}).then(g)}async function to({workflow:o,namespace:t,reason:n}){const r=l("workflow.terminate",{namespace:t,workflowId:o.id,runId:o.runId});return await f(r,{options:{method:"POST",body:y({reason:n})},shouldRetry:!1,notifyOnError:!1})}async function no({namespace:o,workflowId:t,runId:n},r=fetch){const e=l("workflow.cancel",{namespace:o,workflowId:t,runId:n});return f(e,{request:r,notifyOnError:!1,options:{method:"POST"}})}async function ro({namespace:o,workflowId:t,runId:n,signalName:r,signalInput:e}){const a=l("workflow.signal",{namespace:o,workflowId:t,runId:n});return f(a,{notifyOnError:!1,options:{method:"POST",body:y({signalName:r,input:{payloads:e?[{metadata:{encoding:p("json/plain")},data:p(e)}]:null}})}})}async function eo({namespace:o,workflowId:t,runId:n,eventId:r,reason:e}){const a=l("workflow.reset",{namespace:o,workflowId:t,runId:n}),i={workflowExecution:{workflowId:t,runId:n},workflowTaskFinishEventId:r,requestId:R(),reason:e};return f(a,{notifyOnError:!1,options:{method:"POST",body:y(i)}})}async function ao(o,t=fetch){const n=e=>{console.error(e)},r=l("workflow",o);return f(r,{request:t,onError:n,handleError:n}).then(g)}export{D as a,V as b,no as c,Y as d,Z as e,oo as f,ao as g,X as h,eo as r,ro as s,to as t,q as w}; diff --git a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.50d3ef8f.js b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.47bfe8cf.js similarity index 97% rename from ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.50d3ef8f.js rename to ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.47bfe8cf.js index 1234f7eea3..033de92c14 100644 --- a/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.50d3ef8f.js +++ b/ui/assets/local/_app/immutable/chunks/workflow-terminate-enabled.47bfe8cf.js @@ -1 +1 @@ -import{d as Q,r as ke,w as I}from"./index.deae5bd4.js";import{p as le}from"./stores.48be4ca9.js";import{a as pe,b as ge}from"./workflow-service.11be6188.js";import{s as we}from"./list-workflow-query.900ba0a0.js";import{S as se,b as ne,a as ae,C as D,D as M,E as R,j as b,g as k,F as q,ah as H,K as T,o as oe,aj as ve,G as ie,m as A,c as z,p as S,q as V,k as _,d as L,u as p,f as g,L as N,z as fe,h as re,H as ue,I as ce,J as de,A as me,w as j,x as F,y as B,ai as J,_ as K,N as Z,O as y,Y as Ce,Z as Ie,n as Oe,e as U,R as P}from"./index.a36c9cb0.js";import{I as _e}from"./icon.33859671.js";import{M as Ee}from"./menu-item.4122979b.js";import{M as Ae,a as Se,b as Ve}from"./menu.c922b8b1.js";const De=300,Me=async(s,e,l)=>{e.set(!0);try{await l()}catch(t){console.error(t)}s.set(!1),setTimeout(()=>{e.set(!1)},De)},Re=I(0),qe=Q([le],([s])=>s.params.namespace),We=Q([le],([s])=>s.url.searchParams.get("query")),ze=Q([qe,We,Re,we],([s,e,l,t])=>({namespace:s,query:e,refresh:l,supportsAdvancedVisibility:t})),Le=s=>{je.set(s)},Ne=s=>ze.subscribe(({namespace:e,query:l,supportsAdvancedVisibility:t})=>{Me(Te,Pe,async()=>{const{workflows:n,error:c}=await pe(e,{query:l});if(s(n),t){const r=await ge(e,l);Le(r)}c?X.set(c):X.set("")})}),nt=I(""),Pe=I(!0),Te=I(!0),je=I({count:0,totalCount:0}),X=I(""),at=ke([],Ne),ot=I("");function $(s){let e,l;return e=new _e({props:{name:"checkmark"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function x(s){let e,l;return{c(){e=A("span"),l=j(s[0]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var n=V(e);l=F(n,s[0]),n.forEach(_),this.h()},h(){p(e,"class","option-description svelte-opscnd")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&1&&B(l,t[0])},d(t){t&&_(e)}}}function Fe(s){let e,l,t,n,c,r,f=s[3]&&$();const a=s[10].default,o=ie(a,s,s[12],null);let i=s[0]&&x(s);return{c(){e=A("div"),f&&f.c(),l=z(),t=A("div"),n=A("span"),o&&o.c(),c=z(),i&&i.c(),this.h()},l(u){e=S(u,"DIV",{class:!0});var h=V(e);f&&f.l(h),h.forEach(_),l=L(u),t=S(u,"DIV",{class:!0});var v=V(t);n=S(v,"SPAN",{class:!0});var C=V(n);o&&o.l(C),C.forEach(_),c=L(v),i&&i.l(v),v.forEach(_),this.h()},h(){p(e,"class","mr-2 w-6"),p(n,"class","option-label svelte-opscnd"),p(t,"class","flex w-full flex-col")},m(u,h){g(u,e,h),f&&f.m(e,null),g(u,l,h),g(u,t,h),N(t,n),o&&o.m(n,null),s[11](n),N(t,c),i&&i.m(t,null),r=!0},p(u,h){u[3]?f?h&8&&b(f,1):(f=$(),f.c(),b(f,1),f.m(e,null)):f&&(fe(),k(f,1,1,()=>{f=null}),re()),o&&o.p&&(!r||h&4096)&&ue(o,a,u,u[12],r?de(a,u[12],h,null):ce(u[12]),null),u[0]?i?i.p(u,h):(i=x(u),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(u){r||(b(f),b(o,u),r=!0)},o(u){k(f),k(o,u),r=!1},d(u){u&&_(e),f&&f.d(),u&&_(l),u&&_(t),o&&o.d(u),s[11](null),i&&i.d()}}}function Be(s){let e,l;return e=new Ee({props:{class:"flex flex-row items-start",selected:s[3],dark:s[1],$$slots:{default:[Fe]},$$scope:{ctx:s}}}),e.$on("click",s[6]),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},p(t,[n]){const c={};n&8&&(c.selected=t[3]),n&2&&(c.dark=t[1]),n&4109&&(c.$$scope={dirty:n,ctx:t}),e.$set(c)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ge(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e;const f=H("select-value");T(s,f,m=>l(9,n=m));const a=H("select-change"),o=H("select-options");T(s,o,m=>l(14,t=m));let{value:i}=e,{description:u=""}=e,{dark:h=!1}=e,v=!1,C,w,O;oe(()=>{w&&(O=w.textContent,t.push({value:i,label:O}))}),ve(()=>{let m=t.findIndex(W=>W.value===i);m!==void 0&&t.splice(m,1)});const E=()=>{a(C)};function G(m){me[m?"unshift":"push"](()=>{w=m,l(2,w)})}return s.$$set=m=>{"value"in m&&l(7,i=m.value),"description"in m&&l(0,u=m.description),"dark"in m&&l(1,h=m.dark),"$$scope"in m&&l(12,r=m.$$scope)},s.$$.update=()=>{s.$$.dirty&900&&w&&(l(8,C=i??w.textContent),l(3,v=n.value===C),O=w.textContent)},[u,h,w,v,f,o,E,i,C,n,c,G,r]}class it extends se{constructor(e){super(),ne(this,e,Ge,Be,ae,{value:7,description:0,dark:1})}}function ee(s){let e,l;return{c(){e=A("label"),l=j(s[2]),this.h()},l(t){e=S(t,"LABEL",{for:!0,class:!0});var n=V(e);l=F(n,s[2]),n.forEach(_),this.h()},h(){p(e,"for",s[3]),p(e,"class","svelte-1kzttn7")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&4&&B(l,t[2]),n&8&&p(e,"for",t[3])},d(t){t&&_(e)}}}function He(s){let e=s[9].label+"",l;return{c(){l=j(e)},l(t){l=F(t,e)},m(t,n){g(t,l,n)},p(t,n){n&512&&e!==(e=t[9].label+"")&&B(l,e)},d(t){t&&_(l)}}}function Je(s){let e;return{c(){e=j(s[5])},l(l){e=F(l,s[5])},m(l,t){g(l,e,t)},p(l,t){t&32&&B(e,l[5])},d(l){l&&_(e)}}}function te(s){let e,l;return e=new _e({props:{name:"lock",class:"text-gray-500"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ke(s){let e,l,t,n;function c(o,i){return!o[0]&&o[5]!==""?Je:He}let r=c(s),f=r(s),a=s[6]&&te();return{c(){e=A("div"),f.c(),l=z(),a&&a.c(),t=U(),this.h()},l(o){e=S(o,"DIV",{class:!0,id:!0});var i=V(e);f.l(i),i.forEach(_),l=L(o),a&&a.l(o),t=U(),this.h()},h(){p(e,"class","select-input svelte-1kzttn7"),p(e,"id",s[3]),P(e,"dark",s[4]),P(e,"disabled",s[6])},m(o,i){g(o,e,i),f.m(e,null),g(o,l,i),a&&a.m(o,i),g(o,t,i),n=!0},p(o,i){r===(r=c(o))&&f?f.p(o,i):(f.d(1),f=r(o),f&&(f.c(),f.m(e,null))),(!n||i&8)&&p(e,"id",o[3]),(!n||i&16)&&P(e,"dark",o[4]),(!n||i&64)&&P(e,"disabled",o[6]),o[6]?a?i&64&&b(a,1):(a=te(),a.c(),b(a,1),a.m(t.parentNode,t)):a&&(fe(),k(a,1,1,()=>{a=null}),re())},i(o){n||(b(a),n=!0)},o(o){k(a),n=!1},d(o){o&&_(e),f.d(),o&&_(l),a&&a.d(o),o&&_(t)}}}function Qe(s){let e;const l=s[14].default,t=ie(l,s,s[16],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,c){t&&t.m(n,c),e=!0},p(n,c){t&&t.p&&(!e||c&65536)&&ue(t,l,n,n[16],e?de(l,n[16],c,null):ce(n[16]),null)},i(n){e||(b(t,n),e=!0)},o(n){k(t,n),e=!1},d(n){t&&t.d(n)}}}function Ye(s){let e,l,t,n,c;function r(a){s[15](a)}let f={hasIndicator:!s[6],class:"select-input-container "+(s[6]?"disabled":"")+" "+(s[7]?"unroundRight":""),keepOpen:s[8],controls:s[3]+"-menu",testId:s[12].testId,dark:s[4],disabled:s[6],$$slots:{default:[Ke]},$$scope:{ctx:s}};return s[1]!==void 0&&(f.show=s[1]),e=new Se({props:f}),me.push(()=>Ce(e,"show",r)),n=new Ve({props:{id:s[3]+"-menu",class:"h-auto max-h-96 min-w-fit",show:s[1],dark:s[4],$$slots:{default:[Qe]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),t=z(),D(n.$$.fragment)},l(a){M(e.$$.fragment,a),t=L(a),M(n.$$.fragment,a)},m(a,o){R(e,a,o),g(a,t,o),R(n,a,o),c=!0},p(a,o){const i={};o&64&&(i.hasIndicator=!a[6]),o&192&&(i.class="select-input-container "+(a[6]?"disabled":"")+" "+(a[7]?"unroundRight":"")),o&256&&(i.keepOpen=a[8]),o&8&&(i.controls=a[3]+"-menu"),o&4096&&(i.testId=a[12].testId),o&16&&(i.dark=a[4]),o&64&&(i.disabled=a[6]),o&66169&&(i.$$scope={dirty:o,ctx:a}),!l&&o&2&&(l=!0,i.show=a[1],Ie(()=>l=!1)),e.$set(i);const u={};o&8&&(u.id=a[3]+"-menu"),o&2&&(u.show=a[1]),o&16&&(u.dark=a[4]),o&65536&&(u.$$scope={dirty:o,ctx:a}),n.$set(u)},i(a){c||(b(e.$$.fragment,a),b(n.$$.fragment,a),c=!0)},o(a){k(e.$$.fragment,a),k(n.$$.fragment,a),c=!1},d(a){q(e,a),a&&_(t),q(n,a)}}}function Ze(s){let e,l,t,n,c,r=s[2]&&ee(s);return t=new Ae({props:{class:"w-full",$$slots:{default:[Ye]},$$scope:{ctx:s}}}),{c(){e=A("div"),r&&r.c(),l=z(),D(t.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var a=V(e);r&&r.l(a),l=L(a),M(t.$$.fragment,a),a.forEach(_),this.h()},h(){p(e,"class",n="select "+s[12].class+" svelte-1kzttn7")},m(f,a){g(f,e,a),r&&r.m(e,null),N(e,l),R(t,e,null),c=!0},p(f,[a]){f[2]?r?r.p(f,a):(r=ee(f),r.c(),r.m(e,l)):r&&(r.d(1),r=null);const o={};a&70651&&(o.$$scope={dirty:a,ctx:f}),t.$set(o),(!c||a&4096&&n!==(n="select "+f[12].class+" svelte-1kzttn7"))&&p(e,"class",n)},i(f){c||(b(t.$$.fragment,f),c=!0)},o(f){k(t.$$.fragment,f),c=!1},d(f){f&&_(e),r&&r.d(),q(t)}}}function ye(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e,{show:f=!1}=e,{label:a=""}=e,{id:o}=e,{value:i=void 0}=e,{dark:u=!1}=e,{placeholder:h=""}=e,{disabled:v=!1}=e,{unroundRight:C=!1}=e,{keepOpen:w=!1}=e,{onChange:O=Oe}=e;const E=I({value:i,label:i==null?void 0:i.toString(),onChange:O});T(s,E,d=>l(9,t=d));const G=d=>{l(0,i=d),O(i)};function m(d){let Y=n.find(be=>be.value===d);if(Y!==void 0)return Y.label}const W=I([]);T(s,W,d=>l(17,n=d)),J("select-value",E),J("select-change",G),J("select-options",W),oe(()=>{K(E,t.label=m(i),t)});function he(d){f=d,l(1,f)}return s.$$set=d=>{l(12,e=Z(Z({},e),y(d))),"show"in d&&l(1,f=d.show),"label"in d&&l(2,a=d.label),"id"in d&&l(3,o=d.id),"value"in d&&l(0,i=d.value),"dark"in d&&l(4,u=d.dark),"placeholder"in d&&l(5,h=d.placeholder),"disabled"in d&&l(6,v=d.disabled),"unroundRight"in d&&l(7,C=d.unroundRight),"keepOpen"in d&&l(8,w=d.keepOpen),"onChange"in d&&l(13,O=d.onChange),"$$scope"in d&&l(16,r=d.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&(K(E,t.value=i,t),K(E,t.label=m(i),t))},e=y(e),[i,f,a,o,u,h,v,C,w,t,E,W,e,O,c,he,r]}class ft extends se{constructor(e){super(),ne(this,e,ye,Ze,ae,{show:1,label:2,id:3,value:0,dark:4,placeholder:5,disabled:6,unroundRight:7,keepOpen:8,onChange:13})}}const rt=s=>!s.disableWriteActions&&!s.workflowCancelDisabled,ut=s=>!s.disableWriteActions&&!s.workflowTerminateDisabled;export{it as O,ft as S,ut as a,nt as b,at as c,X as d,je as e,ot as f,Te as l,Re as r,Pe as u,rt as w}; +import{d as Q,r as ke,w as I}from"./index.deae5bd4.js";import{p as le}from"./stores.4d55fa19.js";import{a as pe,b as ge}from"./workflow-service.a6d60dde.js";import{s as we}from"./list-workflow-query.11f239c5.js";import{S as se,b as ne,a as ae,C as D,D as M,E as R,j as b,g as k,F as q,ah as H,K as T,o as oe,aj as ve,G as ie,m as A,c as z,p as S,q as V,k as _,d as L,u as p,f as g,L as N,z as fe,h as re,H as ue,I as ce,J as de,A as me,w as j,x as F,y as B,ai as J,_ as K,N as Z,O as y,Y as Ce,Z as Ie,n as Oe,e as U,R as P}from"./index.a36c9cb0.js";import{I as _e}from"./icon.33859671.js";import{M as Ee}from"./menu-item.4122979b.js";import{M as Ae,a as Se,b as Ve}from"./menu.c922b8b1.js";const De=300,Me=async(s,e,l)=>{e.set(!0);try{await l()}catch(t){console.error(t)}s.set(!1),setTimeout(()=>{e.set(!1)},De)},Re=I(0),qe=Q([le],([s])=>s.params.namespace),We=Q([le],([s])=>s.url.searchParams.get("query")),ze=Q([qe,We,Re,we],([s,e,l,t])=>({namespace:s,query:e,refresh:l,supportsAdvancedVisibility:t})),Le=s=>{je.set(s)},Ne=s=>ze.subscribe(({namespace:e,query:l,supportsAdvancedVisibility:t})=>{Me(Te,Pe,async()=>{const{workflows:n,error:c}=await pe(e,{query:l});if(s(n),t){const r=await ge(e,l);Le(r)}c?X.set(c):X.set("")})}),nt=I(""),Pe=I(!0),Te=I(!0),je=I({count:0,totalCount:0}),X=I(""),at=ke([],Ne),ot=I("");function $(s){let e,l;return e=new _e({props:{name:"checkmark"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function x(s){let e,l;return{c(){e=A("span"),l=j(s[0]),this.h()},l(t){e=S(t,"SPAN",{class:!0});var n=V(e);l=F(n,s[0]),n.forEach(_),this.h()},h(){p(e,"class","option-description svelte-opscnd")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&1&&B(l,t[0])},d(t){t&&_(e)}}}function Fe(s){let e,l,t,n,c,r,f=s[3]&&$();const a=s[10].default,o=ie(a,s,s[12],null);let i=s[0]&&x(s);return{c(){e=A("div"),f&&f.c(),l=z(),t=A("div"),n=A("span"),o&&o.c(),c=z(),i&&i.c(),this.h()},l(u){e=S(u,"DIV",{class:!0});var h=V(e);f&&f.l(h),h.forEach(_),l=L(u),t=S(u,"DIV",{class:!0});var v=V(t);n=S(v,"SPAN",{class:!0});var C=V(n);o&&o.l(C),C.forEach(_),c=L(v),i&&i.l(v),v.forEach(_),this.h()},h(){p(e,"class","mr-2 w-6"),p(n,"class","option-label svelte-opscnd"),p(t,"class","flex w-full flex-col")},m(u,h){g(u,e,h),f&&f.m(e,null),g(u,l,h),g(u,t,h),N(t,n),o&&o.m(n,null),s[11](n),N(t,c),i&&i.m(t,null),r=!0},p(u,h){u[3]?f?h&8&&b(f,1):(f=$(),f.c(),b(f,1),f.m(e,null)):f&&(fe(),k(f,1,1,()=>{f=null}),re()),o&&o.p&&(!r||h&4096)&&ue(o,a,u,u[12],r?de(a,u[12],h,null):ce(u[12]),null),u[0]?i?i.p(u,h):(i=x(u),i.c(),i.m(t,null)):i&&(i.d(1),i=null)},i(u){r||(b(f),b(o,u),r=!0)},o(u){k(f),k(o,u),r=!1},d(u){u&&_(e),f&&f.d(),u&&_(l),u&&_(t),o&&o.d(u),s[11](null),i&&i.d()}}}function Be(s){let e,l;return e=new Ee({props:{class:"flex flex-row items-start",selected:s[3],dark:s[1],$$slots:{default:[Fe]},$$scope:{ctx:s}}}),e.$on("click",s[6]),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},p(t,[n]){const c={};n&8&&(c.selected=t[3]),n&2&&(c.dark=t[1]),n&4109&&(c.$$scope={dirty:n,ctx:t}),e.$set(c)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ge(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e;const f=H("select-value");T(s,f,m=>l(9,n=m));const a=H("select-change"),o=H("select-options");T(s,o,m=>l(14,t=m));let{value:i}=e,{description:u=""}=e,{dark:h=!1}=e,v=!1,C,w,O;oe(()=>{w&&(O=w.textContent,t.push({value:i,label:O}))}),ve(()=>{let m=t.findIndex(W=>W.value===i);m!==void 0&&t.splice(m,1)});const E=()=>{a(C)};function G(m){me[m?"unshift":"push"](()=>{w=m,l(2,w)})}return s.$$set=m=>{"value"in m&&l(7,i=m.value),"description"in m&&l(0,u=m.description),"dark"in m&&l(1,h=m.dark),"$$scope"in m&&l(12,r=m.$$scope)},s.$$.update=()=>{s.$$.dirty&900&&w&&(l(8,C=i??w.textContent),l(3,v=n.value===C),O=w.textContent)},[u,h,w,v,f,o,E,i,C,n,c,G,r]}class it extends se{constructor(e){super(),ne(this,e,Ge,Be,ae,{value:7,description:0,dark:1})}}function ee(s){let e,l;return{c(){e=A("label"),l=j(s[2]),this.h()},l(t){e=S(t,"LABEL",{for:!0,class:!0});var n=V(e);l=F(n,s[2]),n.forEach(_),this.h()},h(){p(e,"for",s[3]),p(e,"class","svelte-1kzttn7")},m(t,n){g(t,e,n),N(e,l)},p(t,n){n&4&&B(l,t[2]),n&8&&p(e,"for",t[3])},d(t){t&&_(e)}}}function He(s){let e=s[9].label+"",l;return{c(){l=j(e)},l(t){l=F(t,e)},m(t,n){g(t,l,n)},p(t,n){n&512&&e!==(e=t[9].label+"")&&B(l,e)},d(t){t&&_(l)}}}function Je(s){let e;return{c(){e=j(s[5])},l(l){e=F(l,s[5])},m(l,t){g(l,e,t)},p(l,t){t&32&&B(e,l[5])},d(l){l&&_(e)}}}function te(s){let e,l;return e=new _e({props:{name:"lock",class:"text-gray-500"}}),{c(){D(e.$$.fragment)},l(t){M(e.$$.fragment,t)},m(t,n){R(e,t,n),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){k(e.$$.fragment,t),l=!1},d(t){q(e,t)}}}function Ke(s){let e,l,t,n;function c(o,i){return!o[0]&&o[5]!==""?Je:He}let r=c(s),f=r(s),a=s[6]&&te();return{c(){e=A("div"),f.c(),l=z(),a&&a.c(),t=U(),this.h()},l(o){e=S(o,"DIV",{class:!0,id:!0});var i=V(e);f.l(i),i.forEach(_),l=L(o),a&&a.l(o),t=U(),this.h()},h(){p(e,"class","select-input svelte-1kzttn7"),p(e,"id",s[3]),P(e,"dark",s[4]),P(e,"disabled",s[6])},m(o,i){g(o,e,i),f.m(e,null),g(o,l,i),a&&a.m(o,i),g(o,t,i),n=!0},p(o,i){r===(r=c(o))&&f?f.p(o,i):(f.d(1),f=r(o),f&&(f.c(),f.m(e,null))),(!n||i&8)&&p(e,"id",o[3]),(!n||i&16)&&P(e,"dark",o[4]),(!n||i&64)&&P(e,"disabled",o[6]),o[6]?a?i&64&&b(a,1):(a=te(),a.c(),b(a,1),a.m(t.parentNode,t)):a&&(fe(),k(a,1,1,()=>{a=null}),re())},i(o){n||(b(a),n=!0)},o(o){k(a),n=!1},d(o){o&&_(e),f.d(),o&&_(l),a&&a.d(o),o&&_(t)}}}function Qe(s){let e;const l=s[14].default,t=ie(l,s,s[16],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,c){t&&t.m(n,c),e=!0},p(n,c){t&&t.p&&(!e||c&65536)&&ue(t,l,n,n[16],e?de(l,n[16],c,null):ce(n[16]),null)},i(n){e||(b(t,n),e=!0)},o(n){k(t,n),e=!1},d(n){t&&t.d(n)}}}function Ye(s){let e,l,t,n,c;function r(a){s[15](a)}let f={hasIndicator:!s[6],class:"select-input-container "+(s[6]?"disabled":"")+" "+(s[7]?"unroundRight":""),keepOpen:s[8],controls:s[3]+"-menu",testId:s[12].testId,dark:s[4],disabled:s[6],$$slots:{default:[Ke]},$$scope:{ctx:s}};return s[1]!==void 0&&(f.show=s[1]),e=new Se({props:f}),me.push(()=>Ce(e,"show",r)),n=new Ve({props:{id:s[3]+"-menu",class:"h-auto max-h-96 min-w-fit",show:s[1],dark:s[4],$$slots:{default:[Qe]},$$scope:{ctx:s}}}),{c(){D(e.$$.fragment),t=z(),D(n.$$.fragment)},l(a){M(e.$$.fragment,a),t=L(a),M(n.$$.fragment,a)},m(a,o){R(e,a,o),g(a,t,o),R(n,a,o),c=!0},p(a,o){const i={};o&64&&(i.hasIndicator=!a[6]),o&192&&(i.class="select-input-container "+(a[6]?"disabled":"")+" "+(a[7]?"unroundRight":"")),o&256&&(i.keepOpen=a[8]),o&8&&(i.controls=a[3]+"-menu"),o&4096&&(i.testId=a[12].testId),o&16&&(i.dark=a[4]),o&64&&(i.disabled=a[6]),o&66169&&(i.$$scope={dirty:o,ctx:a}),!l&&o&2&&(l=!0,i.show=a[1],Ie(()=>l=!1)),e.$set(i);const u={};o&8&&(u.id=a[3]+"-menu"),o&2&&(u.show=a[1]),o&16&&(u.dark=a[4]),o&65536&&(u.$$scope={dirty:o,ctx:a}),n.$set(u)},i(a){c||(b(e.$$.fragment,a),b(n.$$.fragment,a),c=!0)},o(a){k(e.$$.fragment,a),k(n.$$.fragment,a),c=!1},d(a){q(e,a),a&&_(t),q(n,a)}}}function Ze(s){let e,l,t,n,c,r=s[2]&&ee(s);return t=new Ae({props:{class:"w-full",$$slots:{default:[Ye]},$$scope:{ctx:s}}}),{c(){e=A("div"),r&&r.c(),l=z(),D(t.$$.fragment),this.h()},l(f){e=S(f,"DIV",{class:!0});var a=V(e);r&&r.l(a),l=L(a),M(t.$$.fragment,a),a.forEach(_),this.h()},h(){p(e,"class",n="select "+s[12].class+" svelte-1kzttn7")},m(f,a){g(f,e,a),r&&r.m(e,null),N(e,l),R(t,e,null),c=!0},p(f,[a]){f[2]?r?r.p(f,a):(r=ee(f),r.c(),r.m(e,l)):r&&(r.d(1),r=null);const o={};a&70651&&(o.$$scope={dirty:a,ctx:f}),t.$set(o),(!c||a&4096&&n!==(n="select "+f[12].class+" svelte-1kzttn7"))&&p(e,"class",n)},i(f){c||(b(t.$$.fragment,f),c=!0)},o(f){k(t.$$.fragment,f),c=!1},d(f){f&&_(e),r&&r.d(),q(t)}}}function ye(s,e,l){let t,n,{$$slots:c={},$$scope:r}=e,{show:f=!1}=e,{label:a=""}=e,{id:o}=e,{value:i=void 0}=e,{dark:u=!1}=e,{placeholder:h=""}=e,{disabled:v=!1}=e,{unroundRight:C=!1}=e,{keepOpen:w=!1}=e,{onChange:O=Oe}=e;const E=I({value:i,label:i==null?void 0:i.toString(),onChange:O});T(s,E,d=>l(9,t=d));const G=d=>{l(0,i=d),O(i)};function m(d){let Y=n.find(be=>be.value===d);if(Y!==void 0)return Y.label}const W=I([]);T(s,W,d=>l(17,n=d)),J("select-value",E),J("select-change",G),J("select-options",W),oe(()=>{K(E,t.label=m(i),t)});function he(d){f=d,l(1,f)}return s.$$set=d=>{l(12,e=Z(Z({},e),y(d))),"show"in d&&l(1,f=d.show),"label"in d&&l(2,a=d.label),"id"in d&&l(3,o=d.id),"value"in d&&l(0,i=d.value),"dark"in d&&l(4,u=d.dark),"placeholder"in d&&l(5,h=d.placeholder),"disabled"in d&&l(6,v=d.disabled),"unroundRight"in d&&l(7,C=d.unroundRight),"keepOpen"in d&&l(8,w=d.keepOpen),"onChange"in d&&l(13,O=d.onChange),"$$scope"in d&&l(16,r=d.$$scope)},s.$$.update=()=>{s.$$.dirty&1&&(K(E,t.value=i,t),K(E,t.label=m(i),t))},e=y(e),[i,f,a,o,u,h,v,C,w,t,E,W,e,O,c,he,r]}class ft extends se{constructor(e){super(),ne(this,e,ye,Ze,ae,{show:1,label:2,id:3,value:0,dark:4,placeholder:5,disabled:6,unroundRight:7,keepOpen:8,onChange:13})}}const rt=s=>!s.disableWriteActions&&!s.workflowCancelDisabled,ut=s=>!s.disableWriteActions&&!s.workflowTerminateDisabled;export{it as O,ft as S,ut as a,nt as b,at as c,X as d,je as e,ot as f,Te as l,Re as r,Pe as u,rt as w}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.f8c5ca87.js b/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.e1c96b62.js similarity index 76% rename from ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.f8c5ca87.js rename to ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.e1c96b62.js index 85abafb1ad..60acee6b2b 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.f8c5ca87.js +++ b/ui/assets/local/_app/immutable/entry/(app)-data-converter-_port_-page.svelte.e1c96b62.js @@ -1 +1 @@ -import{S as r,b as n,a as p,K as m,o as u}from"../chunks/index.a36c9cb0.js";import{g as c}from"../chunks/navigation.724a9b89.js";import{p as i}from"../chunks/stores.48be4ca9.js";import{t as l}from"../chunks/toaster.16c48a98.js";import{d as f}from"../chunks/data-converter-config.28d58945.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;f.set(t),c("/",{replaceState:!0}),l.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.a36c9cb0.js";import{g as c}from"../chunks/navigation.0861544c.js";import{p as i}from"../chunks/stores.4d55fa19.js";import{t as l}from"../chunks/toaster.16c48a98.js";import{d as f}from"../chunks/data-converter-config.28d58945.js";function g(e,o,a){let s;return m(e,i,t=>a(0,s=t)),u(()=>{let{port:t}=s.params;f.set(t),c("/",{replaceState:!0}),l.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.36c10683.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.3d7cbc03.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.36c10683.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.3d7cbc03.js index a7bb384f5c..b6ab8d7a96 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.36c10683.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.3d7cbc03.js @@ -1 +1 @@ -import{S,b as G,a as P,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as N,e as g,f as C,z as y,a1 as j,h as b,k as F,a2 as q}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.7cea9c5f.js";import{a as z}from"../chunks/import-events.8d158e6c.js";import{E as D,a as K,b as M}from"../chunks/event-empty-row.844d84b4.js";import{P as B}from"../chunks/pagination.4cd37fec.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.2b30fe96.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new K({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new M({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,z,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){N(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),G(this,t,R,Q,P,{})}}export{x as default}; +import{S,b as G,a as P,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as N,e as g,f as C,z as y,a1 as j,h as b,k as F,a2 as q}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.65b9baf3.js";import{a as z}from"../chunks/import-events.8d158e6c.js";import{E as D,a as K,b as M}from"../chunks/event-empty-row.0657830c.js";import{P as B}from"../chunks/pagination.6f9a2b9c.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.f7fa907d.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new K({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new M({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!0;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,z,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){N(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),G(this,t,R,Q,P,{})}}export{x as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.e6d38d0c.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.cd526e60.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.e6d38d0c.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.cd526e60.js index 7d34a8f31b..2209d4fe98 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.e6d38d0c.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.cd526e60.js @@ -1 +1 @@ -import{S,b as P,a as N,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as j,e as g,f as C,z as y,a1 as q,h as b,k as F,a2 as z}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.7cea9c5f.js";import{i as D}from"../chunks/import-events.8d158e6c.js";import{E as K,a as M,b as B}from"../chunks/event-empty-row.844d84b4.js";import{P as G}from"../chunks/pagination.4cd37fec.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.2b30fe96.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new B({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,D,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){j(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),P(this,t,R,Q,N,{})}}export{x as default}; +import{S,b as P,a as N,C as $,D as h,E as d,j as c,g as p,F as v,K as _,_ as j,e as g,f as C,z as y,a1 as q,h as b,k as F,a2 as z}from"../chunks/index.a36c9cb0.js";import"../chunks/singletons.65b9baf3.js";import{i as D}from"../chunks/import-events.8d158e6c.js";import{E as K,a as M,b as B}from"../chunks/event-empty-row.0657830c.js";import{P as G}from"../chunks/pagination.6f9a2b9c.js";import{b as E,e as H}from"../chunks/event-view.f557cd63.js";import{e as J}from"../chunks/filters.f7fa907d.js";function k(i,t,r){const e=i.slice();return e[10]=t[r],e}function w(i){let t,r;return t=new M({}),{c(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(t,e,o),r=!0},i(e){r||(c(t.$$.fragment,e),r=!0)},o(e){p(t.$$.fragment,e),r=!1},d(e){v(t,e)}}}function A(i,t){let r,e,o;return e=new B({props:{event:t[10],compact:I,expandAll:t[1]==="true",initialItem:t[9],visibleItems:t[8]}}),{key:i,first:null,c(){r=g(),$(e.$$.fragment),this.h()},l(n){r=g(),h(e.$$.fragment,n),this.h()},h(){this.first=r},m(n,f){C(n,r,f),d(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]),f&256&&(s.visibleItems=t[8]),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),v(e,n)}}}function L(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}),b()):s||(s=w(),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(){$(t.$$.fragment)},l(e){h(t.$$.fragment,e)},m(e,o){d(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){v(t,e)}}}let I=!1;function R(i,t,r){let e,o,n,f,s,a,l;_(i,E,m=>r(1,f=m)),_(i,D,m=>r(5,s=m)),_(i,H,m=>r(6,a=m)),_(i,J,m=>r(7,l=m));function u(m){j(E,f=m.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(m=>e?m.category===e:m))},[n,f,u,e,o,s,a,l]}class x extends S{constructor(t){super(),P(this,t,R,Q,N,{})}}export{x as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4f0ef61e.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.8f3cea98.js similarity index 93% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4f0ef61e.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.8f3cea98.js index 1c34f8bcbb..529bac97a3 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.4f0ef61e.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.8f3cea98.js @@ -1 +1 @@ -import{S as K,b as z,a as B,G as M,m as E,w as J,c as y,C as T,p as I,q as N,x as O,k as c,d as D,D as C,u as g,f as V,L as d,E as H,H as P,I as Q,J as R,j as v,g as h,F as S,K as W}from"../chunks/index.a36c9cb0.js";import{d as j}from"../chunks/route-for.6dec3e74.js";import{T as X,a as F}from"../chunks/toggle-buttons.dc1431b3.js";import{E as Y}from"../chunks/event-history-file-import.a9e20a3c.js";import{l as Z}from"../chunks/namespaces.85dd7810.js";function x(o){let e;return{c(){e=J("Timeline")},l(s){e=O(s,"Timeline")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function ee(o){let e;return{c(){e=J("Compact")},l(s){e=O(s,"Compact")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function te(o){let e;return{c(){e=J("JSON")},l(s){e=O(s,"JSON")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function se(o){let e,s,t,a,r,i;return e=new F({props:{icon:"feed",href:j(o[0],"feed"),$$slots:{default:[x]},$$scope:{ctx:o}}}),t=new F({props:{icon:"compact",href:j(o[0],"compact"),$$slots:{default:[ee]},$$scope:{ctx:o}}}),r=new F({props:{icon:"json",href:j(o[0],"json"),$$slots:{default:[te]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment),s=y(),T(t.$$.fragment),a=y(),T(r.$$.fragment)},l(n){C(e.$$.fragment,n),s=D(n),C(t.$$.fragment,n),a=D(n),C(r.$$.fragment,n)},m(n,f){H(e,n,f),V(n,s,f),H(t,n,f),V(n,a,f),H(r,n,f),i=!0},p(n,f){const p={};f&1&&(p.href=j(n[0],"feed")),f&4&&(p.$$scope={dirty:f,ctx:n}),e.$set(p);const _={};f&1&&(_.href=j(n[0],"compact")),f&4&&(_.$$scope={dirty:f,ctx:n}),t.$set(_);const m={};f&1&&(m.href=j(n[0],"json")),f&4&&(m.$$scope={dirty:f,ctx:n}),r.$set(m)},i(n){i||(v(e.$$.fragment,n),v(t.$$.fragment,n),v(r.$$.fragment,n),i=!0)},o(n){h(e.$$.fragment,n),h(t.$$.fragment,n),h(r.$$.fragment,n),i=!1},d(n){S(e,n),n&&c(s),S(t,n),n&&c(a),S(r,n)}}}function ne(o){let e,s,t,a,r,i,n,f,p,_,m,q,w;n=new Y({}),m=new X({props:{$$slots:{default:[se]},$$scope:{ctx:o}}});const A=o[1].default,$=M(A,o,o[2],null);return{c(){e=E("section"),s=E("nav"),t=E("h3"),a=J("Import Event History"),r=y(),i=E("div"),T(n.$$.fragment),f=y(),p=E("nav"),_=E("div"),T(m.$$.fragment),q=y(),$&&$.c(),this.h()},l(l){e=I(l,"SECTION",{id:!0});var u=N(e);s=I(u,"NAV",{class:!0,"aria-label":!0});var b=N(s);t=I(b,"H3",{class:!0});var L=N(t);a=O(L,"Import Event History"),L.forEach(c),r=D(b),i=I(b,"DIV",{class:!0});var U=N(i);C(n.$$.fragment,U),U.forEach(c),b.forEach(c),f=D(u),p=I(u,"NAV",{class:!0,"aria-label":!0});var k=N(p);_=I(k,"DIV",{id:!0,class:!0});var G=N(_);C(m.$$.fragment,G),G.forEach(c),k.forEach(c),q=D(u),$&&$.l(u),u.forEach(c),this.h()},h(){g(t,"class","text-lg font-medium"),g(i,"class","flex gap-4"),g(s,"class","flex items-end justify-between gap-4 pb-4"),g(s,"aria-label","import event history"),g(_,"id","event-view-toggle"),g(_,"class","flex gap-4 bg-white"),g(p,"class","my-4 flex items-end justify-end gap-4"),g(p,"aria-label","event history view"),g(e,"id","event-history")},m(l,u){V(l,e,u),d(e,s),d(s,t),d(t,a),d(s,r),d(s,i),H(n,i,null),d(e,f),d(e,p),d(p,_),H(m,_,null),d(e,q),$&&$.m(e,null),w=!0},p(l,[u]){const b={};u&5&&(b.$$scope={dirty:u,ctx:l}),m.$set(b),$&&$.p&&(!w||u&4)&&P($,A,l,l[2],w?R(A,l[2],u,null):Q(l[2]),null)},i(l){w||(v(n.$$.fragment,l),v(m.$$.fragment,l),v($,l),w=!0)},o(l){h(n.$$.fragment,l),h(m.$$.fragment,l),h($,l),w=!1},d(l){l&&c(e),S(n),S(m),$&&$.d(l)}}}function ae(o,e,s){let t;W(o,Z,i=>s(0,t=i));let{$$slots:a={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[t,a,r]}class oe extends K{constructor(e){super(),z(this,e,ae,ne,B,{})}}function re(o){let e;const s=o[0].default,t=M(s,o,o[1],null);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,r){t&&t.m(a,r),e=!0},p(a,r){t&&t.p&&(!e||r&2)&&P(t,s,a,a[1],e?R(s,a[1],r,null):Q(a[1]),null)},i(a){e||(v(t,a),e=!0)},o(a){h(t,a),e=!1},d(a){t&&t.d(a)}}}function le(o){let e,s;return e=new oe({props:{$$slots:{default:[re]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,a){H(e,t,a),s=!0},p(t,[a]){const r={};a&2&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){S(e,t)}}}function fe(o,e,s){let{$$slots:t={},$$scope:a}=e;return o.$$set=r=>{"$$scope"in r&&s(1,a=r.$$scope)},[t,a]}class pe extends K{constructor(e){super(),z(this,e,fe,le,B,{})}}export{pe as default}; +import{S as K,b as z,a as B,G as M,m as E,w as J,c as y,C as T,p as I,q as N,x as O,k as c,d as D,D as C,u as g,f as V,L as d,E as H,H as P,I as Q,J as R,j as v,g as h,F as S,K as W}from"../chunks/index.a36c9cb0.js";import{d as j}from"../chunks/route-for.e1b7889c.js";import{T as X,a as F}from"../chunks/toggle-buttons.9513a782.js";import{E as Y}from"../chunks/event-history-file-import.a9e077a9.js";import{l as Z}from"../chunks/namespaces.85dd7810.js";function x(o){let e;return{c(){e=J("Timeline")},l(s){e=O(s,"Timeline")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function ee(o){let e;return{c(){e=J("Compact")},l(s){e=O(s,"Compact")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function te(o){let e;return{c(){e=J("JSON")},l(s){e=O(s,"JSON")},m(s,t){V(s,e,t)},d(s){s&&c(e)}}}function se(o){let e,s,t,a,r,i;return e=new F({props:{icon:"feed",href:j(o[0],"feed"),$$slots:{default:[x]},$$scope:{ctx:o}}}),t=new F({props:{icon:"compact",href:j(o[0],"compact"),$$slots:{default:[ee]},$$scope:{ctx:o}}}),r=new F({props:{icon:"json",href:j(o[0],"json"),$$slots:{default:[te]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment),s=y(),T(t.$$.fragment),a=y(),T(r.$$.fragment)},l(n){C(e.$$.fragment,n),s=D(n),C(t.$$.fragment,n),a=D(n),C(r.$$.fragment,n)},m(n,f){H(e,n,f),V(n,s,f),H(t,n,f),V(n,a,f),H(r,n,f),i=!0},p(n,f){const p={};f&1&&(p.href=j(n[0],"feed")),f&4&&(p.$$scope={dirty:f,ctx:n}),e.$set(p);const _={};f&1&&(_.href=j(n[0],"compact")),f&4&&(_.$$scope={dirty:f,ctx:n}),t.$set(_);const m={};f&1&&(m.href=j(n[0],"json")),f&4&&(m.$$scope={dirty:f,ctx:n}),r.$set(m)},i(n){i||(v(e.$$.fragment,n),v(t.$$.fragment,n),v(r.$$.fragment,n),i=!0)},o(n){h(e.$$.fragment,n),h(t.$$.fragment,n),h(r.$$.fragment,n),i=!1},d(n){S(e,n),n&&c(s),S(t,n),n&&c(a),S(r,n)}}}function ne(o){let e,s,t,a,r,i,n,f,p,_,m,q,w;n=new Y({}),m=new X({props:{$$slots:{default:[se]},$$scope:{ctx:o}}});const A=o[1].default,$=M(A,o,o[2],null);return{c(){e=E("section"),s=E("nav"),t=E("h3"),a=J("Import Event History"),r=y(),i=E("div"),T(n.$$.fragment),f=y(),p=E("nav"),_=E("div"),T(m.$$.fragment),q=y(),$&&$.c(),this.h()},l(l){e=I(l,"SECTION",{id:!0});var u=N(e);s=I(u,"NAV",{class:!0,"aria-label":!0});var b=N(s);t=I(b,"H3",{class:!0});var L=N(t);a=O(L,"Import Event History"),L.forEach(c),r=D(b),i=I(b,"DIV",{class:!0});var U=N(i);C(n.$$.fragment,U),U.forEach(c),b.forEach(c),f=D(u),p=I(u,"NAV",{class:!0,"aria-label":!0});var k=N(p);_=I(k,"DIV",{id:!0,class:!0});var G=N(_);C(m.$$.fragment,G),G.forEach(c),k.forEach(c),q=D(u),$&&$.l(u),u.forEach(c),this.h()},h(){g(t,"class","text-lg font-medium"),g(i,"class","flex gap-4"),g(s,"class","flex items-end justify-between gap-4 pb-4"),g(s,"aria-label","import event history"),g(_,"id","event-view-toggle"),g(_,"class","flex gap-4 bg-white"),g(p,"class","my-4 flex items-end justify-end gap-4"),g(p,"aria-label","event history view"),g(e,"id","event-history")},m(l,u){V(l,e,u),d(e,s),d(s,t),d(t,a),d(s,r),d(s,i),H(n,i,null),d(e,f),d(e,p),d(p,_),H(m,_,null),d(e,q),$&&$.m(e,null),w=!0},p(l,[u]){const b={};u&5&&(b.$$scope={dirty:u,ctx:l}),m.$set(b),$&&$.p&&(!w||u&4)&&P($,A,l,l[2],w?R(A,l[2],u,null):Q(l[2]),null)},i(l){w||(v(n.$$.fragment,l),v(m.$$.fragment,l),v($,l),w=!0)},o(l){h(n.$$.fragment,l),h(m.$$.fragment,l),h($,l),w=!1},d(l){l&&c(e),S(n),S(m),$&&$.d(l)}}}function ae(o,e,s){let t;W(o,Z,i=>s(0,t=i));let{$$slots:a={},$$scope:r}=e;return o.$$set=i=>{"$$scope"in i&&s(2,r=i.$$scope)},[t,a,r]}class oe extends K{constructor(e){super(),z(this,e,ae,ne,B,{})}}function re(o){let e;const s=o[0].default,t=M(s,o,o[1],null);return{c(){t&&t.c()},l(a){t&&t.l(a)},m(a,r){t&&t.m(a,r),e=!0},p(a,r){t&&t.p&&(!e||r&2)&&P(t,s,a,a[1],e?R(s,a[1],r,null):Q(a[1]),null)},i(a){e||(v(t,a),e=!0)},o(a){h(t,a),e=!1},d(a){t&&t.d(a)}}}function le(o){let e,s;return e=new oe({props:{$$slots:{default:[re]},$$scope:{ctx:o}}}),{c(){T(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,a){H(e,t,a),s=!0},p(t,[a]){const r={};a&2&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){s||(v(e.$$.fragment,t),s=!0)},o(t){h(e.$$.fragment,t),s=!1},d(t){S(e,t)}}}function fe(o,e,s){let{$$slots:t={},$$scope:a}=e;return o.$$set=r=>{"$$scope"in r&&s(1,a=r.$$scope)},[t,a]}class pe extends K{constructor(e){super(),z(this,e,fe,le,B,{})}}export{pe as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.7688275b.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.7688275b.js new file mode 100644 index 0000000000..c8f09c549c --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.7688275b.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.dc44871d.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.dca537ce.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.dca537ce.js deleted file mode 100644 index a3130bfd0e..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-_namespace_-_workflow_-_run_-history-page.ts.dca537ce.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.406e9187.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.1941c7ec.js b/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.2f02ee77.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.1941c7ec.js rename to ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.2f02ee77.js index 12b780aff2..9688e44c7e 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.1941c7ec.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-events-page.svelte.2f02ee77.js @@ -1 +1 @@ -import{S as X,b as Y,a as Z,m as c,w as j,c as w,C as k,p as m,q as f,x as q,k as i,d as H,D as V,u as o,f as tt,L as s,E as C,j as D,g as S,F as N,n as et}from"../chunks/index.a36c9cb0.js";import{E as rt}from"../chunks/event-history-file-import.a9e20a3c.js";import{C as W}from"../chunks/code-block.2cc5a38d.js";import{L as at}from"../chunks/link.855bf830.js";function st($){let t;return{c(){t=j("View in Github")},l(e){t=q(e,"View in Github")},m(e,r){tt(e,t,r)},d(e){e&&i(t)}}}function nt($){let t,e,r,I,G,E,v,J,n,b,A,F,y,d,P,x,T,z,p,h,B,g,O;return v=new rt({}),d=new at({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[st]},$$scope:{ctx:$}}}),h=new W({props:{content:$[0],inline:!0}}),g=new W({props:{content:ot,inline:!0}}),{c(){t=c("section"),e=c("nav"),r=c("h1"),I=j("Import Event History"),G=w(),E=c("div"),k(v.$$.fragment),J=w(),n=c("div"),b=c("code"),A=j("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),F=w(),y=c("div"),k(d.$$.fragment),P=w(),x=c("h3"),T=j("Expected JSON formats"),z=w(),p=c("div"),k(h.$$.fragment),B=w(),k(g.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var l=f(t);e=m(l,"NAV",{id:!0,class:!0,"aria-label":!0});var _=f(e);r=m(_,"H1",{class:!0,"data-testid":!0});var K=f(r);I=q(K,"Import Event History"),K.forEach(i),G=H(_),E=m(_,"DIV",{class:!0});var M=f(E);V(v.$$.fragment,M),M.forEach(i),_.forEach(i),J=H(l),n=m(l,"DIV",{class:!0});var u=f(n);b=m(u,"CODE",{class:!0});var Q=f(b);A=q(Q,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),Q.forEach(i),F=H(u),y=m(u,"DIV",{class:!0});var R=f(y);V(d.$$.fragment,R),R.forEach(i),P=H(u),x=m(u,"H3",{class:!0});var U=f(x);T=q(U,"Expected JSON formats"),U.forEach(i),z=H(u),p=m(u,"DIV",{class:!0});var L=f(p);V(h.$$.fragment,L),B=H(L),V(g.$$.fragment,L),L.forEach(i),u.forEach(i),l.forEach(i),this.h()},h(){o(r,"class","text-lg font-medium"),o(r,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(e,"id","event-history"),o(e,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(e,"aria-label","import event history"),o(b,"class","text-md bg-gray-200 p-2 font-medium"),o(y,"class","mt-4"),o(x,"class","mt-8 text-lg font-medium"),o(p,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,l){tt(a,t,l),s(t,e),s(e,r),s(r,I),s(e,G),s(e,E),C(v,E,null),s(t,J),s(t,n),s(n,b),s(b,A),s(n,F),s(n,y),C(d,y,null),s(n,P),s(n,x),s(x,T),s(n,z),s(n,p),C(h,p,null),s(p,B),C(g,p,null),O=!0},p(a,[l]){const _={};l&2&&(_.$$scope={dirty:l,ctx:a}),d.$set(_)},i(a){O||(D(v.$$.fragment,a),D(d.$$.fragment,a),D(h.$$.fragment,a),D(g.$$.fragment,a),O=!0)},o(a){S(v.$$.fragment,a),S(d.$$.fragment,a),S(h.$$.fragment,a),S(g.$$.fragment,a),O=!1},d(a){a&&i(t),N(v),N(d),N(h),N(g)}}}const ot="HistoryEvent[]";function it($){return[{events:"HistoryEvent[]"}]}class lt extends X{constructor(t){super(),Y(this,t,it,nt,Z,{})}}function ct($){let t,e;return t=new lt({}),{c(){k(t.$$.fragment)},l(r){V(t.$$.fragment,r)},m(r,I){C(t,r,I),e=!0},p:et,i(r){e||(D(t.$$.fragment,r),e=!0)},o(r){S(t.$$.fragment,r),e=!1},d(r){N(t,r)}}}class ut extends X{constructor(t){super(),Y(this,t,null,ct,Z,{})}}export{ut as default}; +import{S as X,b as Y,a as Z,m as c,w as j,c as w,C as k,p as m,q as f,x as q,k as i,d as H,D as V,u as o,f as tt,L as s,E as C,j as D,g as S,F as N,n as et}from"../chunks/index.a36c9cb0.js";import{E as rt}from"../chunks/event-history-file-import.a9e077a9.js";import{C as W}from"../chunks/code-block.2cc5a38d.js";import{L as at}from"../chunks/link.855bf830.js";function st($){let t;return{c(){t=j("View in Github")},l(e){t=q(e,"View in Github")},m(e,r){tt(e,t,r)},d(e){e&&i(t)}}}function nt($){let t,e,r,I,G,E,v,J,n,b,A,F,y,d,P,x,T,z,p,h,B,g,O;return v=new rt({}),d=new at({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[st]},$$scope:{ctx:$}}}),h=new W({props:{content:$[0],inline:!0}}),g=new W({props:{content:ot,inline:!0}}),{c(){t=c("section"),e=c("nav"),r=c("h1"),I=j("Import Event History"),G=w(),E=c("div"),k(v.$$.fragment),J=w(),n=c("div"),b=c("code"),A=j("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),F=w(),y=c("div"),k(d.$$.fragment),P=w(),x=c("h3"),T=j("Expected JSON formats"),z=w(),p=c("div"),k(h.$$.fragment),B=w(),k(g.$$.fragment),this.h()},l(a){t=m(a,"SECTION",{class:!0});var l=f(t);e=m(l,"NAV",{id:!0,class:!0,"aria-label":!0});var _=f(e);r=m(_,"H1",{class:!0,"data-testid":!0});var K=f(r);I=q(K,"Import Event History"),K.forEach(i),G=H(_),E=m(_,"DIV",{class:!0});var M=f(E);V(v.$$.fragment,M),M.forEach(i),_.forEach(i),J=H(l),n=m(l,"DIV",{class:!0});var u=f(n);b=m(u,"CODE",{class:!0});var Q=f(b);A=q(Q,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),Q.forEach(i),F=H(u),y=m(u,"DIV",{class:!0});var R=f(y);V(d.$$.fragment,R),R.forEach(i),P=H(u),x=m(u,"H3",{class:!0});var U=f(x);T=q(U,"Expected JSON formats"),U.forEach(i),z=H(u),p=m(u,"DIV",{class:!0});var L=f(p);V(h.$$.fragment,L),B=H(L),V(g.$$.fragment,L),L.forEach(i),u.forEach(i),l.forEach(i),this.h()},h(){o(r,"class","text-lg font-medium"),o(r,"data-testid","import-event-history"),o(E,"class","flex gap-4"),o(e,"id","event-history"),o(e,"class","block items-center justify-between gap-4 pb-4 lg:flex"),o(e,"aria-label","import event history"),o(b,"class","text-md bg-gray-200 p-2 font-medium"),o(y,"class","mt-4"),o(x,"class","mt-8 text-lg font-medium"),o(p,"class","h-40 text-center"),o(n,"class","w-full md:w-1/2"),o(t,"class","flex flex-col gap-4")},m(a,l){tt(a,t,l),s(t,e),s(e,r),s(r,I),s(e,G),s(e,E),C(v,E,null),s(t,J),s(t,n),s(n,b),s(b,A),s(n,F),s(n,y),C(d,y,null),s(n,P),s(n,x),s(x,T),s(n,z),s(n,p),C(h,p,null),s(p,B),C(g,p,null),O=!0},p(a,[l]){const _={};l&2&&(_.$$scope={dirty:l,ctx:a}),d.$set(_)},i(a){O||(D(v.$$.fragment,a),D(d.$$.fragment,a),D(h.$$.fragment,a),D(g.$$.fragment,a),O=!0)},o(a){S(v.$$.fragment,a),S(d.$$.fragment,a),S(h.$$.fragment,a),S(g.$$.fragment,a),O=!1},d(a){a&&i(t),N(v),N(d),N(h),N(g)}}}const ot="HistoryEvent[]";function it($){return[{events:"HistoryEvent[]"}]}class lt extends X{constructor(t){super(),Y(this,t,it,nt,Z,{})}}function ct($){let t,e;return t=new lt({}),{c(){k(t.$$.fragment)},l(r){V(t.$$.fragment,r)},m(r,I){C(t,r,I),e=!0},p:et,i(r){e||(D(t.$$.fragment,r),e=!0)},o(r){S(t.$$.fragment,r),e=!1},d(r){N(t,r)}}}class ut extends X{constructor(t){super(),Y(this,t,null,ct,Z,{})}}export{ut as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.decd5f70.js b/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.48385c32.js similarity index 93% rename from ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.decd5f70.js rename to ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.48385c32.js index 834afe2d00..dee1eb92a9 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.decd5f70.js +++ b/ui/assets/local/_app/immutable/entry/(app)-import-layout.svelte.48385c32.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.a36c9cb0.js";import{p as j}from"../chunks/stores.48be4ca9.js";import{P as k}from"../chunks/page-title.b9565d2f.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.a36c9cb0.js";import{p as j}from"../chunks/stores.4d55fa19.js";import{P as k}from"../chunks/page-title.b9565d2f.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.ab4aa395.js b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.ab4aa395.js new file mode 100644 index 0000000000..c27b501437 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.ab4aa395.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.63185530.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.c4fcd9cd.js b/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.c4fcd9cd.js deleted file mode 100644 index b4302f736e..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-import-page.ts.c4fcd9cd.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.8a42b2d6.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.3ccf5ff0.js b/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.82055955.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.3ccf5ff0.js rename to ui/assets/local/_app/immutable/entry/(app)-layout.svelte.82055955.js index 54ea791391..cbd5f43c73 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-layout.svelte.3ccf5ff0.js +++ b/ui/assets/local/_app/immutable/entry/(app)-layout.svelte.82055955.js @@ -1,4 +1,4 @@ -import{W as on,S as ee,b as te,a as Q,e as R,f as C,n as se,k as m,K as G,N as pe,O as Ee,m as w,w as U,c as j,p as E,q as k,x as q,d as F,u as h,X as Ie,L as v,T as _e,y as he,j as g,g as $,A as me,Y as $e,C as T,D as L,E as D,Z as ve,F as N,z as oe,h as ie,s as je,_ as ge,G as W,H as K,I as z,J as Z,$ as an,a0 as nt,M as fn,a1 as un,a2 as cn,i as Xe,R as re,o as dn,a3 as qe,a4 as Re,v as He,Q as st,U as Xt,a5 as De,a6 as mn,a7 as Jt,a8 as _n,B as lt,V as Je,a9 as Fe,r as Qt,P as Yt,aa as rt}from"../chunks/index.a36c9cb0.js";import{p as ke,u as pn}from"../chunks/stores.0bc9ce95.js";import{a as xt,c as hn}from"../chunks/auth-user.3a7bc4db.js";import{g as ot}from"../chunks/navigation.214139c0.js";import{r as Pe,a as gn,b as $n,c as it,d as vn,e as bn}from"../chunks/route-for.70dfbf18.js";import{i as en}from"../chunks/version-check.d006b302.js";import{p as kn}from"../chunks/persist-store.863ae031.js";import{n as Me}from"../chunks/route-for-api.81ced9ce.js";import{E as wn}from"../chunks/error.34f8ab49.js";import{w as We,d as En}from"../chunks/index.deae5bd4.js";import{I as Cn,f as at}from"../chunks/icon-button.bcd06a36.js";import{t as ft}from"../chunks/toaster.16c48a98.js";import{l as ye,n as In}from"../chunks/namespaces.85dd7810.js";import{w as ut,a as ct}from"../chunks/filters.c5bf71c7.js";import{I as ue}from"../chunks/icon.33859671.js";import{M as tn}from"../chunks/modal.50ea7269.js";import{B as Vn}from"../chunks/button.dbc76a4c.js";import{v as Tn,a as Dn,n as Ke}from"../chunks/nav-open.98e0e195.js";import{T as Se}from"../chunks/tooltip.bd2ec5a4.js";import{i as Nn}from"../chunks/settings-service.713ab407.js";import{B as Bn}from"../chunks/badge.7f30446f.js";import{M as Ln,a as Sn,b as An}from"../chunks/menu.c922b8b1.js";import{E as Pn}from"../chunks/empty-state.9fb63265.js";import{I as Mn}from"../chunks/input.a193633b.js";import{M as dt}from"../chunks/menu-item.4122979b.js";import{d as ze,l as jn}from"../chunks/data-converter-config.28d58945.js";import{c as Oe,l as Fn,i as mt,p as _t,v as yn,a as On}from"../chunks/is-http.1e6b12cd.js";import{T as pt}from"../chunks/toggle-switch.48168915.js";import{r as ht}from"../chunks/workflow-run.8a407b5f.js";var Ue=(r=>(r[r.TemporalVersion=1]="TemporalVersion",r[r.UIVersion=2]="UIVersion",r))(Ue||{});const Ze=kn("closedBanners",null),Un=r=>{let e=on(Ze)??[];e=[...e,r],e=e.slice(e.length-10,e.length),Ze.set(e)};function gt(r){let e,s,t,n,l,o,a,i,u,f;return{c(){e=w("section"),s=w("a"),t=U(r[2]),n=j(),l=w("button"),o=U("✕"),this.h()},l(c){e=E(c,"SECTION",{class:!0,"data-testid":!0});var d=k(e);s=E(d,"A",{href:!0,target:!0,rel:!0});var _=k(s);t=q(_,r[2]),_.forEach(m),n=F(d),l=E(d,"BUTTON",{class:!0,"data-testid":!0});var p=k(l);o=q(p,"✕"),p.forEach(m),d.forEach(m),this.h()},h(){h(s,"href",r[3]),h(s,"target","_blank"),h(s,"rel","noreferrer"),h(l,"class","text-black-600 absolute top-0 right-0 mr-5"),h(l,"data-testid","close-banner"),h(e,"class",a=Ie(`relative block text-center leading-10 ${r[1]}`)+" svelte-1xgik0j"),h(e,"data-testid",i=r[5].testId)},m(c,d){C(c,e,d),v(e,s),v(s,t),v(e,n),v(e,l),v(l,o),u||(f=_e(l,"click",r[8]),u=!0)},p(c,d){d&4&&he(t,c[2]),d&8&&h(s,"href",c[3]),d&2&&a!==(a=Ie(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&h(e,"class",a),d&32&&i!==(i=c[5].testId)&&h(e,"data-testid",i)},d(c){c&&m(e),u=!1,f()}}}function qn(r){let e,s=r[4]&>(r);return{c(){s&&s.c(),e=R()},l(t){s&&s.l(t),e=R()},m(t,n){s&&s.m(t,n),C(t,e,n)},p(t,[n]){t[4]?s?s.p(t,n):(s=gt(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:se,o:se,d(t){s&&s.d(t),t&&m(e)}}}function Rn(r,e,s){let t,n;G(r,Ze,c=>s(7,n=c));let{key:l}=e,{severity:o}=e,{message:a}=e,{link:i}=e,{shownBanner:u}=e;const f=()=>Un(l);return r.$$set=c=>{s(5,e=pe(pe({},e),Ee(c))),"key"in c&&s(0,l=c.key),"severity"in c&&s(1,o=c.severity),"message"in c&&s(2,a=c.message),"link"in c&&s(3,i=c.link),"shownBanner"in c&&s(6,u=c.shownBanner)},r.$$.update=()=>{r.$$.dirty&129&&s(4,t=!(n??[]).includes(l)),r.$$.dirty&80&&(t||s(6,u++,u))},e=Ee(e),[l,o,a,i,t,e,u,n,f]}class nn extends ee{constructor(e){super(),te(this,e,Rn,qn,Q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Hn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[2],severity:r[1],message:r[5],link:r[3],testId:"temporal-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Wn(r){let e,s,t=r[4]&&Hn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[4]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function Kn(r,e,s){let t;G(r,ke,y=>s(12,t=y));var n,l,o,a,i;let{shownBanner:u}=e;const{cluster:f}=t.data,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(n=f==null?void 0:f.versionInfo)!==null&&n!==void 0?n:{},p=(o=(l=f==null?void 0:f.versionInfo)===null||l===void 0?void 0:l.alerts)===null||o===void 0?void 0:o[0],b=p?c[p.severity]:c.Low,S=`server-v${_==null?void 0:_.version}`,P=`https://github.com/temporalio/temporal/releases/tag/v${(i=(a=f==null?void 0:f.versionInfo)===null||a===void 0?void 0:a.recommended)===null||i===void 0?void 0:i.version}`,V=en(d==null?void 0:d.version,_==null?void 0:_.version),I=b===c.Low?`📥 Temporal v${d==null?void 0:d.version} is available`:`📥 ${p==null?void 0:p.message}`;function B(y){u=y,s(0,u)}return r.$$set=y=>{"shownBanner"in y&&s(0,u=y.shownBanner)},[u,b,S,P,V,I,B]}class zn extends ee{constructor(e){super(),te(this,e,Kn,Wn,Q,{shownBanner:0})}}function Zn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[1],severity:Xn,message:r[2],link:r[4],testId:"ui-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Gn(r){let e,s,t=r[3]&&Zn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[3]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}const Xn="low";function Jn(r,e,s){let{shownBanner:t}=e,{uiVersionInfo:n}=e;const l=`ui-v${n==null?void 0:n.current}`,o=`📥 Temporal UI v${n==null?void 0:n.recommended} is available`,a=en(n==null?void 0:n.recommended,n==null?void 0:n.current),i=`https://github.com/temporalio/ui-server/releases/tag/v${n==null?void 0:n.recommended}`;function u(f){t=f,s(0,t)}return r.$$set=f=>{"shownBanner"in f&&s(0,t=f.shownBanner),"uiVersionInfo"in f&&s(5,n=f.uiVersionInfo)},[t,l,o,a,i,n,u]}class Qn extends ee{constructor(e){super(),te(this,e,Jn,Gn,Q,{shownBanner:0,uiVersionInfo:5})}}function Yn(r){let e,s,t,n;const l=[es,xn],o=[];function a(i,u){return i[1]===Ue.TemporalVersion?0:i[1]===Ue.UIVersion?1:-1}return~(e=a(r))&&(s=o[e]=l[e](r)),{c(){s&&s.c(),t=R()},l(i){s&&s.l(i),t=R()},m(i,u){~e&&o[e].m(i,u),C(i,t,u),n=!0},p(i,u){let f=e;e=a(i),e===f?~e&&o[e].p(i,u):(s&&(oe(),$(o[f],1,1,()=>{o[f]=null}),ie()),~e?(s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t)):s=null)},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){~e&&o[e].d(i),i&&m(t)}}}function xn(r){let e,s,t;function n(o){r[4](o)}let l={uiVersionInfo:r[0]};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new Qn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};a&1&&(i.uiVersionInfo=o[0]),!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function es(r){let e,s,t;function n(o){r[3](o)}let l={};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new zn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function ts(r){let e,s,t=r[2]&&Yn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[2]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function ns(r,e,s){let t;G(r,ke,f=>s(6,t=f));var n;let{uiVersionInfo:l}=e,o=Ue.TemporalVersion;const a=(n=t.data)===null||n===void 0?void 0:n.settings.notifyOnNewVersion;function i(f){o=f,s(1,o)}function u(f){o=f,s(1,o)}return r.$$set=f=>{"uiVersionInfo"in f&&s(0,l=f.uiVersionInfo)},[l,o,a,i,u]}class ss extends ee{constructor(e){super(),te(this,e,ns,ts,Q,{uiVersionInfo:0})}}function ls(r){let e;const s=r[8].default,t=W(s,r,r[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&128)&&K(t,s,n,n[7],e?Z(s,n[7],l,null):z(n[7]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function rs(r){let e,s;return e=new wn({props:{error:r[2]}}),e.$on("clearError",r[3]),{c(){T(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){D(e,t,n),s=!0},p(t,n){const l={};n&4&&(l.error=t[2]),e.$set(l)},i(t){s||(g(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){N(e,t)}}}function os(r){let e,s,t,n;const l=[rs,ls],o=[];function a(i,u){return i[1]&&i[2]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function is(r,e,s){let t,n,l=se,o=()=>(l(),l=je(d,S=>s(6,n=S)),d),a,i=se,u=()=>(i(),i=je(p,S=>s(2,a=S)),p);G(r,Me,S=>s(5,t=S)),r.$$.on_destroy.push(()=>l()),r.$$.on_destroy.push(()=>i());let{$$slots:f={},$$scope:c}=e,{error:d=null}=e;o();let{onError:_=null}=e,p;function b(){ge(d,n=null,n),s(4,_=null),u(s(1,p=null)),ge(Me,t=null,t)}return r.$$set=S=>{"error"in S&&o(s(0,d=S.error)),"onError"in S&&s(4,_=S.onError),"$$scope"in S&&s(7,c=S.$$scope)},r.$$.update=()=>{r.$$.dirty&115&&(d&&n&&u(s(1,p=d)),Me&&t&&u(s(1,p=Me)),_&&p&&_(p))},[d,p,a,b,_,t,n,c,f]}class as extends ee{constructor(e){super(),te(this,e,is,os,Q,{error:0,onError:4})}}function fs(r){let e;const s=r[5].default,t=W(s,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&16)&&K(t,s,n,n[4],e?Z(s,n[4],l,null):z(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function us(r){let e,s,t=r[1].message+"",n,l,o,a,i=(r[2]?r[1].stack:"")+"",u,f;return{c(){e=w("div"),s=w("b"),n=U(t),l=j(),o=w("pre"),a=U(" "),u=U(i),f=U(` +import{W as on,S as ee,b as te,a as Q,e as R,f as C,n as se,k as m,K as G,N as pe,O as Ee,m as w,w as U,c as j,p as E,q as k,x as q,d as F,u as h,X as Ie,L as v,T as _e,y as he,j as g,g as $,A as me,Y as $e,C as T,D as L,E as D,Z as ve,F as N,z as oe,h as ie,s as je,_ as ge,G as W,H as K,I as z,J as Z,$ as an,a0 as nt,M as fn,a1 as un,a2 as cn,i as Xe,R as re,o as dn,a3 as qe,a4 as Re,v as He,Q as st,U as Xt,a5 as De,a6 as mn,a7 as Jt,a8 as _n,B as lt,V as Je,a9 as Fe,r as Qt,P as Yt,aa as rt}from"../chunks/index.a36c9cb0.js";import{p as ke,u as pn}from"../chunks/stores.4d55fa19.js";import{a as xt,c as hn}from"../chunks/auth-user.3a7bc4db.js";import{g as ot}from"../chunks/navigation.0861544c.js";import{r as Pe,a as gn,b as $n,c as it,d as vn,e as bn}from"../chunks/route-for.e1b7889c.js";import{i as en}from"../chunks/version-check.d006b302.js";import{p as kn}from"../chunks/persist-store.863ae031.js";import{n as Me}from"../chunks/route-for-api.1addc328.js";import{E as wn}from"../chunks/error.c66eca4c.js";import{w as We,d as En}from"../chunks/index.deae5bd4.js";import{I as Cn,f as at}from"../chunks/icon-button.bcd06a36.js";import{t as ft}from"../chunks/toaster.16c48a98.js";import{l as ye,n as In}from"../chunks/namespaces.85dd7810.js";import{w as ut,a as ct}from"../chunks/filters.f7fa907d.js";import{I as ue}from"../chunks/icon.33859671.js";import{M as tn}from"../chunks/modal.50ea7269.js";import{B as Vn}from"../chunks/button.dbc76a4c.js";import{v as Tn,a as Dn,n as Ke}from"../chunks/nav-open.98e0e195.js";import{T as Se}from"../chunks/tooltip.bd2ec5a4.js";import{i as Nn}from"../chunks/settings-service.98a38158.js";import{B as Bn}from"../chunks/badge.7f30446f.js";import{M as Ln,a as Sn,b as An}from"../chunks/menu.c922b8b1.js";import{E as Pn}from"../chunks/empty-state.9fb63265.js";import{I as Mn}from"../chunks/input.a193633b.js";import{M as dt}from"../chunks/menu-item.4122979b.js";import{d as ze,l as jn}from"../chunks/data-converter-config.28d58945.js";import{c as Oe,l as Fn,i as mt,p as _t,v as yn,a as On}from"../chunks/is-http.1e6b12cd.js";import{T as pt}from"../chunks/toggle-switch.48168915.js";import{r as ht}from"../chunks/workflow-run.8a407b5f.js";var Ue=(r=>(r[r.TemporalVersion=1]="TemporalVersion",r[r.UIVersion=2]="UIVersion",r))(Ue||{});const Ze=kn("closedBanners",null),Un=r=>{let e=on(Ze)??[];e=[...e,r],e=e.slice(e.length-10,e.length),Ze.set(e)};function gt(r){let e,s,t,n,l,o,a,i,u,f;return{c(){e=w("section"),s=w("a"),t=U(r[2]),n=j(),l=w("button"),o=U("✕"),this.h()},l(c){e=E(c,"SECTION",{class:!0,"data-testid":!0});var d=k(e);s=E(d,"A",{href:!0,target:!0,rel:!0});var _=k(s);t=q(_,r[2]),_.forEach(m),n=F(d),l=E(d,"BUTTON",{class:!0,"data-testid":!0});var p=k(l);o=q(p,"✕"),p.forEach(m),d.forEach(m),this.h()},h(){h(s,"href",r[3]),h(s,"target","_blank"),h(s,"rel","noreferrer"),h(l,"class","text-black-600 absolute top-0 right-0 mr-5"),h(l,"data-testid","close-banner"),h(e,"class",a=Ie(`relative block text-center leading-10 ${r[1]}`)+" svelte-1xgik0j"),h(e,"data-testid",i=r[5].testId)},m(c,d){C(c,e,d),v(e,s),v(s,t),v(e,n),v(e,l),v(l,o),u||(f=_e(l,"click",r[8]),u=!0)},p(c,d){d&4&&he(t,c[2]),d&8&&h(s,"href",c[3]),d&2&&a!==(a=Ie(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&h(e,"class",a),d&32&&i!==(i=c[5].testId)&&h(e,"data-testid",i)},d(c){c&&m(e),u=!1,f()}}}function qn(r){let e,s=r[4]&>(r);return{c(){s&&s.c(),e=R()},l(t){s&&s.l(t),e=R()},m(t,n){s&&s.m(t,n),C(t,e,n)},p(t,[n]){t[4]?s?s.p(t,n):(s=gt(t),s.c(),s.m(e.parentNode,e)):s&&(s.d(1),s=null)},i:se,o:se,d(t){s&&s.d(t),t&&m(e)}}}function Rn(r,e,s){let t,n;G(r,Ze,c=>s(7,n=c));let{key:l}=e,{severity:o}=e,{message:a}=e,{link:i}=e,{shownBanner:u}=e;const f=()=>Un(l);return r.$$set=c=>{s(5,e=pe(pe({},e),Ee(c))),"key"in c&&s(0,l=c.key),"severity"in c&&s(1,o=c.severity),"message"in c&&s(2,a=c.message),"link"in c&&s(3,i=c.link),"shownBanner"in c&&s(6,u=c.shownBanner)},r.$$.update=()=>{r.$$.dirty&129&&s(4,t=!(n??[]).includes(l)),r.$$.dirty&80&&(t||s(6,u++,u))},e=Ee(e),[l,o,a,i,t,e,u,n,f]}class nn extends ee{constructor(e){super(),te(this,e,Rn,qn,Q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Hn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[2],severity:r[1],message:r[5],link:r[3],testId:"temporal-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Wn(r){let e,s,t=r[4]&&Hn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[4]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function Kn(r,e,s){let t;G(r,ke,y=>s(12,t=y));var n,l,o,a,i;let{shownBanner:u}=e;const{cluster:f}=t.data,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(n=f==null?void 0:f.versionInfo)!==null&&n!==void 0?n:{},p=(o=(l=f==null?void 0:f.versionInfo)===null||l===void 0?void 0:l.alerts)===null||o===void 0?void 0:o[0],b=p?c[p.severity]:c.Low,S=`server-v${_==null?void 0:_.version}`,P=`https://github.com/temporalio/temporal/releases/tag/v${(i=(a=f==null?void 0:f.versionInfo)===null||a===void 0?void 0:a.recommended)===null||i===void 0?void 0:i.version}`,V=en(d==null?void 0:d.version,_==null?void 0:_.version),I=b===c.Low?`📥 Temporal v${d==null?void 0:d.version} is available`:`📥 ${p==null?void 0:p.message}`;function B(y){u=y,s(0,u)}return r.$$set=y=>{"shownBanner"in y&&s(0,u=y.shownBanner)},[u,b,S,P,V,I,B]}class zn extends ee{constructor(e){super(),te(this,e,Kn,Wn,Q,{shownBanner:0})}}function Zn(r){let e,s,t;function n(o){r[6](o)}let l={key:r[1],severity:Xn,message:r[2],link:r[4],testId:"ui-version-banner"};return r[0]!==void 0&&(l.shownBanner=r[0]),e=new nn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&1&&(s=!0,i.shownBanner=o[0],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function Gn(r){let e,s,t=r[3]&&Zn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[3]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}const Xn="low";function Jn(r,e,s){let{shownBanner:t}=e,{uiVersionInfo:n}=e;const l=`ui-v${n==null?void 0:n.current}`,o=`📥 Temporal UI v${n==null?void 0:n.recommended} is available`,a=en(n==null?void 0:n.recommended,n==null?void 0:n.current),i=`https://github.com/temporalio/ui-server/releases/tag/v${n==null?void 0:n.recommended}`;function u(f){t=f,s(0,t)}return r.$$set=f=>{"shownBanner"in f&&s(0,t=f.shownBanner),"uiVersionInfo"in f&&s(5,n=f.uiVersionInfo)},[t,l,o,a,i,n,u]}class Qn extends ee{constructor(e){super(),te(this,e,Jn,Gn,Q,{shownBanner:0,uiVersionInfo:5})}}function Yn(r){let e,s,t,n;const l=[es,xn],o=[];function a(i,u){return i[1]===Ue.TemporalVersion?0:i[1]===Ue.UIVersion?1:-1}return~(e=a(r))&&(s=o[e]=l[e](r)),{c(){s&&s.c(),t=R()},l(i){s&&s.l(i),t=R()},m(i,u){~e&&o[e].m(i,u),C(i,t,u),n=!0},p(i,u){let f=e;e=a(i),e===f?~e&&o[e].p(i,u):(s&&(oe(),$(o[f],1,1,()=>{o[f]=null}),ie()),~e?(s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t)):s=null)},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){~e&&o[e].d(i),i&&m(t)}}}function xn(r){let e,s,t;function n(o){r[4](o)}let l={uiVersionInfo:r[0]};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new Qn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};a&1&&(i.uiVersionInfo=o[0]),!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function es(r){let e,s,t;function n(o){r[3](o)}let l={};return r[1]!==void 0&&(l.shownBanner=r[1]),e=new zn({props:l}),me.push(()=>$e(e,"shownBanner",n)),{c(){T(e.$$.fragment)},l(o){L(e.$$.fragment,o)},m(o,a){D(e,o,a),t=!0},p(o,a){const i={};!s&&a&2&&(s=!0,i.shownBanner=o[1],ve(()=>s=!1)),e.$set(i)},i(o){t||(g(e.$$.fragment,o),t=!0)},o(o){$(e.$$.fragment,o),t=!1},d(o){N(e,o)}}}function ts(r){let e,s,t=r[2]&&Yn(r);return{c(){t&&t.c(),e=R()},l(n){t&&t.l(n),e=R()},m(n,l){t&&t.m(n,l),C(n,e,l),s=!0},p(n,[l]){n[2]&&t.p(n,l)},i(n){s||(g(t),s=!0)},o(n){$(t),s=!1},d(n){t&&t.d(n),n&&m(e)}}}function ns(r,e,s){let t;G(r,ke,f=>s(6,t=f));var n;let{uiVersionInfo:l}=e,o=Ue.TemporalVersion;const a=(n=t.data)===null||n===void 0?void 0:n.settings.notifyOnNewVersion;function i(f){o=f,s(1,o)}function u(f){o=f,s(1,o)}return r.$$set=f=>{"uiVersionInfo"in f&&s(0,l=f.uiVersionInfo)},[l,o,a,i,u]}class ss extends ee{constructor(e){super(),te(this,e,ns,ts,Q,{uiVersionInfo:0})}}function ls(r){let e;const s=r[8].default,t=W(s,r,r[7],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&128)&&K(t,s,n,n[7],e?Z(s,n[7],l,null):z(n[7]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function rs(r){let e,s;return e=new wn({props:{error:r[2]}}),e.$on("clearError",r[3]),{c(){T(e.$$.fragment)},l(t){L(e.$$.fragment,t)},m(t,n){D(e,t,n),s=!0},p(t,n){const l={};n&4&&(l.error=t[2]),e.$set(l)},i(t){s||(g(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){N(e,t)}}}function os(r){let e,s,t,n;const l=[rs,ls],o=[];function a(i,u){return i[1]&&i[2]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function is(r,e,s){let t,n,l=se,o=()=>(l(),l=je(d,S=>s(6,n=S)),d),a,i=se,u=()=>(i(),i=je(p,S=>s(2,a=S)),p);G(r,Me,S=>s(5,t=S)),r.$$.on_destroy.push(()=>l()),r.$$.on_destroy.push(()=>i());let{$$slots:f={},$$scope:c}=e,{error:d=null}=e;o();let{onError:_=null}=e,p;function b(){ge(d,n=null,n),s(4,_=null),u(s(1,p=null)),ge(Me,t=null,t)}return r.$$set=S=>{"error"in S&&o(s(0,d=S.error)),"onError"in S&&s(4,_=S.onError),"$$scope"in S&&s(7,c=S.$$scope)},r.$$.update=()=>{r.$$.dirty&115&&(d&&n&&u(s(1,p=d)),Me&&t&&u(s(1,p=Me)),_&&p&&_(p))},[d,p,a,b,_,t,n,c,f]}class as extends ee{constructor(e){super(),te(this,e,is,os,Q,{error:0,onError:4})}}function fs(r){let e;const s=r[5].default,t=W(s,r,r[4],null);return{c(){t&&t.c()},l(n){t&&t.l(n)},m(n,l){t&&t.m(n,l),e=!0},p(n,l){t&&t.p&&(!e||l&16)&&K(t,s,n,n[4],e?Z(s,n[4],l,null):z(n[4]),null)},i(n){e||(g(t,n),e=!0)},o(n){$(t,n),e=!1},d(n){t&&t.d(n)}}}function us(r){let e,s,t=r[1].message+"",n,l,o,a,i=(r[2]?r[1].stack:"")+"",u,f;return{c(){e=w("div"),s=w("b"),n=U(t),l=j(),o=w("pre"),a=U(" "),u=U(i),f=U(` `),this.h()},l(c){e=E(c,"DIV",{class:!0});var d=k(e);s=E(d,"B",{});var _=k(s);n=q(_,t),_.forEach(m),l=F(d),o=E(d,"PRE",{class:!0});var p=k(o);a=q(p," "),u=q(p,i),f=q(p,` `),p.forEach(m),d.forEach(m),this.h()},h(){h(o,"class","trace svelte-urrl06"),h(e,"class","error svelte-urrl06")},m(c,d){C(c,e,d),v(e,s),v(s,n),v(e,l),v(e,o),v(o,a),v(o,u),v(o,f)},p(c,d){d&2&&t!==(t=c[1].message+"")&&he(n,t),d&2&&i!==(i=(c[2]?c[1].stack:"")+"")&&he(u,i)},i:se,o:se,d(c){c&&m(e)}}}function cs(r){let e,s,t,n;const l=[us,fs],o=[];function a(i,u){return i[1]?0:1}return e=a(r),s=o[e]=l[e](r),{c(){s.c(),t=R()},l(i){s.l(i),t=R()},m(i,u){o[e].m(i,u),C(i,t,u),n=!0},p(i,[u]){let f=e;e=a(i),e===f?o[e].p(i,u):(oe(),$(o[f],1,1,()=>{o[f]=null}),ie(),s=o[e],s?s.p(i,u):(s=o[e]=l[e](i),s.c()),g(s,1),s.m(t.parentNode,t))},i(i){n||(g(s),n=!0)},o(i){$(s),n=!1},d(i){o[e].d(i),i&&m(t)}}}function ds(r,e,s){let t,n=se,l=()=>(n(),n=je(i,d=>s(1,t=d)),i);r.$$.on_destroy.push(()=>n());let{$$slots:o={},$$scope:a}=e,{error:i=null}=e;l();let{onError:u=null}=e,c=(typeof process<"u"&&process.env&&"production")!=="production";return r.$$set=d=>{"error"in d&&l(s(0,i=d.error)),"onError"in d&&s(3,u=d.onError),"$$scope"in d&&s(4,a=d.$$scope)},r.$$.update=()=>{r.$$.dirty&10&&t&&u&&u(t)},[i,t,c,u,a,o]}class ms extends ee{constructor(e){super(),te(this,e,ds,cs,Q,{error:0,onError:3})}}const _s=["c","l","h","m","p","a","i","o","d"];function sn(r){if(r.$$render){let s=r.$$render;return r.$$render=(t,n,l,o)=>{const a=We(void 0);try{return s(t,{error:a,...n},l,o)}catch(i){return a.set(i),s(t,{error:a,...n},l,{})}},r}function e(s,t){return function(...l){try{return s(...l)}catch(o){t(o)}}}return class extends r{constructor(t){const n=We(void 0);t.props.$$slots.default=t.props.$$slots.default.map(l=>(...o)=>{let i=e(l,n.set)(...o);if(i)for(let u of _s)i[u]&&(i[u]=e(i[u],n.set));return i}),super(t),this.$$set({error:n})}}}sn(ms);const ps=sn(as);function hs(r){let e,s,t,n,l,o,a;const i=r[4].default,u=W(i,r,r[3],null);return n=new Cn({props:{icon:"close"}}),n.$on("click",r[2]),{c(){e=w("div"),s=w("p"),u&&u.c(),t=j(),T(n.$$.fragment),this.h()},l(f){e=E(f,"DIV",{id:!0,class:!0});var c=k(e);s=E(c,"P",{class:!0});var d=k(s);u&&u.l(d),d.forEach(m),t=F(c),L(n.$$.fragment,c),c.forEach(m),this.h()},h(){h(s,"class","font-secondary text-sm"),h(e,"id",r[0]),h(e,"class",l="flex grow-0 items-center justify-between gap-4 rounded py-3 px-4 shadow "+r[1]+" svelte-19tipv7")},m(f,c){C(f,e,c),v(e,s),u&&u.m(s,null),v(e,t),D(n,e,null),a=!0},p(f,[c]){u&&u.p&&(!a||c&8)&&K(u,i,f,f[3],a?Z(i,f[3],c,null):z(f[3]),null),(!a||c&1)&&h(e,"id",f[0]),(!a||c&2&&l!==(l="flex grow-0 items-center justify-between gap-4 rounded py-3 px-4 shadow "+f[1]+" svelte-19tipv7"))&&h(e,"class",l)},i(f){a||(g(u,f),g(n.$$.fragment,f),an(()=>{o||(o=nt(e,at,{x:250},!0)),o.run(1)}),a=!0)},o(f){$(u,f),$(n.$$.fragment,f),o||(o=nt(e,at,{x:250},!1)),o.run(0),a=!1},d(f){f&&m(e),u&&u.d(f),N(n),f&&o&&o.end()}}}function gs(r,e,s){let{$$slots:t={},$$scope:n}=e;const l=fn();let{id:o}=e,{variant:a}=e;const i=()=>{l("dismiss",{id:o})};return r.$$set=u=>{"id"in u&&s(0,o=u.id),"variant"in u&&s(1,a=u.variant),"$$scope"in u&&s(3,n=u.$$scope)},[o,a,i,n,t]}class $s extends ee{constructor(e){super(),te(this,e,gs,hs,Q,{id:0,variant:1})}}function $t(r,e,s){const t=r.slice();return t[4]=e[s].message,t[5]=e[s].variant,t[6]=e[s].id,t}function vs(r){let e=r[4]+"",s,t;return{c(){s=U(e),t=j()},l(n){s=q(n,e),t=F(n)},m(n,l){C(n,s,l),C(n,t,l)},p(n,l){l&2&&e!==(e=n[4]+"")&&he(s,e)},d(n){n&&m(s),n&&m(t)}}}function vt(r,e){let s,t,n;return t=new $s({props:{variant:e[5],id:e[6],$$slots:{default:[vs]},$$scope:{ctx:e}}}),t.$on("dismiss",e[2]),{key:r,first:null,c(){s=R(),T(t.$$.fragment),this.h()},l(l){s=R(),L(t.$$.fragment,l),this.h()},h(){this.first=s},m(l,o){C(l,s,o),D(t,l,o),n=!0},p(l,o){e=l;const a={};o&2&&(a.variant=e[5]),o&2&&(a.id=e[6]),o&514&&(a.$$scope={dirty:o,ctx:e}),t.$set(a)},i(l){n||(g(t.$$.fragment,l),n=!0)},o(l){$(t.$$.fragment,l),n=!1},d(l){l&&m(s),N(t,l)}}}function bs(r){let e,s=[],t=new Map,n,l=r[1];const o=a=>a[6];for(let a=0;a(n(),n=je(a,u=>s(1,t=u)),a);r.$$.on_destroy.push(()=>n());let{pop:o}=e,{toasts:a}=e;l();const i=u=>{o(u.detail.id)};return r.$$set=u=>{"pop"in u&&s(3,o=u.pop),"toasts"in u&&l(s(0,a=u.toasts))},[a,t,i,o]}class ws extends ee{constructor(e){super(),te(this,e,ks,bs,Q,{pop:3,toasts:0})}}function Es(r){let e,s,t,n,l,o;const a=r[4].default,i=W(a,r,r[3],null);return n=new Vn({props:{class:"!py-1.5 !px-1",icon:"arrow-up",variant:"secondary"}}),n.$on("click",function(){Xe(r[1])&&r[1].apply(this,arguments)}),{c(){e=w("div"),i&&i.c(),s=j(),t=w("div"),T(n.$$.fragment),this.h()},l(u){e=E(u,"DIV",{id:!0,class:!0});var f=k(e);i&&i.l(f),s=F(f),t=E(f,"DIV",{class:!0});var c=k(t);L(n.$$.fragment,c),c.forEach(m),f.forEach(m),this.h()},h(){h(t,"class","back-to-top svelte-78r2pw"),re(t,"hidden",r[0]),h(e,"id","scroll-container"),h(e,"class",l=Ie(r[2].class)+" svelte-78r2pw")},m(u,f){C(u,e,f),i&&i.m(e,null),v(e,s),v(e,t),D(n,t,null),o=!0},p(u,[f]){r=u,i&&i.p&&(!o||f&8)&&K(i,a,r,r[3],o?Z(a,r[3],f,null):z(r[3]),null),(!o||f&1)&&re(t,"hidden",r[0]),(!o||f&4&&l!==(l=Ie(r[2].class)+" svelte-78r2pw"))&&h(e,"class",l)},i(u){o||(g(i,u),g(n.$$.fragment,u),o=!0)},o(u){$(i,u),$(n.$$.fragment,u),o=!1},d(u){u&&m(e),i&&i.d(u),N(n)}}}function Cs(r,e,s){let{$$slots:t={},$$scope:n}=e,{hidden:l=!0}=e,{onScrollToTopClick:o}=e;return r.$$set=a=>{s(2,e=pe(pe({},e),Ee(a))),"hidden"in a&&s(0,l=a.hidden),"onScrollToTopClick"in a&&s(1,o=a.onScrollToTopClick),"$$scope"in a&&s(3,n=a.$$scope)},e=Ee(e),[l,o,e,n,t]}class Is extends ee{constructor(e){super(),te(this,e,Cs,Es,Q,{hidden:0,onScrollToTopClick:1})}}function Vs(r){let e,s;return{c(){e=w("h1"),s=U("Check out the new top navigation!"),this.h()},l(t){e=E(t,"H1",{slot:!0,"data-testid":!0});var n=k(e);s=q(n,"Check out the new top navigation!"),n.forEach(m),this.h()},h(){h(e,"slot","title"),h(e,"data-testid","overlay-title")},m(t,n){C(t,e,n),v(e,s)},p:se,d(t){t&&m(e)}}}function Ts(r){let e,s,t,n,l,o,a,i,u,f;return n=new ue({props:{name:"namespace-switcher",class:"scale-100"}}),i=new ue({props:{name:"transcoder-on",status:"configured"}}),{c(){e=w("div"),s=w("div"),t=w("div"),T(n.$$.fragment),l=U(` Easily switch between Namespaces and know which Namespace you are currently diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.0d1e79dd.js b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.0d1e79dd.js new file mode 100644 index 0000000000..12915ab351 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.0d1e79dd.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.172b4801.js";/* empty css */import"../chunks/settings-service.98a38158.js";import"../chunks/auth-user.3a7bc4db.js";import"../chunks/namespaces-service.9dd6901c.js";import"../chunks/route-for.e1b7889c.js";export{d as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.bdc93891.js b/ui/assets/local/_app/immutable/entry/(app)-layout.ts.bdc93891.js deleted file mode 100644 index e622c207b8..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-layout.ts.bdc93891.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import{l as d}from"../chunks/_layout.74bf892c.js";/* empty css */import"../chunks/settings-service.5ac9963d.js";import"../chunks/auth-user.3a7bc4db.js";import"../chunks/namespaces-service.971cb4c8.js";import"../chunks/route-for.6dec3e74.js";export{d as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.5ae65169.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.8f3cd89b.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.5ae65169.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.8f3cd89b.js index 94826e96fe..8cb3c0660f 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.5ae65169.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.svelte.8f3cd89b.js @@ -1,3 +1,3 @@ -import{S as U,b as H,a as V,m as N,w as A,c as S,C as w,p as q,q as I,x as F,k as _,d as C,D as y,u as v,f as g,L as k,E,a9 as G,T as O,V as ue,y as ce,j as d,g as b,F as T,r as me,K as L,P as pe,z as j,h as D,ab as ie,A as _e,Y as $e,Z as he,e as W,a7 as fe,a1 as de,a2 as ge,n as z}from"../chunks/index.a36c9cb0.js";import{t as Q}from"../chunks/time-format.dc246788.js";import{p as K}from"../chunks/stores.0bc9ce95.js";import{j as be,S as ve,W as ke,a as we}from"../chunks/search.f90e15c8.js";import{g as J}from"../chunks/navigation.214139c0.js";import{q as X}from"../chunks/format-time.c8c4770b.js";import{S as ye,a as B}from"../chunks/simple-select.6bb2c039.js";import{u as Ee,F as x,P as Te}from"../chunks/pagination.69c5aeb5.js";import{I as Pe}from"../chunks/icon.33859671.js";import{E as Ae}from"../chunks/empty-state.9fb63265.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{P as Se}from"../chunks/page-title.b9565d2f.js";function Fe(i){let e,a,t,l,o,n,r,s,m,c,p;return n=new Pe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=N("div"),a=N("label"),t=A(i[0]),l=S(),o=N("span"),w(n.$$.fragment),r=S(),s=N("input"),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=I(e);a=q(u,"LABEL",{for:!0,class:!0});var $=I(a);t=F($,i[0]),$.forEach(_),l=C(u),o=q(u,"SPAN",{class:!0});var h=I(o);y(n.$$.fragment,h),h.forEach(_),r=C(u),s=q(u,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),u.forEach(_),this.h()},h(){v(a,"for",i[2]),v(a,"class","hidden"),v(o,"class","svelte-fxm0nn"),v(s,"type","search"),v(s,"class","block w-full focus:outline-none"),v(s,"placeholder",i[0]),v(s,"id",i[2]),v(e,"class","input-container focus-within:border-blue-700 svelte-fxm0nn")},m(f,u){g(f,e,u),k(e,a),k(a,t),k(e,l),k(e,o),E(n,o,null),k(e,r),k(e,s),G(s,i[1]),m=!0,c||(p=[O(s,"input",i[7]),O(s,"keydown",ue(i[6]))],c=!0)},p(f,[u]){(!m||u&1)&&ce(t,f[0]),(!m||u&1)&&v(s,"placeholder",f[0]),u&2&&G(s,f[1])},i(f){m||(d(n.$$.fragment,f),m=!0)},o(f){b(n.$$.fragment,f),m=!1},d(f){f&&_(e),T(n),c=!1,me(p)}}}function Ce(i,e,a){let t;L(i,K,f=>a(5,t=f));let{parameter:l}=e,{name:o}=e,{value:n}=e,r=l&&t.url.searchParams.get(l)||n;const s=`${l||o}-filter`,m=be(Ee,300);function c(f){pe.call(this,i,f)}function p(){r=this.value,a(1,r)}return i.$$set=f=>{"parameter"in f&&a(3,l=f.parameter),"name"in f&&a(0,o=f.name),"value"in f&&a(4,n=f.value)},i.$$.update=()=>{i.$$.dirty&42&&m({parameter:l,value:r,url:t.url})},[o,r,s,l,n,t,c,p]}class ee extends U{constructor(e){super(),H(this,e,Ce,Fe,V,{parameter:3,name:0,value:4})}}function te(i,e,a){const t=i.slice();return t[7]=e[a][0],t[8]=e[a][1],t}function le(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ne(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Advanced Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Advanced Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname+"?query"),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("advanced"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname+"?query")&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function qe(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Basic Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Basic Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("basic"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname)&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function Ie(i){let e,a,t,l,o,n,r,s,m,c,p,f;a=new ee({props:{parameter:"workflow-id",name:"Workflow ID",value:Ve}}),l=new ee({props:{parameter:"workflow-type",name:"Workflow Type",value:ze}}),n=new x({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[De]},$$scope:{ctx:i}}}),s=new x({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[Le]},$$scope:{ctx:i}}});function u(h){i[6](h)}let $={id:"filter-by-relative-time",$$slots:{default:[Ue]},$$scope:{ctx:i}};return i[2]!==void 0&&($.value=i[2]),c=new ye({props:$}),_e.push(()=>$e(c,"value",u)),{c(){e=N("div"),w(a.$$.fragment),t=S(),w(l.$$.fragment),o=S(),w(n.$$.fragment),r=S(),w(s.$$.fragment),m=S(),w(c.$$.fragment),this.h()},l(h){e=q(h,"DIV",{class:!0,role:!0});var P=I(e);y(a.$$.fragment,P),t=C(P),y(l.$$.fragment,P),o=C(P),y(n.$$.fragment,P),r=C(P),y(s.$$.fragment,P),m=C(P),y(c.$$.fragment,P),P.forEach(_),this.h()},h(){v(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(e,"role","search")},m(h,P){g(h,e,P),E(a,e,null),k(e,t),E(l,e,null),k(e,o),E(n,e,null),k(e,r),E(s,e,null),k(e,m),E(c,e,null),f=!0},p(h,P){const Y={};P&8192&&(Y.$$scope={dirty:P,ctx:h}),n.$set(Y);const Z={};P&8192&&(Z.$$scope={dirty:P,ctx:h}),s.$set(Z);const R={};P&8192&&(R.$$scope={dirty:P,ctx:h}),!p&&P&4&&(p=!0,R.value=h[2],he(()=>p=!1)),c.$set(R)},i(h){f||(d(a.$$.fragment,h),d(l.$$.fragment,h),d(n.$$.fragment,h),d(s.$$.fragment,h),d(c.$$.fragment,h),f=!0)},o(h){b(a.$$.fragment,h),b(l.$$.fragment,h),b(n.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),f=!1},d(h){h&&_(e),T(a),T(l),T(n),T(s),T(c)}}}function We(i){let e,a;return e=new ve({props:{icon:!0,placeholder:"Query…",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function je(i){let e=i[8]+"",a;return{c(){a=A(e)},l(t){a=F(t,e)},m(t,l){g(t,a,l)},p:z,d(t){t&&_(a)}}}function re(i){let e,a;return e=new B({props:{value:i[8],$$slots:{default:[je]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&8192&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function De(i){let e,a,t=X,l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;nr[7];for(let r=0;r{p[h]=null}),D(),o=p[l],o?o.p(u,$):(o=p[l]=c[l](u),o.c()),d(o,1),o.m(e,null))},i(u){n||(d(o),n=!0)},o(u){b(o),n=!1},d(u){u&&_(e),m.d(),p[l].d()}}}let Ve="",ze="";function Ke(i,e,a){let t,l;L(i,K,c=>a(1,t=c)),L(i,Q,c=>a(2,l=c));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let n=t.url.searchParams.has("query");const r=c=>{const f=new FormData(c.target).get("query");t.url.searchParams.set("query",String(f)),J(t.url.toString())},s=c=>p=>{const f=p.target;a(0,n=c==="advanced"),n||t.url.searchParams.delete("query"),J(f.href)};function m(c){l=c,Q.set(l)}return[n,t,l,o,r,s,m]}class Me extends U{constructor(e){super(),H(this,e,Ke,He,V,{})}}function ne(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ye(i){let e,a,t,l,o,n,r,s,m,c;r=new M({props:{content:`tctl --namespace ${i[3]} namespace update --has enabled`,language:"text",inline:!0}});let p=!i[0]&&se(i);return{c(){e=N("h1"),a=A("This namespace is currently not enabled for archival."),t=S(),l=N("p"),o=A("Run this command to enable archival visibility for event histories:"),n=S(),w(r.$$.fragment),s=S(),p&&p.c(),m=W(),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,"This namespace is currently not enabled for archival."),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"Run this command to enable archival visibility for event histories:"),$.forEach(_),n=C(f),y(r.$$.fragment,f),s=C(f),p&&p.l(f),m=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-disabled-title")},m(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),g(f,n,u),E(r,f,u),g(f,s,u),p&&p.m(f,u),g(f,m,u),c=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update --has enabled`),r.$set($),f[0]?p&&(j(),b(p,1,1,()=>{p=null}),D()):p?(p.p(f,u),u&1&&d(p,1)):(p=se(f),p.c(),d(p,1),p.m(m.parentNode,m))},i(f){c||(d(r.$$.fragment,f),d(p),c=!0)},o(f){b(r.$$.fragment,f),b(p),c=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(n),T(r,f),f&&_(s),p&&p.d(f),f&&_(m)}}}function Ze(i){let e,a,t,l,o,n,r,s,m,c,p;return c=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("h1"),a=A(`This namespace is currently enabled for archival but visibility is not +import{S as U,b as H,a as V,m as N,w as A,c as S,C as w,p as q,q as I,x as F,k as _,d as C,D as y,u as v,f as g,L as k,E,a9 as G,T as O,V as ue,y as ce,j as d,g as b,F as T,r as me,K as L,P as pe,z as j,h as D,ab as ie,A as _e,Y as $e,Z as he,e as W,a7 as fe,a1 as de,a2 as ge,n as z}from"../chunks/index.a36c9cb0.js";import{t as Q}from"../chunks/time-format.dc246788.js";import{p as K}from"../chunks/stores.4d55fa19.js";import{j as be,S as ve,W as ke,a as we}from"../chunks/search.75414562.js";import{g as J}from"../chunks/navigation.0861544c.js";import{q as X}from"../chunks/format-time.c8c4770b.js";import{S as ye,a as B}from"../chunks/simple-select.6bb2c039.js";import{u as Ee,F as x,P as Te}from"../chunks/pagination.6f9a2b9c.js";import{I as Pe}from"../chunks/icon.33859671.js";import{E as Ae}from"../chunks/empty-state.9fb63265.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{P as Se}from"../chunks/page-title.b9565d2f.js";function Fe(i){let e,a,t,l,o,n,r,s,m,c,p;return n=new Pe({props:{name:"search",class:"flex items-center text-gray-700"}}),{c(){e=N("div"),a=N("label"),t=A(i[0]),l=S(),o=N("span"),w(n.$$.fragment),r=S(),s=N("input"),this.h()},l(f){e=q(f,"DIV",{class:!0});var u=I(e);a=q(u,"LABEL",{for:!0,class:!0});var $=I(a);t=F($,i[0]),$.forEach(_),l=C(u),o=q(u,"SPAN",{class:!0});var h=I(o);y(n.$$.fragment,h),h.forEach(_),r=C(u),s=q(u,"INPUT",{type:!0,class:!0,placeholder:!0,id:!0}),u.forEach(_),this.h()},h(){v(a,"for",i[2]),v(a,"class","hidden"),v(o,"class","svelte-fxm0nn"),v(s,"type","search"),v(s,"class","block w-full focus:outline-none"),v(s,"placeholder",i[0]),v(s,"id",i[2]),v(e,"class","input-container focus-within:border-blue-700 svelte-fxm0nn")},m(f,u){g(f,e,u),k(e,a),k(a,t),k(e,l),k(e,o),E(n,o,null),k(e,r),k(e,s),G(s,i[1]),m=!0,c||(p=[O(s,"input",i[7]),O(s,"keydown",ue(i[6]))],c=!0)},p(f,[u]){(!m||u&1)&&ce(t,f[0]),(!m||u&1)&&v(s,"placeholder",f[0]),u&2&&G(s,f[1])},i(f){m||(d(n.$$.fragment,f),m=!0)},o(f){b(n.$$.fragment,f),m=!1},d(f){f&&_(e),T(n),c=!1,me(p)}}}function Ce(i,e,a){let t;L(i,K,f=>a(5,t=f));let{parameter:l}=e,{name:o}=e,{value:n}=e,r=l&&t.url.searchParams.get(l)||n;const s=`${l||o}-filter`,m=be(Ee,300);function c(f){pe.call(this,i,f)}function p(){r=this.value,a(1,r)}return i.$$set=f=>{"parameter"in f&&a(3,l=f.parameter),"name"in f&&a(0,o=f.name),"value"in f&&a(4,n=f.value)},i.$$.update=()=>{i.$$.dirty&42&&m({parameter:l,value:r,url:t.url})},[o,r,s,l,n,t,c,p]}class ee extends U{constructor(e){super(),H(this,e,Ce,Fe,V,{parameter:3,name:0,value:4})}}function te(i,e,a){const t=i.slice();return t[7]=e[a][0],t[8]=e[a][1],t}function le(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ne(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Advanced Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Advanced Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname+"?query"),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("advanced"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname+"?query")&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function qe(i){let e,a,t,l,o;return{c(){e=N("a"),a=A("Basic Search"),this.h()},l(n){e=q(n,"A",{href:!0,class:!0});var r=I(e);a=F(r,"Basic Search"),r.forEach(_),this.h()},h(){v(e,"href",t=i[1].url.pathname),v(e,"class","text-blue-700")},m(n,r){g(n,e,r),k(e,a),l||(o=O(e,"click",ie(i[5]("basic"))),l=!0)},p(n,r){r&2&&t!==(t=n[1].url.pathname)&&v(e,"href",t)},d(n){n&&_(e),l=!1,o()}}}function Ie(i){let e,a,t,l,o,n,r,s,m,c,p,f;a=new ee({props:{parameter:"workflow-id",name:"Workflow ID",value:Ve}}),l=new ee({props:{parameter:"workflow-type",name:"Workflow Type",value:ze}}),n=new x({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[De]},$$scope:{ctx:i}}}),s=new x({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[Le]},$$scope:{ctx:i}}});function u(h){i[6](h)}let $={id:"filter-by-relative-time",$$slots:{default:[Ue]},$$scope:{ctx:i}};return i[2]!==void 0&&($.value=i[2]),c=new ye({props:$}),_e.push(()=>$e(c,"value",u)),{c(){e=N("div"),w(a.$$.fragment),t=S(),w(l.$$.fragment),o=S(),w(n.$$.fragment),r=S(),w(s.$$.fragment),m=S(),w(c.$$.fragment),this.h()},l(h){e=q(h,"DIV",{class:!0,role:!0});var P=I(e);y(a.$$.fragment,P),t=C(P),y(l.$$.fragment,P),o=C(P),y(n.$$.fragment,P),r=C(P),y(s.$$.fragment,P),m=C(P),y(c.$$.fragment,P),P.forEach(_),this.h()},h(){v(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5"),v(e,"role","search")},m(h,P){g(h,e,P),E(a,e,null),k(e,t),E(l,e,null),k(e,o),E(n,e,null),k(e,r),E(s,e,null),k(e,m),E(c,e,null),f=!0},p(h,P){const Y={};P&8192&&(Y.$$scope={dirty:P,ctx:h}),n.$set(Y);const Z={};P&8192&&(Z.$$scope={dirty:P,ctx:h}),s.$set(Z);const R={};P&8192&&(R.$$scope={dirty:P,ctx:h}),!p&&P&4&&(p=!0,R.value=h[2],he(()=>p=!1)),c.$set(R)},i(h){f||(d(a.$$.fragment,h),d(l.$$.fragment,h),d(n.$$.fragment,h),d(s.$$.fragment,h),d(c.$$.fragment,h),f=!0)},o(h){b(a.$$.fragment,h),b(l.$$.fragment,h),b(n.$$.fragment,h),b(s.$$.fragment,h),b(c.$$.fragment,h),f=!1},d(h){h&&_(e),T(a),T(l),T(n),T(s),T(c)}}}function We(i){let e,a;return e=new ve({props:{icon:!0,placeholder:"Query…",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function je(i){let e=i[8]+"",a;return{c(){a=A(e)},l(t){a=F(t,e)},m(t,l){g(t,a,l)},p:z,d(t){t&&_(a)}}}function re(i){let e,a;return e=new B({props:{value:i[8],$$slots:{default:[je]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&8192&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function De(i){let e,a,t=X,l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;nr[7];for(let r=0;r{p[h]=null}),D(),o=p[l],o?o.p(u,$):(o=p[l]=c[l](u),o.c()),d(o,1),o.m(e,null))},i(u){n||(d(o),n=!0)},o(u){b(o),n=!1},d(u){u&&_(e),m.d(),p[l].d()}}}let Ve="",ze="";function Ke(i,e,a){let t,l;L(i,K,c=>a(1,t=c)),L(i,Q,c=>a(2,l=c));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let n=t.url.searchParams.has("query");const r=c=>{const f=new FormData(c.target).get("query");t.url.searchParams.set("query",String(f)),J(t.url.toString())},s=c=>p=>{const f=p.target;a(0,n=c==="advanced"),n||t.url.searchParams.delete("query"),J(f.href)};function m(c){l=c,Q.set(l)}return[n,t,l,o,r,s,m]}class Me extends U{constructor(e){super(),H(this,e,Ke,He,V,{})}}function ne(i,e,a){const t=i.slice();return t[8]=e[a],t}function Ye(i){let e,a,t,l,o,n,r,s,m,c;r=new M({props:{content:`tctl --namespace ${i[3]} namespace update --has enabled`,language:"text",inline:!0}});let p=!i[0]&&se(i);return{c(){e=N("h1"),a=A("This namespace is currently not enabled for archival."),t=S(),l=N("p"),o=A("Run this command to enable archival visibility for event histories:"),n=S(),w(r.$$.fragment),s=S(),p&&p.c(),m=W(),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,"This namespace is currently not enabled for archival."),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"Run this command to enable archival visibility for event histories:"),$.forEach(_),n=C(f),y(r.$$.fragment,f),s=C(f),p&&p.l(f),m=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-disabled-title")},m(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),g(f,n,u),E(r,f,u),g(f,s,u),p&&p.m(f,u),g(f,m,u),c=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update --has enabled`),r.$set($),f[0]?p&&(j(),b(p,1,1,()=>{p=null}),D()):p?(p.p(f,u),u&1&&d(p,1)):(p=se(f),p.c(),d(p,1),p.m(m.parentNode,m))},i(f){c||(d(r.$$.fragment,f),d(p),c=!0)},o(f){b(r.$$.fragment,f),b(p),c=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(n),T(r,f),f&&_(s),p&&p.d(f),f&&_(m)}}}function Ze(i){let e,a,t,l,o,n,r,s,m,c,p;return c=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("h1"),a=A(`This namespace is currently enabled for archival but visibility is not enabled.`),t=S(),l=N("p"),o=A("To enable "),n=N("a"),r=A("archival visibility"),s=A(":"),m=S(),w(c.$$.fragment),this.h()},l(f){e=q(f,"H1",{class:!0,"data-testid":!0});var u=I(e);a=F(u,`This namespace is currently enabled for archival but visibility is not enabled.`),u.forEach(_),t=C(f),l=q(f,"P",{});var $=I(l);o=F($,"To enable "),n=q($,"A",{class:!0,href:!0,target:!0,rel:!0});var h=I(n);r=F(h,"archival visibility"),h.forEach(_),s=F($,":"),$.forEach(_),m=C(f),y(c.$$.fragment,f),this.h()},h(){v(e,"class","text-2xl"),v(e,"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(f,u){g(f,e,u),k(e,a),g(f,t,u),g(f,l,u),k(l,o),k(l,n),k(n,r),k(l,s),g(f,m,u),E(c,f,u),p=!0},p(f,u){const $={};u&8&&($.content=`tctl --namespace ${f[3]} namespace update -vas enabled`),c.$set($)},i(f){p||(d(c.$$.fragment,f),p=!0)},o(f){b(c.$$.fragment,f),p=!1},d(f){f&&_(e),f&&_(t),f&&_(l),f&&_(m),T(c,f)}}}function Ge(i){let e,a,t,l,o,n,r,s,m;l=new Me({});const c=[Xe,Je],p=[];function f(u,$){var h;return(h=u[2])!=null&&h.length?0:1}return n=f(i),r=p[n]=c[n](i),{c(){e=N("h1"),a=A("Archived Workflows"),t=S(),w(l.$$.fragment),o=S(),r.c(),s=W(),this.h()},l(u){e=q(u,"H1",{class:!0,"data-testid":!0});var $=I(e);a=F($,"Archived Workflows"),$.forEach(_),t=C(u),y(l.$$.fragment,u),o=C(u),r.l(u),s=W(),this.h()},h(){v(e,"class","text-2xl"),v(e,"data-testid","archived-enabled-title")},m(u,$){g(u,e,$),k(e,a),g(u,t,$),E(l,u,$),g(u,o,$),p[n].m(u,$),g(u,s,$),m=!0},p(u,$){let h=n;n=f(u),n===h?p[n].p(u,$):(j(),b(p[h],1,1,()=>{p[h]=null}),D(),r=p[n],r?r.p(u,$):(r=p[n]=c[n](u),r.c()),d(r,1),r.m(s.parentNode,s))},i(u){m||(d(l.$$.fragment,u),d(r),m=!0)},o(u){b(l.$$.fragment,u),b(r),m=!1},d(u){u&&_(e),u&&_(t),T(l,u),u&&_(o),p[n].d(u),u&&_(s)}}}function se(i){let e,a,t,l,o,n,r,s;return r=new M({props:{content:`tctl --namespace ${i[3]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){e=N("p"),a=A("To enable "),t=N("a"),l=A("archival visibility"),o=A(":"),n=S(),w(r.$$.fragment),this.h()},l(m){e=q(m,"P",{});var c=I(e);a=F(c,"To enable "),t=q(c,"A",{class:!0,href:!0,target:!0,rel:!0});var p=I(t);l=F(p,"archival visibility"),p.forEach(_),o=F(c,":"),c.forEach(_),n=C(m),y(r.$$.fragment,m),this.h()},h(){v(t,"class","text-blue-700 underline"),v(t,"href","https://docs.temporal.io/clusters#archival"),v(t,"target","_blank"),v(t,"rel","noreferrer")},m(m,c){g(m,e,c),k(e,a),k(e,t),k(t,l),k(e,o),g(m,n,c),E(r,m,c),s=!0},p(m,c){const p={};c&8&&(p.content=`tctl --namespace ${m[3]} namespace update -vas enabled`),r.$set(p)},i(m){s||(d(r.$$.fragment,m),s=!0)},o(m){b(r.$$.fragment,m),s=!1},d(m){m&&_(e),m&&_(n),T(r,m)}}}function Je(i){let e,a;return e=new Ae({props:{title:"No Workflows Found",content:"If you have filters applied, try adjusting them."}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p:z,i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function Xe(i){let e,a;return e=new Te({props:{items:i[2],"aria-label":"archived workflows",$$slots:{default:[et,({visibleItems:t})=>({7:t}),({visibleItems:t})=>t?128:0]},$$scope:{ctx:i}}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&4&&(o.items=t[2]),l&2216&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function oe(i){let e,a;return e=new we({props:{workflow:i[8],namespace:i[3],timeFormat:i[5]}}),{c(){w(e.$$.fragment)},l(t){y(e.$$.fragment,t)},m(t,l){E(e,t,l),a=!0},p(t,l){const o={};l&128&&(o.workflow=t[8]),l&8&&(o.namespace=t[3]),l&32&&(o.timeFormat=t[5]),e.$set(o)},i(t){a||(d(e.$$.fragment,t),a=!0)},o(t){b(e.$$.fragment,t),a=!1},d(t){T(e,t)}}}function xe(i){let e,a,t=i[7],l=[];for(let n=0;nb(l[n],1,1,()=>{l[n]=null});return{c(){for(let n=0;n{s[u]=null}),D(),l=s[t],l?l.p(c,p):(l=s[t]=r[t](c),l.c()),d(l,1),l.m(o.parentNode,o))},i(c){n||(d(e.$$.fragment,c),d(l),n=!0)},o(c){b(e.$$.fragment,c),b(l),n=!1},d(c){T(e,c),c&&_(a),s[t].d(c),c&&_(o)}}}function lt(i,e,a){let t,l,o,n,r,s;L(i,K,c=>a(4,r=c)),L(i,Q,c=>a(5,s=c));let{data:m}=e;return i.$$set=c=>{"data"in c&&a(6,m=c.data)},i.$$.update=()=>{i.$$.dirty&64&&a(3,{namespace:{namespaceInfo:{name:t}},workflows:l,archivalEnabled:o,visibilityArchivalEnabled:n}=m,t,(a(2,l),a(6,m)),(a(1,o),a(6,m)),(a(0,n),a(6,m)))},[n,o,l,t,r,s,m]}class $t extends U{constructor(e){super(),H(this,e,lt,tt,V,{data:6})}}export{$t as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c4784de.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c4784de.js deleted file mode 100644 index 8c6992da97..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.8c4784de.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/workflow-service.11be6188.js";import"../chunks/namespaces-service.971cb4c8.js";import{l as t}from"../chunks/_page.a0c99197.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.a0a1f0f0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.a0a1f0f0.js new file mode 100644 index 0000000000..0d63768918 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-archival-page.ts.a0a1f0f0.js @@ -0,0 +1 @@ +import"../chunks/workflow-service.a6d60dde.js";import"../chunks/namespaces-service.9dd6901c.js";import{l as t}from"../chunks/_page.6a136dce.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.83cbd1cd.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.92ac8e22.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.83cbd1cd.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.92ac8e22.js index 10e918c5c7..e1df3deb25 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.83cbd1cd.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.svelte.92ac8e22.js @@ -1 +1 @@ -import{S as ft,b as nt,a as it,G as ct,m as _,p as $,q as m,k as s,u as W,f as T,H as _t,I as $t,J as mt,j as F,g as U,N as et,O as tt,C as z,c as k,w as g,e as Be,D as J,d as S,x as D,E as M,L as i,y as K,h as ut,F as Q,K as Re,o as pt,_ as ht,z as dt,a7 as vt,n as Fe}from"../chunks/index.a36c9cb0.js";import{p as Tt}from"../chunks/stores.48be4ca9.js";import{t as Et,u as bt}from"../chunks/versions.97216320.js";import{l as lt}from"../chunks/namespaces.85dd7810.js";import{s as wt}from"../chunks/search-attributes.b68ffd52.js";import{s as gt}from"../chunks/settings.34723850.js";import{o as at}from"../chunks/format-time.c8c4770b.js";import{P as Dt}from"../chunks/page-title.b9565d2f.js";import{T as ye,a as At}from"../chunks/table-header-row.eb620974.js";import{T as Rt}from"../chunks/table-row.9df8daa0.js";import{B as pe}from"../chunks/badge.7f30446f.js";function kt(f){let e,l,t;const a=f[2].default,r=ct(a,f,f[1],null);return{c(){e=_("div"),r&&r.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var n=m(e);r&&r.l(n),n.forEach(s),this.h()},h(){W(e,"class",l="card bg-white "+f[0].class+" svelte-hm2avd")},m(o,n){T(o,e,n),r&&r.m(e,null),t=!0},p(o,[n]){r&&r.p&&(!t||n&2)&&_t(r,a,o,o[1],t?mt(a,o[1],n,null):$t(o[1]),null),(!t||n&1&&l!==(l="card bg-white "+o[0].class+" svelte-hm2avd"))&&W(e,"class",l)},i(o){t||(F(r,o),t=!0)},o(o){U(r,o),t=!1},d(o){o&&s(e),r&&r.d(o)}}}function St(f,e,l){let{$$slots:t={},$$scope:a}=e;return f.$$set=r=>{l(0,e=et(et({},e),tt(r))),"$$scope"in r&&l(1,a=r.$$scope)},e=tt(e),[e,a,t]}class It extends ft{constructor(e){super(),nt(this,e,St,kt,it,{})}}function st(f,e,l){const t=f.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(f){var t;let e=(t=f[0])!=null&&t.isGlobalNamespace?"Yes":"No",l;return{c(){l=g(e)},l(a){l=D(a,e)},m(a,r){T(a,l,r)},p(a,r){var o;r&1&&e!==(e=(o=a[0])!=null&&o.isGlobalNamespace?"Yes":"No")&&K(l,e)},d(a){a&&s(l)}}}function Ht(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(f){var Ue,Ge,Oe,Pe,je,Ke,qe,Ye,ze,Je;let e,l,t,a,r,o=(((Ge=(Ue=f[0])==null?void 0:Ue.namespaceInfo)==null?void 0:Ge.ownerEmail)||"Unknown")+"",n,u,v,I,V,N,C,b,A,d,y,G,E,R,P=at((Pe=(Oe=f[0])==null?void 0:Oe.config)==null?void 0:Pe.workflowExecutionRetentionTtl.toString())+"",B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe,c,H,Y,se,re,ne,oe,ie=((je=f[0])==null?void 0:je.failoverVersion)+"",he,ve,Z,de,ge,ce,_e,Te,$e;return b=new pe({props:{class:"px-1 py-0",type:f[8]((Ke=f[0])==null?void 0:Ke.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:f}}}),O=new pe({props:{class:"px-1 py-0",type:f[7]((Ye=(qe=f[0])==null?void 0:qe.config)==null?void 0:Ye.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:f}}}),c=new pe({props:{class:"px-1 py-0",type:f[7]((Je=(ze=f[0])==null?void 0:ze.config)==null?void 0:Je.visibilityArchivalState),$$slots:{default:[Vt]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Owner"),a=k(),r=_("td"),n=g(o),u=k(),v=_("tr"),I=_("td"),V=g("Global"),N=k(),C=_("td"),z(b.$$.fragment),A=k(),d=_("tr"),y=_("td"),G=g("Retention Period"),E=k(),R=_("td"),B=g(P),p=k(),w=_("tr"),j=_("td"),te=g("History Archival"),X=k(),x=_("td"),z(O.$$.fragment),ee=k(),q=_("tr"),le=_("td"),ue=g("Visibility Archival"),ae=k(),fe=_("td"),z(c.$$.fragment),H=k(),Y=_("tr"),se=_("td"),re=g("Failover Version"),ne=k(),oe=_("td"),he=g(ie),ve=k(),Z=_("tr"),de=_("td"),ge=g("Clusters"),ce=k(),_e=_("td"),Te=g(f[1]),this.h()},l(h){e=$(h,"TR",{"data-testid":!0});var L=m(e);l=$(L,"TD",{});var De=m(l);t=D(De,"Owner"),De.forEach(s),a=S(L),r=$(L,"TD",{});var Ae=m(r);n=D(Ae,o),Ae.forEach(s),L.forEach(s),u=S(h),v=$(h,"TR",{"data-testid":!0});var me=m(v);I=$(me,"TD",{});var ke=m(I);V=D(ke,"Global"),ke.forEach(s),N=S(me),C=$(me,"TD",{});var Se=m(C);J(b.$$.fragment,Se),Se.forEach(s),me.forEach(s),A=S(h),d=$(h,"TR",{"data-testid":!0});var Ee=m(d);y=$(Ee,"TD",{});var Ie=m(y);G=D(Ie,"Retention Period"),Ie.forEach(s),E=S(Ee),R=$(Ee,"TD",{});var Ce=m(R);B=D(Ce,P),Ce.forEach(s),Ee.forEach(s),p=S(h),w=$(h,"TR",{"data-testid":!0});var be=m(w);j=$(be,"TD",{});var He=m(j);te=D(He,"History Archival"),He.forEach(s),X=S(be),x=$(be,"TD",{});var Ve=m(x);J(O.$$.fragment,Ve),Ve.forEach(s),be.forEach(s),ee=S(h),q=$(h,"TR",{"data-testid":!0});var we=m(q);le=$(we,"TD",{});var Ne=m(le);ue=D(Ne,"Visibility Archival"),Ne.forEach(s),ae=S(we),fe=$(we,"TD",{});var Me=m(fe);J(c.$$.fragment,Me),Me.forEach(s),we.forEach(s),H=S(h),Y=$(h,"TR",{"data-testid":!0});var Le=m(Y);se=$(Le,"TD",{});var Qe=m(se);re=D(Qe,"Failover Version"),Qe.forEach(s),ne=S(Le),oe=$(Le,"TD",{});var Xe=m(oe);he=D(Xe,ie),Xe.forEach(s),Le.forEach(s),ve=S(h),Z=$(h,"TR",{"data-testid":!0});var We=m(Z);de=$(We,"TD",{});var Ze=m(de);ge=D(Ze,"Clusters"),Ze.forEach(s),ce=S(We),_e=$(We,"TD",{});var xe=m(_e);Te=D(xe,f[1]),xe.forEach(s),We.forEach(s),this.h()},h(){W(e,"data-testid","namespace-owner"),W(v,"data-testid","namespace-global"),W(d,"data-testid","namespace-retention"),W(w,"data-testid","namespace-history"),W(q,"data-testid","namespace-visibility"),W(Y,"data-testid","namespace-failover"),W(Z,"data-testid","namespace-clusters")},m(h,L){T(h,e,L),i(e,l),i(l,t),i(e,a),i(e,r),i(r,n),T(h,u,L),T(h,v,L),i(v,I),i(I,V),i(v,N),i(v,C),M(b,C,null),T(h,A,L),T(h,d,L),i(d,y),i(y,G),i(d,E),i(d,R),i(R,B),T(h,p,L),T(h,w,L),i(w,j),i(j,te),i(w,X),i(w,x),M(O,x,null),T(h,ee,L),T(h,q,L),i(q,le),i(le,ue),i(q,ae),i(q,fe),M(c,fe,null),T(h,H,L),T(h,Y,L),i(Y,se),i(se,re),i(Y,ne),i(Y,oe),i(oe,he),T(h,ve,L),T(h,Z,L),i(Z,de),i(de,ge),i(Z,ce),i(Z,_e),i(_e,Te),$e=!0},p(h,L){var ke,Se,Ee,Ie,Ce,be,He,Ve,we,Ne;(!$e||L&1)&&o!==(o=(((Se=(ke=h[0])==null?void 0:ke.namespaceInfo)==null?void 0:Se.ownerEmail)||"Unknown")+"")&&K(n,o);const De={};L&1&&(De.type=h[8]((Ee=h[0])==null?void 0:Ee.isGlobalNamespace,!1)),L&131073&&(De.$$scope={dirty:L,ctx:h}),b.$set(De),(!$e||L&1)&&P!==(P=at((Ce=(Ie=h[0])==null?void 0:Ie.config)==null?void 0:Ce.workflowExecutionRetentionTtl.toString())+"")&&K(B,P);const Ae={};L&1&&(Ae.type=h[7]((He=(be=h[0])==null?void 0:be.config)==null?void 0:He.historyArchivalState)),L&131073&&(Ae.$$scope={dirty:L,ctx:h}),O.$set(Ae);const me={};L&1&&(me.type=h[7]((we=(Ve=h[0])==null?void 0:Ve.config)==null?void 0:we.visibilityArchivalState)),L&131073&&(me.$$scope={dirty:L,ctx:h}),c.$set(me),(!$e||L&1)&&ie!==(ie=((Ne=h[0])==null?void 0:Ne.failoverVersion)+"")&&K(he,ie),(!$e||L&2)&&K(Te,h[1])},i(h){$e||(F(b.$$.fragment,h),F(O.$$.fragment,h),F(c.$$.fragment,h),$e=!0)},o(h){U(b.$$.fragment,h),U(O.$$.fragment,h),U(c.$$.fragment,h),$e=!1},d(h){h&&s(e),h&&s(u),h&&s(v),Q(b),h&&s(A),h&&s(d),h&&s(p),h&&s(w),Q(O),h&&s(ee),h&&s(q),Q(c),h&&s(H),h&&s(Y),h&&s(ve),h&&s(Z)}}}function Lt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Wt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C;return{c(){e=_("tr"),l=_("td"),t=g("Temporal Server Version"),a=k(),r=_("td"),o=g(f[3]),n=k(),u=_("tr"),v=_("td"),I=g("Temporal UI Version"),V=k(),N=_("td"),C=g(f[4]),this.h()},l(b){e=$(b,"TR",{"data-testid":!0});var A=m(e);l=$(A,"TD",{});var d=m(l);t=D(d,"Temporal Server Version"),d.forEach(s),a=S(A),r=$(A,"TD",{});var y=m(r);o=D(y,f[3]),y.forEach(s),A.forEach(s),n=S(b),u=$(b,"TR",{"data-testid":!0});var G=m(u);v=$(G,"TD",{});var E=m(v);I=D(E,"Temporal UI Version"),E.forEach(s),V=S(G),N=$(G,"TD",{});var R=m(N);C=D(R,f[4]),R.forEach(s),G.forEach(s),this.h()},h(){W(e,"data-testid","server-version"),W(u,"data-testid","ui-version")},m(b,A){T(b,e,A),i(e,l),i(l,t),i(e,a),i(e,r),i(r,o),T(b,n,A),T(b,u,A),i(u,v),i(v,I),i(u,V),i(u,N),i(N,C)},p(b,A){A&8&&K(o,b[3]),A&16&&K(C,b[4])},d(b){b&&s(e),b&&s(n),b&&s(u)}}}function yt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/4"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Bt(f){let e=f[9](f[5].disableWriteActions)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ft(f){let e=f[9](f[5].workflowTerminateDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(f){let e=f[9](f[5].workflowCancelDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(f){let e=f[9](f[5].workflowSignalDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ot(f){let e=f[9](f[5].workflowResetDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Pt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G,E,R,P,B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe;return o=new pe({props:{class:"px-1 py-0",type:f[8](f[5].disableWriteActions),$$slots:{default:[Bt]},$$scope:{ctx:f}}}),C=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowTerminateDisabled),$$slots:{default:[Ft]},$$scope:{ctx:f}}}),R=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowCancelDisabled),$$slots:{default:[Ut]},$$scope:{ctx:f}}}),X=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowSignalDisabled),$$slots:{default:[Gt]},$$scope:{ctx:f}}}),ae=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowResetDisabled),$$slots:{default:[Ot]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Client Actions"),a=k(),r=_("td"),z(o.$$.fragment),n=k(),u=_("tr"),v=_("td"),I=g("Terminate Workflow"),V=k(),N=_("td"),z(C.$$.fragment),b=k(),A=_("tr"),d=_("td"),y=g("Cancel Workflow"),G=k(),E=_("td"),z(R.$$.fragment),P=k(),B=_("tr"),p=_("td"),w=g("Signal Workflow"),j=k(),te=_("td"),z(X.$$.fragment),x=k(),O=_("tr"),ee=_("td"),q=g("Reset Workflow"),le=k(),ue=_("td"),z(ae.$$.fragment)},l(c){e=$(c,"TR",{});var H=m(e);l=$(H,"TD",{});var Y=m(l);t=D(Y,"Client Actions"),Y.forEach(s),a=S(H),r=$(H,"TD",{});var se=m(r);J(o.$$.fragment,se),se.forEach(s),H.forEach(s),n=S(c),u=$(c,"TR",{});var re=m(u);v=$(re,"TD",{});var ne=m(v);I=D(ne,"Terminate Workflow"),ne.forEach(s),V=S(re),N=$(re,"TD",{});var oe=m(N);J(C.$$.fragment,oe),oe.forEach(s),re.forEach(s),b=S(c),A=$(c,"TR",{});var ie=m(A);d=$(ie,"TD",{});var he=m(d);y=D(he,"Cancel Workflow"),he.forEach(s),G=S(ie),E=$(ie,"TD",{});var ve=m(E);J(R.$$.fragment,ve),ve.forEach(s),ie.forEach(s),P=S(c),B=$(c,"TR",{});var Z=m(B);p=$(Z,"TD",{});var de=m(p);w=D(de,"Signal Workflow"),de.forEach(s),j=S(Z),te=$(Z,"TD",{});var ge=m(te);J(X.$$.fragment,ge),ge.forEach(s),Z.forEach(s),x=S(c),O=$(c,"TR",{});var ce=m(O);ee=$(ce,"TD",{});var _e=m(ee);q=D(_e,"Reset Workflow"),_e.forEach(s),le=S(ce),ue=$(ce,"TD",{});var Te=m(ue);J(ae.$$.fragment,Te),Te.forEach(s),ce.forEach(s)},m(c,H){T(c,e,H),i(e,l),i(l,t),i(e,a),i(e,r),M(o,r,null),T(c,n,H),T(c,u,H),i(u,v),i(v,I),i(u,V),i(u,N),M(C,N,null),T(c,b,H),T(c,A,H),i(A,d),i(d,y),i(A,G),i(A,E),M(R,E,null),T(c,P,H),T(c,B,H),i(B,p),i(p,w),i(B,j),i(B,te),M(X,te,null),T(c,x,H),T(c,O,H),i(O,ee),i(ee,q),i(O,le),i(O,ue),M(ae,ue,null),fe=!0},p(c,H){const Y={};H&32&&(Y.type=c[8](c[5].disableWriteActions)),H&131104&&(Y.$$scope={dirty:H,ctx:c}),o.$set(Y);const se={};H&32&&(se.type=c[8](c[5].workflowTerminateDisabled)),H&131104&&(se.$$scope={dirty:H,ctx:c}),C.$set(se);const re={};H&32&&(re.type=c[8](c[5].workflowCancelDisabled)),H&131104&&(re.$$scope={dirty:H,ctx:c}),R.$set(re);const ne={};H&32&&(ne.type=c[8](c[5].workflowSignalDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:c}),X.$set(ne);const oe={};H&32&&(oe.type=c[8](c[5].workflowResetDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:c}),ae.$set(oe)},i(c){fe||(F(o.$$.fragment,c),F(C.$$.fragment,c),F(R.$$.fragment,c),F(X.$$.fragment,c),F(ae.$$.fragment,c),fe=!0)},o(c){U(o.$$.fragment,c),U(C.$$.fragment,c),U(R.$$.fragment,c),U(X.$$.fragment,c),U(ae.$$.fragment,c),fe=!1},d(c){c&&s(e),Q(o),c&&s(n),c&&s(u),Q(C),c&&s(b),c&&s(A),Q(R),c&&s(P),c&&s(B),Q(X),c&&s(x),c&&s(O),Q(ae)}}}function jt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Kt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G;return r=new ye({props:{variant:"simple",$$slots:{headers:[Lt],default:[Nt]},$$scope:{ctx:f}}}),V=new ye({props:{variant:"simple",$$slots:{headers:[yt],default:[Wt]},$$scope:{ctx:f}}}),y=new ye({props:{variant:"simple",$$slots:{headers:[jt],default:[Pt]},$$scope:{ctx:f}}}),{c(){e=_("article"),l=_("h3"),t=g("Details"),a=k(),z(r.$$.fragment),o=k(),n=_("article"),u=_("h3"),v=g("Versions"),I=k(),z(V.$$.fragment),N=k(),C=_("article"),b=_("h3"),A=g("Client Actions"),d=k(),z(y.$$.fragment),this.h()},l(E){e=$(E,"ARTICLE",{class:!0});var R=m(e);l=$(R,"H3",{class:!0});var P=m(l);t=D(P,"Details"),P.forEach(s),a=S(R),J(r.$$.fragment,R),R.forEach(s),o=S(E),n=$(E,"ARTICLE",{class:!0});var B=m(n);u=$(B,"H3",{class:!0});var p=m(u);v=D(p,"Versions"),p.forEach(s),I=S(B),J(V.$$.fragment,B),B.forEach(s),N=S(E),C=$(E,"ARTICLE",{class:!0});var w=m(C);b=$(w,"H3",{class:!0});var j=m(b);A=D(j,"Client Actions"),j.forEach(s),d=S(w),J(y.$$.fragment,w),w.forEach(s),this.h()},h(){W(l,"class","text-lg font-medium"),W(e,"class","namespace-info flex w-full flex-col"),W(u,"class","text-lg font-medium"),W(n,"class","namespace-info flex w-full flex-col"),W(b,"class","text-lg font-medium"),W(C,"class","namespace-info flex w-full flex-col")},m(E,R){T(E,e,R),i(e,l),i(l,t),i(e,a),M(r,e,null),T(E,o,R),T(E,n,R),i(n,u),i(u,v),i(n,I),M(V,n,null),T(E,N,R),T(E,C,R),i(C,b),i(b,A),i(C,d),M(y,C,null),G=!0},p(E,R){const P={};R&131075&&(P.$$scope={dirty:R,ctx:E}),r.$set(P);const B={};R&131096&&(B.$$scope={dirty:R,ctx:E}),V.$set(B);const p={};R&131104&&(p.$$scope={dirty:R,ctx:E}),y.$set(p)},i(E){G||(F(r.$$.fragment,E),F(V.$$.fragment,E),F(y.$$.fragment,E),G=!0)},o(E){U(r.$$.fragment,E),U(V.$$.fragment,E),U(y.$$.fragment,E),G=!1},d(E){E&&s(e),Q(r),E&&s(o),E&&s(n),Q(V),E&&s(N),E&&s(C),Q(y)}}}function rt(f){let e,l,t,a,r,o;return r=new ye({props:{class:"w-full",$$slots:{headers:[Jt],default:[Yt]},$$scope:{ctx:f}}}),{c(){e=_("section"),l=_("h3"),t=g("Search Attributes"),a=k(),z(r.$$.fragment),this.h()},l(n){e=$(n,"SECTION",{});var u=m(e);l=$(u,"H3",{class:!0});var v=m(l);t=D(v,"Search Attributes"),v.forEach(s),a=S(u),J(r.$$.fragment,u),u.forEach(s),this.h()},h(){W(l,"class","my-4 text-lg font-medium")},m(n,u){T(n,e,u),i(e,l),i(l,t),i(e,a),M(r,e,null),o=!0},p(n,u){const v={};u&131136&&(v.$$scope={dirty:u,ctx:n}),r.$set(v)},i(n){o||(F(r.$$.fragment,n),o=!0)},o(n){U(r.$$.fragment,n),o=!1},d(n){n&&s(e),Q(r)}}}function qt(f){let e,l=f[13]+"",t,a,r,o=f[14]+"",n,u;return{c(){e=_("td"),t=g(l),a=k(),r=_("td"),n=g(o),u=k()},l(v){e=$(v,"TD",{});var I=m(e);t=D(I,l),I.forEach(s),a=S(v),r=$(v,"TD",{});var V=m(r);n=D(V,o),V.forEach(s),u=S(v)},m(v,I){T(v,e,I),i(e,t),T(v,a,I),T(v,r,I),i(r,n),T(v,u,I)},p(v,I){I&64&&l!==(l=v[13]+"")&&K(t,l),I&64&&o!==(o=v[14]+"")&&K(n,o)},d(v){v&&s(e),v&&s(a),v&&s(r),v&&s(u)}}}function ot(f){let e,l;return e=new Rt({props:{$$slots:{default:[qt]},$$scope:{ctx:f}}}),{c(){z(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,a){M(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(F(e.$$.fragment,t),l=!0)},o(t){U(e.$$.fragment,t),l=!1},d(t){Q(e,t)}}}function Yt(f){let e,l,t=Object.entries(f[6]),a=[];for(let o=0;oU(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;o{d=null}),ut())},i(p){A||(F(e.$$.fragment,p),F(N.$$.fragment,p),F(d),A=!0)},o(p){U(e.$$.fragment,p),U(N.$$.fragment,p),U(d),A=!1},d(p){Q(e,p),p&&s(l),p&&s(t),p&&s(n),p&&s(u),p&&s(V),Q(N,p),p&&s(C),d&&d.d(p),p&&s(b)}}}function Qt(f,e,l){let t,a,r,o,n,u,v,I;Re(f,lt,d=>l(12,r=d)),Re(f,Tt,d=>l(2,o=d)),Re(f,Et,d=>l(3,n=d)),Re(f,bt,d=>l(4,u=d)),Re(f,gt,d=>l(5,v=d)),Re(f,wt,d=>l(6,I=d));let{data:V}=e;var N;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(N||(N={}));const C=d=>d===N.ARCHIVAL_STATE_ENABLED?"green":"default",b=(d,y=!0)=>y?d?"default":"green":d?"green":"default",A=d=>d?"Disabled":"Enabled";return pt(()=>{var d;ht(lt,r=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,r)}),f.$$set=d=>{"data"in d&&l(10,V=d.data)},f.$$.update=()=>{f.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=V,t,(l(1,a),l(10,V)))},[t,a,o,n,u,v,I,C,b,A,V]}class nl extends ft{constructor(e){super(),nt(this,e,Qt,Mt,it,{data:10})}}export{nl as default}; +import{S as ft,b as nt,a as it,G as ct,m as _,p as $,q as m,k as s,u as W,f as T,H as _t,I as $t,J as mt,j as F,g as U,N as et,O as tt,C as z,c as k,w as g,e as Be,D as J,d as S,x as D,E as M,L as i,y as K,h as ut,F as Q,K as Re,o as pt,_ as ht,z as dt,a7 as vt,n as Fe}from"../chunks/index.a36c9cb0.js";import{p as Tt}from"../chunks/stores.4d55fa19.js";import{t as Et,u as bt}from"../chunks/versions.97216320.js";import{l as lt}from"../chunks/namespaces.85dd7810.js";import{s as wt}from"../chunks/search-attributes.b68ffd52.js";import{s as gt}from"../chunks/settings.34723850.js";import{o as at}from"../chunks/format-time.c8c4770b.js";import{P as Dt}from"../chunks/page-title.b9565d2f.js";import{T as ye,a as At}from"../chunks/table-header-row.eb620974.js";import{T as Rt}from"../chunks/table-row.9df8daa0.js";import{B as pe}from"../chunks/badge.7f30446f.js";function kt(f){let e,l,t;const a=f[2].default,r=ct(a,f,f[1],null);return{c(){e=_("div"),r&&r.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var n=m(e);r&&r.l(n),n.forEach(s),this.h()},h(){W(e,"class",l="card bg-white "+f[0].class+" svelte-hm2avd")},m(o,n){T(o,e,n),r&&r.m(e,null),t=!0},p(o,[n]){r&&r.p&&(!t||n&2)&&_t(r,a,o,o[1],t?mt(a,o[1],n,null):$t(o[1]),null),(!t||n&1&&l!==(l="card bg-white "+o[0].class+" svelte-hm2avd"))&&W(e,"class",l)},i(o){t||(F(r,o),t=!0)},o(o){U(r,o),t=!1},d(o){o&&s(e),r&&r.d(o)}}}function St(f,e,l){let{$$slots:t={},$$scope:a}=e;return f.$$set=r=>{l(0,e=et(et({},e),tt(r))),"$$scope"in r&&l(1,a=r.$$scope)},e=tt(e),[e,a,t]}class It extends ft{constructor(e){super(),nt(this,e,St,kt,it,{})}}function st(f,e,l){const t=f.slice();return t[13]=e[l][0],t[14]=e[l][1],t}function Ct(f){var t;let e=(t=f[0])!=null&&t.isGlobalNamespace?"Yes":"No",l;return{c(){l=g(e)},l(a){l=D(a,e)},m(a,r){T(a,l,r)},p(a,r){var o;r&1&&e!==(e=(o=a[0])!=null&&o.isGlobalNamespace?"Yes":"No")&&K(l,e)},d(a){a&&s(l)}}}function Ht(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.historyArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.historyArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Vt(f){var t,a;let e=((a=(t=f[0])==null?void 0:t.config)==null?void 0:a.visibilityArchivalState)+"",l;return{c(){l=g(e)},l(r){l=D(r,e)},m(r,o){T(r,l,o)},p(r,o){var n,u;o&1&&e!==(e=((u=(n=r[0])==null?void 0:n.config)==null?void 0:u.visibilityArchivalState)+"")&&K(l,e)},d(r){r&&s(l)}}}function Nt(f){var Ue,Ge,Oe,Pe,je,Ke,qe,Ye,ze,Je;let e,l,t,a,r,o=(((Ge=(Ue=f[0])==null?void 0:Ue.namespaceInfo)==null?void 0:Ge.ownerEmail)||"Unknown")+"",n,u,v,I,V,N,C,b,A,d,y,G,E,R,P=at((Pe=(Oe=f[0])==null?void 0:Oe.config)==null?void 0:Pe.workflowExecutionRetentionTtl.toString())+"",B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe,c,H,Y,se,re,ne,oe,ie=((je=f[0])==null?void 0:je.failoverVersion)+"",he,ve,Z,de,ge,ce,_e,Te,$e;return b=new pe({props:{class:"px-1 py-0",type:f[8]((Ke=f[0])==null?void 0:Ke.isGlobalNamespace,!1),$$slots:{default:[Ct]},$$scope:{ctx:f}}}),O=new pe({props:{class:"px-1 py-0",type:f[7]((Ye=(qe=f[0])==null?void 0:qe.config)==null?void 0:Ye.historyArchivalState),$$slots:{default:[Ht]},$$scope:{ctx:f}}}),c=new pe({props:{class:"px-1 py-0",type:f[7]((Je=(ze=f[0])==null?void 0:ze.config)==null?void 0:Je.visibilityArchivalState),$$slots:{default:[Vt]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Owner"),a=k(),r=_("td"),n=g(o),u=k(),v=_("tr"),I=_("td"),V=g("Global"),N=k(),C=_("td"),z(b.$$.fragment),A=k(),d=_("tr"),y=_("td"),G=g("Retention Period"),E=k(),R=_("td"),B=g(P),p=k(),w=_("tr"),j=_("td"),te=g("History Archival"),X=k(),x=_("td"),z(O.$$.fragment),ee=k(),q=_("tr"),le=_("td"),ue=g("Visibility Archival"),ae=k(),fe=_("td"),z(c.$$.fragment),H=k(),Y=_("tr"),se=_("td"),re=g("Failover Version"),ne=k(),oe=_("td"),he=g(ie),ve=k(),Z=_("tr"),de=_("td"),ge=g("Clusters"),ce=k(),_e=_("td"),Te=g(f[1]),this.h()},l(h){e=$(h,"TR",{"data-testid":!0});var L=m(e);l=$(L,"TD",{});var De=m(l);t=D(De,"Owner"),De.forEach(s),a=S(L),r=$(L,"TD",{});var Ae=m(r);n=D(Ae,o),Ae.forEach(s),L.forEach(s),u=S(h),v=$(h,"TR",{"data-testid":!0});var me=m(v);I=$(me,"TD",{});var ke=m(I);V=D(ke,"Global"),ke.forEach(s),N=S(me),C=$(me,"TD",{});var Se=m(C);J(b.$$.fragment,Se),Se.forEach(s),me.forEach(s),A=S(h),d=$(h,"TR",{"data-testid":!0});var Ee=m(d);y=$(Ee,"TD",{});var Ie=m(y);G=D(Ie,"Retention Period"),Ie.forEach(s),E=S(Ee),R=$(Ee,"TD",{});var Ce=m(R);B=D(Ce,P),Ce.forEach(s),Ee.forEach(s),p=S(h),w=$(h,"TR",{"data-testid":!0});var be=m(w);j=$(be,"TD",{});var He=m(j);te=D(He,"History Archival"),He.forEach(s),X=S(be),x=$(be,"TD",{});var Ve=m(x);J(O.$$.fragment,Ve),Ve.forEach(s),be.forEach(s),ee=S(h),q=$(h,"TR",{"data-testid":!0});var we=m(q);le=$(we,"TD",{});var Ne=m(le);ue=D(Ne,"Visibility Archival"),Ne.forEach(s),ae=S(we),fe=$(we,"TD",{});var Me=m(fe);J(c.$$.fragment,Me),Me.forEach(s),we.forEach(s),H=S(h),Y=$(h,"TR",{"data-testid":!0});var Le=m(Y);se=$(Le,"TD",{});var Qe=m(se);re=D(Qe,"Failover Version"),Qe.forEach(s),ne=S(Le),oe=$(Le,"TD",{});var Xe=m(oe);he=D(Xe,ie),Xe.forEach(s),Le.forEach(s),ve=S(h),Z=$(h,"TR",{"data-testid":!0});var We=m(Z);de=$(We,"TD",{});var Ze=m(de);ge=D(Ze,"Clusters"),Ze.forEach(s),ce=S(We),_e=$(We,"TD",{});var xe=m(_e);Te=D(xe,f[1]),xe.forEach(s),We.forEach(s),this.h()},h(){W(e,"data-testid","namespace-owner"),W(v,"data-testid","namespace-global"),W(d,"data-testid","namespace-retention"),W(w,"data-testid","namespace-history"),W(q,"data-testid","namespace-visibility"),W(Y,"data-testid","namespace-failover"),W(Z,"data-testid","namespace-clusters")},m(h,L){T(h,e,L),i(e,l),i(l,t),i(e,a),i(e,r),i(r,n),T(h,u,L),T(h,v,L),i(v,I),i(I,V),i(v,N),i(v,C),M(b,C,null),T(h,A,L),T(h,d,L),i(d,y),i(y,G),i(d,E),i(d,R),i(R,B),T(h,p,L),T(h,w,L),i(w,j),i(j,te),i(w,X),i(w,x),M(O,x,null),T(h,ee,L),T(h,q,L),i(q,le),i(le,ue),i(q,ae),i(q,fe),M(c,fe,null),T(h,H,L),T(h,Y,L),i(Y,se),i(se,re),i(Y,ne),i(Y,oe),i(oe,he),T(h,ve,L),T(h,Z,L),i(Z,de),i(de,ge),i(Z,ce),i(Z,_e),i(_e,Te),$e=!0},p(h,L){var ke,Se,Ee,Ie,Ce,be,He,Ve,we,Ne;(!$e||L&1)&&o!==(o=(((Se=(ke=h[0])==null?void 0:ke.namespaceInfo)==null?void 0:Se.ownerEmail)||"Unknown")+"")&&K(n,o);const De={};L&1&&(De.type=h[8]((Ee=h[0])==null?void 0:Ee.isGlobalNamespace,!1)),L&131073&&(De.$$scope={dirty:L,ctx:h}),b.$set(De),(!$e||L&1)&&P!==(P=at((Ce=(Ie=h[0])==null?void 0:Ie.config)==null?void 0:Ce.workflowExecutionRetentionTtl.toString())+"")&&K(B,P);const Ae={};L&1&&(Ae.type=h[7]((He=(be=h[0])==null?void 0:be.config)==null?void 0:He.historyArchivalState)),L&131073&&(Ae.$$scope={dirty:L,ctx:h}),O.$set(Ae);const me={};L&1&&(me.type=h[7]((we=(Ve=h[0])==null?void 0:Ve.config)==null?void 0:we.visibilityArchivalState)),L&131073&&(me.$$scope={dirty:L,ctx:h}),c.$set(me),(!$e||L&1)&&ie!==(ie=((Ne=h[0])==null?void 0:Ne.failoverVersion)+"")&&K(he,ie),(!$e||L&2)&&K(Te,h[1])},i(h){$e||(F(b.$$.fragment,h),F(O.$$.fragment,h),F(c.$$.fragment,h),$e=!0)},o(h){U(b.$$.fragment,h),U(O.$$.fragment,h),U(c.$$.fragment,h),$e=!1},d(h){h&&s(e),h&&s(u),h&&s(v),Q(b),h&&s(A),h&&s(d),h&&s(p),h&&s(w),Q(O),h&&s(ee),h&&s(q),Q(c),h&&s(H),h&&s(Y),h&&s(ve),h&&s(Z)}}}function Lt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Wt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C;return{c(){e=_("tr"),l=_("td"),t=g("Temporal Server Version"),a=k(),r=_("td"),o=g(f[3]),n=k(),u=_("tr"),v=_("td"),I=g("Temporal UI Version"),V=k(),N=_("td"),C=g(f[4]),this.h()},l(b){e=$(b,"TR",{"data-testid":!0});var A=m(e);l=$(A,"TD",{});var d=m(l);t=D(d,"Temporal Server Version"),d.forEach(s),a=S(A),r=$(A,"TD",{});var y=m(r);o=D(y,f[3]),y.forEach(s),A.forEach(s),n=S(b),u=$(b,"TR",{"data-testid":!0});var G=m(u);v=$(G,"TD",{});var E=m(v);I=D(E,"Temporal UI Version"),E.forEach(s),V=S(G),N=$(G,"TD",{});var R=m(N);C=D(R,f[4]),R.forEach(s),G.forEach(s),this.h()},h(){W(e,"data-testid","server-version"),W(u,"data-testid","ui-version")},m(b,A){T(b,e,A),i(e,l),i(l,t),i(e,a),i(e,r),i(r,o),T(b,n,A),T(b,u,A),i(u,v),i(v,I),i(u,V),i(u,N),i(N,C)},p(b,A){A&8&&K(o,b[3]),A&16&&K(C,b[4])},d(b){b&&s(e),b&&s(n),b&&s(u)}}}function yt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/4"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Bt(f){let e=f[9](f[5].disableWriteActions)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].disableWriteActions)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ft(f){let e=f[9](f[5].workflowTerminateDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowTerminateDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ut(f){let e=f[9](f[5].workflowCancelDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowCancelDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Gt(f){let e=f[9](f[5].workflowSignalDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowSignalDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Ot(f){let e=f[9](f[5].workflowResetDisabled)+"",l;return{c(){l=g(e)},l(t){l=D(t,e)},m(t,a){T(t,l,a)},p(t,a){a&32&&e!==(e=t[9](t[5].workflowResetDisabled)+"")&&K(l,e)},d(t){t&&s(l)}}}function Pt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G,E,R,P,B,p,w,j,te,X,x,O,ee,q,le,ue,ae,fe;return o=new pe({props:{class:"px-1 py-0",type:f[8](f[5].disableWriteActions),$$slots:{default:[Bt]},$$scope:{ctx:f}}}),C=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowTerminateDisabled),$$slots:{default:[Ft]},$$scope:{ctx:f}}}),R=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowCancelDisabled),$$slots:{default:[Ut]},$$scope:{ctx:f}}}),X=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowSignalDisabled),$$slots:{default:[Gt]},$$scope:{ctx:f}}}),ae=new pe({props:{class:"px-1 py-0",type:f[8](f[5].workflowResetDisabled),$$slots:{default:[Ot]},$$scope:{ctx:f}}}),{c(){e=_("tr"),l=_("td"),t=g("Client Actions"),a=k(),r=_("td"),z(o.$$.fragment),n=k(),u=_("tr"),v=_("td"),I=g("Terminate Workflow"),V=k(),N=_("td"),z(C.$$.fragment),b=k(),A=_("tr"),d=_("td"),y=g("Cancel Workflow"),G=k(),E=_("td"),z(R.$$.fragment),P=k(),B=_("tr"),p=_("td"),w=g("Signal Workflow"),j=k(),te=_("td"),z(X.$$.fragment),x=k(),O=_("tr"),ee=_("td"),q=g("Reset Workflow"),le=k(),ue=_("td"),z(ae.$$.fragment)},l(c){e=$(c,"TR",{});var H=m(e);l=$(H,"TD",{});var Y=m(l);t=D(Y,"Client Actions"),Y.forEach(s),a=S(H),r=$(H,"TD",{});var se=m(r);J(o.$$.fragment,se),se.forEach(s),H.forEach(s),n=S(c),u=$(c,"TR",{});var re=m(u);v=$(re,"TD",{});var ne=m(v);I=D(ne,"Terminate Workflow"),ne.forEach(s),V=S(re),N=$(re,"TD",{});var oe=m(N);J(C.$$.fragment,oe),oe.forEach(s),re.forEach(s),b=S(c),A=$(c,"TR",{});var ie=m(A);d=$(ie,"TD",{});var he=m(d);y=D(he,"Cancel Workflow"),he.forEach(s),G=S(ie),E=$(ie,"TD",{});var ve=m(E);J(R.$$.fragment,ve),ve.forEach(s),ie.forEach(s),P=S(c),B=$(c,"TR",{});var Z=m(B);p=$(Z,"TD",{});var de=m(p);w=D(de,"Signal Workflow"),de.forEach(s),j=S(Z),te=$(Z,"TD",{});var ge=m(te);J(X.$$.fragment,ge),ge.forEach(s),Z.forEach(s),x=S(c),O=$(c,"TR",{});var ce=m(O);ee=$(ce,"TD",{});var _e=m(ee);q=D(_e,"Reset Workflow"),_e.forEach(s),le=S(ce),ue=$(ce,"TD",{});var Te=m(ue);J(ae.$$.fragment,Te),Te.forEach(s),ce.forEach(s)},m(c,H){T(c,e,H),i(e,l),i(l,t),i(e,a),i(e,r),M(o,r,null),T(c,n,H),T(c,u,H),i(u,v),i(v,I),i(u,V),i(u,N),M(C,N,null),T(c,b,H),T(c,A,H),i(A,d),i(d,y),i(A,G),i(A,E),M(R,E,null),T(c,P,H),T(c,B,H),i(B,p),i(p,w),i(B,j),i(B,te),M(X,te,null),T(c,x,H),T(c,O,H),i(O,ee),i(ee,q),i(O,le),i(O,ue),M(ae,ue,null),fe=!0},p(c,H){const Y={};H&32&&(Y.type=c[8](c[5].disableWriteActions)),H&131104&&(Y.$$scope={dirty:H,ctx:c}),o.$set(Y);const se={};H&32&&(se.type=c[8](c[5].workflowTerminateDisabled)),H&131104&&(se.$$scope={dirty:H,ctx:c}),C.$set(se);const re={};H&32&&(re.type=c[8](c[5].workflowCancelDisabled)),H&131104&&(re.$$scope={dirty:H,ctx:c}),R.$set(re);const ne={};H&32&&(ne.type=c[8](c[5].workflowSignalDisabled)),H&131104&&(ne.$$scope={dirty:H,ctx:c}),X.$set(ne);const oe={};H&32&&(oe.type=c[8](c[5].workflowResetDisabled)),H&131104&&(oe.$$scope={dirty:H,ctx:c}),ae.$set(oe)},i(c){fe||(F(o.$$.fragment,c),F(C.$$.fragment,c),F(R.$$.fragment,c),F(X.$$.fragment,c),F(ae.$$.fragment,c),fe=!0)},o(c){U(o.$$.fragment,c),U(C.$$.fragment,c),U(R.$$.fragment,c),U(X.$$.fragment,c),U(ae.$$.fragment,c),fe=!1},d(c){c&&s(e),Q(o),c&&s(n),c&&s(u),Q(C),c&&s(b),c&&s(A),Q(R),c&&s(P),c&&s(B),Q(X),c&&s(x),c&&s(O),Q(ae)}}}function jt(f){let e,l,t;return{c(){e=_("tr"),l=_("th"),t=_("th"),this.h()},l(a){e=$(a,"TR",{slot:!0});var r=m(e);l=$(r,"TH",{class:!0}),m(l).forEach(s),t=$(r,"TH",{}),m(t).forEach(s),r.forEach(s),this.h()},h(){W(l,"class","w-1/2 lg:w-3/5"),W(e,"slot","headers")},m(a,r){T(a,e,r),i(e,l),i(e,t)},p:Fe,d(a){a&&s(e)}}}function Kt(f){let e,l,t,a,r,o,n,u,v,I,V,N,C,b,A,d,y,G;return r=new ye({props:{variant:"simple",$$slots:{headers:[Lt],default:[Nt]},$$scope:{ctx:f}}}),V=new ye({props:{variant:"simple",$$slots:{headers:[yt],default:[Wt]},$$scope:{ctx:f}}}),y=new ye({props:{variant:"simple",$$slots:{headers:[jt],default:[Pt]},$$scope:{ctx:f}}}),{c(){e=_("article"),l=_("h3"),t=g("Details"),a=k(),z(r.$$.fragment),o=k(),n=_("article"),u=_("h3"),v=g("Versions"),I=k(),z(V.$$.fragment),N=k(),C=_("article"),b=_("h3"),A=g("Client Actions"),d=k(),z(y.$$.fragment),this.h()},l(E){e=$(E,"ARTICLE",{class:!0});var R=m(e);l=$(R,"H3",{class:!0});var P=m(l);t=D(P,"Details"),P.forEach(s),a=S(R),J(r.$$.fragment,R),R.forEach(s),o=S(E),n=$(E,"ARTICLE",{class:!0});var B=m(n);u=$(B,"H3",{class:!0});var p=m(u);v=D(p,"Versions"),p.forEach(s),I=S(B),J(V.$$.fragment,B),B.forEach(s),N=S(E),C=$(E,"ARTICLE",{class:!0});var w=m(C);b=$(w,"H3",{class:!0});var j=m(b);A=D(j,"Client Actions"),j.forEach(s),d=S(w),J(y.$$.fragment,w),w.forEach(s),this.h()},h(){W(l,"class","text-lg font-medium"),W(e,"class","namespace-info flex w-full flex-col"),W(u,"class","text-lg font-medium"),W(n,"class","namespace-info flex w-full flex-col"),W(b,"class","text-lg font-medium"),W(C,"class","namespace-info flex w-full flex-col")},m(E,R){T(E,e,R),i(e,l),i(l,t),i(e,a),M(r,e,null),T(E,o,R),T(E,n,R),i(n,u),i(u,v),i(n,I),M(V,n,null),T(E,N,R),T(E,C,R),i(C,b),i(b,A),i(C,d),M(y,C,null),G=!0},p(E,R){const P={};R&131075&&(P.$$scope={dirty:R,ctx:E}),r.$set(P);const B={};R&131096&&(B.$$scope={dirty:R,ctx:E}),V.$set(B);const p={};R&131104&&(p.$$scope={dirty:R,ctx:E}),y.$set(p)},i(E){G||(F(r.$$.fragment,E),F(V.$$.fragment,E),F(y.$$.fragment,E),G=!0)},o(E){U(r.$$.fragment,E),U(V.$$.fragment,E),U(y.$$.fragment,E),G=!1},d(E){E&&s(e),Q(r),E&&s(o),E&&s(n),Q(V),E&&s(N),E&&s(C),Q(y)}}}function rt(f){let e,l,t,a,r,o;return r=new ye({props:{class:"w-full",$$slots:{headers:[Jt],default:[Yt]},$$scope:{ctx:f}}}),{c(){e=_("section"),l=_("h3"),t=g("Search Attributes"),a=k(),z(r.$$.fragment),this.h()},l(n){e=$(n,"SECTION",{});var u=m(e);l=$(u,"H3",{class:!0});var v=m(l);t=D(v,"Search Attributes"),v.forEach(s),a=S(u),J(r.$$.fragment,u),u.forEach(s),this.h()},h(){W(l,"class","my-4 text-lg font-medium")},m(n,u){T(n,e,u),i(e,l),i(l,t),i(e,a),M(r,e,null),o=!0},p(n,u){const v={};u&131136&&(v.$$scope={dirty:u,ctx:n}),r.$set(v)},i(n){o||(F(r.$$.fragment,n),o=!0)},o(n){U(r.$$.fragment,n),o=!1},d(n){n&&s(e),Q(r)}}}function qt(f){let e,l=f[13]+"",t,a,r,o=f[14]+"",n,u;return{c(){e=_("td"),t=g(l),a=k(),r=_("td"),n=g(o),u=k()},l(v){e=$(v,"TD",{});var I=m(e);t=D(I,l),I.forEach(s),a=S(v),r=$(v,"TD",{});var V=m(r);n=D(V,o),V.forEach(s),u=S(v)},m(v,I){T(v,e,I),i(e,t),T(v,a,I),T(v,r,I),i(r,n),T(v,u,I)},p(v,I){I&64&&l!==(l=v[13]+"")&&K(t,l),I&64&&o!==(o=v[14]+"")&&K(n,o)},d(v){v&&s(e),v&&s(a),v&&s(r),v&&s(u)}}}function ot(f){let e,l;return e=new Rt({props:{$$slots:{default:[qt]},$$scope:{ctx:f}}}),{c(){z(e.$$.fragment)},l(t){J(e.$$.fragment,t)},m(t,a){M(e,t,a),l=!0},p(t,a){const r={};a&131136&&(r.$$scope={dirty:a,ctx:t}),e.$set(r)},i(t){l||(F(e.$$.fragment,t),l=!0)},o(t){U(e.$$.fragment,t),l=!1},d(t){Q(e,t)}}}function Yt(f){let e,l,t=Object.entries(f[6]),a=[];for(let o=0;oU(a[o],1,1,()=>{a[o]=null});return{c(){for(let o=0;o{d=null}),ut())},i(p){A||(F(e.$$.fragment,p),F(N.$$.fragment,p),F(d),A=!0)},o(p){U(e.$$.fragment,p),U(N.$$.fragment,p),U(d),A=!1},d(p){Q(e,p),p&&s(l),p&&s(t),p&&s(n),p&&s(u),p&&s(V),Q(N,p),p&&s(C),d&&d.d(p),p&&s(b)}}}function Qt(f,e,l){let t,a,r,o,n,u,v,I;Re(f,lt,d=>l(12,r=d)),Re(f,Tt,d=>l(2,o=d)),Re(f,Et,d=>l(3,n=d)),Re(f,bt,d=>l(4,u=d)),Re(f,gt,d=>l(5,v=d)),Re(f,wt,d=>l(6,I=d));let{data:V}=e;var N;(function(d){d[d.ARCHIVAL_STATE_UNSPECIFIED=0]="ARCHIVAL_STATE_UNSPECIFIED",d[d.ARCHIVAL_STATE_DISABLED=1]="ARCHIVAL_STATE_DISABLED",d[d.ARCHIVAL_STATE_ENABLED=2]="ARCHIVAL_STATE_ENABLED"})(N||(N={}));const C=d=>d===N.ARCHIVAL_STATE_ENABLED?"green":"default",b=(d,y=!0)=>y?d?"default":"green":d?"green":"default",A=d=>d?"Disabled":"Enabled";return pt(()=>{var d;ht(lt,r=(d=t==null?void 0:t.namespaceInfo)===null||d===void 0?void 0:d.name,r)}),f.$$set=d=>{"data"in d&&l(10,V=d.data)},f.$$.update=()=>{f.$$.dirty&1024&&l(0,{namespace:t,clusters:a}=V,t,(l(1,a),l(10,V)))},[t,a,o,n,u,v,I,C,b,A,V]}class nl extends ft{constructor(e){super(),nt(this,e,Qt,Mt,it,{data:10})}}export{nl as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20b4ba6a.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20b4ba6a.js deleted file mode 100644 index 2098634a0d..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.20b4ba6a.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/namespaces-service.971cb4c8.js";import{l}from"../chunks/_page.0300ab5e.js";export{l as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.8e165bf7.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.8e165bf7.js new file mode 100644 index 0000000000..fce01082fb --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-page.ts.8e165bf7.js @@ -0,0 +1 @@ +import"../chunks/namespaces-service.9dd6901c.js";import{l}from"../chunks/_page.2d2d6704.js";export{l as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.6f3ad57a.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.9092ec53.js similarity index 88% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.6f3ad57a.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.9092ec53.js index de97956254..a7fa7c24ef 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.6f3ad57a.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.9092ec53.js @@ -1 +1 @@ -import{S as g,b as k,a as b,aq as T,e as h,f as w,ar 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.a36c9cb0.js";import{p as E}from"../chunks/stores.0bc9ce95.js";import{P as A}from"../chunks/page-title.b9565d2f.js";import{s as B}from"../chunks/schedules.8e390e1d.js";import{L as G}from"../chunks/loading.bcb9b7b8.js";import{a as H}from"../chunks/schedule-frequency.9f1a589f.js";import{S as J}from"../chunks/schedule-form-view.b6e72c91.js";import{l as V}from"../chunks/route-for.70dfbf18.js";function _(o){o[6]=o[7].schedule}function X(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Y(o){_(o);let t,a;return t=new J({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 Z(o){let t,a;return t=new G({props:{title:"Loading Schedule..."}}),{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 x(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:Z,then:Y,catch:X,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 ee(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:V(n)};return[H(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:L,taskQueue:P,hour:q,minute:O,second:j,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;B({action:{namespace:r,name:F,workflowType:I,workflowId:L,taskQueue:P},spec:{hour:q,minute:O,second:j,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class te extends g{constructor(t){super(),k(this,t,ee,x,b,{})}}function ne(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 te({}),{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 re(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class he extends g{constructor(t){super(),k(this,t,re,ne,b,{})}}export{he as default}; +import{S as g,b as k,a as b,aq as T,e as h,f as w,ar 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.a36c9cb0.js";import{p as E}from"../chunks/stores.4d55fa19.js";import{P as A}from"../chunks/page-title.b9565d2f.js";import{s as B}from"../chunks/schedules.44518418.js";import{L as G}from"../chunks/loading.bcb9b7b8.js";import{a as H}from"../chunks/schedule-frequency.d59b15a7.js";import{S as J}from"../chunks/schedule-form-view.bc5fe269.js";import{l as V}from"../chunks/route-for.e1b7889c.js";function _(o){o[6]=o[7].schedule}function X(o){return{c,l:c,m:c,p:c,i:c,o:c,d:c}}function Y(o){_(o);let t,a;return t=new J({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 Z(o){let t,a;return t=new G({props:{title:"Loading Schedule..."}}),{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 x(o){let t,a,e={ctx:o,current:null,token:null,hasCatch:!1,pending:Z,then:Y,catch:X,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 ee(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:V(n)};return[H(s),($,v,C)=>{const{name:F,workflowType:I,workflowId:L,taskQueue:P,hour:q,minute:O,second:j,phase:D,cronString:K,daysOfWeek:M,daysOfMonth:N,days:Q,months:R}=v;B({action:{namespace:r,name:F,workflowType:I,workflowId:L,taskQueue:P},spec:{hour:q,minute:O,second:j,phase:D,cronString:K},presets:{preset:$,daysOfWeek:M,daysOfMonth:N,months:R,days:Q}},C,n)}]}class te extends g{constructor(t){super(),k(this,t,ee,x,b,{})}}function ne(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 te({}),{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 re(o,t,a){let e;return y(o,E,r=>a(0,e=r)),[e]}class he extends g{constructor(t){super(),k(this,t,re,ne,b,{})}}export{he as default}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e6a92bd3.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e5fae646.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e6a92bd3.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e5fae646.js index 21c62fa68f..84b397746e 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e6a92bd3.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e5fae646.js @@ -1,3 +1,3 @@ -import{S as $e,b as ve,a as ge,m as _,w as E,c as R,p as $,q as v,x as I,k as i,d as D,u as b,f as w,L as c,y as J,n as L,G as Ll,R as dl,H as Ol,I as Bl,J as Gl,j as V,g as y,N as pl,O as ml,C as N,D as F,E as M,F as H,K as Te,e as X,z as ze,a1 as Jl,a2 as zl,h as Ke,aq as Qe,ar as Wl,a7 as Al,T as Xe,_ as xe,P as Kl,A as hl,v as Ql,a9 as _l,V as Xl,r as Yl}from"../chunks/index.a36c9cb0.js";import{p as Cl}from"../chunks/stores.0bc9ce95.js";import{P as Zl}from"../chunks/page-title.b9565d2f.js";import{I as ql}from"../chunks/icon.33859671.js";import{l as et,g as $l,c as Ul,s as xl}from"../chunks/route-for.70dfbf18.js";import{g as vl}from"../chunks/navigation.214139c0.js";import{S as es,a as gl,d as ts,u as ls,p as ss}from"../chunks/schedule-frequency.9f1a589f.js";import{f as me}from"../chunks/format-date.7c274b02.js";import{t as tt}from"../chunks/time-format.dc246788.js";import{l as Je}from"../chunks/schedules.8e390e1d.js";import{W as Nl}from"../chunks/workflow-status.47d31de2.js";import{g as wl}from"../chunks/workflow-service.24d3174e.js";import{E as rs}from"../chunks/empty-state.9fb63265.js";import{L as ns}from"../chunks/link.855bf830.js";import{M as kl}from"../chunks/modal.50ea7269.js";import{S as as}from"../chunks/split-button.207826fc.js";import{L as Fl}from"../chunks/loading.bcb9b7b8.js";import{c as os}from"../chunks/core-user.f8486d3a.js";import"../chunks/toaster.16c48a98.js";function us(n){let e,l,t,r,a;return{c(){e=_("h2"),l=E("Memo"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"H2",{class:!0});var o=v(e);l=I(o,"Memo"),o.forEach(i),t=D(s),r=$(s,"P",{});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,[o]){o&1&&J(a,s[0])},i:L,o:L,d(s){s&&i(e),s&&i(t),s&&i(r)}}}function is(n,e,l){let{notes:t=""}=e;return n.$$set=r=>{"notes"in r&&l(0,t=r.notes)},[t]}class fs extends $e{constructor(e){super(),ve(this,e,is,us,ge,{notes:0})}}function cs(n){let e,l,t;const r=n[3].default,a=Ll(r,n,n[2],null);return{c(){e=_("div"),a&&a.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);a&&a.l(o),o.forEach(i),this.h()},h(){b(e,"class",l="panel bg-white "+n[1].class+" svelte-11fqqfg"),dl(e,"error",n[0])},m(s,o){w(s,e,o),a&&a.m(e,null),t=!0},p(s,[o]){a&&a.p&&(!t||o&4)&&Ol(a,r,s,s[2],t?Gl(r,s[2],o,null):Bl(s[2]),null),(!t||o&2&&l!==(l="panel bg-white "+s[1].class+" svelte-11fqqfg"))&&b(e,"class",l),(!t||o&3)&&dl(e,"error",s[0])},i(s){t||(V(a,s),t=!0)},o(s){y(a,s),t=!1},d(s){s&&i(e),a&&a.d(s)}}}function ds(n,e,l){let{$$slots:t={},$$scope:r}=e,{error:a=!1}=e;return n.$$set=s=>{l(1,e=pl(pl({},e),ml(s))),"error"in s&&l(0,a=s.error),"$$scope"in s&&l(2,r=s.$$scope)},e=ml(e),[a,e,r,t]}class Ye extends $e{constructor(e){super(),ve(this,e,ds,cs,ge,{error:0})}}function bl(n,e,l){const t=n.slice();return t[3]=e[l],t}function ps(n){let e,l,t,r,a=n[3].startWorkflowResult.workflowId+"",s,o,u,f,h=me(n[3].actualTime,n[2])+"",p;return{c(){e=_("div"),l=_("div"),t=R(),r=_("div"),s=E(a),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=v(e);l=$(d,"DIV",{class:!0}),v(l).forEach(i),t=D(d),r=$(d,"DIV",{class:!0});var g=v(r);s=I(g,a),g.forEach(i),o=D(d),u=$(d,"DIV",{class:!0});var q=v(u);f=$(q,"P",{});var C=v(f);p=I(C,h),C.forEach(i),q.forEach(i),d.forEach(i),this.h()},h(){b(l,"class","w-28"),b(r,"class","w-96"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(m,d){w(m,e,d),c(e,l),c(e,t),c(e,r),c(r,s),c(e,o),c(e,u),c(u,f),c(f,p)},p(m,d){d&1&&a!==(a=m[3].startWorkflowResult.workflowId+"")&&J(s,a),d&5&&h!==(h=me(m[3].actualTime,m[2])+"")&&J(p,h)},i:L,o:L,d(m){m&&i(e)}}}function ms(n){let e,l,t,r,a,s,o,u,f,h=me(n[3].actualTime,n[2])+"",p,m;return t=new Nl({props:{status:n[6].status}}),s=new ns({props:{"sveltekit:prefetch":!0,href:$l({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[hs]},$$scope:{ctx:n}}}),{c(){e=_("div"),l=_("div"),N(t.$$.fragment),r=R(),a=_("div"),N(s.$$.fragment),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(d){e=$(d,"DIV",{class:!0});var g=v(e);l=$(g,"DIV",{class:!0});var q=v(l);F(t.$$.fragment,q),q.forEach(i),r=D(g),a=$(g,"DIV",{class:!0});var C=v(a);F(s.$$.fragment,C),C.forEach(i),o=D(g),u=$(g,"DIV",{class:!0});var U=v(u);f=$(U,"P",{});var O=v(f);p=I(O,h),O.forEach(i),U.forEach(i),g.forEach(i),this.h()},h(){b(l,"class","w-28"),b(a,"class","w-auto break-words mx-2"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(d,g){w(d,e,g),c(e,l),M(t,l,null),c(e,r),c(e,a),M(s,a,null),c(e,o),c(e,u),c(u,f),c(f,p),m=!0},p(d,g){const q={};g&3&&(q.status=d[6].status),t.$set(q);const C={};g&3&&(C.href=$l({workflow:d[3].startWorkflowResult.workflowId,run:d[3].startWorkflowResult.runId,namespace:d[1]})),g&129&&(C.$$scope={dirty:g,ctx:d}),s.$set(C),(!m||g&5)&&h!==(h=me(d[3].actualTime,d[2])+"")&&J(p,h)},i(d){m||(V(t.$$.fragment,d),V(s.$$.fragment,d),m=!0)},o(d){y(t.$$.fragment,d),y(s.$$.fragment,d),m=!1},d(d){d&&i(e),H(t),H(s)}}}function hs(n){let e=n[3].startWorkflowResult.workflowId+"",l;return{c(){l=E(e)},l(t){l=I(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function _s(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function El(n,e){let l,t,r,a,s={ctx:e,current:null,token:null,hasCatch:!0,pending:_s,then:ms,catch:ps,value:6,blocks:[,,,]};return Qe(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),s),{key:n,first:null,c(){l=X(),t=X(),s.block.c(),this.h()},l(o){l=X(),t=X(),s.block.l(o),this.h()},h(){this.first=l},m(o,u){w(o,l,u),w(o,t,u),s.block.m(o,s.anchor=u),s.mount=()=>t.parentNode,s.anchor=t,a=!0},p(o,u){e=o,s.ctx=e,u&3&&r!==(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&Qe(r,s)||Wl(s,e,u)},i(o){a||(V(s.block),a=!0)},o(o){for(let u=0;u<3;u+=1){const f=s.blocks[u];y(f)}a=!1},d(o){o&&i(l),o&&i(t),s.block.d(o),s.token=null,s=null}}}function Il(n){let e,l;return e=new rs({props:{title:"No Recent Runs"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function $s(n){let e,l,t,r=[],a=new Map,s,o,u,f=n[0].slice(0,5);const h=m=>{var d,g;return(g=(d=m[3])==null?void 0:d.startWorkflowResult)==null?void 0:g.workflowId};for(let m=0;m{p=null}),Ke()):p?d&1&&V(p,1):(p=Il(),p.c(),V(p,1),p.m(o.parentNode,o))},i(m){if(!u){for(let d=0;dl(2,t=s));let{recentRuns:r=[]}=e,{namespace:a}=e;return n.$$set=s=>{"recentRuns"in s&&l(0,r=s.recentRuns),"namespace"in s&&l(1,a=s.namespace)},[r,a,t]}class ws extends $e{constructor(e){super(),ve(this,e,gs,vs,ge,{recentRuns:0,namespace:1})}}function Sl(n,e,l){const t=n.slice();return t[2]=e[l],t}function Rl(n){let e,l,t=me(n[2],n[1],"from now")+"",r,a;return{c(){e=_("div"),l=_("p"),r=E(t),a=R(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);l=$(o,"P",{});var u=v(l);r=I(u,t),u.forEach(i),a=D(o),o.forEach(i),this.h()},h(){b(e,"class","row svelte-kbuuws")},m(s,o){w(s,e,o),c(e,l),c(l,r),c(e,a)},p(s,o){o&3&&t!==(t=me(s[2],s[1],"from now")+"")&&J(r,t)},d(s){s&&i(e)}}}function ks(n){let e,l,t,r,a=n[0].slice(0,5),s=[];for(let o=0;ol(1,t=a));let{futureRuns:r=[]}=e;return n.$$set=a=>{"futureRuns"in a&&l(0,r=a.futureRuns)},[r,t]}class Is extends $e{constructor(e){super(),ve(this,e,Es,bs,ge,{futureRuns:0})}}function Dl(n){var Ve,oe,Ee,G,Ie,he,ue;let e,l,t=(((Ve=n[0])==null?void 0:Ve.startTime)??"")+"",r,a,s,o,u=(((oe=n[0])==null?void 0:oe.endTime)??"")+"",f,h,p,m,d=(((Ee=n[0])==null?void 0:Ee.jitter)??"")+"",g,q,C,U,O=(((Ie=(G=n[0])==null?void 0:G.excludeCalendar)==null?void 0:Ie[0])??"")+"",te,j,A,K,ee=(((he=n[1])==null?void 0:he.remainingActions)??"")+"",z,P,Y,le,fe=(((ue=n[2])==null?void 0:ue.overlapPolicy)??"")+"",we;return{c(){e=_("p"),l=E("Schedule Start Time: "),r=E(t),a=R(),s=_("p"),o=E("Schedule End Time: "),f=E(u),h=R(),p=_("p"),m=E("Jitter: "),g=E(d),q=R(),C=_("p"),U=E("Exclusion Calendar: "),te=E(O),j=R(),A=_("p"),K=E("Remaining Actions: "),z=E(ee),P=R(),Y=_("p"),le=E("Overlap Policy: "),we=E(fe)},l(S){e=$(S,"P",{});var W=v(e);l=I(W,"Schedule Start Time: "),r=I(W,t),W.forEach(i),a=D(S),s=$(S,"P",{});var se=v(s);o=I(se,"Schedule End Time: "),f=I(se,u),se.forEach(i),h=D(S),p=$(S,"P",{});var Z=v(p);m=I(Z,"Jitter: "),g=I(Z,d),Z.forEach(i),q=D(S),C=$(S,"P",{});var ce=v(C);U=I(ce,"Exclusion Calendar: "),te=I(ce,O),ce.forEach(i),j=D(S),A=$(S,"P",{});var re=v(A);K=I(re,"Remaining Actions: "),z=I(re,ee),re.forEach(i),P=D(S),Y=$(S,"P",{});var x=v(Y);le=I(x,"Overlap Policy: "),we=I(x,fe),x.forEach(i)},m(S,W){w(S,e,W),c(e,l),c(e,r),w(S,a,W),w(S,s,W),c(s,o),c(s,f),w(S,h,W),w(S,p,W),c(p,m),c(p,g),w(S,q,W),w(S,C,W),c(C,U),c(C,te),w(S,j,W),w(S,A,W),c(A,K),c(A,z),w(S,P,W),w(S,Y,W),c(Y,le),c(Y,we)},p(S,W){var se,Z,ce,re,x,ye,_e;W&1&&t!==(t=(((se=S[0])==null?void 0:se.startTime)??"")+"")&&J(r,t),W&1&&u!==(u=(((Z=S[0])==null?void 0:Z.endTime)??"")+"")&&J(f,u),W&1&&d!==(d=(((ce=S[0])==null?void 0:ce.jitter)??"")+"")&&J(g,d),W&1&&O!==(O=(((x=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:x[0])??"")+"")&&J(te,O),W&2&&ee!==(ee=(((ye=S[1])==null?void 0:ye.remainingActions)??"")+"")&&J(z,ee),W&4&&fe!==(fe=(((_e=S[2])==null?void 0:_e.overlapPolicy)??"")+"")&&J(we,fe)},d(S){S&&i(e),S&&i(a),S&&i(s),S&&i(h),S&&i(p),S&&i(q),S&&i(C),S&&i(j),S&&i(A),S&&i(P),S&&i(Y)}}}function Ss(n){let e,l,t,r,a,s,o,u;t=new ql({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let f=n[3]&&Dl(n);return{c(){e=_("button"),l=E("Advanced Settings "),N(t.$$.fragment),r=R(),f&&f.c(),a=X(),this.h()},l(h){e=$(h,"BUTTON",{class:!0});var p=v(e);l=I(p,"Advanced Settings "),F(t.$$.fragment,p),p.forEach(i),r=D(h),f&&f.l(h),a=X(),this.h()},h(){b(e,"class","settings svelte-5rdr1k")},m(h,p){w(h,e,p),c(e,l),M(t,e,null),w(h,r,p),f&&f.m(h,p),w(h,a,p),s=!0,o||(u=Xe(e,"click",n[4]),o=!0)},p(h,[p]){const m={};p&8&&(m.name=h[3]?"chevron-up":"chevron-down"),t.$set(m),h[3]?f?f.p(h,p):(f=Dl(h),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(h){s||(V(t.$$.fragment,h),s=!0)},o(h){y(t.$$.fragment,h),s=!1},d(h){h&&i(e),H(t),h&&i(r),f&&f.d(h),h&&i(a),o=!1,u()}}}function Rs(n,e,l){let{spec:t}=e,{state:r}=e,{policies:a}=e,s=!1;const o=()=>l(3,s=!s);return n.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,r=u.state),"policies"in u&&l(2,a=u.policies)},[t,r,a,s,o]}class Ds extends $e{constructor(e){super(),ve(this,e,Rs,Ss,ge,{spec:0,state:1,policies:2})}}function Ps(n){let e,l,t,r,a;return{c(){e=_("p"),l=E("Error Message"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"P",{class:!0});var o=v(e);l=I(o,"Error Message"),o.forEach(i),t=D(s),r=$(s,"P",{class:!0});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","error-text svelte-1lke5yx"),b(r,"class","error-text svelte-1lke5yx")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,o){o&1&&J(a,s[0])},d(s){s&&i(e),s&&i(t),s&&i(r)}}}function Ts(n){let e,l;return e=new Ye({props:{error:!0,$$slots:{default:[Ps]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&3&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Vs(n,e,l){let{error:t=""}=e;return n.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class ys extends $e{constructor(e){super(),ve(this,e,Vs,Ts,ge,{error:0})}}function Ws(n){let e,l,t,r,a,s;return a=new es({props:{calendar:n[0],interval:n[1],class:"text-base"}}),{c(){e=_("h2"),l=E("Frequency"),t=R(),r=_("div"),N(a.$$.fragment),this.h()},l(o){e=$(o,"H2",{class:!0});var u=v(e);l=I(u,"Frequency"),u.forEach(i),t=D(o),r=$(o,"DIV",{class:!0});var f=v(r);F(a.$$.fragment,f),f.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl"),b(r,"class","pr-2")},m(o,u){w(o,e,u),c(e,l),w(o,t,u),w(o,r,u),M(a,r,null),s=!0},p(o,u){const f={};u&1&&(f.calendar=o[0]),u&2&&(f.interval=o[1]),a.$set(f)},i(o){s||(V(a.$$.fragment,o),s=!0)},o(o){y(a.$$.fragment,o),s=!1},d(o){o&&i(e),o&&i(t),o&&i(r),H(a)}}}function As(n){let e,l;return e=new Ye({props:{$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&7&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Cs(n,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return n.$$set=a=>{"calendar"in a&&l(0,t=a.calendar),"interval"in a&&l(1,r=a.interval)},[t,r]}class qs extends $e{constructor(e){super(),ve(this,e,Cs,As,ge,{calendar:0,interval:1})}}function Pl(n,e,l){const t=n.slice();return t[23]=e[l],t}function Us(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function Ns(n){let e,l,t,r;const a=[Ms,Fs],s=[];function o(u,f){return u[4]?0:1}return e=o(n),l=s[e]=a[e](n),{c(){l.c(),t=X()},l(u){l.l(u),t=X()},m(u,f){s[e].m(u,f),w(u,t,f),r=!0},p(u,f){let h=e;e=o(u),e===h?s[e].p(u,f):(ze(),y(s[h],1,1,()=>{s[h]=null}),Ke(),l=s[e],l?l.p(u,f):(l=s[e]=a[e](u),l.c()),V(l,1),l.m(t.parentNode,t))},i(u){r||(V(l),r=!0)},o(u){y(l),r=!1},d(u){s[e].d(u),u&&i(t)}}}function Fs(n){var lt,st,rt,nt,at,ot,ut,it,ft,ct,dt,pt,mt,ht,_t,$t,vt,gt,wt,kt,bt,Et,It,St,Rt,Dt,Pt,Tt,Vt,yt,Wt,At,Ct,qt,Ut,Nt;let e,l,t,r,a,s,o,u,f,h,p,m,d,g,q,C,U,O,te,j,A=((at=(nt=(rt=(st=(lt=n[22])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:at.name)+"",K,ee,z,P,Y,le=me((ut=(ot=n[22])==null?void 0:ot.info)==null?void 0:ut.createTime,n[5])+"",fe,we,Ve,oe,Ee,G,Ie,he,ue,S,W,se,Z,ce,re,x,ye,_e,ke,Ze,We,be,Be,de,Ge,pe,Ae;r=new ql({props:{name:"chevron-left",class:"inline"}}),f=new Nl({props:{status:(it=n[22])!=null&&it.schedule.state.paused?"Paused":"Running"}});let Q=((ct=(ft=n[22])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Tl(n);oe=new as({props:{position:"right",label:(mt=(pt=(dt=n[22])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&mt.paused?"Unpause":"Pause",id:"schedule-actions",disabled:n[9],$$slots:{default:[Hs]},$$scope:{ctx:n}}}),oe.$on("click",n[14]);let B=((_t=(ht=n[22])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&yl(n);ue=new qs({props:{calendar:(wt=(gt=(vt=($t=n[22])==null?void 0:$t.schedule)==null?void 0:vt.spec)==null?void 0:gt.structuredCalendar)==null?void 0:wt[0],interval:(It=(Et=(bt=(kt=n[22])==null?void 0:kt.schedule)==null?void 0:bt.spec)==null?void 0:Et.interval)==null?void 0:It[0]}}),Z=new ws({props:{namespace:n[6],recentRuns:(Rt=(St=n[22])==null?void 0:St.info)==null?void 0:Rt.recentActions}}),x=new Is({props:{futureRuns:(Pt=(Dt=n[22])==null?void 0:Dt.info)==null?void 0:Pt.futureActionTimes}}),ke=new Ds({props:{spec:(Vt=(Tt=n[22])==null?void 0:Tt.schedule)==null?void 0:Vt.spec,state:(Wt=(yt=n[22])==null?void 0:yt.schedule)==null?void 0:Wt.state,policies:(Ct=(At=n[22])==null?void 0:At.schedule)==null?void 0:Ct.policies}}),be=new fs({props:{notes:(Nt=(Ut=(qt=n[22])==null?void 0:qt.schedule)==null?void 0:Ut.state)==null?void 0:Nt.notes}});function Ml(){return n[17](n[22])}let Hl={confirmType:"primary",confirmText:n[22].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[Ls],title:[js]},$$scope:{ctx:n}};de=new kl({props:Hl}),n[16](de),de.$on("confirmModal",Ml);let jl={confirmType:"destructive",confirmText:"Delete",$$slots:{content:[Bs],title:[Os]},$$scope:{ctx:n}};return pe=new kl({props:jl}),n[18](pe),pe.$on("confirmModal",n[10]),{c(){e=_("header"),l=_("div"),t=_("a"),N(r.$$.fragment),a=E("Back to Schedules"),s=R(),o=_("div"),u=_("h1"),N(f.$$.fragment),h=R(),p=_("p"),m=E(n[7]),d=R(),g=_("div"),q=_("p"),C=E(n[6]),U=R(),O=_("div"),te=R(),j=_("p"),K=E(A),ee=R(),z=_("div"),P=_("p"),Y=E("Created: "),fe=E(le),we=R(),Q&&Q.c(),Ve=R(),N(oe.$$.fragment),Ee=R(),G=_("div"),B&&B.c(),Ie=R(),he=_("div"),N(ue.$$.fragment),S=R(),W=_("div"),se=_("div"),N(Z.$$.fragment),ce=R(),re=_("div"),N(x.$$.fragment),ye=R(),_e=_("div"),N(ke.$$.fragment),Ze=R(),We=_("div"),N(be.$$.fragment),Be=R(),N(de.$$.fragment),Ge=R(),N(pe.$$.fragment),this.h()},l(k){e=$(k,"HEADER",{class:!0});var T=v(e);l=$(T,"DIV",{class:!0});var ne=v(l);t=$(ne,"A",{href:!0,class:!0,style:!0});var Se=v(t);F(r.$$.fragment,Se),a=I(Se,"Back to Schedules"),Se.forEach(i),s=D(ne),o=$(ne,"DIV",{class:!0});var Ce=v(o);u=$(Ce,"H1",{class:!0});var Re=v(u);F(f.$$.fragment,Re),h=D(Re),p=$(Re,"P",{class:!0,"data-testid":!0});var Ue=v(p);m=I(Ue,n[7]),Ue.forEach(i),Re.forEach(i),Ce.forEach(i),d=D(ne),g=$(ne,"DIV",{class:!0});var ie=v(g);q=$(ie,"P",{});var Ne=v(q);C=I(Ne,n[6]),Ne.forEach(i),U=D(ie),O=$(ie,"DIV",{class:!0}),v(O).forEach(i),te=D(ie),j=$(ie,"P",{});var De=v(j);K=I(De,A),De.forEach(i),ie.forEach(i),ee=D(ne),z=$(ne,"DIV",{class:!0});var Fe=v(z);P=$(Fe,"P",{});var qe=v(P);Y=I(qe,"Created: "),fe=I(qe,le),qe.forEach(i),Fe.forEach(i),we=D(ne),Q&&Q.l(ne),ne.forEach(i),Ve=D(T),F(oe.$$.fragment,T),T.forEach(i),Ee=D(k),G=$(k,"DIV",{class:!0});var ae=v(G);B&&B.l(ae),Ie=D(ae),he=$(ae,"DIV",{class:!0});var Me=v(he);F(ue.$$.fragment,Me),Me.forEach(i),S=D(ae),W=$(ae,"DIV",{class:!0});var Pe=v(W);se=$(Pe,"DIV",{class:!0});var He=v(se);F(Z.$$.fragment,He),He.forEach(i),ce=D(Pe),re=$(Pe,"DIV",{class:!0});var je=v(re);F(x.$$.fragment,je),je.forEach(i),Pe.forEach(i),ye=D(ae),_e=$(ae,"DIV",{class:!0});var Le=v(_e);F(ke.$$.fragment,Le),Le.forEach(i),Ze=D(ae),We=$(ae,"DIV",{class:!0});var Oe=v(We);F(be.$$.fragment,Oe),Oe.forEach(i),ae.forEach(i),Be=D(k),F(de.$$.fragment,k),Ge=D(k),F(pe.$$.fragment,k),this.h()},h(){b(t,"href",Ul({namespace:n[6]})),b(t,"class","absolute top-0 back-to-schedules svelte-1pb4ys0"),Ql(t,"left","-0.5rem"),b(p,"class","font-medium select-all"),b(p,"data-testid","schedule-name"),b(u,"class","text-2xl flex relative items-center gap-4"),b(o,"class","flex justify-between items-center mt-8"),b(O,"class","w-1 h-1 rounded-full bg-gray-900"),b(g,"class","flex items-center gap-2 text-sm"),b(z,"class","flex items-center gap-2 text-sm"),b(l,"class","flex flex-col gap-1 relative"),b(e,"class","flex flex-row justify-between gap-4 mb-8"),b(he,"class","w-full xl:w-1/2"),b(se,"class","w-full xl:w-3/4"),b(re,"class","w-full xl:w-1/4"),b(W,"class","flex flex-col xl:flex-row gap-4"),b(_e,"class","w-full xl:w-1/2"),b(We,"class","w-full xl:w-1/2"),b(G,"class","flex flex-col gap-4 pb-24")},m(k,T){w(k,e,T),c(e,l),c(l,t),M(r,t,null),c(t,a),c(l,s),c(l,o),c(o,u),M(f,u,null),c(u,h),c(u,p),c(p,m),c(l,d),c(l,g),c(g,q),c(q,C),c(g,U),c(g,O),c(g,te),c(g,j),c(j,K),c(l,ee),c(l,z),c(z,P),c(P,Y),c(P,fe),c(l,we),Q&&Q.m(l,null),c(e,Ve),M(oe,e,null),w(k,Ee,T),w(k,G,T),B&&B.m(G,null),c(G,Ie),c(G,he),M(ue,he,null),c(G,S),c(G,W),c(W,se),M(Z,se,null),c(W,ce),c(W,re),M(x,re,null),c(G,ye),c(G,_e),M(ke,_e,null),c(G,Ze),c(G,We),M(be,We,null),w(k,Be,T),M(de,k,T),w(k,Ge,T),M(pe,k,T),Ae=!0},p(k,T){var qe,ae,Me,Pe,He,je,Le,Oe,Ft,Mt,Ht,jt,Lt,Ot,Bt,Gt,Jt,zt,Kt,Qt,Xt,Yt,Zt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,il,fl,cl;n=k;const ne={};T&1&&(ne.status=(qe=n[22])!=null&&qe.schedule.state.paused?"Paused":"Running"),f.$set(ne),(!Ae||T&1)&&A!==(A=((je=(He=(Pe=(Me=(ae=n[22])==null?void 0:ae.schedule)==null?void 0:Me.action)==null?void 0:Pe.startWorkflow)==null?void 0:He.workflowType)==null?void 0:je.name)+"")&&J(K,A),(!Ae||T&33)&&le!==(le=me((Oe=(Le=n[22])==null?void 0:Le.info)==null?void 0:Oe.createTime,n[5])+"")&&J(fe,le),(Mt=(Ft=n[22])==null?void 0:Ft.info)!=null&&Mt.updateTime?Q?Q.p(n,T):(Q=Tl(n),Q.c(),Q.m(l,null)):Q&&(Q.d(1),Q=null);const Se={};T&1&&(Se.label=(Lt=(jt=(Ht=n[22])==null?void 0:Ht.schedule)==null?void 0:jt.state)!=null&&Lt.paused?"Unpause":"Pause"),T&67108864&&(Se.$$scope={dirty:T,ctx:n}),oe.$set(Se),(Bt=(Ot=n[22])==null?void 0:Ot.info)!=null&&Bt.invalidScheduleError?B?(B.p(n,T),T&1&&V(B,1)):(B=yl(n),B.c(),V(B,1),B.m(G,Ie)):B&&(ze(),y(B,1,1,()=>{B=null}),Ke());const Ce={};T&1&&(Ce.calendar=(Kt=(zt=(Jt=(Gt=n[22])==null?void 0:Gt.schedule)==null?void 0:Jt.spec)==null?void 0:zt.structuredCalendar)==null?void 0:Kt[0]),T&1&&(Ce.interval=(Zt=(Yt=(Xt=(Qt=n[22])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:Yt.interval)==null?void 0:Zt[0]),ue.$set(Ce);const Re={};T&1&&(Re.recentRuns=(el=(xt=n[22])==null?void 0:xt.info)==null?void 0:el.recentActions),Z.$set(Re);const Ue={};T&1&&(Ue.futureRuns=(ll=(tl=n[22])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),x.$set(Ue);const ie={};T&1&&(ie.spec=(rl=(sl=n[22])==null?void 0:sl.schedule)==null?void 0:rl.spec),T&1&&(ie.state=(al=(nl=n[22])==null?void 0:nl.schedule)==null?void 0:al.state),T&1&&(ie.policies=(ul=(ol=n[22])==null?void 0:ol.schedule)==null?void 0:ul.policies),ke.$set(ie);const Ne={};T&1&&(Ne.notes=(cl=(fl=(il=n[22])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),be.$set(Ne);const De={};T&1&&(De.confirmText=n[22].schedule.state.paused?"Unpause":"Pause"),T&8&&(De.confirmDisabled=!n[3]),T&67108873&&(De.$$scope={dirty:T,ctx:n}),de.$set(De);const Fe={};T&67108864&&(Fe.$$scope={dirty:T,ctx:n}),pe.$set(Fe)},i(k){Ae||(V(r.$$.fragment,k),V(f.$$.fragment,k),V(oe.$$.fragment,k),V(B),V(ue.$$.fragment,k),V(Z.$$.fragment,k),V(x.$$.fragment,k),V(ke.$$.fragment,k),V(be.$$.fragment,k),V(de.$$.fragment,k),V(pe.$$.fragment,k),Ae=!0)},o(k){y(r.$$.fragment,k),y(f.$$.fragment,k),y(oe.$$.fragment,k),y(B),y(ue.$$.fragment,k),y(Z.$$.fragment,k),y(x.$$.fragment,k),y(ke.$$.fragment,k),y(be.$$.fragment,k),y(de.$$.fragment,k),y(pe.$$.fragment,k),Ae=!1},d(k){k&&i(e),H(r),H(f),Q&&Q.d(),H(oe),k&&i(Ee),k&&i(G),B&&B.d(),H(ue),H(Z),H(x),H(ke),H(be),k&&i(Be),n[16](null),H(de,k),k&&i(Ge),n[18](null),H(pe,k)}}}function Ms(n){let e,l;return e=new Fl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p:L,i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Tl(n){var s,o;let e,l,t,r=me((o=(s=n[22])==null?void 0:s.info)==null?void 0:o.updateTime,n[5])+"",a;return{c(){e=_("div"),l=_("p"),t=E("Last updated: "),a=E(r),this.h()},l(u){e=$(u,"DIV",{class:!0});var f=v(e);l=$(f,"P",{});var h=v(l);t=I(h,"Last updated: "),a=I(h,r),h.forEach(i),f.forEach(i),this.h()},h(){b(e,"class","flex items-center gap-2 text-sm")},m(u,f){w(u,e,f),c(e,l),c(l,t),c(l,a)},p(u,f){var h,p;f&33&&r!==(r=me((p=(h=u[22])==null?void 0:h.info)==null?void 0:p.updateTime,u[5])+"")&&J(a,r)},d(u){u&&i(e)}}}function Vl(n){let e,l=n[23].label+"",t,r,a,s;return{c(){e=_("button"),t=E(l),r=R(),this.h()},l(o){e=$(o,"BUTTON",{class:!0});var u=v(e);t=I(u,l),r=D(u),u.forEach(i),this.h()},h(){var o;b(e,"class","cursor-pointer flex gap-2 py-3 px-4 items-center w-full hover:bg-gray-50 "+((o=n[23])==null?void 0:o.class)+" svelte-1pb4ys0")},m(o,u){w(o,e,u),c(e,t),c(e,r),a||(s=Xe(e,"click",n[23].onClick),a=!0)},p(o,u){n=o},d(o){o&&i(e),a=!1,s()}}}function Hs(n){let e,l=n[12],t=[];for(let r=0;r{"notes"in r&&l(0,t=r.notes)},[t]}class fs extends $e{constructor(e){super(),ve(this,e,is,us,ge,{notes:0})}}function cs(n){let e,l,t;const r=n[3].default,a=Ll(r,n,n[2],null);return{c(){e=_("div"),a&&a.c(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);a&&a.l(o),o.forEach(i),this.h()},h(){b(e,"class",l="panel bg-white "+n[1].class+" svelte-11fqqfg"),dl(e,"error",n[0])},m(s,o){w(s,e,o),a&&a.m(e,null),t=!0},p(s,[o]){a&&a.p&&(!t||o&4)&&Ol(a,r,s,s[2],t?Gl(r,s[2],o,null):Bl(s[2]),null),(!t||o&2&&l!==(l="panel bg-white "+s[1].class+" svelte-11fqqfg"))&&b(e,"class",l),(!t||o&3)&&dl(e,"error",s[0])},i(s){t||(V(a,s),t=!0)},o(s){y(a,s),t=!1},d(s){s&&i(e),a&&a.d(s)}}}function ds(n,e,l){let{$$slots:t={},$$scope:r}=e,{error:a=!1}=e;return n.$$set=s=>{l(1,e=pl(pl({},e),ml(s))),"error"in s&&l(0,a=s.error),"$$scope"in s&&l(2,r=s.$$scope)},e=ml(e),[a,e,r,t]}class Ye extends $e{constructor(e){super(),ve(this,e,ds,cs,ge,{error:0})}}function bl(n,e,l){const t=n.slice();return t[3]=e[l],t}function ps(n){let e,l,t,r,a=n[3].startWorkflowResult.workflowId+"",s,o,u,f,h=me(n[3].actualTime,n[2])+"",p;return{c(){e=_("div"),l=_("div"),t=R(),r=_("div"),s=E(a),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=v(e);l=$(d,"DIV",{class:!0}),v(l).forEach(i),t=D(d),r=$(d,"DIV",{class:!0});var g=v(r);s=I(g,a),g.forEach(i),o=D(d),u=$(d,"DIV",{class:!0});var q=v(u);f=$(q,"P",{});var C=v(f);p=I(C,h),C.forEach(i),q.forEach(i),d.forEach(i),this.h()},h(){b(l,"class","w-28"),b(r,"class","w-96"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(m,d){w(m,e,d),c(e,l),c(e,t),c(e,r),c(r,s),c(e,o),c(e,u),c(u,f),c(f,p)},p(m,d){d&1&&a!==(a=m[3].startWorkflowResult.workflowId+"")&&J(s,a),d&5&&h!==(h=me(m[3].actualTime,m[2])+"")&&J(p,h)},i:L,o:L,d(m){m&&i(e)}}}function ms(n){let e,l,t,r,a,s,o,u,f,h=me(n[3].actualTime,n[2])+"",p,m;return t=new Nl({props:{status:n[6].status}}),s=new ns({props:{"sveltekit:prefetch":!0,href:$l({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[hs]},$$scope:{ctx:n}}}),{c(){e=_("div"),l=_("div"),N(t.$$.fragment),r=R(),a=_("div"),N(s.$$.fragment),o=R(),u=_("div"),f=_("p"),p=E(h),this.h()},l(d){e=$(d,"DIV",{class:!0});var g=v(e);l=$(g,"DIV",{class:!0});var q=v(l);F(t.$$.fragment,q),q.forEach(i),r=D(g),a=$(g,"DIV",{class:!0});var C=v(a);F(s.$$.fragment,C),C.forEach(i),o=D(g),u=$(g,"DIV",{class:!0});var U=v(u);f=$(U,"P",{});var O=v(f);p=I(O,h),O.forEach(i),U.forEach(i),g.forEach(i),this.h()},h(){b(l,"class","w-28"),b(a,"class","w-auto break-words mx-2"),b(u,"class","ml-auto"),b(e,"class","row svelte-lqpjgu")},m(d,g){w(d,e,g),c(e,l),M(t,l,null),c(e,r),c(e,a),M(s,a,null),c(e,o),c(e,u),c(u,f),c(f,p),m=!0},p(d,g){const q={};g&3&&(q.status=d[6].status),t.$set(q);const C={};g&3&&(C.href=$l({workflow:d[3].startWorkflowResult.workflowId,run:d[3].startWorkflowResult.runId,namespace:d[1]})),g&129&&(C.$$scope={dirty:g,ctx:d}),s.$set(C),(!m||g&5)&&h!==(h=me(d[3].actualTime,d[2])+"")&&J(p,h)},i(d){m||(V(t.$$.fragment,d),V(s.$$.fragment,d),m=!0)},o(d){y(t.$$.fragment,d),y(s.$$.fragment,d),m=!1},d(d){d&&i(e),H(t),H(s)}}}function hs(n){let e=n[3].startWorkflowResult.workflowId+"",l;return{c(){l=E(e)},l(t){l=I(t,e)},m(t,r){w(t,l,r)},p(t,r){r&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&J(l,e)},d(t){t&&i(l)}}}function _s(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function El(n,e){let l,t,r,a,s={ctx:e,current:null,token:null,hasCatch:!0,pending:_s,then:ms,catch:ps,value:6,blocks:[,,,]};return Qe(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),s),{key:n,first:null,c(){l=X(),t=X(),s.block.c(),this.h()},l(o){l=X(),t=X(),s.block.l(o),this.h()},h(){this.first=l},m(o,u){w(o,l,u),w(o,t,u),s.block.m(o,s.anchor=u),s.mount=()=>t.parentNode,s.anchor=t,a=!0},p(o,u){e=o,s.ctx=e,u&3&&r!==(r=wl({namespace:e[1],workflowId:et(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&Qe(r,s)||Wl(s,e,u)},i(o){a||(V(s.block),a=!0)},o(o){for(let u=0;u<3;u+=1){const f=s.blocks[u];y(f)}a=!1},d(o){o&&i(l),o&&i(t),s.block.d(o),s.token=null,s=null}}}function Il(n){let e,l;return e=new rs({props:{title:"No Recent Runs"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function $s(n){let e,l,t,r=[],a=new Map,s,o,u,f=n[0].slice(0,5);const h=m=>{var d,g;return(g=(d=m[3])==null?void 0:d.startWorkflowResult)==null?void 0:g.workflowId};for(let m=0;m{p=null}),Ke()):p?d&1&&V(p,1):(p=Il(),p.c(),V(p,1),p.m(o.parentNode,o))},i(m){if(!u){for(let d=0;dl(2,t=s));let{recentRuns:r=[]}=e,{namespace:a}=e;return n.$$set=s=>{"recentRuns"in s&&l(0,r=s.recentRuns),"namespace"in s&&l(1,a=s.namespace)},[r,a,t]}class ws extends $e{constructor(e){super(),ve(this,e,gs,vs,ge,{recentRuns:0,namespace:1})}}function Sl(n,e,l){const t=n.slice();return t[2]=e[l],t}function Rl(n){let e,l,t=me(n[2],n[1],"from now")+"",r,a;return{c(){e=_("div"),l=_("p"),r=E(t),a=R(),this.h()},l(s){e=$(s,"DIV",{class:!0});var o=v(e);l=$(o,"P",{});var u=v(l);r=I(u,t),u.forEach(i),a=D(o),o.forEach(i),this.h()},h(){b(e,"class","row svelte-kbuuws")},m(s,o){w(s,e,o),c(e,l),c(l,r),c(e,a)},p(s,o){o&3&&t!==(t=me(s[2],s[1],"from now")+"")&&J(r,t)},d(s){s&&i(e)}}}function ks(n){let e,l,t,r,a=n[0].slice(0,5),s=[];for(let o=0;ol(1,t=a));let{futureRuns:r=[]}=e;return n.$$set=a=>{"futureRuns"in a&&l(0,r=a.futureRuns)},[r,t]}class Is extends $e{constructor(e){super(),ve(this,e,Es,bs,ge,{futureRuns:0})}}function Dl(n){var Ve,oe,Ee,G,Ie,he,ue;let e,l,t=(((Ve=n[0])==null?void 0:Ve.startTime)??"")+"",r,a,s,o,u=(((oe=n[0])==null?void 0:oe.endTime)??"")+"",f,h,p,m,d=(((Ee=n[0])==null?void 0:Ee.jitter)??"")+"",g,q,C,U,O=(((Ie=(G=n[0])==null?void 0:G.excludeCalendar)==null?void 0:Ie[0])??"")+"",te,j,A,K,ee=(((he=n[1])==null?void 0:he.remainingActions)??"")+"",z,P,Y,le,fe=(((ue=n[2])==null?void 0:ue.overlapPolicy)??"")+"",we;return{c(){e=_("p"),l=E("Schedule Start Time: "),r=E(t),a=R(),s=_("p"),o=E("Schedule End Time: "),f=E(u),h=R(),p=_("p"),m=E("Jitter: "),g=E(d),q=R(),C=_("p"),U=E("Exclusion Calendar: "),te=E(O),j=R(),A=_("p"),K=E("Remaining Actions: "),z=E(ee),P=R(),Y=_("p"),le=E("Overlap Policy: "),we=E(fe)},l(S){e=$(S,"P",{});var W=v(e);l=I(W,"Schedule Start Time: "),r=I(W,t),W.forEach(i),a=D(S),s=$(S,"P",{});var se=v(s);o=I(se,"Schedule End Time: "),f=I(se,u),se.forEach(i),h=D(S),p=$(S,"P",{});var Z=v(p);m=I(Z,"Jitter: "),g=I(Z,d),Z.forEach(i),q=D(S),C=$(S,"P",{});var ce=v(C);U=I(ce,"Exclusion Calendar: "),te=I(ce,O),ce.forEach(i),j=D(S),A=$(S,"P",{});var re=v(A);K=I(re,"Remaining Actions: "),z=I(re,ee),re.forEach(i),P=D(S),Y=$(S,"P",{});var x=v(Y);le=I(x,"Overlap Policy: "),we=I(x,fe),x.forEach(i)},m(S,W){w(S,e,W),c(e,l),c(e,r),w(S,a,W),w(S,s,W),c(s,o),c(s,f),w(S,h,W),w(S,p,W),c(p,m),c(p,g),w(S,q,W),w(S,C,W),c(C,U),c(C,te),w(S,j,W),w(S,A,W),c(A,K),c(A,z),w(S,P,W),w(S,Y,W),c(Y,le),c(Y,we)},p(S,W){var se,Z,ce,re,x,ye,_e;W&1&&t!==(t=(((se=S[0])==null?void 0:se.startTime)??"")+"")&&J(r,t),W&1&&u!==(u=(((Z=S[0])==null?void 0:Z.endTime)??"")+"")&&J(f,u),W&1&&d!==(d=(((ce=S[0])==null?void 0:ce.jitter)??"")+"")&&J(g,d),W&1&&O!==(O=(((x=(re=S[0])==null?void 0:re.excludeCalendar)==null?void 0:x[0])??"")+"")&&J(te,O),W&2&&ee!==(ee=(((ye=S[1])==null?void 0:ye.remainingActions)??"")+"")&&J(z,ee),W&4&&fe!==(fe=(((_e=S[2])==null?void 0:_e.overlapPolicy)??"")+"")&&J(we,fe)},d(S){S&&i(e),S&&i(a),S&&i(s),S&&i(h),S&&i(p),S&&i(q),S&&i(C),S&&i(j),S&&i(A),S&&i(P),S&&i(Y)}}}function Ss(n){let e,l,t,r,a,s,o,u;t=new ql({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let f=n[3]&&Dl(n);return{c(){e=_("button"),l=E("Advanced Settings "),N(t.$$.fragment),r=R(),f&&f.c(),a=X(),this.h()},l(h){e=$(h,"BUTTON",{class:!0});var p=v(e);l=I(p,"Advanced Settings "),F(t.$$.fragment,p),p.forEach(i),r=D(h),f&&f.l(h),a=X(),this.h()},h(){b(e,"class","settings svelte-5rdr1k")},m(h,p){w(h,e,p),c(e,l),M(t,e,null),w(h,r,p),f&&f.m(h,p),w(h,a,p),s=!0,o||(u=Xe(e,"click",n[4]),o=!0)},p(h,[p]){const m={};p&8&&(m.name=h[3]?"chevron-up":"chevron-down"),t.$set(m),h[3]?f?f.p(h,p):(f=Dl(h),f.c(),f.m(a.parentNode,a)):f&&(f.d(1),f=null)},i(h){s||(V(t.$$.fragment,h),s=!0)},o(h){y(t.$$.fragment,h),s=!1},d(h){h&&i(e),H(t),h&&i(r),f&&f.d(h),h&&i(a),o=!1,u()}}}function Rs(n,e,l){let{spec:t}=e,{state:r}=e,{policies:a}=e,s=!1;const o=()=>l(3,s=!s);return n.$$set=u=>{"spec"in u&&l(0,t=u.spec),"state"in u&&l(1,r=u.state),"policies"in u&&l(2,a=u.policies)},[t,r,a,s,o]}class Ds extends $e{constructor(e){super(),ve(this,e,Rs,Ss,ge,{spec:0,state:1,policies:2})}}function Ps(n){let e,l,t,r,a;return{c(){e=_("p"),l=E("Error Message"),t=R(),r=_("p"),a=E(n[0]),this.h()},l(s){e=$(s,"P",{class:!0});var o=v(e);l=I(o,"Error Message"),o.forEach(i),t=D(s),r=$(s,"P",{class:!0});var u=v(r);a=I(u,n[0]),u.forEach(i),this.h()},h(){b(e,"class","error-text svelte-1lke5yx"),b(r,"class","error-text svelte-1lke5yx")},m(s,o){w(s,e,o),c(e,l),w(s,t,o),w(s,r,o),c(r,a)},p(s,o){o&1&&J(a,s[0])},d(s){s&&i(e),s&&i(t),s&&i(r)}}}function Ts(n){let e,l;return e=new Ye({props:{error:!0,$$slots:{default:[Ps]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&3&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Vs(n,e,l){let{error:t=""}=e;return n.$$set=r=>{"error"in r&&l(0,t=r.error)},[t]}class ys extends $e{constructor(e){super(),ve(this,e,Vs,Ts,ge,{error:0})}}function Ws(n){let e,l,t,r,a,s;return a=new es({props:{calendar:n[0],interval:n[1],class:"text-base"}}),{c(){e=_("h2"),l=E("Frequency"),t=R(),r=_("div"),N(a.$$.fragment),this.h()},l(o){e=$(o,"H2",{class:!0});var u=v(e);l=I(u,"Frequency"),u.forEach(i),t=D(o),r=$(o,"DIV",{class:!0});var f=v(r);F(a.$$.fragment,f),f.forEach(i),this.h()},h(){b(e,"class","mb-4 text-2xl"),b(r,"class","pr-2")},m(o,u){w(o,e,u),c(e,l),w(o,t,u),w(o,r,u),M(a,r,null),s=!0},p(o,u){const f={};u&1&&(f.calendar=o[0]),u&2&&(f.interval=o[1]),a.$set(f)},i(o){s||(V(a.$$.fragment,o),s=!0)},o(o){y(a.$$.fragment,o),s=!1},d(o){o&&i(e),o&&i(t),o&&i(r),H(a)}}}function As(n){let e,l;return e=new Ye({props:{$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p(t,[r]){const a={};r&7&&(a.$$scope={dirty:r,ctx:t}),e.$set(a)},i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Cs(n,e,l){let{calendar:t=void 0}=e,{interval:r=void 0}=e;return n.$$set=a=>{"calendar"in a&&l(0,t=a.calendar),"interval"in a&&l(1,r=a.interval)},[t,r]}class qs extends $e{constructor(e){super(),ve(this,e,Cs,As,ge,{calendar:0,interval:1})}}function Pl(n,e,l){const t=n.slice();return t[23]=e[l],t}function Us(n){return{c:L,l:L,m:L,p:L,i:L,o:L,d:L}}function Ns(n){let e,l,t,r;const a=[Ms,Fs],s=[];function o(u,f){return u[4]?0:1}return e=o(n),l=s[e]=a[e](n),{c(){l.c(),t=X()},l(u){l.l(u),t=X()},m(u,f){s[e].m(u,f),w(u,t,f),r=!0},p(u,f){let h=e;e=o(u),e===h?s[e].p(u,f):(ze(),y(s[h],1,1,()=>{s[h]=null}),Ke(),l=s[e],l?l.p(u,f):(l=s[e]=a[e](u),l.c()),V(l,1),l.m(t.parentNode,t))},i(u){r||(V(l),r=!0)},o(u){y(l),r=!1},d(u){s[e].d(u),u&&i(t)}}}function Fs(n){var lt,st,rt,nt,at,ot,ut,it,ft,ct,dt,pt,mt,ht,_t,$t,vt,gt,wt,kt,bt,Et,It,St,Rt,Dt,Pt,Tt,Vt,yt,Wt,At,Ct,qt,Ut,Nt;let e,l,t,r,a,s,o,u,f,h,p,m,d,g,q,C,U,O,te,j,A=((at=(nt=(rt=(st=(lt=n[22])==null?void 0:lt.schedule)==null?void 0:st.action)==null?void 0:rt.startWorkflow)==null?void 0:nt.workflowType)==null?void 0:at.name)+"",K,ee,z,P,Y,le=me((ut=(ot=n[22])==null?void 0:ot.info)==null?void 0:ut.createTime,n[5])+"",fe,we,Ve,oe,Ee,G,Ie,he,ue,S,W,se,Z,ce,re,x,ye,_e,ke,Ze,We,be,Be,de,Ge,pe,Ae;r=new ql({props:{name:"chevron-left",class:"inline"}}),f=new Nl({props:{status:(it=n[22])!=null&&it.schedule.state.paused?"Paused":"Running"}});let Q=((ct=(ft=n[22])==null?void 0:ft.info)==null?void 0:ct.updateTime)&&Tl(n);oe=new as({props:{position:"right",label:(mt=(pt=(dt=n[22])==null?void 0:dt.schedule)==null?void 0:pt.state)!=null&&mt.paused?"Unpause":"Pause",id:"schedule-actions",disabled:n[9],$$slots:{default:[Hs]},$$scope:{ctx:n}}}),oe.$on("click",n[14]);let B=((_t=(ht=n[22])==null?void 0:ht.info)==null?void 0:_t.invalidScheduleError)&&yl(n);ue=new qs({props:{calendar:(wt=(gt=(vt=($t=n[22])==null?void 0:$t.schedule)==null?void 0:vt.spec)==null?void 0:gt.structuredCalendar)==null?void 0:wt[0],interval:(It=(Et=(bt=(kt=n[22])==null?void 0:kt.schedule)==null?void 0:bt.spec)==null?void 0:Et.interval)==null?void 0:It[0]}}),Z=new ws({props:{namespace:n[6],recentRuns:(Rt=(St=n[22])==null?void 0:St.info)==null?void 0:Rt.recentActions}}),x=new Is({props:{futureRuns:(Pt=(Dt=n[22])==null?void 0:Dt.info)==null?void 0:Pt.futureActionTimes}}),ke=new Ds({props:{spec:(Vt=(Tt=n[22])==null?void 0:Tt.schedule)==null?void 0:Vt.spec,state:(Wt=(yt=n[22])==null?void 0:yt.schedule)==null?void 0:Wt.state,policies:(Ct=(At=n[22])==null?void 0:At.schedule)==null?void 0:Ct.policies}}),be=new fs({props:{notes:(Nt=(Ut=(qt=n[22])==null?void 0:qt.schedule)==null?void 0:Ut.state)==null?void 0:Nt.notes}});function Ml(){return n[17](n[22])}let Hl={confirmType:"primary",confirmText:n[22].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[Ls],title:[js]},$$scope:{ctx:n}};de=new kl({props:Hl}),n[16](de),de.$on("confirmModal",Ml);let jl={confirmType:"destructive",confirmText:"Delete",$$slots:{content:[Bs],title:[Os]},$$scope:{ctx:n}};return pe=new kl({props:jl}),n[18](pe),pe.$on("confirmModal",n[10]),{c(){e=_("header"),l=_("div"),t=_("a"),N(r.$$.fragment),a=E("Back to Schedules"),s=R(),o=_("div"),u=_("h1"),N(f.$$.fragment),h=R(),p=_("p"),m=E(n[7]),d=R(),g=_("div"),q=_("p"),C=E(n[6]),U=R(),O=_("div"),te=R(),j=_("p"),K=E(A),ee=R(),z=_("div"),P=_("p"),Y=E("Created: "),fe=E(le),we=R(),Q&&Q.c(),Ve=R(),N(oe.$$.fragment),Ee=R(),G=_("div"),B&&B.c(),Ie=R(),he=_("div"),N(ue.$$.fragment),S=R(),W=_("div"),se=_("div"),N(Z.$$.fragment),ce=R(),re=_("div"),N(x.$$.fragment),ye=R(),_e=_("div"),N(ke.$$.fragment),Ze=R(),We=_("div"),N(be.$$.fragment),Be=R(),N(de.$$.fragment),Ge=R(),N(pe.$$.fragment),this.h()},l(k){e=$(k,"HEADER",{class:!0});var T=v(e);l=$(T,"DIV",{class:!0});var ne=v(l);t=$(ne,"A",{href:!0,class:!0,style:!0});var Se=v(t);F(r.$$.fragment,Se),a=I(Se,"Back to Schedules"),Se.forEach(i),s=D(ne),o=$(ne,"DIV",{class:!0});var Ce=v(o);u=$(Ce,"H1",{class:!0});var Re=v(u);F(f.$$.fragment,Re),h=D(Re),p=$(Re,"P",{class:!0,"data-testid":!0});var Ue=v(p);m=I(Ue,n[7]),Ue.forEach(i),Re.forEach(i),Ce.forEach(i),d=D(ne),g=$(ne,"DIV",{class:!0});var ie=v(g);q=$(ie,"P",{});var Ne=v(q);C=I(Ne,n[6]),Ne.forEach(i),U=D(ie),O=$(ie,"DIV",{class:!0}),v(O).forEach(i),te=D(ie),j=$(ie,"P",{});var De=v(j);K=I(De,A),De.forEach(i),ie.forEach(i),ee=D(ne),z=$(ne,"DIV",{class:!0});var Fe=v(z);P=$(Fe,"P",{});var qe=v(P);Y=I(qe,"Created: "),fe=I(qe,le),qe.forEach(i),Fe.forEach(i),we=D(ne),Q&&Q.l(ne),ne.forEach(i),Ve=D(T),F(oe.$$.fragment,T),T.forEach(i),Ee=D(k),G=$(k,"DIV",{class:!0});var ae=v(G);B&&B.l(ae),Ie=D(ae),he=$(ae,"DIV",{class:!0});var Me=v(he);F(ue.$$.fragment,Me),Me.forEach(i),S=D(ae),W=$(ae,"DIV",{class:!0});var Pe=v(W);se=$(Pe,"DIV",{class:!0});var He=v(se);F(Z.$$.fragment,He),He.forEach(i),ce=D(Pe),re=$(Pe,"DIV",{class:!0});var je=v(re);F(x.$$.fragment,je),je.forEach(i),Pe.forEach(i),ye=D(ae),_e=$(ae,"DIV",{class:!0});var Le=v(_e);F(ke.$$.fragment,Le),Le.forEach(i),Ze=D(ae),We=$(ae,"DIV",{class:!0});var Oe=v(We);F(be.$$.fragment,Oe),Oe.forEach(i),ae.forEach(i),Be=D(k),F(de.$$.fragment,k),Ge=D(k),F(pe.$$.fragment,k),this.h()},h(){b(t,"href",Ul({namespace:n[6]})),b(t,"class","absolute top-0 back-to-schedules svelte-1pb4ys0"),Ql(t,"left","-0.5rem"),b(p,"class","font-medium select-all"),b(p,"data-testid","schedule-name"),b(u,"class","text-2xl flex relative items-center gap-4"),b(o,"class","flex justify-between items-center mt-8"),b(O,"class","w-1 h-1 rounded-full bg-gray-900"),b(g,"class","flex items-center gap-2 text-sm"),b(z,"class","flex items-center gap-2 text-sm"),b(l,"class","flex flex-col gap-1 relative"),b(e,"class","flex flex-row justify-between gap-4 mb-8"),b(he,"class","w-full xl:w-1/2"),b(se,"class","w-full xl:w-3/4"),b(re,"class","w-full xl:w-1/4"),b(W,"class","flex flex-col xl:flex-row gap-4"),b(_e,"class","w-full xl:w-1/2"),b(We,"class","w-full xl:w-1/2"),b(G,"class","flex flex-col gap-4 pb-24")},m(k,T){w(k,e,T),c(e,l),c(l,t),M(r,t,null),c(t,a),c(l,s),c(l,o),c(o,u),M(f,u,null),c(u,h),c(u,p),c(p,m),c(l,d),c(l,g),c(g,q),c(q,C),c(g,U),c(g,O),c(g,te),c(g,j),c(j,K),c(l,ee),c(l,z),c(z,P),c(P,Y),c(P,fe),c(l,we),Q&&Q.m(l,null),c(e,Ve),M(oe,e,null),w(k,Ee,T),w(k,G,T),B&&B.m(G,null),c(G,Ie),c(G,he),M(ue,he,null),c(G,S),c(G,W),c(W,se),M(Z,se,null),c(W,ce),c(W,re),M(x,re,null),c(G,ye),c(G,_e),M(ke,_e,null),c(G,Ze),c(G,We),M(be,We,null),w(k,Be,T),M(de,k,T),w(k,Ge,T),M(pe,k,T),Ae=!0},p(k,T){var qe,ae,Me,Pe,He,je,Le,Oe,Ft,Mt,Ht,jt,Lt,Ot,Bt,Gt,Jt,zt,Kt,Qt,Xt,Yt,Zt,xt,el,tl,ll,sl,rl,nl,al,ol,ul,il,fl,cl;n=k;const ne={};T&1&&(ne.status=(qe=n[22])!=null&&qe.schedule.state.paused?"Paused":"Running"),f.$set(ne),(!Ae||T&1)&&A!==(A=((je=(He=(Pe=(Me=(ae=n[22])==null?void 0:ae.schedule)==null?void 0:Me.action)==null?void 0:Pe.startWorkflow)==null?void 0:He.workflowType)==null?void 0:je.name)+"")&&J(K,A),(!Ae||T&33)&&le!==(le=me((Oe=(Le=n[22])==null?void 0:Le.info)==null?void 0:Oe.createTime,n[5])+"")&&J(fe,le),(Mt=(Ft=n[22])==null?void 0:Ft.info)!=null&&Mt.updateTime?Q?Q.p(n,T):(Q=Tl(n),Q.c(),Q.m(l,null)):Q&&(Q.d(1),Q=null);const Se={};T&1&&(Se.label=(Lt=(jt=(Ht=n[22])==null?void 0:Ht.schedule)==null?void 0:jt.state)!=null&&Lt.paused?"Unpause":"Pause"),T&67108864&&(Se.$$scope={dirty:T,ctx:n}),oe.$set(Se),(Bt=(Ot=n[22])==null?void 0:Ot.info)!=null&&Bt.invalidScheduleError?B?(B.p(n,T),T&1&&V(B,1)):(B=yl(n),B.c(),V(B,1),B.m(G,Ie)):B&&(ze(),y(B,1,1,()=>{B=null}),Ke());const Ce={};T&1&&(Ce.calendar=(Kt=(zt=(Jt=(Gt=n[22])==null?void 0:Gt.schedule)==null?void 0:Jt.spec)==null?void 0:zt.structuredCalendar)==null?void 0:Kt[0]),T&1&&(Ce.interval=(Zt=(Yt=(Xt=(Qt=n[22])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:Yt.interval)==null?void 0:Zt[0]),ue.$set(Ce);const Re={};T&1&&(Re.recentRuns=(el=(xt=n[22])==null?void 0:xt.info)==null?void 0:el.recentActions),Z.$set(Re);const Ue={};T&1&&(Ue.futureRuns=(ll=(tl=n[22])==null?void 0:tl.info)==null?void 0:ll.futureActionTimes),x.$set(Ue);const ie={};T&1&&(ie.spec=(rl=(sl=n[22])==null?void 0:sl.schedule)==null?void 0:rl.spec),T&1&&(ie.state=(al=(nl=n[22])==null?void 0:nl.schedule)==null?void 0:al.state),T&1&&(ie.policies=(ul=(ol=n[22])==null?void 0:ol.schedule)==null?void 0:ul.policies),ke.$set(ie);const Ne={};T&1&&(Ne.notes=(cl=(fl=(il=n[22])==null?void 0:il.schedule)==null?void 0:fl.state)==null?void 0:cl.notes),be.$set(Ne);const De={};T&1&&(De.confirmText=n[22].schedule.state.paused?"Unpause":"Pause"),T&8&&(De.confirmDisabled=!n[3]),T&67108873&&(De.$$scope={dirty:T,ctx:n}),de.$set(De);const Fe={};T&67108864&&(Fe.$$scope={dirty:T,ctx:n}),pe.$set(Fe)},i(k){Ae||(V(r.$$.fragment,k),V(f.$$.fragment,k),V(oe.$$.fragment,k),V(B),V(ue.$$.fragment,k),V(Z.$$.fragment,k),V(x.$$.fragment,k),V(ke.$$.fragment,k),V(be.$$.fragment,k),V(de.$$.fragment,k),V(pe.$$.fragment,k),Ae=!0)},o(k){y(r.$$.fragment,k),y(f.$$.fragment,k),y(oe.$$.fragment,k),y(B),y(ue.$$.fragment,k),y(Z.$$.fragment,k),y(x.$$.fragment,k),y(ke.$$.fragment,k),y(be.$$.fragment,k),y(de.$$.fragment,k),y(pe.$$.fragment,k),Ae=!1},d(k){k&&i(e),H(r),H(f),Q&&Q.d(),H(oe),k&&i(Ee),k&&i(G),B&&B.d(),H(ue),H(Z),H(x),H(ke),H(be),k&&i(Be),n[16](null),H(de,k),k&&i(Ge),n[18](null),H(pe,k)}}}function Ms(n){let e,l;return e=new Fl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){N(e.$$.fragment)},l(t){F(e.$$.fragment,t)},m(t,r){M(e,t,r),l=!0},p:L,i(t){l||(V(e.$$.fragment,t),l=!0)},o(t){y(e.$$.fragment,t),l=!1},d(t){H(e,t)}}}function Tl(n){var s,o;let e,l,t,r=me((o=(s=n[22])==null?void 0:s.info)==null?void 0:o.updateTime,n[5])+"",a;return{c(){e=_("div"),l=_("p"),t=E("Last updated: "),a=E(r),this.h()},l(u){e=$(u,"DIV",{class:!0});var f=v(e);l=$(f,"P",{});var h=v(l);t=I(h,"Last updated: "),a=I(h,r),h.forEach(i),f.forEach(i),this.h()},h(){b(e,"class","flex items-center gap-2 text-sm")},m(u,f){w(u,e,f),c(e,l),c(l,t),c(l,a)},p(u,f){var h,p;f&33&&r!==(r=me((p=(h=u[22])==null?void 0:h.info)==null?void 0:p.updateTime,u[5])+"")&&J(a,r)},d(u){u&&i(e)}}}function Vl(n){let e,l=n[23].label+"",t,r,a,s;return{c(){e=_("button"),t=E(l),r=R(),this.h()},l(o){e=$(o,"BUTTON",{class:!0});var u=v(e);t=I(u,l),r=D(u),u.forEach(i),this.h()},h(){var o;b(e,"class","cursor-pointer flex gap-2 py-3 px-4 items-center w-full hover:bg-gray-50 "+((o=n[23])==null?void 0:o.class)+" svelte-1pb4ys0")},m(o,u){w(o,e,u),c(e,t),c(e,r),a||(s=Xe(e,"click",n[23].onClick),a=!0)},p(o,u){n=o},d(o){o&&i(e),a=!1,s()}}}function Hs(n){let e,l=n[12],t=[];for(let r=0;re.parentNode,r.anchor=e,t=!0},p(a,[s]){n=a,r.ctx=n,s&1&&l!==(l=n[0])&&Qe(l,r)||Wl(r,n,s)},i(a){t||(V(r.block),t=!0)},o(a){for(let s=0;s<3;s+=1){const o=r.blocks[s];y(o)}t=!1},d(a){a&&i(e),r.block.d(a),r.token=null,r=null}}}function zs(n,e,l){let t,r,a,s;Te(n,Je,P=>l(4,t=P)),Te(n,Cl,P=>l(20,a=P)),Te(n,tt,P=>l(5,s=P));let o=a.params.namespace,u=a.params.schedule;const f={namespace:o,scheduleId:et(u)};let h=gl(f),p,m,d="",g=os();Te(n,g,P=>l(19,r=P));let q=r.namespaceWriteDisabled(o);const C=async()=>{try{xe(Je,t=!0,t),await ts({namespace:o,scheduleId:u}),m.close(),setTimeout(()=>{xe(Je,t=!1,t),vl(Ul({namespace:o}))},2e3)}catch(P){m.setError(`Cannot delete schedule. ${P==null?void 0:P.message}`),xe(Je,t=!1,t)}},U=async P=>{var Y,le;!((le=(Y=P==null?void 0:P.schedule)===null||Y===void 0?void 0:Y.state)===null||le===void 0)&&le.paused?await ls({namespace:o,scheduleId:u,reason:d}):await ss({namespace:o,scheduleId:u,reason:d}),l(0,h=gl(f,fetch)),p.close(),l(3,d="")};let O=[{label:"Edit",onClick:()=>vl(xl({namespace:o,scheduleId:u})),class:"edit"},{label:"Delete Schedule",onClick:()=>m.open(),class:"text-red-500 terminate"}];function te(P){Kl.call(this,n,P)}const j=()=>p.open();function A(){d=this.value,l(3,d)}function K(P){hl[P?"unshift":"push"](()=>{p=P,l(1,p)})}const ee=P=>U(P);function z(P){hl[P?"unshift":"push"](()=>{m=P,l(2,m)})}return[h,p,m,d,t,s,o,u,g,q,C,U,O,te,j,A,K,ee,z]}class Ks extends $e{constructor(e){super(),ve(this,e,zs,Js,ge,{})}}function Qs(n){let e,l,t,r;return e=new Zl({props:{title:`Schedule | ${n[1]}`,url:n[0].url.href}}),t=new Ks({}),{c(){N(e.$$.fragment),l=R(),N(t.$$.fragment)},l(a){F(e.$$.fragment,a),l=D(a),F(t.$$.fragment,a)},m(a,s){M(e,a,s),w(a,l,s),M(t,a,s),r=!0},p(a,[s]){const o={};s&1&&(o.url=a[0].url.href),e.$set(o)},i(a){r||(V(e.$$.fragment,a),V(t.$$.fragment,a),r=!0)},o(a){y(e.$$.fragment,a),y(t.$$.fragment,a),r=!1},d(a){H(e,a),a&&i(l),H(t,a)}}}function Xs(n,e,l){let t;Te(n,Cl,a=>l(0,t=a));const r=t.params.schedule;return[t,r]}class _r extends $e{constructor(e){super(),ve(this,e,Xs,Qs,ge,{})}}export{_r as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.eb0e8412.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.f0825f49.js similarity index 88% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.eb0e8412.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.f0825f49.js index 5b79b375b1..ed19dbae5b 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.eb0e8412.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-create-page.svelte.f0825f49.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.a36c9cb0.js";import{p as h}from"../chunks/stores.48be4ca9.js";import{a as Q}from"../chunks/schedules.b90ce875.js";import{S as T}from"../chunks/schedule-form-view.811c5f7d.js";import{P as W}from"../chunks/page-title.b9565d2f.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;Q({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 W({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.a36c9cb0.js";import{p as h}from"../chunks/stores.4d55fa19.js";import{a as Q}from"../chunks/schedules.44518418.js";import{S as T}from"../chunks/schedule-form-view.bc5fe269.js";import{P as W}from"../chunks/page-title.b9565d2f.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;Q({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 W({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/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.53550ef7.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.4b0c2447.js similarity index 98% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.53550ef7.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.4b0c2447.js index d632d44316..ef58229501 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.53550ef7.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-schedules-page.svelte.4b0c2447.js @@ -1 +1 @@ -import{S as ne,b as ae,a as oe,C as k,D as T,E,j as g,g as b,F as S,G as Ve,H as je,I as ze,J as Ge,m as C,w as B,c as W,p as P,q as N,x as U,k as i,d as F,u as L,f as d,L as A,n as G,K as O,y as Y,z as se,h as re,a7 as ie,N as De,O as Re,A as Je,Y as Ke,Z as Oe,aq as Ce,e as Z,ar as ye,_ as ue}from"../chunks/index.a36c9cb0.js";import{p as me}from"../chunks/stores.0bc9ce95.js";import{E as Ye}from"../chunks/empty-state.9fb63265.js";import{P as xe}from"../chunks/pagination.69c5aeb5.js";import{B as Ze}from"../chunks/button.dbc76a4c.js";import{B as et}from"../chunks/badge.7f30446f.js";import{L as tt}from"../chunks/loading.bcb9b7b8.js";import{I as lt}from"../chunks/input.a193633b.js";import{g as st}from"../chunks/navigation.214139c0.js";import{p as rt,g as Pe,q as nt}from"../chunks/route-for.70dfbf18.js";import{S as at,f as ot}from"../chunks/schedule-frequency.9f1a589f.js";import{T as ft,a as ut}from"../chunks/table-header-row.eb620974.js";import{t as le}from"../chunks/time-format.dc246788.js";import{f as fe}from"../chunks/format-date.7c274b02.js";import{W as ct}from"../chunks/workflow-status.47d31de2.js";import{L as it}from"../chunks/link.855bf830.js";import{T as Qe}from"../chunks/table-row.9df8daa0.js";import{c as Ne}from"../chunks/format-camel-case.960a78f9.js";import{I as mt}from"../chunks/icon.33859671.js";import{M as $t,a as _t,b as pt}from"../chunks/menu.c922b8b1.js";import{c as dt}from"../chunks/core-user.f8486d3a.js";import{M as ce}from"../chunks/menu-item.4122979b.js";import{P as ht}from"../chunks/page-title.b9565d2f.js";function gt(n){let e;const l=n[0].default,t=Ve(l,n,n[1],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&2)&&je(t,l,s,s[1],e?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function bt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;return{c(){e=C("th"),l=B("Status"),t=W(),s=C("th"),r=B("Schedule Name"),u=W(),a=C("th"),f=B("Workflow Type"),o=W(),c=C("th"),p=B("Recent Runs"),I=W(),D=C("th"),H=B("Upcoming Runs"),this.h()},l($){e=P($,"TH",{class:!0});var _=N(e);l=U(_,"Status"),_.forEach(i),t=F($),s=P($,"TH",{class:!0});var h=N(s);r=U(h,"Schedule Name"),h.forEach(i),u=F($),a=P($,"TH",{class:!0});var R=N(a);f=U(R,"Workflow Type"),R.forEach(i),o=F($),c=P($,"TH",{class:!0});var M=N(c);p=U(M,"Recent Runs"),M.forEach(i),I=F($),D=P($,"TH",{class:!0});var z=N(D);H=U(z,"Upcoming Runs"),z.forEach(i),this.h()},h(){L(e,"class","w-28"),L(s,"class","md:w-80 xl:w-auto"),L(a,"class","w-60 max-md:hidden xl:w-80"),L(c,"class","w-56 max-xl:hidden"),L(D,"class","w-56 max-xl:hidden")},m($,_){d($,e,_),A(e,l),d($,t,_),d($,s,_),A(s,r),d($,u,_),d($,a,_),A(a,f),d($,o,_),d($,c,_),A(c,p),d($,I,_),d($,D,_),A(D,H)},p:G,d($){$&&i(e),$&&i(t),$&&i(s),$&&i(u),$&&i(a),$&&i(o),$&&i(c),$&&i(I),$&&i(D)}}}function wt(n){let e,l;return e=new ut({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function vt(n){let e,l;return e=new ft({props:{class:"table-fixed",$$slots:{headers:[wt],default:[gt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function kt(n,e,l){let{$$slots:t={},$$scope:s}=e;return n.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[t,s]}class Tt extends ne{constructor(e){super(),ae(this,e,kt,vt,oe,{})}}function qe(n,e,l){const t=n.slice();return t[12]=e[l],t}function Le(n,e,l){const t=n.slice();return t[12]=e[l],t}function Et(n){var t;let e=fe((t=n[12])==null?void 0:t.actualTime,n[1])+"",l;return{c(){l=B(e)},l(s){l=U(s,e)},m(s,r){d(s,l,r)},p(s,r){var u;r&3&&e!==(e=fe((u=s[12])==null?void 0:u.actualTime,s[1])+"")&&Y(l,e)},d(s){s&&i(l)}}}function We(n){var r,u,a,f;let e,l,t,s;return l=new it({props:{href:Pe({namespace:n[2],workflow:(u=(r=n[12])==null?void 0:r.startWorkflowResult)==null?void 0:u.workflowId,run:(f=(a=n[12])==null?void 0:a.startWorkflowResult)==null?void 0:f.runId}),$$slots:{default:[Et]},$$scope:{ctx:n}}}),{c(){e=C("p"),k(l.$$.fragment),t=W()},l(o){e=P(o,"P",{});var c=N(e);T(l.$$.fragment,c),t=F(c),c.forEach(i)},m(o,c){d(o,e,c),E(l,e,null),A(e,t),s=!0},p(o,c){var I,D,H,$;const p={};c&1&&(p.href=Pe({namespace:o[2],workflow:(D=(I=o[12])==null?void 0:I.startWorkflowResult)==null?void 0:D.workflowId,run:($=(H=o[12])==null?void 0:H.startWorkflowResult)==null?void 0:$.runId})),c&131075&&(p.$$scope={dirty:c,ctx:o}),l.$set(p)},i(o){s||(g(l.$$.fragment,o),s=!0)},o(o){b(l.$$.fragment,o),s=!1},d(o){o&&i(e),S(l)}}}function Fe(n){let e,l=fe(n[12],n[1],"from now")+"",t;return{c(){e=C("div"),t=B(l)},l(s){e=P(s,"DIV",{});var r=N(e);t=U(r,l),r.forEach(i)},m(s,r){d(s,e,r),A(e,t)},p(s,r){r&3&&l!==(l=fe(s[12],s[1],"from now")+"")&&Y(t,l)},d(s){s&&i(e)}}}function St(n){var $e,_e,pe,de,he,ge,be,we,ve,ke;let e,l,t,s,r,u=n[0].scheduleId+"",a,f,o,c,p,I,D=(((pe=(_e=($e=n[0])==null?void 0:$e.info)==null?void 0:_e.workflowType)==null?void 0:pe.name)??"")+"",H,$,_,h,R,M;l=new ct({props:{status:(he=(de=n[0])==null?void 0:de.info)!=null&&he.paused?"Paused":"Running"}}),c=new at({props:{calendar:n[3],interval:n[4],class:"text-sm"}});let z=n[5]((be=(ge=n[0])==null?void 0:ge.info)==null?void 0:be.recentActions),q=[];for(let m=0;mb(q[m],1,1,()=>{q[m]=null});let K=((ke=(ve=(we=n[0])==null?void 0:we.info)==null?void 0:ve.futureActionTimes)==null?void 0:ke.slice(0,5))??[],V=[];for(let m=0;ml(10,t=$)),O(n,le,$=>l(1,s=$));var r,u,a;let{namespace:f}=t.params,{schedule:o}=e;const c=(r=o==null?void 0:o.info)===null||r===void 0?void 0:r.spec,p=(u=c==null?void 0:c.structuredCalendar)===null||u===void 0?void 0:u[0],I=(a=c==null?void 0:c.interval)===null||a===void 0?void 0:a[0],D=$=>{var _;return(_=$==null?void 0:$.sort((h,R)=>new Date(R.actualTime).getTime()-new Date(h.actualTime).getTime()).slice(0,5))!==null&&_!==void 0?_:[]},H=()=>rt({namespace:f,scheduleId:o==null?void 0:o.scheduleId});return n.$$set=$=>{"schedule"in $&&l(0,o=$.schedule)},[o,s,f,p,I,D,H]}class Rt extends ne{constructor(e){super(),ae(this,e,Dt,It,oe,{schedule:0})}}function He(n){let e,l,t;return l=new mt({props:{name:n[2]}}),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(s){e=P(s,"DIV",{class:!0});var r=N(e);T(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(e,"class","ml-2 flex items-center")},m(s,r){d(s,e,r),E(l,e,null),t=!0},p(s,r){const u={};r&4&&(u.name=s[2]),l.$set(u)},i(s){t||(g(l.$$.fragment,s),t=!0)},o(s){b(l.$$.fragment,s),t=!1},d(s){s&&i(e),S(l)}}}function Ct(n){let e,l,t,s,r=n[2]&&He(n);return{c(){r&&r.c(),e=W(),l=C("span"),t=B(n[0]),this.h()},l(u){r&&r.l(u),e=F(u),l=P(u,"SPAN",{class:!0});var a=N(l);t=U(a,n[0]),a.forEach(i),this.h()},h(){L(l,"class","ml-2 mr-8")},m(u,a){r&&r.m(u,a),d(u,e,a),d(u,l,a),A(l,t),s=!0},p(u,a){u[2]?r?(r.p(u,a),a&4&&g(r,1)):(r=He(u),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(se(),b(r,1,1,()=>{r=null}),re()),(!s||a&1)&&Y(t,u[0])},i(u){s||(g(r),s=!0)},o(u){b(r),s=!1},d(u){r&&r.d(u),u&&i(e),u&&i(l)}}}function Pt(n){let e;const l=n[6].default,t=Ve(l,n,n[8],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&256)&&je(t,l,s,s[8],e?Ge(l,s[8],r,null):ze(s[8]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function Nt(n){let e,l,t,s,r;function u(f){n[7](f)}let a={class:"flex flex-row items-center rounded-lg border border-gray-900 bg-white p-2",controls:n[1],disabled:n[3],hasIndicator:!n[3],$$slots:{default:[Ct]},$$scope:{ctx:n}};return n[4]!==void 0&&(a.show=n[4]),e=new _t({props:a}),Je.push(()=>Ke(e,"show",u)),s=new pt({props:{class:"min-w-max",id:n[1],show:n[4],$$slots:{default:[Pt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment),t=W(),k(s.$$.fragment)},l(f){T(e.$$.fragment,f),t=F(f),T(s.$$.fragment,f)},m(f,o){E(e,f,o),d(f,t,o),E(s,f,o),r=!0},p(f,o){const c={};o&2&&(c.controls=f[1]),o&8&&(c.disabled=f[3]),o&8&&(c.hasIndicator=!f[3]),o&261&&(c.$$scope={dirty:o,ctx:f}),!l&&o&16&&(l=!0,c.show=f[4],Oe(()=>l=!1)),e.$set(c);const p={};o&2&&(p.id=f[1]),o&16&&(p.show=f[4]),o&256&&(p.$$scope={dirty:o,ctx:f}),s.$set(p)},i(f){r||(g(e.$$.fragment,f),g(s.$$.fragment,f),r=!0)},o(f){b(e.$$.fragment,f),b(s.$$.fragment,f),r=!1},d(f){S(e,f),f&&i(t),S(s,f)}}}function qt(n){let e,l;return e=new $t({props:{class:n[5].class,$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&32&&(r.class=t[5].class),s&287&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Lt(n,e,l){let{$$slots:t={},$$scope:s}=e,{label:r}=e,{id:u}=e,{icon:a=null}=e,{readonly:f=!1}=e,o=!1;function c(p){o=p,l(4,o)}return n.$$set=p=>{l(5,e=De(De({},e),Re(p))),"label"in p&&l(0,r=p.label),"id"in p&&l(1,u=p.id),"icon"in p&&l(2,a=p.icon),"readonly"in p&&l(3,f=p.readonly),"$$scope"in p&&l(8,s=p.$$scope)},e=Re(e),[r,u,a,f,o,e,t,c,s]}class Wt extends ne{constructor(e){super(),ae(this,e,Lt,qt,oe,{label:0,id:1,icon:2,readonly:3})}}function Ae(n){n[14]=n[16].schedules,n[15]=n[16].error}function Be(n,e,l){const t=n.slice();return t[18]=e[l],t}function Ft(n){let e;return{c(){e=B("Beta")},l(l){e=U(l,"Beta")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ht(n){let e;return{c(){e=B("Create Schedule")},l(l){e=U(l,"Create Schedule")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function At(n){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function Bt(n){Ae(n);let e,l,t,s;const r=[Mt,Ut],u=[];function a(f,o){var c;return(c=f[14])!=null&&c.length?0:1}return e=a(n),l=u[e]=r[e](n),{c(){l.c(),t=Z()},l(f){l.l(f),t=Z()},m(f,o){u[e].m(f,o),d(f,t,o),s=!0},p(f,o){Ae(f);let c=e;e=a(f),e===c?u[e].p(f,o):(se(),b(u[c],1,1,()=>{u[c]=null}),re(),l=u[e],l?l.p(f,o):(l=u[e]=r[e](f),l.c()),g(l,1),l.m(t.parentNode,t))},i(f){s||(g(l),s=!0)},o(f){b(l),s=!1},d(f){u[e].d(f),f&&i(t)}}}function Ut(n){let e,l,t,s,r;return l=new Ye({props:{title:"No Schedules Found",content:xt,error:n[15]}}),s=new Ze({props:{as:"anchor",target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Vt]},$$scope:{ctx:n}}}),{c(){e=C("div"),k(l.$$.fragment),t=W(),k(s.$$.fragment),this.h()},l(u){e=P(u,"DIV",{class:!0});var a=N(e);T(l.$$.fragment,a),t=F(a),T(s.$$.fragment,a),a.forEach(i),this.h()},h(){L(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(u,a){d(u,e,a),E(l,e,null),A(e,t),E(s,e,null),r=!0},p(u,a){const f={};a&16&&(f.error=u[15]),l.$set(f);const o={};a&2097152&&(o.$$scope={dirty:a,ctx:u}),s.$set(o)},i(u){r||(g(l.$$.fragment,u),g(s.$$.fragment,u),r=!0)},o(u){b(l.$$.fragment,u),b(s.$$.fragment,u),r=!1},d(u){u&&i(e),S(l),S(s)}}}function Mt(n){let e,l;return e=new xe({props:{items:n[2](n[14]),"aria-label":"schedules",$$slots:{"action-top-right":[Qt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],"action-top-left":[Jt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],default:[Gt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&20&&(r.items=t[2](t[14])),s&2228257&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Vt(n){let e;return{c(){e=B("Get Started With Docs")},l(l){e=U(l,"Get Started With Docs")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ue(n){let e,l;return e=new Qe({props:{$$slots:{default:[jt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2097152&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function jt(n){let e,l,t,s,r,u,a,f;return s=new Ye({props:{title:"No Schedules Found",content:"Try a different search"}}),{c(){e=C("td"),l=W(),t=C("td"),k(s.$$.fragment),r=W(),u=C("td"),a=W(),this.h()},l(o){e=P(o,"TD",{class:!0}),N(e).forEach(i),l=F(o),t=P(o,"TD",{colspan:!0});var c=N(t);T(s.$$.fragment,c),c.forEach(i),r=F(o),u=P(o,"TD",{class:!0}),N(u).forEach(i),a=F(o),this.h()},h(){L(e,"class","hidden xl:table-cell"),L(t,"colspan","3"),L(u,"class","hidden xl:table-cell")},m(o,c){d(o,e,c),d(o,l,c),d(o,t,c),E(s,t,null),d(o,r,c),d(o,u,c),d(o,a,c),f=!0},p:G,i(o){f||(g(s.$$.fragment,o),f=!0)},o(o){b(s.$$.fragment,o),f=!1},d(o){o&&i(e),o&&i(l),o&&i(t),S(s),o&&i(r),o&&i(u),o&&i(a)}}}function Me(n){let e,l;return e=new Rt({props:{schedule:n[18]}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&131072&&(r.schedule=t[18]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function zt(n){let e,l,t=n[17],s=[];for(let a=0;ab(s[a],1,1,()=>{s[a]=null});let u=null;return t.length||(u=Ue(n)),{c(){for(let a=0;a{u=null}),re()):(u=Ue(a),u.c(),g(u,1),u.m(e.parentNode,e))}},i(a){if(!l){for(let f=0;fKe(l,"value",r)),l.$on("submit",G),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(a){e=P(a,"DIV",{class:!0});var f=N(e);T(l.$$.fragment,f),f.forEach(i),this.h()},h(){L(e,"class","w-full xl:w-1/2")},m(a,f){d(a,e,f),E(l,e,null),s=!0},p(a,f){const o={};!t&&f&1&&(t=!0,o.value=a[0],Oe(()=>t=!1)),l.$set(o)},i(a){s||(g(l.$$.fragment,a),s=!0)},o(a){b(l.$$.fragment,a),s=!1},d(a){a&&i(e),S(l)}}}function Kt(n){let e;return{c(){e=B("Relative")},l(l){e=U(l,"Relative")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ot(n){let e;return{c(){e=B("UTC")},l(l){e=U(l,"UTC")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Yt(n){let e;return{c(){e=B("Local")},l(l){e=U(l,"Local")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Zt(n){let e,l,t,s,r,u;return e=new ce({props:{$$slots:{default:[Kt]},$$scope:{ctx:n}}}),e.$on("click",n[10]),t=new ce({props:{$$slots:{default:[Ot]},$$scope:{ctx:n}}}),t.$on("click",n[11]),r=new ce({props:{$$slots:{default:[Yt]},$$scope:{ctx:n}}}),r.$on("click",n[12]),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment),s=W(),k(r.$$.fragment)},l(a){T(e.$$.fragment,a),l=F(a),T(t.$$.fragment,a),s=F(a),T(r.$$.fragment,a)},m(a,f){E(e,a,f),d(a,l,f),E(t,a,f),d(a,s,f),E(r,a,f),u=!0},p(a,f){const o={};f&2097152&&(o.$$scope={dirty:f,ctx:a}),e.$set(o);const c={};f&2097152&&(c.$$scope={dirty:f,ctx:a}),t.$set(c);const p={};f&2097152&&(p.$$scope={dirty:f,ctx:a}),r.$set(p)},i(a){u||(g(e.$$.fragment,a),g(t.$$.fragment,a),g(r.$$.fragment,a),u=!0)},o(a){b(e.$$.fragment,a),b(t.$$.fragment,a),b(r.$$.fragment,a),u=!1},d(a){S(e,a),a&&i(l),S(t,a),a&&i(s),S(r,a)}}}function Qt(n){let e,l;return e=new Wt({props:{id:"timezone",label:Ne(n[5]),icon:"clock",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&32&&(r.label=Ne(t[5])),s&2097184&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Xt(n){let e,l;return e=new tt({}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p:G,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function yt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;r=new et({props:{type:"beta",$$slots:{default:[Ft]},$$scope:{ctx:n}}}),c=new Ze({props:{class:"h-10",testId:"create-schedule",disabled:n[3],$$slots:{default:[Ht]},$$scope:{ctx:n}}}),c.$on("click",n[9]);let $={ctx:n,current:null,token:null,hasCatch:!1,pending:Xt,then:Bt,catch:At,value:16,blocks:[,,,]};return Ce(D=n[4],$),{c(){e=C("header"),l=C("div"),t=C("h1"),s=B("Schedules"),k(r.$$.fragment),u=W(),a=C("p"),f=B(n[1]),o=W(),k(c.$$.fragment),p=W(),I=Z(),$.block.c(),this.h()},l(_){e=P(_,"HEADER",{class:!0});var h=N(e);l=P(h,"DIV",{});var R=N(l);t=P(R,"H1",{class:!0});var M=N(t);s=U(M,"Schedules"),T(r.$$.fragment,M),M.forEach(i),u=F(R),a=P(R,"P",{class:!0,"data-testid":!0});var z=N(a);f=U(z,n[1]),z.forEach(i),R.forEach(i),o=F(h),T(c.$$.fragment,h),h.forEach(i),p=F(_),I=Z(),$.block.l(_),this.h()},h(){L(t,"class","flex items-center gap-2 text-2xl"),L(a,"class","text-sm text-gray-600"),L(a,"data-testid","namespace-name"),L(e,"class","flex flex-col justify-between gap-2 md:flex-row")},m(_,h){d(_,e,h),A(e,l),A(l,t),A(t,s),E(r,t,null),A(l,u),A(l,a),A(a,f),A(e,o),E(c,e,null),d(_,p,h),d(_,I,h),$.block.m(_,$.anchor=h),$.mount=()=>I.parentNode,$.anchor=I,H=!0},p(_,[h]){n=_;const R={};h&2097152&&(R.$$scope={dirty:h,ctx:n}),r.$set(R),(!H||h&2)&&Y(f,n[1]);const M={};h&8&&(M.disabled=n[3]),h&2097152&&(M.$$scope={dirty:h,ctx:n}),c.$set(M),$.ctx=n,h&16&&D!==(D=n[4])&&Ce(D,$)||ye($,n,h)},i(_){H||(g(r.$$.fragment,_),g(c.$$.fragment,_),g($.block),H=!0)},o(_){b(r.$$.fragment,_),b(c.$$.fragment,_);for(let h=0;h<3;h+=1){const R=$.blocks[h];b(R)}H=!1},d(_){_&&i(e),S(r),S(c),_&&i(p),_&&i(I),$.block.d(_),$.token=null,$=null}}}const xt="Create scheduled actions using our Public API or TCTL (CLI).";function el(n,e,l){let t,s,r,u,a,f,o;O(n,me,h=>l(8,f=h)),O(n,le,h=>l(5,o=h));let c=dt();O(n,c,h=>l(7,a=h));let p="";const I=()=>st(nt({namespace:t})),D=()=>ue(le,o="relative",o),H=()=>ue(le,o="UTC",o),$=()=>ue(le,o="local",o);function _(h){p=h,l(0,p)}return n.$$.update=()=>{n.$$.dirty&256&&l(1,t=f.params.namespace),n.$$.dirty&2&&l(4,s=ot(t)),n.$$.dirty&130&&l(3,r=a.namespaceWriteDisabled(t)),n.$$.dirty&1&&l(2,u=h=>p?h.filter(R=>R.scheduleId.toLowerCase().includes(p.toLowerCase())):h)},[p,t,u,r,s,o,c,a,f,I,D,H,$,_]}class tl extends ne{constructor(e){super(),ae(this,e,el,yt,oe,{})}}function ll(n){let e,l,t,s;return e=new ht({props:{title:`Schedules | ${n[0].params.namespace}`,url:n[0].url.href}}),t=new tl({}),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment)},l(r){T(e.$$.fragment,r),l=F(r),T(t.$$.fragment,r)},m(r,u){E(e,r,u),d(r,l,u),E(t,r,u),s=!0},p(r,[u]){const a={};u&1&&(a.title=`Schedules | ${r[0].params.namespace}`),u&1&&(a.url=r[0].url.href),e.$set(a)},i(r){s||(g(e.$$.fragment,r),g(t.$$.fragment,r),s=!0)},o(r){b(e.$$.fragment,r),b(t.$$.fragment,r),s=!1},d(r){S(e,r),r&&i(l),S(t,r)}}}function sl(n,e,l){let t;return O(n,me,s=>l(0,t=s)),[t]}class Dl extends ne{constructor(e){super(),ae(this,e,sl,ll,oe,{})}}export{Dl as default}; +import{S as ne,b as ae,a as oe,C as k,D as T,E,j as g,g as b,F as S,G as Ve,H as je,I as ze,J as Ge,m as C,w as B,c as W,p as P,q as N,x as U,k as i,d as F,u as L,f as d,L as A,n as G,K as O,y as Y,z as se,h as re,a7 as ie,N as De,O as Re,A as Je,Y as Ke,Z as Oe,aq as Ce,e as Z,ar as ye,_ as ue}from"../chunks/index.a36c9cb0.js";import{p as me}from"../chunks/stores.4d55fa19.js";import{E as Ye}from"../chunks/empty-state.9fb63265.js";import{P as xe}from"../chunks/pagination.6f9a2b9c.js";import{B as Ze}from"../chunks/button.dbc76a4c.js";import{B as et}from"../chunks/badge.7f30446f.js";import{L as tt}from"../chunks/loading.bcb9b7b8.js";import{I as lt}from"../chunks/input.a193633b.js";import{g as st}from"../chunks/navigation.0861544c.js";import{p as rt,g as Pe,q as nt}from"../chunks/route-for.e1b7889c.js";import{S as at,f as ot}from"../chunks/schedule-frequency.d59b15a7.js";import{T as ft,a as ut}from"../chunks/table-header-row.eb620974.js";import{t as le}from"../chunks/time-format.dc246788.js";import{f as fe}from"../chunks/format-date.7c274b02.js";import{W as ct}from"../chunks/workflow-status.47d31de2.js";import{L as it}from"../chunks/link.855bf830.js";import{T as Qe}from"../chunks/table-row.9df8daa0.js";import{c as Ne}from"../chunks/format-camel-case.960a78f9.js";import{I as mt}from"../chunks/icon.33859671.js";import{M as $t,a as _t,b as pt}from"../chunks/menu.c922b8b1.js";import{c as dt}from"../chunks/core-user.f8486d3a.js";import{M as ce}from"../chunks/menu-item.4122979b.js";import{P as ht}from"../chunks/page-title.b9565d2f.js";function gt(n){let e;const l=n[0].default,t=Ve(l,n,n[1],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&2)&&je(t,l,s,s[1],e?Ge(l,s[1],r,null):ze(s[1]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function bt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;return{c(){e=C("th"),l=B("Status"),t=W(),s=C("th"),r=B("Schedule Name"),u=W(),a=C("th"),f=B("Workflow Type"),o=W(),c=C("th"),p=B("Recent Runs"),I=W(),D=C("th"),H=B("Upcoming Runs"),this.h()},l($){e=P($,"TH",{class:!0});var _=N(e);l=U(_,"Status"),_.forEach(i),t=F($),s=P($,"TH",{class:!0});var h=N(s);r=U(h,"Schedule Name"),h.forEach(i),u=F($),a=P($,"TH",{class:!0});var R=N(a);f=U(R,"Workflow Type"),R.forEach(i),o=F($),c=P($,"TH",{class:!0});var M=N(c);p=U(M,"Recent Runs"),M.forEach(i),I=F($),D=P($,"TH",{class:!0});var z=N(D);H=U(z,"Upcoming Runs"),z.forEach(i),this.h()},h(){L(e,"class","w-28"),L(s,"class","md:w-80 xl:w-auto"),L(a,"class","w-60 max-md:hidden xl:w-80"),L(c,"class","w-56 max-xl:hidden"),L(D,"class","w-56 max-xl:hidden")},m($,_){d($,e,_),A(e,l),d($,t,_),d($,s,_),A(s,r),d($,u,_),d($,a,_),A(a,f),d($,o,_),d($,c,_),A(c,p),d($,I,_),d($,D,_),A(D,H)},p:G,d($){$&&i(e),$&&i(t),$&&i(s),$&&i(u),$&&i(a),$&&i(o),$&&i(c),$&&i(I),$&&i(D)}}}function wt(n){let e,l;return e=new ut({props:{slot:"headers",$$slots:{default:[bt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function vt(n){let e,l;return e=new ft({props:{class:"table-fixed",$$slots:{headers:[wt],default:[gt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&2&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function kt(n,e,l){let{$$slots:t={},$$scope:s}=e;return n.$$set=r=>{"$$scope"in r&&l(1,s=r.$$scope)},[t,s]}class Tt extends ne{constructor(e){super(),ae(this,e,kt,vt,oe,{})}}function qe(n,e,l){const t=n.slice();return t[12]=e[l],t}function Le(n,e,l){const t=n.slice();return t[12]=e[l],t}function Et(n){var t;let e=fe((t=n[12])==null?void 0:t.actualTime,n[1])+"",l;return{c(){l=B(e)},l(s){l=U(s,e)},m(s,r){d(s,l,r)},p(s,r){var u;r&3&&e!==(e=fe((u=s[12])==null?void 0:u.actualTime,s[1])+"")&&Y(l,e)},d(s){s&&i(l)}}}function We(n){var r,u,a,f;let e,l,t,s;return l=new it({props:{href:Pe({namespace:n[2],workflow:(u=(r=n[12])==null?void 0:r.startWorkflowResult)==null?void 0:u.workflowId,run:(f=(a=n[12])==null?void 0:a.startWorkflowResult)==null?void 0:f.runId}),$$slots:{default:[Et]},$$scope:{ctx:n}}}),{c(){e=C("p"),k(l.$$.fragment),t=W()},l(o){e=P(o,"P",{});var c=N(e);T(l.$$.fragment,c),t=F(c),c.forEach(i)},m(o,c){d(o,e,c),E(l,e,null),A(e,t),s=!0},p(o,c){var I,D,H,$;const p={};c&1&&(p.href=Pe({namespace:o[2],workflow:(D=(I=o[12])==null?void 0:I.startWorkflowResult)==null?void 0:D.workflowId,run:($=(H=o[12])==null?void 0:H.startWorkflowResult)==null?void 0:$.runId})),c&131075&&(p.$$scope={dirty:c,ctx:o}),l.$set(p)},i(o){s||(g(l.$$.fragment,o),s=!0)},o(o){b(l.$$.fragment,o),s=!1},d(o){o&&i(e),S(l)}}}function Fe(n){let e,l=fe(n[12],n[1],"from now")+"",t;return{c(){e=C("div"),t=B(l)},l(s){e=P(s,"DIV",{});var r=N(e);t=U(r,l),r.forEach(i)},m(s,r){d(s,e,r),A(e,t)},p(s,r){r&3&&l!==(l=fe(s[12],s[1],"from now")+"")&&Y(t,l)},d(s){s&&i(e)}}}function St(n){var $e,_e,pe,de,he,ge,be,we,ve,ke;let e,l,t,s,r,u=n[0].scheduleId+"",a,f,o,c,p,I,D=(((pe=(_e=($e=n[0])==null?void 0:$e.info)==null?void 0:_e.workflowType)==null?void 0:pe.name)??"")+"",H,$,_,h,R,M;l=new ct({props:{status:(he=(de=n[0])==null?void 0:de.info)!=null&&he.paused?"Paused":"Running"}}),c=new at({props:{calendar:n[3],interval:n[4],class:"text-sm"}});let z=n[5]((be=(ge=n[0])==null?void 0:ge.info)==null?void 0:be.recentActions),q=[];for(let m=0;mb(q[m],1,1,()=>{q[m]=null});let K=((ke=(ve=(we=n[0])==null?void 0:we.info)==null?void 0:ve.futureActionTimes)==null?void 0:ke.slice(0,5))??[],V=[];for(let m=0;ml(10,t=$)),O(n,le,$=>l(1,s=$));var r,u,a;let{namespace:f}=t.params,{schedule:o}=e;const c=(r=o==null?void 0:o.info)===null||r===void 0?void 0:r.spec,p=(u=c==null?void 0:c.structuredCalendar)===null||u===void 0?void 0:u[0],I=(a=c==null?void 0:c.interval)===null||a===void 0?void 0:a[0],D=$=>{var _;return(_=$==null?void 0:$.sort((h,R)=>new Date(R.actualTime).getTime()-new Date(h.actualTime).getTime()).slice(0,5))!==null&&_!==void 0?_:[]},H=()=>rt({namespace:f,scheduleId:o==null?void 0:o.scheduleId});return n.$$set=$=>{"schedule"in $&&l(0,o=$.schedule)},[o,s,f,p,I,D,H]}class Rt extends ne{constructor(e){super(),ae(this,e,Dt,It,oe,{schedule:0})}}function He(n){let e,l,t;return l=new mt({props:{name:n[2]}}),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(s){e=P(s,"DIV",{class:!0});var r=N(e);T(l.$$.fragment,r),r.forEach(i),this.h()},h(){L(e,"class","ml-2 flex items-center")},m(s,r){d(s,e,r),E(l,e,null),t=!0},p(s,r){const u={};r&4&&(u.name=s[2]),l.$set(u)},i(s){t||(g(l.$$.fragment,s),t=!0)},o(s){b(l.$$.fragment,s),t=!1},d(s){s&&i(e),S(l)}}}function Ct(n){let e,l,t,s,r=n[2]&&He(n);return{c(){r&&r.c(),e=W(),l=C("span"),t=B(n[0]),this.h()},l(u){r&&r.l(u),e=F(u),l=P(u,"SPAN",{class:!0});var a=N(l);t=U(a,n[0]),a.forEach(i),this.h()},h(){L(l,"class","ml-2 mr-8")},m(u,a){r&&r.m(u,a),d(u,e,a),d(u,l,a),A(l,t),s=!0},p(u,a){u[2]?r?(r.p(u,a),a&4&&g(r,1)):(r=He(u),r.c(),g(r,1),r.m(e.parentNode,e)):r&&(se(),b(r,1,1,()=>{r=null}),re()),(!s||a&1)&&Y(t,u[0])},i(u){s||(g(r),s=!0)},o(u){b(r),s=!1},d(u){r&&r.d(u),u&&i(e),u&&i(l)}}}function Pt(n){let e;const l=n[6].default,t=Ve(l,n,n[8],null);return{c(){t&&t.c()},l(s){t&&t.l(s)},m(s,r){t&&t.m(s,r),e=!0},p(s,r){t&&t.p&&(!e||r&256)&&je(t,l,s,s[8],e?Ge(l,s[8],r,null):ze(s[8]),null)},i(s){e||(g(t,s),e=!0)},o(s){b(t,s),e=!1},d(s){t&&t.d(s)}}}function Nt(n){let e,l,t,s,r;function u(f){n[7](f)}let a={class:"flex flex-row items-center rounded-lg border border-gray-900 bg-white p-2",controls:n[1],disabled:n[3],hasIndicator:!n[3],$$slots:{default:[Ct]},$$scope:{ctx:n}};return n[4]!==void 0&&(a.show=n[4]),e=new _t({props:a}),Je.push(()=>Ke(e,"show",u)),s=new pt({props:{class:"min-w-max",id:n[1],show:n[4],$$slots:{default:[Pt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment),t=W(),k(s.$$.fragment)},l(f){T(e.$$.fragment,f),t=F(f),T(s.$$.fragment,f)},m(f,o){E(e,f,o),d(f,t,o),E(s,f,o),r=!0},p(f,o){const c={};o&2&&(c.controls=f[1]),o&8&&(c.disabled=f[3]),o&8&&(c.hasIndicator=!f[3]),o&261&&(c.$$scope={dirty:o,ctx:f}),!l&&o&16&&(l=!0,c.show=f[4],Oe(()=>l=!1)),e.$set(c);const p={};o&2&&(p.id=f[1]),o&16&&(p.show=f[4]),o&256&&(p.$$scope={dirty:o,ctx:f}),s.$set(p)},i(f){r||(g(e.$$.fragment,f),g(s.$$.fragment,f),r=!0)},o(f){b(e.$$.fragment,f),b(s.$$.fragment,f),r=!1},d(f){S(e,f),f&&i(t),S(s,f)}}}function qt(n){let e,l;return e=new $t({props:{class:n[5].class,$$slots:{default:[Nt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,[s]){const r={};s&32&&(r.class=t[5].class),s&287&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Lt(n,e,l){let{$$slots:t={},$$scope:s}=e,{label:r}=e,{id:u}=e,{icon:a=null}=e,{readonly:f=!1}=e,o=!1;function c(p){o=p,l(4,o)}return n.$$set=p=>{l(5,e=De(De({},e),Re(p))),"label"in p&&l(0,r=p.label),"id"in p&&l(1,u=p.id),"icon"in p&&l(2,a=p.icon),"readonly"in p&&l(3,f=p.readonly),"$$scope"in p&&l(8,s=p.$$scope)},e=Re(e),[r,u,a,f,o,e,t,c,s]}class Wt extends ne{constructor(e){super(),ae(this,e,Lt,qt,oe,{label:0,id:1,icon:2,readonly:3})}}function Ae(n){n[14]=n[16].schedules,n[15]=n[16].error}function Be(n,e,l){const t=n.slice();return t[18]=e[l],t}function Ft(n){let e;return{c(){e=B("Beta")},l(l){e=U(l,"Beta")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ht(n){let e;return{c(){e=B("Create Schedule")},l(l){e=U(l,"Create Schedule")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function At(n){return{c:G,l:G,m:G,p:G,i:G,o:G,d:G}}function Bt(n){Ae(n);let e,l,t,s;const r=[Mt,Ut],u=[];function a(f,o){var c;return(c=f[14])!=null&&c.length?0:1}return e=a(n),l=u[e]=r[e](n),{c(){l.c(),t=Z()},l(f){l.l(f),t=Z()},m(f,o){u[e].m(f,o),d(f,t,o),s=!0},p(f,o){Ae(f);let c=e;e=a(f),e===c?u[e].p(f,o):(se(),b(u[c],1,1,()=>{u[c]=null}),re(),l=u[e],l?l.p(f,o):(l=u[e]=r[e](f),l.c()),g(l,1),l.m(t.parentNode,t))},i(f){s||(g(l),s=!0)},o(f){b(l),s=!1},d(f){u[e].d(f),f&&i(t)}}}function Ut(n){let e,l,t,s,r;return l=new Ye({props:{title:"No Schedules Found",content:xt,error:n[15]}}),s=new Ze({props:{as:"anchor",target:"_external",href:"https://docs.temporal.io/workflows/#schedule",$$slots:{default:[Vt]},$$scope:{ctx:n}}}),{c(){e=C("div"),k(l.$$.fragment),t=W(),k(s.$$.fragment),this.h()},l(u){e=P(u,"DIV",{class:!0});var a=N(e);T(l.$$.fragment,a),t=F(a),T(s.$$.fragment,a),a.forEach(i),this.h()},h(){L(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(u,a){d(u,e,a),E(l,e,null),A(e,t),E(s,e,null),r=!0},p(u,a){const f={};a&16&&(f.error=u[15]),l.$set(f);const o={};a&2097152&&(o.$$scope={dirty:a,ctx:u}),s.$set(o)},i(u){r||(g(l.$$.fragment,u),g(s.$$.fragment,u),r=!0)},o(u){b(l.$$.fragment,u),b(s.$$.fragment,u),r=!1},d(u){u&&i(e),S(l),S(s)}}}function Mt(n){let e,l;return e=new xe({props:{items:n[2](n[14]),"aria-label":"schedules",$$slots:{"action-top-right":[Qt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],"action-top-left":[Jt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0],default:[Gt,({visibleItems:t})=>({17:t}),({visibleItems:t})=>t?131072:0]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&20&&(r.items=t[2](t[14])),s&2228257&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Vt(n){let e;return{c(){e=B("Get Started With Docs")},l(l){e=U(l,"Get Started With Docs")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ue(n){let e,l;return e=new Qe({props:{$$slots:{default:[jt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&2097152&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function jt(n){let e,l,t,s,r,u,a,f;return s=new Ye({props:{title:"No Schedules Found",content:"Try a different search"}}),{c(){e=C("td"),l=W(),t=C("td"),k(s.$$.fragment),r=W(),u=C("td"),a=W(),this.h()},l(o){e=P(o,"TD",{class:!0}),N(e).forEach(i),l=F(o),t=P(o,"TD",{colspan:!0});var c=N(t);T(s.$$.fragment,c),c.forEach(i),r=F(o),u=P(o,"TD",{class:!0}),N(u).forEach(i),a=F(o),this.h()},h(){L(e,"class","hidden xl:table-cell"),L(t,"colspan","3"),L(u,"class","hidden xl:table-cell")},m(o,c){d(o,e,c),d(o,l,c),d(o,t,c),E(s,t,null),d(o,r,c),d(o,u,c),d(o,a,c),f=!0},p:G,i(o){f||(g(s.$$.fragment,o),f=!0)},o(o){b(s.$$.fragment,o),f=!1},d(o){o&&i(e),o&&i(l),o&&i(t),S(s),o&&i(r),o&&i(u),o&&i(a)}}}function Me(n){let e,l;return e=new Rt({props:{schedule:n[18]}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&131072&&(r.schedule=t[18]),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function zt(n){let e,l,t=n[17],s=[];for(let a=0;ab(s[a],1,1,()=>{s[a]=null});let u=null;return t.length||(u=Ue(n)),{c(){for(let a=0;a{u=null}),re()):(u=Ue(a),u.c(),g(u,1),u.m(e.parentNode,e))}},i(a){if(!l){for(let f=0;fKe(l,"value",r)),l.$on("submit",G),{c(){e=C("div"),k(l.$$.fragment),this.h()},l(a){e=P(a,"DIV",{class:!0});var f=N(e);T(l.$$.fragment,f),f.forEach(i),this.h()},h(){L(e,"class","w-full xl:w-1/2")},m(a,f){d(a,e,f),E(l,e,null),s=!0},p(a,f){const o={};!t&&f&1&&(t=!0,o.value=a[0],Oe(()=>t=!1)),l.$set(o)},i(a){s||(g(l.$$.fragment,a),s=!0)},o(a){b(l.$$.fragment,a),s=!1},d(a){a&&i(e),S(l)}}}function Kt(n){let e;return{c(){e=B("Relative")},l(l){e=U(l,"Relative")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Ot(n){let e;return{c(){e=B("UTC")},l(l){e=U(l,"UTC")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Yt(n){let e;return{c(){e=B("Local")},l(l){e=U(l,"Local")},m(l,t){d(l,e,t)},d(l){l&&i(e)}}}function Zt(n){let e,l,t,s,r,u;return e=new ce({props:{$$slots:{default:[Kt]},$$scope:{ctx:n}}}),e.$on("click",n[10]),t=new ce({props:{$$slots:{default:[Ot]},$$scope:{ctx:n}}}),t.$on("click",n[11]),r=new ce({props:{$$slots:{default:[Yt]},$$scope:{ctx:n}}}),r.$on("click",n[12]),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment),s=W(),k(r.$$.fragment)},l(a){T(e.$$.fragment,a),l=F(a),T(t.$$.fragment,a),s=F(a),T(r.$$.fragment,a)},m(a,f){E(e,a,f),d(a,l,f),E(t,a,f),d(a,s,f),E(r,a,f),u=!0},p(a,f){const o={};f&2097152&&(o.$$scope={dirty:f,ctx:a}),e.$set(o);const c={};f&2097152&&(c.$$scope={dirty:f,ctx:a}),t.$set(c);const p={};f&2097152&&(p.$$scope={dirty:f,ctx:a}),r.$set(p)},i(a){u||(g(e.$$.fragment,a),g(t.$$.fragment,a),g(r.$$.fragment,a),u=!0)},o(a){b(e.$$.fragment,a),b(t.$$.fragment,a),b(r.$$.fragment,a),u=!1},d(a){S(e,a),a&&i(l),S(t,a),a&&i(s),S(r,a)}}}function Qt(n){let e,l;return e=new Wt({props:{id:"timezone",label:Ne(n[5]),icon:"clock",$$slots:{default:[Zt]},$$scope:{ctx:n}}}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p(t,s){const r={};s&32&&(r.label=Ne(t[5])),s&2097184&&(r.$$scope={dirty:s,ctx:t}),e.$set(r)},i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function Xt(n){let e,l;return e=new tt({}),{c(){k(e.$$.fragment)},l(t){T(e.$$.fragment,t)},m(t,s){E(e,t,s),l=!0},p:G,i(t){l||(g(e.$$.fragment,t),l=!0)},o(t){b(e.$$.fragment,t),l=!1},d(t){S(e,t)}}}function yt(n){let e,l,t,s,r,u,a,f,o,c,p,I,D,H;r=new et({props:{type:"beta",$$slots:{default:[Ft]},$$scope:{ctx:n}}}),c=new Ze({props:{class:"h-10",testId:"create-schedule",disabled:n[3],$$slots:{default:[Ht]},$$scope:{ctx:n}}}),c.$on("click",n[9]);let $={ctx:n,current:null,token:null,hasCatch:!1,pending:Xt,then:Bt,catch:At,value:16,blocks:[,,,]};return Ce(D=n[4],$),{c(){e=C("header"),l=C("div"),t=C("h1"),s=B("Schedules"),k(r.$$.fragment),u=W(),a=C("p"),f=B(n[1]),o=W(),k(c.$$.fragment),p=W(),I=Z(),$.block.c(),this.h()},l(_){e=P(_,"HEADER",{class:!0});var h=N(e);l=P(h,"DIV",{});var R=N(l);t=P(R,"H1",{class:!0});var M=N(t);s=U(M,"Schedules"),T(r.$$.fragment,M),M.forEach(i),u=F(R),a=P(R,"P",{class:!0,"data-testid":!0});var z=N(a);f=U(z,n[1]),z.forEach(i),R.forEach(i),o=F(h),T(c.$$.fragment,h),h.forEach(i),p=F(_),I=Z(),$.block.l(_),this.h()},h(){L(t,"class","flex items-center gap-2 text-2xl"),L(a,"class","text-sm text-gray-600"),L(a,"data-testid","namespace-name"),L(e,"class","flex flex-col justify-between gap-2 md:flex-row")},m(_,h){d(_,e,h),A(e,l),A(l,t),A(t,s),E(r,t,null),A(l,u),A(l,a),A(a,f),A(e,o),E(c,e,null),d(_,p,h),d(_,I,h),$.block.m(_,$.anchor=h),$.mount=()=>I.parentNode,$.anchor=I,H=!0},p(_,[h]){n=_;const R={};h&2097152&&(R.$$scope={dirty:h,ctx:n}),r.$set(R),(!H||h&2)&&Y(f,n[1]);const M={};h&8&&(M.disabled=n[3]),h&2097152&&(M.$$scope={dirty:h,ctx:n}),c.$set(M),$.ctx=n,h&16&&D!==(D=n[4])&&Ce(D,$)||ye($,n,h)},i(_){H||(g(r.$$.fragment,_),g(c.$$.fragment,_),g($.block),H=!0)},o(_){b(r.$$.fragment,_),b(c.$$.fragment,_);for(let h=0;h<3;h+=1){const R=$.blocks[h];b(R)}H=!1},d(_){_&&i(e),S(r),S(c),_&&i(p),_&&i(I),$.block.d(_),$.token=null,$=null}}}const xt="Create scheduled actions using our Public API or TCTL (CLI).";function el(n,e,l){let t,s,r,u,a,f,o;O(n,me,h=>l(8,f=h)),O(n,le,h=>l(5,o=h));let c=dt();O(n,c,h=>l(7,a=h));let p="";const I=()=>st(nt({namespace:t})),D=()=>ue(le,o="relative",o),H=()=>ue(le,o="UTC",o),$=()=>ue(le,o="local",o);function _(h){p=h,l(0,p)}return n.$$.update=()=>{n.$$.dirty&256&&l(1,t=f.params.namespace),n.$$.dirty&2&&l(4,s=ot(t)),n.$$.dirty&130&&l(3,r=a.namespaceWriteDisabled(t)),n.$$.dirty&1&&l(2,u=h=>p?h.filter(R=>R.scheduleId.toLowerCase().includes(p.toLowerCase())):h)},[p,t,u,r,s,o,c,a,f,I,D,H,$,_]}class tl extends ne{constructor(e){super(),ae(this,e,el,yt,oe,{})}}function ll(n){let e,l,t,s;return e=new ht({props:{title:`Schedules | ${n[0].params.namespace}`,url:n[0].url.href}}),t=new tl({}),{c(){k(e.$$.fragment),l=W(),k(t.$$.fragment)},l(r){T(e.$$.fragment,r),l=F(r),T(t.$$.fragment,r)},m(r,u){E(e,r,u),d(r,l,u),E(t,r,u),s=!0},p(r,[u]){const a={};u&1&&(a.title=`Schedules | ${r[0].params.namespace}`),u&1&&(a.url=r[0].url.href),e.$set(a)},i(r){s||(g(e.$$.fragment,r),g(t.$$.fragment,r),s=!0)},o(r){b(e.$$.fragment,r),b(t.$$.fragment,r),s=!1},d(r){S(e,r),r&&i(l),S(t,r)}}}function sl(n,e,l){let t;return O(n,me,s=>l(0,t=s)),[t]}class Dl extends ne{constructor(e){super(),ae(this,e,sl,ll,oe,{})}}export{Dl as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.3aa72fcc.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.2d909e23.js similarity index 89% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.3aa72fcc.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.2d909e23.js index 838f241a63..304dcd20fd 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.3aa72fcc.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.2d909e23.js @@ -1 +1 @@ -import{S as k,b as g,a as b,aq as P,e as _,f as d,ar as y,j as u,g as i,k as h,K as w,n as s,C as m,D as p,E as f,F as $,c as C,d as v}from"../chunks/index.a36c9cb0.js";import{p as q}from"../chunks/stores.48be4ca9.js";import{W as Q}from"../chunks/workers-list.39b61477.js";import{g as S}from"../chunks/pollers-service.2fa449c9.js";import{P as T}from"../chunks/page-title.b9565d2f.js";function W(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function j(a){let r,o;return r=new Q({props:{taskQueue:a[0],workers:a[1]}}),{c(){m(r.$$.fragment)},l(e){p(r.$$.fragment,e)},m(e,n){f(r,e,n),o=!0},p:s,i(e){o||(u(r.$$.fragment,e),o=!0)},o(e){i(r.$$.fragment,e),o=!1},d(e){$(r,e)}}}function D(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function E(a){let r,o,e={ctx:a,current:null,token:null,hasCatch:!1,pending:D,then:j,catch:W,value:1,blocks:[,,,]};return P(a[1],e),{c(){r=_(),e.block.c()},l(n){r=_(),e.block.l(n)},m(n,t){d(n,r,t),e.block.m(n,e.anchor=t),e.mount=()=>r.parentNode,e.anchor=r,o=!0},p(n,[t]){a=n,y(e,a,t)},i(n){o||(u(e.block),o=!0)},o(n){for(let t=0;t<3;t+=1){const l=e.blocks[t];i(l)}o=!1},d(n){n&&h(r),e.block.d(n),e.token=null,e=null}}}function F(a,r,o){let e;w(a,q,c=>o(2,e=c));let{queue:n,namespace:t}=e.params,l=S({queue:n,namespace:t});return[n,l]}class K extends k{constructor(r){super(),g(this,r,F,E,b,{})}}function N(a){let r,o,e,n;return r=new T({props:{title:`Task Queue | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(r.$$.fragment),o=C(),m(e.$$.fragment)},l(t){p(r.$$.fragment,t),o=v(t),p(e.$$.fragment,t)},m(t,l){f(r,t,l),d(t,o,l),f(e,t,l),n=!0},p(t,[l]){const c={};l&1&&(c.url=t[0].url.href),r.$set(c)},i(t){n||(u(r.$$.fragment,t),u(e.$$.fragment,t),n=!0)},o(t){i(r.$$.fragment,t),i(e.$$.fragment,t),n=!1},d(t){$(r,t),t&&h(o),$(e,t)}}}function x(a,r,o){let e;w(a,q,t=>o(0,e=t));const n=e.params.queue;return[e,n]}class I extends k{constructor(r){super(),g(this,r,x,N,b,{})}}export{I as default}; +import{S as k,b as g,a as b,aq as P,e as _,f as d,ar as y,j as u,g as i,k as h,K as w,n as s,C as m,D as p,E as f,F as $,c as C,d as v}from"../chunks/index.a36c9cb0.js";import{p as q}from"../chunks/stores.4d55fa19.js";import{W as Q}from"../chunks/workers-list.39b61477.js";import{g as S}from"../chunks/pollers-service.35343e4c.js";import{P as T}from"../chunks/page-title.b9565d2f.js";function W(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function j(a){let r,o;return r=new Q({props:{taskQueue:a[0],workers:a[1]}}),{c(){m(r.$$.fragment)},l(e){p(r.$$.fragment,e)},m(e,n){f(r,e,n),o=!0},p:s,i(e){o||(u(r.$$.fragment,e),o=!0)},o(e){i(r.$$.fragment,e),o=!1},d(e){$(r,e)}}}function D(a){return{c:s,l:s,m:s,p:s,i:s,o:s,d:s}}function E(a){let r,o,e={ctx:a,current:null,token:null,hasCatch:!1,pending:D,then:j,catch:W,value:1,blocks:[,,,]};return P(a[1],e),{c(){r=_(),e.block.c()},l(n){r=_(),e.block.l(n)},m(n,t){d(n,r,t),e.block.m(n,e.anchor=t),e.mount=()=>r.parentNode,e.anchor=r,o=!0},p(n,[t]){a=n,y(e,a,t)},i(n){o||(u(e.block),o=!0)},o(n){for(let t=0;t<3;t+=1){const l=e.blocks[t];i(l)}o=!1},d(n){n&&h(r),e.block.d(n),e.token=null,e=null}}}function F(a,r,o){let e;w(a,q,c=>o(2,e=c));let{queue:n,namespace:t}=e.params,l=S({queue:n,namespace:t});return[n,l]}class K extends k{constructor(r){super(),g(this,r,F,E,b,{})}}function N(a){let r,o,e,n;return r=new T({props:{title:`Task Queue | ${a[1]}`,url:a[0].url.href}}),e=new K({}),{c(){m(r.$$.fragment),o=C(),m(e.$$.fragment)},l(t){p(r.$$.fragment,t),o=v(t),p(e.$$.fragment,t)},m(t,l){f(r,t,l),d(t,o,l),f(e,t,l),n=!0},p(t,[l]){const c={};l&1&&(c.url=t[0].url.href),r.$set(c)},i(t){n||(u(r.$$.fragment,t),u(e.$$.fragment,t),n=!0)},o(t){i(r.$$.fragment,t),i(e.$$.fragment,t),n=!1},d(t){$(r,t),t&&h(o),$(e,t)}}}function x(a,r,o){let e;w(a,q,t=>o(0,e=t));const n=e.params.queue;return[e,n]}class I extends k{constructor(r){super(),g(this,r,x,N,b,{})}}export{I as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.2d32f925.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.2d32f925.js deleted file mode 100644 index da4ce7104c..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.2d32f925.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.5430b7c5.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.5148fee0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.5148fee0.js new file mode 100644 index 0000000000..720fe1e487 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-compact-page.ts.5148fee0.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.b4504080.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.2d32f925.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.2d32f925.js deleted file mode 100644 index 14a7b3a348..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.2d32f925.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.f3d1bbfc.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.5148fee0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.5148fee0.js new file mode 100644 index 0000000000..2923809c47 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-feed-page.ts.5148fee0.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.52adf0a4.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.2d32f925.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.2d32f925.js deleted file mode 100644 index 02b7c55258..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.2d32f925.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.74c63f76.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.5148fee0.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.5148fee0.js new file mode 100644 index 0000000000..92020c99d1 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-json-page.ts.5148fee0.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.cd220957.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.56651981.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ad9f09bb.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.56651981.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ad9f09bb.js index 2eaf196644..d353f6127f 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.56651981.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ad9f09bb.js @@ -1,4 +1,4 @@ -import{S as $e,b as _e,a as ge,e as re,f as v,j as h,z as ee,g as _,h as te,k as c,K as he,m as E,w as N,c as T,C,p as y,q as k,x as R,d as I,D as S,u as g,L as p,E as A,a1 as it,a2 as ft,F as W,y as se,as as Il,n as Z,G as Fe,N as Pe,R as gt,Q as lt,T as st,V as wt,H as Oe,I as Le,J as je,U as ut,r as Cl,a5 as rt,O as $l,P as vt,_ as ct,a7 as Al,a3 as Ne,a4 as Re,B as nt,i as Wl,a6 as Dl,aq as Sl,ar as Nl}from"../chunks/index.a36c9cb0.js";import{p as Ve}from"../chunks/stores.0bc9ce95.js";import{d as at,e as Rl,b as kt}from"../chunks/event-view.f557cd63.js";import{D as _l,E as Pl,F as Vl}from"../chunks/is-event-type.763b5d4b.js";import{s as bt}from"../chunks/parse-with-big-int.0036a80a.js";import{h as Bl,a as Hl}from"../chunks/has.48bed8a5.js";import{a as gl,A as Fl,e as wl,b as Ol}from"../chunks/events-service.2f6a3c54.js";import{w as Qe,a as Et,r as Ll}from"../chunks/workflow-run.8a407b5f.js";import{T as jl,a as tt}from"../chunks/toggle-buttons.323d739d.js";import{f as He}from"../chunks/format-date.7c274b02.js";import{h as yt,B as Tt}from"../chunks/format-time.c8c4770b.js";import{i as Ml,g as Ie,h as It,l as ot}from"../chunks/route-for.70dfbf18.js";import{L as Je}from"../chunks/link.855bf830.js";import{I as Ke}from"../chunks/icon.33859671.js";import{B as Te}from"../chunks/badge.7f30446f.js";import{C as Me}from"../chunks/code-block.2cc5a38d.js";import{T as vl,C as ql}from"../chunks/tooltip.bd2ec5a4.js";import{j as Ct,k as At}from"../chunks/format-event-attributes.7f34c129.js";import{t as Wt}from"../chunks/to-time-difference.7cff7598.js";import{v as Ul}from"../chunks/toaster.16c48a98.js";import{P as kl}from"../chunks/pagination.69c5aeb5.js";import{T as bl,a as El}from"../chunks/table-header-row.eb620974.js";import{T as zl}from"../chunks/table-row.9df8daa0.js";import{E as Ql}from"../chunks/empty-state.9fb63265.js";import{t as Jl}from"../chunks/time-format.dc246788.js";import{b as yl,E as Kl,a as Gl}from"../chunks/event-empty-row.0766ff91.js";import{D as Yl}from"../chunks/drawer.62a75e11.js";import{B as Xl}from"../chunks/button.dbc76a4c.js";import{e as Zl}from"../chunks/filters.c5bf71c7.js";import{a as xl}from"../chunks/auth-user.3a7bc4db.js";import{g as Dt}from"../chunks/index.f8c667a1.js";import{L as er}from"../chunks/loading.bcb9b7b8.js";import{P as tr}from"../chunks/page-title.b9565d2f.js";const lr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],St=n=>!!n.workflowExecutionStartedEventAttributes,Nt=n=>{for(const e of lr)if(n.eventType===e)return!0;return!1},Rt=n=>n.eventType==="WorkflowTaskFailed",Pt=n=>n.eventType==="WorkflowTaskCompleted",rr=n=>{var e;return _l(n)?(e=n.attributes.input)==null?void 0:e.payloads:Pl(n)?n.attributes.result===null?null:n.attributes.result.payloads:n.attributes},nr=n=>{var f,u;let e,l,t,r=!1,s,o,i,a=!1;for(const m of n.start)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){i&&(i=void 0);continue}else if(!a&&Rt(m)){i=m;continue}for(const m of n.end)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){a=!0;continue}else if(!a&&Rt(m)){i=m;continue}return s&&(e=bt(((u=(f=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:f.input)==null?void 0:u.payloads)??null)),o&&(r=_l(o),l=bt(rr(o))),i&&(t=i),{input:e,results:l,error:t,contAsNew:r}},sr=n=>{for(const e of n)if(Bl(e.attributes,"newExecutionRunId")&&Hl(e.attributes.newExecutionRunId))return e.attributes.newExecutionRunId},or=(n,e)=>{var u,m;const l=!!(n!=null&&n.pendingChildren.length),t=n==null?void 0:n.parent,r=e.start.find(Vl),s=sr(e.end),o=(u=r==null?void 0:r.attributes)==null?void 0:u.firstExecutionRunId,i=o===(n==null?void 0:n.runId)?void 0:o,a=(m=r==null?void 0:r.attributes)==null?void 0:m.continuedExecutionRunId;return{hasRelationships:!!(t||l||i||a||s),hasChildren:l,first:i,previous:a,parent:t,next:s}},ar=async({namespace:n,workflowId:e,runId:l})=>{const t=await gl({namespace:n,workflowId:e,runId:l,sort:"ascending"}),r=JSON.stringify({events:t},null,2);s(r,`${l}/events.json`,"text/plain");function s(o,i,a){const f=document.createElement("a"),u=new Blob([o],{type:a});f.href=URL.createObjectURL(u),f.download=i,f.click()}};function Vt(n,e,l){const t=n.slice();t[6]=e[l].id,t[7]=Il(e[l],["id"]);const r=t[7].attempt>1;return t[8]=r,t}function Bt(n){let e,l,t,r,s,o=[],i=new Map,a,f,u,m,d=n[0]&&Ht(n),$=n[2];const D=w=>w[6];for(let w=0;w<$.length;w+=1){let b=Vt(n,$,w),H=D(b);i.set(H,o[w]=Mt(H,b))}return u=new Je({props:{href:n[1],$$slots:{default:[pr]},$$scope:{ctx:n}}}),{c(){e=E("section"),l=E("h3"),t=N(`Pending Activities +import{S as $e,b as _e,a as ge,e as re,f as v,j as h,z as ee,g as _,h as te,k as c,K as he,m as E,w as N,c as T,C,p as y,q as k,x as R,d as I,D as S,u as g,L as p,E as A,a1 as it,a2 as ft,F as W,y as se,as as Il,n as Z,G as Fe,N as Pe,R as gt,Q as lt,T as st,V as wt,H as Oe,I as Le,J as je,U as ut,r as Cl,a5 as rt,O as $l,P as vt,_ as ct,a7 as Al,a3 as Ne,a4 as Re,B as nt,i as Wl,a6 as Dl,aq as Sl,ar as Nl}from"../chunks/index.a36c9cb0.js";import{p as Ve}from"../chunks/stores.4d55fa19.js";import{d as at,e as Rl,b as kt}from"../chunks/event-view.f557cd63.js";import{D as _l,E as Pl,F as Vl}from"../chunks/is-event-type.763b5d4b.js";import{s as bt}from"../chunks/parse-with-big-int.0036a80a.js";import{h as Bl,a as Hl}from"../chunks/has.48bed8a5.js";import{a as gl,A as Fl,e as wl,b as Ol}from"../chunks/events-service.389da786.js";import{w as Qe,a as Et,r as Ll}from"../chunks/workflow-run.8a407b5f.js";import{T as jl,a as tt}from"../chunks/toggle-buttons.9513a782.js";import{f as He}from"../chunks/format-date.7c274b02.js";import{h as yt,B as Tt}from"../chunks/format-time.c8c4770b.js";import{i as Ml,g as Ie,h as It,l as ot}from"../chunks/route-for.e1b7889c.js";import{L as Je}from"../chunks/link.855bf830.js";import{I as Ke}from"../chunks/icon.33859671.js";import{B as Te}from"../chunks/badge.7f30446f.js";import{C as Me}from"../chunks/code-block.2cc5a38d.js";import{T as vl,C as ql}from"../chunks/tooltip.bd2ec5a4.js";import{j as Ct,k as At}from"../chunks/format-event-attributes.7f34c129.js";import{t as Wt}from"../chunks/to-time-difference.7cff7598.js";import{v as Ul}from"../chunks/toaster.16c48a98.js";import{P as kl}from"../chunks/pagination.6f9a2b9c.js";import{T as bl,a as El}from"../chunks/table-header-row.eb620974.js";import{T as zl}from"../chunks/table-row.9df8daa0.js";import{E as Ql}from"../chunks/empty-state.9fb63265.js";import{t as Jl}from"../chunks/time-format.dc246788.js";import{b as yl,E as Kl,a as Gl}from"../chunks/event-empty-row.0657830c.js";import{D as Yl}from"../chunks/drawer.62a75e11.js";import{B as Xl}from"../chunks/button.dbc76a4c.js";import{e as Zl}from"../chunks/filters.f7fa907d.js";import{a as xl}from"../chunks/auth-user.3a7bc4db.js";import{g as Dt}from"../chunks/index.f8c667a1.js";import{L as er}from"../chunks/loading.bcb9b7b8.js";import{P as tr}from"../chunks/page-title.b9565d2f.js";const lr=["WorkflowExecutionFailed","WorkflowExecutionCompleted","WorkflowExecutionContinuedAsNew","WorkflowExecutionTimedOut","WorkflowExecutionCanceled","WorkflowExecutionTerminated"],St=n=>!!n.workflowExecutionStartedEventAttributes,Nt=n=>{for(const e of lr)if(n.eventType===e)return!0;return!1},Rt=n=>n.eventType==="WorkflowTaskFailed",Pt=n=>n.eventType==="WorkflowTaskCompleted",rr=n=>{var e;return _l(n)?(e=n.attributes.input)==null?void 0:e.payloads:Pl(n)?n.attributes.result===null?null:n.attributes.result.payloads:n.attributes},nr=n=>{var f,u;let e,l,t,r=!1,s,o,i,a=!1;for(const m of n.start)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){i&&(i=void 0);continue}else if(!a&&Rt(m)){i=m;continue}for(const m of n.end)if(St(m)){s=m;continue}else if(Nt(m)){o=m;continue}else if(Pt(m)){a=!0;continue}else if(!a&&Rt(m)){i=m;continue}return s&&(e=bt(((u=(f=s==null?void 0:s.workflowExecutionStartedEventAttributes)==null?void 0:f.input)==null?void 0:u.payloads)??null)),o&&(r=_l(o),l=bt(rr(o))),i&&(t=i),{input:e,results:l,error:t,contAsNew:r}},sr=n=>{for(const e of n)if(Bl(e.attributes,"newExecutionRunId")&&Hl(e.attributes.newExecutionRunId))return e.attributes.newExecutionRunId},or=(n,e)=>{var u,m;const l=!!(n!=null&&n.pendingChildren.length),t=n==null?void 0:n.parent,r=e.start.find(Vl),s=sr(e.end),o=(u=r==null?void 0:r.attributes)==null?void 0:u.firstExecutionRunId,i=o===(n==null?void 0:n.runId)?void 0:o,a=(m=r==null?void 0:r.attributes)==null?void 0:m.continuedExecutionRunId;return{hasRelationships:!!(t||l||i||a||s),hasChildren:l,first:i,previous:a,parent:t,next:s}},ar=async({namespace:n,workflowId:e,runId:l})=>{const t=await gl({namespace:n,workflowId:e,runId:l,sort:"ascending"}),r=JSON.stringify({events:t},null,2);s(r,`${l}/events.json`,"text/plain");function s(o,i,a){const f=document.createElement("a"),u=new Blob([o],{type:a});f.href=URL.createObjectURL(u),f.download=i,f.click()}};function Vt(n,e,l){const t=n.slice();t[6]=e[l].id,t[7]=Il(e[l],["id"]);const r=t[7].attempt>1;return t[8]=r,t}function Bt(n){let e,l,t,r,s,o=[],i=new Map,a,f,u,m,d=n[0]&&Ht(n),$=n[2];const D=w=>w[6];for(let w=0;w<$.length;w+=1){let b=Vt(n,$,w),H=D(b);i.set(H,o[w]=Mt(H,b))}return u=new Je({props:{href:n[1],$$slots:{default:[pr]},$$scope:{ctx:n}}}),{c(){e=E("section"),l=E("h3"),t=N(`Pending Activities `),d&&d.c(),r=T(),s=E("div");for(let w=0;w{d=null}),te()),b&6&&($=w[2],ee(),o=it(o,b,D,1,w,$,i,s,ft,Mt,null,Vt),te());const H={};b&2&&(H.href=w[1]),b&2048&&(H.$$scope={dirty:b,ctx:w}),u.$set(H)},i(w){if(!m){h(d);for(let b=0;b<$.length;b+=1)h(o[b]);h(u.$$.fragment,w),m=!0}},o(w){_(d);for(let b=0;b{s=null}),te()),(!r||i&4)&&l!==(l=o[7].attempt+"")&&se(t,l)},i(o){r||(h(s),r=!0)},o(o){_(s),r=!1},d(o){s&&s.d(o),o&&c(e),o&&c(t)}}}function mr(n){let e=At(n[7].maximumAttempts,n[7].attempt)+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=At(t[7].maximumAttempts,t[7].attempt)+"")&&se(l,e)},d(t){t&&c(l)}}}function Ot(n){let e,l,t,r,s,o;return s=new Te({props:{type:n[8]?"error":"default",$$slots:{default:[dr]},$$scope:{ctx:n}}}),{c(){e=E("div"),l=E("h4"),t=N("Next Retry"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Next Retry"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","pending-activity-detail svelte-155uvlv")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.type=i[8]?"error":"default"),a&2052&&(f.$$scope={dirty:a,ctx:i}),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function dr(n){let e=Wt(n[7].scheduledTime)+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=Wt(t[7].scheduledTime)+"")&&se(l,e)},d(t){t&&c(l)}}}function Lt(n){let e,l,t,r,s,o;return s=new Me({props:{class:"max-h-32",content:n[7].heartbeatDetails}}),{c(){e=E("div"),l=E("h4"),t=N("Heartbeat Details"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Heartbeat Details"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","w-1/2 grow")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.content=i[7].heartbeatDetails),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function jt(n){let e,l,t,r,s,o;return s=new Me({props:{class:"max-h-32",content:n[7].lastFailure}}),{c(){e=E("div"),l=E("h4"),t=N("Last Failure"),r=T(),C(s.$$.fragment),this.h()},l(i){e=y(i,"DIV",{class:!0});var a=k(e);l=y(a,"H4",{class:!0});var f=k(l);t=R(f,"Last Failure"),f.forEach(c),r=I(a),S(s.$$.fragment,a),a.forEach(c),this.h()},h(){g(l,"class","pending-activity-detail-header svelte-155uvlv"),g(e,"class","w-1/2 grow")},m(i,a){v(i,e,a),p(e,l),p(l,t),p(e,r),A(s,e,null),o=!0},p(i,a){const f={};a&4&&(f.content=i[7].lastFailure),s.$set(f)},i(i){o||(h(s.$$.fragment,i),o=!0)},o(i){_(s.$$.fragment,i),o=!1},d(i){i&&c(e),W(s)}}}function Mt(n,e){var qe,Ue;let l,t,r=e[7].activityId+"",s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y=He(e[7].lastHeartbeatTime,"relative")+"",X,K,oe,x,z,J,M,ie,B,L,Q,F,O,fe,ce,V,q,ue,G,ne=Ct(e[7].maximumAttempts,yt(Tt({start:Date.now(),end:e[7].expirationTime})))+"",we,Ee,ae,Ae,ke,ye;w=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[ur]},$$scope:{ctx:e}}}),M=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[cr]},$$scope:{ctx:e}}}),O=new Te({props:{type:e[8]?"error":"default",$$slots:{default:[mr]},$$scope:{ctx:e}}});let me=e[8]&&e[7].scheduledTime&&Ot(e),de=((qe=e[7])==null?void 0:qe.heartbeatDetails)&&Lt(e),pe=((Ue=e[7])==null?void 0:Ue.lastFailure)&&jt(e);return{key:n,first:null,c(){l=E("div"),t=E("h3"),s=N(r),o=T(),i=E("div"),a=E("div"),f=E("a"),u=E("div"),m=E("div"),d=E("h4"),$=N("Activity Type"),D=T(),C(w.$$.fragment),b=T(),H=E("div"),j=E("h4"),U=N("Last Heartbeat"),P=T(),X=N(Y),K=T(),oe=E("div"),x=E("h4"),z=N("Attempt"),J=T(),C(M.$$.fragment),ie=T(),B=E("div"),L=E("h4"),Q=N("Attempts Left"),F=T(),C(O.$$.fragment),fe=T(),me&&me.c(),ce=T(),V=E("div"),q=E("h4"),ue=N("Expiration"),G=T(),we=N(ne),Ee=T(),ae=E("div"),de&&de.c(),Ae=T(),pe&&pe.c(),ke=T(),this.h()},l(ve){l=y(ve,"DIV",{class:!0});var le=k(l);t=y(le,"H3",{class:!0});var We=k(t);s=R(We,r),We.forEach(c),o=I(le),i=y(le,"DIV",{class:!0});var Be=k(i);a=y(Be,"DIV",{class:!0});var De=k(a);f=y(De,"A",{class:!0,href:!0});var ze=k(f);u=y(ze,"DIV",{class:!0});var be=k(u);m=y(be,"DIV",{class:!0});var Ge=k(m);d=y(Ge,"H4",{class:!0});var dt=k(d);$=R(dt,"Activity Type"),dt.forEach(c),D=I(Ge),S(w.$$.fragment,Ge),Ge.forEach(c),b=I(be),H=y(be,"DIV",{class:!0});var Ye=k(H);j=y(Ye,"H4",{class:!0});var pt=k(j);U=R(pt,"Last Heartbeat"),pt.forEach(c),P=I(Ye),X=R(Ye,Y),Ye.forEach(c),K=I(be),oe=y(be,"DIV",{class:!0});var Xe=k(oe);x=y(Xe,"H4",{class:!0});var ht=k(x);z=R(ht,"Attempt"),ht.forEach(c),J=I(Xe),S(M.$$.fragment,Xe),Xe.forEach(c),ie=I(be),B=y(be,"DIV",{class:!0});var Ze=k(B);L=y(Ze,"H4",{class:!0});var $t=k(L);Q=R($t,"Attempts Left"),$t.forEach(c),F=I(Ze),S(O.$$.fragment,Ze),Ze.forEach(c),fe=I(be),me&&me.l(be),ce=I(be),V=y(be,"DIV",{class:!0});var xe=k(V);q=y(xe,"H4",{class:!0});var _t=k(q);ue=R(_t,"Expiration"),_t.forEach(c),G=I(xe),we=R(xe,ne),xe.forEach(c),be.forEach(c),ze.forEach(c),Ee=I(De),ae=y(De,"DIV",{class:!0});var et=k(ae);de&&de.l(et),Ae=I(et),pe&&pe.l(et),et.forEach(c),De.forEach(c),Be.forEach(c),ke=I(le),le.forEach(c),this.h()},h(){g(t,"class","w-full self-start text-sm font-normal text-gray-500"),g(d,"class","pending-activity-detail-header svelte-155uvlv"),g(m,"class","pending-activity-detail svelte-155uvlv"),g(j,"class","pending-activity-detail-header svelte-155uvlv"),g(H,"class","pending-activity-detail svelte-155uvlv"),g(x,"class","pending-activity-detail-header svelte-155uvlv"),g(oe,"class","pending-activity-detail svelte-155uvlv"),g(L,"class","pending-activity-detail-header svelte-155uvlv"),g(B,"class","pending-activity-detail svelte-155uvlv"),g(q,"class","pending-activity-detail-header svelte-155uvlv"),g(V,"class","pending-activity-detail svelte-155uvlv"),g(u,"class","pending-activity-inner-row svelte-155uvlv"),g(f,"class","flex w-full items-center hover:bg-gray-50"),g(f,"href",e[1]),g(ae,"class","pending-activity-failure-details svelte-155uvlv"),g(a,"class","pending-activity-summary svelte-155uvlv"),g(i,"class","pending-activity-row svelte-155uvlv"),g(l,"class","pending-activity-row-container svelte-155uvlv"),this.first=l},m(ve,le){v(ve,l,le),p(l,t),p(t,s),p(l,o),p(l,i),p(i,a),p(a,f),p(f,u),p(u,m),p(m,d),p(d,$),p(m,D),A(w,m,null),p(u,b),p(u,H),p(H,j),p(j,U),p(H,P),p(H,X),p(u,K),p(u,oe),p(oe,x),p(x,z),p(oe,J),A(M,oe,null),p(u,ie),p(u,B),p(B,L),p(L,Q),p(B,F),A(O,B,null),p(u,fe),me&&me.m(u,null),p(u,ce),p(u,V),p(V,q),p(q,ue),p(V,G),p(V,we),p(a,Ee),p(a,ae),de&&de.m(ae,null),p(ae,Ae),pe&&pe.m(ae,null),p(l,ke),ye=!0},p(ve,le){var ze,be;e=ve,(!ye||le&4)&&r!==(r=e[7].activityId+"")&&se(s,r);const We={};le&4&&(We.type=e[8]?"error":"default"),le&2052&&(We.$$scope={dirty:le,ctx:e}),w.$set(We),(!ye||le&4)&&Y!==(Y=He(e[7].lastHeartbeatTime,"relative")+"")&&se(X,Y);const Be={};le&4&&(Be.type=e[8]?"error":"default"),le&2052&&(Be.$$scope={dirty:le,ctx:e}),M.$set(Be);const De={};le&4&&(De.type=e[8]?"error":"default"),le&2052&&(De.$$scope={dirty:le,ctx:e}),O.$set(De),e[8]&&e[7].scheduledTime?me?(me.p(e,le),le&4&&h(me,1)):(me=Ot(e),me.c(),h(me,1),me.m(u,ce)):me&&(ee(),_(me,1,1,()=>{me=null}),te()),(!ye||le&4)&&ne!==(ne=Ct(e[7].maximumAttempts,yt(Tt({start:Date.now(),end:e[7].expirationTime})))+"")&&se(we,ne),(!ye||le&2)&&g(f,"href",e[1]),(ze=e[7])!=null&&ze.heartbeatDetails?de?(de.p(e,le),le&4&&h(de,1)):(de=Lt(e),de.c(),h(de,1),de.m(ae,Ae)):de&&(ee(),_(de,1,1,()=>{de=null}),te()),(be=e[7])!=null&&be.lastFailure?pe?(pe.p(e,le),le&4&&h(pe,1)):(pe=jt(e),pe.c(),h(pe,1),pe.m(ae,null)):pe&&(ee(),_(pe,1,1,()=>{pe=null}),te())},i(ve){ye||(h(w.$$.fragment,ve),h(M.$$.fragment,ve),h(O.$$.fragment,ve),h(me),h(de),h(pe),ye=!0)},o(ve){_(w.$$.fragment,ve),_(M.$$.fragment,ve),_(O.$$.fragment,ve),_(me),_(de),_(pe),ye=!1},d(ve){ve&&c(l),W(w),W(M),W(O),me&&me.d(),de&&de.d(),pe&&pe.d()}}}function pr(n){let e;return{c(){e=N("Show all")},l(l){e=R(l,"Show all")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function hr(n){let e,l,t=n[2].length&&Bt(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[2].length?t?(t.p(r,s),s&4&&h(t,1)):(t=Bt(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function $r(n,e,l){let t,r,s,o,i,a;return he(n,Ve,f=>l(4,i=f)),he(n,Qe,f=>l(5,a=f)),n.$$.update=()=>{n.$$.dirty&32&&l(3,{workflow:t}=a,t),n.$$.dirty&8&&l(2,r=t==null?void 0:t.pendingActivities),n.$$.dirty&16&&l(1,s=Ml({namespace:i.params.namespace,workflow:i.params.workflow,run:i.params.run})),n.$$.dirty&8&&l(0,o=["Terminated","TimedOut","Canceled"].includes(t==null?void 0:t.status))},[o,s,r,t,i,a]}class _r extends $e{constructor(e){super(),_e(this,e,$r,hr,ge,{})}}const gr=n=>({}),qt=n=>({}),wr=n=>({}),Ut=n=>({});function zt(n){let e,l;return e=new Ke({props:{name:n[4]}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&16&&(s.name=t[4]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Qt(n){let e,l;return e=new Ke({props:{name:n[0]?"chevron-up":"chevron-down",class:"rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(n[5]?"text-gray-500":"text-primary")}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&1&&(s.name=t[0]?"chevron-up":"chevron-down"),r&32&&(s.class="rounded-full from-blue-100 to-purple-100 hover:bg-gradient-to-br "+(t[5]?"text-gray-500":"text-primary")),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Jt(n){let e,l;return e=new Te({props:{class:"mr-2",type:"error",$$slots:{default:[vr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&32896&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function vr(n){let e;return{c(){e=N(n[7])},l(l){e=R(l,n[7])},m(l,t){v(l,e,t)},p(l,t){t&128&&se(e,l[7])},d(l){l&&c(e)}}}function kr(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z=n[4]&&zt(n);const J=n[12].summary,M=Fe(J,n,n[15],Ut),ie=n[12].action,B=Fe(ie,n,n[15],qt);let L=!n[6]&&Qt(n),Q=n[7]&&Jt(n);const F=n[12].default,O=Fe(F,n,n[15],null);let fe=[{class:X="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+n[8]},n[10]],ce={};for(let V=0;V{z=null}),te()),(!K||q&2)&&se(o,V[1]),M&&M.p&&(!K||q&32768)&&Oe(M,J,V,V[15],K?je(J,V[15],q,wr):Le(V[15]),Ut),B&&B.p&&(!K||q&32768)&&Oe(B,ie,V,V[15],K?je(ie,V[15],q,gr):Le(V[15]),qt),V[6]?L&&(ee(),_(L,1,1,()=>{L=null}),te()):L?(L.p(V,q),q&64&&h(L,1)):(L=Qt(V),L.c(),h(L,1),L.m(t,null)),V[7]?Q?(Q.p(V,q),q&128&&h(Q,1)):(Q=Jt(V),Q.c(),h(Q,1),Q.m(d,$)):Q&&(ee(),_(Q,1,1,()=>{Q=null}),te()),(!K||q&8)&&se(D,V[3]),(!K||q&4&&w!==(w=V[2]+"-trigger"))&&g(l,"id",w),(!K||q&1)&&g(l,"aria-expanded",V[0]),(!K||q&4&&b!==(b=V[2]+"-content"))&&g(l,"aria-controls",b),(!K||q&96&&H!==(H=V[5]||V[6]))&&(l.disabled=H),O&&O.p&&(!K||q&32768)&&Oe(O,F,V,V[15],K?je(F,V[15],q,null):Le(V[15]),null),(!K||q&4&&P!==(P=V[2]+"-content"))&&g(U,"id",P),(!K||q&4&&Y!==(Y=V[2]+"-trigger"))&&g(U,"aria-labelledby",Y),(!K||q&1)&>(U,"hidden",!V[0]),lt(e,ce=ut(fe,[(!K||q&256&&X!==(X="flex w-full cursor-default flex-col rounded-xl border-2 border-gray-900 bg-white p-4 text-primary "+V[8]))&&{class:X},q&1024&&V[10]]))},i(V){K||(h(z),h(M,V),h(B,V),h(L),h(Q),h(O,V),K=!0)},o(V){_(z),_(M,V),_(B,V),_(L),_(Q),_(O,V),K=!1},d(V){V&&c(e),z&&z.d(),M&&M.d(V),B&&B.d(V),L&&L.d(),Q&&Q.d(),O&&O.d(V),oe=!1,Cl(x)}}}function br(n,e,l){const t=["title","id","subtitle","icon","open","disabled","readOnly","error","onToggle","class"];let r=rt(e,t),{$$slots:s={},$$scope:o}=e,{title:i}=e,{id:a=Ul()}=e,{subtitle:f=""}=e,{icon:u=null}=e,{open:m=!1}=e,{disabled:d=!1}=e,{readOnly:$=!1}=e,{error:D=""}=e,{onToggle:w=()=>{}}=e,{class:b=""}=e;const H=()=>{d||$||(l(0,m=!m),w())};function j(P){vt.call(this,n,P)}function U(P){vt.call(this,n,P)}return n.$$set=P=>{e=Pe(Pe({},e),$l(P)),l(10,r=rt(e,t)),"title"in P&&l(1,i=P.title),"id"in P&&l(2,a=P.id),"subtitle"in P&&l(3,f=P.subtitle),"icon"in P&&l(4,u=P.icon),"open"in P&&l(0,m=P.open),"disabled"in P&&l(5,d=P.disabled),"readOnly"in P&&l(6,$=P.readOnly),"error"in P&&l(7,D=P.error),"onToggle"in P&&l(11,w=P.onToggle),"class"in P&&l(8,b=P.class),"$$scope"in P&&l(15,o=P.$$scope)},n.$$.update=()=>{n.$$.dirty&33&&l(0,m=d?!0:m)},[m,i,a,f,u,d,$,D,b,H,r,w,s,j,U,o]}class mt extends $e{constructor(e){super(),_e(this,e,br,kr,ge,{title:1,id:2,subtitle:3,icon:4,open:0,disabled:5,readOnly:6,error:7,onToggle:11,class:8})}}function Kt(n,e,l){const t=n.slice();return t[3]=e[l],t}function Er(n){let e,l=n[3].workflowId+"",t,r,s,o=n[3].runId+"",i,a;return{c(){e=E("td"),t=N(l),r=T(),s=E("td"),i=N(o),a=T()},l(f){e=y(f,"TD",{});var u=k(e);t=R(u,l),u.forEach(c),r=I(f),s=y(f,"TD",{});var m=k(s);i=R(m,o),m.forEach(c),a=I(f)},m(f,u){v(f,e,u),p(e,t),v(f,r,u),v(f,s,u),p(s,i),v(f,a,u)},p(f,u){u&4&&l!==(l=f[3].workflowId+"")&&se(t,l),u&4&&o!==(o=f[3].runId+"")&&se(i,o)},d(f){f&&c(e),f&&c(r),f&&c(s),f&&c(a)}}}function Gt(n,e){let l,t,r;return t=new zl({props:{href:Ie({namespace:e[1],workflow:e[3].workflowId,run:e[3].runId}),$$slots:{default:[Er]},$$scope:{ctx:e}}}),{key:n,first:null,c(){l=re(),C(t.$$.fragment),this.h()},l(s){l=re(),S(t.$$.fragment,s),this.h()},h(){this.first=l},m(s,o){v(s,l,o),A(t,s,o),r=!0},p(s,o){e=s;const i={};o&6&&(i.href=Ie({namespace:e[1],workflow:e[3].workflowId,run:e[3].runId})),o&68&&(i.$$scope={dirty:o,ctx:e}),t.$set(i)},i(s){r||(h(t.$$.fragment,s),r=!0)},o(s){_(t.$$.fragment,s),r=!1},d(s){s&&c(l),W(t,s)}}}function yr(n){let e=[],l=new Map,t,r,s=n[2];const o=i=>i[3].runId;for(let i=0;i({2:t}),({visibleItems:t})=>t?4:0]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,[r]){const s={};r&1&&(s.items=t[0]),r&70&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Wr(n,e,l){let{pendingChildren:t=[]}=e,{namespace:r}=e;return n.$$set=s=>{"pendingChildren"in s&&l(0,t=s.pendingChildren),"namespace"in s&&l(1,r=s.namespace)},[t,r]}class Dr extends $e{constructor(e){super(),_e(this,e,Wr,Ar,ge,{pendingChildren:0,namespace:1})}}function Sr(n){let e,l,t,r,s,o=n[0]&&Yt(n);const i=[Pr,Rr],a=[];function f(u,m){return u[3]?0:1}return l=f(n),t=a[l]=i[l](n),{c(){o&&o.c(),e=T(),t.c(),r=re()},l(u){o&&o.l(u),e=I(u),t.l(u),r=re()},m(u,m){o&&o.m(u,m),v(u,e,m),a[l].m(u,m),v(u,r,m),s=!0},p(u,m){u[0]?o?o.p(u,m):(o=Yt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=l;l=f(u),l===d?a[l].p(u,m):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),t=a[l],t?t.p(u,m):(t=a[l]=i[l](u),t.c()),h(t,1),t.m(r.parentNode,r))},i(u){s||(h(t),s=!0)},o(u){_(t),s=!1},d(u){o&&o.d(u),u&&c(e),a[l].d(u),u&&c(r)}}}function Nr(n){let e,l;return e=new ql({props:{content:n[1],visible:!0,"container-class":"gap-1 w-full",$$slots:{default:[Or]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2&&(s.content=t[1]),r&43&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Yt(n){let e,l;return{c(){e=N(n[0]),l=N(":")},l(t){e=R(t,n[0]),l=R(t,":")},m(t,r){v(t,e,r),v(t,l,r)},p(t,r){r&1&&se(e,t[0])},d(t){t&&c(e),t&&c(l)}}}function Rr(n){let e,l;return{c(){e=E("span"),l=N(n[1]),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,n[1]),r.forEach(c),this.h()},h(){g(e,"class","select-all truncate")},m(t,r){v(t,e,r),p(e,l)},p(t,r){r&2&&se(l,t[1])},i:Z,o:Z,d(t){t&&c(e)}}}function Pr(n){let e,l;return e=new Je({props:{href:n[3],class:"truncate",$$slots:{default:[Vr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&8&&(s.href=t[3]),r&34&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Vr(n){let e;return{c(){e=N(n[1])},l(l){e=R(l,n[1])},m(l,t){v(l,e,t)},p(l,t){t&2&&se(e,l[1])},d(l){l&&c(e)}}}function Xt(n){let e,l;return{c(){e=N(n[0]),l=N(":")},l(t){e=R(t,n[0]),l=R(t,":")},m(t,r){v(t,e,r),v(t,l,r)},p(t,r){r&1&&se(e,t[0])},d(t){t&&c(e),t&&c(l)}}}function Br(n){let e,l;return{c(){e=E("span"),l=N(n[1]),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,n[1]),r.forEach(c),this.h()},h(){g(e,"class","select-all truncate")},m(t,r){v(t,e,r),p(e,l)},p(t,r){r&2&&se(l,t[1])},i:Z,o:Z,d(t){t&&c(e)}}}function Hr(n){let e,l;return e=new Je({props:{href:n[3],class:"truncate",$$slots:{default:[Fr]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&8&&(s.href=t[3]),r&34&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Fr(n){let e;return{c(){e=N(n[1])},l(l){e=R(l,n[1])},m(l,t){v(l,e,t)},p(l,t){t&2&&se(e,l[1])},d(l){l&&c(e)}}}function Or(n){let e,l,t,r,s,o=n[0]&&Xt(n);const i=[Hr,Br],a=[];function f(u,m){return u[3]?0:1}return l=f(n),t=a[l]=i[l](n),{c(){o&&o.c(),e=T(),t.c(),r=re()},l(u){o&&o.l(u),e=I(u),t.l(u),r=re()},m(u,m){o&&o.m(u,m),v(u,e,m),a[l].m(u,m),v(u,r,m),s=!0},p(u,m){u[0]?o?o.p(u,m):(o=Xt(u),o.c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null);let d=l;l=f(u),l===d?a[l].p(u,m):(ee(),_(a[d],1,1,()=>{a[d]=null}),te(),t=a[l],t?t.p(u,m):(t=a[l]=i[l](u),t.c()),h(t,1),t.m(r.parentNode,r))},i(u){s||(h(t),s=!0)},o(u){_(t),s=!1},d(u){o&&o.d(u),u&&c(e),a[l].d(u),u&&c(r)}}}function Lr(n){let e,l,t,r,s;const o=[Nr,Sr],i=[];function a(f,u){return f[2]?0:1}return l=a(n),t=i[l]=o[l](n),{c(){e=E("p"),t.c(),this.h()},l(f){e=y(f,"P",{class:!0});var u=k(e);t.l(u),u.forEach(c),this.h()},h(){g(e,"class",r="flex items-center gap-2 text-"+n[4]+" whitespace-nowrap pt-2")},m(f,u){v(f,e,u),i[l].m(e,null),s=!0},p(f,[u]){let m=l;l=a(f),l===m?i[l].p(f,u):(ee(),_(i[m],1,1,()=>{i[m]=null}),te(),t=i[l],t?t.p(f,u):(t=i[l]=o[l](f),t.c()),h(t,1),t.m(e,null)),(!s||u&16&&r!==(r="flex items-center gap-2 text-"+f[4]+" whitespace-nowrap pt-2"))&&g(e,"class",r)},i(f){s||(h(t),s=!0)},o(f){_(t),s=!1},d(f){f&&c(e),i[l].d()}}}function jr(n,e,l){let{title:t=""}=e,{content:r}=e,{copyable:s=!1}=e,{href:o=null}=e,{textSize:i="md"}=e;return n.$$set=a=>{"title"in a&&l(0,t=a.title),"content"in a&&l(1,r=a.content),"copyable"in a&&l(2,s=a.copyable),"href"in a&&l(3,o=a.href),"textSize"in a&&l(4,i=a.textSize)},[t,r,s,o,i]}class Ce extends $e{constructor(e){super(),_e(this,e,jr,Lr,ge,{title:0,content:1,copyable:2,href:3,textSize:4})}}function Mr(n){let e,l;return{c(){e=E("p"),l=N("This workflow doesn’t have any relationships")},l(t){e=y(t,"P",{});var r=k(e);l=R(r,"This workflow doesn’t have any relationships"),r.forEach(c)},m(t,r){v(t,e,r),p(e,l)},p:Z,i:Z,o:Z,d(t){t&&c(e)}}}function qr(n){let e,l,t,r,s,o,i,a=n[3]&&Zt(n),f=n[2]&&xt(n),u=n[5]&&el(n),m=n[4]&&tl(n),d=n[0]&&ll(n);return{c(){e=E("div"),a&&a.c(),l=T(),f&&f.c(),t=T(),u&&u.c(),r=T(),m&&m.c(),s=T(),d&&d.c(),o=re(),this.h()},l($){e=y($,"DIV",{class:!0});var D=k(e);a&&a.l(D),l=I(D),f&&f.l(D),t=I(D),u&&u.l(D),r=I(D),m&&m.l(D),D.forEach(c),s=I($),d&&d.l($),o=re(),this.h()},h(){g(e,"class","flex w-full flex-wrap gap-4")},m($,D){v($,e,D),a&&a.m(e,null),p(e,l),f&&f.m(e,null),p(e,t),u&&u.m(e,null),p(e,r),m&&m.m(e,null),v($,s,D),d&&d.m($,D),v($,o,D),i=!0},p($,D){$[3]?a?(a.p($,D),D&8&&h(a,1)):(a=Zt($),a.c(),h(a,1),a.m(e,l)):a&&(ee(),_(a,1,1,()=>{a=null}),te()),$[2]?f?(f.p($,D),D&4&&h(f,1)):(f=xt($),f.c(),h(f,1),f.m(e,t)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),$[5]?u?(u.p($,D),D&32&&h(u,1)):(u=el($),u.c(),h(u,1),u.m(e,r)):u&&(ee(),_(u,1,1,()=>{u=null}),te()),$[4]?m?(m.p($,D),D&16&&h(m,1)):(m=tl($),m.c(),h(m,1),m.m(e,null)):m&&(ee(),_(m,1,1,()=>{m=null}),te()),$[0]?d?(d.p($,D),D&1&&h(d,1)):(d=ll($),d.c(),h(d,1),d.m(o.parentNode,o)):d&&(ee(),_(d,1,1,()=>{d=null}),te())},i($){i||(h(a),h(f),h(u),h(m),h(d),i=!0)},o($){_(a),_(f),_(u),_(m),_(d),i=!1},d($){$&&c(e),a&&a.d(),f&&f.d(),u&&u.d(),m&&m.d(),$&&c(s),d&&d.d($),$&&c(o)}}}function Zt(n){let e,l,t,r,s,o,i,a,f,u;return i=new Ce({props:{title:"Workflow ID",content:n[3].workflowId,copyable:!0,href:Ie({namespace:n[7],workflow:n[3].workflowId,run:n[3].runId})}}),f=new Ce({props:{title:"Run ID",content:n[3].runId,copyable:!0,href:Ie({namespace:n[7],workflow:n[3].workflowId,run:n[3].runId})}}),{c(){e=E("div"),l=E("h3"),t=N("Parent"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),a=T(),C(f.$$.fragment),this.h()},l(m){e=y(m,"DIV",{class:!0});var d=k(e);l=y(d,"H3",{class:!0});var $=k(l);t=R($,"Parent"),$.forEach(c),r=I(d),s=y(d,"DIV",{class:!0}),k(s).forEach(c),o=I(d),S(i.$$.fragment,d),a=I(d),S(f.$$.fragment,d),d.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(m,d){v(m,e,d),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),p(e,a),A(f,e,null),u=!0},p(m,d){const $={};d&8&&($.content=m[3].workflowId),d&136&&($.href=Ie({namespace:m[7],workflow:m[3].workflowId,run:m[3].runId})),i.$set($);const D={};d&8&&(D.content=m[3].runId),d&136&&(D.href=Ie({namespace:m[7],workflow:m[3].workflowId,run:m[3].runId})),f.$set(D)},i(m){u||(h(i.$$.fragment,m),h(f.$$.fragment,m),u=!0)},o(m){_(i.$$.fragment,m),_(f.$$.fragment,m),u=!1},d(m){m&&c(e),W(i),W(f)}}}function xt(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"First Execution Run ID",content:n[2],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[2]})}}),{c(){e=E("div"),l=E("h3"),t=N("First"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"First"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&4&&(m.content=f[2]),u&388&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[2]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function el(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"Continued Execution Run ID",content:n[5],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[5]})}}),{c(){e=E("div"),l=E("h3"),t=N("Previous"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"Previous"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&32&&(m.content=f[5]),u&416&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[5]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function tl(n){let e,l,t,r,s,o,i,a;return i=new Ce({props:{title:"New Execution Run ID",content:n[4],copyable:!0,href:Ie({namespace:n[7],workflow:n[8],run:n[4]})}}),{c(){e=E("div"),l=E("h3"),t=N("Next"),r=T(),s=E("div"),o=T(),C(i.$$.fragment),this.h()},l(f){e=y(f,"DIV",{class:!0});var u=k(e);l=y(u,"H3",{class:!0});var m=k(l);t=R(m,"Next"),m.forEach(c),r=I(u),s=y(u,"DIV",{class:!0}),k(s).forEach(c),o=I(u),S(i.$$.fragment,u),u.forEach(c),this.h()},h(){g(l,"class","font-medium"),g(s,"class","h-0.5 w-full rounded-full bg-gray-900"),g(e,"class","w-[calc(50%-1rem)]")},m(f,u){v(f,e,u),p(e,l),p(l,t),p(e,r),p(e,s),p(e,o),A(i,e,null),a=!0},p(f,u){const m={};u&16&&(m.content=f[4]),u&400&&(m.href=Ie({namespace:f[7],workflow:f[8],run:f[4]})),i.$set(m)},i(f){a||(h(i.$$.fragment,f),a=!0)},o(f){_(i.$$.fragment,f),a=!1},d(f){f&&c(e),W(i)}}}function ll(n){let e,l;return e=new Dr({props:{pendingChildren:n[9].workflow.pendingChildren,namespace:n[6].params.namespace}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&512&&(s.pendingChildren=t[9].workflow.pendingChildren),r&64&&(s.namespace=t[6].params.namespace),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Ur(n){let e,l,t,r;const s=[qr,Mr],o=[];function i(a,f){return a[1]?0:1}return e=i(n),l=o[e]=s[e](n),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,f){o[e].m(a,f),v(a,t,f),r=!0},p(a,f){let u=e;e=i(a),e===u?o[e].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),l=o[e],l?l.p(a,f):(l=o[e]=s[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){r||(h(l),r=!0)},o(a){_(l),r=!1},d(a){o[e].d(a),a&&c(t)}}}function zr(n){let e=(n[3]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Parent")},l(r){l=R(r,e),t=R(r," Parent")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&8&&e!==(e=(r[3]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Qr(n){let e=n[9].workflow.pendingChildren.length+"",l,t;return{c(){l=N(e),t=N(" Pending Children")},l(r){l=R(r,e),t=R(r," Pending Children")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&512&&e!==(e=r[9].workflow.pendingChildren.length+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Jr(n){let e=(n[2]?1:0)+"",l,t;return{c(){l=N(e),t=N(" First")},l(r){l=R(r,e),t=R(r," First")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&4&&e!==(e=(r[2]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Kr(n){let e=(n[5]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Previous")},l(r){l=R(r,e),t=R(r," Previous")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&32&&e!==(e=(r[5]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Gr(n){let e=(n[4]?1:0)+"",l,t;return{c(){l=N(e),t=N(" Next")},l(r){l=R(r,e),t=R(r," Next")},m(r,s){v(r,l,s),v(r,t,s)},p(r,s){s&16&&e!==(e=(r[4]?1:0)+"")&&se(l,e)},d(r){r&&c(l),r&&c(t)}}}function Yr(n){let e,l,t,r,s,o,i,a,f,u,m;return l=new Te({props:{type:n[3]?"purple":"gray",$$slots:{default:[zr]},$$scope:{ctx:n}}}),r=new Te({props:{type:n[0]?"purple":"gray",$$slots:{default:[Qr]},$$scope:{ctx:n}}}),o=new Te({props:{type:n[2]?"purple":"gray",$$slots:{default:[Jr]},$$scope:{ctx:n}}}),a=new Te({props:{type:n[5]?"purple":"gray",$$slots:{default:[Kr]},$$scope:{ctx:n}}}),u=new Te({props:{type:n[4]?"purple":"gray",$$slots:{default:[Gr]},$$scope:{ctx:n}}}),{c(){e=E("div"),C(l.$$.fragment),t=T(),C(r.$$.fragment),s=T(),C(o.$$.fragment),i=T(),C(a.$$.fragment),f=T(),C(u.$$.fragment),this.h()},l(d){e=y(d,"DIV",{slot:!0,class:!0});var $=k(e);S(l.$$.fragment,$),t=I($),S(r.$$.fragment,$),s=I($),S(o.$$.fragment,$),i=I($),S(a.$$.fragment,$),f=I($),S(u.$$.fragment,$),$.forEach(c),this.h()},h(){g(e,"slot","summary"),g(e,"class","hidden flex-row gap-2 lg:flex")},m(d,$){v(d,e,$),A(l,e,null),p(e,t),A(r,e,null),p(e,s),A(o,e,null),p(e,i),A(a,e,null),p(e,f),A(u,e,null),m=!0},p(d,$){const D={};$&8&&(D.type=d[3]?"purple":"gray"),$&1032&&(D.$$scope={dirty:$,ctx:d}),l.$set(D);const w={};$&1&&(w.type=d[0]?"purple":"gray"),$&1536&&(w.$$scope={dirty:$,ctx:d}),r.$set(w);const b={};$&4&&(b.type=d[2]?"purple":"gray"),$&1028&&(b.$$scope={dirty:$,ctx:d}),o.$set(b);const H={};$&32&&(H.type=d[5]?"purple":"gray"),$&1056&&(H.$$scope={dirty:$,ctx:d}),a.$set(H);const j={};$&16&&(j.type=d[4]?"purple":"gray"),$&1040&&(j.$$scope={dirty:$,ctx:d}),u.$set(j)},i(d){m||(h(l.$$.fragment,d),h(r.$$.fragment,d),h(o.$$.fragment,d),h(a.$$.fragment,d),h(u.$$.fragment,d),m=!0)},o(d){_(l.$$.fragment,d),_(r.$$.fragment,d),_(o.$$.fragment,d),_(a.$$.fragment,d),_(u.$$.fragment,d),m=!1},d(d){d&&c(e),W(l),W(r),W(o),W(a),W(u)}}}function Xr(n){let e,l,t;return l=new mt({props:{title:"Relationships",icon:"relationship",$$slots:{summary:[Yr],default:[Ur]},$$scope:{ctx:n}}}),{c(){e=E("section"),C(l.$$.fragment)},l(r){e=y(r,"SECTION",{});var s=k(e);S(l.$$.fragment,s),s.forEach(c)},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,[s]){const o={};s&2047&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function Zr(n,e,l){let t,r,s,o;he(n,Ve,$=>l(6,s=$)),he(n,Qe,$=>l(9,o=$));let{hasChildren:i}=e,{hasRelationships:a}=e,{first:f}=e,{parent:u}=e,{next:m}=e,{previous:d}=e;return n.$$set=$=>{"hasChildren"in $&&l(0,i=$.hasChildren),"hasRelationships"in $&&l(1,a=$.hasRelationships),"first"in $&&l(2,f=$.first),"parent"in $&&l(3,u=$.parent),"next"in $&&l(4,m=$.next),"previous"in $&&l(5,d=$.previous)},n.$$.update=()=>{n.$$.dirty&64&&l(8,{workflow:t,namespace:r}=s.params,t,(l(7,r),l(6,s)))},[i,a,f,u,m,d,s,r,t,o]}class xr extends $e{constructor(e){super(),_e(this,e,Zr,Xr,ge,{hasChildren:0,hasRelationships:1,first:2,parent:3,next:4,previous:5})}}function rl(n){let e,l,t;return l=new Ql({props:{icon:"warning",title:"No Workers Running",content:"Please make sure you have at least one worker connected to the "+n[0].taskQueue+" Task Queue.",class:"my-0"}}),{c(){e=E("section"),C(l.$$.fragment),this.h()},l(r){e=y(r,"SECTION",{class:!0});var s=k(e);S(l.$$.fragment,s),s.forEach(c),this.h()},h(){g(e,"class","stack-trace svelte-y5tg73")},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,s){const o={};s&1&&(o.content="Please make sure you have at least one worker connected to the "+r[0].taskQueue+" Task Queue."),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function en(n){let e,l,t=n[1]&&rl(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[1]?t?(t.p(r,s),s&2&&h(t,1)):(t=rl(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function tn(n,e,l){let t,r,s,o;he(n,Qe,a=>l(4,o=a));var i;return n.$$.update=()=>{n.$$.dirty&16&&l(0,{workflow:t,workers:r}=o,t,(l(3,r),l(4,o))),n.$$.dirty&13&&l(1,s=t.isRunning&&!(!(l(2,i=r==null?void 0:r.pollers)===null||i===void 0)&&i.length))},[t,s,i,r,o]}class ln extends $e{constructor(e){super(),_e(this,e,tn,en,ge,{})}}function rn(n){var Q,F,O,fe,ce,V,q,ue;let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z,J,M,ie,B,L;return a=new Ce({props:{content:(Q=n[0])==null?void 0:Q.name,copyable:!0}}),u=new Ce({props:{title:"Run ID",content:(F=n[0])==null?void 0:F.runId,copyable:!0}}),j=new Ce({props:{content:(O=n[0])==null?void 0:O.taskQueue,href:It({namespace:n[2].params.namespace,workflow:(fe=n[0])==null?void 0:fe.id,run:(ce=n[0])==null?void 0:ce.runId}),copyable:!0}}),P=new Ce({props:{title:"State Transitions",content:(V=n[0])==null?void 0:V.stateTransitionCount}}),M=new Ce({props:{title:"Start Time",content:He((q=n[0])==null?void 0:q.startTime,n[3])}}),B=new Ce({props:{title:"Close Time",content:He((ue=n[0])==null?void 0:ue.endTime,n[3])}}),{c(){e=E("div"),l=E("div"),t=E("h3"),r=N("Workflow Type"),s=T(),o=E("div"),i=T(),C(a.$$.fragment),f=T(),C(u.$$.fragment),m=T(),d=E("div"),$=E("h3"),D=N("Task Queue"),w=T(),b=E("div"),H=T(),C(j.$$.fragment),U=T(),C(P.$$.fragment),Y=T(),X=E("div"),K=E("h3"),oe=N("Start & Close Time"),x=T(),z=E("div"),J=T(),C(M.$$.fragment),ie=T(),C(B.$$.fragment),this.h()},l(G){e=y(G,"DIV",{class:!0});var ne=k(e);l=y(ne,"DIV",{class:!0});var we=k(l);t=y(we,"H3",{class:!0});var Ee=k(t);r=R(Ee,"Workflow Type"),Ee.forEach(c),s=I(we),o=y(we,"DIV",{class:!0}),k(o).forEach(c),i=I(we),S(a.$$.fragment,we),f=I(we),S(u.$$.fragment,we),we.forEach(c),m=I(ne),d=y(ne,"DIV",{class:!0});var ae=k(d);$=y(ae,"H3",{class:!0});var Ae=k($);D=R(Ae,"Task Queue"),Ae.forEach(c),w=I(ae),b=y(ae,"DIV",{class:!0}),k(b).forEach(c),H=I(ae),S(j.$$.fragment,ae),U=I(ae),S(P.$$.fragment,ae),ae.forEach(c),Y=I(ne),X=y(ne,"DIV",{class:!0});var ke=k(X);K=y(ke,"H3",{class:!0});var ye=k(K);oe=R(ye,"Start & Close Time"),ye.forEach(c),x=I(ke),z=y(ke,"DIV",{class:!0}),k(z).forEach(c),J=I(ke),S(M.$$.fragment,ke),ie=I(ke),S(B.$$.fragment,ke),ke.forEach(c),ne.forEach(c),this.h()},h(){g(t,"class","font-medium"),g(o,"class","h-0.5 rounded-full bg-gray-900"),g(l,"class","col-span-1 md:col-span-2"),g($,"class","font-medium"),g(b,"class","h-0.5 rounded-full bg-gray-900"),g(d,"class","col-span-1"),g(K,"class","font-medium"),g(z,"class","h-0.5 rounded-full bg-gray-900"),g(X,"class","col-span-1"),g(e,"class","grid-row-3 grid w-full grid-cols-1 gap-4 md:grid-cols-2 lg:grid-cols-4 xl:w-11/12")},m(G,ne){v(G,e,ne),p(e,l),p(l,t),p(t,r),p(l,s),p(l,o),p(l,i),A(a,l,null),p(l,f),A(u,l,null),p(e,m),p(e,d),p(d,$),p($,D),p(d,w),p(d,b),p(d,H),A(j,d,null),p(d,U),A(P,d,null),p(e,Y),p(e,X),p(X,K),p(K,oe),p(X,x),p(X,z),p(X,J),A(M,X,null),p(X,ie),A(B,X,null),L=!0},p(G,ne){var me,de,pe,qe,Ue,ve,le,We;const we={};ne&1&&(we.content=(me=G[0])==null?void 0:me.name),a.$set(we);const Ee={};ne&1&&(Ee.content=(de=G[0])==null?void 0:de.runId),u.$set(Ee);const ae={};ne&1&&(ae.content=(pe=G[0])==null?void 0:pe.taskQueue),ne&5&&(ae.href=It({namespace:G[2].params.namespace,workflow:(qe=G[0])==null?void 0:qe.id,run:(Ue=G[0])==null?void 0:Ue.runId})),j.$set(ae);const Ae={};ne&1&&(Ae.content=(ve=G[0])==null?void 0:ve.stateTransitionCount),P.$set(Ae);const ke={};ne&9&&(ke.content=He((le=G[0])==null?void 0:le.startTime,G[3])),M.$set(ke);const ye={};ne&9&&(ye.content=He((We=G[0])==null?void 0:We.endTime,G[3])),B.$set(ye)},i(G){L||(h(a.$$.fragment,G),h(u.$$.fragment,G),h(j.$$.fragment,G),h(P.$$.fragment,G),h(M.$$.fragment,G),h(B.$$.fragment,G),L=!0)},o(G){_(a.$$.fragment,G),_(u.$$.fragment,G),_(j.$$.fragment,G),_(P.$$.fragment,G),_(M.$$.fragment,G),_(B.$$.fragment,G),L=!1},d(G){G&&c(e),W(a),W(u),W(j),W(P),W(M),W(B)}}}function nn(n){let e,l,t;return l=new mt({props:{title:"Summary",icon:"summary",open:n[1],onToggle:n[5],$$slots:{default:[rn]},$$scope:{ctx:n}}}),{c(){e=E("section"),C(l.$$.fragment)},l(r){e=y(r,"SECTION",{});var s=k(e);S(l.$$.fragment,s),s.forEach(c)},m(r,s){v(r,e,s),A(l,e,null),t=!0},p(r,[s]){const o={};s&2&&(o.open=r[1]),s&2&&(o.onToggle=r[5]),s&77&&(o.$$scope={dirty:s,ctx:r}),l.$set(o)},i(r){t||(h(l.$$.fragment,r),t=!0)},o(r){_(l.$$.fragment,r),t=!1},d(r){r&&c(e),W(l)}}}function sn(n,e,l){let t,r,s,o,i;he(n,Qe,f=>l(4,r=f)),he(n,Et,f=>l(1,s=f)),he(n,Ve,f=>l(2,o=f)),he(n,Jl,f=>l(3,i=f));const a=()=>{ct(Et,s=!s,s)};return n.$$.update=()=>{n.$$.dirty&16&&l(0,{workflow:t}=r,t)},[t,s,o,i,r,a]}class on extends $e{constructor(e){super(),_e(this,e,sn,nn,ge,{})}}function nl(n){let e,l;return e=new Fl({props:{bold:!0,icon:"warning",intent:"warning",title:n[5],role:"status",$$slots:{default:[dn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&32&&(s.title=t[5]),r&2079&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function sl(n){let e,l,t,r;return l=new Je({props:{newTab:!0,href:"http://support.temporal.io/",$$slots:{default:[an]},$$scope:{ctx:n}}}),{c(){e=N("Please "),C(l.$$.fragment),t=N(".")},l(s){e=R(s,"Please "),S(l.$$.fragment,s),t=R(s,".")},m(s,o){v(s,e,o),A(l,s,o),v(s,t,o),r=!0},i(s){r||(h(l.$$.fragment,s),r=!0)},o(s){_(l.$$.fragment,s),r=!1},d(s){s&&c(e),W(l,s),s&&c(t)}}}function an(n){let e;return{c(){e=N("contact support")},l(l){e=R(l,"contact support")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function ol(n){let e,l,t,r,s;return t=new Je({props:{newTab:!0,href:n[2],$$slots:{default:[fn]},$$scope:{ctx:n}}}),{c(){e=E("p"),l=N("Learn more about "),C(t.$$.fragment),r=N(".")},l(o){e=y(o,"P",{});var i=k(e);l=R(i,"Learn more about "),S(t.$$.fragment,i),r=R(i,"."),i.forEach(c)},m(o,i){v(o,e,i),p(e,l),A(t,e,null),p(e,r),s=!0},p(o,i){const a={};i&4&&(a.href=o[2]),i&2056&&(a.$$scope={dirty:i,ctx:o}),t.$set(a)},i(o){s||(h(t.$$.fragment,o),s=!0)},o(o){_(t.$$.fragment,o),s=!1},d(o){o&&c(e),W(t)}}}function fn(n){let e;return{c(){e=N(n[3])},l(l){e=R(l,n[3])},m(l,t){v(l,e,t)},p(l,t){t&8&&se(e,l[3])},d(l){l&&c(e)}}}function un(n){let e,l;return e=new yl({props:{event:n[0],initialItem:n[0],visibleItems:[n[0]],typedError:!0}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&1&&(s.event=t[0]),r&1&&(s.initialItem=t[0]),r&1&&(s.visibleItems=[t[0]]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function cn(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D;return a=new Ke({props:{name:"clock"}}),{c(){e=E("th"),l=T(),t=E("th"),r=E("span"),s=N("Date & Time"),o=T(),i=E("span"),C(a.$$.fragment),f=T(),u=E("th"),m=N("Event"),d=T(),$=E("th"),this.h()},l(w){e=y(w,"TH",{class:!0}),k(e).forEach(c),l=I(w),t=y(w,"TH",{class:!0});var b=k(t);r=y(b,"SPAN",{class:!0});var H=k(r);s=R(H,"Date & Time"),H.forEach(c),o=I(b),i=y(b,"SPAN",{class:!0});var j=k(i);S(a.$$.fragment,j),j.forEach(c),b.forEach(c),f=I(w),u=y(w,"TH",{class:!0});var U=k(u);m=R(U,"Event"),U.forEach(c),d=I(w),$=y(w,"TH",{class:!0}),k($).forEach(c),this.h()},h(){g(e,"class","w-14 xl:w-10"),g(r,"class","max-md:hidden "),g(i,"class","md:hidden"),g(t,"class","w-16 md:w-32"),g(u,"class","w-44"),g($,"class","w-auto xl:w-80")},m(w,b){v(w,e,b),v(w,l,b),v(w,t,b),p(t,r),p(r,s),p(t,o),p(t,i),A(a,i,null),v(w,f,b),v(w,u,b),p(u,m),v(w,d,b),v(w,$,b),D=!0},p:Z,i(w){D||(h(a.$$.fragment,w),D=!0)},o(w){_(a.$$.fragment,w),D=!1},d(w){w&&c(e),w&&c(l),w&&c(t),W(a),w&&c(f),w&&c(u),w&&c(d),w&&c($)}}}function mn(n){let e,l;return e=new El({props:{slot:"headers",$$slots:{default:[cn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2048&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function dn(n){let e,l,t,r,s,o,i,a,f=n[1]&&sl(n),u=n[3]&&n[2]&&ol(n);return i=new bl({props:{class:"dark w-full table-fixed",$$slots:{headers:[mn],default:[un]},$$scope:{ctx:n}}}),{c(){e=E("p"),l=N(n[4]),t=T(),f&&f.c(),r=T(),u&&u.c(),s=T(),o=E("div"),C(i.$$.fragment),this.h()},l(m){e=y(m,"P",{});var d=k(e);l=R(d,n[4]),t=I(d),f&&f.l(d),d.forEach(c),r=I(m),u&&u.l(m),s=I(m),o=y(m,"DIV",{class:!0});var $=k(o);S(i.$$.fragment,$),$.forEach(c),this.h()},h(){g(o,"class","mt-2 bg-white")},m(m,d){v(m,e,d),p(e,l),p(e,t),f&&f.m(e,null),v(m,r,d),u&&u.m(m,d),v(m,s,d),v(m,o,d),A(i,o,null),a=!0},p(m,d){(!a||d&16)&&se(l,m[4]),m[1]?f?d&2&&h(f,1):(f=sl(m),f.c(),h(f,1),f.m(e,null)):f&&(ee(),_(f,1,1,()=>{f=null}),te()),m[3]&&m[2]?u?(u.p(m,d),d&12&&h(u,1)):(u=ol(m),u.c(),h(u,1),u.m(s.parentNode,s)):u&&(ee(),_(u,1,1,()=>{u=null}),te());const $={};d&2049&&($.$$scope={dirty:d,ctx:m}),i.$set($)},i(m){a||(h(f),h(u),h(i.$$.fragment,m),a=!0)},o(m){_(f),_(u),_(i.$$.fragment,m),a=!1},d(m){m&&c(e),f&&f.d(),m&&c(r),u&&u.d(m),m&&c(s),m&&c(o),W(i)}}}function pn(n){let e,l,t=(n[5]||n[4])&&nl(n);return{c(){t&&t.c(),e=re()},l(r){t&&t.l(r),e=re()},m(r,s){t&&t.m(r,s),v(r,e,s),l=!0},p(r,[s]){r[5]||r[4]?t?(t.p(r,s),s&48&&h(t,1)):(t=nl(r),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(ee(),_(t,1,1,()=>{t=null}),te())},i(r){l||(h(t),l=!0)},o(r){_(t),l=!1},d(r){t&&t.d(r),r&&c(e)}}}function hn(n,e,l){let t,r,s,o,i,a,f;var u;const m={Unspecified:{title:"Unspecified",copy:"The Workflow Task failed for an unknown reason.",contactSupport:!0},UnhandledCommand:{title:"Unhandled Command",copy:"The Workflow Task failed because there are new available events since the last Workflow Task started. A retry Workflow Task has been scheduled and the Workflow will have a chance to handle those new events."},BadScheduleActivityAttributes:{title:"Bad Schedule Activity Attributes",copy:"The Workflow Task failed because of missing or incorrect ScheduleActivity attributes."},BadRequestCancelActivityAttributes:{title:"Bad Request Cancel Activity Attributes",copy:"The Workflow Task failed because of bad RequestCancelActivity attributes. An Activity was scheduled to cancel, but the scheduled event id was never set."},BadStartTimerAttributes:{title:"Bad Start Timer Attributes",copy:"The Workflow Task failed because the scheduled event is missing a timer id."},BadCancelTimerAttributes:{title:"Bad Cancel Timer Attributes",copy:"The Workflow Task failed when trying to cancel a timer due to an unset timer id."},BadRecordMarkerAttributes:{title:"Bad Record Marker Attributes",copy:"The Workflow Task failed because of a missing or invalid Marker name."},BadCompleteWorkflowExecutionAttributes:{title:"Bad Complete Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset attribute on CompleteWorkflowExecution."},BadFailWorkflowExecutionAttribute:{title:"Bad Fail Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset FailWorkflowExecution attribute or failure."},BadCancelWorkflowExecutionAttributes:{title:"Bad Cancel Workflow Execution Attributes",copy:"The Workflow Task failed because of an unset attribute on CancelWorkflowExecution."},BadRequestCancelExternalAttributes:{title:"Bad Request Cancel External Attributes",copy:"The Workflow Task failed due to an invalid attribute on a request to cancel an external Workflow. Check the Failure Message for more details."},BadContinueAsNewAttributes:{title:"Bad Continue As New Attributes",copy:"The Workflow Task failed because it failed to validate on a ContinueAsNew attribute. Check the Failure Message for more details."},StartTimerDuplicateId:{title:"Start Timer Duplicate",copy:"The Workflow Task failed because a timer with the given timer id has already started."},ResetStickyTaskQueue:{title:"Reset Sticky Task Queue",copy:"The Workflow Task failed because the Sticky Task Queue needs to be reset. The system will automatically retry."},WorkflowWorkerUnhandledFailure:{title:"Workflow Worker Unhandled Failure",copy:"The Workflow Task failed due to an unhandled failure from the Workflow code.",actionCopy:"deterministic constraints",link:"https://docs.temporal.io/workflows/#deterministic-constraints"},WorkflowTaskHeartbeatError:{title:"Workflow Task Heartbeat Error",copy:"The Workflow Task failed to send a heartbeat while executing long-running local Activities. These local Activities will re-execute on the next Workflow Task attempt. If this error is persistent, these local Activities will run repeatedly until the Workflow times out."},BadSignalWorkflowExecutionAttributes:{title:"Bad Signal Workflow Execution Attributes",copy:"The Workflow Task failed to validate attributes for SignalWorkflowExecution. Check the Failure Message for more details."},BadStartChildExecutionAttributes:{title:"Bad Start Child Execution Attributes",copy:"The Workflow Task failed to validate attributes needed for StartChildWorkflowExecution. Check the Failure Message for more details."},ForceCloseCommand:{title:"Force Close Command",copy:"The Workflow Task was forced to close. A retry will be scheduled if the error is recoverable."},FailoverCloseCommand:{title:"Failover Close Command",copy:"The Workflow Task was forced to close due to a Namespace failover. A retry will be scheduled automatically."},BadSignalInputSize:{title:"Bad Signal Input Size",copy:"The payload has exceeded the available input size on a Signal."},ResetWorkflow:{title:"Reset Workflow",copy:"The system failed this Workflow Task. If a reset for this Workflow was requested check the progress on the new Workflow, otherwise reset this Workflow."},BadBinary:{title:"Bad Binary",copy:"The system failed this Workflow Task because the deployment of this Worker is marked as bad binary."},ScheduleActivityDuplicatId:{title:"Schedule Activity Duplicate ID",copy:"The Workflow Task failed because the Activity ID is already in use, please check if you have specified the same Activity ID in your workflow."},BadSearchAttributes:{title:"Bad Search Attributes",copy:"A Search attribute is either missing or the value exceeds the limit. This might cause Workflow tasks to continue to retry without success.",actionCopy:"configuring search attributes",link:"https://docs.temporal.io/visibility#search-attribute"},NonDeterministicError:{title:"Non Deterministic Error",copy:"A non-deterministic error has caused the Workflow Task to fail. This usually means the workflow code has a non-backward compatible change without a proper versioning branch."},BadModifyWorkflowPropertiesAttributes:{title:"Bad Modify Workflow Properties Attributes",copy:"The Workflow Task failed to validate attributes on ModifyWorkflowProperty on the upsert memo. Check the Failure Message for more details."},PendingChildWorkflowsLimitExceeded:{title:"Pending Child Workflows Limit Exceeded",copy:"The capacity for pending child Workflows has been reached. The Workflow Task was failed to prevent any more child Workflows from being added."},PendingActivitiesLimitExceeded:{title:"Pending Activities Limit Exceeded",copy:"The capacity for pending Activities has been reached. The Workflow Task was failed to prevent another Activity from being created."},PendingSignalsLimitExceeded:{title:"Pending Signals Limit Exceeded",copy:"The capacity for pending Signals to be sent from this Workflow has been reached."},PendingRequestCancelLimitExceeded:{title:"Pending Request Cancel Limit Exceeded",copy:"The capacity for pending requests to cancel other Workflows has been reached."}};function d(D){var w;if(!D||!D.workflowTaskFailedEventAttributes)return;const{workflowTaskFailedEventAttributes:{failure:b,cause:H}}=D;return((w=b==null?void 0:b.applicationFailureInfo)===null||w===void 0?void 0:w.type)==="workflowTaskHeartbeatError"?"WorkflowTaskHeartbeatError":H}let{error:$}=e;return n.$$set=D=>{"error"in D&&l(0,$=D.error)},n.$$.update=()=>{n.$$.dirty&1&&l(8,t=d($)),n.$$.dirty&320&&l(7,r=l(6,u=m[t])!==null&&u!==void 0?u:{}),n.$$.dirty&128&&l(5,{title:s="",copy:o="",actionCopy:i="",link:a="",contactSupport:f=!1}=r,s,(l(4,o),l(7,r),l(8,t),l(6,u),l(0,$)),(l(3,i),l(7,r),l(8,t),l(6,u),l(0,$)),(l(2,a),l(7,r),l(8,t),l(6,u),l(0,$)),(l(1,f),l(7,r),l(8,t),l(6,u),l(0,$)))},[$,f,a,i,o,s,u,r,t]}class $n extends $e{constructor(e){super(),_e(this,e,hn,pn,ge,{error:0})}}function al(n,e,l){const t=n.slice();return t[1]=e[l],t}function il(n){let e,l;return e=new Te({props:{type:"count",class:"rounded-sm",$$slots:{default:[_n]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&516&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function _n(n){let e=n[2].length+"",l;return{c(){l=N(e)},l(t){l=R(t,e)},m(t,r){v(t,l,r)},p(t,r){r&4&&e!==(e=t[2].length+"")&&se(l,e)},d(t){t&&c(l)}}}function gn(n){let e,l;return e=new Me({props:{content:"Results will appear upon completion.",language:"text",class:"mb-2 lg:max-h-[24rem]",copyable:!1}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p:Z,i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function wn(n){let e,l,t,r;const s=[kn,vn],o=[];function i(a,f){return a[4]?0:1}return e=i(n),l=o[e]=s[e](n),{c(){l.c(),t=re()},l(a){l.l(a),t=re()},m(a,f){o[e].m(a,f),v(a,t,f),r=!0},p(a,f){let u=e;e=i(a),e===u?o[e].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),l=o[e],l?l.p(a,f):(l=o[e]=s[e](a),l.c()),h(l,1),l.m(t.parentNode,t))},i(a){r||(h(l),r=!0)},o(a){_(l),r=!1},d(a){o[e].d(a),a&&c(t)}}}function vn(n){let e,l;return e=new Me({props:{content:n[1],class:"mb-2 lg:max-h-[23.5rem]"}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,r){const s={};r&2&&(s.content=t[1]),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function kn(n){let e,l,t=n[2],r=[];for(let o=0;o_(r[o],1,1,()=>{r[o]=null});return{c(){e=E("div");for(let o=0;o{f=null}),te());let H=o;o=d(w),o===H?m[o].p(w,b):(ee(),_(m[H],1,1,()=>{m[H]=null}),te(),i=m[o],i?i.p(w,b):(i=m[o]=u[o](w),i.c()),h(i,1),i.m(e,null)),lt(e,D=ut($,[{class:"flex w-full flex-col lg:w-1/2"},b&32&&w[5]]))},i(w){a||(h(f),h(i),a=!0)},o(w){_(f),_(i),a=!1},d(w){w&&c(e),f&&f.d(),m[o].d()}}}function En(n,e,l){let t,r,s;const o=["content","title"];let i=rt(e,o),{content:a}=e,{title:f}=e;const u=m=>{try{const d=JSON.parse(m);return Array.isArray(d)?d:[]}catch{return[]}};return n.$$set=m=>{e=Pe(Pe({},e),$l(m)),l(5,i=rt(e,o)),"content"in m&&l(1,a=m.content),"title"in m&&l(0,f=m.title)},n.$$.update=()=>{n.$$.dirty&2&&l(2,t=u(a)),n.$$.dirty&4&&l(4,r=t.length>0),n.$$.dirty&4&&l(3,s=t.length>1)},[f,a,t,s,r,i]}class ul extends $e{constructor(e){super(),_e(this,e,En,bn,ge,{content:1,title:0})}}function yn(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key up"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key up"),a.forEach(c),this.h()},h(){g(l,"d","M9.39 265.4l127.1-128C143.6 131.1 151.8 128 160 128s16.38 3.125 22.63 9.375l127.1 128c9.156 9.156 11.9 22.91 6.943 34.88S300.9 320 287.1 320H32.01c-12.94 0-24.62-7.781-29.58-19.75S.2333 274.5 9.39 265.4z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 320 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Tn extends $e{constructor(e){super(),_e(this,e,null,yn,ge,{})}}function In(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key down"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key down"),a.forEach(c),this.h()},h(){g(l,"d","M310.6 246.6l-127.1 128C176.4 380.9 168.2 384 160 384s-16.38-3.125-22.63-9.375l-127.1-128C.2244 237.5-2.516 223.7 2.438 211.8S19.07 192 32 192h255.1c12.94 0 24.62 7.781 29.58 19.75S319.8 237.5 310.6 246.6z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 320 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Cn extends $e{constructor(e){super(),_e(this,e,null,In,ge,{})}}function An(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key right"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key right"),a.forEach(c),this.h()},h(){g(l,"d","M118.6 105.4l128 127.1C252.9 239.6 256 247.8 256 255.1s-3.125 16.38-9.375 22.63l-128 127.1c-9.156 9.156-22.91 11.9-34.88 6.943S64 396.9 64 383.1V128c0-12.94 7.781-24.62 19.75-29.58S109.5 96.23 118.6 105.4z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 256 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Wn extends $e{constructor(e){super(),_e(this,e,null,An,ge,{})}}function Dn(n){let e,l,t,r,s;return{c(){e=Ne("svg"),l=Ne("path"),t=T(),r=E("span"),s=N("Arrow key left"),this.h()},l(o){e=Re(o,"svg",{class:!0,"aria-hidden":!0,fill:!0,xmlns:!0,viewBox:!0});var i=k(e);l=Re(i,"path",{d:!0}),k(l).forEach(c),i.forEach(c),t=I(o),r=y(o,"SPAN",{class:!0});var a=k(r);s=R(a,"Arrow key left"),a.forEach(c),this.h()},h(){g(l,"d","M137.4 406.6l-128-127.1C3.125 272.4 0 264.2 0 255.1s3.125-16.38 9.375-22.63l128-127.1c9.156-9.156 22.91-11.9 34.88-6.943S192 115.1 192 128v255.1c0 12.94-7.781 24.62-19.75 29.58S146.5 415.8 137.4 406.6z"),g(e,"class","h-4 w-4"),g(e,"aria-hidden","true"),g(e,"fill","currentColor"),g(e,"xmlns","http://www.w3.org/2000/svg"),g(e,"viewBox","0 0 256 512"),g(r,"class","sr-only")},m(o,i){v(o,e,i),p(e,l),v(o,t,i),v(o,r,i),p(r,s)},p:Z,i:Z,o:Z,d(o){o&&c(e),o&&c(t),o&&c(r)}}}class Sn extends $e{constructor(e){super(),_e(this,e,null,Dn,ge,{})}}function Nn(n){let e;const l=n[3].default,t=Fe(l,n,n[4],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){t&&t.p&&(!e||s&16)&&Oe(t,l,r,r[4],e?je(l,r[4],s,null):Le(r[4]),null)},i(r){e||(h(t,r),e=!0)},o(r){_(t,r),e=!1},d(r){t&&t.d(r)}}}function Rn(n){let e,l,t;var r=n[2][n[1]];function s(o){return{}}return r&&(e=nt(r,s())),{c(){e&&C(e.$$.fragment),l=re()},l(o){e&&S(e.$$.fragment,o),l=re()},m(o,i){e&&A(e,o,i),v(o,l,i),t=!0},p(o,i){if(r!==(r=o[2][o[1]])){if(e){ee();const a=e;_(a.$$.fragment,1,0,()=>{W(a,1)}),te()}r?(e=nt(r,s()),C(e.$$.fragment),h(e.$$.fragment,1),A(e,l.parentNode,l)):e=null}},i(o){t||(e&&h(e.$$.fragment,o),t=!0)},o(o){e&&_(e.$$.fragment,o),t=!1},d(o){o&&c(l),e&&W(e,o)}}}function Pn(n){let e,l,t,r;const s=[Rn,Nn],o=[];function i(a,f){return a[1]?0:1}return l=i(n),t=o[l]=s[l](n),{c(){e=E("kbd"),t.c(),this.h()},l(a){e=y(a,"KBD",{class:!0});var f=k(e);t.l(f),f.forEach(c),this.h()},h(){g(e,"class","shortcut svelte-y44j93")},m(a,f){v(a,e,f),o[l].m(e,null),r=!0},p(a,f){let u=l;l=i(a),l===u?o[l].p(a,f):(ee(),_(o[u],1,1,()=>{o[u]=null}),te(),t=o[l],t?t.p(a,f):(t=o[l]=s[l](a),t.c()),h(t,1),t.m(e,null))},i(a){r||(h(t),r=!0)},o(a){_(t),r=!1},d(a){a&&c(e),o[l].d()}}}function Vn(n){let e,l;return e=new vl({props:{text:n[0],hide:!n[0],top:!0,$$slots:{default:[Pn]},$$scope:{ctx:n}}}),{c(){C(e.$$.fragment)},l(t){S(e.$$.fragment,t)},m(t,r){A(e,t,r),l=!0},p(t,[r]){const s={};r&1&&(s.text=t[0]),r&1&&(s.hide=!t[0]),r&18&&(s.$$scope={dirty:r,ctx:t}),e.$set(s)},i(t){l||(h(e.$$.fragment,t),l=!0)},o(t){_(e.$$.fragment,t),l=!1},d(t){W(e,t)}}}function Bn(n,e,l){let{$$slots:t={},$$scope:r}=e,{tooltipText:s=""}=e,{arrow:o=void 0}=e;const i={up:Tn,down:Cn,left:Sn,right:Wn};return n.$$set=a=>{"tooltipText"in a&&l(0,s=a.tooltipText),"arrow"in a&&l(1,o=a.arrow),"$$scope"in a&&l(4,r=a.$$scope)},[s,o,i,t,r]}class Se extends $e{constructor(e){super(),_e(this,e,Bn,Vn,ge,{tooltipText:0,arrow:1})}}function Hn(n){let e,l;return{c(){e=E("span"),l=N("?"),this.h()},l(t){e=y(t,"SPAN",{class:!0});var r=k(e);l=R(r,"?"),r.forEach(c),this.h()},h(){g(e,"class","flex h-[24px] w-[24px] items-center justify-center text-xl")},m(t,r){v(t,e,r),p(e,l)},p:Z,d(t){t&&c(e)}}}function Fn(n){let e;return{c(){e=N("L")},l(l){e=R(l,"L")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function On(n){let e;return{c(){e=N("H")},l(l){e=R(l,"H")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function Ln(n){let e;return{c(){e=N("J")},l(l){e=R(l,"J")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function jn(n){let e;return{c(){e=N("K")},l(l){e=R(l,"K")},m(l,t){v(l,e,t)},d(l){l&&c(e)}}}function Mn(n){let e,l,t,r,s,o,i,a,f,u,m,d,$,D,w,b,H,j,U,P,Y,X,K,oe,x,z,J,M,ie;return s=new Se({props:{arrow:"right"}}),i=new Se({props:{$$slots:{default:[Fn]},$$scope:{ctx:n}}}),d=new Se({props:{arrow:"left"}}),D=new Se({props:{$$slots:{default:[On]},$$scope:{ctx:n}}}),U=new Se({props:{arrow:"down"}}),Y=new Se({props:{$$slots:{default:[Ln]},$$scope:{ctx:n}}}),z=new Se({props:{arrow:"up"}}),M=new Se({props:{$$slots:{default:[jn]},$$scope:{ctx:n}}}),{c(){e=E("div"),l=E("div"),t=N(`Next Page `),r=E("div"),C(s.$$.fragment),o=N("|"),C(i.$$.fragment),a=T(),f=E("div"),u=N(`Previous Page diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.140848ac.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.bb0bded7.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.140848ac.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.bb0bded7.js index e0c30e5a72..b5afdc2da0 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.140848ac.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.bb0bded7.js @@ -1,4 +1,4 @@ -import{S as Vt,b as Wt,a as Ft,m as te,p as ie,u as X,f as z,n as Ye,k as T,N as ks,q as se,Q as Br,T as Uh,V as Kh,U as Gh,a5 as Ir,M as Qh,o as sr,O as Jh,P as Yh,A as _e,Y as kt,C as _,c as Z,D as V,d as ee,E as W,L as N,Z as vt,j as O,z as St,g as B,h as xt,F,e as yn,a7 as xl,w as ke,x as ve,K as ge,_ as Ie,i as Al,y as zn,aj as rr,$ as Cl,af as Ol,G as Tl,H as Ml,I as Dl,J as Pl}from"../chunks/index.a36c9cb0.js";import{w as Xh}from"../chunks/index.deae5bd4.js";import{p as or}from"../chunks/stores.48be4ca9.js";import{r as ut,w as cn,i as Zh}from"../chunks/workflow-run.8a407b5f.js";import{e as Ci,A as Bl,t as Rr,i as ef,f as tf}from"../chunks/events-service.d0c588a2.js";import{a as nf}from"../chunks/auth-user.3a7bc4db.js";import{f as Il}from"../chunks/icon-button.bcd06a36.js";import{a as un,e as Er}from"../chunks/event-view.f557cd63.js";import{S as sf,O as rf,w as of,a as lf,b as af}from"../chunks/workflow-terminate-enabled.50d3ef8f.js";import{g as ii,h as Wi,i as Fi,j as Hi,k as zi,r as $r}from"../chunks/route-for.6dec3e74.js";import{B as lr}from"../chunks/badge.7f30446f.js";import{T as hf,C as ff}from"../chunks/tooltip.bd2ec5a4.js";import{c as ze,I as Rl}from"../chunks/icon.33859671.js";import{W as cf}from"../chunks/workflow-status.47d31de2.js";import{w as uf,t as df,c as pf,s as gf,r as mf,f as wf}from"../chunks/workflow-service.11be6188.js";import{s as bf}from"../chunks/settings.34723850.js";import{c as yf}from"../chunks/core-user.f8486d3a.js";import{t as ts}from"../chunks/toaster.16c48a98.js";import{S as kf}from"../chunks/split-button.207826fc.js";import{M as vf}from"../chunks/menu-item.4122979b.js";import{M as qi}from"../chunks/modal.50ea7269.js";import{I as qn}from"../chunks/input.a193633b.js";import{p as Sf}from"../chunks/persist-store.863ae031.js";import{T as wi}from"../chunks/tab.e1caed35.js";import{T as xf}from"../chunks/toggle-switch.48168915.js";import{h as Af}from"../chunks/has.48bed8a5.js";import{L as Cf}from"../chunks/link.855bf830.js";import{L as Of}from"../chunks/loading.bcb9b7b8.js";import{g as Tf}from"../chunks/pollers-service.2fa449c9.js";import{p as Mf,c as Df}from"../chunks/is-http.1e6b12cd.js";import{g as Pf,a as Bf,c as If,d as Rf,e as Ef}from"../chunks/get-codec.8518c13e.js";const El={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},$f=Xh(El),Lf=()=>{$f.set(El)};var Ge=(s=>(s[s.FirstWorkflowTask=0]="FirstWorkflowTask",s[s.LastWorkflowTask=1]="LastWorkflowTask",s[s.EventId=2]="EventId",s))(Ge||{});function Nf(s){let e;return{c(){e=te("hr"),this.h()},l(t){e=ie(t,"HR",{class:!0}),this.h()},h(){X(e,"class","mx-4 border-gray-300")},m(t,i){z(t,e,i)},p:Ye,i:Ye,o:Ye,d(t){t&&T(e)}}}class _f extends Vt{constructor(e){super(),Wt(this,e,null,Nf,Ft,{})}}class Q{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),dt.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),dt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Oi(this),r=new Oi(e);for(let o=t,l=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new $l(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ll(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Q.empty:e.length<=32?new ce(e):dt.from(ce.split(e,[]))}}class ce extends Q{constructor(e,t=Vf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((t?i:l)>=e)return new Wf(n,l,i,o);n=l+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new ce(Lr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),l=dn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ce(l,o.length+r.length));else{let a=l.length>>1;i.push(new ce(l.slice(0,a)),new ce(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ce))return super.replace(e,t,i);let n=dn(this.text,dn(i.text,Lr(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new ce(n,r):dt.from(ce.split(n,[]),r)}sliceString(e,t=this.length,i=` +import{S as Vt,b as Wt,a as Ft,m as te,p as ie,u as X,f as z,n as Ye,k as T,N as ks,q as se,Q as Br,T as Uh,V as Kh,U as Gh,a5 as Ir,M as Qh,o as sr,O as Jh,P as Yh,A as _e,Y as kt,C as _,c as Z,D as V,d as ee,E as W,L as N,Z as vt,j as O,z as St,g as B,h as xt,F,e as yn,a7 as xl,w as ke,x as ve,K as ge,_ as Ie,i as Al,y as zn,aj as rr,$ as Cl,af as Ol,G as Tl,H as Ml,I as Dl,J as Pl}from"../chunks/index.a36c9cb0.js";import{w as Xh}from"../chunks/index.deae5bd4.js";import{p as or}from"../chunks/stores.4d55fa19.js";import{r as ut,w as cn,i as Zh}from"../chunks/workflow-run.8a407b5f.js";import{e as Ci,A as Bl,t as Rr,i as ef,f as tf}from"../chunks/events-service.389da786.js";import{a as nf}from"../chunks/auth-user.3a7bc4db.js";import{f as Il}from"../chunks/icon-button.bcd06a36.js";import{a as un,e as Er}from"../chunks/event-view.f557cd63.js";import{S as sf,O as rf,w as of,a as lf,b as af}from"../chunks/workflow-terminate-enabled.47bfe8cf.js";import{g as ii,h as Wi,i as Fi,j as Hi,k as zi,r as $r}from"../chunks/route-for.e1b7889c.js";import{B as lr}from"../chunks/badge.7f30446f.js";import{T as hf,C as ff}from"../chunks/tooltip.bd2ec5a4.js";import{c as ze,I as Rl}from"../chunks/icon.33859671.js";import{W as cf}from"../chunks/workflow-status.47d31de2.js";import{w as uf,t as df,c as pf,s as gf,r as mf,f as wf}from"../chunks/workflow-service.a6d60dde.js";import{s as bf}from"../chunks/settings.34723850.js";import{c as yf}from"../chunks/core-user.f8486d3a.js";import{t as ts}from"../chunks/toaster.16c48a98.js";import{S as kf}from"../chunks/split-button.207826fc.js";import{M as vf}from"../chunks/menu-item.4122979b.js";import{M as qi}from"../chunks/modal.50ea7269.js";import{I as qn}from"../chunks/input.a193633b.js";import{p as Sf}from"../chunks/persist-store.863ae031.js";import{T as wi}from"../chunks/tab.e1caed35.js";import{T as xf}from"../chunks/toggle-switch.48168915.js";import{h as Af}from"../chunks/has.48bed8a5.js";import{L as Cf}from"../chunks/link.855bf830.js";import{L as Of}from"../chunks/loading.bcb9b7b8.js";import{g as Tf}from"../chunks/pollers-service.35343e4c.js";import{p as Mf,c as Df}from"../chunks/is-http.1e6b12cd.js";import{g as Pf,a as Bf,c as If,d as Rf,e as Ef}from"../chunks/get-codec.d25c452e.js";const El={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},$f=Xh(El),Lf=()=>{$f.set(El)};var Ge=(s=>(s[s.FirstWorkflowTask=0]="FirstWorkflowTask",s[s.LastWorkflowTask=1]="LastWorkflowTask",s[s.EventId=2]="EventId",s))(Ge||{});function Nf(s){let e;return{c(){e=te("hr"),this.h()},l(t){e=ie(t,"HR",{class:!0}),this.h()},h(){X(e,"class","mx-4 border-gray-300")},m(t,i){z(t,e,i)},p:Ye,i:Ye,o:Ye,d(t){t&&T(e)}}}class _f extends Vt{constructor(e){super(),Wt(this,e,null,Nf,Ft,{})}}class Q{constructor(){}lineAt(e){if(e<0||e>this.length)throw new RangeError(`Invalid position ${e} in document of length ${this.length}`);return this.lineInner(e,!1,1,0)}line(e){if(e<1||e>this.lines)throw new RangeError(`Invalid line number ${e} in ${this.lines}-line document`);return this.lineInner(e,!0,1,0)}replace(e,t,i){let n=[];return this.decompose(0,e,n,2),i.length&&i.decompose(0,i.length,n,3),this.decompose(t,this.length,n,1),dt.from(n,this.length-(t-e)+i.length)}append(e){return this.replace(this.length,this.length,e)}slice(e,t=this.length){let i=[];return this.decompose(e,t,i,0),dt.from(i,t-e)}eq(e){if(e==this)return!0;if(e.length!=this.length||e.lines!=this.lines)return!1;let t=this.scanIdentical(e,1),i=this.length-this.scanIdentical(e,-1),n=new Oi(this),r=new Oi(e);for(let o=t,l=t;;){if(n.next(o),r.next(o),o=0,n.lineBreak!=r.lineBreak||n.done!=r.done||n.value!=r.value)return!1;if(l+=n.value.length,n.done||l>=i)return!0}}iter(e=1){return new Oi(this,e)}iterRange(e,t=this.length){return new $l(this,e,t)}iterLines(e,t){let i;if(e==null)i=this.iter();else{t==null&&(t=this.lines+1);let n=this.line(e).from;i=this.iterRange(n,Math.max(n,t==this.lines+1?this.length:t<=1?0:this.line(t-1).to))}return new Ll(i)}toString(){return this.sliceString(0)}toJSON(){let e=[];return this.flatten(e),e}static of(e){if(e.length==0)throw new RangeError("A document must have at least one line");return e.length==1&&!e[0]?Q.empty:e.length<=32?new ce(e):dt.from(ce.split(e,[]))}}class ce extends Q{constructor(e,t=Vf(e)){super(),this.text=e,this.length=t}get lines(){return this.text.length}get children(){return null}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.text[r],l=n+o.length;if((t?i:l)>=e)return new Wf(n,l,i,o);n=l+1,i++}}decompose(e,t,i,n){let r=e<=0&&t>=this.length?this:new ce(Lr(this.text,e,t),Math.min(t,this.length)-Math.max(0,e));if(n&1){let o=i.pop(),l=dn(r.text,o.text.slice(),0,r.length);if(l.length<=32)i.push(new ce(l,o.length+r.length));else{let a=l.length>>1;i.push(new ce(l.slice(0,a)),new ce(l.slice(a)))}}else i.push(r)}replace(e,t,i){if(!(i instanceof ce))return super.replace(e,t,i);let n=dn(this.text,dn(i.text,Lr(this.text,0,e)),t),r=this.length+i.length-(t-e);return n.length<=32?new ce(n,r):dt.from(ce.split(n,[]),r)}sliceString(e,t=this.length,i=` `){let n="";for(let r=0,o=0;r<=t&&oe&&o&&(n+=i),er&&(n+=l.slice(Math.max(0,e-r),t-r)),r=a+1}return n}flatten(e){for(let t of this.text)e.push(t)}scanIdentical(){return 0}static split(e,t){let i=[],n=-1;for(let r of e)i.push(r),n+=r.length+1,i.length==32&&(t.push(new ce(i,n)),i=[],n=-1);return n>-1&&t.push(new ce(i,n)),t}}class dt extends Q{constructor(e,t){super(),this.children=e,this.length=t,this.lines=0;for(let i of e)this.lines+=i.lines}lineInner(e,t,i,n){for(let r=0;;r++){let o=this.children[r],l=n+o.length,a=i+o.lines-1;if((t?a:l)>=e)return o.lineInner(e,t,i,n);n=l+1,i=a+1}}decompose(e,t,i,n){for(let r=0,o=0;o<=t&&r=o){let h=n&((o<=e?1:0)|(a>=t?2:0));o>=e&&a<=t&&!h?i.push(l):l.decompose(e-o,t-o,i,h)}o=a+1}}replace(e,t,i){if(i.lines=r&&t<=l){let a=o.replace(e-r,t-r,i),h=this.lines-o.lines+a.lines;if(a.lines>5-1&&a.lines>h>>5+1){let f=this.children.slice();return f[n]=a,new dt(f,this.length-(t-e)+i.length)}return super.replace(r,l,a)}r=l+1}return super.replace(e,t,i)}sliceString(e,t=this.length,i=` `){let n="";for(let r=0,o=0;re&&r&&(n+=i),eo&&(n+=l.sliceString(e-o,t-o,i)),o=a+1}return n}flatten(e){for(let t of this.children)t.flatten(e)}scanIdentical(e,t){if(!(e instanceof dt))return 0;let i=0,[n,r,o,l]=t>0?[0,0,this.children.length,e.children.length]:[this.children.length-1,e.children.length-1,-1,-1];for(;;n+=t,r+=t){if(n==o||r==l)return i;let a=this.children[n],h=e.children[r];if(a!=h)return i+a.scanIdentical(h,t);i+=a.length+1}}static from(e,t=e.reduce((i,n)=>i+n.length+1,-1)){let i=0;for(let d of e)i+=d.lines;if(i<32){let d=[];for(let p of e)p.flatten(d);return new ce(d,t)}let n=Math.max(32,i>>5),r=n<<1,o=n>>1,l=[],a=0,h=-1,f=[];function c(d){let p;if(d.lines>r&&d instanceof dt)for(let m of d.children)c(m);else d.lines>o&&(a>o||!a)?(u(),l.push(d)):d instanceof ce&&a&&(p=f[f.length-1])instanceof ce&&d.lines+p.lines<=32?(a+=d.lines,h+=d.length+1,f[f.length-1]=new ce(p.text.concat(d.text),p.length+1+d.length)):(a+d.lines>n&&u(),a+=d.lines,h+=d.length+1,f.push(d))}function u(){a!=0&&(l.push(f.length==1?f[0]:dt.from(f,h)),h=-1,a=f.length=0)}for(let d of e)c(d);return u(),l.length==1?l[0]:new dt(l,t)}}Q.empty=new ce([""],0);function Vf(s){let e=-1;for(let t of s)e+=t.length+1;return e}function dn(s,e,t=0,i=1e9){for(let n=0,r=0,o=!0;r=t&&(a>i&&(l=l.slice(0,i-n)),n0?1:(e instanceof ce?e.text.length:e.children.length)<<1]}nextInner(e,t){for(this.done=this.lineBreak=!1;;){let i=this.nodes.length-1,n=this.nodes[i],r=this.offsets[i],o=r>>1,l=n instanceof ce?n.text.length:n.children.length;if(o==(t>0?l:0)){if(i==0)return this.done=!0,this.value="",this;t>0&&this.offsets[i-1]++,this.nodes.pop(),this.offsets.pop()}else if((r&1)==(t>0?0:1)){if(this.offsets[i]+=t,e==0)return this.lineBreak=!0,this.value=` `,this;e--}else if(n instanceof ce){let a=n.text[o+(t<0?-1:0)];if(this.offsets[i]+=t,a.length>Math.max(0,e))return this.value=e==0?a:t>0?a.slice(e):a.slice(0,a.length-e),this;e-=a.length}else{let a=n.children[o+(t<0?-1:0)];e>a.length?(e-=a.length,this.offsets[i]+=t):(t<0&&this.offsets[i]--,this.nodes.push(a),this.offsets.push(t>0?1:(a instanceof ce?a.text.length:a.children.length)<<1))}}}next(e=0){return e<0&&(this.nextInner(-e,-this.dir),e=this.value.length),this.nextInner(e,this.dir)}}class $l{constructor(e,t,i){this.value="",this.done=!1,this.cursor=new Oi(e,t>i?-1:1),this.pos=t>i?e.length:0,this.from=Math.min(t,i),this.to=Math.max(t,i)}nextInner(e,t){if(t<0?this.pos<=this.from:this.pos>=this.to)return this.value="",this.done=!0,this;e+=Math.max(0,t<0?this.pos-this.to:this.from-this.pos);let i=t<0?this.pos-this.from:this.to-this.pos;e>i&&(e=i),i-=e;let{value:n}=this.cursor.next(e);return this.pos+=(n.length+e)*t,this.value=n.length<=i?n:t<0?n.slice(n.length-i):n.slice(0,i),this.done=!this.value,this}next(e=0){return e<0?e=Math.max(e,this.from-this.pos):e>0&&(e=Math.min(e,this.to-this.pos)),this.nextInner(e,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class Ll{constructor(e){this.inner=e,this.afterBreak=!0,this.value="",this.done=!1}next(e=0){let{done:t,lineBreak:i,value:n}=this.inner.next(e);return t?(this.done=!0,this.value=""):i?this.afterBreak?this.value="":(this.afterBreak=!0,this.next()):(this.value=n,this.afterBreak=!1),this}get lineBreak(){return!1}}typeof Symbol<"u"&&(Q.prototype[Symbol.iterator]=function(){return this.iter()},Oi.prototype[Symbol.iterator]=$l.prototype[Symbol.iterator]=Ll.prototype[Symbol.iterator]=function(){return this});class Wf{constructor(e,t,i,n){this.from=e,this.to=t,this.number=i,this.text=n}get length(){return this.to-this.from}}let si="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map(s=>s?parseInt(s,36):1);for(let s=1;ss)return si[e-1]<=s;return!1}function Nr(s){return s>=127462&&s<=127487}const _r=8205;function Ue(s,e,t=!0,i=!0){return(t?Nl:Hf)(s,e,i)}function Nl(s,e,t){if(e==s.length)return e;e&&_l(s.charCodeAt(e))&&Vl(s.charCodeAt(e-1))&&e--;let i=qe(s,e);for(e+=tt(i);e=0&&Nr(qe(s,o));)r++,o-=2;if(r%2==0)break;e+=2}else break}return e}function Hf(s,e,t){for(;e>0;){let i=Nl(s,e-2,t);if(i=56320&&s<57344}function Vl(s){return s>=55296&&s<56320}function qe(s,e){let t=s.charCodeAt(e);if(!Vl(t)||e+1==s.length)return t;let i=s.charCodeAt(e+1);return _l(i)?(t-55296<<10)+(i-56320)+65536:t}function Wl(s){return s<=65535?String.fromCharCode(s):(s-=65536,String.fromCharCode((s>>10)+55296,(s&1023)+56320))}function tt(s){return s<65536?1:2}const vs=/\r\n?|\n/;var Ne=function(s){return s[s.Simple=0]="Simple",s[s.TrackDel=1]="TrackDel",s[s.TrackBefore=2]="TrackBefore",s[s.TrackAfter=3]="TrackAfter",s}(Ne||(Ne={}));class gt{constructor(e){this.sections=e}get length(){let e=0;for(let t=0;te)return r+(e-n);r+=l}else{if(i!=Ne.Simple&&h>=e&&(i==Ne.TrackDel&&ne||i==Ne.TrackBefore&&ne))return null;if(h>e||h==e&&t<0&&!l)return e==n||t<0?r:r+a;r+=a}n=h}if(e>n)throw new RangeError(`Position ${e} is out of range for changeset of length ${n}`);return r}touchesRange(e,t=e){for(let i=0,n=0;i=0&&n<=t&&l>=e)return nt?"cover":!0;n=l}return!1}toString(){let e="";for(let t=0;t=0?":"+n:"")}return e}toJSON(){return this.sections}static fromJSON(e){if(!Array.isArray(e)||e.length%2||e.some(t=>typeof t!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new gt(e)}static create(e){return new gt(e)}}class me extends gt{constructor(e,t){super(e),this.inserted=t}apply(e){if(this.length!=e.length)throw new RangeError("Applying change set to a document with the wrong length");return Ss(this,(t,i,n,r,o)=>e=e.replace(n,n+(i-t),o),!1),e}mapDesc(e,t=!1){return xs(this,e,t,!0)}invert(e){let t=this.sections.slice(),i=[];for(let n=0,r=0;n=0){t[n]=l,t[n+1]=o;let a=n>>1;for(;i.length0&&Dt(i,t,r.text),r.forward(f),l+=f}let h=e[o++];for(;l>1].toJSON()))}return e}static of(e,t,i){let n=[],r=[],o=0,l=null;function a(f=!1){if(!f&&!n.length)return;ou||c<0||u>t)throw new RangeError(`Invalid change range ${c} to ${u} (in doc of length ${t})`);let p=d?typeof d=="string"?Q.of(d.split(i||vs)):d:Q.empty,m=p.length;if(c==u&&m==0)return;co&&Pe(n,c-o,-1),Pe(n,u-c,m),Dt(r,n,p),o=u}}return h(e),a(!l),l}static empty(e){return new me(e?[e,-1]:[],[])}static fromJSON(e){if(!Array.isArray(e))throw new RangeError("Invalid JSON representation of ChangeSet");let t=[],i=[];for(let n=0;nl&&typeof o!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(r.length==1)t.push(r[0],0);else{for(;i.length=0&&t<=0&&t==s[n+1]?s[n]+=e:e==0&&s[n]==0?s[n+1]+=t:i?(s[n]+=e,s[n+1]+=t):s.push(e,t)}function Dt(s,e,t){if(t.length==0)return;let i=e.length-2>>1;if(i>1])),!(t||o==s.sections.length||s.sections[o+1]<0);)l=s.sections[o++],a=s.sections[o++];e(n,h,r,f,c),n=h,r=f}}}function xs(s,e,t,i=!1){let n=[],r=i?[]:null,o=new Di(s),l=new Di(e);for(let a=-1;;)if(o.ins==-1&&l.ins==-1){let h=Math.min(o.len,l.len);Pe(n,h,-1),o.forward(h),l.forward(h)}else if(l.ins>=0&&(o.ins<0||a==o.i||o.off==0&&(l.len=0&&a=0){let h=0,f=o.len;for(;f;)if(l.ins==-1){let c=Math.min(f,l.len);h+=c,f-=c,l.forward(c)}else if(l.ins==0&&l.lena||o.ins>=0&&o.len>a)&&(l||i.length>h),r.forward2(a),o.forward(a)}}}}class Di{constructor(e){this.set=e,this.i=0,this.next()}next(){let{sections:e}=this.set;this.i>1;return t>=e.length?Q.empty:e[t]}textBit(e){let{inserted:t}=this.set,i=this.i-2>>1;return i>=t.length&&!e?Q.empty:t[i].slice(this.off,e==null?void 0:this.off+e)}forward(e){e==this.len?this.next():(this.len-=e,this.off+=e)}forward2(e){this.ins==-1?this.forward(e):e==this.ins?this.next():(this.ins-=e,this.off+=e)}}class Kt{constructor(e,t,i){this.from=e,this.to=t,this.flags=i}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let e=this.flags&3;return e==3?null:e}get goalColumn(){let e=this.flags>>5;return e==33554431?void 0:e}map(e,t=-1){let i,n;return this.empty?i=n=e.mapPos(this.from,t):(i=e.mapPos(this.from,1),n=e.mapPos(this.to,-1)),i==this.from&&n==this.to?this:new Kt(i,n,this.flags)}extend(e,t=e){if(e<=this.anchor&&t>=this.anchor)return v.range(e,t);let i=Math.abs(e-this.anchor)>Math.abs(t-this.anchor)?e:t;return v.range(this.anchor,i)}eq(e){return this.anchor==e.anchor&&this.head==e.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(e){if(!e||typeof e.anchor!="number"||typeof e.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return v.range(e.anchor,e.head)}static create(e,t,i){return new Kt(e,t,i)}}class v{constructor(e,t){this.ranges=e,this.mainIndex=t}map(e,t=-1){return e.empty?this:v.create(this.ranges.map(i=>i.map(e,t)),this.mainIndex)}eq(e){if(this.ranges.length!=e.ranges.length||this.mainIndex!=e.mainIndex)return!1;for(let t=0;te.toJSON()),main:this.mainIndex}}static fromJSON(e){if(!e||!Array.isArray(e.ranges)||typeof e.main!="number"||e.main>=e.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new v(e.ranges.map(t=>Kt.fromJSON(t)),e.main)}static single(e,t=e){return new v([v.range(e,t)],0)}static create(e,t=0){if(e.length==0)throw new RangeError("A selection needs at least one range");for(let i=0,n=0;ne?4:0)|r)}static normalized(e,t=0){let i=e[t];e.sort((n,r)=>n.from-r.from),t=e.indexOf(i);for(let n=1;nr.head?v.range(a,l):v.range(l,a))}}return new v(e,t)}}function Hl(s,e){for(let t of s.ranges)if(t.to>e)throw new RangeError("Selection points outside of document")}let ar=0;class ${constructor(e,t,i,n,r){this.combine=e,this.compareInput=t,this.compare=i,this.isStatic=n,this.id=ar++,this.default=e([]),this.extensions=typeof r=="function"?r(this):r}static define(e={}){return new $(e.combine||(t=>t),e.compareInput||((t,i)=>t===i),e.compare||(e.combine?(t,i)=>t===i:hr),!!e.static,e.enables)}of(e){return new pn([],this,0,e)}compute(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pn(e,this,1,t)}computeN(e,t){if(this.isStatic)throw new Error("Can't compute a static facet");return new pn(e,this,2,t)}from(e,t){return t||(t=i=>i),this.compute([e],i=>t(i.field(e)))}}function hr(s,e){return s==e||s.length==e.length&&s.every((t,i)=>t===e[i])}class pn{constructor(e,t,i,n){this.dependencies=e,this.facet=t,this.type=i,this.value=n,this.id=ar++}dynamicSlot(e){var t;let i=this.value,n=this.facet.compareInput,r=this.id,o=e[r]>>1,l=this.type==2,a=!1,h=!1,f=[];for(let c of this.dependencies)c=="doc"?a=!0:c=="selection"?h=!0:((t=e[c.id])!==null&&t!==void 0?t:1)&1||f.push(e[c.id]);return{create(c){return c.values[o]=i(c),1},update(c,u){if(a&&u.docChanged||h&&(u.docChanged||u.selection)||As(c,f)){let d=i(c);if(l?!Vr(d,c.values[o],n):!n(d,c.values[o]))return c.values[o]=d,1}return 0},reconfigure:(c,u)=>{let d,p=u.config.address[r];if(p!=null){let m=vn(u,p);if(this.dependencies.every(g=>g instanceof $?u.facet(g)===c.facet(g):g instanceof rt?u.field(g,!1)==c.field(g,!1):!0)||(l?Vr(d=i(c),m,n):n(d=i(c),m)))return c.values[o]=m,0}else d=i(c);return c.values[o]=d,1}}}}function Vr(s,e,t){if(s.length!=e.length)return!1;for(let i=0;is[a.id]),n=t.map(a=>a.type),r=i.filter(a=>!(a&1)),o=s[e.id]>>1;function l(a){let h=[];for(let f=0;fi===n),e);return e.provide&&(t.provides=e.provide(t)),t}create(e){let t=e.facet(Wr).find(i=>i.field==this);return((t==null?void 0:t.create)||this.createF)(e)}slot(e){let t=e[this.id]>>1;return{create:i=>(i.values[t]=this.create(i),1),update:(i,n)=>{let r=i.values[t],o=this.updateF(r,n);return this.compareF(r,o)?0:(i.values[t]=o,1)},reconfigure:(i,n)=>n.config.address[this.id]!=null?(i.values[t]=n.field(this),0):(i.values[t]=this.create(i),1)}}init(e){return[this,Wr.of({field:this,create:e})]}get extension(){return this}}const Ut={lowest:4,low:3,default:2,high:1,highest:0};function bi(s){return e=>new zl(e,s)}const jn={highest:bi(Ut.highest),high:bi(Ut.high),default:bi(Ut.default),low:bi(Ut.low),lowest:bi(Ut.lowest)};class zl{constructor(e,t){this.inner=e,this.prec=t}}class Un{of(e){return new Cs(this,e)}reconfigure(e){return Un.reconfigure.of({compartment:this,extension:e})}get(e){return e.config.compartments.get(this)}}class Cs{constructor(e,t){this.compartment=e,this.inner=t}}class kn{constructor(e,t,i,n,r,o){for(this.base=e,this.compartments=t,this.dynamicSlots=i,this.address=n,this.staticValues=r,this.facets=o,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(e,t,i){let n=[],r=Object.create(null),o=new Map;for(let u of qf(e,t,o))u instanceof rt?n.push(u):(r[u.facet.id]||(r[u.facet.id]=[])).push(u);let l=Object.create(null),a=[],h=[];for(let u of n)l[u.id]=h.length<<1,h.push(d=>u.slot(d));let f=i==null?void 0:i.config.facets;for(let u in r){let d=r[u],p=d[0].facet,m=f&&f[u]||[];if(d.every(g=>g.type==0))if(l[p.id]=a.length<<1|1,hr(m,d))a.push(i.facet(p));else{let g=p.combine(d.map(w=>w.value));a.push(i&&p.compare(g,i.facet(p))?i.facet(p):g)}else{for(let g of d)g.type==0?(l[g.id]=a.length<<1|1,a.push(g.value)):(l[g.id]=h.length<<1,h.push(w=>g.dynamicSlot(w)));l[p.id]=h.length<<1,h.push(g=>zf(g,p,d))}}let c=h.map(u=>u(l));return new kn(e,o,c,l,a,r)}}function qf(s,e,t){let i=[[],[],[],[],[]],n=new Map;function r(o,l){let a=n.get(o);if(a!=null){if(a<=l)return;let h=i[a].indexOf(o);h>-1&&i[a].splice(h,1),o instanceof Cs&&t.delete(o.compartment)}if(n.set(o,l),Array.isArray(o))for(let h of o)r(h,l);else if(o instanceof Cs){if(t.has(o.compartment))throw new RangeError("Duplicate use of compartment in extensions");let h=e.get(o.compartment)||o.inner;t.set(o.compartment,h),r(h,l)}else if(o instanceof zl)r(o.inner,o.prec);else if(o instanceof rt)i[l].push(o),o.provides&&r(o.provides,l);else if(o instanceof pn)i[l].push(o),o.facet.extensions&&r(o.facet.extensions,Ut.default);else{let h=o.extension;if(!h)throw new Error(`Unrecognized extension value in extension set (${o}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(h,l)}}return r(s,Ut.default),i.reduce((o,l)=>o.concat(l))}function Ti(s,e){if(e&1)return 2;let t=e>>1,i=s.status[t];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;s.status[t]=4;let n=s.computeSlot(s,s.config.dynamicSlots[t]);return s.status[t]=2|n}function vn(s,e){return e&1?s.config.staticValues[e>>1]:s.values[e>>1]}const ql=$.define(),jl=$.define({combine:s=>s.some(e=>e),static:!0}),Ul=$.define({combine:s=>s.length?s[0]:void 0,static:!0}),Kl=$.define(),Gl=$.define(),Ql=$.define(),Jl=$.define({combine:s=>s.length?s[0]:!1});class Ht{constructor(e,t){this.type=e,this.value=t}static define(){return new jf}}class jf{of(e){return new Ht(this,e)}}class Uf{constructor(e){this.map=e}of(e){return new re(this,e)}}class re{constructor(e,t){this.type=e,this.value=t}map(e){let t=this.type.map(this.value,e);return t===void 0?void 0:t==this.value?this:new re(this.type,t)}is(e){return this.type==e}static define(e={}){return new Uf(e.map||(t=>t))}static mapEffects(e,t){if(!e.length)return e;let i=[];for(let n of e){let r=n.map(t);r&&i.push(r)}return i}}re.reconfigure=re.define();re.appendConfig=re.define();class we{constructor(e,t,i,n,r,o){this.startState=e,this.changes=t,this.selection=i,this.effects=n,this.annotations=r,this.scrollIntoView=o,this._doc=null,this._state=null,i&&Hl(i,t.newLength),r.some(l=>l.type==we.time)||(this.annotations=r.concat(we.time.of(Date.now())))}static create(e,t,i,n,r,o){return new we(e,t,i,n,r,o)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(e){for(let t of this.annotations)if(t.type==e)return t.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(e){let t=this.annotation(we.userEvent);return!!(t&&(t==e||t.length>e.length&&t.slice(0,e.length)==e&&t[e.length]=="."))}}we.time=Ht.define();we.userEvent=Ht.define();we.addToHistory=Ht.define();we.remote=Ht.define();function Kf(s,e){let t=[];for(let i=0,n=0;;){let r,o;if(i=s[i]))r=s[i++],o=s[i++];else if(n=0;n--){let r=i[n](s);r instanceof we?s=r:Array.isArray(r)&&r.length==1&&r[0]instanceof we?s=r[0]:s=Xl(e,ri(r),!1)}return s}function Qf(s){let e=s.startState,t=e.facet(Ql),i=s;for(let n=t.length-1;n>=0;n--){let r=t[n](s);r&&Object.keys(r).length&&(i=Yl(i,Os(e,r,s.changes.newLength),!0))}return i==s?s:we.create(e,s.changes,s.selection,i.effects,i.annotations,i.scrollIntoView)}const Jf=[];function ri(s){return s==null?Jf:Array.isArray(s)?s:[s]}var Qe=function(s){return s[s.Word=0]="Word",s[s.Space=1]="Space",s[s.Other=2]="Other",s}(Qe||(Qe={}));const Yf=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Ts;try{Ts=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function Xf(s){if(Ts)return Ts.test(s);for(let e=0;e"€"&&(t.toUpperCase()!=t.toLowerCase()||Yf.test(t)))return!0}return!1}function Zf(s){return e=>{if(!/\S/.test(e))return Qe.Space;if(Xf(e))return Qe.Word;for(let t=0;t-1)return Qe.Word;return Qe.Other}}class G{constructor(e,t,i,n,r,o){this.config=e,this.doc=t,this.selection=i,this.values=n,this.status=e.statusTemplate.slice(),this.computeSlot=r,o&&(o._state=this);for(let l=0;ln.set(a,l)),t=null),n.set(o.value.compartment,o.value.extension)):o.is(re.reconfigure)?(t=null,i=o.value):o.is(re.appendConfig)&&(t=null,i=ri(i).concat(o.value));let r;t?r=e.startState.values.slice():(t=kn.resolve(i,n,this),r=new G(t,this.doc,this.selection,t.dynamicSlots.map(()=>null),(l,a)=>a.reconfigure(l,this),null).values),new G(t,e.newDoc,e.newSelection,r,(o,l)=>l.update(o,e),e)}replaceSelection(e){return typeof e=="string"&&(e=this.toText(e)),this.changeByRange(t=>({changes:{from:t.from,to:t.to,insert:e},range:v.cursor(t.from+e.length)}))}changeByRange(e){let t=this.selection,i=e(t.ranges[0]),n=this.changes(i.changes),r=[i.range],o=ri(i.effects);for(let l=1;lo.spec.fromJSON(l,a)))}}return G.create({doc:e.doc,selection:v.fromJSON(e.selection),extensions:t.extensions?n.concat([t.extensions]):n})}static create(e={}){let t=kn.resolve(e.extensions||[],new Map),i=e.doc instanceof Q?e.doc:Q.of((e.doc||"").split(t.staticFacet(G.lineSeparator)||vs)),n=e.selection?e.selection instanceof v?e.selection:v.single(e.selection.anchor,e.selection.head):v.single(0);return Hl(n,i.length),t.staticFacet(jl)||(n=n.asSingle()),new G(t,i,n,t.dynamicSlots.map(()=>null),(r,o)=>o.create(r),null)}get tabSize(){return this.facet(G.tabSize)}get lineBreak(){return this.facet(G.lineSeparator)||` diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4bbdc4ec.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.9989f0e0.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4bbdc4ec.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.9989f0e0.js index 5bde4d5cdd..8c99aad246 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4bbdc4ec.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.9989f0e0.js @@ -1 +1 @@ -import{S as lt,b as rt,a as at,e as G,f as T,z as J,g as E,h as O,j as b,k as c,K as Pe,C as W,D as C,E as M,n as st,F as j,a1 as ft,a2 as nt,as as ot,m as $,w as I,c as k,p as h,q as d,x as A,d as w,u as S,L as u,y as B}from"../chunks/index.a36c9cb0.js";import{p as ut}from"../chunks/stores.0bc9ce95.js";import{w as ct}from"../chunks/workflow-run.8a407b5f.js";import{I as mt}from"../chunks/icon.33859671.js";import{B as oe}from"../chunks/badge.7f30446f.js";import{E as pt}from"../chunks/empty-state.9fb63265.js";import{L as _t}from"../chunks/link.855bf830.js";import{C as it}from"../chunks/code-block.2cc5a38d.js";import{T as $t,a as ht}from"../chunks/table-header-row.eb620974.js";import{T as dt}from"../chunks/table-row.9df8daa0.js";import{f as te}from"../chunks/format-date.7c274b02.js";import{h as je,B as Be}from"../chunks/format-time.c8c4770b.js";import{k as qe,l as ze,j as Ke}from"../chunks/format-event-attributes.7f34c129.js";import{t as vt}from"../chunks/time-format.dc246788.js";import{t as Ue}from"../chunks/to-time-difference.7cff7598.js";import{P as bt}from"../chunks/page-title.b9565d2f.js";function Ve(o,e,l){const t=o.slice();t[4]=e[l].id,t[5]=e[l].activityId,t[6]=ot(e[l],["id","activityId"]);const f=t[6].attempt>1;return t[7]=f,t}function gt(o){let e,l;return e=new pt({props:{title:"No Pending Activities"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p:st,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function kt(o){let e,l;return e=new $t({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Pt],default:[Dt]},$$scope:{ctx:o}}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p(t,f){const r={};f&1027&&(r.$$scope={dirty:f,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function wt(o){let e=o[5]+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[5]+"")&&B(l,e)},d(t){t&&c(l)}}}function Et(o){let e=o[6].activityType+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[6].activityType+"")&&B(l,e)},d(t){t&&c(l)}}}function Ge(o){let e,l;return e=new mt({props:{class:"mr-1",name:"retry"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Tt(o){let e,l=o[6].attempt+"",t,f,r=o[7]&&Ge();return{c(){r&&r.c(),e=k(),t=I(l)},l(a){r&&r.l(a),e=w(a),t=A(a,l)},m(a,s){r&&r.m(a,s),T(a,e,s),T(a,t,s),f=!0},p(a,s){a[7]?r?s&1&&b(r,1):(r=Ge(),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(J(),E(r,1,1,()=>{r=null}),O()),(!f||s&1)&&l!==(l=a[6].attempt+"")&&B(t,l)},i(a){f||(b(r),f=!0)},o(a){E(r),f=!1},d(a){r&&r.d(a),a&&c(e),a&&c(t)}}}function Je(o){let e,l,t,f,r,a,s,i;r=new oe({props:{type:"error",$$slots:{default:[Lt]},$$scope:{ctx:o}}});let n=o[6].scheduledTime&&Oe(o);return{c(){e=$("li"),l=$("h4"),t=I("Attempts Left"),f=k(),W(r.$$.fragment),a=k(),n&&n.c(),s=G(),this.h()},l(_){e=h(_,"LI",{class:!0});var m=d(e);l=h(m,"H4",{});var g=d(l);t=A(g,"Attempts Left"),g.forEach(c),f=w(m),C(r.$$.fragment,m),m.forEach(c),a=w(_),n&&n.l(_),s=G(),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(_,m){T(_,e,m),u(e,l),u(l,t),u(e,f),M(r,e,null),T(_,a,m),n&&n.m(_,m),T(_,s,m),i=!0},p(_,m){const g={};m&1025&&(g.$$scope={dirty:m,ctx:_}),r.$set(g),_[6].scheduledTime?n?(n.p(_,m),m&1&&b(n,1)):(n=Oe(_),n.c(),b(n,1),n.m(s.parentNode,s)):n&&(J(),E(n,1,1,()=>{n=null}),O())},i(_){i||(b(r.$$.fragment,_),b(n),i=!0)},o(_){E(r.$$.fragment,_),E(n),i=!1},d(_){_&&c(e),j(r),_&&c(a),n&&n.d(_),_&&c(s)}}}function Lt(o){let e=qe(o[6].maximumAttempts,o[6].attempt)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=qe(t[6].maximumAttempts,t[6].attempt)+"")&&B(l,e)},d(t){t&&c(l)}}}function Oe(o){let e,l,t,f,r,a;return r=new oe({props:{type:"error",$$slots:{default:[It]},$$scope:{ctx:o}}}),{c(){e=$("li"),l=$("h4"),t=I("Next Retry"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Next Retry"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1025&&(n.$$scope={dirty:i,ctx:s}),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function It(o){let e=Ue(o[6].scheduledTime)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=Ue(t[6].scheduledTime)+"")&&B(l,e)},d(t){t&&c(l)}}}function At(o){let e=ze(o[6].maximumAttempts)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=ze(t[6].maximumAttempts)+"")&&B(l,e)},d(t){t&&c(l)}}}function Qe(o){let e,l,t,f,r,a,s,i=Ke(o[6].maximumAttempts,je(Be({start:Date.now(),end:o[6].expirationTime})))+"",n,_,m=o[6].heartbeatDetails&&Xe(o),g=o[6].lastFailure&&Ye(o);return{c(){m&&m.c(),e=k(),g&&g.c(),l=k(),t=$("li"),f=$("h4"),r=I("Retry Expiration"),a=k(),s=$("p"),n=I(i),this.h()},l(v){m&&m.l(v),e=w(v),g&&g.l(v),l=w(v),t=h(v,"LI",{class:!0});var D=d(t);f=h(D,"H4",{});var X=d(f);r=A(X,"Retry Expiration"),X.forEach(c),a=w(D),s=h(D,"P",{});var Y=d(s);n=A(Y,i),Y.forEach(c),D.forEach(c),this.h()},h(){S(t,"class","event-table-row svelte-pnunl5")},m(v,D){m&&m.m(v,D),T(v,e,D),g&&g.m(v,D),T(v,l,D),T(v,t,D),u(t,f),u(f,r),u(t,a),u(t,s),u(s,n),_=!0},p(v,D){v[6].heartbeatDetails?m?(m.p(v,D),D&1&&b(m,1)):(m=Xe(v),m.c(),b(m,1),m.m(e.parentNode,e)):m&&(J(),E(m,1,1,()=>{m=null}),O()),v[6].lastFailure?g?(g.p(v,D),D&1&&b(g,1)):(g=Ye(v),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(J(),E(g,1,1,()=>{g=null}),O()),(!_||D&1)&&i!==(i=Ke(v[6].maximumAttempts,je(Be({start:Date.now(),end:v[6].expirationTime})))+"")&&B(n,i)},i(v){_||(b(m),b(g),_=!0)},o(v){E(m),E(g),_=!1},d(v){m&&m.d(v),v&&c(e),g&&g.d(v),v&&c(l),v&&c(t)}}}function Xe(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].heartbeatDetails}}),{c(){e=$("li"),l=$("h4"),t=I("Heartbeat Details"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Heartbeat Details"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].heartbeatDetails),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ye(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].lastFailure}}),{c(){e=$("li"),l=$("h4"),t=I("Last Failure"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Last Failure"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].lastFailure),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ze(o){let e,l,t,f,r,a=te(o[6].lastStartedTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Started Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Started Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].lastStartedTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function xe(o){let e,l,t,f,r,a=te(o[6].scheduledTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Scheduled Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Scheduled Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].scheduledTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function et(o){let e,l,t,f,r,a=o[6].lastWorkerIdentity+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Worker Identity"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Worker Identity"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&1&&a!==(a=i[6].lastWorkerIdentity+"")&&B(s,a)},d(i){i&&c(e)}}}function Ht(o){let e,l,t,f,r,a,s,i,n,_,m,g,v,D,X,Y,q,ke,ue,z,le,we,Ee,K,Te,ce,U,re,Le,Ie,ae,se=te(o[6].lastHeartbeatTime,"relative")+"",me,Ae,V,ie,He,De,fe,ne=o[6].state+"",pe,ye,_e,$e,he,Z;t=new _t({props:{href:"#"+o[4],$$slots:{default:[wt]},$$scope:{ctx:o}}}),m=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Et]},$$scope:{ctx:o}}}),q=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Tt]},$$scope:{ctx:o}}});let y=o[7]&&Je(o);K=new oe({props:{$$slots:{default:[At]},$$scope:{ctx:o}}});let P=o[7]&&Qe(o),F=o[6].lastStartedTime&&Ze(o),N=o[6].scheduledTime&&xe(o),R=o[6].lastWorkerIdentity&&et(o);return{c(){e=$("td"),l=$("div"),W(t.$$.fragment),f=k(),r=$("td"),a=$("ul"),s=$("li"),i=$("h4"),n=I("Activity Type"),_=k(),W(m.$$.fragment),g=k(),v=$("li"),D=$("h4"),X=I("Attempt"),Y=k(),W(q.$$.fragment),ke=k(),y&&y.c(),ue=k(),z=$("li"),le=$("h4"),we=I("Maximum Attempts"),Ee=k(),W(K.$$.fragment),Te=k(),P&&P.c(),ce=k(),U=$("li"),re=$("h4"),Le=I("Last Heartbeat"),Ie=k(),ae=$("p"),me=I(se),Ae=k(),V=$("li"),ie=$("h4"),He=I("State"),De=k(),fe=$("p"),pe=I(ne),ye=k(),F&&F.c(),_e=k(),N&&N.c(),$e=k(),R&&R.c(),he=k(),this.h()},l(p){e=h(p,"TD",{class:!0});var L=d(e);l=h(L,"DIV",{class:!0});var x=d(l);C(t.$$.fragment,x),x.forEach(c),L.forEach(c),f=w(p),r=h(p,"TD",{class:!0});var ee=d(r);a=h(ee,"UL",{});var H=d(a);s=h(H,"LI",{class:!0});var Q=d(s);i=h(Q,"H4",{class:!0});var Se=d(i);n=A(Se,"Activity Type"),Se.forEach(c),_=w(Q),C(m.$$.fragment,Q),Q.forEach(c),g=w(H),v=h(H,"LI",{class:!0});var de=d(v);D=h(de,"H4",{});var Fe=d(D);X=A(Fe,"Attempt"),Fe.forEach(c),Y=w(de),C(q.$$.fragment,de),de.forEach(c),ke=w(H),y&&y.l(H),ue=w(H),z=h(H,"LI",{class:!0});var ve=d(z);le=h(ve,"H4",{});var Ne=d(le);we=A(Ne,"Maximum Attempts"),Ne.forEach(c),Ee=w(ve),C(K.$$.fragment,ve),ve.forEach(c),Te=w(H),P&&P.l(H),ce=w(H),U=h(H,"LI",{class:!0});var be=d(U);re=h(be,"H4",{});var Re=d(re);Le=A(Re,"Last Heartbeat"),Re.forEach(c),Ie=w(be),ae=h(be,"P",{});var We=d(ae);me=A(We,se),We.forEach(c),be.forEach(c),Ae=w(H),V=h(H,"LI",{class:!0});var ge=d(V);ie=h(ge,"H4",{});var Ce=d(ie);He=A(Ce,"State"),Ce.forEach(c),De=w(ge),fe=h(ge,"P",{});var Me=d(fe);pe=A(Me,ne),Me.forEach(c),ge.forEach(c),ye=w(H),F&&F.l(H),_e=w(H),N&&N.l(H),$e=w(H),R&&R.l(H),H.forEach(c),ee.forEach(c),he=w(p),this.h()},h(){S(l,"class","pt-1"),S(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),S(i,"class","font-semibold"),S(s,"class","event-table-row svelte-pnunl5"),S(v,"class","event-table-row svelte-pnunl5"),S(z,"class","event-table-row svelte-pnunl5"),S(U,"class","event-table-row svelte-pnunl5"),S(V,"class","event-table-row svelte-pnunl5"),S(r,"class","py-4 px-5")},m(p,L){T(p,e,L),u(e,l),M(t,l,null),T(p,f,L),T(p,r,L),u(r,a),u(a,s),u(s,i),u(i,n),u(s,_),M(m,s,null),u(a,g),u(a,v),u(v,D),u(D,X),u(v,Y),M(q,v,null),u(a,ke),y&&y.m(a,null),u(a,ue),u(a,z),u(z,le),u(le,we),u(z,Ee),M(K,z,null),u(a,Te),P&&P.m(a,null),u(a,ce),u(a,U),u(U,re),u(re,Le),u(U,Ie),u(U,ae),u(ae,me),u(a,Ae),u(a,V),u(V,ie),u(ie,He),u(V,De),u(V,fe),u(fe,pe),u(a,ye),F&&F.m(a,null),u(a,_e),N&&N.m(a,null),u(a,$e),R&&R.m(a,null),T(p,he,L),Z=!0},p(p,L){const x={};L&1&&(x.href="#"+p[4]),L&1025&&(x.$$scope={dirty:L,ctx:p}),t.$set(x);const ee={};L&1&&(ee.type=p[7]?"error":"default"),L&1025&&(ee.$$scope={dirty:L,ctx:p}),m.$set(ee);const H={};L&1&&(H.type=p[7]?"error":"default"),L&1025&&(H.$$scope={dirty:L,ctx:p}),q.$set(H),p[7]?y?(y.p(p,L),L&1&&b(y,1)):(y=Je(p),y.c(),b(y,1),y.m(a,ue)):y&&(J(),E(y,1,1,()=>{y=null}),O());const Q={};L&1025&&(Q.$$scope={dirty:L,ctx:p}),K.$set(Q),p[7]?P?(P.p(p,L),L&1&&b(P,1)):(P=Qe(p),P.c(),b(P,1),P.m(a,ce)):P&&(J(),E(P,1,1,()=>{P=null}),O()),(!Z||L&1)&&se!==(se=te(p[6].lastHeartbeatTime,"relative")+"")&&B(me,se),(!Z||L&1)&&ne!==(ne=p[6].state+"")&&B(pe,ne),p[6].lastStartedTime?F?F.p(p,L):(F=Ze(p),F.c(),F.m(a,_e)):F&&(F.d(1),F=null),p[6].scheduledTime?N?N.p(p,L):(N=xe(p),N.c(),N.m(a,$e)):N&&(N.d(1),N=null),p[6].lastWorkerIdentity?R?R.p(p,L):(R=et(p),R.c(),R.m(a,null)):R&&(R.d(1),R=null)},i(p){Z||(b(t.$$.fragment,p),b(m.$$.fragment,p),b(q.$$.fragment,p),b(y),b(K.$$.fragment,p),b(P),Z=!0)},o(p){E(t.$$.fragment,p),E(m.$$.fragment,p),E(q.$$.fragment,p),E(y),E(K.$$.fragment,p),E(P),Z=!1},d(p){p&&c(e),j(t),p&&c(f),p&&c(r),j(m),j(q),y&&y.d(),j(K),P&&P.d(),F&&F.d(),N&&N.d(),R&&R.d(),p&&c(he)}}}function tt(o,e){let l,t,f;return t=new dt({props:{$$slots:{default:[Ht]},$$scope:{ctx:e}}}),{key:o,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(r){l=G(),C(t.$$.fragment,r),this.h()},h(){this.first=l},m(r,a){T(r,l,a),M(t,r,a),f=!0},p(r,a){e=r;const s={};a&1027&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(r){f||(b(t.$$.fragment,r),f=!0)},o(r){E(t.$$.fragment,r),f=!1},d(r){r&&c(l),j(t,r)}}}function Dt(o){let e=[],l=new Map,t,f,r=o[0];const a=s=>s[4];for(let s=0;s{a[_]=null}),O(),l=a[e],l?l.p(i,n):(l=a[e]=r[e](i),l.c()),b(l,1),l.m(t.parentNode,t))},i(i){f||(b(l),f=!0)},o(i){E(l),f=!1},d(i){a[e].d(i),i&&c(t)}}}function Ft(o,e,l){let t,f,r;Pe(o,ct,s=>l(3,f=s)),Pe(o,vt,s=>l(1,r=s));var a;return o.$$.update=()=>{o.$$.dirty&12&&l(0,t=l(2,a=f.workflow)===null||a===void 0?void 0:a.pendingActivities)},[t,r,a,f]}class Nt extends lt{constructor(e){super(),rt(this,e,Ft,St,at,{})}}function Rt(o){let e,l,t,f;return e=new bt({props:{title:`Pending Activities | ${o[1]}`,url:o[0].url.href}}),t=new Nt({}),{c(){W(e.$$.fragment),l=k(),W(t.$$.fragment)},l(r){C(e.$$.fragment,r),l=w(r),C(t.$$.fragment,r)},m(r,a){M(e,r,a),T(r,l,a),M(t,r,a),f=!0},p(r,[a]){const s={};a&1&&(s.url=r[0].url.href),e.$set(s)},i(r){f||(b(e.$$.fragment,r),b(t.$$.fragment,r),f=!0)},o(r){E(e.$$.fragment,r),E(t.$$.fragment,r),f=!1},d(r){j(e,r),r&&c(l),j(t,r)}}}function Wt(o,e,l){let t;Pe(o,ut,r=>l(0,t=r));const f=t.params.workflow;return[t,f]}class xt extends lt{constructor(e){super(),rt(this,e,Wt,Rt,at,{})}}export{xt as default}; +import{S as lt,b as rt,a as at,e as G,f as T,z as J,g as E,h as O,j as b,k as c,K as Pe,C as W,D as C,E as M,n as st,F as j,a1 as ft,a2 as nt,as as ot,m as $,w as I,c as k,p as h,q as d,x as A,d as w,u as S,L as u,y as B}from"../chunks/index.a36c9cb0.js";import{p as ut}from"../chunks/stores.4d55fa19.js";import{w as ct}from"../chunks/workflow-run.8a407b5f.js";import{I as mt}from"../chunks/icon.33859671.js";import{B as oe}from"../chunks/badge.7f30446f.js";import{E as pt}from"../chunks/empty-state.9fb63265.js";import{L as _t}from"../chunks/link.855bf830.js";import{C as it}from"../chunks/code-block.2cc5a38d.js";import{T as $t,a as ht}from"../chunks/table-header-row.eb620974.js";import{T as dt}from"../chunks/table-row.9df8daa0.js";import{f as te}from"../chunks/format-date.7c274b02.js";import{h as je,B as Be}from"../chunks/format-time.c8c4770b.js";import{k as qe,l as ze,j as Ke}from"../chunks/format-event-attributes.7f34c129.js";import{t as vt}from"../chunks/time-format.dc246788.js";import{t as Ue}from"../chunks/to-time-difference.7cff7598.js";import{P as bt}from"../chunks/page-title.b9565d2f.js";function Ve(o,e,l){const t=o.slice();t[4]=e[l].id,t[5]=e[l].activityId,t[6]=ot(e[l],["id","activityId"]);const f=t[6].attempt>1;return t[7]=f,t}function gt(o){let e,l;return e=new pt({props:{title:"No Pending Activities"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p:st,i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function kt(o){let e,l;return e=new $t({props:{class:"mb-6 w-full min-w-[600px] table-fixed",$$slots:{headers:[Pt],default:[Dt]},$$scope:{ctx:o}}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},p(t,f){const r={};f&1027&&(r.$$scope={dirty:f,ctx:t}),e.$set(r)},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function wt(o){let e=o[5]+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[5]+"")&&B(l,e)},d(t){t&&c(l)}}}function Et(o){let e=o[6].activityType+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=t[6].activityType+"")&&B(l,e)},d(t){t&&c(l)}}}function Ge(o){let e,l;return e=new mt({props:{class:"mr-1",name:"retry"}}),{c(){W(e.$$.fragment)},l(t){C(e.$$.fragment,t)},m(t,f){M(e,t,f),l=!0},i(t){l||(b(e.$$.fragment,t),l=!0)},o(t){E(e.$$.fragment,t),l=!1},d(t){j(e,t)}}}function Tt(o){let e,l=o[6].attempt+"",t,f,r=o[7]&&Ge();return{c(){r&&r.c(),e=k(),t=I(l)},l(a){r&&r.l(a),e=w(a),t=A(a,l)},m(a,s){r&&r.m(a,s),T(a,e,s),T(a,t,s),f=!0},p(a,s){a[7]?r?s&1&&b(r,1):(r=Ge(),r.c(),b(r,1),r.m(e.parentNode,e)):r&&(J(),E(r,1,1,()=>{r=null}),O()),(!f||s&1)&&l!==(l=a[6].attempt+"")&&B(t,l)},i(a){f||(b(r),f=!0)},o(a){E(r),f=!1},d(a){r&&r.d(a),a&&c(e),a&&c(t)}}}function Je(o){let e,l,t,f,r,a,s,i;r=new oe({props:{type:"error",$$slots:{default:[Lt]},$$scope:{ctx:o}}});let n=o[6].scheduledTime&&Oe(o);return{c(){e=$("li"),l=$("h4"),t=I("Attempts Left"),f=k(),W(r.$$.fragment),a=k(),n&&n.c(),s=G(),this.h()},l(_){e=h(_,"LI",{class:!0});var m=d(e);l=h(m,"H4",{});var g=d(l);t=A(g,"Attempts Left"),g.forEach(c),f=w(m),C(r.$$.fragment,m),m.forEach(c),a=w(_),n&&n.l(_),s=G(),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(_,m){T(_,e,m),u(e,l),u(l,t),u(e,f),M(r,e,null),T(_,a,m),n&&n.m(_,m),T(_,s,m),i=!0},p(_,m){const g={};m&1025&&(g.$$scope={dirty:m,ctx:_}),r.$set(g),_[6].scheduledTime?n?(n.p(_,m),m&1&&b(n,1)):(n=Oe(_),n.c(),b(n,1),n.m(s.parentNode,s)):n&&(J(),E(n,1,1,()=>{n=null}),O())},i(_){i||(b(r.$$.fragment,_),b(n),i=!0)},o(_){E(r.$$.fragment,_),E(n),i=!1},d(_){_&&c(e),j(r),_&&c(a),n&&n.d(_),_&&c(s)}}}function Lt(o){let e=qe(o[6].maximumAttempts,o[6].attempt)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=qe(t[6].maximumAttempts,t[6].attempt)+"")&&B(l,e)},d(t){t&&c(l)}}}function Oe(o){let e,l,t,f,r,a;return r=new oe({props:{type:"error",$$slots:{default:[It]},$$scope:{ctx:o}}}),{c(){e=$("li"),l=$("h4"),t=I("Next Retry"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Next Retry"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1025&&(n.$$scope={dirty:i,ctx:s}),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function It(o){let e=Ue(o[6].scheduledTime)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=Ue(t[6].scheduledTime)+"")&&B(l,e)},d(t){t&&c(l)}}}function At(o){let e=ze(o[6].maximumAttempts)+"",l;return{c(){l=I(e)},l(t){l=A(t,e)},m(t,f){T(t,l,f)},p(t,f){f&1&&e!==(e=ze(t[6].maximumAttempts)+"")&&B(l,e)},d(t){t&&c(l)}}}function Qe(o){let e,l,t,f,r,a,s,i=Ke(o[6].maximumAttempts,je(Be({start:Date.now(),end:o[6].expirationTime})))+"",n,_,m=o[6].heartbeatDetails&&Xe(o),g=o[6].lastFailure&&Ye(o);return{c(){m&&m.c(),e=k(),g&&g.c(),l=k(),t=$("li"),f=$("h4"),r=I("Retry Expiration"),a=k(),s=$("p"),n=I(i),this.h()},l(v){m&&m.l(v),e=w(v),g&&g.l(v),l=w(v),t=h(v,"LI",{class:!0});var D=d(t);f=h(D,"H4",{});var X=d(f);r=A(X,"Retry Expiration"),X.forEach(c),a=w(D),s=h(D,"P",{});var Y=d(s);n=A(Y,i),Y.forEach(c),D.forEach(c),this.h()},h(){S(t,"class","event-table-row svelte-pnunl5")},m(v,D){m&&m.m(v,D),T(v,e,D),g&&g.m(v,D),T(v,l,D),T(v,t,D),u(t,f),u(f,r),u(t,a),u(t,s),u(s,n),_=!0},p(v,D){v[6].heartbeatDetails?m?(m.p(v,D),D&1&&b(m,1)):(m=Xe(v),m.c(),b(m,1),m.m(e.parentNode,e)):m&&(J(),E(m,1,1,()=>{m=null}),O()),v[6].lastFailure?g?(g.p(v,D),D&1&&b(g,1)):(g=Ye(v),g.c(),b(g,1),g.m(l.parentNode,l)):g&&(J(),E(g,1,1,()=>{g=null}),O()),(!_||D&1)&&i!==(i=Ke(v[6].maximumAttempts,je(Be({start:Date.now(),end:v[6].expirationTime})))+"")&&B(n,i)},i(v){_||(b(m),b(g),_=!0)},o(v){E(m),E(g),_=!1},d(v){m&&m.d(v),v&&c(e),g&&g.d(v),v&&c(l),v&&c(t)}}}function Xe(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].heartbeatDetails}}),{c(){e=$("li"),l=$("h4"),t=I("Heartbeat Details"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Heartbeat Details"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].heartbeatDetails),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ye(o){let e,l,t,f,r,a;return r=new it({props:{slot:"value",class:"pb-2",content:o[6].lastFailure}}),{c(){e=$("li"),l=$("h4"),t=I("Last Failure"),f=k(),W(r.$$.fragment),this.h()},l(s){e=h(s,"LI",{class:!0});var i=d(e);l=h(i,"H4",{});var n=d(l);t=A(n,"Last Failure"),n.forEach(c),f=w(i),C(r.$$.fragment,i),i.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(s,i){T(s,e,i),u(e,l),u(l,t),u(e,f),M(r,e,null),a=!0},p(s,i){const n={};i&1&&(n.content=s[6].lastFailure),r.$set(n)},i(s){a||(b(r.$$.fragment,s),a=!0)},o(s){E(r.$$.fragment,s),a=!1},d(s){s&&c(e),j(r)}}}function Ze(o){let e,l,t,f,r,a=te(o[6].lastStartedTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Started Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Started Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].lastStartedTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function xe(o){let e,l,t,f,r,a=te(o[6].scheduledTime,o[1])+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Scheduled Time"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Scheduled Time"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&3&&a!==(a=te(i[6].scheduledTime,i[1])+"")&&B(s,a)},d(i){i&&c(e)}}}function et(o){let e,l,t,f,r,a=o[6].lastWorkerIdentity+"",s;return{c(){e=$("li"),l=$("h4"),t=I("Last Worker Identity"),f=k(),r=$("p"),s=I(a),this.h()},l(i){e=h(i,"LI",{class:!0});var n=d(e);l=h(n,"H4",{});var _=d(l);t=A(_,"Last Worker Identity"),_.forEach(c),f=w(n),r=h(n,"P",{});var m=d(r);s=A(m,a),m.forEach(c),n.forEach(c),this.h()},h(){S(e,"class","event-table-row svelte-pnunl5")},m(i,n){T(i,e,n),u(e,l),u(l,t),u(e,f),u(e,r),u(r,s)},p(i,n){n&1&&a!==(a=i[6].lastWorkerIdentity+"")&&B(s,a)},d(i){i&&c(e)}}}function Ht(o){let e,l,t,f,r,a,s,i,n,_,m,g,v,D,X,Y,q,ke,ue,z,le,we,Ee,K,Te,ce,U,re,Le,Ie,ae,se=te(o[6].lastHeartbeatTime,"relative")+"",me,Ae,V,ie,He,De,fe,ne=o[6].state+"",pe,ye,_e,$e,he,Z;t=new _t({props:{href:"#"+o[4],$$slots:{default:[wt]},$$scope:{ctx:o}}}),m=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Et]},$$scope:{ctx:o}}}),q=new oe({props:{type:o[7]?"error":"default",$$slots:{default:[Tt]},$$scope:{ctx:o}}});let y=o[7]&&Je(o);K=new oe({props:{$$slots:{default:[At]},$$scope:{ctx:o}}});let P=o[7]&&Qe(o),F=o[6].lastStartedTime&&Ze(o),N=o[6].scheduledTime&&xe(o),R=o[6].lastWorkerIdentity&&et(o);return{c(){e=$("td"),l=$("div"),W(t.$$.fragment),f=k(),r=$("td"),a=$("ul"),s=$("li"),i=$("h4"),n=I("Activity Type"),_=k(),W(m.$$.fragment),g=k(),v=$("li"),D=$("h4"),X=I("Attempt"),Y=k(),W(q.$$.fragment),ke=k(),y&&y.c(),ue=k(),z=$("li"),le=$("h4"),we=I("Maximum Attempts"),Ee=k(),W(K.$$.fragment),Te=k(),P&&P.c(),ce=k(),U=$("li"),re=$("h4"),Le=I("Last Heartbeat"),Ie=k(),ae=$("p"),me=I(se),Ae=k(),V=$("li"),ie=$("h4"),He=I("State"),De=k(),fe=$("p"),pe=I(ne),ye=k(),F&&F.c(),_e=k(),N&&N.c(),$e=k(),R&&R.c(),he=k(),this.h()},l(p){e=h(p,"TD",{class:!0});var L=d(e);l=h(L,"DIV",{class:!0});var x=d(l);C(t.$$.fragment,x),x.forEach(c),L.forEach(c),f=w(p),r=h(p,"TD",{class:!0});var ee=d(r);a=h(ee,"UL",{});var H=d(a);s=h(H,"LI",{class:!0});var Q=d(s);i=h(Q,"H4",{class:!0});var Se=d(i);n=A(Se,"Activity Type"),Se.forEach(c),_=w(Q),C(m.$$.fragment,Q),Q.forEach(c),g=w(H),v=h(H,"LI",{class:!0});var de=d(v);D=h(de,"H4",{});var Fe=d(D);X=A(Fe,"Attempt"),Fe.forEach(c),Y=w(de),C(q.$$.fragment,de),de.forEach(c),ke=w(H),y&&y.l(H),ue=w(H),z=h(H,"LI",{class:!0});var ve=d(z);le=h(ve,"H4",{});var Ne=d(le);we=A(Ne,"Maximum Attempts"),Ne.forEach(c),Ee=w(ve),C(K.$$.fragment,ve),ve.forEach(c),Te=w(H),P&&P.l(H),ce=w(H),U=h(H,"LI",{class:!0});var be=d(U);re=h(be,"H4",{});var Re=d(re);Le=A(Re,"Last Heartbeat"),Re.forEach(c),Ie=w(be),ae=h(be,"P",{});var We=d(ae);me=A(We,se),We.forEach(c),be.forEach(c),Ae=w(H),V=h(H,"LI",{class:!0});var ge=d(V);ie=h(ge,"H4",{});var Ce=d(ie);He=A(Ce,"State"),Ce.forEach(c),De=w(ge),fe=h(ge,"P",{});var Me=d(fe);pe=A(Me,ne),Me.forEach(c),ge.forEach(c),ye=w(H),F&&F.l(H),_e=w(H),N&&N.l(H),$e=w(H),R&&R.l(H),H.forEach(c),ee.forEach(c),he=w(p),this.h()},h(){S(l,"class","pt-1"),S(e,"class","w-44 items-start break-all py-5 pl-5 pr-2 align-top"),S(i,"class","font-semibold"),S(s,"class","event-table-row svelte-pnunl5"),S(v,"class","event-table-row svelte-pnunl5"),S(z,"class","event-table-row svelte-pnunl5"),S(U,"class","event-table-row svelte-pnunl5"),S(V,"class","event-table-row svelte-pnunl5"),S(r,"class","py-4 px-5")},m(p,L){T(p,e,L),u(e,l),M(t,l,null),T(p,f,L),T(p,r,L),u(r,a),u(a,s),u(s,i),u(i,n),u(s,_),M(m,s,null),u(a,g),u(a,v),u(v,D),u(D,X),u(v,Y),M(q,v,null),u(a,ke),y&&y.m(a,null),u(a,ue),u(a,z),u(z,le),u(le,we),u(z,Ee),M(K,z,null),u(a,Te),P&&P.m(a,null),u(a,ce),u(a,U),u(U,re),u(re,Le),u(U,Ie),u(U,ae),u(ae,me),u(a,Ae),u(a,V),u(V,ie),u(ie,He),u(V,De),u(V,fe),u(fe,pe),u(a,ye),F&&F.m(a,null),u(a,_e),N&&N.m(a,null),u(a,$e),R&&R.m(a,null),T(p,he,L),Z=!0},p(p,L){const x={};L&1&&(x.href="#"+p[4]),L&1025&&(x.$$scope={dirty:L,ctx:p}),t.$set(x);const ee={};L&1&&(ee.type=p[7]?"error":"default"),L&1025&&(ee.$$scope={dirty:L,ctx:p}),m.$set(ee);const H={};L&1&&(H.type=p[7]?"error":"default"),L&1025&&(H.$$scope={dirty:L,ctx:p}),q.$set(H),p[7]?y?(y.p(p,L),L&1&&b(y,1)):(y=Je(p),y.c(),b(y,1),y.m(a,ue)):y&&(J(),E(y,1,1,()=>{y=null}),O());const Q={};L&1025&&(Q.$$scope={dirty:L,ctx:p}),K.$set(Q),p[7]?P?(P.p(p,L),L&1&&b(P,1)):(P=Qe(p),P.c(),b(P,1),P.m(a,ce)):P&&(J(),E(P,1,1,()=>{P=null}),O()),(!Z||L&1)&&se!==(se=te(p[6].lastHeartbeatTime,"relative")+"")&&B(me,se),(!Z||L&1)&&ne!==(ne=p[6].state+"")&&B(pe,ne),p[6].lastStartedTime?F?F.p(p,L):(F=Ze(p),F.c(),F.m(a,_e)):F&&(F.d(1),F=null),p[6].scheduledTime?N?N.p(p,L):(N=xe(p),N.c(),N.m(a,$e)):N&&(N.d(1),N=null),p[6].lastWorkerIdentity?R?R.p(p,L):(R=et(p),R.c(),R.m(a,null)):R&&(R.d(1),R=null)},i(p){Z||(b(t.$$.fragment,p),b(m.$$.fragment,p),b(q.$$.fragment,p),b(y),b(K.$$.fragment,p),b(P),Z=!0)},o(p){E(t.$$.fragment,p),E(m.$$.fragment,p),E(q.$$.fragment,p),E(y),E(K.$$.fragment,p),E(P),Z=!1},d(p){p&&c(e),j(t),p&&c(f),p&&c(r),j(m),j(q),y&&y.d(),j(K),P&&P.d(),F&&F.d(),N&&N.d(),R&&R.d(),p&&c(he)}}}function tt(o,e){let l,t,f;return t=new dt({props:{$$slots:{default:[Ht]},$$scope:{ctx:e}}}),{key:o,first:null,c(){l=G(),W(t.$$.fragment),this.h()},l(r){l=G(),C(t.$$.fragment,r),this.h()},h(){this.first=l},m(r,a){T(r,l,a),M(t,r,a),f=!0},p(r,a){e=r;const s={};a&1027&&(s.$$scope={dirty:a,ctx:e}),t.$set(s)},i(r){f||(b(t.$$.fragment,r),f=!0)},o(r){E(t.$$.fragment,r),f=!1},d(r){r&&c(l),j(t,r)}}}function Dt(o){let e=[],l=new Map,t,f,r=o[0];const a=s=>s[4];for(let s=0;s{a[_]=null}),O(),l=a[e],l?l.p(i,n):(l=a[e]=r[e](i),l.c()),b(l,1),l.m(t.parentNode,t))},i(i){f||(b(l),f=!0)},o(i){E(l),f=!1},d(i){a[e].d(i),i&&c(t)}}}function Ft(o,e,l){let t,f,r;Pe(o,ct,s=>l(3,f=s)),Pe(o,vt,s=>l(1,r=s));var a;return o.$$.update=()=>{o.$$.dirty&12&&l(0,t=l(2,a=f.workflow)===null||a===void 0?void 0:a.pendingActivities)},[t,r,a,f]}class Nt extends lt{constructor(e){super(),rt(this,e,Ft,St,at,{})}}function Rt(o){let e,l,t,f;return e=new bt({props:{title:`Pending Activities | ${o[1]}`,url:o[0].url.href}}),t=new Nt({}),{c(){W(e.$$.fragment),l=k(),W(t.$$.fragment)},l(r){C(e.$$.fragment,r),l=w(r),C(t.$$.fragment,r)},m(r,a){M(e,r,a),T(r,l,a),M(t,r,a),f=!0},p(r,[a]){const s={};a&1&&(s.url=r[0].url.href),e.$set(s)},i(r){f||(b(e.$$.fragment,r),b(t.$$.fragment,r),f=!0)},o(r){E(e.$$.fragment,r),E(t.$$.fragment,r),f=!1},d(r){j(e,r),r&&c(l),j(t,r)}}}function Wt(o,e,l){let t;Pe(o,ut,r=>l(0,t=r));const f=t.params.workflow;return[t,f]}class xt extends lt{constructor(e){super(),rt(this,e,Wt,Rt,at,{})}}export{xt as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.01f8de7b.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.cac9274d.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.01f8de7b.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.cac9274d.js index 7faae26523..6fc495ad3e 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.01f8de7b.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.cac9274d.js @@ -1,3 +1,3 @@ -import{S as Z,b as G,a as H,aq as J,m as j,p as S,q as C,k as p,f as w,ar as M,j as g,g as h,K as U,C as y,D as E,E as q,n as $,F as I,A as x,Y as ee,c as N,w as Q,d as O,x as A,u as D,L as v,Z as te,e as K,z as ne,h as re,a7 as le}from"../chunks/index.a36c9cb0.js";import{p as X}from"../chunks/stores.48be4ca9.js";import{g as oe,a as ae}from"../chunks/query-service.9f914e5c.js";import{C as se}from"../chunks/code-block.2cc5a38d.js";import{S as ce,a as ue}from"../chunks/simple-select.6bb2c039.js";import{E as ie}from"../chunks/empty-state.9fb63265.js";import{B as fe}from"../chunks/button.dbc76a4c.js";import{L as me}from"../chunks/loading.bcb9b7b8.js";import{a as pe}from"../chunks/auth-user.3a7bc4db.js";import{T as $e}from"../chunks/toggle-switch.48168915.js";import{P as ge}from"../chunks/page-title.b9565d2f.js";function W(l,t,r){const e=l.slice();return e[16]=t[r],e}function _e(l){var e;let t,r;return t=new ie({props:{title:"An Error Occurred",content:"Please make sure you have at least one worker running.",error:(e=l[19])==null?void 0:e.message}}),{c(){y(t.$$.fragment)},l(n){E(t.$$.fragment,n)},m(n,o){q(t,n,o),r=!0},p:$,i(n){r||(g(t.$$.fragment,n),r=!0)},o(n){h(t.$$.fragment,n),r=!1},d(n){I(t,n)}}}function he(l){let t,r,e,n,o,a,s,c,u,B,d,T,k,L,P;function R(i){l[5](i)}let _={id:"query-select",label:"Query Type",testId:"query-select",$$slots:{default:[ke]},$$scope:{ctx:l}};l[0]!==void 0&&(_.value=l[0]),e=new ce({props:_}),x.push(()=>ee(e,"value",R)),a=new fe({props:{icon:"retry",loading:Ie,$$slots:{default:[be]},$$scope:{ctx:l}}}),a.$on("click",l[6]),d=new $e({props:{id:"json-formatting",checked:l[2]}}),d.$on("change",l[7]);let m={ctx:l,current:null,token:null,hasCatch:!1,pending:ye,then:we,catch:ve,value:15,blocks:[,,,]};return J(L=l[1],m),{c(){t=j("div"),r=j("div"),y(e.$$.fragment),o=N(),y(a.$$.fragment),s=N(),c=j("div"),u=j("label"),B=Q(`JSON Formatting +import{S as Z,b as G,a as H,aq as J,m as j,p as S,q as C,k as p,f as w,ar as M,j as g,g as h,K as U,C as y,D as E,E as q,n as $,F as I,A as x,Y as ee,c as N,w as Q,d as O,x as A,u as D,L as v,Z as te,e as K,z as ne,h as re,a7 as le}from"../chunks/index.a36c9cb0.js";import{p as X}from"../chunks/stores.4d55fa19.js";import{g as oe,a as ae}from"../chunks/query-service.7e164ee8.js";import{C as se}from"../chunks/code-block.2cc5a38d.js";import{S as ce,a as ue}from"../chunks/simple-select.6bb2c039.js";import{E as ie}from"../chunks/empty-state.9fb63265.js";import{B as fe}from"../chunks/button.dbc76a4c.js";import{L as me}from"../chunks/loading.bcb9b7b8.js";import{a as pe}from"../chunks/auth-user.3a7bc4db.js";import{T as $e}from"../chunks/toggle-switch.48168915.js";import{P as ge}from"../chunks/page-title.b9565d2f.js";function W(l,t,r){const e=l.slice();return e[16]=t[r],e}function _e(l){var e;let t,r;return t=new ie({props:{title:"An Error Occurred",content:"Please make sure you have at least one worker running.",error:(e=l[19])==null?void 0:e.message}}),{c(){y(t.$$.fragment)},l(n){E(t.$$.fragment,n)},m(n,o){q(t,n,o),r=!0},p:$,i(n){r||(g(t.$$.fragment,n),r=!0)},o(n){h(t.$$.fragment,n),r=!1},d(n){I(t,n)}}}function he(l){let t,r,e,n,o,a,s,c,u,B,d,T,k,L,P;function R(i){l[5](i)}let _={id:"query-select",label:"Query Type",testId:"query-select",$$slots:{default:[ke]},$$scope:{ctx:l}};l[0]!==void 0&&(_.value=l[0]),e=new ce({props:_}),x.push(()=>ee(e,"value",R)),a=new fe({props:{icon:"retry",loading:Ie,$$slots:{default:[be]},$$scope:{ctx:l}}}),a.$on("click",l[6]),d=new $e({props:{id:"json-formatting",checked:l[2]}}),d.$on("change",l[7]);let m={ctx:l,current:null,token:null,hasCatch:!1,pending:ye,then:we,catch:ve,value:15,blocks:[,,,]};return J(L=l[1],m),{c(){t=j("div"),r=j("div"),y(e.$$.fragment),o=N(),y(a.$$.fragment),s=N(),c=j("div"),u=j("label"),B=Q(`JSON Formatting `),y(d.$$.fragment),T=N(),k=j("div"),m.block.c(),this.h()},l(i){t=S(i,"DIV",{class:!0});var f=C(t);r=S(f,"DIV",{class:!0});var b=C(r);E(e.$$.fragment,b),o=O(b),E(a.$$.fragment,b),b.forEach(p),s=O(f),c=S(f,"DIV",{class:!0});var F=C(c);u=S(F,"LABEL",{for:!0,class:!0});var V=C(u);B=A(V,`JSON Formatting `),E(d.$$.fragment,V),V.forEach(p),F.forEach(p),f.forEach(p),T=O(i),k=S(i,"DIV",{class:!0});var z=C(k);m.block.l(z),z.forEach(p),this.h()},h(){D(r,"class","flex items-center gap-4"),D(u,"for","json-formatting"),D(u,"class","flex items-center gap-4 font-secondary text-sm"),D(c,"class","flex justify-end"),D(t,"class","flex justify-between"),D(k,"class","flex items-start h-full")},m(i,f){w(i,t,f),v(t,r),q(e,r,null),v(r,o),q(a,r,null),v(t,s),v(t,c),v(c,u),v(u,B),q(d,u,null),w(i,T,f),w(i,k,f),m.block.m(k,m.anchor=null),m.mount=()=>k,m.anchor=null,P=!0},p(i,f){l=i;const b={};f&1048576&&(b.$$scope={dirty:f,ctx:l}),!n&&f&1&&(n=!0,b.value=l[0],te(()=>n=!1)),e.$set(b);const F={};f&1048576&&(F.$$scope={dirty:f,ctx:l}),a.$set(F);const V={};f&4&&(V.checked=l[2]),d.$set(V),m.ctx=l,f&2&&L!==(L=l[1])&&J(L,m)||M(m,l,f)},i(i){P||(g(e.$$.fragment,i),g(a.$$.fragment,i),g(d.$$.fragment,i),g(m.block),P=!0)},o(i){h(e.$$.fragment,i),h(a.$$.fragment,i),h(d.$$.fragment,i);for(let f=0;f<3;f+=1){const b=m.blocks[f];h(b)}P=!1},d(i){i&&p(t),I(e),I(a),I(d),i&&p(T),i&&p(k),m.block.d(),m.token=null,m=null}}}function de(l){let t=l[16]+"",r;return{c(){r=Q(t)},l(e){r=A(e,t)},m(e,n){w(e,r,n)},p:$,d(e){e&&p(r)}}}function Y(l){let t,r;return t=new ue({props:{value:l[16],$$slots:{default:[de]},$$scope:{ctx:l}}}),{c(){y(t.$$.fragment)},l(e){E(t.$$.fragment,e)},m(e,n){q(t,e,n),r=!0},p(e,n){const o={};n&1048576&&(o.$$scope={dirty:n,ctx:e}),t.$set(o)},i(e){r||(g(t.$$.fragment,e),r=!0)},o(e){h(t.$$.fragment,e),r=!1},d(e){I(t,e)}}}function ke(l){let t,r,e=l[14],n=[];for(let a=0;ah(n[a],1,1,()=>{n[a]=null});return{c(){for(let a=0;at,e.anchor=null,r=!0},p(n,[o]){l=n,M(e,l,o)},i(n){r||(g(e.block),r=!0)},o(n){for(let o=0;o<3;o+=1){const a=e.blocks[o];h(a)}r=!1},d(n){n&&p(t),e.block.d(),e.token=null,e=null}}}let Ie=!1;function Te(l,t,r){let e,n;U(l,pe,_=>r(8,e=_)),U(l,X,_=>r(9,n=_));const{namespace:o,workflow:a,run:s}=n.params,c={id:a,runId:s};let u,B=oe({namespace:o,workflow:c}).then(_=>(r(0,u=u||_[0]),_)),d;const T=_=>{var m;r(1,d=ae({namespace:o,workflow:c,queryType:_},(m=n.data)===null||m===void 0?void 0:m.settings,e==null?void 0:e.accessToken))};let k=!0;function L(_){u=_,r(0,u)}const P=()=>T(u),R=()=>r(2,k=!k);return l.$$.update=()=>{l.$$.dirty&1&&u&&T(u)},[u,d,k,B,T,L,P,R]}class je extends Z{constructor(t){super(),G(this,t,Te,qe,H,{})}}function Se(l){let t,r,e,n;return t=new ge({props:{title:`Query | ${l[1]}`,url:l[0].url.href}}),e=new je({}),{c(){y(t.$$.fragment),r=N(),y(e.$$.fragment)},l(o){E(t.$$.fragment,o),r=O(o),E(e.$$.fragment,o)},m(o,a){q(t,o,a),w(o,r,a),q(e,o,a),n=!0},p(o,[a]){const s={};a&1&&(s.url=o[0].url.href),t.$set(s)},i(o){n||(g(t.$$.fragment,o),g(e.$$.fragment,o),n=!0)},o(o){h(t.$$.fragment,o),h(e.$$.fragment,o),n=!1},d(o){I(t,o),o&&p(r),I(e,o)}}}function Ce(l,t,r){let e;U(l,X,o=>r(0,e=o));const n=e.params.workflow;return[e,n]}class Je extends Z{constructor(t){super(),G(this,t,Ce,Se,H,{})}}export{Je as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a4467d25.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.f1d13c9d.js similarity index 98% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a4467d25.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.f1d13c9d.js index c8d198885f..acf1ab8f21 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a4467d25.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.f1d13c9d.js @@ -1 +1 @@ -import{S as B,b as F,a as O,m as E,p as S,q as L,k as _,f as d,z as U,g as k,h as j,j as $,K as q,C as w,D as v,E as T,F as y,aq as Q,e as C,ar as H,w as h,x as b,L as g,y as z,n as A,c as D,d as I,u as N}from"../chunks/index.a36c9cb0.js";import{p as K}from"../chunks/stores.48be4ca9.js";import{w as J}from"../chunks/workflow-run.8a407b5f.js";import{b as W}from"../chunks/query-service.9f914e5c.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{B as X}from"../chunks/button.dbc76a4c.js";import{E as G}from"../chunks/empty-state.9fb63265.js";import{L as Y}from"../chunks/loading.bcb9b7b8.js";import{L as Z}from"../chunks/link.855bf830.js";import{a as x}from"../chunks/auth-user.3a7bc4db.js";import{P as ee}from"../chunks/page-title.b9565d2f.js";function te(c){let t,r;return t=new G({props:{title:"No Stack Traces Found",testId:"query-stack-trace-empty",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p(e,a){const n={};a&4105&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function re(c){let t,r,e,a={ctx:c,current:null,token:null,hasCatch:!0,pending:ce,then:le,catch:oe,value:10,error:11,blocks:[,,,]};return Q(r=c[2],a),{c(){t=C(),a.block.c()},l(n){t=C(),a.block.l(n)},m(n,o){d(n,t,o),a.block.m(n,a.anchor=o),a.mount=()=>t.parentNode,a.anchor=t,e=!0},p(n,o){c=n,a.ctx=c,o&4&&r!==(r=c[2])&&Q(r,a)||H(a,c,o)},i(n){e||($(a.block),e=!0)},o(n){for(let o=0;o<3;o+=1){const l=a.blocks[o];k(l)}e=!1},d(n){n&&_(t),a.block.d(n),a.token=null,a=null}}}function V(c){var p;let t,r,e,a,n=((p=c[0])==null?void 0:p.taskQueue)+"",o,l,s;return e=new Z({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ne]},$$scope:{ctx:c}}}),{c(){t=E("p"),r=h("To enable "),w(e.$$.fragment),a=h(", run a Worker on the "),o=h(n),l=h(" Task Queue.")},l(i){t=S(i,"P",{});var f=L(t);r=b(f,"To enable "),v(e.$$.fragment,f),a=b(f,", run a Worker on the "),o=b(f,n),l=b(f," Task Queue."),f.forEach(_)},m(i,f){d(i,t,f),g(t,r),T(e,t,null),g(t,a),g(t,o),g(t,l),s=!0},p(i,f){var u;const m={};f&4096&&(m.$$scope={dirty:f,ctx:i}),e.$set(m),(!s||f&1)&&n!==(n=((u=i[0])==null?void 0:u.taskQueue)+"")&&z(o,n)},i(i){s||($(e.$$.fragment,i),s=!0)},o(i){k(e.$$.fragment,i),s=!1},d(i){i&&_(t),y(e)}}}function ne(c){let t;return{c(){t=h("stack traces")},l(r){t=b(r,"stack traces")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ae(c){var a,n,o;let t,r,e=((a=c[0])==null?void 0:a.isRunning)&&((o=(n=c[3])==null?void 0:n.pollers)==null?void 0:o.length)===0&&V(c);return{c(){e&&e.c(),t=C()},l(l){e&&e.l(l),t=C()},m(l,s){e&&e.m(l,s),d(l,t,s),r=!0},p(l,s){var p,i,f;(p=l[0])!=null&&p.isRunning&&((f=(i=l[3])==null?void 0:i.pollers)==null?void 0:f.length)===0?e?(e.p(l,s),s&9&&$(e,1)):(e=V(l),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(U(),k(e,1,1,()=>{e=null}),j())},i(l){r||($(e),r=!0)},o(l){k(e),r=!1},d(l){e&&e.d(l),l&&_(t)}}}function oe(c){let t,r;return t=new G({props:{title:"An Error Occured",content:"Please make sure you have at least one worker running."}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p:A,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function le(c){let t,r,e,a,n,o=c[1].toLocaleTimeString()+"",l,s,p,i,f;return r=new X({props:{icon:"retry",loading:ue,$$slots:{default:[se]},$$scope:{ctx:c}}}),r.$on("click",c[4]),i=new M({props:{content:c[10],language:"text",testId:"query-stack-trace"}}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("Stack Trace at "),l=h(o),s=D(),p=E("div"),w(i.$$.fragment),this.h()},l(m){t=S(m,"DIV",{class:!0});var u=L(t);v(r.$$.fragment,u),e=I(u),a=S(u,"P",{});var R=L(a);n=b(R,"Stack Trace at "),l=b(R,o),R.forEach(_),u.forEach(_),s=I(m),p=S(m,"DIV",{class:!0});var P=L(p);v(i.$$.fragment,P),P.forEach(_),this.h()},h(){N(t,"class","flex items-center gap-4"),N(p,"class","flex items-start h-full")},m(m,u){d(m,t,u),T(r,t,null),g(t,e),g(t,a),g(a,n),g(a,l),d(m,s,u),d(m,p,u),T(i,p,null),f=!0},p(m,u){const R={};u&4096&&(R.$$scope={dirty:u,ctx:m}),r.$set(R),(!f||u&2)&&o!==(o=m[1].toLocaleTimeString()+"")&&z(l,o);const P={};u&4&&(P.content=m[10]),i.$set(P)},i(m){f||($(r.$$.fragment,m),$(i.$$.fragment,m),f=!0)},o(m){k(r.$$.fragment,m),k(i.$$.fragment,m),f=!1},d(m){m&&_(t),y(r),m&&_(s),m&&_(p),y(i)}}}function se(c){let t;return{c(){t=h("Refresh")},l(r){t=b(r,"Refresh")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ce(c){let t,r,e,a,n,o;return r=new Y({}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("(This will fail if you have no workers running.)"),this.h()},l(l){t=S(l,"DIV",{class:!0});var s=L(t);v(r.$$.fragment,s),e=I(s),a=S(s,"P",{});var p=L(a);n=b(p,"(This will fail if you have no workers running.)"),p.forEach(_),s.forEach(_),this.h()},h(){N(t,"class","text-center")},m(l,s){d(l,t,s),T(r,t,null),g(t,e),g(t,a),g(a,n),o=!0},p:A,i(l){o||($(r.$$.fragment,l),o=!0)},o(l){k(r.$$.fragment,l),o=!1},d(l){l&&_(t),y(r)}}}function ie(c){let t,r,e,a;const n=[re,te],o=[];function l(s,p){var i,f,m;return(i=s[0])!=null&&i.isRunning&&((m=(f=s[3])==null?void 0:f.pollers)==null?void 0:m.length)>0?0:1}return r=l(c),e=o[r]=n[r](c),{c(){t=E("section"),e.c()},l(s){t=S(s,"SECTION",{});var p=L(t);e.l(p),p.forEach(_)},m(s,p){d(s,t,p),o[r].m(t,null),a=!0},p(s,[p]){let i=r;r=l(s),r===i?o[r].p(s,p):(U(),k(o[i],1,1,()=>{o[i]=null}),j(),e=o[r],e?e.p(s,p):(e=o[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){a||($(e),a=!0)},o(s){k(e),a=!1},d(s){s&&_(t),o[r].d()}}}let ue=!1;function fe(c,t,r){let e,a,n,o,l;q(c,x,u=>r(6,n=u)),q(c,K,u=>r(7,o=u)),q(c,J,u=>r(5,l=u));const{namespace:s}=o.params;let p=new Date;const i=()=>{var u;return W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)};let f;const m=()=>{var u;r(2,f=W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)),f.then(()=>{r(1,p=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:a}=l,e,(r(3,a),r(5,l))),c.$$.dirty&1&&e.isRunning&&r(2,f=i())},[e,p,f,a,m,l]}class me extends B{constructor(t){super(),F(this,t,fe,ie,O,{})}}function pe(c){let t,r,e,a;return t=new ee({props:{title:`Stack Trace | ${c[1]}`,url:c[0].url.href}}),e=new me({}),{c(){w(t.$$.fragment),r=D(),w(e.$$.fragment)},l(n){v(t.$$.fragment,n),r=I(n),v(e.$$.fragment,n)},m(n,o){T(t,n,o),d(n,r,o),T(e,n,o),a=!0},p(n,[o]){const l={};o&1&&(l.url=n[0].url.href),t.$set(l)},i(n){a||($(t.$$.fragment,n),$(e.$$.fragment,n),a=!0)},o(n){k(t.$$.fragment,n),k(e.$$.fragment,n),a=!1},d(n){y(t,n),n&&_(r),y(e,n)}}}function _e(c,t,r){let e;q(c,K,n=>r(0,e=n));const a=e.params.workflow;return[e,a]}class Se extends B{constructor(t){super(),F(this,t,_e,pe,O,{})}}export{Se as default}; +import{S as B,b as F,a as O,m as E,p as S,q as L,k as _,f as d,z as U,g as k,h as j,j as $,K as q,C as w,D as v,E as T,F as y,aq as Q,e as C,ar as H,w as h,x as b,L as g,y as z,n as A,c as D,d as I,u as N}from"../chunks/index.a36c9cb0.js";import{p as K}from"../chunks/stores.4d55fa19.js";import{w as J}from"../chunks/workflow-run.8a407b5f.js";import{b as W}from"../chunks/query-service.7e164ee8.js";import{C as M}from"../chunks/code-block.2cc5a38d.js";import{B as X}from"../chunks/button.dbc76a4c.js";import{E as G}from"../chunks/empty-state.9fb63265.js";import{L as Y}from"../chunks/loading.bcb9b7b8.js";import{L as Z}from"../chunks/link.855bf830.js";import{a as x}from"../chunks/auth-user.3a7bc4db.js";import{P as ee}from"../chunks/page-title.b9565d2f.js";function te(c){let t,r;return t=new G({props:{title:"No Stack Traces Found",testId:"query-stack-trace-empty",$$slots:{default:[ae]},$$scope:{ctx:c}}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p(e,a){const n={};a&4105&&(n.$$scope={dirty:a,ctx:e}),t.$set(n)},i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function re(c){let t,r,e,a={ctx:c,current:null,token:null,hasCatch:!0,pending:ce,then:le,catch:oe,value:10,error:11,blocks:[,,,]};return Q(r=c[2],a),{c(){t=C(),a.block.c()},l(n){t=C(),a.block.l(n)},m(n,o){d(n,t,o),a.block.m(n,a.anchor=o),a.mount=()=>t.parentNode,a.anchor=t,e=!0},p(n,o){c=n,a.ctx=c,o&4&&r!==(r=c[2])&&Q(r,a)||H(a,c,o)},i(n){e||($(a.block),e=!0)},o(n){for(let o=0;o<3;o+=1){const l=a.blocks[o];k(l)}e=!1},d(n){n&&_(t),a.block.d(n),a.token=null,a=null}}}function V(c){var p;let t,r,e,a,n=((p=c[0])==null?void 0:p.taskQueue)+"",o,l,s;return e=new Z({props:{href:"https://docs.temporal.io/workflows#stack-trace-query",$$slots:{default:[ne]},$$scope:{ctx:c}}}),{c(){t=E("p"),r=h("To enable "),w(e.$$.fragment),a=h(", run a Worker on the "),o=h(n),l=h(" Task Queue.")},l(i){t=S(i,"P",{});var f=L(t);r=b(f,"To enable "),v(e.$$.fragment,f),a=b(f,", run a Worker on the "),o=b(f,n),l=b(f," Task Queue."),f.forEach(_)},m(i,f){d(i,t,f),g(t,r),T(e,t,null),g(t,a),g(t,o),g(t,l),s=!0},p(i,f){var u;const m={};f&4096&&(m.$$scope={dirty:f,ctx:i}),e.$set(m),(!s||f&1)&&n!==(n=((u=i[0])==null?void 0:u.taskQueue)+"")&&z(o,n)},i(i){s||($(e.$$.fragment,i),s=!0)},o(i){k(e.$$.fragment,i),s=!1},d(i){i&&_(t),y(e)}}}function ne(c){let t;return{c(){t=h("stack traces")},l(r){t=b(r,"stack traces")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ae(c){var a,n,o;let t,r,e=((a=c[0])==null?void 0:a.isRunning)&&((o=(n=c[3])==null?void 0:n.pollers)==null?void 0:o.length)===0&&V(c);return{c(){e&&e.c(),t=C()},l(l){e&&e.l(l),t=C()},m(l,s){e&&e.m(l,s),d(l,t,s),r=!0},p(l,s){var p,i,f;(p=l[0])!=null&&p.isRunning&&((f=(i=l[3])==null?void 0:i.pollers)==null?void 0:f.length)===0?e?(e.p(l,s),s&9&&$(e,1)):(e=V(l),e.c(),$(e,1),e.m(t.parentNode,t)):e&&(U(),k(e,1,1,()=>{e=null}),j())},i(l){r||($(e),r=!0)},o(l){k(e),r=!1},d(l){e&&e.d(l),l&&_(t)}}}function oe(c){let t,r;return t=new G({props:{title:"An Error Occured",content:"Please make sure you have at least one worker running."}}),{c(){w(t.$$.fragment)},l(e){v(t.$$.fragment,e)},m(e,a){T(t,e,a),r=!0},p:A,i(e){r||($(t.$$.fragment,e),r=!0)},o(e){k(t.$$.fragment,e),r=!1},d(e){y(t,e)}}}function le(c){let t,r,e,a,n,o=c[1].toLocaleTimeString()+"",l,s,p,i,f;return r=new X({props:{icon:"retry",loading:ue,$$slots:{default:[se]},$$scope:{ctx:c}}}),r.$on("click",c[4]),i=new M({props:{content:c[10],language:"text",testId:"query-stack-trace"}}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("Stack Trace at "),l=h(o),s=D(),p=E("div"),w(i.$$.fragment),this.h()},l(m){t=S(m,"DIV",{class:!0});var u=L(t);v(r.$$.fragment,u),e=I(u),a=S(u,"P",{});var R=L(a);n=b(R,"Stack Trace at "),l=b(R,o),R.forEach(_),u.forEach(_),s=I(m),p=S(m,"DIV",{class:!0});var P=L(p);v(i.$$.fragment,P),P.forEach(_),this.h()},h(){N(t,"class","flex items-center gap-4"),N(p,"class","flex items-start h-full")},m(m,u){d(m,t,u),T(r,t,null),g(t,e),g(t,a),g(a,n),g(a,l),d(m,s,u),d(m,p,u),T(i,p,null),f=!0},p(m,u){const R={};u&4096&&(R.$$scope={dirty:u,ctx:m}),r.$set(R),(!f||u&2)&&o!==(o=m[1].toLocaleTimeString()+"")&&z(l,o);const P={};u&4&&(P.content=m[10]),i.$set(P)},i(m){f||($(r.$$.fragment,m),$(i.$$.fragment,m),f=!0)},o(m){k(r.$$.fragment,m),k(i.$$.fragment,m),f=!1},d(m){m&&_(t),y(r),m&&_(s),m&&_(p),y(i)}}}function se(c){let t;return{c(){t=h("Refresh")},l(r){t=b(r,"Refresh")},m(r,e){d(r,t,e)},d(r){r&&_(t)}}}function ce(c){let t,r,e,a,n,o;return r=new Y({}),{c(){t=E("div"),w(r.$$.fragment),e=D(),a=E("p"),n=h("(This will fail if you have no workers running.)"),this.h()},l(l){t=S(l,"DIV",{class:!0});var s=L(t);v(r.$$.fragment,s),e=I(s),a=S(s,"P",{});var p=L(a);n=b(p,"(This will fail if you have no workers running.)"),p.forEach(_),s.forEach(_),this.h()},h(){N(t,"class","text-center")},m(l,s){d(l,t,s),T(r,t,null),g(t,e),g(t,a),g(a,n),o=!0},p:A,i(l){o||($(r.$$.fragment,l),o=!0)},o(l){k(r.$$.fragment,l),o=!1},d(l){l&&_(t),y(r)}}}function ie(c){let t,r,e,a;const n=[re,te],o=[];function l(s,p){var i,f,m;return(i=s[0])!=null&&i.isRunning&&((m=(f=s[3])==null?void 0:f.pollers)==null?void 0:m.length)>0?0:1}return r=l(c),e=o[r]=n[r](c),{c(){t=E("section"),e.c()},l(s){t=S(s,"SECTION",{});var p=L(t);e.l(p),p.forEach(_)},m(s,p){d(s,t,p),o[r].m(t,null),a=!0},p(s,[p]){let i=r;r=l(s),r===i?o[r].p(s,p):(U(),k(o[i],1,1,()=>{o[i]=null}),j(),e=o[r],e?e.p(s,p):(e=o[r]=n[r](s),e.c()),$(e,1),e.m(t,null))},i(s){a||($(e),a=!0)},o(s){k(e),a=!1},d(s){s&&_(t),o[r].d()}}}let ue=!1;function fe(c,t,r){let e,a,n,o,l;q(c,x,u=>r(6,n=u)),q(c,K,u=>r(7,o=u)),q(c,J,u=>r(5,l=u));const{namespace:s}=o.params;let p=new Date;const i=()=>{var u;return W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)};let f;const m=()=>{var u;r(2,f=W({workflow:e,namespace:s},(u=o.data)===null||u===void 0?void 0:u.settings,n==null?void 0:n.accessToken)),f.then(()=>{r(1,p=new Date)})};return c.$$.update=()=>{c.$$.dirty&32&&r(0,{workflow:e,workers:a}=l,e,(r(3,a),r(5,l))),c.$$.dirty&1&&e.isRunning&&r(2,f=i())},[e,p,f,a,m,l]}class me extends B{constructor(t){super(),F(this,t,fe,ie,O,{})}}function pe(c){let t,r,e,a;return t=new ee({props:{title:`Stack Trace | ${c[1]}`,url:c[0].url.href}}),e=new me({}),{c(){w(t.$$.fragment),r=D(),w(e.$$.fragment)},l(n){v(t.$$.fragment,n),r=I(n),v(e.$$.fragment,n)},m(n,o){T(t,n,o),d(n,r,o),T(e,n,o),a=!0},p(n,[o]){const l={};o&1&&(l.url=n[0].url.href),t.$set(l)},i(n){a||($(t.$$.fragment,n),$(e.$$.fragment,n),a=!0)},o(n){k(t.$$.fragment,n),k(e.$$.fragment,n),a=!1},d(n){y(t,n),n&&_(r),y(e,n)}}}function _e(c,t,r){let e;q(c,K,n=>r(0,e=n));const a=e.params.workflow;return[e,a]}class Se extends B{constructor(t){super(),F(this,t,_e,pe,O,{})}}export{Se as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.64cb234f.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.975f4e79.js similarity index 95% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.64cb234f.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.975f4e79.js index 084d9e9f16..6e29076858 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.64cb234f.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.975f4e79.js @@ -1 +1 @@ -import{S as c,b as w,a as k,C as f,D as u,E as m,j as i,g as p,F as l,K as g,c as _,d as h,f as Q,k as W}from"../chunks/index.a36c9cb0.js";import{p as b}from"../chunks/stores.48be4ca9.js";import{P as d}from"../chunks/page-title.b9565d2f.js";import{w as P}from"../chunks/workflow-run.8a407b5f.js";import{W as y}from"../chunks/workers-list.39b61477.js";function C(n){let t,s;return t=new y({props:{taskQueue:n[0].taskQueue,workers:n[1]}}),{c(){f(t.$$.fragment)},l(r){u(t.$$.fragment,r)},m(r,o){m(t,r,o),s=!0},p(r,[o]){const e={};o&1&&(e.taskQueue=r[0].taskQueue),o&2&&(e.workers=r[1]),t.$set(e)},i(r){s||(i(t.$$.fragment,r),s=!0)},o(r){p(t.$$.fragment,r),s=!1},d(r){l(t,r)}}}function R(n,t,s){let r,o,e;return g(n,P,a=>s(2,e=a)),n.$$.update=()=>{n.$$.dirty&4&&s(1,{workers:r,workflow:o}=e,r,(s(0,o),s(2,e)))},[o,r,e]}class S extends c{constructor(t){super(),w(this,t,R,C,k,{})}}function j(n){let t,s,r,o;return t=new d({props:{title:`Workers | ${n[1]}`,url:n[0].url.href}}),r=new S({}),{c(){f(t.$$.fragment),s=_(),f(r.$$.fragment)},l(e){u(t.$$.fragment,e),s=h(e),u(r.$$.fragment,e)},m(e,a){m(t,e,a),Q(e,s,a),m(r,e,a),o=!0},p(e,[a]){const $={};a&1&&($.url=e[0].url.href),t.$set($)},i(e){o||(i(t.$$.fragment,e),i(r.$$.fragment,e),o=!0)},o(e){p(t.$$.fragment,e),p(r.$$.fragment,e),o=!1},d(e){l(t,e),e&&W(s),l(r,e)}}}function q(n,t,s){let r;g(n,b,e=>s(0,r=e));const o=r.params.workflow;return[r,o]}class z extends c{constructor(t){super(),w(this,t,q,j,k,{})}}export{z as default}; +import{S as c,b as w,a as k,C as f,D as u,E as m,j as i,g as p,F as l,K as g,c as _,d as h,f as Q,k as W}from"../chunks/index.a36c9cb0.js";import{p as b}from"../chunks/stores.4d55fa19.js";import{P as d}from"../chunks/page-title.b9565d2f.js";import{w as P}from"../chunks/workflow-run.8a407b5f.js";import{W as y}from"../chunks/workers-list.39b61477.js";function C(n){let t,s;return t=new y({props:{taskQueue:n[0].taskQueue,workers:n[1]}}),{c(){f(t.$$.fragment)},l(r){u(t.$$.fragment,r)},m(r,o){m(t,r,o),s=!0},p(r,[o]){const e={};o&1&&(e.taskQueue=r[0].taskQueue),o&2&&(e.workers=r[1]),t.$set(e)},i(r){s||(i(t.$$.fragment,r),s=!0)},o(r){p(t.$$.fragment,r),s=!1},d(r){l(t,r)}}}function R(n,t,s){let r,o,e;return g(n,P,a=>s(2,e=a)),n.$$.update=()=>{n.$$.dirty&4&&s(1,{workers:r,workflow:o}=e,r,(s(0,o),s(2,e)))},[o,r,e]}class S extends c{constructor(t){super(),w(this,t,R,C,k,{})}}function j(n){let t,s,r,o;return t=new d({props:{title:`Workers | ${n[1]}`,url:n[0].url.href}}),r=new S({}),{c(){f(t.$$.fragment),s=_(),f(r.$$.fragment)},l(e){u(t.$$.fragment,e),s=h(e),u(r.$$.fragment,e)},m(e,a){m(t,e,a),Q(e,s,a),m(r,e,a),o=!0},p(e,[a]){const $={};a&1&&($.url=e[0].url.href),t.$set($)},i(e){o||(i(t.$$.fragment,e),i(r.$$.fragment,e),o=!0)},o(e){p(t.$$.fragment,e),p(r.$$.fragment,e),o=!1},d(e){l(t,e),e&&W(s),l(r,e)}}}function q(n,t,s){let r;g(n,b,e=>s(0,r=e));const o=r.params.workflow;return[r,o]}class z extends c{constructor(t){super(),w(this,t,q,j,k,{})}}export{z as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.09609d3c.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.7c59ae4c.js similarity index 57% rename from ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.09609d3c.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.7c59ae4c.js index e80559c59e..4796041d47 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.09609d3c.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-_workflow_-page.ts.7c59ae4c.js @@ -1 +1 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.11be6188.js";import{l as t}from"../chunks/_page.88f44cfb.js";export{t as load}; +import"../chunks/index.b1f5b21f.js";import"../chunks/workflow-service.a6d60dde.js";import{l as t}from"../chunks/_page.f4dc3afd.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.37406c88.js b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.5f628e67.js similarity index 99% rename from ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.37406c88.js rename to ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.5f628e67.js index 8abdc5b755..82b7dc66f9 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.37406c88.js +++ b/ui/assets/local/_app/immutable/entry/(app)-namespaces-_namespace_-workflows-page.svelte.5f628e67.js @@ -1,4 +1,4 @@ -import{S as ke,b as ve,a as Te,m as S,c as q,p as C,q as W,k as d,d as H,u as D,f as I,L as k,z as me,g as T,h as de,j as v,K as x,M as He,w as j,x as Q,T as ne,ab as Le,A as he,Y as be,C as O,D as N,E as V,Z as $e,F as R,e as Se,a7 as je,a1 as wt,a2 as Nl,y as _e,n as ge,o as Vl,_ as se,aj as pn,G as Qe,H as Ke,I as ze,J as Ye,W as Rl,R as ae,r as Me,N as Xe,O as ot,P as Be,Q as Wt,V as Ue,U as hn,a5 as At,v as Ll,$ as Ft,af as Ot,al as gn,i as bn,ae as Pl,a8 as $n}from"../chunks/index.a36c9cb0.js";import{p as Oe}from"../chunks/stores.0bc9ce95.js";import{t as Pe}from"../chunks/time-format.dc246788.js";import{b as at,r as Je,c as Ml,u as Bl,l as Ul,d as ql,e as Hl,a as wn,w as kn,f as Ze,S as vn,O as gt}from"../chunks/workflow-terminate-enabled.3468108e.js";import{l as it}from"../chunks/namespaces.85dd7810.js";import{E as ft}from"../chunks/empty-state.9fb63265.js";import{u as Ge,P as jl}from"../chunks/pagination.69c5aeb5.js";import{t as Nt,j as Ql,S as Tn,W as En,a as yn,b as In,F as Vt}from"../chunks/search.f90e15c8.js";import"../chunks/nav-open.98e0e195.js";import{I as Ce}from"../chunks/icon.33859671.js";import"../chunks/tooltip.bd2ec5a4.js";import{r as ut,t as Dn,x as ct,q as lt,j as Sn,k as Cn,l as Rt,m as Wn,s as An,u as Fn,v as On,w as Lt,y as nt,z as dt,A as Pt}from"../chunks/format-time.c8c4770b.js";import{t as Mt,s as xe,a as Nn}from"../chunks/list-workflow-query.18f8dd4a.js";import{S as _t,a as qe}from"../chunks/simple-select.6bb2c039.js";import{I as Ne}from"../chunks/input.a193633b.js";import{a as Vn,d as Rn,c as Ln,j as Pn,k as Mn}from"../chunks/has.48bed8a5.js";import{L as mt}from"../chunks/loading.bcb9b7b8.js";import{P as Bn}from"../chunks/page-title.b9565d2f.js";import{w as We,a as pe}from"../chunks/filters.c5bf71c7.js";import{T as Kl,a as zl}from"../chunks/table-header-row.eb620974.js";import{D as et}from"../chunks/dropdown-menu.c2d1df3e.js";import{W as Yl}from"../chunks/workflow-status.47d31de2.js";import{c as Un}from"../chunks/core-user.f8486d3a.js";import{f as Re}from"../chunks/format-date.7c274b02.js";import{g as qn}from"../chunks/route-for.70dfbf18.js";import{T as Hn}from"../chunks/table-row.9df8daa0.js";import{f as jn,a as Qn,I as st}from"../chunks/icon-button.bcd06a36.js";import{B as bt}from"../chunks/button.dbc76a4c.js";import{c as Bt}from"../chunks/format-camel-case.960a78f9.js";import{c as Gl,D as Kn}from"../chunks/drawer.62a75e11.js";import{S as zn}from"../chunks/simple-split-button.e333abd5.js";import{w as Ut,a as Yn,b as qt}from"../chunks/calendar.81d1e381.js";import{T as Gn,a as Ht}from"../chunks/toggle-buttons.323d739d.js";import{M as pt}from"../chunks/menu-item.4122979b.js";import{s as Jl}from"../chunks/parse-with-big-int.0036a80a.js";import{r as kt,a as vt}from"../chunks/route-for-api.81ced9ce.js";import{i as Zl}from"../chunks/version-check.d006b302.js";import{t as Xl}from"../chunks/versions.97216320.js";import{v as xl,t as rt}from"../chunks/toaster.16c48a98.js";import{M as Jn}from"../chunks/modal.50ea7269.js";import{a as Zn}from"../chunks/auth-user.3a7bc4db.js";import{d as Xn}from"../chunks/index.deae5bd4.js";import{s as xn}from"../chunks/settings.34723850.js";import{p as er}from"../chunks/persist-store.863ae031.js";function Tt(n,e){ut(2,arguments);var t=Dn(n).getTime(),l=ct(e);return new Date(t+l)}var tr=36e5;function lr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*tr)}var nr=6e4;function rr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*nr)}function sr(n,e){ut(2,arguments);var t=ct(e);return Tt(n,t*1e3)}function jt(n,e,t){const l=n.slice();return l[16]=e[t][0],l[17]=e[t][1],l}function Qt(n,e,t){const l=n.slice();return l[17]=e[t],l}function or(n){let e,t,l,r,s;return{c(){e=S("a"),t=j("Advanced Search"),this.h()},l(a){e=C(a,"A",{href:!0,class:!0});var o=W(e);t=Q(o,"Advanced Search"),o.forEach(d),this.h()},h(){D(e,"href",l=n[2].url.pathname+"?searchType=advanced"),D(e,"class","text-blue-700")},m(a,o){I(a,e,o),k(e,t),r||(s=ne(e,"click",Le(n[6]("advanced"))),r=!0)},p(a,o){o&4&&l!==(l=a[2].url.pathname+"?searchType=advanced")&&D(e,"href",l)},d(a){a&&d(e),r=!1,s()}}}function ar(n){let e,t,l,r,s;return{c(){e=S("a"),t=j("Basic Search"),this.h()},l(a){e=C(a,"A",{href:!0,class:!0});var o=W(e);t=Q(o,"Basic Search"),o.forEach(d),this.h()},h(){D(e,"href",l=n[2].url.pathname+"?searchType=basic"),D(e,"class","text-blue-700")},m(a,o){I(a,e,o),k(e,t),r||(s=ne(e,"click",Le(n[6]("basic"))),r=!0)},p(a,o){o&4&&l!==(l=a[2].url.pathname+"?searchType=basic")&&D(e,"href",l)},d(a){a&&d(e),r=!1,s()}}}function ir(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h;function $(U){n[9](U)}let E={icon:"search",type:"search",id:"workflow-id-filter",placeholder:"Workflow ID"};n[3].workflowId!==void 0&&(E.value=n[3].workflowId),t=new Ne({props:E}),he.push(()=>be(t,"value",$)),t.$on("input",n[8]);function b(U){n[10](U)}let w={icon:"search",type:"search",id:"workflow-type-filter",placeholder:"Workflow Type"};n[3].workflowType!==void 0&&(w.value=n[3].workflowType),s=new Ne({props:w}),he.push(()=>be(s,"value",b)),s.$on("input",n[8]);function y(U){n[11](U)}let M={id:"time-range-filter",label:"Time Range",$$slots:{default:[dr]},$$scope:{ctx:n}};n[3].timeRange!==void 0&&(M.value=n[3].timeRange),i=new _t({props:M}),he.push(()=>be(i,"value",y)),i.$on("change",n[8]);function J(U){n[12](U)}let F={id:"execution-status-filter",label:"Workflow Status",$$slots:{default:[pr]},$$scope:{ctx:n}};n[3].executionStatus!==void 0&&(F.value=n[3].executionStatus),c=new _t({props:F}),he.push(()=>be(c,"value",J)),c.$on("change",n[8]);function G(U){n[13](U)}let X={id:"filter-by-relative-time",label:"Time Format",$$slots:{default:[$r]},$$scope:{ctx:n}};return n[4]!==void 0&&(X.value=n[4]),m=new _t({props:X}),he.push(()=>be(m,"value",G)),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),_=q(),O(m.$$.fragment),this.h()},l(U){e=C(U,"DIV",{role:!0,class:!0});var B=W(e);N(t.$$.fragment,B),r=H(B),N(s.$$.fragment,B),o=H(B),N(i.$$.fragment,B),p=H(B),N(c.$$.fragment,B),_=H(B),N(m.$$.fragment,B),B.forEach(d),this.h()},h(){D(e,"role","search"),D(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(U,B){I(U,e,B),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),k(e,_),V(m,e,null),h=!0},p(U,B){const P={};!l&&B&8&&(l=!0,P.value=U[3].workflowId,$e(()=>l=!1)),t.$set(P);const A={};!a&&B&8&&(a=!0,A.value=U[3].workflowType,$e(()=>a=!1)),s.$set(A);const L={};B&4194312&&(L.$$scope={dirty:B,ctx:U}),!f&&B&8&&(f=!0,L.value=U[3].timeRange,$e(()=>f=!1)),i.$set(L);const ee={};B&4194304&&(ee.$$scope={dirty:B,ctx:U}),!u&&B&8&&(u=!0,ee.value=U[3].executionStatus,$e(()=>u=!1)),c.$set(ee);const re={};B&4194304&&(re.$$scope={dirty:B,ctx:U}),!g&&B&16&&(g=!0,re.value=U[4],$e(()=>g=!1)),m.$set(re)},i(U){h||(v(t.$$.fragment,U),v(s.$$.fragment,U),v(i.$$.fragment,U),v(c.$$.fragment,U),v(m.$$.fragment,U),h=!0)},o(U){T(t.$$.fragment,U),T(s.$$.fragment,U),T(i.$$.fragment,U),T(c.$$.fragment,U),T(m.$$.fragment,U),h=!1},d(U){U&&d(e),R(t),R(s),R(i),R(c),R(m)}}}function fr(n){let e,t;return e=new Tn({props:{icon:!0,id:"advanced-search",placeholder:"Query…",value:n[1]}}),e.$on("submit",n[7]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ur(n){let e;return{c(){e=j("All")},l(t){e=Q(t,"All")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Kt(n){let e,t;return e=new qe({props:{value:n[3].timeRange,$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8&&(s.value=l[3].timeRange),r&4194312&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function cr(n){let e=n[3].timeRange+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p(l,r){r&8&&e!==(e=l[3].timeRange+"")&&_e(t,e)},d(l){l&&d(t)}}}function mr(n){let e=n[17]+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p:ge,d(l){l&&d(t)}}}function zt(n){let e,t;return e=new qe({props:{value:n[17],$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&4194304&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function dr(n){let e,t,l=n[3].timeRange&&!lt.includes(n[3].timeRange),r,s,a;e=new qe({props:{value:null,$$slots:{default:[ur]},$$scope:{ctx:n}}});let o=l&&Kt(n),i=lt,f=[];for(let c=0;cT(f[c],1,1,()=>{f[c]=null});return{c(){O(e.$$.fragment),t=q(),o&&o.c(),r=q();for(let c=0;c{o=null}),de()),u&0){i=lt;let m;for(m=0;mo[16];for(let o=0;o{c[g]=null}),de(),s=c[r],s?s.p(_,m):(s=c[r]=p[r](_),s.c()),v(s,1),s.m(e,null))},i(_){a||(v(s),a=!0)},o(_){T(s),a=!1},d(_){_&&d(e),f.d(),c[r].d()}}}function kr(n,e,t){let l,r,s,a;x(n,Oe,b=>t(2,s=b)),x(n,Pe,b=>t(4,a=b));const o=He();let{searchType:i}=e;const f=Mt({timeRange:"All"}),p={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=b=>()=>{t(0,i=b),Ge({parameter:"search",value:i,url:s.url})},u=b=>{o("search");const w=new FormData(b.target);t(1,l=String(w.get("query"))),t(3,r=Nt(l)),Ge({url:s.url,parameter:"query",value:l})},_=Ql(()=>{o("search"),t(1,l=Mt(r)),Ge({url:s.url,parameter:"query",value:l,allowEmpty:!0})},300);function m(b){n.$$.not_equal(r.workflowId,b)&&(r.workflowId=b,t(3,r),t(1,l),t(2,s))}function g(b){n.$$.not_equal(r.workflowType,b)&&(r.workflowType=b,t(3,r),t(1,l),t(2,s))}function h(b){n.$$.not_equal(r.timeRange,b)&&(r.timeRange=b,t(3,r),t(1,l),t(2,s))}function $(b){n.$$.not_equal(r.executionStatus,b)&&(r.executionStatus=b,t(3,r),t(1,l),t(2,s))}function E(b){a=b,Pe.set(a)}return n.$$set=b=>{"searchType"in b&&t(0,i=b.searchType)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=s.url.searchParams.get("query")),n.$$.dirty&2&&t(3,r=Nt(l??f))},[i,l,s,r,a,p,c,u,_,m,g,h,$,E]}class vr extends ke{constructor(e){super(),ve(this,e,kr,wr,Te,{searchType:0})}}const Tr=n=>Vn(n)?n==="basic"||n==="advanced":!1,Er=n=>{const e=n.searchParams.get("search");return Tr(e)?e:(n.searchParams.set("search","basic"),"basic")};function Gt(n,e,t){const l=n.slice();return l[14]=e[t],l}function Jt(n){let e,t,l,r,s,a,o,i,f,p;const c=[Ir,yr],u=[];function _($,E){return $[5]?0:1}l=_(n),r=u[l]=c[l](n);const m=[Sr,Dr],g=[];function h($,E){return $[5]?0:1}return o=h(n),i=g[o]=m[o](n),{c(){e=S("tr"),t=S("td"),r.c(),s=q(),a=S("td"),i.c(),f=q(),this.h()},l($){e=C($,"TR",{});var E=W(e);t=C(E,"TD",{colspan:!0,class:!0});var b=W(t);r.l(b),b.forEach(d),s=H(E),a=C(E,"TD",{colspan:!0,class:!0});var w=W(a);i.l(w),w.forEach(d),f=H(E),E.forEach(d),this.h()},h(){D(t,"colspan","5"),D(t,"class","xl:hidden"),D(a,"colspan","7"),D(a,"class","hidden xl:table-cell")},m($,E){I($,e,E),k(e,t),u[l].m(t,null),k(e,s),k(e,a),g[o].m(a,null),k(e,f),p=!0},p($,E){let b=l;l=_($),l===b?u[l].p($,E):(me(),T(u[b],1,1,()=>{u[b]=null}),de(),r=u[l],r?r.p($,E):(r=u[l]=c[l]($),r.c()),v(r,1),r.m(t,null));let w=o;o=h($),o===w?g[o].p($,E):(me(),T(g[w],1,1,()=>{g[w]=null}),de(),i=g[o],i?i.p($,E):(i=g[o]=m[o]($),i.c()),v(i,1),i.m(a,null))},i($){p||(v(r),v(i),p=!0)},o($){T(r),T(i),p=!1},d($){$&&d(e),u[l].d(),g[o].d()}}}function yr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ir(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Dr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Sr(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zt(n){let e,t;return e=new yn({props:{workflow:n[14],namespace:n[1].params.namespace,timeFormat:n[4]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8192&&(s.workflow=l[14]),r&2&&(s.namespace=l[1].params.namespace),r&16&&(s.timeFormat=l[4]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cr(n){let e,t,l=n[13],r=[];for(let o=0;oT(r[o],1,1,()=>{r[o]=null});let a=null;return l.length||(a=Jt(n)),{c(){for(let o=0;o{a=null}),de()):(a=Jt(o),a.c(),v(a,1),a.m(e.parentNode,e))}},i(o){if(!t){for(let i=0;ibe(g,"searchType",M)),E=new jl({props:{items:n[2],"aria-label":"recent workflows",$$slots:{default:[Wr,({visibleItems:F})=>({13:F}),({visibleItems:F})=>F?8192:0]},$$scope:{ctx:n}}}),{c(){e=S("header"),t=S("div"),l=S("h1"),r=j("Recent Workflows"),s=q(),a=S("div"),o=S("p"),f=j(i),p=q(),c=S("div"),u=S("button"),O(_.$$.fragment),m=q(),O(g.$$.fragment),$=q(),O(E.$$.fragment),this.h()},l(F){e=C(F,"HEADER",{class:!0});var G=W(e);t=C(G,"DIV",{});var X=W(t);l=C(X,"H1",{class:!0,"data-testid":!0});var U=W(l);r=Q(U,"Recent Workflows"),U.forEach(d),s=H(X),a=C(X,"DIV",{class:!0});var B=W(a);o=C(B,"P",{"data-testid":!0});var P=W(o);f=Q(P,i),P.forEach(d),B.forEach(d),X.forEach(d),p=H(G),c=C(G,"DIV",{});var A=W(c);u=C(A,"BUTTON",{"aria-label":!0,class:!0});var L=W(u);N(_.$$.fragment,L),L.forEach(d),A.forEach(d),G.forEach(d),m=H(F),N(g.$$.fragment,F),$=H(F),N(E.$$.fragment,F),this.h()},h(){D(l,"class","text-2xl"),D(l,"data-testid","namespace-title"),D(o,"data-testid","namespace-name"),D(a,"class","flex items-center gap-2 text-sm"),D(u,"aria-label","retry workflows"),D(u,"class","cursor-pointer rounded-full p-1 hover:bg-gray-900 hover:text-white"),D(e,"class","mb-2 flex justify-between")},m(F,G){I(F,e,G),k(e,t),k(t,l),k(l,r),k(t,s),k(t,a),k(a,o),k(o,f),k(e,p),k(e,c),k(c,u),V(_,u,null),I(F,m,G),V(g,F,G),I(F,$,G),V(E,F,G),b=!0,w||(y=ne(u,"click",n[8]),w=!0)},p(F,[G]){(!b||G&2)&&i!==(i=F[1].params.namespace+"")&&_e(f,i);const X={};!h&&G&1&&(h=!0,X.searchType=F[0],$e(()=>h=!1)),g.$set(X);const U={};G&4&&(U.items=F[2]),G&139386&&(U.$$scope={dirty:G,ctx:F}),E.$set(U)},i(F){b||(v(_.$$.fragment,F),v(g.$$.fragment,F),v(E.$$.fragment,F),b=!0)},o(F){T(_.$$.fragment,F),T(g.$$.fragment,F),T(E.$$.fragment,F),b=!1},d(F){F&&d(e),R(_),F&&d(m),R(g,F),F&&d($),R(E,F),w=!1,y()}}}function Fr(n,e,t){let l,r,s,a,o,i,f,p,c;x(n,Oe,h=>t(1,l=h)),x(n,at,h=>t(10,r=h)),x(n,Je,h=>t(11,s=h)),x(n,it,h=>t(12,a=h)),x(n,Ml,h=>t(2,o=h)),x(n,Bl,h=>t(3,i=h)),x(n,Pe,h=>t(4,f=h)),x(n,Ul,h=>t(5,p=h)),x(n,ql,h=>t(6,c=h));let u=Er(l.url);const _=u==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Vl(()=>{se(it,a=l.params.namespace,a)});const m=()=>{se(Je,s=Date.now(),s)};pn(()=>{se(at,r=l.url.searchParams.toString(),r)});function g(h){u=h,t(0,u)}return[u,l,o,i,f,p,c,_,m,g]}class Or extends ke{constructor(e){super(),ve(this,e,Fr,Ar,Te,{})}}const Nr=n=>({}),Xt=n=>({});function Vr(n){let e;const t=n[2].fallback,l=Qe(t,n,n[1],Xt);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,Nr):ze(r[1]),Xt)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Rr(n){let e;const t=n[2].default,l=Qe(t,n,n[1],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,null):ze(r[1]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Lr(n){let e,t,l,r;const s=[Rr,Vr],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function Pr(n,e,t){let l;x(n,xe,a=>t(0,l=a));let{$$slots:r={},$$scope:s}=e;return n.$$set=a=>{"$$scope"in a&&t(1,s=a.$$scope)},[l,s,r]}class Mr extends ke{constructor(e){super(),ve(this,e,Pr,Lr,Te,{})}}const Br={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ur=n=>!(n===null||n===void 0||n===""||typeof n=="string"&&n==="undefined"),qr=(n,e,t="=",l,r)=>{const s=Br[n]??n;return e==="All"?"":r?`${s} ${e}`:Sn(e)||Cn(e)?l||Rl(xe)?`${s} > "${Rt(e)}"`:`${s} BETWEEN "${Rt(e)}" AND "${Wn()}"`:`${s}${t}"${e}"`},Hr=(n,e)=>n.map(({attribute:t,value:l,conditional:r,operator:s,parenthesis:a,customDate:o})=>{if(Ur(l)){let i=qr(t,l,r,e,o);return a==="("?i=`(${i}`:a===")"&&(i=`${i})`),s&&(i=`${i} ${s} `),i}}).filter(Boolean),jr=(n=[],e=[],t=!1)=>{const l=e.length?` order by ${e[0].attribute} ${e[0].value}`:"";return Hr(n,t).join("")+l},Qr=n=>e=>e.toLowerCase()===n.toLowerCase(),xt=(n,e)=>n[e+2],Kr=(n,e)=>n[e-2],zr=n=>{if(n){for(const e of On)if(n[e])return{[e]:n[e]}}},Yr=Qr("Datetime"),ht=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),Gr={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword"},en=(n,e=Gr)=>{const t=In(n),l=[];let r=ht();if(!n)return[];try{return t.forEach((s,a)=>{if(e[s])if(r.attribute=s,Yr(e[s])){const o=xt(t,a);try{const i=An(o),f=zr(i);r.value=Fn(f)}catch(i){console.error("Error parsing Datetime field from query",i)}}else r.value=xt(t,a);Rn(s)&&(r.conditional=s),Ln(s)&&(r.parenthesis=s),Pn(s)&&!Mn(Kr(t,a))&&(r.operator=s,l.push(r),r=ht()),a===t.length-1&&(l.push(r),r=ht())}),l}catch(s){return console.error("Error setting filter parameters: ",s),[]}},Jr=n=>{const e=n.filter(a=>a.attribute==="ExecutionStatus"&&a.value),t=n.filter(a=>a.attribute==="WorkflowId"&&a.value),l=n.filter(a=>a.attribute==="WorkflowType"&&a.value),r=n.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),s=[e,t,l,r].filter(a=>a.length);return s.forEach((a,o)=>{var i,f;a.length&&((i=s[o+1])!=null&&i.length)?a[a.length-1].operator="AND":a.length&&!((f=s[o+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...t,...l,...r]},Ve=Ql((n,e,t)=>{const l=Jr(e),r=jr(l,t);Ge({url:n,parameter:"query",value:r,allowEmpty:!1})},300);function el(n,e,t){const l=n.slice();return l[10]=e[t][0],l[11]=e[t][1],l}function tl(n){let e,t;return e=new Ce({props:{class:"pointer-events-none -mt-[1px] -ml-[2px] text-white",name:"checkmark",width:20,height:20}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zr(n){let e,t;return e=new Yl({props:{status:n[11]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Xr(n){let e;return{c(){e=j("All Statuses")},l(t){e=Q(t,"All Statuses")},m(t,l){I(t,e,l)},p:ge,i:ge,o:ge,d(t){t&&d(e)}}}function ll(n,e){let t,l,r=e[0].find(_)||!e[0].length&&e[11]==="All",s,a,o,i,f,p,c,u;function _(...w){return e[6](e[11],...w)}let m=r&&tl();function g(...w){return e[7](e[11],...w)}const h=[Xr,Zr],$=[];function E(w,y){return w[11]==="All"?0:1}o=E(e),i=$[o]=h[o](e);function b(){return e[8](e[11])}return{key:n,first:null,c(){t=S("button"),l=S("div"),m&&m.c(),s=q(),a=S("div"),i.c(),f=q(),this.h()},l(w){t=C(w,"BUTTON",{class:!0,"data-testid":!0});var y=W(t);l=C(y,"DIV",{class:!0});var M=W(l);m&&m.l(M),M.forEach(d),s=H(y),a=C(y,"DIV",{class:!0});var J=W(a);i.l(J),J.forEach(d),f=H(y),y.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-4 w-4 rounded-sm ring-1 ring-gray-900 svelte-mpn3ee"),ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),D(a,"class","flex h-6 items-center text-sm hover:scale-[103%]"),D(t,"class","flex items-center transition-all hover:cursor-pointer"),D(t,"data-testid",e[10]),this.first=t},m(w,y){I(w,t,y),k(t,l),m&&m.m(l,null),k(t,s),k(t,a),$[o].m(a,null),k(t,f),p=!0,c||(u=ne(t,"click",b),c=!0)},p(w,y){e=w,y&1&&(r=e[0].find(_)||!e[0].length&&e[11]==="All"),r?m?y&1&&v(m,1):(m=tl(),m.c(),v(m,1),m.m(l,null)):m&&(me(),T(m,1,1,()=>{m=null}),de()),(!p||y&5)&&ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),i.p(e,y)},i(w){p||(v(m),v(i),p=!0)},o(w){T(m),T(i),p=!1},d(w){w&&d(t),m&&m.d(),$[o].d(),c=!1,u()}}}function xr(n){let e,t=[],l=new Map,r,s=Object.entries(n[2]);const a=o=>o[11];for(let o=0;o{const l=t===0?"(":t===n.length-1?")":"",r=t===n.length-1?"":"OR";return{...e,operator:r,parenthesis:l}})}const rl=n=>n.value;function ls(n,e,t){let l,r,s,a,o;x(n,We,_=>t(4,s=_)),x(n,pe,_=>t(5,a=_)),x(n,Oe,_=>t(9,o=_));const i={All:"All",Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},f=_=>{if(_==="All")se(pe,a=a.filter(m=>m.attribute!=="ExecutionStatus"),a);else if(l.find(m=>m.value===_)){const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl(l.filter(g=>g.value!==_))],a)}else if(!l.length)se(pe,a=[...a,$t(_)],a);else{const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl([...l,$t(_)])],a)}Ve(o.url,a,s)},p=(_,m)=>m.value===_,c=(_,m)=>m.value===_,u=_=>f(_);return n.$$.update=()=>{n.$$.dirty&32&&t(0,l=a.filter(_=>_.attribute==="ExecutionStatus")),n.$$.dirty&16&&t(1,r=s.find(_=>_.attribute==="ExecutionStatus"))},[l,r,i,f,s,a,p,c,u]}class tn extends ke{constructor(e){super(),ve(this,e,ls,ts,Te,{})}}function ns(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowId",placeholder:"Workflow ID",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function rs(n){let e;return{c(){e=j("Workflow ID")},l(t){e=Q(t,"Workflow ID")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ss(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-id-filter-button",$$slots:{label:[rs],default:[ns]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function os(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowId"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowId",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&(l!=null&&l.value)?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowId")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowId"))},[i,l,r,p,c,u,s,a,_]}class ln extends ke{constructor(e){super(),ve(this,e,os,ss,Te,{})}}function as(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowType",placeholder:"Workflow Type",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function is(n){let e;return{c(){e=j("Type")},l(t){e=Q(t,"Type")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function fs(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-type-filter-button",$$slots:{label:[is],default:[as]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function us(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowType"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowType",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&l?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowType")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowType"))},[i,l,r,p,c,u,s,a,_]}class nn extends ke{constructor(e){super(),ve(this,e,us,fs,Te,{})}}function cs(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$;return r=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"ascending",width:24,height:24}}),c=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"descending",width:24,height:24}}),{c(){e=S("div"),t=S("button"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),o=j("Ascending"),i=q(),f=S("button"),p=S("div"),O(c.$$.fragment),u=q(),_=S("div"),m=j("Descending"),this.h()},l(E){e=C(E,"DIV",{class:!0});var b=W(e);t=C(b,"BUTTON",{class:!0});var w=W(t);l=C(w,"DIV",{class:!0});var y=W(l);N(r.$$.fragment,y),y.forEach(d),s=H(w),a=C(w,"DIV",{class:!0});var M=W(a);o=Q(M,"Ascending"),M.forEach(d),w.forEach(d),i=H(b),f=C(b,"BUTTON",{class:!0});var J=W(f);p=C(J,"DIV",{class:!0});var F=W(p);N(c.$$.fragment,F),F.forEach(d),u=H(J),_=C(J,"DIV",{class:!0});var G=W(_);m=Q(G,"Descending"),G.forEach(d),J.forEach(d),b.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(l,"active",n[1].find(n[3])),D(a,"class","p-1 hover:scale-[103%]"),D(t,"class","flex items-center"),D(p,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(p,"active",n[1].find(n[5])),D(_,"class","p-1 hover:scale-[103%]"),D(f,"class","flex items-center"),D(e,"class","mt-2 transition-all hover:cursor-pointer")},m(E,b){I(E,e,b),k(e,t),k(t,l),V(r,l,null),k(t,s),k(t,a),k(a,o),k(e,i),k(e,f),k(f,p),V(c,p,null),k(f,u),k(f,_),k(_,m),g=!0,h||($=[ne(t,"click",n[4]),ne(f,"click",n[6])],h=!0)},p(E,[b]){(!g||b&3)&&ae(l,"active",E[1].find(E[3])),(!g||b&3)&&ae(p,"active",E[1].find(E[5]))},i(E){g||(v(r.$$.fragment,E),v(c.$$.fragment,E),g=!0)},o(E){T(r.$$.fragment,E),T(c.$$.fragment,E),g=!1},d(E){E&&d(e),R(r),R(c),h=!1,Me($)}}}function ms(n,e,t){let l,r,s;x(n,We,u=>t(1,l=u)),x(n,pe,u=>t(7,r=u)),x(n,Oe,u=>t(8,s=u));let{type:a}=e;const o=u=>{l.find(_=>_.value===u&&_.attribute===a)?se(We,l=[],l):se(We,l=[{attribute:a,value:u}],l),Ve(s.url,r,l)},i=u=>u.value==="asc"&&u.attribute===a,f=()=>o("asc"),p=u=>u.value==="desc"&&u.attribute===a,c=()=>o("desc");return n.$$set=u=>{"type"in u&&t(0,a=u.type)},[a,l,o,i,f,p,c]}class rn extends ke{constructor(e){super(),ve(this,e,ms,cs,Te,{type:0})}}function ds(n){let e,t,l;return t=new rn({props:{type:"StartTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function _s(n){let e;return{c(){e=j("Start Time")},l(t){e=Q(t,"Start Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ps(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[_s],default:[ds]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function hs(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="StartTime"))},[s,l,r]}class sn extends ke{constructor(e){super(),ve(this,e,hs,ps,Te,{disabled:0})}}function gs(n){let e,t,l;return t=new rn({props:{type:"CloseTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function bs(n){let e;return{c(){e=j("End Time")},l(t){e=Q(t,"End Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function $s(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[bs],default:[gs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function ws(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="CloseTime"))},[s,l,r]}class on extends ke{constructor(e){super(),ve(this,e,ws,$s,Te,{disabled:0})}}function ks(n){let e,t,l,r,s;const a=n[5].default,o=Qe(a,n,n[4],null);return{c(){e=S("button"),o&&o.c(),this.h()},l(i){e=C(i,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"data-testid",n[0]),e.disabled=n[1],D(e,"class",t="bulk-action-button "+n[2]+" "+n[3].class+" svelte-19w6g7u")},m(i,f){I(i,e,f),o&&o.m(e,null),l=!0,r||(s=ne(e,"click",n[6]),r=!0)},p(i,[f]){o&&o.p&&(!l||f&16)&&Ke(o,a,i,i[4],l?Ye(a,i[4],f,null):ze(i[4]),null),(!l||f&1)&&D(e,"data-testid",i[0]),(!l||f&2)&&(e.disabled=i[1]),(!l||f&12&&t!==(t="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&D(e,"class",t)},i(i){l||(v(o,i),l=!0)},o(i){T(o,i),l=!1},d(i){i&&d(e),o&&o.d(i),r=!1,s()}}}function vs(n,e,t){let{$$slots:l={},$$scope:r}=e,{testId:s=null}=e,{disabled:a=!1}=e,{variant:o="primary"}=e;function i(f){Be.call(this,n,f)}return n.$$set=f=>{t(3,e=Xe(Xe({},e),ot(f))),"testId"in f&&t(0,s=f.testId),"disabled"in f&&t(1,a=f.disabled),"variant"in f&&t(2,o=f.variant),"$$scope"in f&&t(4,r=f.$$scope)},e=ot(e),[s,a,o,e,r,l,i]}class an extends ke{constructor(e){super(),ve(this,e,vs,ks,Te,{testId:0,disabled:1,variant:2})}}function sl(n){let e,t;return{c(){e=S("span"),t=j(n[2]),this.h()},l(l){e=C(l,"SPAN",{class:!0});var r=W(e);t=Q(r,n[2]),r.forEach(d),this.h()},h(){D(e,"class","label svelte-l6k8ad"),ae(e,"hoverable",n[6])},m(l,r){I(l,e,r),k(e,t)},p(l,r){r&4&&_e(t,l[2]),r&64&&ae(e,"hoverable",l[6])},d(l){l&&d(e)}}}function Ts(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Es(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ys(n){let e,t,l,r,s,a,o,i,f,p,c,u,_=n[2]&&sl(n),m=[{id:n[1]},{__value:n[7]},{type:"checkbox"},{indeterminate:n[4]},{disabled:n[5]},n[10]],g={};for(let b=0;b{$[y]=null}),de()),~o?(i=$[o],i||(i=$[o]=h[o](b),i.c()),v(i,1),i.m(a,null)):i=null),(!p||w&64)&&ae(a,"hoverable",b[6]),(!p||w&8)&&ae(a,"on-dark",b[3]),(!p||w&64)&&ae(t,"hoverable",b[6]),(!p||w&32)&&ae(t,"disabled",b[5]),(!p||w&8)&&ae(t,"on-dark",b[3]),(!p||w&512&&f!==(f="relative "+b[9].class+" svelte-l6k8ad"))&&D(e,"class",f)},i(b){p||(v(i),p=!0)},o(b){T(i),p=!1},d(b){b&&d(e),_&&_.d(),~o&&$[o].d(),c=!1,Me(u)}}}function Is(n,e,t){const l=["id","checked","label","onDark","indeterminate","disabled","hoverable","value","group"];let r=At(e,l),{id:s=""}=e,{checked:a=!1}=e,{label:o=""}=e,{onDark:i=!1}=e,{indeterminate:f=!1}=e,{disabled:p=!1}=e,{hoverable:c=!1}=e,{value:u=void 0}=e,{group:_=void 0}=e;const m=He(),g=M=>{const{checked:J}=M.currentTarget;_!==void 0&&(J?t(11,_=[..._,u]):t(11,_=_.filter(F=>F!==u))),t(0,a=J),m("change",{checked:M.currentTarget.checked,value:u})};a=_!==void 0?_.includes(u):a;function h(M){Be.call(this,n,M)}function $(M){Be.call(this,n,M)}function E(M){Be.call(this,n,M)}function b(M){Be.call(this,n,M)}function w(M){Be.call(this,n,M)}function y(){a=this.checked,t(0,a)}return n.$$set=M=>{t(9,e=Xe(Xe({},e),ot(M))),t(10,r=At(e,l)),"id"in M&&t(1,s=M.id),"checked"in M&&t(0,a=M.checked),"label"in M&&t(2,o=M.label),"onDark"in M&&t(3,i=M.onDark),"indeterminate"in M&&t(4,f=M.indeterminate),"disabled"in M&&t(5,p=M.disabled),"hoverable"in M&&t(6,c=M.hoverable),"value"in M&&t(7,u=M.value),"group"in M&&t(11,_=M.group)},e=ot(e),[a,s,o,i,f,p,c,u,g,e,r,_,h,$,E,b,w,y]}class fn extends ke{constructor(e){super(),ve(this,e,Is,ys,Te,{id:1,checked:0,label:2,onDark:3,indeterminate:4,disabled:5,hoverable:6,value:7,group:11})}}function Ds(n){let e,t;return e=new Kl({props:{class:"w-full md:table-fixed",updating:n[1],$$slots:{headers:[As],default:[Cs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ss(n){let e,t;return e=new Kl({props:{id:"workflows-table-with-bulk-actions",class:"w-full min-w-[600px] table-fixed",updating:n[1],$$slots:{headers:[Bs],default:[Fs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Ws(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function As(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Fs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function ol(n){let e,t;return e=new fn({props:{id:"select-visible-workflows",onDark:!0,hoverable:!0,checked:n[7],indeterminate:n[5]}}),e.$on("change",n[15]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&128&&(s.checked=l[7]),r&32&&(s.indeterminate=l[5]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Os(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function Ns(n){let e,t,l,r,s,a,o,i,f,p,c,u,_;function m(b,w){return b[3]?Rs:Vs}let g=m(n),h=g(n),$=n[10]&&al(n),E=n[11]&&il(n);return{c(){e=S("th"),h.c(),t=q(),l=S("div"),$&&$.c(),r=q(),E&&E.c(),s=q(),a=S("th"),o=q(),i=S("th"),f=q(),p=S("th"),c=q(),u=S("th"),this.h()},l(b){e=C(b,"TH",{class:!0});var w=W(e);h.l(w),t=H(w),l=C(w,"DIV",{class:!0});var y=W(l);$&&$.l(y),r=H(y),E&&E.l(y),y.forEach(d),w.forEach(d),s=H(b),a=C(b,"TH",{}),W(a).forEach(d),o=H(b),i=C(b,"TH",{class:!0}),W(i).forEach(d),f=H(b),p=C(b,"TH",{class:!0}),W(p).forEach(d),c=H(b),u=C(b,"TH",{class:!0}),W(u).forEach(d),this.h()},h(){D(l,"class","ml-4 inline-flex gap-2"),D(e,"class","w-32 overflow-visible whitespace-nowrap"),D(i,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(u,"class","w-60 max-xl:hidden")},m(b,w){I(b,e,w),h.m(e,null),k(e,t),k(e,l),$&&$.m(l,null),k(l,r),E&&E.m(l,null),I(b,s,w),I(b,a,w),I(b,o,w),I(b,i,w),I(b,f,w),I(b,p,w),I(b,c,w),I(b,u,w),_=!0},p(b,w){g===(g=m(b))&&h?h.p(b,w):(h.d(1),h=g(b),h&&(h.c(),h.m(e,t))),b[10]?$?($.p(b,w),w&1024&&v($,1)):($=al(b),$.c(),v($,1),$.m(l,r)):$&&(me(),T($,1,1,()=>{$=null}),de()),b[11]?E?(E.p(b,w),w&2048&&v(E,1)):(E=il(b),E.c(),v(E,1),E.m(l,null)):E&&(me(),T(E,1,1,()=>{E=null}),de())},i(b){_||(v($),v(E),_=!0)},o(b){T($),T(E),_=!1},d(b){b&&d(e),h.d(),$&&$.d(),E&&E.d(),b&&d(s),b&&d(a),b&&d(o),b&&d(i),b&&d(f),b&&d(p),b&&d(c),b&&d(u)}}}function Vs(n){let e,t,l,r,s,a,o,i,f,p,c,u;return{c(){e=S("span"),t=j(n[2]),l=j(" selected"),r=q(),s=S("span"),a=j("(or "),o=S("button"),i=j("select all "),f=j(n[4]),p=j(")"),this.h()},l(_){e=C(_,"SPAN",{class:!0});var m=W(e);t=Q(m,n[2]),l=Q(m," selected"),m.forEach(d),r=H(_),s=C(_,"SPAN",{});var g=W(s);a=Q(g,"(or "),o=C(g,"BUTTON",{"data-testid":!0,class:!0});var h=W(o);i=Q(h,"select all "),f=Q(h,n[4]),h.forEach(d),p=Q(g,")"),g.forEach(d),this.h()},h(){D(e,"class","font-semibold"),D(o,"data-testid","select-all-workflows"),D(o,"class","cursor-pointer underline")},m(_,m){I(_,e,m),k(e,t),k(e,l),I(_,r,m),I(_,s,m),k(s,a),k(s,o),k(o,i),k(o,f),k(s,p),c||(u=ne(o,"click",n[14]),c=!0)},p(_,m){m&4&&_e(t,_[2]),m&16&&_e(f,_[4])},d(_){_&&d(e),_&&d(r),_&&d(s),c=!1,u()}}}function Rs(n){let e,t,l,r;return{c(){e=S("span"),t=j("All "),l=j(n[4]),r=j(" selected"),this.h()},l(s){e=C(s,"SPAN",{class:!0});var a=W(e);t=Q(a,"All "),l=Q(a,n[4]),r=Q(a," selected"),a.forEach(d),this.h()},h(){D(e,"class","font-semibold")},m(s,a){I(s,e,a),k(e,t),k(e,l),k(e,r)},p(s,a){a&16&&_e(l,s[4])},d(s){s&&d(e)}}}function al(n){let e,t;return e=new an({props:{testId:"bulk-cancel-button",disabled:n[8],$$slots:{default:[Ls]},$$scope:{ctx:n}}}),e.$on("click",n[13]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ls(n){let e;return{c(){e=j("Request Cancellation")},l(t){e=Q(t,"Request Cancellation")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function il(n){let e,t;return e=new an({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:n[8],$$slots:{default:[Ps]},$$scope:{ctx:n}}}),e.$on("click",n[12]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ps(n){let e;return{c(){e=j("Terminate")},l(t){e=Q(t,"Terminate")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Ms(n){let e,t,l,r,s,a,o=!n[1]&&ol(n);const i=[Ns,Os],f=[];function p(c,u){return c[6]?0:1}return l=p(n),r=f[l]=i[l](n),{c(){e=S("th"),o&&o.c(),t=q(),r.c(),s=Se(),this.h()},l(c){e=C(c,"TH",{style:!0,class:!0});var u=W(e);o&&o.l(u),u.forEach(d),t=H(c),r.l(c),s=Se(),this.h()},h(){Ll(e,"padding","0"),D(e,"class","w-12 h-10")},m(c,u){I(c,e,u),o&&o.m(e,null),I(c,t,u),f[l].m(c,u),I(c,s,u),a=!0},p(c,u){c[1]?o&&(me(),T(o,1,1,()=>{o=null}),de()):o?(o.p(c,u),u&2&&v(o,1)):(o=ol(c),o.c(),v(o,1),o.m(e,null));let _=l;l=p(c),l===_?f[l].p(c,u):(me(),T(f[_],1,1,()=>{f[_]=null}),de(),r=f[l],r?r.p(c,u):(r=f[l]=i[l](c),r.c()),v(r,1),r.m(s.parentNode,s))},i(c){a||(v(o),v(r),a=!0)},o(c){T(o),T(r),a=!1},d(c){c&&d(e),o&&o.d(),c&&d(t),f[l].d(c),c&&d(s)}}}function Bs(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ms]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Us(n){let e,t,l,r;const s=[Ss,Ds],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function qs(n,e,t){let l,r,s,a,o,i,f,p,c,u,_;x(n,Oe,P=>t(19,p=P)),x(n,Nn,P=>t(21,u=P)),x(n,Hl,P=>t(22,_=P));let{$$slots:m={},$$scope:g}=e;const h=He();let{bulkActionsEnabled:$=!1}=e,{updating:E=!1}=e,{visibleWorkflows:b}=e,{selectedWorkflowsCount:w}=e,{allSelected:y}=e,{pageSelected:M}=e,{filteredWorkflowCount:J}=e;const F=()=>{h("terminateWorkflows")},G=()=>{h("cancelWorkflows")},X=P=>{(P instanceof MouseEvent||P instanceof KeyboardEvent&&P.key==="Enter")&&h("toggleAll",{checked:!0})},U=P=>{const{checked:A}=P.detail;A?h("togglePage",{checked:!0,visibleWorkflows:b}):h("toggleAll",{checked:!1})};let B=Un();return x(n,B,P=>t(20,c=P)),n.$$set=P=>{"bulkActionsEnabled"in P&&t(0,$=P.bulkActionsEnabled),"updating"in P&&t(1,E=P.updating),"visibleWorkflows"in P&&t(17,b=P.visibleWorkflows),"selectedWorkflowsCount"in P&&t(2,w=P.selectedWorkflowsCount),"allSelected"in P&&t(3,y=P.allSelected),"pageSelected"in P&&t(18,M=P.pageSelected),"filteredWorkflowCount"in P&&t(4,J=P.filteredWorkflowCount),"$$scope"in P&&t(24,g=P.$$scope)},n.$$.update=()=>{n.$$.dirty&524288&&t(11,l=wn(p.data.settings)),n.$$.dirty&524288&&t(10,r=kn(p.data.settings)),n.$$.dirty&6291456&&t(9,s=(_==null?void 0:_.totalCount)>=1e6||!u),n.$$.dirty&1572864&&t(8,a=c.namespaceWriteDisabled(p.params.namespace)),n.$$.dirty&393228&&t(7,o=y||M||w===b.length&&w!==0),n.$$.dirty&12&&t(6,i=w>0||y),n.$$.dirty&131076&&t(5,f=w>0&&wbe(t,"checked",s)),t.$on("change",n[9]),{c(){e=S("td"),O(t.$$.fragment),this.h()},l(o){e=C(o,"TD",{style:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){Ll(e,"padding","0")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};i&16&&(f.disabled=o[4]),!l&&i&1&&(l=!0,f.checked=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function js(n){let e,t,l,r,s,a,o=n[2].id+"",i,f,p,c,u,_=Re(n[2].startTime,n[3])+"",m,g,h,$,E,b,w,y=n[2].name+"",M,J,F,G,X,U,B=Re(n[2].endTime,n[3])+"",P,A,L,ee,re=Re(n[2].startTime,n[3])+"",ie,fe,ue,we,ye=Re(n[2].endTime,n[3])+"",Ie,Ee,Ae,Z,te=n[1]&&fl(n);return l=new Yl({props:{status:n[2].status,delay:Lt(n[2].startTime)}}),p=new Vt({props:{show:n[5],content:n[2].id,onFilter:n[12],filtered:Boolean(n[7].find(n[13]))}}),G=new Vt({props:{show:n[5],content:n[2].name,onFilter:n[19],filtered:Boolean(n[7].find(n[20]))}}),{c(){te&&te.c(),e=q(),t=S("td"),O(l.$$.fragment),r=q(),s=S("td"),a=S("span"),i=j(o),f=q(),O(p.$$.fragment),c=q(),u=S("p"),m=j(_),g=q(),h=S("td"),$=S("h3"),E=j("Workflow Name:"),b=q(),w=S("button"),M=j(y),F=q(),O(G.$$.fragment),X=q(),U=S("p"),P=j(B),A=q(),L=S("td"),ee=S("p"),ie=j(re),fe=q(),ue=S("td"),we=S("p"),Ie=j(ye),this.h()},l(z){te&&te.l(z),e=H(z),t=C(z,"TD",{});var le=W(t);N(l.$$.fragment,le),le.forEach(d),r=H(z),s=C(z,"TD",{class:!0});var Y=W(s);a=C(Y,"SPAN",{class:!0});var oe=W(a);i=Q(oe,o),oe.forEach(d),f=H(Y),N(p.$$.fragment,Y),c=H(Y),u=C(Y,"P",{class:!0});var ce=W(u);m=Q(ce,_),ce.forEach(d),Y.forEach(d),g=H(z),h=C(z,"TD",{class:!0});var K=W(h);$=C(K,"H3",{class:!0});var De=W($);E=Q(De,"Workflow Name:"),De.forEach(d),b=H(K),w=C(K,"BUTTON",{class:!0,"aria-label":!0});var Fe=W(w);M=Q(Fe,y),Fe.forEach(d),F=H(K),N(G.$$.fragment,K),X=H(K),U=C(K,"P",{class:!0});var tt=W(U);P=Q(tt,B),tt.forEach(d),K.forEach(d),A=H(z),L=C(z,"TD",{class:!0});var It=W(L);ee=C(It,"P",{});var Dt=W(ee);ie=Q(Dt,re),Dt.forEach(d),It.forEach(d),fe=H(z),ue=C(z,"TD",{class:!0});var St=W(ue);we=C(St,"P",{});var Ct=W(we);Ie=Q(Ct,ye),Ct.forEach(d),St.forEach(d),this.h()},h(){D(a,"class","table-link svelte-1hpdy04"),D(u,"class","inline-time-cell svelte-1hpdy04"),D(s,"class","relative break-words pr-4"),D($,"class","md:hidden"),D(w,"class","table-link svelte-1hpdy04"),D(w,"aria-label",J="filter by "+n[2].name+" type"),D(U,"class","inline-time-cell svelte-1hpdy04"),D(h,"class","relative truncate"),D(L,"class","time-cell svelte-1hpdy04"),D(ue,"class","time-cell svelte-1hpdy04")},m(z,le){te&&te.m(z,le),I(z,e,le),I(z,t,le),V(l,t,null),I(z,r,le),I(z,s,le),k(s,a),k(a,i),k(s,f),V(p,s,null),k(s,c),k(s,u),k(u,m),I(z,g,le),I(z,h,le),k(h,$),k($,E),k(h,b),k(h,w),k(w,M),k(h,F),V(G,h,null),k(h,X),k(h,U),k(U,P),I(z,A,le),I(z,L,le),k(L,ee),k(ee,ie),I(z,fe,le),I(z,ue,le),k(ue,we),k(we,Ie),Ee=!0,Ae||(Z=[ne(s,"mouseover",n[14]),ne(s,"focus",n[15]),ne(s,"mouseleave",n[16]),ne(s,"blur",n[17]),ne(w,"click",Ue(Le(n[18]))),ne(h,"mouseover",n[21]),ne(h,"focus",n[22]),ne(h,"mouseleave",n[23]),ne(h,"blur",n[24])],Ae=!0)},p(z,le){z[1]?te?(te.p(z,le),le&2&&v(te,1)):(te=fl(z),te.c(),v(te,1),te.m(e.parentNode,e)):te&&(me(),T(te,1,1,()=>{te=null}),de());const Y={};le&4&&(Y.status=z[2].status),le&4&&(Y.delay=Lt(z[2].startTime)),l.$set(Y),(!Ee||le&4)&&o!==(o=z[2].id+"")&&_e(i,o);const oe={};le&32&&(oe.show=z[5]),le&4&&(oe.content=z[2].id),le&4&&(oe.onFilter=z[12]),le&132&&(oe.filtered=Boolean(z[7].find(z[13]))),p.$set(oe),(!Ee||le&12)&&_!==(_=Re(z[2].startTime,z[3])+"")&&_e(m,_),(!Ee||le&4)&&y!==(y=z[2].name+"")&&_e(M,y),(!Ee||le&4&&J!==(J="filter by "+z[2].name+" type"))&&D(w,"aria-label",J);const ce={};le&32&&(ce.show=z[5]),le&4&&(ce.content=z[2].name),le&4&&(ce.onFilter=z[19]),le&132&&(ce.filtered=Boolean(z[7].find(z[20]))),G.$set(ce),(!Ee||le&12)&&B!==(B=Re(z[2].endTime,z[3])+"")&&_e(P,B),(!Ee||le&12)&&re!==(re=Re(z[2].startTime,z[3])+"")&&_e(ie,re),(!Ee||le&12)&&ye!==(ye=Re(z[2].endTime,z[3])+"")&&_e(Ie,ye)},i(z){Ee||(v(te),v(l.$$.fragment,z),v(p.$$.fragment,z),v(G.$$.fragment,z),Ee=!0)},o(z){T(te),T(l.$$.fragment,z),T(p.$$.fragment,z),T(G.$$.fragment,z),Ee=!1},d(z){te&&te.d(z),z&&d(e),z&&d(t),R(l),z&&d(r),z&&d(s),R(p),z&&d(g),z&&d(h),R(G),z&&d(A),z&&d(L),z&&d(fe),z&&d(ue),Ae=!1,Me(Z)}}}function Qs(n){let e,t;return e=new Hn({props:{href:n[6],class:"workflow-summary-row",$$slots:{default:[js]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&64&&(s.href=l[6]),r&268435647&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ks(n,e,t){let l,r,s,a;x(n,We,L=>t(25,r=L)),x(n,pe,L=>t(7,s=L)),x(n,Oe,L=>t(26,a=L));const o=He();let{bulkActionsEnabled:i=!1}=e,{selected:f=!1}=e,{namespace:p}=e,{workflow:c}=e,{timeFormat:u}=e,{checkboxDisabled:_}=e,m=!1;const g=(L,ee)=>{const re=s.find(fe=>fe.attribute===L),ie=()=>s.filter(fe=>fe.attribute!==L);if(re)se(pe,s=[...ie()],s);else{const fe={attribute:L,value:ee,conditional:"=",operator:"",parenthesis:""};se(pe,s=[...ie(),fe],s)}Ve(a.url,s,r)},h=L=>{o("toggleWorkflow",{workflowRunId:c.runId,checked:L.detail.checked})};function $(L){f=L,t(0,f)}const E=()=>g("WorkflowId",c.id),b=L=>L.attribute==="WorkflowId"&&L.value===c.id,w=()=>t(5,m=!0),y=()=>t(5,m=!0),M=()=>t(5,m=!1),J=()=>t(5,m=!1),F=()=>g("WorkflowType",c.name),G=()=>g("WorkflowType",c.name),X=L=>L.attribute==="WorkflowType"&&L.value===c.name,U=()=>t(5,m=!0),B=()=>t(5,m=!0),P=()=>t(5,m=!1),A=()=>t(5,m=!1);return n.$$set=L=>{"bulkActionsEnabled"in L&&t(1,i=L.bulkActionsEnabled),"selected"in L&&t(0,f=L.selected),"namespace"in L&&t(10,p=L.namespace),"workflow"in L&&t(2,c=L.workflow),"timeFormat"in L&&t(3,u=L.timeFormat),"checkboxDisabled"in L&&t(4,_=L.checkboxDisabled)},n.$$.update=()=>{n.$$.dirty&1028&&t(6,l=qn({namespace:p,workflow:c.id,run:c.runId}))},[f,i,c,u,_,m,l,s,g,h,p,$,E,b,w,y,M,J,F,G,X,U,B,P,A]}class zs extends ke{constructor(e){super(),ve(this,e,Ks,Qs,Te,{bulkActionsEnabled:1,selected:0,namespace:10,workflow:2,timeFormat:3,checkboxDisabled:4})}}function Ys(n){let e;return{c(){e=j("Search")},l(t){e=Q(t,"Search")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Gs(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(g){n[5](g)}let m={id:"manual-search",type:"search",placeholder:"Enter a query",icon:"search",class:"w-3/4",clearable:!0,unroundRight:!0};return n[0]!==void 0&&(m.value=n[0]),r=new Ne({props:m}),he.push(()=>be(r,"value",_)),r.$on("clear",n[2]),o=new bt({props:{testId:"manual-search-button",variant:"primary",class:"h-10",unroundLeft:!0,type:"submit",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("div"),l=S("form"),O(r.$$.fragment),a=q(),O(o.$$.fragment),this.h()},l(g){e=C(g,"DIV",{class:!0});var h=W(e);t=C(h,"DIV",{class:!0});var $=W(t);l=C($,"FORM",{class:!0,role:!0});var E=W(l);N(r.$$.fragment,E),a=H(E),N(o.$$.fragment,E),E.forEach(d),$.forEach(d),h.forEach(d),this.h()},h(){D(l,"class","relative flex h-12 w-full items-center gap-0"),D(l,"role","search"),D(t,"class","flex h-12 w-full items-center gap-0"),D(e,"class","flex-items-center flex grow gap-4")},m(g,h){I(g,e,h),k(e,t),k(t,l),V(r,l,null),k(l,a),V(o,l,null),p=!0,c||(u=ne(l,"submit",Le(n[1])),c=!0)},p(g,[h]){const $={};!s&&h&1&&(s=!0,$.value=g[0],$e(()=>s=!1)),r.$set($);const E={};h&2048&&(E.$$scope={dirty:h,ctx:g}),o.$set(E)},i(g){p||(v(r.$$.fragment,g),v(o.$$.fragment,g),i||Ft(()=>{i=Ot(l,jn,{x:-100,duration:150}),i.start()}),f||Ft(()=>{f=Ot(t,Qn,{}),f.start()}),p=!0)},o(g){T(r.$$.fragment,g),T(o.$$.fragment,g),p=!1},d(g){g&&d(e),R(r),R(o),c=!1,u()}}}function Js(n,e,t){let l,r,s,a,o,i;x(n,Oe,m=>t(4,r=m)),x(n,Je,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Ze,m=>t(8,o=m)),x(n,We,m=>t(9,i=m));let f="";function p(m){t(0,f=m)}const c=()=>{if(!f)se(pe,a=[],a),se(We,i=[],i),se(Ze,o="",o);else try{se(pe,a=en(f),a)}catch{}f&&f===l?se(Je,s=Date.now(),s):Ge({url:r.url,parameter:"query",value:f,allowEmpty:!0})};function u(){c()}function _(m){f=m,t(0,f)}return n.$$.update=()=>{n.$$.dirty&16&&t(3,l=r.url.searchParams.get("query")),n.$$.dirty&8&&p(l)},[f,c,u,l,r,_]}class Zs extends ke{constructor(e){super(),ve(this,e,Js,Gs,Te,{})}}function ul(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function cl(n,e,t){const l=n.slice();return l[13]=e[t],l}function ml(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=S("p"),l=j(t),this.h()},l(r){e=C(r,"P",{class:!0});var s=W(e);l=Q(s,t),s.forEach(d),this.h()},h(){D(e,"class","cell svelte-1we9vff")},m(r,s){I(r,e,s),k(e,l)},p:ge,d(r){r&&d(e)}}}function dl(n,e){let t,l=(e[10]||"")+"",r,s,a,o;function i(){return e[6](e[10])}return{key:n,first:null,c(){t=S("button"),r=j(l),s=q(),this.h()},l(f){t=C(f,"BUTTON",{class:!0});var p=W(t);r=Q(p,l),s=H(p),p.forEach(d),this.h()},h(){D(t,"class","cell svelte-1we9vff"),ae(t,"highlight",e[9]&&e[10]),ae(t,"disabled",!e[9]),ae(t,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=t},m(f,p){I(f,t,p),k(t,r),k(t,s),a||(o=ne(t,"click",function(){bn(e[9]&&e[10]?i:ge)&&(e[9]&&e[10]?i:ge).apply(this,arguments)}),a=!0)},p(f,p){e=f,p&8&&l!==(l=(e[10]||"")+"")&&_e(r,l),p&8&&ae(t,"highlight",e[9]&&e[10]),p&8&&ae(t,"disabled",!e[9]),p&15&&ae(t,"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&&d(t),a=!1,o()}}}function Xs(n){let e,t,l,r,s=[],a=new Map,o=Ut,i=[];for(let c=0;cc[12];for(let c=0;c!0}=e,i=[];const f=u=>{l("datechange",new Date(a,s,u))},p=(u,_,m)=>m?o(new Date(u,_,m)):!0,c=u=>f(u);return n.$$set=u=>{"date"in u&&t(0,r=u.date),"month"in u&&t(1,s=u.month),"year"in u&&t(2,a=u.year),"isAllowed"in u&&t(5,o=u.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,i=Yn(s,a).map(u=>({value:u,allowed:p(a,s,u)})))},[r,s,a,i,f,o,c]}class eo extends ke{constructor(e){super(),ve(this,e,xs,Xs,Te,{date:0,month:1,year:2,isAllowed:5})}}function _l(n){var B;let e,t,l,r,s,a,o,i=(((B=qt(n[2]))==null?void 0:B.label)??"")+"",f,p,c,u,_,m,g,h,$,E,b,w,y,M,J,F,G,X,U;return s=new Ce({props:{name:"chevron-left"}}),g=new Ce({props:{name:"chevron-right"}}),$=new eo({props:{month:n[2],year:n[3],date:n[0],isAllowed:n[1]}}),$.$on("datechange",n[9]),{c(){e=S("div"),t=S("div"),l=S("div"),r=S("button"),O(s.$$.fragment),a=q(),o=S("div"),f=j(i),p=q(),c=j(n[3]),u=q(),_=S("div"),m=S("button"),O(g.$$.fragment),h=q(),O($.$$.fragment),E=q(),b=S("div"),w=S("button"),y=j("Today"),M=q(),J=S("button"),F=j("Close"),this.h()},l(P){e=C(P,"DIV",{class:!0});var A=W(e);t=C(A,"DIV",{class:!0});var L=W(t);l=C(L,"DIV",{class:!0});var ee=W(l);r=C(ee,"BUTTON",{});var re=W(r);N(s.$$.fragment,re),re.forEach(d),ee.forEach(d),a=H(L),o=C(L,"DIV",{class:!0});var ie=W(o);f=Q(ie,i),p=H(ie),c=Q(ie,n[3]),ie.forEach(d),u=H(L),_=C(L,"DIV",{class:!0});var fe=W(_);m=C(fe,"BUTTON",{});var ue=W(m);N(g.$$.fragment,ue),ue.forEach(d),fe.forEach(d),L.forEach(d),h=H(A),N($.$$.fragment,A),E=H(A),b=C(A,"DIV",{class:!0});var we=W(b);w=C(we,"BUTTON",{class:!0});var ye=W(w);y=Q(ye,"Today"),ye.forEach(d),M=H(we),J=C(we,"BUTTON",{class:!0});var Ie=W(J);F=Q(Ie,"Close"),Ie.forEach(d),we.forEach(d),A.forEach(d),this.h()},h(){D(l,"class","flex items-center justify-center"),D(o,"class","flex items-center justify-center"),D(_,"class","flex items-center justify-center"),D(t,"class","mx-3 my-2 flex items-center justify-around"),D(w,"class","cursor-pointer text-[12px]"),D(J,"class","cursor-pointer text-[12px]"),D(b,"class","my-1 flex justify-between px-2"),D(e,"class","absolute top-12 z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(P,A){I(P,e,A),k(e,t),k(t,l),k(l,r),V(s,r,null),k(t,a),k(t,o),k(o,f),k(o,p),k(o,c),k(t,u),k(t,_),k(_,m),V(g,m,null),k(e,h),V($,e,null),k(e,E),k(e,b),k(b,w),k(w,y),k(b,M),k(b,J),k(J,F),G=!0,X||(U=[ne(r,"click",n[8]),ne(m,"click",n[7]),ne(w,"click",n[10]),ne(J,"click",n[11])],X=!0)},p(P,A){var ee;(!G||A&4)&&i!==(i=(((ee=qt(P[2]))==null?void 0:ee.label)??"")+"")&&_e(f,i),(!G||A&8)&&_e(c,P[3]);const L={};A&4&&(L.month=P[2]),A&8&&(L.year=P[3]),A&1&&(L.date=P[0]),A&2&&(L.isAllowed=P[1]),$.$set(L)},i(P){G||(v(s.$$.fragment,P),v(g.$$.fragment,P),v($.$$.fragment,P),G=!0)},o(P){T(s.$$.fragment,P),T(g.$$.fragment,P),T($.$$.fragment,P),G=!1},d(P){P&&d(e),R(s),R(g),R($),X=!1,Me(U)}}}function to(n){let e,t,l,r,s,a;t=new Ne({props:{id:"datepicker",icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0}}),t.$on("focus",n[5]),t.$on("input",n[6]);let o=n[4]&&_l(n);return{c(){e=S("div"),O(t.$$.fragment),l=q(),o&&o.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var f=W(e);N(t.$$.fragment,f),l=H(f),o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"class","relative")},m(i,f){I(i,e,f),V(t,e,null),k(e,l),o&&o.m(e,null),r=!0,s||(a=[Pl(Gl.call(null,e)),ne(e,"click-outside",n[12])],s=!0)},p(i,[f]){const p={};f&1&&(p.value=i[0].toDateString()),t.$set(p),i[4]?o?(o.p(i,f),f&16&&v(o,1)):(o=_l(i),o.c(),v(o,1),o.m(e,null)):o&&(me(),T(o,1,1,()=>{o=null}),de())},i(i){r||(v(t.$$.fragment,i),v(o),r=!0)},o(i){T(t.$$.fragment,i),T(o),r=!1},d(i){i&&d(e),R(t),o&&o.d(),s=!1,Me(a)}}}function lo(n,e,t){const l=He();let{isAllowed:r=()=>!0}=e,{selected:s=new Date}=e,a,o,i=!1;const f=()=>{t(4,i=!0)},p=$=>{const b=$.target.value;if(b.length===8){const w=b==null?void 0:b.split("/"),M=2e3+parseInt(w[2]),J=parseInt(w[0])-1,F=parseInt(w[1]),G=new Date(M,J,F);l("datechange",G)}},c=()=>{if(a===11){t(2,a=0),t(3,o=o+1);return}t(2,a=a+1)},u=()=>{if(a===0){t(2,a=11),t(3,o-=1);return}t(2,a-=1)},_=$=>{t(4,i=!1),l("datechange",$.detail)},m=()=>t(0,s=new Date),g=()=>t(4,i=!1),h=()=>t(4,i=!1);return n.$$set=$=>{"isAllowed"in $&&t(1,r=$.isAllowed),"selected"in $&&t(0,s=$.selected)},n.$$.update=()=>{n.$$.dirty&1&&(t(2,a=s.getMonth()),t(3,o=s.getFullYear()))},[s,r,a,o,i,f,p,c,u,_,m,g,h]}class pl extends ke{constructor(e){super(),ve(this,e,lo,to,Te,{isAllowed:1,selected:0})}}function no(n){let e;return{c(){e=j("AM")},l(t){e=Q(t,"AM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ro(n){let e;return{c(){e=j("PM")},l(t){e=Q(t,"PM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function so(n){let e,t,l,r;return e=new Ht({props:{active:n[3]==="AM",$$slots:{default:[no]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new Ht({props:{active:n[3]==="PM",$$slots:{default:[ro]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){O(e.$$.fragment),t=q(),O(l.$$.fragment)},l(s){N(e.$$.fragment,s),t=H(s),N(l.$$.fragment,s)},m(s,a){V(e,s,a),I(s,t,a),V(l,s,a),r=!0},p(s,a){const o={};a&8&&(o.active=s[3]==="AM"),a&512&&(o.$$scope={dirty:a,ctx:s}),e.$set(o);const i={};a&8&&(i.active=s[3]==="PM"),a&512&&(i.$$scope={dirty:a,ctx:s}),l.$set(i)},i(s){r||(v(e.$$.fragment,s),v(l.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(l.$$.fragment,s),r=!1},d(s){R(e,s),s&&d(t),R(l,s)}}}function oo(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(b){n[4](b)}let m={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:Boolean(parseInt(n[0])>12)};n[0]!==void 0&&(m.value=n[0]),t=new Ne({props:m}),he.push(()=>be(t,"value",_));function g(b){n[5](b)}let h={id:"minute",required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(n[0])>59)};n[1]!==void 0&&(h.value=n[1]),s=new Ne({props:h}),he.push(()=>be(s,"value",g));function $(b){n[6](b)}let E={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(n[0])>59)};return n[2]!==void 0&&(E.value=n[2]),i=new Ne({props:E}),he.push(()=>be(i,"value",$)),c=new Gn({props:{$$slots:{default:[so]},$$scope:{ctx:n}}}),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),this.h()},l(b){e=C(b,"DIV",{class:!0});var w=W(e);N(t.$$.fragment,w),r=H(w),N(s.$$.fragment,w),o=H(w),N(i.$$.fragment,w),p=H(w),N(c.$$.fragment,w),w.forEach(d),this.h()},h(){D(e,"class","flex gap-2")},m(b,w){I(b,e,w),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),u=!0},p(b,[w]){const y={};w&1&&(y.error=Boolean(parseInt(b[0])>12)),!l&&w&1&&(l=!0,y.value=b[0],$e(()=>l=!1)),t.$set(y);const M={};w&1&&(M.error=Boolean(parseInt(b[0])>59)),!a&&w&2&&(a=!0,M.value=b[1],$e(()=>a=!1)),s.$set(M);const J={};w&1&&(J.error=Boolean(parseInt(b[0])>59)),!f&&w&4&&(f=!0,J.value=b[2],$e(()=>f=!1)),i.$set(J);const F={};w&520&&(F.$$scope={dirty:w,ctx:b}),c.$set(F)},i(b){u||(v(t.$$.fragment,b),v(s.$$.fragment,b),v(i.$$.fragment,b),v(c.$$.fragment,b),u=!0)},o(b){T(t.$$.fragment,b),T(s.$$.fragment,b),T(i.$$.fragment,b),T(c.$$.fragment,b),u=!1},d(b){b&&d(e),R(t),R(s),R(i),R(c)}}}function ao(n,e,t){let{hour:l=""}=e,{minute:r=""}=e,{second:s=""}=e,{half:a="AM"}=e;function o(u){l=u,t(0,l)}function i(u){r=u,t(1,r)}function f(u){s=u,t(2,s)}const p=()=>t(3,a="AM"),c=()=>t(3,a="PM");return n.$$set=u=>{"hour"in u&&t(0,l=u.hour),"minute"in u&&t(1,r=u.minute),"second"in u&&t(2,s=u.second),"half"in u&&t(3,a=u.half)},[l,r,s,a,o,i,f,p,c]}class hl extends ke{constructor(e){super(),ve(this,e,ao,oo,Te,{hour:0,minute:1,second:2,half:3})}}function gl(n,e,t){const l=n.slice();return l[46]=e[t],l}function io(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$,E,b,w,y,M;r=new gt({props:{value:"All Time",$$slots:{default:[uo]},$$scope:{ctx:n}}}),o=new gt({props:{value:"Custom",$$slots:{default:[co]},$$scope:{ctx:n}}});let J=Pt,F=[];for(let B=0;BT(F[B],1,1,()=>{F[B]=null});let X=n[3]==="StartTime"&&$l(),U=n[3]==="CloseTime"&&wl();return{c(){e=S("div"),t=S("div"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),O(o.$$.fragment),i=q();for(let B=0;Bbe(t,"value",$)),t.$on("input",n[8]);function b(U){n[10](U)}let w={icon:"search",type:"search",id:"workflow-type-filter",placeholder:"Workflow Type"};n[3].workflowType!==void 0&&(w.value=n[3].workflowType),s=new Ne({props:w}),he.push(()=>be(s,"value",b)),s.$on("input",n[8]);function y(U){n[11](U)}let M={id:"time-range-filter",label:"Time Range",$$slots:{default:[dr]},$$scope:{ctx:n}};n[3].timeRange!==void 0&&(M.value=n[3].timeRange),i=new _t({props:M}),he.push(()=>be(i,"value",y)),i.$on("change",n[8]);function J(U){n[12](U)}let F={id:"execution-status-filter",label:"Workflow Status",$$slots:{default:[pr]},$$scope:{ctx:n}};n[3].executionStatus!==void 0&&(F.value=n[3].executionStatus),c=new _t({props:F}),he.push(()=>be(c,"value",J)),c.$on("change",n[8]);function G(U){n[13](U)}let X={id:"filter-by-relative-time",label:"Time Format",$$slots:{default:[$r]},$$scope:{ctx:n}};return n[4]!==void 0&&(X.value=n[4]),m=new _t({props:X}),he.push(()=>be(m,"value",G)),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),_=q(),O(m.$$.fragment),this.h()},l(U){e=C(U,"DIV",{role:!0,class:!0});var B=W(e);N(t.$$.fragment,B),r=H(B),N(s.$$.fragment,B),o=H(B),N(i.$$.fragment,B),p=H(B),N(c.$$.fragment,B),_=H(B),N(m.$$.fragment,B),B.forEach(d),this.h()},h(){D(e,"role","search"),D(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(U,B){I(U,e,B),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),k(e,_),V(m,e,null),h=!0},p(U,B){const P={};!l&&B&8&&(l=!0,P.value=U[3].workflowId,$e(()=>l=!1)),t.$set(P);const A={};!a&&B&8&&(a=!0,A.value=U[3].workflowType,$e(()=>a=!1)),s.$set(A);const L={};B&4194312&&(L.$$scope={dirty:B,ctx:U}),!f&&B&8&&(f=!0,L.value=U[3].timeRange,$e(()=>f=!1)),i.$set(L);const ee={};B&4194304&&(ee.$$scope={dirty:B,ctx:U}),!u&&B&8&&(u=!0,ee.value=U[3].executionStatus,$e(()=>u=!1)),c.$set(ee);const re={};B&4194304&&(re.$$scope={dirty:B,ctx:U}),!g&&B&16&&(g=!0,re.value=U[4],$e(()=>g=!1)),m.$set(re)},i(U){h||(v(t.$$.fragment,U),v(s.$$.fragment,U),v(i.$$.fragment,U),v(c.$$.fragment,U),v(m.$$.fragment,U),h=!0)},o(U){T(t.$$.fragment,U),T(s.$$.fragment,U),T(i.$$.fragment,U),T(c.$$.fragment,U),T(m.$$.fragment,U),h=!1},d(U){U&&d(e),R(t),R(s),R(i),R(c),R(m)}}}function fr(n){let e,t;return e=new Tn({props:{icon:!0,id:"advanced-search",placeholder:"Query…",value:n[1]}}),e.$on("submit",n[7]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.value=l[1]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ur(n){let e;return{c(){e=j("All")},l(t){e=Q(t,"All")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Kt(n){let e,t;return e=new qe({props:{value:n[3].timeRange,$$slots:{default:[cr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8&&(s.value=l[3].timeRange),r&4194312&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function cr(n){let e=n[3].timeRange+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p(l,r){r&8&&e!==(e=l[3].timeRange+"")&&_e(t,e)},d(l){l&&d(t)}}}function mr(n){let e=n[17]+"",t;return{c(){t=j(e)},l(l){t=Q(l,e)},m(l,r){I(l,t,r)},p:ge,d(l){l&&d(t)}}}function zt(n){let e,t;return e=new qe({props:{value:n[17],$$slots:{default:[mr]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&4194304&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function dr(n){let e,t,l=n[3].timeRange&&!lt.includes(n[3].timeRange),r,s,a;e=new qe({props:{value:null,$$slots:{default:[ur]},$$scope:{ctx:n}}});let o=l&&Kt(n),i=lt,f=[];for(let c=0;cT(f[c],1,1,()=>{f[c]=null});return{c(){O(e.$$.fragment),t=q(),o&&o.c(),r=q();for(let c=0;c{o=null}),de()),u&0){i=lt;let m;for(m=0;mo[16];for(let o=0;o{c[g]=null}),de(),s=c[r],s?s.p(_,m):(s=c[r]=p[r](_),s.c()),v(s,1),s.m(e,null))},i(_){a||(v(s),a=!0)},o(_){T(s),a=!1},d(_){_&&d(e),f.d(),c[r].d()}}}function kr(n,e,t){let l,r,s,a;x(n,Oe,b=>t(2,s=b)),x(n,Pe,b=>t(4,a=b));const o=He();let{searchType:i}=e;const f=Mt({timeRange:"All"}),p={All:null,Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},c=b=>()=>{t(0,i=b),Ge({parameter:"search",value:i,url:s.url})},u=b=>{o("search");const w=new FormData(b.target);t(1,l=String(w.get("query"))),t(3,r=Nt(l)),Ge({url:s.url,parameter:"query",value:l})},_=Ql(()=>{o("search"),t(1,l=Mt(r)),Ge({url:s.url,parameter:"query",value:l,allowEmpty:!0})},300);function m(b){n.$$.not_equal(r.workflowId,b)&&(r.workflowId=b,t(3,r),t(1,l),t(2,s))}function g(b){n.$$.not_equal(r.workflowType,b)&&(r.workflowType=b,t(3,r),t(1,l),t(2,s))}function h(b){n.$$.not_equal(r.timeRange,b)&&(r.timeRange=b,t(3,r),t(1,l),t(2,s))}function $(b){n.$$.not_equal(r.executionStatus,b)&&(r.executionStatus=b,t(3,r),t(1,l),t(2,s))}function E(b){a=b,Pe.set(a)}return n.$$set=b=>{"searchType"in b&&t(0,i=b.searchType)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=s.url.searchParams.get("query")),n.$$.dirty&2&&t(3,r=Nt(l??f))},[i,l,s,r,a,p,c,u,_,m,g,h,$,E]}class vr extends ke{constructor(e){super(),ve(this,e,kr,wr,Te,{searchType:0})}}const Tr=n=>Vn(n)?n==="basic"||n==="advanced":!1,Er=n=>{const e=n.searchParams.get("search");return Tr(e)?e:(n.searchParams.set("search","basic"),"basic")};function Gt(n,e,t){const l=n.slice();return l[14]=e[t],l}function Jt(n){let e,t,l,r,s,a,o,i,f,p;const c=[Ir,yr],u=[];function _($,E){return $[5]?0:1}l=_(n),r=u[l]=c[l](n);const m=[Sr,Dr],g=[];function h($,E){return $[5]?0:1}return o=h(n),i=g[o]=m[o](n),{c(){e=S("tr"),t=S("td"),r.c(),s=q(),a=S("td"),i.c(),f=q(),this.h()},l($){e=C($,"TR",{});var E=W(e);t=C(E,"TD",{colspan:!0,class:!0});var b=W(t);r.l(b),b.forEach(d),s=H(E),a=C(E,"TD",{colspan:!0,class:!0});var w=W(a);i.l(w),w.forEach(d),f=H(E),E.forEach(d),this.h()},h(){D(t,"colspan","5"),D(t,"class","xl:hidden"),D(a,"colspan","7"),D(a,"class","hidden xl:table-cell")},m($,E){I($,e,E),k(e,t),u[l].m(t,null),k(e,s),k(e,a),g[o].m(a,null),k(e,f),p=!0},p($,E){let b=l;l=_($),l===b?u[l].p($,E):(me(),T(u[b],1,1,()=>{u[b]=null}),de(),r=u[l],r?r.p($,E):(r=u[l]=c[l]($),r.c()),v(r,1),r.m(t,null));let w=o;o=h($),o===w?g[o].p($,E):(me(),T(g[w],1,1,()=>{g[w]=null}),de(),i=g[o],i?i.p($,E):(i=g[o]=m[o]($),i.c()),v(i,1),i.m(a,null))},i($){p||(v(r),v(i),p=!0)},o($){T(r),T(i),p=!1},d($){$&&d(e),u[l].d(),g[o].d()}}}function yr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ir(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Dr(n){let e,t;return e=new ft({props:{title:"No Workflows Found",content:n[7],error:n[6]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&64&&(s.error=l[6]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Sr(n){let e,t;return e=new mt({}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zt(n){let e,t;return e=new yn({props:{workflow:n[14],namespace:n[1].params.namespace,timeFormat:n[4]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&8192&&(s.workflow=l[14]),r&2&&(s.namespace=l[1].params.namespace),r&16&&(s.timeFormat=l[4]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cr(n){let e,t,l=n[13],r=[];for(let o=0;oT(r[o],1,1,()=>{r[o]=null});let a=null;return l.length||(a=Jt(n)),{c(){for(let o=0;o{a=null}),de()):(a=Jt(o),a.c(),v(a,1),a.m(e.parentNode,e))}},i(o){if(!t){for(let i=0;ibe(g,"searchType",M)),E=new jl({props:{items:n[2],"aria-label":"recent workflows",$$slots:{default:[Wr,({visibleItems:F})=>({13:F}),({visibleItems:F})=>F?8192:0]},$$scope:{ctx:n}}}),{c(){e=S("header"),t=S("div"),l=S("h1"),r=j("Recent Workflows"),s=q(),a=S("div"),o=S("p"),f=j(i),p=q(),c=S("div"),u=S("button"),O(_.$$.fragment),m=q(),O(g.$$.fragment),$=q(),O(E.$$.fragment),this.h()},l(F){e=C(F,"HEADER",{class:!0});var G=W(e);t=C(G,"DIV",{});var X=W(t);l=C(X,"H1",{class:!0,"data-testid":!0});var U=W(l);r=Q(U,"Recent Workflows"),U.forEach(d),s=H(X),a=C(X,"DIV",{class:!0});var B=W(a);o=C(B,"P",{"data-testid":!0});var P=W(o);f=Q(P,i),P.forEach(d),B.forEach(d),X.forEach(d),p=H(G),c=C(G,"DIV",{});var A=W(c);u=C(A,"BUTTON",{"aria-label":!0,class:!0});var L=W(u);N(_.$$.fragment,L),L.forEach(d),A.forEach(d),G.forEach(d),m=H(F),N(g.$$.fragment,F),$=H(F),N(E.$$.fragment,F),this.h()},h(){D(l,"class","text-2xl"),D(l,"data-testid","namespace-title"),D(o,"data-testid","namespace-name"),D(a,"class","flex items-center gap-2 text-sm"),D(u,"aria-label","retry workflows"),D(u,"class","cursor-pointer rounded-full p-1 hover:bg-gray-900 hover:text-white"),D(e,"class","mb-2 flex justify-between")},m(F,G){I(F,e,G),k(e,t),k(t,l),k(l,r),k(t,s),k(t,a),k(a,o),k(o,f),k(e,p),k(e,c),k(c,u),V(_,u,null),I(F,m,G),V(g,F,G),I(F,$,G),V(E,F,G),b=!0,w||(y=ne(u,"click",n[8]),w=!0)},p(F,[G]){(!b||G&2)&&i!==(i=F[1].params.namespace+"")&&_e(f,i);const X={};!h&&G&1&&(h=!0,X.searchType=F[0],$e(()=>h=!1)),g.$set(X);const U={};G&4&&(U.items=F[2]),G&139386&&(U.$$scope={dirty:G,ctx:F}),E.$set(U)},i(F){b||(v(_.$$.fragment,F),v(g.$$.fragment,F),v(E.$$.fragment,F),b=!0)},o(F){T(_.$$.fragment,F),T(g.$$.fragment,F),T(E.$$.fragment,F),b=!1},d(F){F&&d(e),R(_),F&&d(m),R(g,F),F&&d($),R(E,F),w=!1,y()}}}function Fr(n,e,t){let l,r,s,a,o,i,f,p,c;x(n,Oe,h=>t(1,l=h)),x(n,at,h=>t(10,r=h)),x(n,Je,h=>t(11,s=h)),x(n,it,h=>t(12,a=h)),x(n,Ml,h=>t(2,o=h)),x(n,Bl,h=>t(3,i=h)),x(n,Pe,h=>t(4,f=h)),x(n,Ul,h=>t(5,p=h)),x(n,ql,h=>t(6,c=h));let u=Er(l.url);const _=u==="advanced"?"Please check your syntax and try again.":"If you have filters applied, try adjusting them.";Vl(()=>{se(it,a=l.params.namespace,a)});const m=()=>{se(Je,s=Date.now(),s)};pn(()=>{se(at,r=l.url.searchParams.toString(),r)});function g(h){u=h,t(0,u)}return[u,l,o,i,f,p,c,_,m,g]}class Or extends ke{constructor(e){super(),ve(this,e,Fr,Ar,Te,{})}}const Nr=n=>({}),Xt=n=>({});function Vr(n){let e;const t=n[2].fallback,l=Qe(t,n,n[1],Xt);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,Nr):ze(r[1]),Xt)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Rr(n){let e;const t=n[2].default,l=Qe(t,n,n[1],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&2)&&Ke(l,t,r,r[1],e?Ye(t,r[1],s,null):ze(r[1]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Lr(n){let e,t,l,r;const s=[Rr,Vr],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function Pr(n,e,t){let l;x(n,xe,a=>t(0,l=a));let{$$slots:r={},$$scope:s}=e;return n.$$set=a=>{"$$scope"in a&&t(1,s=a.$$scope)},[l,s,r]}class Mr extends ke{constructor(e){super(),ve(this,e,Pr,Lr,Te,{})}}const Br={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},Ur=n=>!(n===null||n===void 0||n===""||typeof n=="string"&&n==="undefined"),qr=(n,e,t="=",l,r)=>{const s=Br[n]??n;return e==="All"?"":r?`${s} ${e}`:Sn(e)||Cn(e)?l||Rl(xe)?`${s} > "${Rt(e)}"`:`${s} BETWEEN "${Rt(e)}" AND "${Wn()}"`:`${s}${t}"${e}"`},Hr=(n,e)=>n.map(({attribute:t,value:l,conditional:r,operator:s,parenthesis:a,customDate:o})=>{if(Ur(l)){let i=qr(t,l,r,e,o);return a==="("?i=`(${i}`:a===")"&&(i=`${i})`),s&&(i=`${i} ${s} `),i}}).filter(Boolean),jr=(n=[],e=[],t=!1)=>{const l=e.length?` order by ${e[0].attribute} ${e[0].value}`:"";return Hr(n,t).join("")+l},Qr=n=>e=>e.toLowerCase()===n.toLowerCase(),xt=(n,e)=>n[e+2],Kr=(n,e)=>n[e-2],zr=n=>{if(n){for(const e of On)if(n[e])return{[e]:n[e]}}},Yr=Qr("Datetime"),ht=()=>({attribute:"",value:"",operator:"",parenthesis:"",conditional:""}),Gr={ExecutionStatus:"Keyword",StartTime:"Datetime",CloseTime:"Datetime",WorkflowId:"Keyword",WorkflowType:"Keyword"},en=(n,e=Gr)=>{const t=In(n),l=[];let r=ht();if(!n)return[];try{return t.forEach((s,a)=>{if(e[s])if(r.attribute=s,Yr(e[s])){const o=xt(t,a);try{const i=An(o),f=zr(i);r.value=Fn(f)}catch(i){console.error("Error parsing Datetime field from query",i)}}else r.value=xt(t,a);Rn(s)&&(r.conditional=s),Ln(s)&&(r.parenthesis=s),Pn(s)&&!Mn(Kr(t,a))&&(r.operator=s,l.push(r),r=ht()),a===t.length-1&&(l.push(r),r=ht())}),l}catch(s){return console.error("Error setting filter parameters: ",s),[]}},Jr=n=>{const e=n.filter(a=>a.attribute==="ExecutionStatus"&&a.value),t=n.filter(a=>a.attribute==="WorkflowId"&&a.value),l=n.filter(a=>a.attribute==="WorkflowType"&&a.value),r=n.filter(a=>(a.attribute==="StartTime"||a.attribute==="CloseTime")&&a.value),s=[e,t,l,r].filter(a=>a.length);return s.forEach((a,o)=>{var i,f;a.length&&((i=s[o+1])!=null&&i.length)?a[a.length-1].operator="AND":a.length&&!((f=s[o+1])!=null&&f.length)&&(a[a.length-1].operator="")}),[...e,...t,...l,...r]},Ve=Ql((n,e,t)=>{const l=Jr(e),r=jr(l,t);Ge({url:n,parameter:"query",value:r,allowEmpty:!1})},300);function el(n,e,t){const l=n.slice();return l[10]=e[t][0],l[11]=e[t][1],l}function tl(n){let e,t;return e=new Ce({props:{class:"pointer-events-none -mt-[1px] -ml-[2px] text-white",name:"checkmark",width:20,height:20}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Zr(n){let e,t;return e=new Yl({props:{status:n[11]}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p:ge,i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Xr(n){let e;return{c(){e=j("All Statuses")},l(t){e=Q(t,"All Statuses")},m(t,l){I(t,e,l)},p:ge,i:ge,o:ge,d(t){t&&d(e)}}}function ll(n,e){let t,l,r=e[0].find(_)||!e[0].length&&e[11]==="All",s,a,o,i,f,p,c,u;function _(...w){return e[6](e[11],...w)}let m=r&&tl();function g(...w){return e[7](e[11],...w)}const h=[Xr,Zr],$=[];function E(w,y){return w[11]==="All"?0:1}o=E(e),i=$[o]=h[o](e);function b(){return e[8](e[11])}return{key:n,first:null,c(){t=S("button"),l=S("div"),m&&m.c(),s=q(),a=S("div"),i.c(),f=q(),this.h()},l(w){t=C(w,"BUTTON",{class:!0,"data-testid":!0});var y=W(t);l=C(y,"DIV",{class:!0});var M=W(l);m&&m.l(M),M.forEach(d),s=H(y),a=C(y,"DIV",{class:!0});var J=W(a);i.l(J),J.forEach(d),f=H(y),y.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-4 w-4 rounded-sm ring-1 ring-gray-900 svelte-mpn3ee"),ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),D(a,"class","flex h-6 items-center text-sm hover:scale-[103%]"),D(t,"class","flex items-center transition-all hover:cursor-pointer"),D(t,"data-testid",e[10]),this.first=t},m(w,y){I(w,t,y),k(t,l),m&&m.m(l,null),k(t,s),k(t,a),$[o].m(a,null),k(t,f),p=!0,c||(u=ne(t,"click",b),c=!0)},p(w,y){e=w,y&1&&(r=e[0].find(_)||!e[0].length&&e[11]==="All"),r?m?y&1&&v(m,1):(m=tl(),m.c(),v(m,1),m.m(l,null)):m&&(me(),T(m,1,1,()=>{m=null}),de()),(!p||y&5)&&ae(l,"active",e[0].find(g)||!e[0].length&&e[11]==="All"),i.p(e,y)},i(w){p||(v(m),v(i),p=!0)},o(w){T(m),T(i),p=!1},d(w){w&&d(t),m&&m.d(),$[o].d(),c=!1,u()}}}function xr(n){let e,t=[],l=new Map,r,s=Object.entries(n[2]);const a=o=>o[11];for(let o=0;o{const l=t===0?"(":t===n.length-1?")":"",r=t===n.length-1?"":"OR";return{...e,operator:r,parenthesis:l}})}const rl=n=>n.value;function ls(n,e,t){let l,r,s,a,o;x(n,We,_=>t(4,s=_)),x(n,pe,_=>t(5,a=_)),x(n,Oe,_=>t(9,o=_));const i={All:"All",Running:"Running","Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"},f=_=>{if(_==="All")se(pe,a=a.filter(m=>m.attribute!=="ExecutionStatus"),a);else if(l.find(m=>m.value===_)){const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl(l.filter(g=>g.value!==_))],a)}else if(!l.length)se(pe,a=[...a,$t(_)],a);else{const m=a.filter(g=>g.attribute!=="ExecutionStatus");se(pe,a=[...m,...nl([...l,$t(_)])],a)}Ve(o.url,a,s)},p=(_,m)=>m.value===_,c=(_,m)=>m.value===_,u=_=>f(_);return n.$$.update=()=>{n.$$.dirty&32&&t(0,l=a.filter(_=>_.attribute==="ExecutionStatus")),n.$$.dirty&16&&t(1,r=s.find(_=>_.attribute==="ExecutionStatus"))},[l,r,i,f,s,a,p,c,u]}class tn extends ke{constructor(e){super(),ve(this,e,ls,ts,Te,{})}}function ns(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowId",placeholder:"Workflow ID",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function rs(n){let e;return{c(){e=j("Workflow ID")},l(t){e=Q(t,"Workflow ID")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ss(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-id-filter-button",$$slots:{label:[rs],default:[ns]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function os(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowId"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowId",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&(l!=null&&l.value)?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowId")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowId"))},[i,l,r,p,c,u,s,a,_]}class ln extends ke{constructor(e){super(),ve(this,e,os,ss,Te,{})}}function as(n){let e,t,l,r;function s(o){n[8](o)}let a={icon:"search",type:"search",id:"workflowType",placeholder:"Workflow Type",class:"flex items-center px-2 transition-all hover:cursor-pointer",autoFocus:!0,clearable:!0};return n[0]!==void 0&&(a.value=n[0]),t=new Ne({props:a}),he.push(()=>be(t,"value",s)),t.$on("input",n[3]),t.$on("clear",n[5]),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(o){e=C(o,"DIV",{class:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){D(e,"class","flex w-[500px] flex-col gap-2 p-2")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};!l&&i&1&&(l=!0,f.value=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function is(n){let e;return{c(){e=j("Type")},l(t){e=Q(t,"Type")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function fs(n){let e,t;return e=new et({props:{value:n[1]?n[1].value:n[2]?n[2].value:"",keepOpen:!0,left:!0,icon:"filter",testId:"workflow-type-filter-button",$$slots:{label:[is],default:[as]},$$scope:{ctx:n}}}),e.$on("showmenu",n[4]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&6&&(s.value=l[1]?l[1].value:l[2]?l[2].value:""),r&2049&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function us(n,e,t){let l,r,s,a,o;x(n,We,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Oe,m=>t(9,o=m));let i="";const f=()=>a.filter(m=>m.attribute!=="WorkflowType"),p=m=>{const{value:g}=m.target;if(g){const h={attribute:"WorkflowType",value:g,conditional:"=",operator:"",parenthesis:""};se(pe,a=[...f(),h],a)}else se(pe,a=[...f()],a);Ve(o.url,a,s)};function c(m){const g=m.detail.show;g&&l?t(0,i=l.value):g&&!l&&i&&t(0,i="")}function u(){se(pe,a=[...f()],a),Ve(o.url,a,s)}function _(m){i=m,t(0,i)}return n.$$.update=()=>{n.$$.dirty&128&&t(1,l=a.find(m=>m.attribute==="WorkflowType")),n.$$.dirty&64&&t(2,r=s.find(m=>m.attribute==="WorkflowType"))},[i,l,r,p,c,u,s,a,_]}class nn extends ke{constructor(e){super(),ve(this,e,us,fs,Te,{})}}function cs(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$;return r=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"ascending",width:24,height:24}}),c=new Ce({props:{class:"pointer-events-none -mt-[1px]",name:"descending",width:24,height:24}}),{c(){e=S("div"),t=S("button"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),o=j("Ascending"),i=q(),f=S("button"),p=S("div"),O(c.$$.fragment),u=q(),_=S("div"),m=j("Descending"),this.h()},l(E){e=C(E,"DIV",{class:!0});var b=W(e);t=C(b,"BUTTON",{class:!0});var w=W(t);l=C(w,"DIV",{class:!0});var y=W(l);N(r.$$.fragment,y),y.forEach(d),s=H(w),a=C(w,"DIV",{class:!0});var M=W(a);o=Q(M,"Ascending"),M.forEach(d),w.forEach(d),i=H(b),f=C(b,"BUTTON",{class:!0});var J=W(f);p=C(J,"DIV",{class:!0});var F=W(p);N(c.$$.fragment,F),F.forEach(d),u=H(J),_=C(J,"DIV",{class:!0});var G=W(_);m=Q(G,"Descending"),G.forEach(d),J.forEach(d),b.forEach(d),this.h()},h(){D(l,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(l,"active",n[1].find(n[3])),D(a,"class","p-1 hover:scale-[103%]"),D(t,"class","flex items-center"),D(p,"class","ml-4 mr-2 h-6 w-6 rounded-sm text-gray-900 svelte-mpn3ee"),ae(p,"active",n[1].find(n[5])),D(_,"class","p-1 hover:scale-[103%]"),D(f,"class","flex items-center"),D(e,"class","mt-2 transition-all hover:cursor-pointer")},m(E,b){I(E,e,b),k(e,t),k(t,l),V(r,l,null),k(t,s),k(t,a),k(a,o),k(e,i),k(e,f),k(f,p),V(c,p,null),k(f,u),k(f,_),k(_,m),g=!0,h||($=[ne(t,"click",n[4]),ne(f,"click",n[6])],h=!0)},p(E,[b]){(!g||b&3)&&ae(l,"active",E[1].find(E[3])),(!g||b&3)&&ae(p,"active",E[1].find(E[5]))},i(E){g||(v(r.$$.fragment,E),v(c.$$.fragment,E),g=!0)},o(E){T(r.$$.fragment,E),T(c.$$.fragment,E),g=!1},d(E){E&&d(e),R(r),R(c),h=!1,Me($)}}}function ms(n,e,t){let l,r,s;x(n,We,u=>t(1,l=u)),x(n,pe,u=>t(7,r=u)),x(n,Oe,u=>t(8,s=u));let{type:a}=e;const o=u=>{l.find(_=>_.value===u&&_.attribute===a)?se(We,l=[],l):se(We,l=[{attribute:a,value:u}],l),Ve(s.url,r,l)},i=u=>u.value==="asc"&&u.attribute===a,f=()=>o("asc"),p=u=>u.value==="desc"&&u.attribute===a,c=()=>o("desc");return n.$$set=u=>{"type"in u&&t(0,a=u.type)},[a,l,o,i,f,p,c]}class rn extends ke{constructor(e){super(),ve(this,e,ms,cs,Te,{type:0})}}function ds(n){let e,t,l;return t=new rn({props:{type:"StartTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function _s(n){let e;return{c(){e=j("Start Time")},l(t){e=Q(t,"Start Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ps(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[_s],default:[ds]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function hs(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="StartTime"))},[s,l,r]}class sn extends ke{constructor(e){super(),ve(this,e,hs,ps,Te,{disabled:0})}}function gs(n){let e,t,l;return t=new rn({props:{type:"CloseTime"}}),{c(){e=S("div"),O(t.$$.fragment),this.h()},l(r){e=C(r,"DIV",{class:!0});var s=W(e);N(t.$$.fragment,s),s.forEach(d),this.h()},h(){D(e,"class","flex w-44 flex-col gap-2 p-2")},m(r,s){I(r,e,s),V(t,e,null),l=!0},p:ge,i(r){l||(v(t.$$.fragment,r),l=!0)},o(r){T(t.$$.fragment,r),l=!1},d(r){r&&d(e),R(t)}}}function bs(n){let e;return{c(){e=j("End Time")},l(t){e=Q(t,"End Time")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function $s(n){var l;let e,t;return e=new et({props:{disabled:n[0],disabledText:"Sort disabled",value:((l=n[1])==null?void 0:l.value)??"",keepOpen:!0,right:!0,$$slots:{label:[bs],default:[gs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(r){N(e.$$.fragment,r)},m(r,s){V(e,r,s),t=!0},p(r,[s]){var o;const a={};s&1&&(a.disabled=r[0]),s&2&&(a.value=((o=r[1])==null?void 0:o.value)??""),s&8&&(a.$$scope={dirty:s,ctx:r}),e.$set(a)},i(r){t||(v(e.$$.fragment,r),t=!0)},o(r){T(e.$$.fragment,r),t=!1},d(r){R(e,r)}}}function ws(n,e,t){let l,r;x(n,We,a=>t(2,r=a));let{disabled:s=!1}=e;return n.$$set=a=>{"disabled"in a&&t(0,s=a.disabled)},n.$$.update=()=>{n.$$.dirty&4&&t(1,l=r.find(a=>a.attribute==="CloseTime"))},[s,l,r]}class on extends ke{constructor(e){super(),ve(this,e,ws,$s,Te,{disabled:0})}}function ks(n){let e,t,l,r,s;const a=n[5].default,o=Qe(a,n,n[4],null);return{c(){e=S("button"),o&&o.c(),this.h()},l(i){e=C(i,"BUTTON",{"data-testid":!0,class:!0});var f=W(e);o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"data-testid",n[0]),e.disabled=n[1],D(e,"class",t="bulk-action-button "+n[2]+" "+n[3].class+" svelte-19w6g7u")},m(i,f){I(i,e,f),o&&o.m(e,null),l=!0,r||(s=ne(e,"click",n[6]),r=!0)},p(i,[f]){o&&o.p&&(!l||f&16)&&Ke(o,a,i,i[4],l?Ye(a,i[4],f,null):ze(i[4]),null),(!l||f&1)&&D(e,"data-testid",i[0]),(!l||f&2)&&(e.disabled=i[1]),(!l||f&12&&t!==(t="bulk-action-button "+i[2]+" "+i[3].class+" svelte-19w6g7u"))&&D(e,"class",t)},i(i){l||(v(o,i),l=!0)},o(i){T(o,i),l=!1},d(i){i&&d(e),o&&o.d(i),r=!1,s()}}}function vs(n,e,t){let{$$slots:l={},$$scope:r}=e,{testId:s=null}=e,{disabled:a=!1}=e,{variant:o="primary"}=e;function i(f){Be.call(this,n,f)}return n.$$set=f=>{t(3,e=Xe(Xe({},e),ot(f))),"testId"in f&&t(0,s=f.testId),"disabled"in f&&t(1,a=f.disabled),"variant"in f&&t(2,o=f.variant),"$$scope"in f&&t(4,r=f.$$scope)},e=ot(e),[s,a,o,e,r,l,i]}class an extends ke{constructor(e){super(),ve(this,e,vs,ks,Te,{testId:0,disabled:1,variant:2})}}function sl(n){let e,t;return{c(){e=S("span"),t=j(n[2]),this.h()},l(l){e=C(l,"SPAN",{class:!0});var r=W(e);t=Q(r,n[2]),r.forEach(d),this.h()},h(){D(e,"class","label svelte-l6k8ad"),ae(e,"hoverable",n[6])},m(l,r){I(l,e,r),k(e,t)},p(l,r){r&4&&_e(t,l[2]),r&64&&ae(e,"hoverable",l[6])},d(l){l&&d(e)}}}function Ts(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"checkmark",strokeWidth:3}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Es(n){let e,t;return e=new Ce({props:{class:"absolute top-0 left-0 h-4 w-4",name:"hyphen"}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function ys(n){let e,t,l,r,s,a,o,i,f,p,c,u,_=n[2]&&sl(n),m=[{id:n[1]},{__value:n[7]},{type:"checkbox"},{indeterminate:n[4]},{disabled:n[5]},n[10]],g={};for(let b=0;b{$[y]=null}),de()),~o?(i=$[o],i||(i=$[o]=h[o](b),i.c()),v(i,1),i.m(a,null)):i=null),(!p||w&64)&&ae(a,"hoverable",b[6]),(!p||w&8)&&ae(a,"on-dark",b[3]),(!p||w&64)&&ae(t,"hoverable",b[6]),(!p||w&32)&&ae(t,"disabled",b[5]),(!p||w&8)&&ae(t,"on-dark",b[3]),(!p||w&512&&f!==(f="relative "+b[9].class+" svelte-l6k8ad"))&&D(e,"class",f)},i(b){p||(v(i),p=!0)},o(b){T(i),p=!1},d(b){b&&d(e),_&&_.d(),~o&&$[o].d(),c=!1,Me(u)}}}function Is(n,e,t){const l=["id","checked","label","onDark","indeterminate","disabled","hoverable","value","group"];let r=At(e,l),{id:s=""}=e,{checked:a=!1}=e,{label:o=""}=e,{onDark:i=!1}=e,{indeterminate:f=!1}=e,{disabled:p=!1}=e,{hoverable:c=!1}=e,{value:u=void 0}=e,{group:_=void 0}=e;const m=He(),g=M=>{const{checked:J}=M.currentTarget;_!==void 0&&(J?t(11,_=[..._,u]):t(11,_=_.filter(F=>F!==u))),t(0,a=J),m("change",{checked:M.currentTarget.checked,value:u})};a=_!==void 0?_.includes(u):a;function h(M){Be.call(this,n,M)}function $(M){Be.call(this,n,M)}function E(M){Be.call(this,n,M)}function b(M){Be.call(this,n,M)}function w(M){Be.call(this,n,M)}function y(){a=this.checked,t(0,a)}return n.$$set=M=>{t(9,e=Xe(Xe({},e),ot(M))),t(10,r=At(e,l)),"id"in M&&t(1,s=M.id),"checked"in M&&t(0,a=M.checked),"label"in M&&t(2,o=M.label),"onDark"in M&&t(3,i=M.onDark),"indeterminate"in M&&t(4,f=M.indeterminate),"disabled"in M&&t(5,p=M.disabled),"hoverable"in M&&t(6,c=M.hoverable),"value"in M&&t(7,u=M.value),"group"in M&&t(11,_=M.group)},e=ot(e),[a,s,o,i,f,p,c,u,g,e,r,_,h,$,E,b,w,y]}class fn extends ke{constructor(e){super(),ve(this,e,Is,ys,Te,{id:1,checked:0,label:2,onDark:3,indeterminate:4,disabled:5,hoverable:6,value:7,group:11})}}function Ds(n){let e,t;return e=new Kl({props:{class:"w-full md:table-fixed",updating:n[1],$$slots:{headers:[As],default:[Cs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ss(n){let e,t;return e=new Kl({props:{id:"workflows-table-with-bulk-actions",class:"w-full min-w-[600px] table-fixed",updating:n[1],$$slots:{headers:[Bs],default:[Fs]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&2&&(s.updating=l[1]),r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Cs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function Ws(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function As(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ws]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16777728&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Fs(n){let e;const t=n[23].default,l=Qe(t,n,n[24],null);return{c(){l&&l.c()},l(r){l&&l.l(r)},m(r,s){l&&l.m(r,s),e=!0},p(r,s){l&&l.p&&(!e||s&16777216)&&Ke(l,t,r,r[24],e?Ye(t,r[24],s,null):ze(r[24]),null)},i(r){e||(v(l,r),e=!0)},o(r){T(l,r),e=!1},d(r){l&&l.d(r)}}}function ol(n){let e,t;return e=new fn({props:{id:"select-visible-workflows",onDark:!0,hoverable:!0,checked:n[7],indeterminate:n[5]}}),e.$on("change",n[15]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&128&&(s.checked=l[7]),r&32&&(s.indeterminate=l[5]),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Os(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g;return t=new tn({}),s=new ln({}),i=new nn({}),c=new sn({props:{disabled:n[9]}}),m=new on({props:{disabled:n[9]}}),{c(){e=S("th"),O(t.$$.fragment),l=q(),r=S("th"),O(s.$$.fragment),a=q(),o=S("th"),O(i.$$.fragment),f=q(),p=S("th"),O(c.$$.fragment),u=q(),_=S("th"),O(m.$$.fragment),this.h()},l(h){e=C(h,"TH",{class:!0});var $=W(e);N(t.$$.fragment,$),$.forEach(d),l=H(h),r=C(h,"TH",{});var E=W(r);N(s.$$.fragment,E),E.forEach(d),a=H(h),o=C(h,"TH",{class:!0});var b=W(o);N(i.$$.fragment,b),b.forEach(d),f=H(h),p=C(h,"TH",{class:!0});var w=W(p);N(c.$$.fragment,w),w.forEach(d),u=H(h),_=C(h,"TH",{class:!0});var y=W(_);N(m.$$.fragment,y),y.forEach(d),this.h()},h(){D(e,"class","w-32"),D(o,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(_,"class","w-60 max-xl:hidden")},m(h,$){I(h,e,$),V(t,e,null),I(h,l,$),I(h,r,$),V(s,r,null),I(h,a,$),I(h,o,$),V(i,o,null),I(h,f,$),I(h,p,$),V(c,p,null),I(h,u,$),I(h,_,$),V(m,_,null),g=!0},p(h,$){const E={};$&512&&(E.disabled=h[9]),c.$set(E);const b={};$&512&&(b.disabled=h[9]),m.$set(b)},i(h){g||(v(t.$$.fragment,h),v(s.$$.fragment,h),v(i.$$.fragment,h),v(c.$$.fragment,h),v(m.$$.fragment,h),g=!0)},o(h){T(t.$$.fragment,h),T(s.$$.fragment,h),T(i.$$.fragment,h),T(c.$$.fragment,h),T(m.$$.fragment,h),g=!1},d(h){h&&d(e),R(t),h&&d(l),h&&d(r),R(s),h&&d(a),h&&d(o),R(i),h&&d(f),h&&d(p),R(c),h&&d(u),h&&d(_),R(m)}}}function Ns(n){let e,t,l,r,s,a,o,i,f,p,c,u,_;function m(b,w){return b[3]?Rs:Vs}let g=m(n),h=g(n),$=n[10]&&al(n),E=n[11]&&il(n);return{c(){e=S("th"),h.c(),t=q(),l=S("div"),$&&$.c(),r=q(),E&&E.c(),s=q(),a=S("th"),o=q(),i=S("th"),f=q(),p=S("th"),c=q(),u=S("th"),this.h()},l(b){e=C(b,"TH",{class:!0});var w=W(e);h.l(w),t=H(w),l=C(w,"DIV",{class:!0});var y=W(l);$&&$.l(y),r=H(y),E&&E.l(y),y.forEach(d),w.forEach(d),s=H(b),a=C(b,"TH",{}),W(a).forEach(d),o=H(b),i=C(b,"TH",{class:!0}),W(i).forEach(d),f=H(b),p=C(b,"TH",{class:!0}),W(p).forEach(d),c=H(b),u=C(b,"TH",{class:!0}),W(u).forEach(d),this.h()},h(){D(l,"class","ml-4 inline-flex gap-2"),D(e,"class","w-32 overflow-visible whitespace-nowrap"),D(i,"class","xl:w-60"),D(p,"class","w-60 max-xl:hidden"),D(u,"class","w-60 max-xl:hidden")},m(b,w){I(b,e,w),h.m(e,null),k(e,t),k(e,l),$&&$.m(l,null),k(l,r),E&&E.m(l,null),I(b,s,w),I(b,a,w),I(b,o,w),I(b,i,w),I(b,f,w),I(b,p,w),I(b,c,w),I(b,u,w),_=!0},p(b,w){g===(g=m(b))&&h?h.p(b,w):(h.d(1),h=g(b),h&&(h.c(),h.m(e,t))),b[10]?$?($.p(b,w),w&1024&&v($,1)):($=al(b),$.c(),v($,1),$.m(l,r)):$&&(me(),T($,1,1,()=>{$=null}),de()),b[11]?E?(E.p(b,w),w&2048&&v(E,1)):(E=il(b),E.c(),v(E,1),E.m(l,null)):E&&(me(),T(E,1,1,()=>{E=null}),de())},i(b){_||(v($),v(E),_=!0)},o(b){T($),T(E),_=!1},d(b){b&&d(e),h.d(),$&&$.d(),E&&E.d(),b&&d(s),b&&d(a),b&&d(o),b&&d(i),b&&d(f),b&&d(p),b&&d(c),b&&d(u)}}}function Vs(n){let e,t,l,r,s,a,o,i,f,p,c,u;return{c(){e=S("span"),t=j(n[2]),l=j(" selected"),r=q(),s=S("span"),a=j("(or "),o=S("button"),i=j("select all "),f=j(n[4]),p=j(")"),this.h()},l(_){e=C(_,"SPAN",{class:!0});var m=W(e);t=Q(m,n[2]),l=Q(m," selected"),m.forEach(d),r=H(_),s=C(_,"SPAN",{});var g=W(s);a=Q(g,"(or "),o=C(g,"BUTTON",{"data-testid":!0,class:!0});var h=W(o);i=Q(h,"select all "),f=Q(h,n[4]),h.forEach(d),p=Q(g,")"),g.forEach(d),this.h()},h(){D(e,"class","font-semibold"),D(o,"data-testid","select-all-workflows"),D(o,"class","cursor-pointer underline")},m(_,m){I(_,e,m),k(e,t),k(e,l),I(_,r,m),I(_,s,m),k(s,a),k(s,o),k(o,i),k(o,f),k(s,p),c||(u=ne(o,"click",n[14]),c=!0)},p(_,m){m&4&&_e(t,_[2]),m&16&&_e(f,_[4])},d(_){_&&d(e),_&&d(r),_&&d(s),c=!1,u()}}}function Rs(n){let e,t,l,r;return{c(){e=S("span"),t=j("All "),l=j(n[4]),r=j(" selected"),this.h()},l(s){e=C(s,"SPAN",{class:!0});var a=W(e);t=Q(a,"All "),l=Q(a,n[4]),r=Q(a," selected"),a.forEach(d),this.h()},h(){D(e,"class","font-semibold")},m(s,a){I(s,e,a),k(e,t),k(e,l),k(e,r)},p(s,a){a&16&&_e(l,s[4])},d(s){s&&d(e)}}}function al(n){let e,t;return e=new an({props:{testId:"bulk-cancel-button",disabled:n[8],$$slots:{default:[Ls]},$$scope:{ctx:n}}}),e.$on("click",n[13]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ls(n){let e;return{c(){e=j("Request Cancellation")},l(t){e=Q(t,"Request Cancellation")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function il(n){let e,t;return e=new an({props:{variant:"destructive",testId:"bulk-terminate-button",disabled:n[8],$$slots:{default:[Ps]},$$scope:{ctx:n}}}),e.$on("click",n[12]),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&256&&(s.disabled=l[8]),r&16777216&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ps(n){let e;return{c(){e=j("Terminate")},l(t){e=Q(t,"Terminate")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Ms(n){let e,t,l,r,s,a,o=!n[1]&&ol(n);const i=[Ns,Os],f=[];function p(c,u){return c[6]?0:1}return l=p(n),r=f[l]=i[l](n),{c(){e=S("th"),o&&o.c(),t=q(),r.c(),s=Se(),this.h()},l(c){e=C(c,"TH",{style:!0,class:!0});var u=W(e);o&&o.l(u),u.forEach(d),t=H(c),r.l(c),s=Se(),this.h()},h(){Ll(e,"padding","0"),D(e,"class","w-12 h-10")},m(c,u){I(c,e,u),o&&o.m(e,null),I(c,t,u),f[l].m(c,u),I(c,s,u),a=!0},p(c,u){c[1]?o&&(me(),T(o,1,1,()=>{o=null}),de()):o?(o.p(c,u),u&2&&v(o,1)):(o=ol(c),o.c(),v(o,1),o.m(e,null));let _=l;l=p(c),l===_?f[l].p(c,u):(me(),T(f[_],1,1,()=>{f[_]=null}),de(),r=f[l],r?r.p(c,u):(r=f[l]=i[l](c),r.c()),v(r,1),r.m(s.parentNode,s))},i(c){a||(v(o),v(r),a=!0)},o(c){T(o),T(r),a=!1},d(c){c&&d(e),o&&o.d(),c&&d(t),f[l].d(c),c&&d(s)}}}function Bs(n){let e,t;return e=new zl({props:{slot:"headers",$$slots:{default:[Ms]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,r){const s={};r&16781310&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Us(n){let e,t,l,r;const s=[Ss,Ds],a=[];function o(i,f){return i[0]?0:1}return e=o(n),t=a[e]=s[e](n),{c(){t.c(),l=Se()},l(i){t.l(i),l=Se()},m(i,f){a[e].m(i,f),I(i,l,f),r=!0},p(i,[f]){let p=e;e=o(i),e===p?a[e].p(i,f):(me(),T(a[p],1,1,()=>{a[p]=null}),de(),t=a[e],t?t.p(i,f):(t=a[e]=s[e](i),t.c()),v(t,1),t.m(l.parentNode,l))},i(i){r||(v(t),r=!0)},o(i){T(t),r=!1},d(i){a[e].d(i),i&&d(l)}}}function qs(n,e,t){let l,r,s,a,o,i,f,p,c,u,_;x(n,Oe,P=>t(19,p=P)),x(n,Nn,P=>t(21,u=P)),x(n,Hl,P=>t(22,_=P));let{$$slots:m={},$$scope:g}=e;const h=He();let{bulkActionsEnabled:$=!1}=e,{updating:E=!1}=e,{visibleWorkflows:b}=e,{selectedWorkflowsCount:w}=e,{allSelected:y}=e,{pageSelected:M}=e,{filteredWorkflowCount:J}=e;const F=()=>{h("terminateWorkflows")},G=()=>{h("cancelWorkflows")},X=P=>{(P instanceof MouseEvent||P instanceof KeyboardEvent&&P.key==="Enter")&&h("toggleAll",{checked:!0})},U=P=>{const{checked:A}=P.detail;A?h("togglePage",{checked:!0,visibleWorkflows:b}):h("toggleAll",{checked:!1})};let B=Un();return x(n,B,P=>t(20,c=P)),n.$$set=P=>{"bulkActionsEnabled"in P&&t(0,$=P.bulkActionsEnabled),"updating"in P&&t(1,E=P.updating),"visibleWorkflows"in P&&t(17,b=P.visibleWorkflows),"selectedWorkflowsCount"in P&&t(2,w=P.selectedWorkflowsCount),"allSelected"in P&&t(3,y=P.allSelected),"pageSelected"in P&&t(18,M=P.pageSelected),"filteredWorkflowCount"in P&&t(4,J=P.filteredWorkflowCount),"$$scope"in P&&t(24,g=P.$$scope)},n.$$.update=()=>{n.$$.dirty&524288&&t(11,l=wn(p.data.settings)),n.$$.dirty&524288&&t(10,r=kn(p.data.settings)),n.$$.dirty&6291456&&t(9,s=(_==null?void 0:_.totalCount)>=1e6||!u),n.$$.dirty&1572864&&t(8,a=c.namespaceWriteDisabled(p.params.namespace)),n.$$.dirty&393228&&t(7,o=y||M||w===b.length&&w!==0),n.$$.dirty&12&&t(6,i=w>0||y),n.$$.dirty&131076&&t(5,f=w>0&&wbe(t,"checked",s)),t.$on("change",n[9]),{c(){e=S("td"),O(t.$$.fragment),this.h()},l(o){e=C(o,"TD",{style:!0});var i=W(e);N(t.$$.fragment,i),i.forEach(d),this.h()},h(){Ll(e,"padding","0")},m(o,i){I(o,e,i),V(t,e,null),r=!0},p(o,i){const f={};i&16&&(f.disabled=o[4]),!l&&i&1&&(l=!0,f.checked=o[0],$e(()=>l=!1)),t.$set(f)},i(o){r||(v(t.$$.fragment,o),r=!0)},o(o){T(t.$$.fragment,o),r=!1},d(o){o&&d(e),R(t)}}}function js(n){let e,t,l,r,s,a,o=n[2].id+"",i,f,p,c,u,_=Re(n[2].startTime,n[3])+"",m,g,h,$,E,b,w,y=n[2].name+"",M,J,F,G,X,U,B=Re(n[2].endTime,n[3])+"",P,A,L,ee,re=Re(n[2].startTime,n[3])+"",ie,fe,ue,we,ye=Re(n[2].endTime,n[3])+"",Ie,Ee,Ae,Z,te=n[1]&&fl(n);return l=new Yl({props:{status:n[2].status,delay:Lt(n[2].startTime)}}),p=new Vt({props:{show:n[5],content:n[2].id,onFilter:n[12],filtered:Boolean(n[7].find(n[13]))}}),G=new Vt({props:{show:n[5],content:n[2].name,onFilter:n[19],filtered:Boolean(n[7].find(n[20]))}}),{c(){te&&te.c(),e=q(),t=S("td"),O(l.$$.fragment),r=q(),s=S("td"),a=S("span"),i=j(o),f=q(),O(p.$$.fragment),c=q(),u=S("p"),m=j(_),g=q(),h=S("td"),$=S("h3"),E=j("Workflow Name:"),b=q(),w=S("button"),M=j(y),F=q(),O(G.$$.fragment),X=q(),U=S("p"),P=j(B),A=q(),L=S("td"),ee=S("p"),ie=j(re),fe=q(),ue=S("td"),we=S("p"),Ie=j(ye),this.h()},l(z){te&&te.l(z),e=H(z),t=C(z,"TD",{});var le=W(t);N(l.$$.fragment,le),le.forEach(d),r=H(z),s=C(z,"TD",{class:!0});var Y=W(s);a=C(Y,"SPAN",{class:!0});var oe=W(a);i=Q(oe,o),oe.forEach(d),f=H(Y),N(p.$$.fragment,Y),c=H(Y),u=C(Y,"P",{class:!0});var ce=W(u);m=Q(ce,_),ce.forEach(d),Y.forEach(d),g=H(z),h=C(z,"TD",{class:!0});var K=W(h);$=C(K,"H3",{class:!0});var De=W($);E=Q(De,"Workflow Name:"),De.forEach(d),b=H(K),w=C(K,"BUTTON",{class:!0,"aria-label":!0});var Fe=W(w);M=Q(Fe,y),Fe.forEach(d),F=H(K),N(G.$$.fragment,K),X=H(K),U=C(K,"P",{class:!0});var tt=W(U);P=Q(tt,B),tt.forEach(d),K.forEach(d),A=H(z),L=C(z,"TD",{class:!0});var It=W(L);ee=C(It,"P",{});var Dt=W(ee);ie=Q(Dt,re),Dt.forEach(d),It.forEach(d),fe=H(z),ue=C(z,"TD",{class:!0});var St=W(ue);we=C(St,"P",{});var Ct=W(we);Ie=Q(Ct,ye),Ct.forEach(d),St.forEach(d),this.h()},h(){D(a,"class","table-link svelte-1hpdy04"),D(u,"class","inline-time-cell svelte-1hpdy04"),D(s,"class","relative break-words pr-4"),D($,"class","md:hidden"),D(w,"class","table-link svelte-1hpdy04"),D(w,"aria-label",J="filter by "+n[2].name+" type"),D(U,"class","inline-time-cell svelte-1hpdy04"),D(h,"class","relative truncate"),D(L,"class","time-cell svelte-1hpdy04"),D(ue,"class","time-cell svelte-1hpdy04")},m(z,le){te&&te.m(z,le),I(z,e,le),I(z,t,le),V(l,t,null),I(z,r,le),I(z,s,le),k(s,a),k(a,i),k(s,f),V(p,s,null),k(s,c),k(s,u),k(u,m),I(z,g,le),I(z,h,le),k(h,$),k($,E),k(h,b),k(h,w),k(w,M),k(h,F),V(G,h,null),k(h,X),k(h,U),k(U,P),I(z,A,le),I(z,L,le),k(L,ee),k(ee,ie),I(z,fe,le),I(z,ue,le),k(ue,we),k(we,Ie),Ee=!0,Ae||(Z=[ne(s,"mouseover",n[14]),ne(s,"focus",n[15]),ne(s,"mouseleave",n[16]),ne(s,"blur",n[17]),ne(w,"click",Ue(Le(n[18]))),ne(h,"mouseover",n[21]),ne(h,"focus",n[22]),ne(h,"mouseleave",n[23]),ne(h,"blur",n[24])],Ae=!0)},p(z,le){z[1]?te?(te.p(z,le),le&2&&v(te,1)):(te=fl(z),te.c(),v(te,1),te.m(e.parentNode,e)):te&&(me(),T(te,1,1,()=>{te=null}),de());const Y={};le&4&&(Y.status=z[2].status),le&4&&(Y.delay=Lt(z[2].startTime)),l.$set(Y),(!Ee||le&4)&&o!==(o=z[2].id+"")&&_e(i,o);const oe={};le&32&&(oe.show=z[5]),le&4&&(oe.content=z[2].id),le&4&&(oe.onFilter=z[12]),le&132&&(oe.filtered=Boolean(z[7].find(z[13]))),p.$set(oe),(!Ee||le&12)&&_!==(_=Re(z[2].startTime,z[3])+"")&&_e(m,_),(!Ee||le&4)&&y!==(y=z[2].name+"")&&_e(M,y),(!Ee||le&4&&J!==(J="filter by "+z[2].name+" type"))&&D(w,"aria-label",J);const ce={};le&32&&(ce.show=z[5]),le&4&&(ce.content=z[2].name),le&4&&(ce.onFilter=z[19]),le&132&&(ce.filtered=Boolean(z[7].find(z[20]))),G.$set(ce),(!Ee||le&12)&&B!==(B=Re(z[2].endTime,z[3])+"")&&_e(P,B),(!Ee||le&12)&&re!==(re=Re(z[2].startTime,z[3])+"")&&_e(ie,re),(!Ee||le&12)&&ye!==(ye=Re(z[2].endTime,z[3])+"")&&_e(Ie,ye)},i(z){Ee||(v(te),v(l.$$.fragment,z),v(p.$$.fragment,z),v(G.$$.fragment,z),Ee=!0)},o(z){T(te),T(l.$$.fragment,z),T(p.$$.fragment,z),T(G.$$.fragment,z),Ee=!1},d(z){te&&te.d(z),z&&d(e),z&&d(t),R(l),z&&d(r),z&&d(s),R(p),z&&d(g),z&&d(h),R(G),z&&d(A),z&&d(L),z&&d(fe),z&&d(ue),Ae=!1,Me(Z)}}}function Qs(n){let e,t;return e=new Hn({props:{href:n[6],class:"workflow-summary-row",$$slots:{default:[js]},$$scope:{ctx:n}}}),{c(){O(e.$$.fragment)},l(l){N(e.$$.fragment,l)},m(l,r){V(e,l,r),t=!0},p(l,[r]){const s={};r&64&&(s.href=l[6]),r&268435647&&(s.$$scope={dirty:r,ctx:l}),e.$set(s)},i(l){t||(v(e.$$.fragment,l),t=!0)},o(l){T(e.$$.fragment,l),t=!1},d(l){R(e,l)}}}function Ks(n,e,t){let l,r,s,a;x(n,We,L=>t(25,r=L)),x(n,pe,L=>t(7,s=L)),x(n,Oe,L=>t(26,a=L));const o=He();let{bulkActionsEnabled:i=!1}=e,{selected:f=!1}=e,{namespace:p}=e,{workflow:c}=e,{timeFormat:u}=e,{checkboxDisabled:_}=e,m=!1;const g=(L,ee)=>{const re=s.find(fe=>fe.attribute===L),ie=()=>s.filter(fe=>fe.attribute!==L);if(re)se(pe,s=[...ie()],s);else{const fe={attribute:L,value:ee,conditional:"=",operator:"",parenthesis:""};se(pe,s=[...ie(),fe],s)}Ve(a.url,s,r)},h=L=>{o("toggleWorkflow",{workflowRunId:c.runId,checked:L.detail.checked})};function $(L){f=L,t(0,f)}const E=()=>g("WorkflowId",c.id),b=L=>L.attribute==="WorkflowId"&&L.value===c.id,w=()=>t(5,m=!0),y=()=>t(5,m=!0),M=()=>t(5,m=!1),J=()=>t(5,m=!1),F=()=>g("WorkflowType",c.name),G=()=>g("WorkflowType",c.name),X=L=>L.attribute==="WorkflowType"&&L.value===c.name,U=()=>t(5,m=!0),B=()=>t(5,m=!0),P=()=>t(5,m=!1),A=()=>t(5,m=!1);return n.$$set=L=>{"bulkActionsEnabled"in L&&t(1,i=L.bulkActionsEnabled),"selected"in L&&t(0,f=L.selected),"namespace"in L&&t(10,p=L.namespace),"workflow"in L&&t(2,c=L.workflow),"timeFormat"in L&&t(3,u=L.timeFormat),"checkboxDisabled"in L&&t(4,_=L.checkboxDisabled)},n.$$.update=()=>{n.$$.dirty&1028&&t(6,l=qn({namespace:p,workflow:c.id,run:c.runId}))},[f,i,c,u,_,m,l,s,g,h,p,$,E,b,w,y,M,J,F,G,X,U,B,P,A]}class zs extends ke{constructor(e){super(),ve(this,e,Ks,Qs,Te,{bulkActionsEnabled:1,selected:0,namespace:10,workflow:2,timeFormat:3,checkboxDisabled:4})}}function Ys(n){let e;return{c(){e=j("Search")},l(t){e=Q(t,"Search")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function Gs(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(g){n[5](g)}let m={id:"manual-search",type:"search",placeholder:"Enter a query",icon:"search",class:"w-3/4",clearable:!0,unroundRight:!0};return n[0]!==void 0&&(m.value=n[0]),r=new Ne({props:m}),he.push(()=>be(r,"value",_)),r.$on("clear",n[2]),o=new bt({props:{testId:"manual-search-button",variant:"primary",class:"h-10",unroundLeft:!0,type:"submit",$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=S("div"),t=S("div"),l=S("form"),O(r.$$.fragment),a=q(),O(o.$$.fragment),this.h()},l(g){e=C(g,"DIV",{class:!0});var h=W(e);t=C(h,"DIV",{class:!0});var $=W(t);l=C($,"FORM",{class:!0,role:!0});var E=W(l);N(r.$$.fragment,E),a=H(E),N(o.$$.fragment,E),E.forEach(d),$.forEach(d),h.forEach(d),this.h()},h(){D(l,"class","relative flex h-12 w-full items-center gap-0"),D(l,"role","search"),D(t,"class","flex h-12 w-full items-center gap-0"),D(e,"class","flex-items-center flex grow gap-4")},m(g,h){I(g,e,h),k(e,t),k(t,l),V(r,l,null),k(l,a),V(o,l,null),p=!0,c||(u=ne(l,"submit",Le(n[1])),c=!0)},p(g,[h]){const $={};!s&&h&1&&(s=!0,$.value=g[0],$e(()=>s=!1)),r.$set($);const E={};h&2048&&(E.$$scope={dirty:h,ctx:g}),o.$set(E)},i(g){p||(v(r.$$.fragment,g),v(o.$$.fragment,g),i||Ft(()=>{i=Ot(l,jn,{x:-100,duration:150}),i.start()}),f||Ft(()=>{f=Ot(t,Qn,{}),f.start()}),p=!0)},o(g){T(r.$$.fragment,g),T(o.$$.fragment,g),p=!1},d(g){g&&d(e),R(r),R(o),c=!1,u()}}}function Js(n,e,t){let l,r,s,a,o,i;x(n,Oe,m=>t(4,r=m)),x(n,Je,m=>t(6,s=m)),x(n,pe,m=>t(7,a=m)),x(n,Ze,m=>t(8,o=m)),x(n,We,m=>t(9,i=m));let f="";function p(m){t(0,f=m)}const c=()=>{if(!f)se(pe,a=[],a),se(We,i=[],i),se(Ze,o="",o);else try{se(pe,a=en(f),a)}catch{}f&&f===l?se(Je,s=Date.now(),s):Ge({url:r.url,parameter:"query",value:f,allowEmpty:!0})};function u(){c()}function _(m){f=m,t(0,f)}return n.$$.update=()=>{n.$$.dirty&16&&t(3,l=r.url.searchParams.get("query")),n.$$.dirty&8&&p(l)},[f,c,u,l,r,_]}class Zs extends ke{constructor(e){super(),ve(this,e,Js,Gs,Te,{})}}function ul(n,e,t){const l=n.slice();return l[9]=e[t].allowed,l[10]=e[t].value,l[12]=t,l}function cl(n,e,t){const l=n.slice();return l[13]=e[t],l}function ml(n){let e,t=n[13].label.slice(0,2)+"",l;return{c(){e=S("p"),l=j(t),this.h()},l(r){e=C(r,"P",{class:!0});var s=W(e);l=Q(s,t),s.forEach(d),this.h()},h(){D(e,"class","cell svelte-1we9vff")},m(r,s){I(r,e,s),k(e,l)},p:ge,d(r){r&&d(e)}}}function dl(n,e){let t,l=(e[10]||"")+"",r,s,a,o;function i(){return e[6](e[10])}return{key:n,first:null,c(){t=S("button"),r=j(l),s=q(),this.h()},l(f){t=C(f,"BUTTON",{class:!0});var p=W(t);r=Q(p,l),s=H(p),p.forEach(d),this.h()},h(){D(t,"class","cell svelte-1we9vff"),ae(t,"highlight",e[9]&&e[10]),ae(t,"disabled",!e[9]),ae(t,"selected",new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate()).getTime()===new Date(e[2],e[1],e[10]).getTime()),this.first=t},m(f,p){I(f,t,p),k(t,r),k(t,s),a||(o=ne(t,"click",function(){bn(e[9]&&e[10]?i:ge)&&(e[9]&&e[10]?i:ge).apply(this,arguments)}),a=!0)},p(f,p){e=f,p&8&&l!==(l=(e[10]||"")+"")&&_e(r,l),p&8&&ae(t,"highlight",e[9]&&e[10]),p&8&&ae(t,"disabled",!e[9]),p&15&&ae(t,"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&&d(t),a=!1,o()}}}function Xs(n){let e,t,l,r,s=[],a=new Map,o=Ut,i=[];for(let c=0;cc[12];for(let c=0;c!0}=e,i=[];const f=u=>{l("datechange",new Date(a,s,u))},p=(u,_,m)=>m?o(new Date(u,_,m)):!0,c=u=>f(u);return n.$$set=u=>{"date"in u&&t(0,r=u.date),"month"in u&&t(1,s=u.month),"year"in u&&t(2,a=u.year),"isAllowed"in u&&t(5,o=u.isAllowed)},n.$$.update=()=>{n.$$.dirty&6&&t(3,i=Yn(s,a).map(u=>({value:u,allowed:p(a,s,u)})))},[r,s,a,i,f,o,c]}class eo extends ke{constructor(e){super(),ve(this,e,xs,Xs,Te,{date:0,month:1,year:2,isAllowed:5})}}function _l(n){var B;let e,t,l,r,s,a,o,i=(((B=qt(n[2]))==null?void 0:B.label)??"")+"",f,p,c,u,_,m,g,h,$,E,b,w,y,M,J,F,G,X,U;return s=new Ce({props:{name:"chevron-left"}}),g=new Ce({props:{name:"chevron-right"}}),$=new eo({props:{month:n[2],year:n[3],date:n[0],isAllowed:n[1]}}),$.$on("datechange",n[9]),{c(){e=S("div"),t=S("div"),l=S("div"),r=S("button"),O(s.$$.fragment),a=q(),o=S("div"),f=j(i),p=q(),c=j(n[3]),u=q(),_=S("div"),m=S("button"),O(g.$$.fragment),h=q(),O($.$$.fragment),E=q(),b=S("div"),w=S("button"),y=j("Today"),M=q(),J=S("button"),F=j("Close"),this.h()},l(P){e=C(P,"DIV",{class:!0});var A=W(e);t=C(A,"DIV",{class:!0});var L=W(t);l=C(L,"DIV",{class:!0});var ee=W(l);r=C(ee,"BUTTON",{});var re=W(r);N(s.$$.fragment,re),re.forEach(d),ee.forEach(d),a=H(L),o=C(L,"DIV",{class:!0});var ie=W(o);f=Q(ie,i),p=H(ie),c=Q(ie,n[3]),ie.forEach(d),u=H(L),_=C(L,"DIV",{class:!0});var fe=W(_);m=C(fe,"BUTTON",{});var ue=W(m);N(g.$$.fragment,ue),ue.forEach(d),fe.forEach(d),L.forEach(d),h=H(A),N($.$$.fragment,A),E=H(A),b=C(A,"DIV",{class:!0});var we=W(b);w=C(we,"BUTTON",{class:!0});var ye=W(w);y=Q(ye,"Today"),ye.forEach(d),M=H(we),J=C(we,"BUTTON",{class:!0});var Ie=W(J);F=Q(Ie,"Close"),Ie.forEach(d),we.forEach(d),A.forEach(d),this.h()},h(){D(l,"class","flex items-center justify-center"),D(o,"class","flex items-center justify-center"),D(_,"class","flex items-center justify-center"),D(t,"class","mx-3 my-2 flex items-center justify-around"),D(w,"class","cursor-pointer text-[12px]"),D(J,"class","cursor-pointer text-[12px]"),D(b,"class","my-1 flex justify-between px-2"),D(e,"class","absolute top-12 z-50 inline-block rounded border border-gray-900 bg-white shadow")},m(P,A){I(P,e,A),k(e,t),k(t,l),k(l,r),V(s,r,null),k(t,a),k(t,o),k(o,f),k(o,p),k(o,c),k(t,u),k(t,_),k(_,m),V(g,m,null),k(e,h),V($,e,null),k(e,E),k(e,b),k(b,w),k(w,y),k(b,M),k(b,J),k(J,F),G=!0,X||(U=[ne(r,"click",n[8]),ne(m,"click",n[7]),ne(w,"click",n[10]),ne(J,"click",n[11])],X=!0)},p(P,A){var ee;(!G||A&4)&&i!==(i=(((ee=qt(P[2]))==null?void 0:ee.label)??"")+"")&&_e(f,i),(!G||A&8)&&_e(c,P[3]);const L={};A&4&&(L.month=P[2]),A&8&&(L.year=P[3]),A&1&&(L.date=P[0]),A&2&&(L.isAllowed=P[1]),$.$set(L)},i(P){G||(v(s.$$.fragment,P),v(g.$$.fragment,P),v($.$$.fragment,P),G=!0)},o(P){T(s.$$.fragment,P),T(g.$$.fragment,P),T($.$$.fragment,P),G=!1},d(P){P&&d(e),R(s),R(g),R($),X=!1,Me(U)}}}function to(n){let e,t,l,r,s,a;t=new Ne({props:{id:"datepicker",icon:"calendar-plus",type:"text",placeholder:"MM/DD/YY",value:n[0].toDateString(),clearable:!0}}),t.$on("focus",n[5]),t.$on("input",n[6]);let o=n[4]&&_l(n);return{c(){e=S("div"),O(t.$$.fragment),l=q(),o&&o.c(),this.h()},l(i){e=C(i,"DIV",{class:!0});var f=W(e);N(t.$$.fragment,f),l=H(f),o&&o.l(f),f.forEach(d),this.h()},h(){D(e,"class","relative")},m(i,f){I(i,e,f),V(t,e,null),k(e,l),o&&o.m(e,null),r=!0,s||(a=[Pl(Gl.call(null,e)),ne(e,"click-outside",n[12])],s=!0)},p(i,[f]){const p={};f&1&&(p.value=i[0].toDateString()),t.$set(p),i[4]?o?(o.p(i,f),f&16&&v(o,1)):(o=_l(i),o.c(),v(o,1),o.m(e,null)):o&&(me(),T(o,1,1,()=>{o=null}),de())},i(i){r||(v(t.$$.fragment,i),v(o),r=!0)},o(i){T(t.$$.fragment,i),T(o),r=!1},d(i){i&&d(e),R(t),o&&o.d(),s=!1,Me(a)}}}function lo(n,e,t){const l=He();let{isAllowed:r=()=>!0}=e,{selected:s=new Date}=e,a,o,i=!1;const f=()=>{t(4,i=!0)},p=$=>{const b=$.target.value;if(b.length===8){const w=b==null?void 0:b.split("/"),M=2e3+parseInt(w[2]),J=parseInt(w[0])-1,F=parseInt(w[1]),G=new Date(M,J,F);l("datechange",G)}},c=()=>{if(a===11){t(2,a=0),t(3,o=o+1);return}t(2,a=a+1)},u=()=>{if(a===0){t(2,a=11),t(3,o-=1);return}t(2,a-=1)},_=$=>{t(4,i=!1),l("datechange",$.detail)},m=()=>t(0,s=new Date),g=()=>t(4,i=!1),h=()=>t(4,i=!1);return n.$$set=$=>{"isAllowed"in $&&t(1,r=$.isAllowed),"selected"in $&&t(0,s=$.selected)},n.$$.update=()=>{n.$$.dirty&1&&(t(2,a=s.getMonth()),t(3,o=s.getFullYear()))},[s,r,a,o,i,f,p,c,u,_,m,g,h]}class pl extends ke{constructor(e){super(),ve(this,e,lo,to,Te,{isAllowed:1,selected:0})}}function no(n){let e;return{c(){e=j("AM")},l(t){e=Q(t,"AM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function ro(n){let e;return{c(){e=j("PM")},l(t){e=Q(t,"PM")},m(t,l){I(t,e,l)},d(t){t&&d(e)}}}function so(n){let e,t,l,r;return e=new Ht({props:{active:n[3]==="AM",$$slots:{default:[no]},$$scope:{ctx:n}}}),e.$on("click",n[7]),l=new Ht({props:{active:n[3]==="PM",$$slots:{default:[ro]},$$scope:{ctx:n}}}),l.$on("click",n[8]),{c(){O(e.$$.fragment),t=q(),O(l.$$.fragment)},l(s){N(e.$$.fragment,s),t=H(s),N(l.$$.fragment,s)},m(s,a){V(e,s,a),I(s,t,a),V(l,s,a),r=!0},p(s,a){const o={};a&8&&(o.active=s[3]==="AM"),a&512&&(o.$$scope={dirty:a,ctx:s}),e.$set(o);const i={};a&8&&(i.active=s[3]==="PM"),a&512&&(i.$$scope={dirty:a,ctx:s}),l.$set(i)},i(s){r||(v(e.$$.fragment,s),v(l.$$.fragment,s),r=!0)},o(s){T(e.$$.fragment,s),T(l.$$.fragment,s),r=!1},d(s){R(e,s),s&&d(t),R(l,s)}}}function oo(n){let e,t,l,r,s,a,o,i,f,p,c,u;function _(b){n[4](b)}let m={id:"hour",placeholder:"00",suffix:"hrs",maxLength:2,error:Boolean(parseInt(n[0])>12)};n[0]!==void 0&&(m.value=n[0]),t=new Ne({props:m}),he.push(()=>be(t,"value",_));function g(b){n[5](b)}let h={id:"minute",required:!0,placeholder:"00",suffix:"min",maxLength:2,error:Boolean(parseInt(n[0])>59)};n[1]!==void 0&&(h.value=n[1]),s=new Ne({props:h}),he.push(()=>be(s,"value",g));function $(b){n[6](b)}let E={id:"second",placeholder:"00",suffix:"sec",maxLength:2,error:Boolean(parseInt(n[0])>59)};return n[2]!==void 0&&(E.value=n[2]),i=new Ne({props:E}),he.push(()=>be(i,"value",$)),c=new Gn({props:{$$slots:{default:[so]},$$scope:{ctx:n}}}),{c(){e=S("div"),O(t.$$.fragment),r=q(),O(s.$$.fragment),o=q(),O(i.$$.fragment),p=q(),O(c.$$.fragment),this.h()},l(b){e=C(b,"DIV",{class:!0});var w=W(e);N(t.$$.fragment,w),r=H(w),N(s.$$.fragment,w),o=H(w),N(i.$$.fragment,w),p=H(w),N(c.$$.fragment,w),w.forEach(d),this.h()},h(){D(e,"class","flex gap-2")},m(b,w){I(b,e,w),V(t,e,null),k(e,r),V(s,e,null),k(e,o),V(i,e,null),k(e,p),V(c,e,null),u=!0},p(b,[w]){const y={};w&1&&(y.error=Boolean(parseInt(b[0])>12)),!l&&w&1&&(l=!0,y.value=b[0],$e(()=>l=!1)),t.$set(y);const M={};w&1&&(M.error=Boolean(parseInt(b[0])>59)),!a&&w&2&&(a=!0,M.value=b[1],$e(()=>a=!1)),s.$set(M);const J={};w&1&&(J.error=Boolean(parseInt(b[0])>59)),!f&&w&4&&(f=!0,J.value=b[2],$e(()=>f=!1)),i.$set(J);const F={};w&520&&(F.$$scope={dirty:w,ctx:b}),c.$set(F)},i(b){u||(v(t.$$.fragment,b),v(s.$$.fragment,b),v(i.$$.fragment,b),v(c.$$.fragment,b),u=!0)},o(b){T(t.$$.fragment,b),T(s.$$.fragment,b),T(i.$$.fragment,b),T(c.$$.fragment,b),u=!1},d(b){b&&d(e),R(t),R(s),R(i),R(c)}}}function ao(n,e,t){let{hour:l=""}=e,{minute:r=""}=e,{second:s=""}=e,{half:a="AM"}=e;function o(u){l=u,t(0,l)}function i(u){r=u,t(1,r)}function f(u){s=u,t(2,s)}const p=()=>t(3,a="AM"),c=()=>t(3,a="PM");return n.$$set=u=>{"hour"in u&&t(0,l=u.hour),"minute"in u&&t(1,r=u.minute),"second"in u&&t(2,s=u.second),"half"in u&&t(3,a=u.half)},[l,r,s,a,o,i,f,p,c]}class hl extends ke{constructor(e){super(),ve(this,e,ao,oo,Te,{hour:0,minute:1,second:2,half:3})}}function gl(n,e,t){const l=n.slice();return l[46]=e[t],l}function io(n){let e,t,l,r,s,a,o,i,f,p,c,u,_,m,g,h,$,E,b,w,y,M;r=new gt({props:{value:"All Time",$$slots:{default:[uo]},$$scope:{ctx:n}}}),o=new gt({props:{value:"Custom",$$slots:{default:[co]},$$scope:{ctx:n}}});let J=Pt,F=[];for(let B=0;BT(F[B],1,1,()=>{F[B]=null});let X=n[3]==="StartTime"&&$l(),U=n[3]==="CloseTime"&&wl();return{c(){e=S("div"),t=S("div"),l=S("div"),O(r.$$.fragment),s=q(),a=S("div"),O(o.$$.fragment),i=q();for(let B=0;B({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&2&&(c.items=e[1]),a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function re(f){let t,r,e=f[3].namespaceInfo.name+"",a,c,s;return{c(){t=N("td"),r=N("a"),a=F(e),s=x(),this.h()},l(n){t=T(n,"TD",{});var o=P(t);r=T(o,"A",{href:!0,class:!0});var p=P(r);a=q(p,e),p.forEach(m),o.forEach(m),s=C(n),this.h()},h(){v(r,"href",c=S({namespace:f[3].namespaceInfo.name})),v(r,"class","hover:text-blue-700 hover:underline hover:decoration-blue-700")},m(n,o){h(n,t,o),y(t,r),y(r,a),h(n,s,o)},p(n,o){o&4&&e!==(e=n[3].namespaceInfo.name+"")&&O(a,e),o&4&&c!==(c=S({namespace:n[3].namespaceInfo.name}))&&v(r,"href",c)},d(n){n&&m(t),n&&m(s)}}}function z(f){let t,r;return t=new ee({props:{$$slots:{default:[re]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function se(f){let t,r,e=f[2],a=[];for(let s=0;s$(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return s=D(f),n=_[s]=A[s](f),{c(){g(t.$$.fragment),r=x(),e=N("h1"),a=F("Namespaces"),c=x(),n.c(),o=E(),this.h()},l(l){d(t.$$.fragment,l),r=C(l),e=T(l,"H1",{"data-testid":!0,class:!0});var i=P(e);a=q(i,"Namespaces"),i.forEach(m),c=C(l),n.l(l),o=E(),this.h()},h(){v(e,"data-testid","namespace-selector-title"),v(e,"class","mb-8 text-2xl")},m(l,i){b(t,l,i),h(l,r,i),h(l,e,i),y(e,a),h(l,c,i),_[s].m(l,i),h(l,o,i),p=!0},p(l,[i]){const k={};i&1&&(k.url=l[0].url.href),t.$set(k);let I=s;s=D(l),s===I?_[s].p(l,i):(K(),$(_[I],1,1,()=>{_[I]=null}),B(),n=_[s],n?n.p(l,i):(n=_[s]=A[s](l),n.c()),u(n,1),n.m(o.parentNode,o))},i(l){p||(u(t.$$.fragment,l),u(n),p=!0)},o(l){$(t.$$.fragment,l),$(n),p=!1},d(l){w(t,l),l&&m(r),l&&m(e),l&&m(c),_[s].d(l),l&&m(o)}}}function fe(f,t,r){let e,a;return H(f,Q,c=>r(0,e=c)),H(f,R,c=>r(1,a=c)),[e,a]}class be extends Y{constructor(t){super(),G(this,t,fe,ce,J,{})}}export{be as default}; +import{S as Y,b as G,a as J,C as g,c as x,m as N,w as F,e as E,D as d,d as C,p as T,q as P,x as q,k as m,u as v,E as b,f as h,L as y,g as $,h as B,j as u,F as w,K as H,z as K,n as L,a7 as M,y as O}from"../chunks/index.a36c9cb0.js";import{o as S}from"../chunks/route-for.e1b7889c.js";import{p as Q}from"../chunks/stores.4d55fa19.js";import{n as R}from"../chunks/namespaces.85dd7810.js";import{E as U}from"../chunks/empty-state.9fb63265.js";import{P as V}from"../chunks/page-title.b9565d2f.js";import{P as W}from"../chunks/pagination.6f9a2b9c.js";import{T as X,a as Z}from"../chunks/table-header-row.eb620974.js";import{T as ee}from"../chunks/table-row.9df8daa0.js";function j(f,t,r){const e=f.slice();return e[3]=t[r],e}function te(f){let t,r;return t=new U({props:{title:"No Namespaces Found",content:"You do not have access to a Namespace. Contact your Administrator for assistance."}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p:L,i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function ae(f){let t,r;return t=new W({props:{items:f[1],"aria-label":"namespaces",$$slots:{default:[le,({visibleItems:e})=>({2:e}),({visibleItems:e})=>e?4:0]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&2&&(c.items=e[1]),a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function re(f){let t,r,e=f[3].namespaceInfo.name+"",a,c,s;return{c(){t=N("td"),r=N("a"),a=F(e),s=x(),this.h()},l(n){t=T(n,"TD",{});var o=P(t);r=T(o,"A",{href:!0,class:!0});var p=P(r);a=q(p,e),p.forEach(m),o.forEach(m),s=C(n),this.h()},h(){v(r,"href",c=S({namespace:f[3].namespaceInfo.name})),v(r,"class","hover:text-blue-700 hover:underline hover:decoration-blue-700")},m(n,o){h(n,t,o),y(t,r),y(r,a),h(n,s,o)},p(n,o){o&4&&e!==(e=n[3].namespaceInfo.name+"")&&O(a,e),o&4&&c!==(c=S({namespace:n[3].namespaceInfo.name}))&&v(r,"href",c)},d(n){n&&m(t),n&&m(s)}}}function z(f){let t,r;return t=new ee({props:{$$slots:{default:[re]},$$scope:{ctx:f}}}),{c(){g(t.$$.fragment)},l(e){d(t.$$.fragment,e)},m(e,a){b(t,e,a),r=!0},p(e,a){const c={};a&68&&(c.$$scope={dirty:a,ctx:e}),t.$set(c)},i(e){r||(u(t.$$.fragment,e),r=!0)},o(e){$(t.$$.fragment,e),r=!1},d(e){w(t,e)}}}function se(f){let t,r,e=f[2],a=[];for(let s=0;s$(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;s0?0:1}return s=D(f),n=_[s]=A[s](f),{c(){g(t.$$.fragment),r=x(),e=N("h1"),a=F("Namespaces"),c=x(),n.c(),o=E(),this.h()},l(l){d(t.$$.fragment,l),r=C(l),e=T(l,"H1",{"data-testid":!0,class:!0});var i=P(e);a=q(i,"Namespaces"),i.forEach(m),c=C(l),n.l(l),o=E(),this.h()},h(){v(e,"data-testid","namespace-selector-title"),v(e,"class","mb-8 text-2xl")},m(l,i){b(t,l,i),h(l,r,i),h(l,e,i),y(e,a),h(l,c,i),_[s].m(l,i),h(l,o,i),p=!0},p(l,[i]){const k={};i&1&&(k.url=l[0].url.href),t.$set(k);let I=s;s=D(l),s===I?_[s].p(l,i):(K(),$(_[I],1,1,()=>{_[I]=null}),B(),n=_[s],n?n.p(l,i):(n=_[s]=A[s](l),n.c()),u(n,1),n.m(o.parentNode,o))},i(l){p||(u(t.$$.fragment,l),u(n),p=!0)},o(l){$(t.$$.fragment,l),$(n),p=!1},d(l){w(t,l),l&&m(r),l&&m(e),l&&m(c),_[s].d(l),l&&m(o)}}}function fe(f,t,r){let e,a;return H(f,Q,c=>r(0,e=c)),H(f,R,c=>r(1,a=c)),[e,a]}class be extends Y{constructor(t){super(),G(this,t,fe,ce,J,{})}}export{be as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.svelte.891da897.js b/ui/assets/local/_app/immutable/entry/(app)-page.svelte.b42fe80a.js similarity index 79% rename from ui/assets/local/_app/immutable/entry/(app)-page.svelte.891da897.js rename to ui/assets/local/_app/immutable/entry/(app)-page.svelte.b42fe80a.js index bebf2630c3..f9e3f28436 100644 --- a/ui/assets/local/_app/immutable/entry/(app)-page.svelte.891da897.js +++ b/ui/assets/local/_app/immutable/entry/(app)-page.svelte.b42fe80a.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.a36c9cb0.js";import{g as s}from"../chunks/navigation.724a9b89.js";import{d as b}from"../chunks/workflow-service.11be6188.js";import{l as x}from"../chunks/namespaces.85dd7810.js";import{L as y}from"../chunks/loading.bcb9b7b8.js";import{r as S,m as c}from"../chunks/route-for.6dec3e74.js";function k(r){let a,e;return a=new y({}),{c(){p(a.$$.fragment)},l(t){d(a.$$.fragment,t)},m(t,n){g(a,t,n),e=!0},p:_,i(t){e||(h(a.$$.fragment,t),e=!0)},o(t){$(a.$$.fragment,t),e=!1},d(t){w(a,t)}}}function z(r,a,e){let t;F(r,x,o=>e(1,t=o));let{data:n}=a,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await b(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&e(0,n=o.data)},[n]}class A extends f{constructor(a){super(),u(this,a,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.a36c9cb0.js";import{g as s}from"../chunks/navigation.0861544c.js";import{d as b}from"../chunks/workflow-service.a6d60dde.js";import{l as x}from"../chunks/namespaces.85dd7810.js";import{L as y}from"../chunks/loading.bcb9b7b8.js";import{r as S,m as c}from"../chunks/route-for.e1b7889c.js";function k(r){let a,e;return a=new y({}),{c(){p(a.$$.fragment)},l(t){d(a.$$.fragment,t)},m(t,n){g(a,t,n),e=!0},p:_,i(t){e||(h(a.$$.fragment,t),e=!0)},o(t){$(a.$$.fragment,t),e=!1},d(t){w(a,t)}}}function z(r,a,e){let t;F(r,x,o=>e(1,t=o));let{data:n}=a,{defaultNamespace:i}=n;const m=t&&t!=="default"?t:i;return N(async()=>{try{const{authorized:o}=await b(m);o?s(S({namespace:m})):s(c())}catch{s(c())}}),r.$$set=o=>{"data"in o&&e(0,n=o.data)},[n]}class A extends f{constructor(a){super(),u(this,a,z,k,l,{data:0})}}export{A as default}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.ts.993e816d.js b/ui/assets/local/_app/immutable/entry/(app)-page.ts.993e816d.js deleted file mode 100644 index 58860ac683..0000000000 --- a/ui/assets/local/_app/immutable/entry/(app)-page.ts.993e816d.js +++ /dev/null @@ -1 +0,0 @@ -import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.6dec3e74.js";import{l as t}from"../chunks/_page.2b7718b3.js";export{t as load}; diff --git a/ui/assets/local/_app/immutable/entry/(app)-page.ts.d3b770f0.js b/ui/assets/local/_app/immutable/entry/(app)-page.ts.d3b770f0.js new file mode 100644 index 0000000000..94cca69b74 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(app)-page.ts.d3b770f0.js @@ -0,0 +1 @@ +import"../chunks/index.b1f5b21f.js";import"../chunks/route-for.e1b7889c.js";import{l as t}from"../chunks/_page.a4d16f8f.js";export{t as load}; diff --git a/ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.92610ade.js b/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.c0fd0080.js similarity index 97% rename from ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.92610ade.js rename to ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.c0fd0080.js index 3237764cad..a07ca5a2b8 100644 --- a/ui/assets/cloud/_app/immutable/entry/(app)-select-namespace-page.svelte.92610ade.js +++ b/ui/assets/local/_app/immutable/entry/(app)-select-namespace-page.svelte.c0fd0080.js @@ -1 +1 @@ -import{S as he,b as me,a as pe,m as N,p as S,q as V,k as b,v as M,at as le,$ as ve,f as A,L as y,am as be,T as Z,z as se,a1 as ke,a2 as we,h as re,j as H,g as U,o as ye,G as Ee,c as O,d as F,H as Te,I as Le,J as Ie,t as ee,A as ae,w as x,x as $,C as B,D as j,u as T,E as G,a9 as ne,V as Ne,F as J,r as Se,K as te,_ as Ve,P as He,n as ge,e as oe,R as X,y as Ue}from"../chunks/index.a36c9cb0.js";import{g as Pe}from"../chunks/navigation.214139c0.js";import{p as Re}from"../chunks/stores.0bc9ce95.js";import{l as ie,n as ze}from"../chunks/namespaces.85dd7810.js";import{r as Ce}from"../chunks/route-for.70dfbf18.js";import{E as de}from"../chunks/empty-state.9fb63265.js";import{I as We}from"../chunks/icon.33859671.js";import{P as Ae}from"../chunks/page-title.b9565d2f.js";import{d as Me}from"../chunks/workflow-service.24d3174e.js";import{t as Oe}from"../chunks/toaster.16c48a98.js";function ce(s,e,t){const l=s.slice();return l[23]=e[t],l}const Fe=s=>({item:s&16}),ue=s=>({item:s[23].data});function De(s){let e;return{c(){e=x("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){A(t,e,l)},d(t){t&&b(e)}}}function _e(s,e){let t,l,o;const h=e[14].default,f=Ee(h,e,e[13],ue),_=f||De();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=O(),this.h()},l(r){t=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var n=V(t);_&&_.l(n),l=F(n),n.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(r,n){A(r,t,n),_&&_.m(t,null),y(t,l),o=!0},p(r,n){e=r,f&&f.p&&(!o||n&8208)&&Te(f,h,e,e[13],o?Ie(h,e[13],n,Fe):Le(e[13]),ue)},i(r){o||(H(_,r),o=!0)},o(r){U(_,r),o=!1},d(r){r&&b(t),_&&_.d(r)}}}function qe(s){let e,t,l=[],o=new Map,h,f,_,r,n=s[4];const m=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,i){A(c,e,i),y(e,t);for(let u=0;ua){t(8,r=v),t(5,k=E);break}E+=d,v+=1}for(;va+p)););t(9,n=v);const R=h.length-n;for(I=E/n;v{c=u.getElementsByTagName("svelte-virtual-list-row"),t(12,L=!0)});function Y(a){ae[a?"unshift":"push"](()=>{u=a,t(3,u)})}function P(a){ae[a?"unshift":"push"](()=>{i=a,t(2,i)})}function Q(){p=this.offsetHeight,t(1,p)}return s.$$set=a=>{"items"in a&&t(10,h=a.items),"height"in a&&t(0,f=a.height),"itemHeight"in a&&t(11,_=a.itemHeight),"start"in a&&t(8,r=a.start),"end"in a&&t(9,n=a.end),"$$scope"in a&&t(13,o=a.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,z=h.slice(r,n).map((a,g)=>({index:g+r,data:a}))),s.$$.dirty&7170&&L&&D(h,p,_)},[f,p,i,u,z,k,w,K,r,n,h,_,L,o,l,Y,P,Q]}class je extends he{constructor(e){super(),me(this,e,Be,qe,pe,{items:10,height:0,itemHeight:11,start:8,end:9})}}function fe(s){const e=s[10]===s[2][0];s[11]=e;const t=s[10]===s[2][s[2].length-1];s[12]=t}function Ge(s){let e,t;return e=new de({props:{title:"No Namespaces. Contact your admin to create one."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Je(s){let e,t,l,o;const h=[Ye,Ke],f=[];function _(r,n){return r[2].length?0:1}return e=_(s),t=f[e]=h[e](s),{c(){t.c(),l=oe()},l(r){t.l(r),l=oe()},m(r,n){f[e].m(r,n),A(r,l,n),o=!0},p(r,n){let m=e;e=_(r),e===m?f[e].p(r,n):(se(),U(f[m],1,1,()=>{f[m]=null}),re(),t=f[e],t?t.p(r,n):(t=f[e]=h[e](r),t.c()),H(t,1),t.m(l.parentNode,l))},i(r){o||(H(t),o=!0)},o(r){U(t),o=!1},d(r){f[e].d(r),r&&b(l)}}}function Ke(s){let e,t;return e=new de({props:{title:"No results."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Ye(s){let e,t;return e=new je({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({10:l}),({item:l})=>l?1024:0]},$$scope:{ctx:s}}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p(l,o){const h={};o&4&&(h.items=l[2]),o&9220&&(h.$$scope={dirty:o,ctx:l}),e.$set(h)},i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Qe(s){fe(s);let e,t,l=s[10].namespace+"",o,h,f;function _(){return s[8](s[10])}return{c(){e=N("li"),t=N("button"),o=x(l),this.h()},l(r){e=S(r,"LI",{class:!0});var n=V(e);t=S(n,"BUTTON",{class:!0});var m=V(t);o=$(m,l),m.forEach(b),n.forEach(b),this.h()},h(){T(t,"class","w-full p-3 text-left"),T(e,"class","link-item svelte-8ihh0f"),X(e,"first",s[11]),X(e,"last",s[12])},m(r,n){A(r,e,n),y(e,t),y(t,o),h||(f=Z(t,"click",_),h=!0)},p(r,n){s=r,fe(s),n&1024&&l!==(l=s[10].namespace+"")&&Ue(o,l),n&1028&&X(e,"first",s[11]),n&1028&&X(e,"last",s[12])},d(r){r&&b(e),h=!1,f()}}}function Xe(s){let e,t,l,o,h,f,_,r,n,m,c,i,u,p,z,L,k,w,I,D,K;e=new Ae({props:{title:"Select Namespace",url:s[3].url.href}}),i=new We({props:{name:"search"}});const Y=[Je,Ge],P=[];function Q(a,g){return a[1].length?0:1}return k=Q(s),w=P[k]=Y[k](s),{c(){B(e.$$.fragment),t=O(),l=N("div"),o=N("h1"),h=x("Welcome to Temporal"),f=O(),_=N("p"),r=x("Select a Namespace to get started."),n=O(),m=N("form"),c=N("div"),B(i.$$.fragment),u=O(),p=N("input"),z=O(),L=N("ul"),w.c(),this.h()},l(a){j(e.$$.fragment,a),t=F(a),l=S(a,"DIV",{class:!0});var g=V(l);o=S(g,"H1",{class:!0});var v=V(o);h=$(v,"Welcome to Temporal"),v.forEach(b),f=F(g),_=S(g,"P",{class:!0});var E=V(_);r=$(E,"Select a Namespace to get started."),E.forEach(b),n=F(g),m=S(g,"FORM",{class:!0,role:!0});var R=V(m);c=S(R,"DIV",{class:!0});var d=V(c);j(i.$$.fragment,d),d.forEach(b),u=F(R),p=S(R,"INPUT",{class:!0,placeholder:!0,type:!0}),R.forEach(b),z=F(g),L=S(g,"UL",{class:!0,"aria-label":!0});var C=V(L);w.l(C),C.forEach(b),g.forEach(b),this.h()},h(){T(o,"class","my-4 text-3xl"),T(_,"class","mb-8"),T(c,"class","ml-4 mr-2"),T(p,"class","w-full"),T(p,"placeholder","Search"),T(p,"type","search"),T(m,"class","search svelte-8ihh0f"),T(m,"role","search"),T(L,"class","h-screen w-full"),T(L,"aria-label","namespaces"),T(l,"class","w-full p-8 xl:w-1/2")},m(a,g){G(e,a,g),A(a,t,g),A(a,l,g),y(l,o),y(o,h),y(l,f),y(l,_),y(_,r),y(l,n),y(l,m),y(m,c),G(i,c,null),y(m,u),y(m,p),ne(p,s[0]),y(l,z),y(l,L),P[k].m(L,null),I=!0,D||(K=[Z(p,"keydown",Ne(s[6])),Z(p,"input",s[7])],D=!0)},p(a,[g]){const v={};g&8&&(v.url=a[3].url.href),e.$set(v),g&1&&ne(p,a[0]);let E=k;k=Q(a),k===E?P[k].p(a,g):(se(),U(P[E],1,1,()=>{P[E]=null}),re(),w=P[k],w?w.p(a,g):(w=P[k]=Y[k](a),w.c()),H(w,1),w.m(L,null))},i(a){I||(H(e.$$.fragment,a),H(i.$$.fragment,a),H(w),I=!0)},o(a){U(e.$$.fragment,a),U(i.$$.fragment,a),U(w),I=!1},d(a){J(e,a),a&&b(t),a&&b(l),J(i),P[k].d(),D=!1,Se(K)}}}function Ze(s,e,t){let l,o,h,f,_,r;te(s,ie,u=>t(9,f=u)),te(s,ze,u=>t(5,_=u)),te(s,Re,u=>t(3,r=u));let n="";function m(u){He.call(this,s,u)}function c(){n=this.value,t(0,n)}const i=u=>u==null?void 0:u.onClick(u.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(u=>{var p;return(p=u==null?void 0:u.namespaceInfo)===null||p===void 0?void 0:p.name})),s.$$.dirty&16&&t(1,o=l.map(u=>({namespace:u,onClick:async p=>{const{authorized:z}=await Me(p);z?(Ve(ie,f=p,f),Pe(Ce({namespace:p}))):Oe.push({variant:"error",message:"You do not have access to this namespace."})}}))),s.$$.dirty&3&&t(2,h=o.filter(({namespace:u})=>u.includes(n)))},[n,o,h,r,l,_,m,c,i]}class it extends he{constructor(e){super(),me(this,e,Ze,Xe,pe,{})}}export{it as default}; +import{S as he,b as me,a as pe,m as N,p as S,q as V,k as b,v as M,at as le,$ as ve,f as A,L as y,am as be,T as Z,z as se,a1 as ke,a2 as we,h as re,j as H,g as U,o as ye,G as Ee,c as O,d as F,H as Te,I as Le,J as Ie,t as ee,A as ae,w as x,x as $,C as B,D as j,u as T,E as G,a9 as ne,V as Ne,F as J,r as Se,K as te,_ as Ve,P as He,n as ge,e as oe,R as X,y as Ue}from"../chunks/index.a36c9cb0.js";import{g as Pe}from"../chunks/navigation.0861544c.js";import{p as Re}from"../chunks/stores.4d55fa19.js";import{l as ie,n as ze}from"../chunks/namespaces.85dd7810.js";import{r as Ce}from"../chunks/route-for.e1b7889c.js";import{E as de}from"../chunks/empty-state.9fb63265.js";import{I as We}from"../chunks/icon.33859671.js";import{P as Ae}from"../chunks/page-title.b9565d2f.js";import{d as Me}from"../chunks/workflow-service.a6d60dde.js";import{t as Oe}from"../chunks/toaster.16c48a98.js";function ce(s,e,t){const l=s.slice();return l[23]=e[t],l}const Fe=s=>({item:s&16}),ue=s=>({item:s[23].data});function De(s){let e;return{c(){e=x("Missing template")},l(t){e=$(t,"Missing template")},m(t,l){A(t,e,l)},d(t){t&&b(e)}}}function _e(s,e){let t,l,o;const h=e[14].default,f=Ee(h,e,e[13],ue),_=f||De();return{key:s,first:null,c(){t=N("svelte-virtual-list-row"),_&&_.c(),l=O(),this.h()},l(r){t=S(r,"SVELTE-VIRTUAL-LIST-ROW",{class:!0});var n=V(t);_&&_.l(n),l=F(n),n.forEach(b),this.h()},h(){le(t,"class","svelte-1kdxoed"),this.first=t},m(r,n){A(r,t,n),_&&_.m(t,null),y(t,l),o=!0},p(r,n){e=r,f&&f.p&&(!o||n&8208)&&Te(f,h,e,e[13],o?Ie(h,e[13],n,Fe):Le(e[13]),ue)},i(r){o||(H(_,r),o=!0)},o(r){U(_,r),o=!1},d(r){r&&b(t),_&&_.d(r)}}}function qe(s){let e,t,l=[],o=new Map,h,f,_,r,n=s[4];const m=c=>c[23].index;for(let c=0;cs[17].call(e))},m(c,i){A(c,e,i),y(e,t);for(let u=0;ua){t(8,r=v),t(5,k=E);break}E+=d,v+=1}for(;va+p)););t(9,n=v);const R=h.length-n;for(I=E/n;v{c=u.getElementsByTagName("svelte-virtual-list-row"),t(12,L=!0)});function Y(a){ae[a?"unshift":"push"](()=>{u=a,t(3,u)})}function P(a){ae[a?"unshift":"push"](()=>{i=a,t(2,i)})}function Q(){p=this.offsetHeight,t(1,p)}return s.$$set=a=>{"items"in a&&t(10,h=a.items),"height"in a&&t(0,f=a.height),"itemHeight"in a&&t(11,_=a.itemHeight),"start"in a&&t(8,r=a.start),"end"in a&&t(9,n=a.end),"$$scope"in a&&t(13,o=a.$$scope)},s.$$.update=()=>{s.$$.dirty&1792&&t(4,z=h.slice(r,n).map((a,g)=>({index:g+r,data:a}))),s.$$.dirty&7170&&L&&D(h,p,_)},[f,p,i,u,z,k,w,K,r,n,h,_,L,o,l,Y,P,Q]}class je extends he{constructor(e){super(),me(this,e,Be,qe,pe,{items:10,height:0,itemHeight:11,start:8,end:9})}}function fe(s){const e=s[10]===s[2][0];s[11]=e;const t=s[10]===s[2][s[2].length-1];s[12]=t}function Ge(s){let e,t;return e=new de({props:{title:"No Namespaces. Contact your admin to create one."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Je(s){let e,t,l,o;const h=[Ye,Ke],f=[];function _(r,n){return r[2].length?0:1}return e=_(s),t=f[e]=h[e](s),{c(){t.c(),l=oe()},l(r){t.l(r),l=oe()},m(r,n){f[e].m(r,n),A(r,l,n),o=!0},p(r,n){let m=e;e=_(r),e===m?f[e].p(r,n):(se(),U(f[m],1,1,()=>{f[m]=null}),re(),t=f[e],t?t.p(r,n):(t=f[e]=h[e](r),t.c()),H(t,1),t.m(l.parentNode,l))},i(r){o||(H(t),o=!0)},o(r){U(t),o=!1},d(r){f[e].d(r),r&&b(l)}}}function Ke(s){let e,t;return e=new de({props:{title:"No results."}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p:ge,i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Ye(s){let e,t;return e=new je({props:{items:s[2],itemHeight:50,$$slots:{default:[Qe,({item:l})=>({10:l}),({item:l})=>l?1024:0]},$$scope:{ctx:s}}}),{c(){B(e.$$.fragment)},l(l){j(e.$$.fragment,l)},m(l,o){G(e,l,o),t=!0},p(l,o){const h={};o&4&&(h.items=l[2]),o&9220&&(h.$$scope={dirty:o,ctx:l}),e.$set(h)},i(l){t||(H(e.$$.fragment,l),t=!0)},o(l){U(e.$$.fragment,l),t=!1},d(l){J(e,l)}}}function Qe(s){fe(s);let e,t,l=s[10].namespace+"",o,h,f;function _(){return s[8](s[10])}return{c(){e=N("li"),t=N("button"),o=x(l),this.h()},l(r){e=S(r,"LI",{class:!0});var n=V(e);t=S(n,"BUTTON",{class:!0});var m=V(t);o=$(m,l),m.forEach(b),n.forEach(b),this.h()},h(){T(t,"class","w-full p-3 text-left"),T(e,"class","link-item svelte-8ihh0f"),X(e,"first",s[11]),X(e,"last",s[12])},m(r,n){A(r,e,n),y(e,t),y(t,o),h||(f=Z(t,"click",_),h=!0)},p(r,n){s=r,fe(s),n&1024&&l!==(l=s[10].namespace+"")&&Ue(o,l),n&1028&&X(e,"first",s[11]),n&1028&&X(e,"last",s[12])},d(r){r&&b(e),h=!1,f()}}}function Xe(s){let e,t,l,o,h,f,_,r,n,m,c,i,u,p,z,L,k,w,I,D,K;e=new Ae({props:{title:"Select Namespace",url:s[3].url.href}}),i=new We({props:{name:"search"}});const Y=[Je,Ge],P=[];function Q(a,g){return a[1].length?0:1}return k=Q(s),w=P[k]=Y[k](s),{c(){B(e.$$.fragment),t=O(),l=N("div"),o=N("h1"),h=x("Welcome to Temporal"),f=O(),_=N("p"),r=x("Select a Namespace to get started."),n=O(),m=N("form"),c=N("div"),B(i.$$.fragment),u=O(),p=N("input"),z=O(),L=N("ul"),w.c(),this.h()},l(a){j(e.$$.fragment,a),t=F(a),l=S(a,"DIV",{class:!0});var g=V(l);o=S(g,"H1",{class:!0});var v=V(o);h=$(v,"Welcome to Temporal"),v.forEach(b),f=F(g),_=S(g,"P",{class:!0});var E=V(_);r=$(E,"Select a Namespace to get started."),E.forEach(b),n=F(g),m=S(g,"FORM",{class:!0,role:!0});var R=V(m);c=S(R,"DIV",{class:!0});var d=V(c);j(i.$$.fragment,d),d.forEach(b),u=F(R),p=S(R,"INPUT",{class:!0,placeholder:!0,type:!0}),R.forEach(b),z=F(g),L=S(g,"UL",{class:!0,"aria-label":!0});var C=V(L);w.l(C),C.forEach(b),g.forEach(b),this.h()},h(){T(o,"class","my-4 text-3xl"),T(_,"class","mb-8"),T(c,"class","ml-4 mr-2"),T(p,"class","w-full"),T(p,"placeholder","Search"),T(p,"type","search"),T(m,"class","search svelte-8ihh0f"),T(m,"role","search"),T(L,"class","h-screen w-full"),T(L,"aria-label","namespaces"),T(l,"class","w-full p-8 xl:w-1/2")},m(a,g){G(e,a,g),A(a,t,g),A(a,l,g),y(l,o),y(o,h),y(l,f),y(l,_),y(_,r),y(l,n),y(l,m),y(m,c),G(i,c,null),y(m,u),y(m,p),ne(p,s[0]),y(l,z),y(l,L),P[k].m(L,null),I=!0,D||(K=[Z(p,"keydown",Ne(s[6])),Z(p,"input",s[7])],D=!0)},p(a,[g]){const v={};g&8&&(v.url=a[3].url.href),e.$set(v),g&1&&ne(p,a[0]);let E=k;k=Q(a),k===E?P[k].p(a,g):(se(),U(P[E],1,1,()=>{P[E]=null}),re(),w=P[k],w?w.p(a,g):(w=P[k]=Y[k](a),w.c()),H(w,1),w.m(L,null))},i(a){I||(H(e.$$.fragment,a),H(i.$$.fragment,a),H(w),I=!0)},o(a){U(e.$$.fragment,a),U(i.$$.fragment,a),U(w),I=!1},d(a){J(e,a),a&&b(t),a&&b(l),J(i),P[k].d(),D=!1,Se(K)}}}function Ze(s,e,t){let l,o,h,f,_,r;te(s,ie,u=>t(9,f=u)),te(s,ze,u=>t(5,_=u)),te(s,Re,u=>t(3,r=u));let n="";function m(u){He.call(this,s,u)}function c(){n=this.value,t(0,n)}const i=u=>u==null?void 0:u.onClick(u.namespace);return s.$$.update=()=>{s.$$.dirty&32&&t(4,l=_.map(u=>{var p;return(p=u==null?void 0:u.namespaceInfo)===null||p===void 0?void 0:p.name})),s.$$.dirty&16&&t(1,o=l.map(u=>({namespace:u,onClick:async p=>{const{authorized:z}=await Me(p);z?(Ve(ie,f=p,f),Pe(Ce({namespace:p}))):Oe.push({variant:"error",message:"You do not have access to this namespace."})}}))),s.$$.dirty&3&&t(2,h=o.filter(({namespace:u})=>u.includes(n)))},[n,o,h,r,l,_,m,c,i]}class it extends he{constructor(e){super(),me(this,e,Ze,Xe,pe,{})}}export{it as default}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.3abc8fcd.js b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.3abc8fcd.js new file mode 100644 index 0000000000..854c1849f3 --- /dev/null +++ b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.3abc8fcd.js @@ -0,0 +1 @@ +/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.98a38158.js";import{l as t,s as a}from"../chunks/_layout.fd539a93.js";export{t as load,a as ssr}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.979630aa.js b/ui/assets/local/_app/immutable/entry/(login)-layout.ts.979630aa.js deleted file mode 100644 index fbb9838b97..0000000000 --- a/ui/assets/local/_app/immutable/entry/(login)-layout.ts.979630aa.js +++ /dev/null @@ -1 +0,0 @@ -/* empty css */import"../chunks/index.b1f5b21f.js";import"../chunks/settings-service.5ac9963d.js";import{l as t,s as a}from"../chunks/_layout.4efc6a26.js";export{t as load,a as ssr}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.ca96e93b.js b/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.11520b85.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.ca96e93b.js rename to ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.11520b85.js index a6cd3b0105..7950e4bedf 100644 --- a/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.ca96e93b.js +++ b/ui/assets/local/_app/immutable/entry/(login)-login-page.svelte.11520b85.js @@ -1 +1 @@ -import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.48be4ca9.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.6dec3e74.js";import{F as at,L as st}from"../chunks/feedback-button.fa3b5f9f.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; +import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.4d55fa19.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.e1b7889c.js";import{F as at,L as st}from"../chunks/feedback-button.d96698de.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; diff --git a/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.ca96e93b.js b/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.11520b85.js similarity index 94% rename from ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.ca96e93b.js rename to ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.11520b85.js index a6cd3b0105..7950e4bedf 100644 --- a/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.ca96e93b.js +++ b/ui/assets/local/_app/immutable/entry/(login)-signin-page.svelte.11520b85.js @@ -1 +1 @@ -import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.48be4ca9.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.6dec3e74.js";import{F as at,L as st}from"../chunks/feedback-button.fa3b5f9f.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; +import{S as R,b as U,a as z,C as B,c as w,m as _,w as I,D as H,d as x,p as h,q as $,k as i,x as D,aa as J,u as l,E as T,f as y,L as u,j as V,g as W,F as G,K as Q,n as X}from"../chunks/index.a36c9cb0.js";import{p as Y}from"../chunks/stores.4d55fa19.js";import{P as Z}from"../chunks/page-title.b9565d2f.js";import{B as tt}from"../chunks/button.dbc76a4c.js";import{u as et}from"../chunks/route-for.e1b7889c.js";import{F as at,L as st}from"../chunks/feedback-button.d96698de.js";function rt(c){let e;return{c(){e=I("Continue to SSO")},l(s){e=D(s,"Continue to SSO")},m(s,a){y(s,e,a)},d(s){s&&i(e)}}}function nt(c){let e,s,a;return{c(){e=_("div"),s=_("p"),a=I(c[2]),this.h()},l(r){e=h(r,"DIV",{class:!0});var n=$(e);s=h(n,"P",{class:!0});var b=$(s);a=D(b,c[2]),b.forEach(i),n.forEach(i),this.h()},h(){l(s,"class","rounded-md border-2 border-orange-500 bg-orange-100 p-5 text-center"),l(e,"class","my-12 flex flex-col items-center justify-start gap-2")},m(r,n){y(r,e,n),u(e,s),u(s,a)},p:X,d(r){r&&i(e)}}}function ot(c){let e,s,a,r,n,b,P,m,S,f,v,F,j,E,q,A,k,p,O,C;e=new Z({props:{title:"Login",url:c[0].url.href}}),m=new at({}),p=new tt({props:{testId:"login-button",variant:"login",icon:"lock",$$slots:{default:[rt]},$$scope:{ctx:c}}}),p.$on("click",c[4]);let g=c[2]&&nt(c);return{c(){B(e.$$.fragment),s=w(),a=_("header"),r=_("a"),n=_("img"),P=w(),B(m.$$.fragment),S=w(),f=_("section"),v=_("h1"),F=I("Welcome back."),j=w(),E=_("p"),q=I("Let's get you signed in."),A=w(),k=_("div"),B(p.$$.fragment),O=w(),g&&g.c(),this.h()},l(t){H(e.$$.fragment,t),s=x(t),a=h(t,"HEADER",{class:!0});var o=$(a);r=h(o,"A",{href:!0,class:!0});var L=$(r);n=h(L,"IMG",{src:!0,alt:!0,class:!0}),L.forEach(i),P=x(o),H(m.$$.fragment,o),o.forEach(i),S=x(t),f=h(t,"SECTION",{class:!0});var d=$(f);v=h(d,"H1",{class:!0,"data-testid":!0});var K=$(v);F=D(K,"Welcome back."),K.forEach(i),j=x(d),E=h(d,"P",{class:!0,"data-testid":!0});var M=$(E);q=D(M,"Let's get you signed in."),M.forEach(i),A=x(d),k=h(d,"DIV",{class:!0});var N=$(k);H(p.$$.fragment,N),N.forEach(i),O=x(d),g&&g.l(d),d.forEach(i),this.h()},h(){J(n.src,b=st)||l(n,"src",b),l(n,"alt","Temporal Logo"),l(n,"class","max-h-10"),l(r,"href","/"),l(r,"class","inline-block"),l(a,"class","flex h-16 w-full items-center justify-between bg-primary px-10"),l(v,"class","text-8xl font-semibold"),l(v,"data-testid","login-title"),l(E,"class","my-7"),l(E,"data-testid","login-info"),l(k,"class","mx-auto"),l(f,"class","my-[20vh] text-center")},m(t,o){T(e,t,o),y(t,s,o),y(t,a,o),u(a,r),u(r,n),u(a,P),T(m,a,null),y(t,S,o),y(t,f,o),u(f,v),u(v,F),u(f,j),u(f,E),u(E,q),u(f,A),u(f,k),T(p,k,null),u(f,O),g&&g.m(f,null),C=!0},p(t,[o]){const L={};o&1&&(L.url=t[0].url.href),e.$set(L);const d={};o&32&&(d.$$scope={dirty:o,ctx:t}),p.$set(d),t[2]&&g.p(t,o)},i(t){C||(V(e.$$.fragment,t),V(m.$$.fragment,t),V(p.$$.fragment,t),C=!0)},o(t){W(e.$$.fragment,t),W(m.$$.fragment,t),W(p.$$.fragment,t),C=!1},d(t){G(e,t),t&&i(s),t&&i(a),G(m),t&&i(S),t&&i(f),G(p),g&&g.d()}}}function lt(c,e,s){let a;Q(c,Y,m=>s(0,a=m));let{data:r}=e,{settings:n}=r;const b=a.url.searchParams.get("error"),P=()=>{window.location.assign(et({settings:n,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return c.$$set=m=>{"data"in m&&s(3,r=m.data)},[a,n,b,r,P]}class pt extends R{constructor(e){super(),U(this,e,lt,ot,z,{data:3})}}export{pt as default}; diff --git a/ui/assets/local/_app/immutable/entry/_error.svelte.6a9edf30.js b/ui/assets/local/_app/immutable/entry/_error.svelte.c4809115.js similarity index 86% rename from ui/assets/local/_app/immutable/entry/_error.svelte.6a9edf30.js rename to ui/assets/local/_app/immutable/entry/_error.svelte.c4809115.js index efa400e22c..6fae6ca0ef 100644 --- a/ui/assets/local/_app/immutable/entry/_error.svelte.6a9edf30.js +++ b/ui/assets/local/_app/immutable/entry/_error.svelte.c4809115.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.a36c9cb0.js";/* empty css */import{p as d}from"../chunks/stores.48be4ca9.js";import{E as h}from"../chunks/error.895ac9a4.js";import{i as b}from"../chunks/is-network-error.cb50de70.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{}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.a36c9cb0.js";/* empty css */import{p as d}from"../chunks/stores.4d55fa19.js";import{E as h}from"../chunks/error.c66eca4c.js";import{i as b}from"../chunks/is-network-error.cb50de70.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{}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/cloud/_app/immutable/entry/app.9908b463.js b/ui/assets/local/_app/immutable/entry/app.9ded9747.js similarity index 66% rename from ui/assets/cloud/_app/immutable/entry/app.9908b463.js rename to ui/assets/local/_app/immutable/entry/app.9ded9747.js index bdc8afab45..62f456e70a 100644 --- a/ui/assets/cloud/_app/immutable/entry/app.9908b463.js +++ b/ui/assets/local/_app/immutable/entry/app.9ded9747.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 $,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 R,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.a36c9cb0.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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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 A=e;e=s(c),e===A?o[e].p(c,g):(R(),p(o[A],1,1,()=>{o[A]=null}),$(),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:A=null}=e;X(r.page.notify);let I=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{I&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,I=!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 B(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(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,A=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,A,I,T,V,r,i,S,C,B,j,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 $e=[()=>u(()=>import("../chunks/0.d61a942d.js"),["../chunks/0.d61a942d.js","../chunks/_layout.e4a84b88.js","./layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/1.7345cd09.js"),["../chunks/1.7345cd09.js","./_error.svelte.7943e0a1.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/error.34f8ab49.js","../chunks/navigation.214139c0.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/link.855bf830.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ab760c94.css"],import.meta.url),()=>u(()=>import("../chunks/2.6a7f566f.js"),["../chunks/2.6a7f566f.js","../chunks/_layout.ed225812.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.713ab407.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/cluster.c8f1465c.js","../chunks/namespaces-service.7d25bee8.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.1afc2b79.js","../chunks/search-attributes.b68ffd52.js","../chunks/atob.a55cedf9.js","../assets/_layout.845f7340.css","../assets/app.ab760c94.css","./(app)-layout.svelte.3ccf5ff0.js","../chunks/navigation.214139c0.js","../chunks/version-check.d006b302.js","../chunks/error.34f8ab49.js","../chunks/link.855bf830.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/filters.c5bf71c7.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/modal.a1162225.css","../chunks/nav-open.98e0e195.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/empty-state.9fb63265.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/menu-item.4122979b.js","../assets/menu-item.c8f2a9b8.css","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/workflow-run.8a407b5f.js","../assets/_layout.c5cc5311.css"],import.meta.url),()=>u(()=>import("../chunks/3.477a496f.js"),["../chunks/3.477a496f.js","./(app)-import-layout.svelte.dc7921e5.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/4.c943a7a4.js"),["../chunks/4.c943a7a4.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.d83a841d.js","../chunks/index.a36c9cb0.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/toggle-buttons.323d739d.js","../chunks/icon.33859671.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../assets/toggle-buttons.642fc5fa.css","../chunks/event-history-file-import.6d0c9554.js","../chunks/navigation.214139c0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.0c42129f.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.a55cedf9.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js"],import.meta.url),()=>u(()=>import("../chunks/5.3ec660d8.js"),["../chunks/5.3ec660d8.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/6.f1bd4009.js"),["../chunks/6.f1bd4009.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.c6d29908.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/7.686f6609.js"),["../chunks/7.686f6609.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.c0e3330b.js","../chunks/index.a36c9cb0.js","../chunks/index.deae5bd4.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/paths.bb4ad9d4.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/events-service.2f6a3c54.js","../chunks/event-view.f557cd63.js","../chunks/route-for.70dfbf18.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.1afc2b79.js","../chunks/route-for-api.81ced9ce.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/index.0c42129f.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.a55cedf9.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/workflow-terminate-enabled.3468108e.js","../chunks/workflow-service.24d3174e.js","../chunks/settings.34723850.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/core-user.f8486d3a.js","../chunks/split-button.207826fc.js","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../assets/split-button.b0d29bb4.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/link.855bf830.js","../chunks/loading.bcb9b7b8.js","../chunks/pollers-service.ed01de2f.js","../assets/_layout.d9b807f9.css"],import.meta.url),()=>u(()=>import("../chunks/8.69c714bb.js"),["../chunks/8.69c714bb.js","../chunks/_layout.ca39c28d.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.713ab407.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../assets/app.ab760c94.css","./(login)-layout.svelte.1b6cce0a.js"],import.meta.url),()=>u(()=>import("../chunks/9.cc387fa7.js"),["../chunks/9.cc387fa7.js","../chunks/_page.5f52b423.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","./(app)-page.svelte.b13e7f65.js","../chunks/index.a36c9cb0.js","../chunks/navigation.214139c0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/workflow-service.24d3174e.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.0bc9ce95.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd7810.js","../chunks/loading.bcb9b7b8.js"],import.meta.url),()=>u(()=>import("../chunks/10.3896fcb4.js"),["../chunks/10.3896fcb4.js","./(app)-data-converter-_port_-page.svelte.99157774.js","../chunks/index.a36c9cb0.js","../chunks/navigation.214139c0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/stores.0bc9ce95.js","../chunks/toaster.16c48a98.js","../chunks/data-converter-config.28d58945.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js"],import.meta.url),()=>u(()=>import("../chunks/11.e55babc3.js"),["../chunks/11.e55babc3.js","../chunks/_page.2933bd11.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js"],import.meta.url),()=>u(()=>import("../chunks/12.fe6aafc3.js"),["../chunks/12.fe6aafc3.js","./(app)-import-events-page.svelte.cb0573c1.js","../chunks/index.a36c9cb0.js","../chunks/event-history-file-import.6d0c9554.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/navigation.214139c0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.0c42129f.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.a55cedf9.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/stores.0bc9ce95.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js"],import.meta.url),()=>u(()=>import("../chunks/13.c2209471.js"),["../chunks/13.c2209471.js","../chunks/_page.241b6c5b.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js"],import.meta.url),()=>u(()=>import("../chunks/14.e122ff6a.js"),["../chunks/14.e122ff6a.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.c77db989.js","../chunks/index.a36c9cb0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.0766ff91.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.0bc9ce95.js","../chunks/route-for.70dfbf18.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.c5bf71c7.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/15.14f298d7.js"),["../chunks/15.14f298d7.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.9eff47c5.js","../chunks/index.a36c9cb0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.0766ff91.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.0bc9ce95.js","../chunks/route-for.70dfbf18.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.c5bf71c7.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/16.a4a3f50e.js"),["../chunks/16.a4a3f50e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.edfe12a1.js","../chunks/index.a36c9cb0.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/index.deae5bd4.js","../chunks/parse-with-big-int.0036a80a.js","../assets/code-block.86c182bf.css","../chunks/import-events.8d158e6c.js"],import.meta.url),()=>u(()=>import("../chunks/17.6215dca1.js"),["../chunks/17.6215dca1.js","./(app)-namespaces-page.svelte.b6370b74.js","../chunks/index.a36c9cb0.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/18.8ce378ed.js"),["../chunks/18.8ce378ed.js","../chunks/_page.10185099.js","../chunks/namespaces-service.7d25bee8.js","../chunks/toaster.16c48a98.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/paginated.1afc2b79.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/auth-user.3a7bc4db.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","./(app)-namespaces-_namespace_-page.svelte.2176d965.js","../chunks/versions.97216320.js","../chunks/cluster.c8f1465c.js","../chunks/settings.34723850.js","../chunks/search-attributes.b68ffd52.js","../chunks/format-time.c8c4770b.js","../chunks/page-title.b9565d2f.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/_page.c4e4432a.css"],import.meta.url),()=>u(()=>import("../chunks/19.b1f7add1.js"),["../chunks/19.b1f7add1.js","../chunks/_page.f3fdc977.js","../chunks/workflow-service.24d3174e.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces-service.7d25bee8.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.1afc2b79.js","./(app)-namespaces-_namespace_-archival-page.svelte.5ae65169.js","../chunks/time-format.dc246788.js","../chunks/search.f90e15c8.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/empty-state.9fb63265.js","../chunks/code-block.2cc5a38d.js","../assets/code-block.86c182bf.css","../chunks/page-title.b9565d2f.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/20.010cd9d5.js"),["../chunks/20.010cd9d5.js","./(app)-namespaces-_namespace_-schedules-page.svelte.53550ef7.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/route-for.70dfbf18.js","../chunks/schedule-frequency.9f1a589f.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/link.855bf830.js","../chunks/table-row.9df8daa0.js","../chunks/format-camel-case.960a78f9.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/core-user.f8486d3a.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/page-title.b9565d2f.js","../assets/_page.75cb2ee6.css"],import.meta.url),()=>u(()=>import("../chunks/21.70dc607c.js"),["../chunks/21.70dc607c.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e6a92bd3.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js","../chunks/icon.33859671.js","../chunks/route-for.70dfbf18.js","../chunks/navigation.214139c0.js","../chunks/schedule-frequency.9f1a589f.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/time-format.dc246788.js","../chunks/schedules.8e390e1d.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/workflow-service.24d3174e.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/modal.a1162225.css","../chunks/split-button.207826fc.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/split-button.b0d29bb4.css","../chunks/loading.bcb9b7b8.js","../chunks/core-user.f8486d3a.js","../assets/_page.b0c2dab8.css"],import.meta.url),()=>u(()=>import("../chunks/22.37472f78.js"),["../chunks/22.37472f78.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.6f3ad57a.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js","../chunks/schedules.8e390e1d.js","../chunks/navigation.214139c0.js","../chunks/route-for.70dfbf18.js","../chunks/schedule-frequency.9f1a589f.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/loading.bcb9b7b8.js","../chunks/schedule-form-view.b6e72c91.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.323d739d.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css"],import.meta.url),()=>u(()=>import("../chunks/23.5ee43c0a.js"),["../chunks/23.5ee43c0a.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.0943d09a.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/schedules.8e390e1d.js","../chunks/navigation.214139c0.js","../chunks/route-for.70dfbf18.js","../chunks/schedule-frequency.9f1a589f.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/schedule-form-view.b6e72c91.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.323d739d.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/24.2129c3c7.js"),["../chunks/24.2129c3c7.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/25.8859e9ec.js"),["../chunks/25.8859e9ec.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.60717323.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/pollers-service.ed01de2f.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/26.571f759f.js"),["../chunks/26.571f759f.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.37406c88.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.3468108e.js","../chunks/workflow-service.24d3174e.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/icon.33859671.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/namespaces.85dd7810.js","../chunks/empty-state.9fb63265.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/search.f90e15c8.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/nav-open.98e0e195.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/loading.bcb9b7b8.js","../chunks/page-title.b9565d2f.js","../chunks/filters.c5bf71c7.js","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/core-user.f8486d3a.js","../chunks/format-camel-case.960a78f9.js","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/simple-split-button.e333abd5.js","../assets/simple-split-button.58c6befd.css","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.323d739d.js","../assets/toggle-buttons.642fc5fa.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../assets/_page.99adfc9e.css"],import.meta.url),()=>u(()=>import("../chunks/27.25bf8dad.js"),["../chunks/27.25bf8dad.js","../chunks/_page.6428bd37.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.24d3174e.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/28.8a81a7db.js"),["../chunks/28.8a81a7db.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/29.f23f0d0a.js"),["../chunks/29.f23f0d0a.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.56651981.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/is-event-type.763b5d4b.js","../chunks/has.48bed8a5.js","../chunks/events-service.2f6a3c54.js","../chunks/route-for.70dfbf18.js","../chunks/workflow-run.8a407b5f.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.1afc2b79.js","../chunks/route-for-api.81ced9ce.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/index.0c42129f.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.a55cedf9.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/toggle-buttons.323d739d.js","../assets/toggle-buttons.642fc5fa.css","../chunks/link.855bf830.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/pagination.69c5aeb5.js","../chunks/navigation.214139c0.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/empty-state.9fb63265.js","../chunks/event-empty-row.0766ff91.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/filters.c5bf71c7.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../chunks/page-title.b9565d2f.js","../assets/_page.250e64e1.css"],import.meta.url),()=>u(()=>import("../chunks/30.99b4785d.js"),["../chunks/30.99b4785d.js","../chunks/_page.fdb95c2e.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js"],import.meta.url),()=>u(()=>import("../chunks/31.99b4785d.js"),["../chunks/31.99b4785d.js","../chunks/_page.3552ec44.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js"],import.meta.url),()=>u(()=>import("../chunks/32.99b4785d.js"),["../chunks/32.99b4785d.js","../chunks/_page.519ce37d.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.70dfbf18.js","../chunks/paths.bb4ad9d4.js"],import.meta.url),()=>u(()=>import("../chunks/33.34c842af.js"),["../chunks/33.34c842af.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.4bbdc4ec.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/page-title.b9565d2f.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/34.8384d359.js"),["../chunks/34.8384d359.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.779cfcab.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/query-service.f44e9910.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.a55cedf9.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../chunks/empty-state.9fb63265.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/35.f35c83e6.js"),["../chunks/35.f35c83e6.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.a37c5bb6.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/query-service.f44e9910.js","../chunks/route-for-api.81ced9ce.js","../chunks/route-for.70dfbf18.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.f6f1b7ab.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.a55cedf9.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../chunks/link.855bf830.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/36.1131689f.js"),["../chunks/36.1131689f.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.12a6364f.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/37.e5019ae3.js"),["../chunks/37.e5019ae3.js","./(app)-select-namespace-page.svelte.92610ade.js","../chunks/index.a36c9cb0.js","../chunks/navigation.214139c0.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/stores.0bc9ce95.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.70dfbf18.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-service.24d3174e.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.81ced9ce.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.18f8dd4a.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../assets/_page.df90e04e.css"],import.meta.url),()=>u(()=>import("../chunks/38.d88830e5.js"),["../chunks/38.d88830e5.js","./(login)-login-page.svelte.a6553057.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.70dfbf18.js","../chunks/feedback-button.9303fa9f.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url),()=>u(()=>import("../chunks/39.8d28723a.js"),["../chunks/39.8d28723a.js","./(login)-signin-page.svelte.a6553057.js","../chunks/index.a36c9cb0.js","../chunks/stores.0bc9ce95.js","../chunks/singletons.1bc1b54a.js","../chunks/index.deae5bd4.js","../chunks/paths.bb4ad9d4.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.70dfbf18.js","../chunks/feedback-button.9303fa9f.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url)],Re=[],Le={"/(app)":[9,[2]],"/(app)/data-converter/[port]":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[38,[8]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2]],"/(app)/namespaces/[namespace]/archival":[19,[2]],"/(app)/namespaces/[namespace]/schedules":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[22,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[24,[2,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[25,[2,6]],"/(app)/namespaces/[namespace]/workflows":[26,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[27,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[28,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[29,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[30,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[31,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[32,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[33,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[34,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[35,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[36,[2,7]],"/(app)/select-namespace":[37,[2]],"/(login)/signin":[39,[8]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,$e as nodes,be as root,Re 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 $,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 R,A as P,B as h,C as w,D,E,F as k}from"../chunks/index.a36c9cb0.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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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){R();const a=e;p(a.$$.fragment,1,0,()=>{k(a,1)}),$()}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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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):(R(),p(t[c],1,1,()=>{t[c]=null}),$(),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 A=e;e=s(c),e===A?o[e].p(c,g):(R(),p(o[A],1,1,()=>{o[A]=null}),$(),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:A=null}=e;X(r.page.notify);let I=!1,T=!1,V=null;Y(()=>{const f=r.page.subscribe(()=>{I&&(n(9,T=!0),n(10,V=document.title||"untitled page"))});return n(8,I=!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 B(f){P[f?"unshift":"push"](()=>{t[3]=f,n(0,t)})}function j(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,A=f.data_4)},_.$$.update=()=>{_.$$.dirty&6144&&r.page.set(i)},[t,l,o,s,a,c,g,A,I,T,V,r,i,S,C,B,j,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 $e=[()=>u(()=>import("../chunks/0.d61a942d.js"),["../chunks/0.d61a942d.js","../chunks/_layout.e4a84b88.js","./layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/1.b43a1a1d.js"),["../chunks/1.b43a1a1d.js","./_error.svelte.c4809115.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/error.c66eca4c.js","../chunks/navigation.0861544c.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/link.855bf830.js","../chunks/parse-with-big-int.0036a80a.js","../assets/app.ab760c94.css"],import.meta.url),()=>u(()=>import("../chunks/2.33df14f4.js"),["../chunks/2.33df14f4.js","../chunks/_layout.172b4801.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.98a38158.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/cluster.c8f1465c.js","../chunks/namespaces-service.9dd6901c.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.9206d4de.js","../chunks/search-attributes.b68ffd52.js","../chunks/atob.cd2a0f1e.js","../assets/_layout.845f7340.css","../assets/app.ab760c94.css","./(app)-layout.svelte.82055955.js","../chunks/navigation.0861544c.js","../chunks/version-check.d006b302.js","../chunks/error.c66eca4c.js","../chunks/link.855bf830.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/filters.f7fa907d.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/modal.a1162225.css","../chunks/nav-open.98e0e195.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/empty-state.9fb63265.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/menu-item.4122979b.js","../assets/menu-item.c8f2a9b8.css","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/workflow-run.8a407b5f.js","../assets/_layout.c5cc5311.css"],import.meta.url),()=>u(()=>import("../chunks/3.dc0f47ed.js"),["../chunks/3.dc0f47ed.js","./(app)-import-layout.svelte.48385c32.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/4.98b5acf0.js"),["../chunks/4.98b5acf0.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-layout.svelte.8f3cea98.js","../chunks/index.a36c9cb0.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/toggle-buttons.9513a782.js","../chunks/icon.33859671.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../assets/toggle-buttons.642fc5fa.css","../chunks/event-history-file-import.a9e077a9.js","../chunks/navigation.0861544c.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.42d6ae10.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.cd2a0f1e.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js"],import.meta.url),()=>u(()=>import("../chunks/5.3ec660d8.js"),["../chunks/5.3ec660d8.js","./(app)-namespaces-_namespace_-schedules-layout.svelte.1b6cce0a.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/6.f1bd4009.js"),["../chunks/6.f1bd4009.js","./(app)-namespaces-_namespace_-task-queues-layout.svelte.c6d29908.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/7.78563745.js"),["../chunks/7.78563745.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-layout.svelte.bb0bded7.js","../chunks/index.a36c9cb0.js","../chunks/index.deae5bd4.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/paths.9a3098df.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/events-service.389da786.js","../chunks/event-view.f557cd63.js","../chunks/route-for.e1b7889c.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.9206d4de.js","../chunks/route-for-api.1addc328.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/index.42d6ae10.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.cd2a0f1e.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/workflow-terminate-enabled.47bfe8cf.js","../chunks/workflow-service.a6d60dde.js","../chunks/settings.34723850.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/core-user.f8486d3a.js","../chunks/split-button.207826fc.js","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../assets/split-button.b0d29bb4.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/link.855bf830.js","../chunks/loading.bcb9b7b8.js","../chunks/pollers-service.35343e4c.js","../assets/_layout.d9b807f9.css"],import.meta.url),()=>u(()=>import("../chunks/8.04182f08.js"),["../chunks/8.04182f08.js","../chunks/_layout.fd539a93.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/settings-service.98a38158.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../assets/app.ab760c94.css","./(login)-layout.svelte.1b6cce0a.js"],import.meta.url),()=>u(()=>import("../chunks/9.968e9ce2.js"),["../chunks/9.968e9ce2.js","../chunks/_page.a4d16f8f.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","./(app)-page.svelte.b42fe80a.js","../chunks/index.a36c9cb0.js","../chunks/navigation.0861544c.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/workflow-service.a6d60dde.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.4d55fa19.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces.85dd7810.js","../chunks/loading.bcb9b7b8.js"],import.meta.url),()=>u(()=>import("../chunks/10.673daa5d.js"),["../chunks/10.673daa5d.js","./(app)-data-converter-_port_-page.svelte.e1c96b62.js","../chunks/index.a36c9cb0.js","../chunks/navigation.0861544c.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/stores.4d55fa19.js","../chunks/toaster.16c48a98.js","../chunks/data-converter-config.28d58945.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js"],import.meta.url),()=>u(()=>import("../chunks/11.05f481fc.js"),["../chunks/11.05f481fc.js","../chunks/_page.63185530.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js"],import.meta.url),()=>u(()=>import("../chunks/12.65b0f656.js"),["../chunks/12.65b0f656.js","./(app)-import-events-page.svelte.2f02ee77.js","../chunks/index.a36c9cb0.js","../chunks/event-history-file-import.a9e077a9.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/navigation.0861544c.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/index.42d6ae10.js","../chunks/is-http.1e6b12cd.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.cd2a0f1e.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/toaster.16c48a98.js","../chunks/import-events.8d158e6c.js","../chunks/index.f8c667a1.js","../chunks/stores.4d55fa19.js","../chunks/auth-user.3a7bc4db.js","../chunks/namespaces.85dd7810.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js"],import.meta.url),()=>u(()=>import("../chunks/13.9a50ae36.js"),["../chunks/13.9a50ae36.js","../chunks/_page.dc44871d.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js"],import.meta.url),()=>u(()=>import("../chunks/14.09424401.js"),["../chunks/14.09424401.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-compact-page.svelte.3d7cbc03.js","../chunks/index.a36c9cb0.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.0657830c.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.4d55fa19.js","../chunks/route-for.e1b7889c.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.f7fa907d.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/15.88990bdc.js"),["../chunks/15.88990bdc.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-feed-page.svelte.cd526e60.js","../chunks/index.a36c9cb0.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/import-events.8d158e6c.js","../chunks/event-empty-row.0657830c.js","../chunks/icon-button.bcd06a36.js","../chunks/icon.33859671.js","../assets/icon-button.aeb4a171.css","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/has.48bed8a5.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/format-event-attributes.7f34c129.js","../chunks/format-camel-case.960a78f9.js","../chunks/stores.4d55fa19.js","../chunks/route-for.e1b7889c.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/link.855bf830.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/filters.f7fa907d.js","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css"],import.meta.url),()=>u(()=>import("../chunks/16.a4a3f50e.js"),["../chunks/16.a4a3f50e.js","./(app)-import-events-_namespace_-_workflow_-_run_-history-json-page.svelte.edfe12a1.js","../chunks/index.a36c9cb0.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/index.deae5bd4.js","../chunks/parse-with-big-int.0036a80a.js","../assets/code-block.86c182bf.css","../chunks/import-events.8d158e6c.js"],import.meta.url),()=>u(()=>import("../chunks/17.501cabc3.js"),["../chunks/17.501cabc3.js","./(app)-namespaces-page.svelte.46fbe155.js","../chunks/index.a36c9cb0.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/18.64c27fe4.js"),["../chunks/18.64c27fe4.js","../chunks/_page.2d2d6704.js","../chunks/namespaces-service.9dd6901c.js","../chunks/toaster.16c48a98.js","../chunks/index.deae5bd4.js","../chunks/index.a36c9cb0.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/paginated.9206d4de.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/auth-user.3a7bc4db.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","./(app)-namespaces-_namespace_-page.svelte.92ac8e22.js","../chunks/versions.97216320.js","../chunks/cluster.c8f1465c.js","../chunks/settings.34723850.js","../chunks/search-attributes.b68ffd52.js","../chunks/format-time.c8c4770b.js","../chunks/page-title.b9565d2f.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/_page.c4e4432a.css"],import.meta.url),()=>u(()=>import("../chunks/19.beae6e9e.js"),["../chunks/19.beae6e9e.js","../chunks/_page.6a136dce.js","../chunks/workflow-service.a6d60dde.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/namespaces-service.9dd6901c.js","../chunks/namespaces.85dd7810.js","../chunks/paginated.9206d4de.js","./(app)-namespaces-_namespace_-archival-page.svelte.8f3cd89b.js","../chunks/time-format.dc246788.js","../chunks/search.75414562.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/empty-state.9fb63265.js","../chunks/code-block.2cc5a38d.js","../assets/code-block.86c182bf.css","../chunks/page-title.b9565d2f.js","../assets/_page.c5268cbc.css"],import.meta.url),()=>u(()=>import("../chunks/20.0d08c415.js"),["../chunks/20.0d08c415.js","./(app)-namespaces-_namespace_-schedules-page.svelte.4b0c2447.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/route-for.e1b7889c.js","../chunks/schedule-frequency.d59b15a7.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/link.855bf830.js","../chunks/table-row.9df8daa0.js","../chunks/format-camel-case.960a78f9.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../chunks/core-user.f8486d3a.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/page-title.b9565d2f.js","../assets/_page.75cb2ee6.css"],import.meta.url),()=>u(()=>import("../chunks/21.ec96ce57.js"),["../chunks/21.ec96ce57.js","./(app)-namespaces-_namespace_-schedules-_schedule_-page.svelte.e5fae646.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js","../chunks/icon.33859671.js","../chunks/route-for.e1b7889c.js","../chunks/navigation.0861544c.js","../chunks/schedule-frequency.d59b15a7.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/time-format.dc246788.js","../chunks/schedules.44518418.js","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/workflow-service.a6d60dde.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/modal.50ea7269.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/modal.a1162225.css","../chunks/split-button.207826fc.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/split-button.b0d29bb4.css","../chunks/loading.bcb9b7b8.js","../chunks/core-user.f8486d3a.js","../assets/_page.b0c2dab8.css"],import.meta.url),()=>u(()=>import("../chunks/22.53246032.js"),["../chunks/22.53246032.js","./(app)-namespaces-_namespace_-schedules-_schedule_-edit-page.svelte.9092ec53.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js","../chunks/schedules.44518418.js","../chunks/navigation.0861544c.js","../chunks/route-for.e1b7889c.js","../chunks/schedule-frequency.d59b15a7.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/loading.bcb9b7b8.js","../chunks/schedule-form-view.bc5fe269.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.9513a782.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css"],import.meta.url),()=>u(()=>import("../chunks/23.3a059c1b.js"),["../chunks/23.3a059c1b.js","./(app)-namespaces-_namespace_-schedules-create-page.svelte.f0825f49.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/schedules.44518418.js","../chunks/navigation.0861544c.js","../chunks/route-for.e1b7889c.js","../chunks/schedule-frequency.d59b15a7.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/calendar.81d1e381.js","../chunks/schedule-form-view.bc5fe269.js","../chunks/icon.33859671.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/input.a193633b.js","../chunks/copy-to-clipboard.d1283b5b.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/input.c605c047.css","../chunks/tab.e1caed35.js","../assets/tab.642b05c5.css","../chunks/simple-split-button.e333abd5.js","../chunks/menu.c922b8b1.js","../assets/menu.7edf4651.css","../assets/simple-split-button.58c6befd.css","../chunks/toggle-buttons.9513a782.js","../assets/toggle-buttons.642fc5fa.css","../assets/schedule-form-view.9b9d908c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/24.2129c3c7.js"),["../chunks/24.2129c3c7.js","./(app)-namespaces-_namespace_-task-queues-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/25.66a6de3f.js"),["../chunks/25.66a6de3f.js","./(app)-namespaces-_namespace_-task-queues-_queue_-page.svelte.2d909e23.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/pollers-service.35343e4c.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/26.a4207a87.js"),["../chunks/26.a4207a87.js","../chunks/_page.b14944b6.js","./(app)-namespaces-_namespace_-workflows-page.svelte.5f628e67.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/time-format.dc246788.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workflow-terminate-enabled.47bfe8cf.js","../chunks/workflow-service.a6d60dde.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../chunks/icon.33859671.js","../chunks/menu-item.4122979b.js","../chunks/tooltip.bd2ec5a4.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/tooltip.78399487.css","../assets/menu-item.c8f2a9b8.css","../chunks/menu.c922b8b1.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../assets/menu.7edf4651.css","../assets/workflow-terminate-enabled.35c6a6b9.css","../chunks/namespaces.85dd7810.js","../chunks/empty-state.9fb63265.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/search.75414562.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/workflow-status.47d31de2.js","../assets/workflow-status.a22a9f77.css","../chunks/table-row.9df8daa0.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../assets/search.d6094a94.css","../chunks/nav-open.98e0e195.js","../chunks/input.a193633b.js","../assets/input.c605c047.css","../chunks/loading.bcb9b7b8.js","../chunks/page-title.b9565d2f.js","../chunks/filters.f7fa907d.js","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/core-user.f8486d3a.js","../chunks/format-camel-case.960a78f9.js","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/simple-split-button.e333abd5.js","../assets/simple-split-button.58c6befd.css","../chunks/calendar.81d1e381.js","../chunks/toggle-buttons.9513a782.js","../assets/toggle-buttons.642fc5fa.css","../chunks/modal.50ea7269.js","../assets/modal.a1162225.css","../assets/_page.99adfc9e.css"],import.meta.url),()=>u(()=>import("../chunks/27.435a19c1.js"),["../chunks/27.435a19c1.js","../chunks/_page.f4dc3afd.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/workflow-service.a6d60dde.js","../chunks/index.a36c9cb0.js","../chunks/settings.34723850.js","../chunks/index.deae5bd4.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js"],import.meta.url),()=>u(()=>import("../chunks/28.8a81a7db.js"),["../chunks/28.8a81a7db.js","../chunks/_page.2bedfed4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-page.svelte.083bdb9c.js","../chunks/index.a36c9cb0.js"],import.meta.url),()=>u(()=>import("../chunks/29.55cb2cc7.js"),["../chunks/29.55cb2cc7.js","../chunks/_page.ed77219c.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-history-page.svelte.ad9f09bb.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/event-view.f557cd63.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/is-event-type.763b5d4b.js","../chunks/has.48bed8a5.js","../chunks/events-service.389da786.js","../chunks/route-for.e1b7889c.js","../chunks/workflow-run.8a407b5f.js","../chunks/auth-user.3a7bc4db.js","../chunks/icon.33859671.js","../chunks/paginated.9206d4de.js","../chunks/route-for-api.1addc328.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/index.42d6ae10.js","../chunks/is-http.1e6b12cd.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/atob.cd2a0f1e.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/get-event-categorization.d6ff7ec7.js","../chunks/simplify-attributes.ba9e7501.js","../assets/events-service.5f4c72a4.css","../chunks/toggle-buttons.9513a782.js","../assets/toggle-buttons.642fc5fa.css","../chunks/link.855bf830.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/tooltip.bd2ec5a4.js","../assets/tooltip.78399487.css","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/pagination.6f9a2b9c.js","../chunks/navigation.0861544c.js","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../assets/pagination.07b49192.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/empty-state.9fb63265.js","../chunks/event-empty-row.0657830c.js","../chunks/icon-button.bcd06a36.js","../assets/icon-button.aeb4a171.css","../chunks/dropdown-menu.c2d1df3e.js","../assets/dropdown-menu.0eec5aad.css","../chunks/filters.f7fa907d.js","../chunks/loading.bcb9b7b8.js","../assets/event-empty-row.cbc2729c.css","../chunks/drawer.62a75e11.js","../assets/drawer.020c3b95.css","../chunks/button.dbc76a4c.js","../assets/button.ead2e440.css","../chunks/page-title.b9565d2f.js","../assets/_page.250e64e1.css"],import.meta.url),()=>u(()=>import("../chunks/30.06497628.js"),["../chunks/30.06497628.js","../chunks/_page.b4504080.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js"],import.meta.url),()=>u(()=>import("../chunks/31.06497628.js"),["../chunks/31.06497628.js","../chunks/_page.52adf0a4.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js"],import.meta.url),()=>u(()=>import("../chunks/32.06497628.js"),["../chunks/32.06497628.js","../chunks/_page.cd220957.js","../chunks/index.b1f5b21f.js","../chunks/control.e7f5239e.js","../chunks/route-for.e1b7889c.js","../chunks/paths.9a3098df.js"],import.meta.url),()=>u(()=>import("../chunks/33.00c77b32.js"),["../chunks/33.00c77b32.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-pending-activities-page.svelte.9989f0e0.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../chunks/empty-state.9fb63265.js","../chunks/link.855bf830.js","../chunks/code-block.2cc5a38d.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/format-event-attributes.7f34c129.js","../chunks/time-format.dc246788.js","../chunks/index.f8c667a1.js","../chunks/is-event-type.763b5d4b.js","../chunks/format-camel-case.960a78f9.js","../chunks/to-time-difference.7cff7598.js","../chunks/page-title.b9565d2f.js","../assets/_page.682a0c0d.css"],import.meta.url),()=>u(()=>import("../chunks/34.b098431d.js"),["../chunks/34.b098431d.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-query-page.svelte.cac9274d.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/query-service.7e164ee8.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/auth-user.3a7bc4db.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.cd2a0f1e.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/simple-select.6bb2c039.js","../assets/simple-select.51b2afe1.css","../chunks/empty-state.9fb63265.js","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/loading.bcb9b7b8.js","../chunks/toggle-switch.48168915.js","../assets/toggle-switch.20b05b8c.css","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/35.e87a9d37.js"),["../chunks/35.e87a9d37.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-stack-trace-page.svelte.f1d13c9d.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/query-service.7e164ee8.js","../chunks/route-for-api.1addc328.js","../chunks/route-for.e1b7889c.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/has.48bed8a5.js","../chunks/get-codec.d25c452e.js","../chunks/data-converter-config.28d58945.js","../chunks/is-http.1e6b12cd.js","../chunks/atob.cd2a0f1e.js","../chunks/code-block.2cc5a38d.js","../chunks/icon.33859671.js","../chunks/copy-to-clipboard.d1283b5b.js","../assets/code-block.86c182bf.css","../chunks/button.dbc76a4c.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/empty-state.9fb63265.js","../chunks/loading.bcb9b7b8.js","../chunks/link.855bf830.js","../chunks/page-title.b9565d2f.js"],import.meta.url),()=>u(()=>import("../chunks/36.2affd622.js"),["../chunks/36.2affd622.js","./(app)-namespaces-_namespace_-workflows-_workflow_-_run_-workers-page.svelte.975f4e79.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-run.8a407b5f.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/workers-list.39b61477.js","../chunks/icon.33859671.js","../chunks/time-format.dc246788.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/empty-state.9fb63265.js","../chunks/table-header-row.eb620974.js","../assets/table-header-row.ddd48458.css","../chunks/table-row.9df8daa0.js"],import.meta.url),()=>u(()=>import("../chunks/37.ff403f4b.js"),["../chunks/37.ff403f4b.js","./(app)-select-namespace-page.svelte.c0fd0080.js","../chunks/index.a36c9cb0.js","../chunks/navigation.0861544c.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/stores.4d55fa19.js","../chunks/namespaces.85dd7810.js","../chunks/persist-store.863ae031.js","../chunks/parse-with-big-int.0036a80a.js","../chunks/route-for.e1b7889c.js","../chunks/empty-state.9fb63265.js","../chunks/icon.33859671.js","../chunks/page-title.b9565d2f.js","../chunks/workflow-service.a6d60dde.js","../chunks/settings.34723850.js","../chunks/simplify-attributes.ba9e7501.js","../chunks/format-date.7c274b02.js","../chunks/format-time.c8c4770b.js","../chunks/has.48bed8a5.js","../chunks/route-for-api.1addc328.js","../chunks/auth-user.3a7bc4db.js","../chunks/toaster.16c48a98.js","../chunks/is-network-error.cb50de70.js","../chunks/list-workflow-query.11f239c5.js","../chunks/cluster.c8f1465c.js","../chunks/versions.97216320.js","../chunks/version-check.d006b302.js","../assets/_page.df90e04e.css"],import.meta.url),()=>u(()=>import("../chunks/38.7bc6e567.js"),["../chunks/38.7bc6e567.js","./(login)-login-page.svelte.11520b85.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.e1b7889c.js","../chunks/feedback-button.d96698de.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url),()=>u(()=>import("../chunks/39.a5bad190.js"),["../chunks/39.a5bad190.js","./(login)-signin-page.svelte.11520b85.js","../chunks/index.a36c9cb0.js","../chunks/stores.4d55fa19.js","../chunks/singletons.65b9baf3.js","../chunks/index.deae5bd4.js","../chunks/paths.9a3098df.js","../chunks/page-title.b9565d2f.js","../chunks/button.dbc76a4c.js","../chunks/icon.33859671.js","../chunks/badge.7f30446f.js","../assets/badge.bfa9122b.css","../assets/button.ead2e440.css","../chunks/route-for.e1b7889c.js","../chunks/feedback-button.d96698de.js","../assets/feedback-button.4e0dbf07.css"],import.meta.url)],Re=[],Le={"/(app)":[9,[2]],"/(app)/data-converter/[port]":[10,[2]],"/(app)/import":[11,[2,3]],"/(app)/import/events":[12,[2,3]],"/(app)/import/events/[namespace]/[workflow]/[run]/history":[13,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/compact":[14,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/feed":[15,[2,3,4]],"/(app)/import/events/[namespace]/[workflow]/[run]/history/json":[16,[2,3,4]],"/(login)/login":[38,[8]],"/(app)/namespaces":[17,[2]],"/(app)/namespaces/[namespace]":[18,[2]],"/(app)/namespaces/[namespace]/archival":[19,[2]],"/(app)/namespaces/[namespace]/schedules":[20,[2,5]],"/(app)/namespaces/[namespace]/schedules/create":[23,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]":[21,[2,5]],"/(app)/namespaces/[namespace]/schedules/[schedule]/edit":[22,[2,5]],"/(app)/namespaces/[namespace]/task-queues":[24,[2,6]],"/(app)/namespaces/[namespace]/task-queues/[queue]":[25,[2,6]],"/(app)/namespaces/[namespace]/workflows":[26,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]":[27,[2]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]":[28,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history":[29,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/compact":[30,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/feed":[31,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/history/json":[32,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/pending-activities":[33,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/query":[34,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace":[35,[2,7]],"/(app)/namespaces/[namespace]/workflows/[workflow]/[run]/workers":[36,[2,7]],"/(app)/select-namespace":[37,[2]],"/(login)/signin":[39,[8]]},Pe={handleError:({error:_})=>{console.error(_)}};export{Le as dictionary,Pe as hooks,ve as matchers,$e as nodes,be as root,Re as server_loads}; diff --git a/ui/assets/local/_app/immutable/entry/start.5866f32b.js b/ui/assets/local/_app/immutable/entry/start.d4bd6572.js similarity index 99% rename from ui/assets/local/_app/immutable/entry/start.5866f32b.js rename to ui/assets/local/_app/immutable/entry/start.d4bd6572.js index 4b46b3d3e3..3e7c80309b 100644 --- a/ui/assets/local/_app/immutable/entry/start.5866f32b.js +++ b/ui/assets/local/_app/immutable/entry/start.d4bd6572.js @@ -1,3 +1,3 @@ -import{o as De,t as se}from"../chunks/index.a36c9cb0.js";import{S as ze,a as Be,I as q,g as Ce,f as qe,b as ge,c as ce,s as M,i as Fe,d as Q,P as Me,e as We}from"../chunks/singletons.7cea9c5f.js";import{b as B}from"../chunks/paths.88db541d.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(be(n)),le(n,i));const te=new Map;function it(n,i){const p=be(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=be(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((_,y)=>{if(y%2){if(_.startsWith("x+"))return ye(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return ye(String.fromCharCode(..._.slice(2).split("-").map(I=>parseInt(I,16))));const h=ct.exec(_);if(!h)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,A,v,P]=h;return i.push({name:v,matcher:P,optional:!!$,rest:!!A,chained:A?y===1&&L[0]==="":!1}),A?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return ye(_)}).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;Ly).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const y=i[L+1],h=u[L+1];y&&!y.rest&&y.optional&&h&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function ye(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,[_,y,h]])=>{const{pattern:$,params:A}=lt(l),v={id:l,exec:P=>{const I=$.exec(P);if(I)return dt(I,A,c)},errors:[1,...h||[]].map(P=>n[P]),layouts:[0,...y||[]].map(L),leaf:d(_)};return v.errors.length=v.layouts.length=Math.max(v.errors.length,v.layouts.length),v});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],y=i==null?void 0:i[_];if(y)return c[d]=y(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const h=new Set;c[d]=h;for(let v=1;vi!=null)}const z=Ge(ze)??{},Z=Ge(Be)??{};function we(n){z[n]=Q()}function kt(n,i){var xe;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const y={before_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},$=!1,A=!1,v=!0,P=!1,I=!1,G=!1,H=!1,F,N=(xe=history.state)==null?void 0:xe[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=z[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,ve,ne;async function Ee(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=Y(t,!0);_=null,await Ie(e,t,[])}function ke(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 Se(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 Re(){we(N),Ve(ze,z),ke(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},m,f){return typeof t=="string"&&(t=new URL(t,Ce(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:m,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Le(t){return _={id:t.id,promise:Oe(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 Ie(t,e,r,a,s,o={},m){var w,g,R;ve=o;let f=t&&await Oe(t);if(f||(f=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)),e=(t==null?void 0:t.url)||e,ve!==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((w=f.props.page)==null?void 0:w.status)>=400&&await M.updated.check()&&await W(e);if(L.length=0,H=!1,P=!0,a&&(we(a),ke(a)),(g=f.props.page)!=null&&g.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:k}=s,O=k.replaceState?0:1;if(k.state[q]=N+=O,history[k.replaceState?"replaceState":"pushState"](k.state,"",e),!k.replaceState){let S=N+1;for(;Z[S]||z[S];)delete Z[S],delete z[S],S+=1}}if(_=null,A?(h=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Ae(f),s){const{scroll:k,keepfocus:O}=s,{activeElement:S}=document;if(await se(),v){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));k?scrollTo(k.x,k.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!O&&!b&&await _e()}else await se();v=!0,f.props.page&&(V=f.props.page),m&&m(),P=!1}function Ae(t){var a;h=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}),Se(N);const r={from:null,to:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};y.after_navigate.forEach(s=>s(r)),A=!0}async function J({url:t,params:e,branch:r,status:a,error:s,route:o,form:m}){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 w={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};m!==void 0&&(w.props.form=m);let g={},R=!V,k=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 O(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),A?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:O,parent(){return f.parent=!0,e()}};m=await w.universal.load.call(null,S)??null,m=m?await ht(m):null}return{node:w,loader:t,server:o,universal:(R=w.universal)!=null&&R.load?{type:"data",data:m,uses:f}:null,data:m??(o==null?void 0:o.data)??null,slash:((k=w.universal)==null?void 0:k.trailingSlash)??(o==null?void 0:o.slash)}}function Pe(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]!==h.params[o])return!0;for(const o of a.dependencies)if(L.some(m=>m(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 Oe({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:m,leaf:f}=s,w=[...m,f];o.forEach(E=>E==null?void 0:E().catch(()=>{})),w.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let g=null;const R=h.url?t!==h.url.pathname+h.url.search:!1,k=h.route?s.id!==h.route.id:!1;let O=!1;const S=w.map((E,T)=>{var K;const j=h.branch[T],x=!!(E!=null&&E[0])&&((j==null?void 0:j.loader)!==E[1]||Pe(O,k,R,(K=j.server)==null?void 0:K.uses,a));return x&&(O=!0),x});if(S.some(Boolean)){try{g=await Ke(r,S)}catch(E){return re({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(g.type==="redirect")return g}const b=g==null?void 0:g.nodes;let U=!1;const D=w.map(async(E,T)=>{var he;if(!E)return;const j=h.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&E[1]===(j==null?void 0:j.loader)&&!Pe(U,k,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:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const $e={};for(let me=0;me{});const C=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(o)}),w={node:await u(),loader:u,universal:null,server:null,data:null};return await J({url:r,params:s,branch:[f,w],status:t,error:e,route:null})}function Y(t,e){if(Fe(t,B))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(B.length)||"/")}function je({url:t,type:e,intent:r,delta:a}){var f,w;let s=!1;const o={from:{params:h.params,route:{id:((f=h.route)==null?void 0:f.id)??null},url:h.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((w=r==null?void 0:r.route)==null?void 0:w.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const m={...o,cancel:()=>{s=!0}};return I||y.before_navigate.forEach(g=>g(m)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:m,nav_token:f,accepted:w,blocked:g}){const R=Y(t,!1),k=je({url:t,type:o,delta:m,intent:R});if(!k){g();return}const O=N;w(),I=!0,A&&M.navigating.set(k),await Ie(R,t,a,O,{scroll:e,keepfocus:r,details:s},f,()=>{I=!1,y.after_navigate.forEach(S=>S(k)),M.navigating.set(null)})}async function Ne(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await W(t)}function W(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const m=o.target;clearTimeout(t),t=setTimeout(()=>{a(m,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 m of o)m.isIntersecting&&(ae(oe(new URL(m.target.href))),r.unobserve(m.target))},{threshold:0});function a(o,m){const f=qe(o,d);if(!f)return;const{url:w,external:g}=ge(f,B);if(g)return;const R=ce(f);if(!R.reload)if(m<=R.preload_data){const k=Y(w,!1);k&&Le(k)}else m<=R.preload_code&&ae(oe(w))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:m,external:f}=ge(o,B);if(f)continue;const w=ce(o);w.reload||(w.preload_code===Me.viewport&&r.observe(o),w.preload_code===Me.eager&&ae(oe(m)))}}y.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=>{De(()=>(y.after_navigate.push(t),()=>{const e=y.after_navigate.indexOf(t);y.after_navigate.splice(e,1)}))},before_navigate:t=>{De(()=>(y.before_navigate.push(t),()=>{const e=y.before_navigate.indexOf(t);y.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(P||!A)&&(v=!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 Ee()},invalidateAll:()=>(H=!0,Ee()),preload_data:async t=>{const e=new URL(t,Ce(document)),r=Y(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Le(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=h;if(!a)return;const s=await Ue(h.branch.length,r,a.errors);if(s){const o=await J({url:e,params:h.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});h=o.state,F.$set(o.props),se().then(_e)}}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"&&_e())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Re(),!I){const s={from:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:h.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};y.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Re()}),(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=qe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,B);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const m=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||m.reload){je({url:a,type:"link"})?I=!0:e.preventDefault();return}const[w,g]=a.href.split("#");if(g!==void 0&&w===location.href.split("#")[0]){G=!0,we(N),h.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:m.noscroll?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState: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(Fe(o,B))return;const m=e.target,{noscroll:f,reload:w}=ce(m);if(w)return;e.preventDefault(),e.stopPropagation();const g=new FormData(m),R=a==null?void 0:a.getAttribute("name");R&&g.append(R,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(g).toString(),ie({url:o,scroll:f?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},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=z[e.state[q]];if(h.url.href.split("#")[0]===location.href.split("#")[0]){z[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||Se(N)}}),addEventListener("hashchange",()=>{G&&(G=!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:m})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=Y(f,!1)||{});let w;try{const g=r.map(async(R,k)=>{const O=o[k];return O!=null&&O.uses&&(O.uses=Je(O.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(g){if(g instanceof He){await W(new URL(g.location,location.href));return}w=await re({status:g instanceof ee?g.status:500,error:await X(g,{url:f,params:a,route:s}),url:f,route:s})}Ae(w)}}}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 h;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:A=>new Promise((v,P)=>{d.set(A,{fulfil:v,reject:P})})})}let y="";for(;;){const{done:$,value:A}=await L.read();if($&&!y)break;for(y+=!A&&y?` +import{o as De,t as se}from"../chunks/index.a36c9cb0.js";import{S as ze,a as Be,I as q,g as Ce,f as qe,b as ge,c as ce,s as M,i as Fe,d as Q,P as Me,e as We}from"../chunks/singletons.65b9baf3.js";import{b as B}from"../chunks/paths.9a3098df.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(be(n)),le(n,i));const te=new Map;function it(n,i){const p=be(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=be(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((_,y)=>{if(y%2){if(_.startsWith("x+"))return ye(String.fromCharCode(parseInt(_.slice(2),16)));if(_.startsWith("u+"))return ye(String.fromCharCode(..._.slice(2).split("-").map(I=>parseInt(I,16))));const h=ct.exec(_);if(!h)throw new Error(`Invalid param: ${_}. Params and matcher names can only have underscores and alphanumeric characters.`);const[,$,A,v,P]=h;return i.push({name:v,matcher:P,optional:!!$,rest:!!A,chained:A?y===1&&L[0]==="":!1}),A?"(.*?)":$?"([^/]*)?":"([^/]+?)"}return ye(_)}).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;Ly).join("/"),d=0;continue}if(_===void 0){l.rest&&(c[l.name]="");continue}if(!l.matcher||p[l.matcher](_)){c[l.name]=_;const y=i[L+1],h=u[L+1];y&&!y.rest&&y.optional&&h&&(d=0);continue}if(l.optional&&l.chained){d++;continue}return}if(!d)return c}function ye(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,[_,y,h]])=>{const{pattern:$,params:A}=lt(l),v={id:l,exec:P=>{const I=$.exec(P);if(I)return dt(I,A,c)},errors:[1,...h||[]].map(P=>n[P]),layouts:[0,...y||[]].map(L),leaf:d(_)};return v.errors.length=v.layouts.length=Math.max(v.errors.length,v.layouts.length),v});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],y=i==null?void 0:i[_];if(y)return c[d]=y(u(l[1]));switch(_){case"Date":c[d]=new Date(l[1]);break;case"Set":const h=new Set;c[d]=h;for(let v=1;vi!=null)}const z=Ge(ze)??{},Z=Ge(Be)??{};function we(n){z[n]=Q()}function kt(n,i){var xe;const p=pt(n),c=n.nodes[0],u=n.nodes[1];c(),u();const d=document.documentElement,L=[],l=[];let _=null;const y={before_navigate:[],after_navigate:[]};let h={branch:[],error:null,url:null},$=!1,A=!1,v=!0,P=!1,I=!1,G=!1,H=!1,F,N=(xe=history.state)==null?void 0:xe[q];N||(N=Date.now(),history.replaceState({...history.state,[q]:N},"",location.href));const fe=z[N];fe&&(history.scrollRestoration="manual",scrollTo(fe.x,fe.y));let V,ve,ne;async function Ee(){ne=ne||Promise.resolve(),await ne,ne=null;const t=new URL(location.href),e=Y(t,!0);_=null,await Ie(e,t,[])}function ke(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 Se(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 Re(){we(N),Ve(ze,z),ke(N),Ve(Be,Z)}async function ue(t,{noScroll:e=!1,replaceState:r=!1,keepFocus:a=!1,state:s={},invalidateAll:o=!1},m,f){return typeof t=="string"&&(t=new URL(t,Ce(document))),ie({url:t,scroll:e?Q():null,keepfocus:a,redirect_chain:m,details:{state:s,replaceState:r},nav_token:f,accepted:()=>{o&&(H=!0)},blocked:()=>{},type:"goto"})}async function Le(t){return _={id:t.id,promise:Oe(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 Ie(t,e,r,a,s,o={},m){var w,g,R;ve=o;let f=t&&await Oe(t);if(f||(f=await Ne(e,{id:null},await X(new Error(`Not found: ${e.pathname}`),{url:e,params:{},route:{id:null}}),404)),e=(t==null?void 0:t.url)||e,ve!==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((w=f.props.page)==null?void 0:w.status)>=400&&await M.updated.check()&&await W(e);if(L.length=0,H=!1,P=!0,a&&(we(a),ke(a)),(g=f.props.page)!=null&&g.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:k}=s,O=k.replaceState?0:1;if(k.state[q]=N+=O,history[k.replaceState?"replaceState":"pushState"](k.state,"",e),!k.replaceState){let S=N+1;for(;Z[S]||z[S];)delete Z[S],delete z[S],S+=1}}if(_=null,A?(h=f.state,f.props.page&&(f.props.page.url=e),F.$set(f.props)):Ae(f),s){const{scroll:k,keepfocus:O}=s,{activeElement:S}=document;if(await se(),v){const U=e.hash&&document.getElementById(decodeURIComponent(e.hash.slice(1)));k?scrollTo(k.x,k.y):U?U.scrollIntoView():scrollTo(0,0)}const b=document.activeElement!==S&&document.activeElement!==document.body;!O&&!b&&await _e()}else await se();v=!0,f.props.page&&(V=f.props.page),m&&m(),P=!1}function Ae(t){var a;h=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}),Se(N);const r={from:null,to:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:new URL(location.href)},willUnload:!1,type:"enter"};y.after_navigate.forEach(s=>s(r)),A=!0}async function J({url:t,params:e,branch:r,status:a,error:s,route:o,form:m}){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 w={type:"loaded",state:{url:t,params:e,branch:r,error:s,route:o},props:{constructors:Et(r).map(S=>S.node.component)}};m!==void 0&&(w.props.form=m);let g={},R=!V,k=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 O(C.href),C.origin===r.origin&&(D=C.href.slice(r.origin.length)),A?st(D,C.href,U):it(D,U)},setHeaders:()=>{},depends:O,parent(){return f.parent=!0,e()}};m=await w.universal.load.call(null,S)??null,m=m?await ht(m):null}return{node:w,loader:t,server:o,universal:(R=w.universal)!=null&&R.load?{type:"data",data:m,uses:f}:null,data:m??(o==null?void 0:o.data)??null,slash:((k=w.universal)==null?void 0:k.trailingSlash)??(o==null?void 0:o.slash)}}function Pe(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]!==h.params[o])return!0;for(const o of a.dependencies)if(L.some(m=>m(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 Oe({id:t,invalidating:e,url:r,params:a,route:s}){if((_==null?void 0:_.id)===t)return _.promise;const{errors:o,layouts:m,leaf:f}=s,w=[...m,f];o.forEach(E=>E==null?void 0:E().catch(()=>{})),w.forEach(E=>E==null?void 0:E[1]().catch(()=>{}));let g=null;const R=h.url?t!==h.url.pathname+h.url.search:!1,k=h.route?s.id!==h.route.id:!1;let O=!1;const S=w.map((E,T)=>{var K;const j=h.branch[T],x=!!(E!=null&&E[0])&&((j==null?void 0:j.loader)!==E[1]||Pe(O,k,R,(K=j.server)==null?void 0:K.uses,a));return x&&(O=!0),x});if(S.some(Boolean)){try{g=await Ke(r,S)}catch(E){return re({status:E instanceof ee?E.status:500,error:await X(E,{url:r,params:a,route:{id:s.id}}),url:r,route:s})}if(g.type==="redirect")return g}const b=g==null?void 0:g.nodes;let U=!1;const D=w.map(async(E,T)=>{var he;if(!E)return;const j=h.branch[T],x=b==null?void 0:b[T];if((!x||x.type==="skip")&&E[1]===(j==null?void 0:j.loader)&&!Pe(U,k,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:E[1],url:r,params:a,route:s,parent:async()=>{var Te;const $e={};for(let me=0;me{});const C=[];for(let E=0;EPromise.resolve({}),server_data_node:pe(o)}),w={node:await u(),loader:u,universal:null,server:null,data:null};return await J({url:r,params:s,branch:[f,w],status:t,error:e,route:null})}function Y(t,e){if(Fe(t,B))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(B.length)||"/")}function je({url:t,type:e,intent:r,delta:a}){var f,w;let s=!1;const o={from:{params:h.params,route:{id:((f=h.route)==null?void 0:f.id)??null},url:h.url},to:{params:(r==null?void 0:r.params)??null,route:{id:((w=r==null?void 0:r.route)==null?void 0:w.id)??null},url:t},willUnload:!r,type:e};a!==void 0&&(o.delta=a);const m={...o,cancel:()=>{s=!0}};return I||y.before_navigate.forEach(g=>g(m)),s?null:o}async function ie({url:t,scroll:e,keepfocus:r,redirect_chain:a,details:s,type:o,delta:m,nav_token:f,accepted:w,blocked:g}){const R=Y(t,!1),k=je({url:t,type:o,delta:m,intent:R});if(!k){g();return}const O=N;w(),I=!0,A&&M.navigating.set(k),await Ie(R,t,a,O,{scroll:e,keepfocus:r,details:s},f,()=>{I=!1,y.after_navigate.forEach(S=>S(k)),M.navigating.set(null)})}async function Ne(t,e,r,a){return t.origin===location.origin&&t.pathname===location.pathname&&!$?await re({status:a,error:r,url:t,route:e}):await W(t)}function W(t){return location.href=t.href,new Promise(()=>{})}function Ye(){let t;d.addEventListener("mousemove",o=>{const m=o.target;clearTimeout(t),t=setTimeout(()=>{a(m,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 m of o)m.isIntersecting&&(ae(oe(new URL(m.target.href))),r.unobserve(m.target))},{threshold:0});function a(o,m){const f=qe(o,d);if(!f)return;const{url:w,external:g}=ge(f,B);if(g)return;const R=ce(f);if(!R.reload)if(m<=R.preload_data){const k=Y(w,!1);k&&Le(k)}else m<=R.preload_code&&ae(oe(w))}function s(){r.disconnect();for(const o of d.querySelectorAll("a")){const{url:m,external:f}=ge(o,B);if(f)continue;const w=ce(o);w.reload||(w.preload_code===Me.viewport&&r.observe(o),w.preload_code===Me.eager&&ae(oe(m)))}}y.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=>{De(()=>(y.after_navigate.push(t),()=>{const e=y.after_navigate.indexOf(t);y.after_navigate.splice(e,1)}))},before_navigate:t=>{De(()=>(y.before_navigate.push(t),()=>{const e=y.before_navigate.indexOf(t);y.before_navigate.splice(e,1)}))},disable_scroll_handling:()=>{(P||!A)&&(v=!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 Ee()},invalidateAll:()=>(H=!0,Ee()),preload_data:async t=>{const e=new URL(t,Ce(document)),r=Y(e,!1);if(!r)throw new Error(`Attempted to preload a URL that does not belong to this app: ${e}`);await Le(r)},preload_code:ae,apply_action:async t=>{if(t.type==="error"){const e=new URL(location.href),{branch:r,route:a}=h;if(!a)return;const s=await Ue(h.branch.length,r,a.errors);if(s){const o=await J({url:e,params:h.params,branch:r.slice(0,s.idx).concat(s.node),status:t.status??500,error:t.error,route:a});h=o.state,F.$set(o.props),se().then(_e)}}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"&&_e())},_start_router:()=>{var t;history.scrollRestoration="manual",addEventListener("beforeunload",e=>{var a;let r=!1;if(Re(),!I){const s={from:{params:h.params,route:{id:((a=h.route)==null?void 0:a.id)??null},url:h.url},to:null,willUnload:!0,type:"leave",cancel:()=>r=!0};y.before_navigate.forEach(o=>o(s))}r?(e.preventDefault(),e.returnValue=""):history.scrollRestoration="auto"}),addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&Re()}),(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=qe(e.composedPath()[0],d);if(!r)return;const{url:a,external:s,target:o}=ge(r,B);if(!a)return;if(o==="_parent"||o==="_top"){if(window.parent!==window)return}else if(o&&o!=="_self")return;const m=ce(r);if(!(r instanceof SVGAElement)&&a.protocol!==location.protocol&&!(a.protocol==="https:"||a.protocol==="http:"))return;if(s||m.reload){je({url:a,type:"link"})?I=!0:e.preventDefault();return}const[w,g]=a.href.split("#");if(g!==void 0&&w===location.href.split("#")[0]){G=!0,we(N),h.url=a,M.page.set({...V,url:a}),M.page.notify();return}ie({url:a,scroll:m.noscroll?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState: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(Fe(o,B))return;const m=e.target,{noscroll:f,reload:w}=ce(m);if(w)return;e.preventDefault(),e.stopPropagation();const g=new FormData(m),R=a==null?void 0:a.getAttribute("name");R&&g.append(R,(a==null?void 0:a.getAttribute("value"))??""),o.search=new URLSearchParams(g).toString(),ie({url:o,scroll:f?Q():null,keepfocus:!1,redirect_chain:[],details:{state:{},replaceState:!1},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=z[e.state[q]];if(h.url.href.split("#")[0]===location.href.split("#")[0]){z[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||Se(N)}}),addEventListener("hashchange",()=>{G&&(G=!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:m})=>{$=!0;const f=new URL(location.href);({params:a={},route:s={id:null}}=Y(f,!1)||{});let w;try{const g=r.map(async(R,k)=>{const O=o[k];return O!=null&&O.uses&&(O.uses=Je(O.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(g){if(g instanceof He){await W(new URL(g.location,location.href));return}w=await re({status:g instanceof ee?g.status:500,error:await X(g,{url:f,params:a,route:s}),url:f,route:s})}Ae(w)}}}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 h;const d=new Map,L=c.body.getReader(),l=new TextDecoder;function _($){return vt($,{Promise:A=>new Promise((v,P)=>{d.set(A,{fulfil:v,reject:P})})})}let y="";for(;;){const{done:$,value:A}=await L.read();if($&&!y)break;for(y+=!A&&y?` `:l.decode(A);;){const v=y.indexOf(` `);if(v===-1)break;const P=JSON.parse(y.slice(0,v));if(y=y.slice(v+1),P.type==="redirect")return u(P);if(P.type==="data")(h=P.nodes)==null||h.forEach(I=>{(I==null?void 0:I.type)==="data"&&(I.uses=Je(I.uses),I.data=_(I.data))}),u(P);else if(P.type==="chunk"){const{id:I,data:G,error:H}=P,F=d.get(I);d.delete(I),H?F.reject(_(H)):F.fulfil(_(G))}}}})}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 _e(){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 7cf18cfb5d..f0c6e86d0c 100644 --- a/ui/assets/local/_app/version.json +++ b/ui/assets/local/_app/version.json @@ -1 +1 @@ -{"version":"1680058308176"} \ No newline at end of file +{"version":"1680062575256"} \ No newline at end of file diff --git a/ui/assets/local/index.html b/ui/assets/local/index.html index f6c1620931..817ae78960 100644 --- a/ui/assets/local/index.html +++ b/ui/assets/local/index.html @@ -4,30 +4,30 @@ - + - + - + - +