From 3253fbcbe45199c662131a516c2e3766785783e6 Mon Sep 17 00:00:00 2001 From: "Temporal Data (cicd)" Date: Mon, 12 Sep 2022 21:15:54 +0000 Subject: [PATCH] Update UI submodule --- ...828b07a2.js => error-boundary-7db141b5.js} | 2 +- ...{events-39553f4f.js => events-e194f437.js} | 2 +- ...b0f25b5e.js => events-service-f06347d2.js} | 2 +- ...ated-773689c5.js => paginated-77f89502.js} | 2 +- ...46d24c8.js => pollers-service-a9fb1f4f.js} | 2 +- ...-0ed03551.js => query-service-f76f4494.js} | 2 +- .../chunks/route-for-api-6372c71f.js | 1 + .../chunks/route-for-api-68bfde2a.js | 1 - ...260234.js => schedule-service-3e4bdc8a.js} | 2 +- ...ules-b2607a9d.js => schedules-d6719c92.js} | 2 +- ...7323d3.js => settings-service-54502f3f.js} | 2 +- ...n-3909e956.js => workflow-run-d7909f7f.js} | 2 +- ...42142b.js => workflow-service-52952a0f.js} | 2 +- ...lows-e17909e9.js => workflows-af7f117d.js} | 2 +- ...c.js => workflows-summary-row-bda45870.js} | 2 +- ...cd.js => __layout-root.svelte-5659399f.js} | 2 +- ....js => __layout-import.svelte-2d845361.js} | 2 +- ...2516.js => index@login.svelte-04302e77.js} | 2 +- ...95d1e.js => index@root.svelte-bf6535fb.js} | 2 +- ...e-9c149880.js => index.svelte-35bf983e.js} | 2 +- ...e-7a63cda2.js => index.svelte-3527c25d.js} | 2 +- ...lte-5a8f284a.js => new.svelte-8fa61f1b.js} | 2 +- ...06d2b6f9.js => _queue_.svelte-ffe46899.js} | 2 +- ...26.js => __layout@root.svelte-eedbcb35.js} | 2 +- ...d2b87e9.js => __layout.svelte-887630b6.js} | 2 +- ...e-1600297c.js => index.svelte-27d8bf2c.js} | 2 +- ...e-8a0a7379.js => index.svelte-c280036d.js} | 2 +- ...e-7f3f7ae3.js => index.svelte-365e5b83.js} | 2 +- ... => pending-activities.svelte-cb0db6c0.js} | 2 +- ...e-b810f669.js => query.svelte-7a4c39d9.js} | 2 +- ...c456.js => stack-trace.svelte-9fb7d7e5.js} | 2 +- ...41083ee6.js => workers.svelte-8efe0dcf.js} | 2 +- ...7c13a.js => index@root.svelte-6c764eb8.js} | 2 +- ...564.js => index@signin.svelte-c1581460.js} | 2 +- .../{start-fb156e84.js => start-ff8e1bb6.js} | 2 +- server/generated/ui/_app/version.json | 2 +- server/generated/ui/_header.html | 4 +- server/generated/ui/import.html | 4 +- .../ui/import/_event-history-import.html | 4 +- .../generated/ui/import/_import-header.html | 4 +- server/generated/ui/import/events.html | 4 +- server/generated/ui/index.html | 4 +- server/generated/ui/login.html | 4 +- server/generated/ui/manifest.json | 408 +++++++++--------- server/generated/ui/namespaces.html | 4 +- server/generated/ui/signin.html | 4 +- ui | 2 +- 47 files changed, 258 insertions(+), 258 deletions(-) rename server/generated/ui/_app/immutable/chunks/{error-boundary-828b07a2.js => error-boundary-7db141b5.js} (99%) rename server/generated/ui/_app/immutable/chunks/{events-39553f4f.js => events-e194f437.js} (92%) rename server/generated/ui/_app/immutable/chunks/{events-service-b0f25b5e.js => events-service-f06347d2.js} (80%) rename server/generated/ui/_app/immutable/chunks/{paginated-773689c5.js => paginated-77f89502.js} (89%) rename server/generated/ui/_app/immutable/chunks/{pollers-service-646d24c8.js => pollers-service-a9fb1f4f.js} (93%) rename server/generated/ui/_app/immutable/chunks/{query-service-0ed03551.js => query-service-f76f4494.js} (94%) create mode 100644 server/generated/ui/_app/immutable/chunks/route-for-api-6372c71f.js delete mode 100644 server/generated/ui/_app/immutable/chunks/route-for-api-68bfde2a.js rename server/generated/ui/_app/immutable/chunks/{schedule-service-8d260234.js => schedule-service-3e4bdc8a.js} (97%) rename server/generated/ui/_app/immutable/chunks/{schedules-b2607a9d.js => schedules-d6719c92.js} (97%) rename server/generated/ui/_app/immutable/chunks/{settings-service-807323d3.js => settings-service-54502f3f.js} (94%) rename server/generated/ui/_app/immutable/chunks/{workflow-run-3909e956.js => workflow-run-d7909f7f.js} (84%) rename server/generated/ui/_app/immutable/chunks/{workflow-service-d942142b.js => workflow-service-52952a0f.js} (95%) rename server/generated/ui/_app/immutable/chunks/{workflows-e17909e9.js => workflows-af7f117d.js} (89%) rename server/generated/ui/_app/immutable/chunks/{workflows-summary-row-f343242c.js => workflows-summary-row-bda45870.js} (99%) rename server/generated/ui/_app/immutable/pages/{__layout-root.svelte-2f4f73cd.js => __layout-root.svelte-5659399f.js} (97%) rename server/generated/ui/_app/immutable/pages/import/{__layout-import.svelte-ecc0f071.js => __layout-import.svelte-2d845361.js} (95%) rename server/generated/ui/_app/immutable/pages/login/{index@login.svelte-7de02516.js => index@login.svelte-04302e77.js} (94%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/{index@root.svelte-91a95d1e.js => index@root.svelte-bf6535fb.js} (98%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/{index.svelte-9c149880.js => index.svelte-35bf983e.js} (99%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/{index.svelte-7a63cda2.js => index.svelte-3527c25d.js} (98%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/{new.svelte-5a8f284a.js => new.svelte-8fa61f1b.js} (99%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/task-queues/{_queue_.svelte-06d2b6f9.js => _queue_.svelte-ffe46899.js} (95%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{__layout@root.svelte-942b8626.js => __layout@root.svelte-eedbcb35.js} (97%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/{__layout.svelte-ed2b87e9.js => __layout.svelte-887630b6.js} (98%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/compact/{index.svelte-1600297c.js => index.svelte-27d8bf2c.js} (89%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/feed/{index.svelte-8a0a7379.js => index.svelte-c280036d.js} (89%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/history/json/{index.svelte-7f3f7ae3.js => index.svelte-365e5b83.js} (94%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{pending-activities.svelte-48563dcc.js => pending-activities.svelte-cb0db6c0.js} (98%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{query.svelte-b810f669.js => query.svelte-7a4c39d9.js} (95%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{stack-trace.svelte-7a23c456.js => stack-trace.svelte-9fb7d7e5.js} (95%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/_workflow_/_run_/{workers.svelte-41083ee6.js => workers.svelte-8efe0dcf.js} (89%) rename server/generated/ui/_app/immutable/pages/namespaces/_namespace_/workflows/{index@root.svelte-8917c13a.js => index@root.svelte-6c764eb8.js} (97%) rename server/generated/ui/_app/immutable/pages/signin/{index@signin.svelte-0303a564.js => index@signin.svelte-c1581460.js} (94%) rename server/generated/ui/_app/immutable/{start-fb156e84.js => start-ff8e1bb6.js} (91%) diff --git a/server/generated/ui/_app/immutable/chunks/error-boundary-828b07a2.js b/server/generated/ui/_app/immutable/chunks/error-boundary-7db141b5.js similarity index 99% rename from server/generated/ui/_app/immutable/chunks/error-boundary-828b07a2.js rename to server/generated/ui/_app/immutable/chunks/error-boundary-7db141b5.js index 4c18b52f46..1c70a993b0 100644 --- a/server/generated/ui/_app/immutable/chunks/error-boundary-828b07a2.js +++ b/server/generated/ui/_app/immutable/chunks/error-boundary-7db141b5.js @@ -1,3 +1,3 @@ -import{r as x,a as ee,n as I}from"./route-for-api-68bfde2a.js";import{H as te,S as C,i as P,s as R,l as E,m as $,n as v,h as m,p as D,b as S,g as V,a0 as re,d as z,f as g,t as k,N as G,r as B,a as H,u as q,c as J,M as y,T as oe,v as O,a1 as se,a2 as ne,a3 as le,a4 as ae,a5 as ie,a6 as ce,a7 as ue,E as w,e as M,F as A,a8 as L,I as Q,J as W,K as X,L as Y,w as fe,x as _e,y as de,B as he}from"./index-f283717a.js";import{n as T}from"./notifications-dddf88f8.js";import{c as pe,a as me,q as be}from"./index-cf7c7b94.js";import{E as ye}from"./error-73a2de77.js";import{w as K}from"./index-5dff130b.js";const ze=async(a=fetch)=>{const e=await x(ee("user"),{request:a});return{name:e==null?void 0:e.Name,email:e==null?void 0:e.Email,picture:e==null?void 0:e.Picture}};function ge(a,{from:e,to:t},r={}){const s=getComputedStyle(a),i=s.transform==="none"?"":s.transform,[c,l]=s.transformOrigin.split(" ").map(parseFloat),o=e.left+e.width*c/t.width-(t.left+c),n=e.top+e.height*l/t.height-(t.top+l),{delay:_=0,duration:d=p=>Math.sqrt(p)*120,easing:u=pe}=r;return{delay:_,duration:te(d)?d(Math.sqrt(o*o+n*n)):d,easing:u,css:(p,h)=>{const N=h*o,f=h*n,b=p+h*e.width/t.width,F=p+h*e.height/t.height;return`transform: ${i} translate(${N}px, ${f}px) scale(${b}, ${F});`}}}function U(a,e,t){const r=a.slice();return r[4]=e[t],r}function j(a,e){let t,r,s=e[4].message+"",i,c,l,o,n,_,d=w,u,p,h;function N(){return e[3](e[4])}return{key:a,first:null,c(){t=E("article"),r=E("p"),i=B(s),c=H(),this.h()},l(f){t=$(f,"ARTICLE",{class:!0});var b=v(t);r=$(b,"P",{});var F=v(r);i=q(F,s),F.forEach(m),c=J(b),b.forEach(m),this.h()},h(){D(t,"class",l="mb-4 px-8 py-6 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"),this.first=t},m(f,b){S(f,t,b),y(t,r),y(r,i),y(t,c),u=!0,p||(h=oe(t,"click",N),p=!0)},p(f,b){e=f,(!u||b&1)&&s!==(s=e[4].message+"")&&O(i,s),(!u||b&1&&l!==(l="mb-4 px-8 py-6 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"))&&D(t,"class",l)},r(){_=t.getBoundingClientRect()},f(){se(t),d(),ne(t,_)},a(){d(),d=le(t,_,ge,{})},i(f){u||(ae(()=>{n&&n.end(1),o=ie(t,e[2],{key:e[4].id}),o.start()}),u=!0)},o(f){o&&o.invalidate(),n=ce(t,e[1],{key:e[4].id}),u=!1},d(f){f&&m(t),f&&n&&n.end(),p=!1,h()}}}function ke(a){let e,t=[],r=new Map,s,i=a[0];const c=l=>l[4].id;for(let l=0;lt(0,r=l));const[s,i]=me({duration:l=>Math.sqrt(l*100),fallback(l){const o=getComputedStyle(l),n=o.transform==="none"?"":o.transform;return{duration:600,easing:be,css:_=>`transform: ${n} scale(${_}); opacity: ${_}`}}});return[r,s,i,l=>T.dismiss(l.id)]}class Le extends C{constructor(e){super(),P(this,e,Ee,ke,R,{})}}function $e(a){let e;const t=a[8].default,r=Q(t,a,a[7],null);return{c(){r&&r.c()},l(s){r&&r.l(s)},m(s,i){r&&r.m(s,i),e=!0},p(s,i){r&&r.p&&(!e||i&128)&&W(r,t,s,s[7],e?Y(t,s[7],i,null):X(s[7]),null)},i(s){e||(g(r,s),e=!0)},o(s){k(r,s),e=!1},d(s){r&&r.d(s)}}}function ve(a){let e,t;return e=new ye({props:{error:a[2]}}),e.$on("clearError",a[3]),{c(){fe(e.$$.fragment)},l(r){_e(e.$$.fragment,r)},m(r,s){de(e,r,s),t=!0},p(r,s){const i={};s&4&&(i.error=r[2]),e.$set(i)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){he(e,r)}}}function we(a){let e,t,r,s;const i=[ve,$e],c=[];function l(o,n){return o[1]&&o[2]?0:1}return e=l(a),t=c[e]=i[e](a),{c(){t.c(),r=M()},l(o){t.l(o),r=M()},m(o,n){c[e].m(o,n),S(o,r,n),s=!0},p(o,[n]){let _=e;e=l(o),e===_?c[e].p(o,n):(V(),k(c[_],1,1,()=>{c[_]=null}),z(),t=c[e],t?t.p(o,n):(t=c[e]=i[e](o),t.c()),g(t,1),t.m(r.parentNode,r))},i(o){s||(g(t),s=!0)},o(o){k(t),s=!1},d(o){c[e].d(o),o&&m(r)}}}function Ne(a,e,t){let r,s,i=w,c=()=>(i(),i=A(u,f=>t(6,s=f)),u),l,o=w,n=()=>(o(),o=A(h,f=>t(2,l=f)),h);G(a,I,f=>t(5,r=f)),a.$$.on_destroy.push(()=>i()),a.$$.on_destroy.push(()=>o());let{$$slots:_={},$$scope:d}=e,{error:u=null}=e;c();let{onError:p=null}=e,h;function N(){L(u,s=null,s),t(4,p=null),n(t(1,h=null)),L(I,r=null,r)}return a.$$set=f=>{"error"in f&&c(t(0,u=f.error)),"onError"in f&&t(4,p=f.onError),"$$scope"in f&&t(7,d=f.$$scope)},a.$$.update=()=>{a.$$.dirty&115&&(u&&s&&n(t(1,h=u)),I&&r&&n(t(1,h=I)),p&&h&&p(h))},[u,h,l,N,p,r,s,d,_]}class Be extends C{constructor(e){super(),P(this,e,Ne,we,R,{error:0,onError:4})}}function qe(a){let e;const t=a[5].default,r=Q(t,a,a[4],null);return{c(){r&&r.c()},l(s){r&&r.l(s)},m(s,i){r&&r.m(s,i),e=!0},p(s,i){r&&r.p&&(!e||i&16)&&W(r,t,s,s[4],e?Y(t,s[4],i,null):X(s[4]),null)},i(s){e||(g(r,s),e=!0)},o(s){k(r,s),e=!1},d(s){r&&r.d(s)}}}function De(a){let e,t,r=a[1].message+"",s,i,c,l,o=(a[2]?a[1].stack:"")+"",n,_;return{c(){e=E("div"),t=E("b"),s=B(r),i=H(),c=E("pre"),l=B(" "),n=B(o),_=B(` +import{r as x,a as ee,n as I}from"./route-for-api-6372c71f.js";import{H as te,S as C,i as P,s as R,l as E,m as $,n as v,h as m,p as D,b as S,g as V,a0 as re,d as z,f as g,t as k,N as G,r as B,a as H,u as q,c as J,M as y,T as oe,v as O,a1 as se,a2 as ne,a3 as le,a4 as ae,a5 as ie,a6 as ce,a7 as ue,E as w,e as M,F as A,a8 as L,I as Q,J as W,K as X,L as Y,w as fe,x as _e,y as de,B as he}from"./index-f283717a.js";import{n as T}from"./notifications-dddf88f8.js";import{c as pe,a as me,q as be}from"./index-cf7c7b94.js";import{E as ye}from"./error-73a2de77.js";import{w as K}from"./index-5dff130b.js";const ze=async(a=fetch)=>{const e=await x(ee("user"),{request:a});return{name:e==null?void 0:e.Name,email:e==null?void 0:e.Email,picture:e==null?void 0:e.Picture}};function ge(a,{from:e,to:t},r={}){const s=getComputedStyle(a),i=s.transform==="none"?"":s.transform,[c,l]=s.transformOrigin.split(" ").map(parseFloat),o=e.left+e.width*c/t.width-(t.left+c),n=e.top+e.height*l/t.height-(t.top+l),{delay:_=0,duration:d=p=>Math.sqrt(p)*120,easing:u=pe}=r;return{delay:_,duration:te(d)?d(Math.sqrt(o*o+n*n)):d,easing:u,css:(p,h)=>{const N=h*o,f=h*n,b=p+h*e.width/t.width,F=p+h*e.height/t.height;return`transform: ${i} translate(${N}px, ${f}px) scale(${b}, ${F});`}}}function U(a,e,t){const r=a.slice();return r[4]=e[t],r}function j(a,e){let t,r,s=e[4].message+"",i,c,l,o,n,_,d=w,u,p,h;function N(){return e[3](e[4])}return{key:a,first:null,c(){t=E("article"),r=E("p"),i=B(s),c=H(),this.h()},l(f){t=$(f,"ARTICLE",{class:!0});var b=v(t);r=$(b,"P",{});var F=v(r);i=q(F,s),F.forEach(m),c=J(b),b.forEach(m),this.h()},h(){D(t,"class",l="mb-4 px-8 py-6 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"),this.first=t},m(f,b){S(f,t,b),y(t,r),y(r,i),y(t,c),u=!0,p||(h=oe(t,"click",N),p=!0)},p(f,b){e=f,(!u||b&1)&&s!==(s=e[4].message+"")&&O(i,s),(!u||b&1&&l!==(l="mb-4 px-8 py-6 opacity-90 shadow-lg "+e[4].type+" svelte-2zx94o"))&&D(t,"class",l)},r(){_=t.getBoundingClientRect()},f(){se(t),d(),ne(t,_)},a(){d(),d=le(t,_,ge,{})},i(f){u||(ae(()=>{n&&n.end(1),o=ie(t,e[2],{key:e[4].id}),o.start()}),u=!0)},o(f){o&&o.invalidate(),n=ce(t,e[1],{key:e[4].id}),u=!1},d(f){f&&m(t),f&&n&&n.end(),p=!1,h()}}}function ke(a){let e,t=[],r=new Map,s,i=a[0];const c=l=>l[4].id;for(let l=0;lt(0,r=l));const[s,i]=me({duration:l=>Math.sqrt(l*100),fallback(l){const o=getComputedStyle(l),n=o.transform==="none"?"":o.transform;return{duration:600,easing:be,css:_=>`transform: ${n} scale(${_}); opacity: ${_}`}}});return[r,s,i,l=>T.dismiss(l.id)]}class Le extends C{constructor(e){super(),P(this,e,Ee,ke,R,{})}}function $e(a){let e;const t=a[8].default,r=Q(t,a,a[7],null);return{c(){r&&r.c()},l(s){r&&r.l(s)},m(s,i){r&&r.m(s,i),e=!0},p(s,i){r&&r.p&&(!e||i&128)&&W(r,t,s,s[7],e?Y(t,s[7],i,null):X(s[7]),null)},i(s){e||(g(r,s),e=!0)},o(s){k(r,s),e=!1},d(s){r&&r.d(s)}}}function ve(a){let e,t;return e=new ye({props:{error:a[2]}}),e.$on("clearError",a[3]),{c(){fe(e.$$.fragment)},l(r){_e(e.$$.fragment,r)},m(r,s){de(e,r,s),t=!0},p(r,s){const i={};s&4&&(i.error=r[2]),e.$set(i)},i(r){t||(g(e.$$.fragment,r),t=!0)},o(r){k(e.$$.fragment,r),t=!1},d(r){he(e,r)}}}function we(a){let e,t,r,s;const i=[ve,$e],c=[];function l(o,n){return o[1]&&o[2]?0:1}return e=l(a),t=c[e]=i[e](a),{c(){t.c(),r=M()},l(o){t.l(o),r=M()},m(o,n){c[e].m(o,n),S(o,r,n),s=!0},p(o,[n]){let _=e;e=l(o),e===_?c[e].p(o,n):(V(),k(c[_],1,1,()=>{c[_]=null}),z(),t=c[e],t?t.p(o,n):(t=c[e]=i[e](o),t.c()),g(t,1),t.m(r.parentNode,r))},i(o){s||(g(t),s=!0)},o(o){k(t),s=!1},d(o){c[e].d(o),o&&m(r)}}}function Ne(a,e,t){let r,s,i=w,c=()=>(i(),i=A(u,f=>t(6,s=f)),u),l,o=w,n=()=>(o(),o=A(h,f=>t(2,l=f)),h);G(a,I,f=>t(5,r=f)),a.$$.on_destroy.push(()=>i()),a.$$.on_destroy.push(()=>o());let{$$slots:_={},$$scope:d}=e,{error:u=null}=e;c();let{onError:p=null}=e,h;function N(){L(u,s=null,s),t(4,p=null),n(t(1,h=null)),L(I,r=null,r)}return a.$$set=f=>{"error"in f&&c(t(0,u=f.error)),"onError"in f&&t(4,p=f.onError),"$$scope"in f&&t(7,d=f.$$scope)},a.$$.update=()=>{a.$$.dirty&115&&(u&&s&&n(t(1,h=u)),I&&r&&n(t(1,h=I)),p&&h&&p(h))},[u,h,l,N,p,r,s,d,_]}class Be extends C{constructor(e){super(),P(this,e,Ne,we,R,{error:0,onError:4})}}function qe(a){let e;const t=a[5].default,r=Q(t,a,a[4],null);return{c(){r&&r.c()},l(s){r&&r.l(s)},m(s,i){r&&r.m(s,i),e=!0},p(s,i){r&&r.p&&(!e||i&16)&&W(r,t,s,s[4],e?Y(t,s[4],i,null):X(s[4]),null)},i(s){e||(g(r,s),e=!0)},o(s){k(r,s),e=!1},d(s){r&&r.d(s)}}}function De(a){let e,t,r=a[1].message+"",s,i,c,l,o=(a[2]?a[1].stack:"")+"",n,_;return{c(){e=E("div"),t=E("b"),s=B(r),i=H(),c=E("pre"),l=B(" "),n=B(o),_=B(` `),this.h()},l(d){e=$(d,"DIV",{class:!0});var u=v(e);t=$(u,"B",{});var p=v(t);s=q(p,r),p.forEach(m),i=J(u),c=$(u,"PRE",{class:!0});var h=v(c);l=q(h," "),n=q(h,o),_=q(h,` `),h.forEach(m),u.forEach(m),this.h()},h(){D(c,"class","trace svelte-urrl06"),D(e,"class","error svelte-urrl06")},m(d,u){S(d,e,u),y(e,t),y(t,s),y(e,i),y(e,c),y(c,l),y(c,n),y(c,_)},p(d,u){u&2&&r!==(r=d[1].message+"")&&O(s,r),u&2&&o!==(o=(d[2]?d[1].stack:"")+"")&&O(n,o)},i:w,o:w,d(d){d&&m(e)}}}function Se(a){let e,t,r,s;const i=[De,qe],c=[];function l(o,n){return o[1]?0:1}return e=l(a),t=c[e]=i[e](a),{c(){t.c(),r=M()},l(o){t.l(o),r=M()},m(o,n){c[e].m(o,n),S(o,r,n),s=!0},p(o,[n]){let _=e;e=l(o),e===_?c[e].p(o,n):(V(),k(c[_],1,1,()=>{c[_]=null}),z(),t=c[e],t?t.p(o,n):(t=c[e]=i[e](o),t.c()),g(t,1),t.m(r.parentNode,r))},i(o){s||(g(t),s=!0)},o(o){k(t),s=!1},d(o){c[e].d(o),o&&m(r)}}}function Fe(a,e,t){let r,s=w,i=()=>(s(),s=A(o,u=>t(1,r=u)),o);a.$$.on_destroy.push(()=>s());let{$$slots:c={},$$scope:l}=e,{error:o=null}=e;i();let{onError:n=null}=e,d=(typeof process<"u"&&process.env&&"production")!=="production";return a.$$set=u=>{"error"in u&&i(t(0,o=u.error)),"onError"in u&&t(3,n=u.onError),"$$scope"in u&&t(4,l=u.$$scope)},a.$$.update=()=>{a.$$.dirty&10&&r&&n&&n(r)},[o,r,d,n,l,c]}class Ie extends C{constructor(e){super(),P(this,e,Fe,Se,R,{error:0,onError:3})}}const Me=["c","l","h","m","p","a","i","o","d"];function Z(a){if(a.$$render){let t=a.$$render;return a.$$render=(r,s,i,c)=>{const l=K(void 0);try{return t(r,{error:l,...s},i,c)}catch(o){return l.set(o),t(r,{error:l,...s},i,{})}},a}function e(t,r){return function(...i){try{return t(...i)}catch(c){r(c)}}}return class extends a{constructor(r){const s=K(void 0);r.props.$$slots.default=r.props.$$slots.default.map(i=>(...c)=>{let o=e(i,s.set)(...c);if(o)for(let n of Me)o[n]&&(o[n]=e(o[n],s.set));return o}),super(r),this.$$set({error:s})}}}Z(Ie);const Ke=Z(Be);export{Ke as E,Le as N,ze as f}; diff --git a/server/generated/ui/_app/immutable/chunks/events-39553f4f.js b/server/generated/ui/_app/immutable/chunks/events-e194f437.js similarity index 92% rename from server/generated/ui/_app/immutable/chunks/events-39553f4f.js rename to server/generated/ui/_app/immutable/chunks/events-e194f437.js index 456a246851..729d708731 100644 --- a/server/generated/ui/_app/immutable/chunks/events-39553f4f.js +++ b/server/generated/ui/_app/immutable/chunks/events-e194f437.js @@ -1 +1 @@ -import{d as o,r as g,w as u}from"./index-5dff130b.js";import{p as i}from"./stores-62bcca1c.js";import{a as y}from"./events-service-b0f25b5e.js";import{a as l,b as c}from"./event-view-0e727eb5.js";import{m}from"./route-for-4a4bbbc1.js";import{w as k,d as I}from"./with-loading-f07bedaf.js";import{g as b}from"./index-9319d41b.js";import{r as v}from"./workflow-run-3909e956.js";import{X as P}from"./index-f283717a.js";const h={events:[],eventGroups:[]},E=o([i],([e])=>e.params.namespace?m(e.params.namespace):""),G=o([i],([e])=>e.params.workflow?m(e.params.workflow):""),_=o([i],([e])=>e.params.run?m(e.params.run):""),S=o([i],([e])=>e.stuff.settings),p={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},d=u(p),B=()=>{d.set(p)},q=(e,t)=>{for(const n of["namespace","workflowId","runId"])if(!e[n])return!1;let r=!0;const s=P(t);for(const n of Object.keys(s))if(s[n]!==e[n]){r=!1;break}return r?!1:(t.set(e),!0)},H=o([E,G,_,l],([e,t,r,s])=>({namespace:e,workflowId:t,runId:r,sort:s})),O=o([H,S,v],([e,t,r])=>({...e,settings:t,refresh:v,$refresh:r})),R=e=>O.subscribe(async t=>{const{settings:r,...s}=t;q(s,d)&&k(C,x,async()=>{var a;const n=await y(t);(a=n==null?void 0:n.events)!=null&&a.length?e(n):setTimeout(()=>{e(n)},I)})}),f=g(h,R),j=u(null),D=o([f,c,j],([e,t,r])=>{if(r)return r;const{events:s}=e;return t?s.filter(n=>n.category===t):s}),J=o([f,c],([e,t])=>{const{eventGroups:r}=e;return t?r.filter(s=>s.category===t):r}),K=o([f,l,c],([e,t,r])=>{const{events:s}=e,n=t==="descending"?s.slice().reverse():s,a=b(n);return r?a.filter(w=>w.category===r):a});o([f,l,c],([e,t,r])=>{const{events:s}=e,n=t==="descending"?s.slice().reverse():s;return r?n.filter(a=>a.category===r):n});const x=u(!0),C=u(!0);export{K as a,D as b,B as c,J as d,f as e,j as t,x as u}; +import{d as o,r as g,w as u}from"./index-5dff130b.js";import{p as i}from"./stores-62bcca1c.js";import{a as y}from"./events-service-f06347d2.js";import{a as l,b as c}from"./event-view-0e727eb5.js";import{m}from"./route-for-4a4bbbc1.js";import{w as k,d as I}from"./with-loading-f07bedaf.js";import{g as b}from"./index-9319d41b.js";import{r as v}from"./workflow-run-d7909f7f.js";import{X as P}from"./index-f283717a.js";const h={events:[],eventGroups:[]},E=o([i],([e])=>e.params.namespace?m(e.params.namespace):""),G=o([i],([e])=>e.params.workflow?m(e.params.workflow):""),_=o([i],([e])=>e.params.run?m(e.params.run):""),S=o([i],([e])=>e.stuff.settings),p={namespace:null,workflowId:null,runId:null,rawPayloads:null,sort:null},d=u(p),B=()=>{d.set(p)},q=(e,t)=>{for(const n of["namespace","workflowId","runId"])if(!e[n])return!1;let r=!0;const s=P(t);for(const n of Object.keys(s))if(s[n]!==e[n]){r=!1;break}return r?!1:(t.set(e),!0)},H=o([E,G,_,l],([e,t,r,s])=>({namespace:e,workflowId:t,runId:r,sort:s})),O=o([H,S,v],([e,t,r])=>({...e,settings:t,refresh:v,$refresh:r})),R=e=>O.subscribe(async t=>{const{settings:r,...s}=t;q(s,d)&&k(C,x,async()=>{var a;const n=await y(t);(a=n==null?void 0:n.events)!=null&&a.length?e(n):setTimeout(()=>{e(n)},I)})}),f=g(h,R),j=u(null),D=o([f,c,j],([e,t,r])=>{if(r)return r;const{events:s}=e;return t?s.filter(n=>n.category===t):s}),J=o([f,c],([e,t])=>{const{eventGroups:r}=e;return t?r.filter(s=>s.category===t):r}),K=o([f,l,c],([e,t,r])=>{const{events:s}=e,n=t==="descending"?s.slice().reverse():s,a=b(n);return r?a.filter(w=>w.category===r):a});o([f,l,c],([e,t,r])=>{const{events:s}=e,n=t==="descending"?s.slice().reverse():s;return r?n.filter(a=>a.category===r):n});const x=u(!0),C=u(!0);export{K as a,D as b,B as c,J as d,f as e,j as t,x as u}; diff --git a/server/generated/ui/_app/immutable/chunks/events-service-b0f25b5e.js b/server/generated/ui/_app/immutable/chunks/events-service-f06347d2.js similarity index 80% rename from server/generated/ui/_app/immutable/chunks/events-service-b0f25b5e.js rename to server/generated/ui/_app/immutable/chunks/events-service-f06347d2.js index 07b421009c..21d544fad5 100644 --- a/server/generated/ui/_app/immutable/chunks/events-service-b0f25b5e.js +++ b/server/generated/ui/_app/immutable/chunks/events-service-f06347d2.js @@ -1 +1 @@ -import{p as d}from"./paginated-773689c5.js";import{r as p,a as f}from"./route-for-api-68bfde2a.js";import{t as u}from"./index-38db7cb3.js";import{b as g}from"./is-6159121b.js";const m=e=>!g(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",v=async({namespace:e,workflowId:n,runId:t,sort:s,onStart:r,onUpdate:o,onComplete:i})=>{const a=m(s);return(await d(async c=>p(f(a,{namespace:e,workflowId:n,runId:t}),{token:c,request:fetch}),{onStart:r,onUpdate:o,onComplete:i})).history.events},w=async e=>{const{settings:n,namespace:t}=e;return v(e).then(s=>u({response:s,namespace:t,settings:n}))};export{w as a,v as f}; +import{p as d}from"./paginated-77f89502.js";import{r as p,a as f}from"./route-for-api-6372c71f.js";import{t as u}from"./index-38db7cb3.js";import{b as g}from"./is-6159121b.js";const m=e=>!g(e)||e==="descending"?"events.descending":e==="ascending"?"events.ascending":"events.descending",v=async({namespace:e,workflowId:n,runId:t,sort:s,onStart:r,onUpdate:o,onComplete:i})=>{const a=m(s);return(await d(async c=>p(f(a,{namespace:e,workflowId:n,runId:t}),{token:c,request:fetch}),{onStart:r,onUpdate:o,onComplete:i})).history.events},w=async e=>{const{settings:n,namespace:t}=e;return v(e).then(s=>u({response:s,namespace:t,settings:n}))};export{w as a,v as f}; diff --git a/server/generated/ui/_app/immutable/chunks/paginated-773689c5.js b/server/generated/ui/_app/immutable/chunks/paginated-77f89502.js similarity index 89% rename from server/generated/ui/_app/immutable/chunks/paginated-773689c5.js rename to server/generated/ui/_app/immutable/chunks/paginated-77f89502.js index a0a9e20b3f..2a1a2e78cf 100644 --- a/server/generated/ui/_app/immutable/chunks/paginated-773689c5.js +++ b/server/generated/ui/_app/immutable/chunks/paginated-77f89502.js @@ -1 +1 @@ -import{h as g}from"./route-for-api-68bfde2a.js";import{i as c}from"./is-function-45497f08.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-6372c71f.js";import{i as c}from"./is-function-45497f08.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/server/generated/ui/_app/immutable/chunks/pollers-service-646d24c8.js b/server/generated/ui/_app/immutable/chunks/pollers-service-a9fb1f4f.js similarity index 93% rename from server/generated/ui/_app/immutable/chunks/pollers-service-646d24c8.js rename to server/generated/ui/_app/immutable/chunks/pollers-service-a9fb1f4f.js index e045f2dbbe..930207370d 100644 --- a/server/generated/ui/_app/immutable/chunks/pollers-service-646d24c8.js +++ b/server/generated/ui/_app/immutable/chunks/pollers-service-a9fb1f4f.js @@ -1 +1 @@ -import{r as k,a as y}from"./route-for-api-68bfde2a.js";async function o(c,t={returnAllPollers:!1},T=fetch){const a=await k(y("task-queue",c),{request:T,params:{taskQueueType:"1"}}),s=await k(y("task-queue",c),{request:T,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(u,r)=>{const l=u[r.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return u[r.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimea.pollers.some(u=>{if(e.identity===u.identity)return e.taskQueueTypes=[...u.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=(t==null?void 0:t.returnAllPollers)&&!s.pollers.length?a.pollers:s.pollers,Q=(t==null?void 0:t.returnAllPollers)&&!s.pollers.length?a.taskQueueStatus:s.taskQueueStatus;return{pollers:n,taskQueueStatus:Q}}export{o as g}; +import{r as k,a as y}from"./route-for-api-6372c71f.js";async function o(c,t={returnAllPollers:!1},T=fetch){const a=await k(y("task-queue",c),{request:T,params:{taskQueueType:"1"}}),s=await k(y("task-queue",c),{request:T,params:{taskQueueType:"2"}});s.pollers.forEach(e=>{e.taskQueueTypes=["ACTIVITY"]}),a.pollers.forEach(e=>{e.taskQueueTypes=["WORKFLOW"]});const i=e=>(u,r)=>{const l=u[r.identity]||{lastAccessTime:void 0,taskQueueTypes:[]};return u[r.identity]={lastAccessTime:!l.lastAccessTime||l.lastAccessTimea.pollers.some(u=>{if(e.identity===u.identity)return e.taskQueueTypes=[...u.taskQueueTypes,...e.taskQueueTypes],e})),s.pollers.reduce(i("ACTIVITY"),a.pollers.reduce(i("WORKFLOW"),{}));const n=(t==null?void 0:t.returnAllPollers)&&!s.pollers.length?a.pollers:s.pollers,Q=(t==null?void 0:t.returnAllPollers)&&!s.pollers.length?a.taskQueueStatus:s.taskQueueStatus;return{pollers:n,taskQueueStatus:Q}}export{o as g}; diff --git a/server/generated/ui/_app/immutable/chunks/query-service-0ed03551.js b/server/generated/ui/_app/immutable/chunks/query-service-f76f4494.js similarity index 94% rename from server/generated/ui/_app/immutable/chunks/query-service-0ed03551.js rename to server/generated/ui/_app/immutable/chunks/query-service-f76f4494.js index e16a7f28d6..8cb4a06857 100644 --- a/server/generated/ui/_app/immutable/chunks/query-service-0ed03551.js +++ b/server/generated/ui/_app/immutable/chunks/query-service-f76f4494.js @@ -1 +1 @@ -import{r as c,a as u,i as y}from"./route-for-api-68bfde2a.js";import{a as o}from"./atob-5380a47e.js";const d=t=>{const r=t.indexOf("["),n=t.indexOf("]");return t.slice(r+1,n).split(" ").filter(e=>e!=="__stack_trace").map(e=>e.endsWith(",")?e.slice(0,e.length-1):e)},f=async(t,r)=>(r=await r,{namespace:t,workflowId:r.id,runId:r.runId});async function s({workflow:t,namespace:r,queryType:n},e=fetch,a){t=await t;const i=await f(r,t);return await c(u("query",i),{options:{method:"POST",body:JSON.stringify({execution:{workflowId:t.id,runId:t.runId},query:{queryType:n}})},request:e,onError:a,notifyOnError:!1})}async function g(t,r=fetch){return new Promise((n,e)=>{s({...t,queryType:"@@temporal-internal__list"},r,a=>{y(a.body)&&a.body.message.includes("@@temporal-internal__list")?n(d(a.body.message)):e(a)})})}async function l(t,r=fetch){return s(t,r).then(n=>{const{queryResult:e}=n!=null?n:{queryResult:{payloads:[]}};let a=e.payloads;try{return a[0]&&(a=o(e.payloads[0].data)),JSON.parse(a)}catch{return typeof a!="string"?JSON.stringify(a):a}})}async function h(t,r=fetch){return l({...t,queryType:"__stack_trace"},r)}export{l as a,h as b,g}; +import{r as c,a as u,i as y}from"./route-for-api-6372c71f.js";import{a as o}from"./atob-5380a47e.js";const d=t=>{const r=t.indexOf("["),n=t.indexOf("]");return t.slice(r+1,n).split(" ").filter(e=>e!=="__stack_trace").map(e=>e.endsWith(",")?e.slice(0,e.length-1):e)},f=async(t,r)=>(r=await r,{namespace:t,workflowId:r.id,runId:r.runId});async function s({workflow:t,namespace:r,queryType:n},e=fetch,a){t=await t;const i=await f(r,t);return await c(u("query",i),{options:{method:"POST",body:JSON.stringify({execution:{workflowId:t.id,runId:t.runId},query:{queryType:n}})},request:e,onError:a,notifyOnError:!1})}async function g(t,r=fetch){return new Promise((n,e)=>{s({...t,queryType:"@@temporal-internal__list"},r,a=>{y(a.body)&&a.body.message.includes("@@temporal-internal__list")?n(d(a.body.message)):e(a)})})}async function l(t,r=fetch){return s(t,r).then(n=>{const{queryResult:e}=n!=null?n:{queryResult:{payloads:[]}};let a=e.payloads;try{return a[0]&&(a=o(e.payloads[0].data)),JSON.parse(a)}catch{return typeof a!="string"?JSON.stringify(a):a}})}async function h(t,r=fetch){return l({...t,queryType:"__stack_trace"},r)}export{l as a,h as b,g}; diff --git a/server/generated/ui/_app/immutable/chunks/route-for-api-6372c71f.js b/server/generated/ui/_app/immutable/chunks/route-for-api-6372c71f.js new file mode 100644 index 0000000000..2835929eb5 --- /dev/null +++ b/server/generated/ui/_app/immutable/chunks/route-for-api-6372c71f.js @@ -0,0 +1 @@ +import{d as h,e as w,t as F}from"./route-for-4a4bbbc1.js";import{E as P}from"./index-f283717a.js";import{w as O}from"./index-5dff130b.js";import{n as b}from"./notifications-dddf88f8.js";import{i as z}from"./is-network-error-5f9e2367.js";import{i as L}from"./is-function-45497f08.js";import{g as N}from"./get-api-origin-9f051405.js";import{p as S}from"./get-public-path-6c4a8950.js";const _=O(null),B=(o,n=b,c=_,i=w)=>{if(T(o)&&i){window.location.assign(h());return}if(y(o)&&i){window.location.assign(h());return}if(z(o))throw n.add("error",`${o.statusCode} ${o.statusText}`),c.set(o),o;typeof o=="string"&&n.add("error",o),o instanceof Error&&n.add("error",o.message)},a=(o,n=w)=>{if(T(o)&&n){window.location.assign(h());return}if(y(o)&&n){window.location.assign(h());return}},T=o=>(o==null?void 0:o.statusCode)===401,y=o=>(o==null?void 0:o.statusCode)===403,r=o=>(o==null?void 0:o.message)!==void 0&&typeof(o==null?void 0:o.message)=="string",W=async(o,n={},c=10)=>{var I;const{params:i={},request:d=fetch,token:u,shouldRetry:k=!1,notifyOnError:E=!0,handleError:v=B,onRetry:A=P,onError:g,retryInterval:C=5e3,isBrowser:$=w}=n;let{options:l}=n;const U=u?{next_page_token:u}:{},q=new URLSearchParams({...i,...U}),x=F(o,q);try{l=H(l,$),globalThis!=null&&globalThis.AccessToken&&(l.headers=await K(l==null?void 0:l.headers,globalThis.AccessToken,$));const s=await d(x,l),f=await s.json(),{status:t,statusText:R}=s;if(!s.ok)if(g&&L(g))g({status:t,statusText:R,body:f});else throw{statusCode:s.status,statusText:s.statusText,response:s,message:(I=f==null?void 0:f.message)!=null?I:s.statusText};return f}catch(s){if(E){if(v(s),k&&c>0)return new Promise(f=>{const t=c-1;A(t),setTimeout(()=>{f(W(o,n,t))},C)})}else throw s}},H=(o,n=w)=>{const c={credentials:"include",...o};return c.headers=X(o==null?void 0:o.headers,n),c},K=async(o,n,c=w)=>{if(o||(o={}),!c)return o;try{const i=await n();i&&(o.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return o},X=(o,n=w)=>{if(o||(o={}),!n)return o;const c="_csrf=",i="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(k=>k.includes(c));u&&!o[i]&&(u=u.trim().slice(c.length),o[i]=u)}catch(d){console.error(d)}return o},D=(o,n)=>o.replace("%namespace%",n),G=o=>{var c;let n="";return((c=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:c.apiUrl)&&o?n=D(globalThis.AppConfig.apiUrl,o):n=N(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${S}`,n},J=(o,n)=>(o.startsWith("/")&&(o=o.slice(1)),`${G(n)}/api/v1/${o}`),M=o=>Object.keys(o!=null?o:{}).reduce((n,c)=>(n[c]=encodeURIComponent(encodeURIComponent(o[c])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:""});function nn(o,n,c=!0){c&&(n=M(n));const i={cluster:"/cluster","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events/reverse`,namespaces:"/namespaces",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:`/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`};return J(i[o],n==null?void 0:n.namespace)}export{nn as a,a as b,B as h,r as i,_ as n,W as r}; diff --git a/server/generated/ui/_app/immutable/chunks/route-for-api-68bfde2a.js b/server/generated/ui/_app/immutable/chunks/route-for-api-68bfde2a.js deleted file mode 100644 index b20e090b72..0000000000 --- a/server/generated/ui/_app/immutable/chunks/route-for-api-68bfde2a.js +++ /dev/null @@ -1 +0,0 @@ -import{d as h,e as w,t as P}from"./route-for-4a4bbbc1.js";import{E as O}from"./index-f283717a.js";import{w as b}from"./index-5dff130b.js";import{n as z}from"./notifications-dddf88f8.js";import{i as $}from"./is-network-error-5f9e2367.js";import{i as L}from"./is-function-45497f08.js";import{g as N}from"./get-api-origin-9f051405.js";import{p as S}from"./get-public-path-6c4a8950.js";const _=b(null),B=(o,n=z,c=_,i=w)=>{if(y(o)&&i){window.location.assign(h());return}if(E(o)&&i){window.location.assign(h());return}if($(o))throw n.add("error",`${o.statusCode} ${o.statusText}`),c.set(o),o;typeof o=="string"&&n.add("error",o),o instanceof Error&&n.add("error",o.message)},r=(o,n=w)=>{if(y(o)&&n){window.location.assign(h());return}if(E(o)&&n){window.location.assign(h());return}},y=o=>$(o)?o.statusCode===401:!1,E=o=>$(o)?o.statusCode===403:!1,a=o=>(o==null?void 0:o.message)!==void 0&&typeof(o==null?void 0:o.message)=="string",W=async(o,n={},c=10)=>{var T;const{params:i={},request:d=fetch,token:u,shouldRetry:k=!1,notifyOnError:v=!0,handleError:A=B,onRetry:C=O,onError:g,retryInterval:U=5e3,isBrowser:I=w}=n;let{options:l}=n;const q=u?{next_page_token:u}:{},x=new URLSearchParams({...i,...q}),R=P(o,x);try{l=H(l,I),globalThis!=null&&globalThis.AccessToken&&(l.headers=await K(l==null?void 0:l.headers,globalThis.AccessToken,I));const s=await d(R,l),f=await s.json(),{status:t,statusText:F}=s;if(!s.ok)if(g&&L(g))g({status:t,statusText:F,body:f});else throw{statusCode:s.status,statusText:s.statusText,response:s,message:(T=f==null?void 0:f.message)!=null?T:s.statusText};return f}catch(s){if(v){if(A(s),k&&c>0)return new Promise(f=>{const t=c-1;C(t),setTimeout(()=>{f(W(o,n,t))},U)})}else throw s}},H=(o,n=w)=>{const c={credentials:"include",...o};return c.headers=X(o==null?void 0:o.headers,n),c},K=async(o,n,c=w)=>{if(o||(o={}),!c)return o;try{const i=await n();i&&(o.Authorization=`Bearer ${i}`)}catch(i){console.error(i)}return o},X=(o,n=w)=>{if(o||(o={}),!n)return o;const c="_csrf=",i="X-CSRF-TOKEN";try{let u=document.cookie.split(";").find(k=>k.includes(c));u&&!o[i]&&(u=u.trim().slice(c.length),o[i]=u)}catch(d){console.error(d)}return o},D=(o,n)=>o.replace("%namespace%",n),G=o=>{var c;let n="";return((c=globalThis==null?void 0:globalThis.AppConfig)==null?void 0:c.apiUrl)&&o?n=D(globalThis.AppConfig.apiUrl,o):n=N(),n.endsWith("/")&&(n=n.slice(0,-1)),n=`${n}${S}`,n},J=(o,n)=>(o.startsWith("/")&&(o=o.slice(1)),`${G(n)}/api/v1/${o}`),M=o=>Object.keys(o!=null?o:{}).reduce((n,c)=>(n[c]=encodeURIComponent(encodeURIComponent(o[c])),n),{namespace:"",workflowId:"",scheduleId:"",runId:"",queue:""});function nn(o,n,c=!0){c&&(n=M(n));const i={cluster:"/cluster","events.ascending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events`,"events.descending":`/namespaces/${n==null?void 0:n.namespace}/workflows/${n==null?void 0:n.workflowId}/runs/${n==null?void 0:n.runId}/events/reverse`,namespaces:"/namespaces",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:`/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`};return J(i[o],n==null?void 0:n.namespace)}export{nn as a,r as b,B as h,a as i,_ as n,W as r}; diff --git a/server/generated/ui/_app/immutable/chunks/schedule-service-8d260234.js b/server/generated/ui/_app/immutable/chunks/schedule-service-3e4bdc8a.js similarity index 97% rename from server/generated/ui/_app/immutable/chunks/schedule-service-8d260234.js rename to server/generated/ui/_app/immutable/chunks/schedule-service-3e4bdc8a.js index e22616abba..fc24ea2186 100644 --- a/server/generated/ui/_app/immutable/chunks/schedule-service-8d260234.js +++ b/server/generated/ui/_app/immutable/chunks/schedule-service-3e4bdc8a.js @@ -1 +1 @@ -import{r as d,a as r}from"./route-for-api-68bfde2a.js";var f,g=new Uint8Array(16);function m(){if(!f&&(f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(g)}const S=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function v(e){return typeof e=="string"&&S.test(e)}var n=[];for(var l=0;l<256;++l)n.push((l+256).toString(16).substr(1));function x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!v(s))throw TypeError("Stringified UUID is invalid");return s}function h(e,t,s){e=e||{};var o=e.random||(e.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){s=s||0;for(var u=0;u<16;++u)t[s+u]=o[u];return t}return x(o)}const T=async(e,t=fetch)=>{var i;let s="";const o=a=>{var p,y;return s=(y=(p=a==null?void 0:a.body)==null?void 0:p.message)!=null?y:`Error fetching schedules: ${a.status}: ${a.statusText}`},{schedules:u,nextPageToken:c}=(i=await d(r("schedules",{namespace:e}),{params:{},onError:o,request:t}))!=null?i:{schedules:[],nextPageToken:""};return{schedules:u,nextPageToken:String(c),error:s}};async function R(e,t=fetch){return d(r("schedule",e),{request:t})}async function b(e,t=fetch){return d(r("schedule.delete",e),{request:t,options:{method:"DELETE"}})}async function w({namespace:e,body:t}){let s="";const o=c=>{var i,a;return s=(a=(i=c==null?void 0:c.body)==null?void 0:i.message)!=null?a:`Error creating schedule: ${c.status}: ${c.statusText}`},{conflictToken:u}=await d(r("schedules",{namespace:e}),{options:{method:"POST",body:JSON.stringify({request_id:h(),...t})},shouldRetry:!1,onError:o});return{conflictToken:u,error:s}}async function C({namespace:e,scheduleId:t,reason:s}){const o={patch:{pause:s}};return await d(r("schedule",{namespace:e,scheduleId:t}),{options:{method:"PATCH",body:JSON.stringify({...o,request_id:h()})},shouldRetry:!1,onError:u=>console.error(u)})}async function P({namespace:e,scheduleId:t,reason:s}){const o={patch:{unpause:s}};return await d(r("schedule",{namespace:e,scheduleId:t}),{options:{method:"PATCH",body:JSON.stringify({...o,request_id:h()})},shouldRetry:!1})}export{T as a,w as c,b as d,R as f,C as p,P as u}; +import{r as d,a as r}from"./route-for-api-6372c71f.js";var f,g=new Uint8Array(16);function m(){if(!f&&(f=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!f))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return f(g)}const S=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function v(e){return typeof e=="string"&&S.test(e)}var n=[];for(var l=0;l<256;++l)n.push((l+256).toString(16).substr(1));function x(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=(n[e[t+0]]+n[e[t+1]]+n[e[t+2]]+n[e[t+3]]+"-"+n[e[t+4]]+n[e[t+5]]+"-"+n[e[t+6]]+n[e[t+7]]+"-"+n[e[t+8]]+n[e[t+9]]+"-"+n[e[t+10]]+n[e[t+11]]+n[e[t+12]]+n[e[t+13]]+n[e[t+14]]+n[e[t+15]]).toLowerCase();if(!v(s))throw TypeError("Stringified UUID is invalid");return s}function h(e,t,s){e=e||{};var o=e.random||(e.rng||m)();if(o[6]=o[6]&15|64,o[8]=o[8]&63|128,t){s=s||0;for(var u=0;u<16;++u)t[s+u]=o[u];return t}return x(o)}const T=async(e,t=fetch)=>{var i;let s="";const o=a=>{var p,y;return s=(y=(p=a==null?void 0:a.body)==null?void 0:p.message)!=null?y:`Error fetching schedules: ${a.status}: ${a.statusText}`},{schedules:u,nextPageToken:c}=(i=await d(r("schedules",{namespace:e}),{params:{},onError:o,request:t}))!=null?i:{schedules:[],nextPageToken:""};return{schedules:u,nextPageToken:String(c),error:s}};async function R(e,t=fetch){return d(r("schedule",e),{request:t})}async function b(e,t=fetch){return d(r("schedule.delete",e),{request:t,options:{method:"DELETE"}})}async function w({namespace:e,body:t}){let s="";const o=c=>{var i,a;return s=(a=(i=c==null?void 0:c.body)==null?void 0:i.message)!=null?a:`Error creating schedule: ${c.status}: ${c.statusText}`},{conflictToken:u}=await d(r("schedules",{namespace:e}),{options:{method:"POST",body:JSON.stringify({request_id:h(),...t})},shouldRetry:!1,onError:o});return{conflictToken:u,error:s}}async function C({namespace:e,scheduleId:t,reason:s}){const o={patch:{pause:s}};return await d(r("schedule",{namespace:e,scheduleId:t}),{options:{method:"PATCH",body:JSON.stringify({...o,request_id:h()})},shouldRetry:!1,onError:u=>console.error(u)})}async function P({namespace:e,scheduleId:t,reason:s}){const o={patch:{unpause:s}};return await d(r("schedule",{namespace:e,scheduleId:t}),{options:{method:"PATCH",body:JSON.stringify({...o,request_id:h()})},shouldRetry:!1})}export{T as a,w as c,b as d,R as f,C as p,P as u}; diff --git a/server/generated/ui/_app/immutable/chunks/schedules-b2607a9d.js b/server/generated/ui/_app/immutable/chunks/schedules-d6719c92.js similarity index 97% rename from server/generated/ui/_app/immutable/chunks/schedules-b2607a9d.js rename to server/generated/ui/_app/immutable/chunks/schedules-d6719c92.js index a2f81402e4..b224fb48a9 100644 --- a/server/generated/ui/_app/immutable/chunks/schedules-b2607a9d.js +++ b/server/generated/ui/_app/immutable/chunks/schedules-d6719c92.js @@ -1 +1 @@ -import{g as w}from"./navigation-fbe70647.js";import{w as h}from"./index-5dff130b.js";import{c as b}from"./route-for-4a4bbbc1.js";import{c as v}from"./schedule-service-8d260234.js";function q(c,s,e){const a=c.split(".");return a.reduce((l,r,o)=>l[r]=(a==null?void 0:a.length)===++o?e:l[r]||{},s)}const I={name:{key:"schedule_id",label:"Schedule Name",required:!0},workflowType:{key:"schedule.action.startWorkflow.workflowType.name",label:"Workflow Type",required:!0},workflowId:{key:"schedule.action.startWorkflow.workflowId",label:"Workflow Id",required:!0},workflowTaskQueue:{key:"schedule.action.startWorkflow.taskQueue.name",label:"Task Queue Name",required:!0},interval:{key:"schedule.spec.interval.interval",label:"Interval",placeholder:"86400s",required:!1},phase:{key:"schedule.spec.interval.phase",label:"Phase",placeholder:"0s",required:!1},year:{key:"schedule.spec.calendar.year",label:"Year",required:!1},month:{key:"schedule.spec.calendar.month",label:"Month",required:!1},dayOfMonth:{key:"schedule.spec.calendar.dayOfMonth",label:"Day of Month",required:!1},dayOfWeek:{key:"schedule.spec.calendar.dayOfWeek",label:"Day of Week",required:!1},hour:{key:"schedule.spec.calendar.hour",label:"Hour",required:!1},minute:{key:"schedule.spec.calendar.minute",label:"Minute",required:!1},second:{key:"schedule.spec.calendar.second",label:"Second",required:!1}},S=async(c,s)=>{const e=c.values,a={schedule_id:"",schedule:{spec:{calendar:[],interval:[]},action:{startWorkflow:{workflowId:"",workflowType:{name:""},taskQueue:{name:""}}}}};Object.keys(e).forEach(n=>{q(n,a,e[n])});const l=e["schedule.spec.interval.interval"],r=e["schedule.spec.interval.phase"],o=e["schedule.spec.calendar.year"],i=e["schedule.spec.calendar.month"],f=e["schedule.spec.calendar.dayOfMonth"],p=e["schedule.spec.calendar.dayOfWeek"],k=e["schedule.spec.calendar.hour"],y=e["schedule.spec.calendar.minute"],m=e["schedule.spec.calendar.second"];l?(a.schedule.spec.interval=[{interval:l,phase:r||"0s"}],a.schedule.spec.calendar=[]):(a.schedule.spec.interval=[],a.schedule.spec.calendar=[{year:o,month:i,dayOfMonth:f,dayOfWeek:p,hour:k,minute:y,second:m}]),d.set(!0);const{error:t}=await v({namespace:s,body:a});t?(u.set(t),d.set(!1)):(u.set(""),setTimeout(()=>{w(b({namespace:s})),d.set(!1)},2e3))},d=h(!1),u=h("");export{u as e,I as f,d as l,S as s}; +import{g as w}from"./navigation-fbe70647.js";import{w as h}from"./index-5dff130b.js";import{c as b}from"./route-for-4a4bbbc1.js";import{c as v}from"./schedule-service-3e4bdc8a.js";function q(c,s,e){const a=c.split(".");return a.reduce((l,r,o)=>l[r]=(a==null?void 0:a.length)===++o?e:l[r]||{},s)}const I={name:{key:"schedule_id",label:"Schedule Name",required:!0},workflowType:{key:"schedule.action.startWorkflow.workflowType.name",label:"Workflow Type",required:!0},workflowId:{key:"schedule.action.startWorkflow.workflowId",label:"Workflow Id",required:!0},workflowTaskQueue:{key:"schedule.action.startWorkflow.taskQueue.name",label:"Task Queue Name",required:!0},interval:{key:"schedule.spec.interval.interval",label:"Interval",placeholder:"86400s",required:!1},phase:{key:"schedule.spec.interval.phase",label:"Phase",placeholder:"0s",required:!1},year:{key:"schedule.spec.calendar.year",label:"Year",required:!1},month:{key:"schedule.spec.calendar.month",label:"Month",required:!1},dayOfMonth:{key:"schedule.spec.calendar.dayOfMonth",label:"Day of Month",required:!1},dayOfWeek:{key:"schedule.spec.calendar.dayOfWeek",label:"Day of Week",required:!1},hour:{key:"schedule.spec.calendar.hour",label:"Hour",required:!1},minute:{key:"schedule.spec.calendar.minute",label:"Minute",required:!1},second:{key:"schedule.spec.calendar.second",label:"Second",required:!1}},S=async(c,s)=>{const e=c.values,a={schedule_id:"",schedule:{spec:{calendar:[],interval:[]},action:{startWorkflow:{workflowId:"",workflowType:{name:""},taskQueue:{name:""}}}}};Object.keys(e).forEach(n=>{q(n,a,e[n])});const l=e["schedule.spec.interval.interval"],r=e["schedule.spec.interval.phase"],o=e["schedule.spec.calendar.year"],i=e["schedule.spec.calendar.month"],f=e["schedule.spec.calendar.dayOfMonth"],p=e["schedule.spec.calendar.dayOfWeek"],k=e["schedule.spec.calendar.hour"],y=e["schedule.spec.calendar.minute"],m=e["schedule.spec.calendar.second"];l?(a.schedule.spec.interval=[{interval:l,phase:r||"0s"}],a.schedule.spec.calendar=[]):(a.schedule.spec.interval=[],a.schedule.spec.calendar=[{year:o,month:i,dayOfMonth:f,dayOfWeek:p,hour:k,minute:y,second:m}]),d.set(!0);const{error:t}=await v({namespace:s,body:a});t?(u.set(t),d.set(!1)):(u.set(""),setTimeout(()=>{w(b({namespace:s})),d.set(!1)},2e3))},d=h(!1),u=h("");export{u as e,I as f,d as l,S as s}; diff --git a/server/generated/ui/_app/immutable/chunks/settings-service-807323d3.js b/server/generated/ui/_app/immutable/chunks/settings-service-54502f3f.js similarity index 94% rename from server/generated/ui/_app/immutable/chunks/settings-service-807323d3.js rename to server/generated/ui/_app/immutable/chunks/settings-service-54502f3f.js index eb4da0fc7c..877f69cb77 100644 --- a/server/generated/ui/_app/immutable/chunks/settings-service-807323d3.js +++ b/server/generated/ui/_app/immutable/chunks/settings-service-54502f3f.js @@ -1 +1 @@ -import{s as u}from"./settings-16907be6.js";import{g as d}from"./get-api-origin-9f051405.js";import{r as n,a as f}from"./route-for-api-68bfde2a.js";function E(){var a;return(a={VITE_API:"",VITE_MODE:"development",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_TEMPORAL_UI_BUILD_TARGET)!=null?a:null}const m=/(tmprl\.cloud|tmprl-test\.cloud)$/,T=async(a=fetch)=>{var c,l,i,e;const r=await n(f("settings"),{request:a}),o=E(),t={auth:{enabled:!!((c=r==null?void 0:r.Auth)!=null&&c.Enabled),options:(l=r==null?void 0:r.Auth)==null?void 0:l.Options},baseUrl:d(),codec:{endpoint:(i=r==null?void 0:r.Codec)==null?void 0:i.Endpoint,accessToken:(e=r==null?void 0:r.Codec)==null?void 0:e.AccessToken},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return o?o==="cloud":m.test(window.location.hostname)},get isLocal(){return o?o==="local":m.test(window.location.hostname)},envOverride:Boolean(o)},version:r==null?void 0:r.Version};return u.set(t),t};export{T as f}; +import{s as u}from"./settings-16907be6.js";import{g as d}from"./get-api-origin-9f051405.js";import{r as n,a as f}from"./route-for-api-6372c71f.js";function E(){var a;return(a={VITE_API:"",VITE_MODE:"development",BASE_URL:"/",MODE:"production",DEV:!1,PROD:!0}.VITE_TEMPORAL_UI_BUILD_TARGET)!=null?a:null}const m=/(tmprl\.cloud|tmprl-test\.cloud)$/,T=async(a=fetch)=>{var c,l,i,e;const r=await n(f("settings"),{request:a}),o=E(),t={auth:{enabled:!!((c=r==null?void 0:r.Auth)!=null&&c.Enabled),options:(l=r==null?void 0:r.Auth)==null?void 0:l.Options},baseUrl:d(),codec:{endpoint:(i=r==null?void 0:r.Codec)==null?void 0:i.Endpoint,accessToken:(e=r==null?void 0:r.Codec)==null?void 0:e.AccessToken},defaultNamespace:(r==null?void 0:r.DefaultNamespace)||"default",disableWriteActions:!!(r!=null&&r.DisableWriteActions)||!1,showTemporalSystemNamespace:r==null?void 0:r.ShowTemporalSystemNamespace,notifyOnNewVersion:r==null?void 0:r.NotifyOnNewVersion,feedbackURL:r==null?void 0:r.FeedbackURL,runtimeEnvironment:{get isCloud(){return o?o==="cloud":m.test(window.location.hostname)},get isLocal(){return o?o==="local":m.test(window.location.hostname)},envOverride:Boolean(o)},version:r==null?void 0:r.Version};return u.set(t),t};export{T as f}; diff --git a/server/generated/ui/_app/immutable/chunks/workflow-run-3909e956.js b/server/generated/ui/_app/immutable/chunks/workflow-run-d7909f7f.js similarity index 84% rename from server/generated/ui/_app/immutable/chunks/workflow-run-3909e956.js rename to server/generated/ui/_app/immutable/chunks/workflow-run-d7909f7f.js index 8e04b2b895..d68e9970eb 100644 --- a/server/generated/ui/_app/immutable/chunks/workflow-run-3909e956.js +++ b/server/generated/ui/_app/immutable/chunks/workflow-run-d7909f7f.js @@ -1 +1 @@ -import{d as a,r as p,w as t}from"./index-5dff130b.js";import{p as n}from"./stores-62bcca1c.js";import{w as f}from"./with-loading-f07bedaf.js";import{f as w}from"./workflow-service-d942142b.js";import{g as d}from"./pollers-service-646d24c8.js";import{m as k}from"./route-for-4a4bbbc1.js";const g=t(0),b=a([n],([r])=>r.params.namespace),h=a([n],([r])=>r.params.workflow),R=a([n],([r])=>r.params.run),I=a([b,h,R,g],([r,e,o,s])=>({namespace:r,workflowId:k(e!=null?e:""),runId:o,refresh:s})),W={workflow:null,workers:null},v=r=>I.subscribe(({namespace:e,workflowId:o,runId:s})=>{e&&o&&s?f(u,m,async()=>{const c=await w({namespace:e,workflowId:o,runId:s}),{taskQueue:l}=c,i=await d({queue:l,namespace:e});r({workflow:c,workers:i})}):(u.set(!0),m.set(!1))}),m=t(!0),u=t(!0),Q=p(W,v);export{u as l,g as r,Q as w}; +import{d as a,r as p,w as t}from"./index-5dff130b.js";import{p as n}from"./stores-62bcca1c.js";import{w as f}from"./with-loading-f07bedaf.js";import{f as w}from"./workflow-service-52952a0f.js";import{g as d}from"./pollers-service-a9fb1f4f.js";import{m as k}from"./route-for-4a4bbbc1.js";const g=t(0),b=a([n],([r])=>r.params.namespace),h=a([n],([r])=>r.params.workflow),R=a([n],([r])=>r.params.run),I=a([b,h,R,g],([r,e,o,s])=>({namespace:r,workflowId:k(e!=null?e:""),runId:o,refresh:s})),W={workflow:null,workers:null},v=r=>I.subscribe(({namespace:e,workflowId:o,runId:s})=>{e&&o&&s?f(u,m,async()=>{const c=await w({namespace:e,workflowId:o,runId:s}),{taskQueue:l}=c,i=await d({queue:l,namespace:e});r({workflow:c,workers:i})}):(u.set(!0),m.set(!1))}),m=t(!0),u=t(!0),Q=p(W,v);export{u as l,g as r,Q as w}; diff --git a/server/generated/ui/_app/immutable/chunks/workflow-service-d942142b.js b/server/generated/ui/_app/immutable/chunks/workflow-service-52952a0f.js similarity index 95% rename from server/generated/ui/_app/immutable/chunks/workflow-service-d942142b.js rename to server/generated/ui/_app/immutable/chunks/workflow-service-52952a0f.js index 8640647180..7607082abb 100644 --- a/server/generated/ui/_app/immutable/chunks/workflow-service-d942142b.js +++ b/server/generated/ui/_app/immutable/chunks/workflow-service-52952a0f.js @@ -1 +1 @@ -import{X as S}from"./index-f283717a.js";import{s as C}from"./settings-16907be6.js";import{s as D}from"./simplify-attributes-61797c15.js";import{r as h,a as A,b as q}from"./route-for-api-68bfde2a.js";import{b as F,e as K,h as I,j as P}from"./to-duration-a5f6615f.js";const Q=(t=C)=>!S(t).disableWriteActions,R=(t=[])=>t.map(o=>{const e=D(o,!0),n=o.activityId;return{...e,id:n}}),W=t=>{var m,x,g,y,E,T;const o=t.workflowExecutionInfo.type.name,e=t.workflowExecutionInfo.execution.workflowId,n=t.workflowExecutionInfo.execution.runId,a=String(t.workflowExecutionInfo.startTime),l=String(t.workflowExecutionInfo.closeTime),r=t.workflowExecutionInfo.status,f=t.workflowExecutionInfo.status==="Running",w=t.workflowExecutionInfo.historyLength,d=`/workflows/${e}/${n}`,k=(x=(m=t==null?void 0:t.executionConfig)==null?void 0:m.taskQueue)==null?void 0:x.name,c=(g=t==null?void 0:t.workflowExecutionInfo)==null?void 0:g.parentNamespaceId,i=(y=t==null?void 0:t.workflowExecutionInfo)==null?void 0:y.parentExecution,u=t.workflowExecutionInfo.stateTransitionCount,s=(E=t.executionConfig)==null?void 0:E.defaultWorkflowTaskTimeout,b=R(t.pendingActivities),$=(T=t==null?void 0:t.pendingChildren)!=null?T:[];return{name:o,id:e,runId:n,startTime:a,endTime:l,status:r,historyEvents:w,url:d,taskQueue:k,pendingActivities:b,pendingChildren:$,parentNamespaceId:c,parent:i,stateTransitionCount:u,isRunning:f,defaultWorkflowTaskTimeout:s,get canBeTerminated(){return f&&Q()}}},N=t=>(t.executions||[]).map(o=>W({workflowExecutionInfo:o})),j={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},B=["workflowId","workflowType","timeRange","executionStatus","closeTime"],L=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),O=t=>{if(typeof t!="string")return!1;for(const o of B)if(o===t)return!0;return!1},U=(t,o,e)=>{const n=j[t];return o==="All"?"":F(o)||K(o)?e?`${n} > "${I(o)}"`:`${n} BETWEEN "${I(o)}" AND "${P()}"`:`${n}="${o}"`},_=(t,o)=>Object.entries(t).map(([e,n])=>{if(O(e)&&L(n))return U(e,n,o)}).filter(Boolean),z=(t,o=!1)=>_(t,o).join(" and "),V=async(t,o,e=fetch,n=!1)=>{var c;const a=decodeURIComponent(o.query||z(o,n)),l=n?"workflows.archived":"workflows";let r="";const f=i=>{var u,s;q(i),r=(s=(u=i==null?void 0:i.body)==null?void 0:u.message)!=null?s:`Error fetching workflows: ${i.status}: ${i.statusText}`},w=()=>{r="Failed to fetch workflows"},{executions:d,nextPageToken:k}=(c=await h(A(l,{namespace:t}),{params:{query:a},onError:f,handleError:w,request:e}))!=null?c:{executions:[],nextPageToken:""};return{workflows:N({executions:d}),nextPageToken:String(k),error:r}},Y=async(t,o,e=fetch)=>V(t,o,e,!0);async function Z(t,o=fetch){return h(A("workflow",t),{request:o}).then(W)}export{V as a,Y as b,Z as f,z as t}; +import{X as S}from"./index-f283717a.js";import{s as C}from"./settings-16907be6.js";import{s as D}from"./simplify-attributes-61797c15.js";import{r as h,a as A,b as q}from"./route-for-api-6372c71f.js";import{b as F,e as K,h as I,j as P}from"./to-duration-a5f6615f.js";const Q=(t=C)=>!S(t).disableWriteActions,R=(t=[])=>t.map(o=>{const e=D(o,!0),n=o.activityId;return{...e,id:n}}),W=t=>{var m,x,g,y,E,T;const o=t.workflowExecutionInfo.type.name,e=t.workflowExecutionInfo.execution.workflowId,n=t.workflowExecutionInfo.execution.runId,a=String(t.workflowExecutionInfo.startTime),l=String(t.workflowExecutionInfo.closeTime),r=t.workflowExecutionInfo.status,f=t.workflowExecutionInfo.status==="Running",w=t.workflowExecutionInfo.historyLength,d=`/workflows/${e}/${n}`,k=(x=(m=t==null?void 0:t.executionConfig)==null?void 0:m.taskQueue)==null?void 0:x.name,c=(g=t==null?void 0:t.workflowExecutionInfo)==null?void 0:g.parentNamespaceId,i=(y=t==null?void 0:t.workflowExecutionInfo)==null?void 0:y.parentExecution,u=t.workflowExecutionInfo.stateTransitionCount,s=(E=t.executionConfig)==null?void 0:E.defaultWorkflowTaskTimeout,b=R(t.pendingActivities),$=(T=t==null?void 0:t.pendingChildren)!=null?T:[];return{name:o,id:e,runId:n,startTime:a,endTime:l,status:r,historyEvents:w,url:d,taskQueue:k,pendingActivities:b,pendingChildren:$,parentNamespaceId:c,parent:i,stateTransitionCount:u,isRunning:f,defaultWorkflowTaskTimeout:s,get canBeTerminated(){return f&&Q()}}},N=t=>(t.executions||[]).map(o=>W({workflowExecutionInfo:o})),j={workflowId:"WorkflowId",workflowType:"WorkflowType",timeRange:"StartTime",executionStatus:"ExecutionStatus",closeTime:"CloseTime"},B=["workflowId","workflowType","timeRange","executionStatus","closeTime"],L=t=>!(t===null||t===void 0||t===""||typeof t=="string"&&t==="undefined"),O=t=>{if(typeof t!="string")return!1;for(const o of B)if(o===t)return!0;return!1},U=(t,o,e)=>{const n=j[t];return o==="All"?"":F(o)||K(o)?e?`${n} > "${I(o)}"`:`${n} BETWEEN "${I(o)}" AND "${P()}"`:`${n}="${o}"`},_=(t,o)=>Object.entries(t).map(([e,n])=>{if(O(e)&&L(n))return U(e,n,o)}).filter(Boolean),z=(t,o=!1)=>_(t,o).join(" and "),V=async(t,o,e=fetch,n=!1)=>{var c;const a=decodeURIComponent(o.query||z(o,n)),l=n?"workflows.archived":"workflows";let r="";const f=i=>{var u,s;q(i),r=(s=(u=i==null?void 0:i.body)==null?void 0:u.message)!=null?s:`Error fetching workflows: ${i.status}: ${i.statusText}`},w=()=>{r="Failed to fetch workflows"},{executions:d,nextPageToken:k}=(c=await h(A(l,{namespace:t}),{params:{query:a},onError:f,handleError:w,request:e}))!=null?c:{executions:[],nextPageToken:""};return{workflows:N({executions:d}),nextPageToken:String(k),error:r}},Y=async(t,o,e=fetch)=>V(t,o,e,!0);async function Z(t,o=fetch){return h(A("workflow",t),{request:o}).then(W)}export{V as a,Y as b,Z as f,z as t}; diff --git a/server/generated/ui/_app/immutable/chunks/workflows-e17909e9.js b/server/generated/ui/_app/immutable/chunks/workflows-af7f117d.js similarity index 89% rename from server/generated/ui/_app/immutable/chunks/workflows-e17909e9.js rename to server/generated/ui/_app/immutable/chunks/workflows-af7f117d.js index 823abf147c..4aa46d29a6 100644 --- a/server/generated/ui/_app/immutable/chunks/workflows-e17909e9.js +++ b/server/generated/ui/_app/immutable/chunks/workflows-af7f117d.js @@ -1 +1 @@ -import{d as o,r as p,w as s}from"./index-5dff130b.js";import{p as n}from"./stores-62bcca1c.js";import{a as m}from"./workflow-service-d942142b.js";import{w as f}from"./with-loading-f07bedaf.js";const l=s(0),i=o([n],([r])=>r.params.namespace),u=o([n],([r])=>r.url.searchParams.get("query")),d=o([i,u,l],([r,a,e])=>({namespace:r,query:a,refresh:e})),h=r=>d.subscribe(({namespace:a,query:e})=>{f(y,k,async()=>{const{workflows:w,error:t}=await m(a,{query:e});r(w),t?c.set(t):c.set("")})}),v=s({parameters:{},searchType:"basic"}),k=s(!0),y=s(!0),c=s(""),x=p([],h);export{x as a,c as b,y as l,l as r,k as u,v as w}; +import{d as o,r as p,w as s}from"./index-5dff130b.js";import{p as n}from"./stores-62bcca1c.js";import{a as m}from"./workflow-service-52952a0f.js";import{w as f}from"./with-loading-f07bedaf.js";const l=s(0),i=o([n],([r])=>r.params.namespace),u=o([n],([r])=>r.url.searchParams.get("query")),d=o([i,u,l],([r,a,e])=>({namespace:r,query:a,refresh:e})),h=r=>d.subscribe(({namespace:a,query:e})=>{f(y,k,async()=>{const{workflows:w,error:t}=await m(a,{query:e});r(w),t?c.set(t):c.set("")})}),v=s({parameters:{},searchType:"basic"}),k=s(!0),y=s(!0),c=s(""),x=p([],h);export{x as a,c as b,y as l,l as r,k as u,v as w}; diff --git a/server/generated/ui/_app/immutable/chunks/workflows-summary-row-f343242c.js b/server/generated/ui/_app/immutable/chunks/workflows-summary-row-bda45870.js similarity index 99% rename from server/generated/ui/_app/immutable/chunks/workflows-summary-row-f343242c.js rename to server/generated/ui/_app/immutable/chunks/workflows-summary-row-bda45870.js index b5d4d46991..925bbdae3b 100644 --- a/server/generated/ui/_app/immutable/chunks/workflows-summary-row-f343242c.js +++ b/server/generated/ui/_app/immutable/chunks/workflows-summary-row-bda45870.js @@ -1 +1 @@ -import{S as ye,i as Ee,s as he,w as J,x as V,y as j,f as E,t as $,B as X,I as Ke,J as Me,K as ze,L as Ge,l as k,r as H,a as I,m as T,n as v,u as N,h as u,c as P,p as S,b,M as d,E as we,e as He,g as pe,d as de,N as Qe,T as C,U as be,aq as ke,H as Je,v as ee,G as Ve}from"./index-f283717a.js";import{T as je,a as Xe,b as Ye}from"./table-row-f3dc657f.js";import{p as Ze}from"./stores-62bcca1c.js";import{c as xe,f as G,d as Ne}from"./format-date-e7563fe7.js";import{n as et}from"./route-for-4a4bbbc1.js";import{u as tt}from"./update-query-parameters-0d565146.js";import{c as lt,d as st,e as rt,f as ot}from"./is-6159121b.js";import{l as at,m as nt}from"./to-duration-a5f6615f.js";import{t as Ce}from"./workflow-service-d942142b.js";import{W as ft}from"./workflow-status-0bcf7612.js";import{I as Re}from"./icon-c6a60499.js";import{c as it}from"./copy-to-clipboard-c6080acc.js";function ut(r){let e;const s=r[0].default,t=Ke(s,r,r[1],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,a){t&&t.p&&(!e||a&2)&&Me(t,s,l,l[1],e?Ge(s,l[1],a,null):ze(l[1]),null)},i(l){e||(E(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function ct(r){let e,s,t,l,a,o,n,i,m,W,D,q,_,B,h,g,Q;return{c(){e=k("th"),s=H("Status"),t=I(),l=k("th"),a=H("Workflow ID"),o=I(),n=k("th"),i=H("Type"),m=I(),W=k("th"),D=H("Start"),q=I(),_=k("th"),B=H("End"),h=I(),g=k("th"),Q=H("Summary"),this.h()},l(c){e=T(c,"TH",{class:!0});var w=v(e);s=N(w,"Status"),w.forEach(u),t=P(c),l=T(c,"TH",{class:!0});var y=v(l);a=N(y,"Workflow ID"),y.forEach(u),o=P(c),n=T(c,"TH",{class:!0});var R=v(n);i=N(R,"Type"),R.forEach(u),m=P(c),W=T(c,"TH",{class:!0});var U=v(W);D=N(U,"Start"),U.forEach(u),q=P(c),_=T(c,"TH",{class:!0});var F=v(_);B=N(F,"End"),F.forEach(u),h=P(c),g=T(c,"TH",{class:!0,colspan:!0});var K=v(g);Q=N(K,"Summary"),K.forEach(u),this.h()},h(){S(e,"class","hidden w-48 md:table-cell"),S(l,"class","hidden md:table-cell md:w-60 xl:w-auto"),S(n,"class","hidden md:table-cell md:w-60 xl:w-80"),S(W,"class","hidden xl:table-cell xl:w-60"),S(_,"class","hidden xl:table-cell xl:w-60"),S(g,"class","table-cell md:hidden"),S(g,"colspan","3")},m(c,w){b(c,e,w),d(e,s),b(c,t,w),b(c,l,w),d(l,a),b(c,o,w),b(c,n,w),d(n,i),b(c,m,w),b(c,W,w),d(W,D),b(c,q,w),b(c,_,w),d(_,B),b(c,h,w),b(c,g,w),d(g,Q)},p:we,d(c){c&&u(e),c&&u(t),c&&u(l),c&&u(o),c&&u(n),c&&u(m),c&&u(W),c&&u(q),c&&u(_),c&&u(h),c&&u(g)}}}function mt(r){let e,s;return e=new Xe({props:{slot:"headers",$$slots:{default:[ct]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function _t(r){let e,s;return e=new je({props:{class:"w-full md:table-fixed",$$slots:{headers:[mt],default:[ut]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,[l]){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function pt(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=a=>{"$$scope"in a&&s(1,l=a.$$scope)},[t,l]}class At extends ye{constructor(e){super(),Ee(this,e,pt,_t,he,{})}}const dt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),_e=(r,e)=>r[e+2],ht=r=>{if(!!r){for(const e of nt)if(r[e])return{[e]:r[e]}}},wt=Te("WorkflowType"),bt=Te("WorkflowId"),kt=Te("StartTime"),Tt=Te("ExecutionStatus"),vt=r=>{const e=dt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(bt(t)&&(s.workflowId=_e(e,l)),wt(t)&&(s.workflowType=_e(e,l)),Tt(t)){const a=_e(e,l);ot(a)&&(s.executionStatus=a)}if(kt(t)){const a=_e(e,l);try{const o=at(a),n=ht(o);s.timeRange=xe(n)}catch(o){console.error("Error parsing StartTime from query",o)}}}),s};function Le(r){let e,s,t,l,a,o=r[1]&&Be(r),n=r[2]&&Ae(r);return{c(){e=k("div"),o&&o.c(),s=I(),n&&n.c(),this.h()},l(i){e=T(i,"DIV",{class:!0});var m=v(e);o&&o.l(m),s=P(m),n&&n.l(m),m.forEach(u),this.h()},h(){S(e,"class","copy-or-filter svelte-1llgntb")},m(i,m){b(i,e,m),o&&o.m(e,null),d(e,s),n&&n.m(e,null),t=!0,l||(a=C(e,"click",be(ke(we))),l=!0)},p(i,m){i[1]?o?(o.p(i,m),m&2&&E(o,1)):(o=Be(i),o.c(),E(o,1),o.m(e,s)):o&&(pe(),$(o,1,1,()=>{o=null}),de()),i[2]?n?(n.p(i,m),m&4&&E(n,1)):(n=Ae(i),n.c(),E(n,1),n.m(e,null)):n&&(pe(),$(n,1,1,()=>{n=null}),de())},i(i){t||(E(o),E(n),t=!0)},o(i){$(o),$(n),t=!1},d(i){i&&u(e),o&&o.d(),n&&n.d(),l=!1,a()}}}function Be(r){let e,s=r[5],t,l,a,o=Ue(r);return{c(){e=k("button"),o.c()},l(n){e=T(n,"BUTTON",{});var i=v(e);o.l(i),i.forEach(u)},m(n,i){b(n,e,i),o.m(e,null),t=!0,l||(a=C(e,"click",be(ke(function(){Je(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,i){r=n,i&32&&he(s,s=r[5])?(pe(),$(o,1,1,we),de(),o=Ue(r),o.c(),E(o,1),o.m(e,null)):o.p(r,i)},i(n){t||(E(o),t=!0)},o(n){$(o),t=!1},d(n){n&&u(e),o.d(n),l=!1,a()}}}function Ue(r){let e,s;return e=new Re({props:{name:r[5]?"filter-solid":"filter",class:"h-4 w-4"}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,l){const a={};l&32&&(a.name=t[5]?"filter-solid":"filter"),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function Ae(r){let e,s,t,l,a;return s=new Re({props:{name:r[6]?"checkmark":"copy",stroke:"#000"}}),{c(){e=k("button"),J(s.$$.fragment)},l(o){e=T(o,"BUTTON",{});var n=v(e);V(s.$$.fragment,n),n.forEach(u)},m(o,n){b(o,e,n),j(s,e,null),t=!0,l||(a=C(e,"click",be(ke(r[9]))),l=!0)},p(o,n){const i={};n&64&&(i.name=o[6]?"checkmark":"copy"),s.$set(i)},i(o){t||(E(s.$$.fragment,o),t=!0)},o(o){$(s.$$.fragment,o),t=!1},d(o){o&&u(e),X(s),l=!1,a()}}}function yt(r){let e,s,t=r[0]&&Le(r);return{c(){t&&t.c(),e=He()},l(l){t&&t.l(l),e=He()},m(l,a){t&&t.m(l,a),b(l,e,a),s=!0},p(l,[a]){l[0]?t?(t.p(l,a),a&1&&E(t,1)):(t=Le(l),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(pe(),$(t,1,1,()=>{t=null}),de())},i(l){s||(E(t),s=!0)},o(l){$(t),s=!1},d(l){t&&t.d(l),l&&u(e)}}}function Et(r,e,s){let t,{show:l=!1}=e,{filterable:a=!0}=e,{copyable:o=!0}=e,{content:n}=e,{onFilter:i=we}=e,{filtered:m=!1}=e;const{copy:W,copied:D}=it(700);Qe(r,D,_=>s(6,t=_));const q=_=>W(_,n);return r.$$set=_=>{"show"in _&&s(0,l=_.show),"filterable"in _&&s(1,a=_.filterable),"copyable"in _&&s(2,o=_.copyable),"content"in _&&s(3,n=_.content),"onFilter"in _&&s(4,i=_.onFilter),"filtered"in _&&s(5,m=_.filtered)},[l,a,o,n,i,m,t,W,D,q]}class Oe extends ye{constructor(e){super(),Ee(this,e,Et,yt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5})}}function gt(r){var Se,$e,We;let e,s,t,l,a,o=r[0].id+"",n,i,m,W,D,q=G(r[0].startTime,r[1])+"",_,B,h,g,Q,c,w,y=r[0].name+"",R,U,F,K,M,te=G(r[0].endTime,r[1])+"",fe,ie,Y,le,se=G(r[0].startTime,r[1])+"",ue,ce,Z,re,oe=G(r[0].endTime,r[1])+"",me,A,ve,ge;return s=new ft({props:{status:r[0].status,delay:Ne(r[0].startTime)}}),m=new Oe({props:{show:r[2],content:r[0].id,filterable:!1}}),F=new Oe({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(We=($e=(Se=r[4].url)==null?void 0:Se.searchParams)==null?void 0:$e.get("query"))==null?void 0:We.includes(r[0].name)}}),{c(){e=k("td"),J(s.$$.fragment),t=I(),l=k("td"),a=k("span"),n=H(o),i=I(),J(m.$$.fragment),W=I(),D=k("p"),_=H(q),B=I(),h=k("td"),g=k("h3"),Q=H("Workflow Name:"),c=I(),w=k("span"),R=H(y),U=I(),J(F.$$.fragment),K=I(),M=k("p"),fe=H(te),ie=I(),Y=k("td"),le=k("p"),ue=H(se),ce=I(),Z=k("td"),re=k("p"),me=H(oe),this.h()},l(f){e=T(f,"TD",{});var p=v(e);V(s.$$.fragment,p),p.forEach(u),t=P(f),l=T(f,"TD",{class:!0});var O=v(l);a=T(O,"SPAN",{class:!0});var x=v(a);n=N(x,o),x.forEach(u),i=P(O),V(m.$$.fragment,O),W=P(O),D=T(O,"P",{class:!0});var z=v(D);_=N(z,q),z.forEach(u),O.forEach(u),B=P(f),h=T(f,"TD",{class:!0});var L=v(h);g=T(L,"H3",{class:!0});var ae=v(g);Q=N(ae,"Workflow Name:"),ae.forEach(u),c=P(L),w=T(L,"SPAN",{class:!0});var ne=v(w);R=N(ne,y),ne.forEach(u),U=P(L),V(F.$$.fragment,L),K=P(L),M=T(L,"P",{class:!0});var Fe=v(M);fe=N(Fe,te),Fe.forEach(u),L.forEach(u),ie=P(f),Y=T(f,"TD",{class:!0});var De=v(Y);le=T(De,"P",{});var Ie=v(le);ue=N(Ie,se),Ie.forEach(u),De.forEach(u),ce=P(f),Z=T(f,"TD",{class:!0});var Pe=v(Z);re=T(Pe,"P",{});var qe=v(re);me=N(qe,oe),qe.forEach(u),Pe.forEach(u),this.h()},h(){S(a,"class","table-link svelte-si1lto"),S(D,"class","inline-time-cell svelte-si1lto"),S(l,"class","relative truncate"),S(g,"class","md:hidden"),S(w,"class","table-link svelte-si1lto"),S(M,"class","inline-time-cell svelte-si1lto"),S(h,"class","relative truncate"),S(Y,"class","time-cell svelte-si1lto"),S(Z,"class","time-cell svelte-si1lto")},m(f,p){b(f,e,p),j(s,e,null),b(f,t,p),b(f,l,p),d(l,a),d(a,n),d(l,i),j(m,l,null),d(l,W),d(l,D),d(D,_),b(f,B,p),b(f,h,p),d(h,g),d(g,Q),d(h,c),d(h,w),d(w,R),d(h,U),j(F,h,null),d(h,K),d(h,M),d(M,fe),b(f,ie,p),b(f,Y,p),d(Y,le),d(le,ue),b(f,ce,p),b(f,Z,p),d(Z,re),d(re,me),A=!0,ve||(ge=[C(l,"mouseover",r[7]),C(l,"focus",r[8]),C(l,"mouseleave",r[9]),C(l,"blur",r[10]),C(w,"click",be(ke(r[11]))),C(h,"mouseover",r[13]),C(h,"focus",r[14]),C(h,"mouseleave",r[15]),C(h,"blur",r[16])],ve=!0)},p(f,p){var L,ae,ne;const O={};p&1&&(O.status=f[0].status),p&1&&(O.delay=Ne(f[0].startTime)),s.$set(O),(!A||p&1)&&o!==(o=f[0].id+"")&&ee(n,o);const x={};p&4&&(x.show=f[2]),p&1&&(x.content=f[0].id),m.$set(x),(!A||p&3)&&q!==(q=G(f[0].startTime,f[1])+"")&&ee(_,q),(!A||p&1)&&y!==(y=f[0].name+"")&&ee(R,y);const z={};p&4&&(z.show=f[2]),p&1&&(z.content=f[0].name),p&1&&(z.onFilter=f[12]),p&17&&(z.filtered=(ne=(ae=(L=f[4].url)==null?void 0:L.searchParams)==null?void 0:ae.get("query"))==null?void 0:ne.includes(f[0].name)),F.$set(z),(!A||p&3)&&te!==(te=G(f[0].endTime,f[1])+"")&&ee(fe,te),(!A||p&3)&&se!==(se=G(f[0].startTime,f[1])+"")&&ee(ue,se),(!A||p&3)&&oe!==(oe=G(f[0].endTime,f[1])+"")&&ee(me,oe)},i(f){A||(E(s.$$.fragment,f),E(m.$$.fragment,f),E(F.$$.fragment,f),A=!0)},o(f){$(s.$$.fragment,f),$(m.$$.fragment,f),$(F.$$.fragment,f),A=!1},d(f){f&&u(e),X(s),f&&u(t),f&&u(l),X(m),f&&u(B),f&&u(h),X(F),f&&u(ie),f&&u(Y),f&&u(ce),f&&u(Z),ve=!1,Ve(ge)}}}function St(r){let e,s;return e=new Ye({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[gt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,[l]){const a={};l&8&&(a.href=t[3]),l&131095&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function $t(r,e,s){let t,l;Qe(r,Ze,y=>s(4,l=y));let{namespace:a}=e,{workflow:o}=e,{timeFormat:n}=e,i=!1;const m=y=>{const R=Ce({timeRange:"All"}),U=l.url.searchParams.get("query"),F=vt(U!=null?U:R),K=(F==null?void 0:F.workflowType)===y?"":y,M=Ce({...F,workflowType:K});tt({url:l.url,parameter:"query",value:M,allowEmpty:!0})},W=()=>s(2,i=!0),D=()=>s(2,i=!0),q=()=>s(2,i=!1),_=()=>s(2,i=!1),B=()=>m(o.name),h=()=>m(o.name),g=()=>s(2,i=!0),Q=()=>s(2,i=!0),c=()=>s(2,i=!1),w=()=>s(2,i=!1);return r.$$set=y=>{"namespace"in y&&s(6,a=y.namespace),"workflow"in y&&s(0,o=y.workflow),"timeFormat"in y&&s(1,n=y.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=et({namespace:a,workflow:o.id,run:o.runId}))},[o,n,i,t,l,m,a,W,D,q,_,B,h,g,Q,c,w]}class Ot extends ye{constructor(e){super(),Ee(this,e,$t,St,he,{namespace:6,workflow:0,timeFormat:1})}}export{At as W,Ot as a,vt as t}; +import{S as ye,i as Ee,s as he,w as J,x as V,y as j,f as E,t as $,B as X,I as Ke,J as Me,K as ze,L as Ge,l as k,r as H,a as I,m as T,n as v,u as N,h as u,c as P,p as S,b,M as d,E as we,e as He,g as pe,d as de,N as Qe,T as C,U as be,aq as ke,H as Je,v as ee,G as Ve}from"./index-f283717a.js";import{T as je,a as Xe,b as Ye}from"./table-row-f3dc657f.js";import{p as Ze}from"./stores-62bcca1c.js";import{c as xe,f as G,d as Ne}from"./format-date-e7563fe7.js";import{n as et}from"./route-for-4a4bbbc1.js";import{u as tt}from"./update-query-parameters-0d565146.js";import{c as lt,d as st,e as rt,f as ot}from"./is-6159121b.js";import{l as at,m as nt}from"./to-duration-a5f6615f.js";import{t as Ce}from"./workflow-service-52952a0f.js";import{W as ft}from"./workflow-status-0bcf7612.js";import{I as Re}from"./icon-c6a60499.js";import{c as it}from"./copy-to-clipboard-c6080acc.js";function ut(r){let e;const s=r[0].default,t=Ke(s,r,r[1],null);return{c(){t&&t.c()},l(l){t&&t.l(l)},m(l,a){t&&t.m(l,a),e=!0},p(l,a){t&&t.p&&(!e||a&2)&&Me(t,s,l,l[1],e?Ge(s,l[1],a,null):ze(l[1]),null)},i(l){e||(E(t,l),e=!0)},o(l){$(t,l),e=!1},d(l){t&&t.d(l)}}}function ct(r){let e,s,t,l,a,o,n,i,m,W,D,q,_,B,h,g,Q;return{c(){e=k("th"),s=H("Status"),t=I(),l=k("th"),a=H("Workflow ID"),o=I(),n=k("th"),i=H("Type"),m=I(),W=k("th"),D=H("Start"),q=I(),_=k("th"),B=H("End"),h=I(),g=k("th"),Q=H("Summary"),this.h()},l(c){e=T(c,"TH",{class:!0});var w=v(e);s=N(w,"Status"),w.forEach(u),t=P(c),l=T(c,"TH",{class:!0});var y=v(l);a=N(y,"Workflow ID"),y.forEach(u),o=P(c),n=T(c,"TH",{class:!0});var R=v(n);i=N(R,"Type"),R.forEach(u),m=P(c),W=T(c,"TH",{class:!0});var U=v(W);D=N(U,"Start"),U.forEach(u),q=P(c),_=T(c,"TH",{class:!0});var F=v(_);B=N(F,"End"),F.forEach(u),h=P(c),g=T(c,"TH",{class:!0,colspan:!0});var K=v(g);Q=N(K,"Summary"),K.forEach(u),this.h()},h(){S(e,"class","hidden w-48 md:table-cell"),S(l,"class","hidden md:table-cell md:w-60 xl:w-auto"),S(n,"class","hidden md:table-cell md:w-60 xl:w-80"),S(W,"class","hidden xl:table-cell xl:w-60"),S(_,"class","hidden xl:table-cell xl:w-60"),S(g,"class","table-cell md:hidden"),S(g,"colspan","3")},m(c,w){b(c,e,w),d(e,s),b(c,t,w),b(c,l,w),d(l,a),b(c,o,w),b(c,n,w),d(n,i),b(c,m,w),b(c,W,w),d(W,D),b(c,q,w),b(c,_,w),d(_,B),b(c,h,w),b(c,g,w),d(g,Q)},p:we,d(c){c&&u(e),c&&u(t),c&&u(l),c&&u(o),c&&u(n),c&&u(m),c&&u(W),c&&u(q),c&&u(_),c&&u(h),c&&u(g)}}}function mt(r){let e,s;return e=new Xe({props:{slot:"headers",$$slots:{default:[ct]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,l){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function _t(r){let e,s;return e=new je({props:{class:"w-full md:table-fixed",$$slots:{headers:[mt],default:[ut]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,[l]){const a={};l&2&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function pt(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=a=>{"$$scope"in a&&s(1,l=a.$$scope)},[t,l]}class At extends ye{constructor(e){super(),Ee(this,e,pt,_t,he,{})}}const dt=r=>{const e=[],s=()=>{t&&(e.push(t),t="")};let t="",l=0;for(;le=>e.toLowerCase()===r.toLowerCase(),_e=(r,e)=>r[e+2],ht=r=>{if(!!r){for(const e of nt)if(r[e])return{[e]:r[e]}}},wt=Te("WorkflowType"),bt=Te("WorkflowId"),kt=Te("StartTime"),Tt=Te("ExecutionStatus"),vt=r=>{const e=dt(r),s={workflowId:"",workflowType:"",executionStatus:null,timeRange:null};return e.forEach((t,l)=>{if(bt(t)&&(s.workflowId=_e(e,l)),wt(t)&&(s.workflowType=_e(e,l)),Tt(t)){const a=_e(e,l);ot(a)&&(s.executionStatus=a)}if(kt(t)){const a=_e(e,l);try{const o=at(a),n=ht(o);s.timeRange=xe(n)}catch(o){console.error("Error parsing StartTime from query",o)}}}),s};function Le(r){let e,s,t,l,a,o=r[1]&&Be(r),n=r[2]&&Ae(r);return{c(){e=k("div"),o&&o.c(),s=I(),n&&n.c(),this.h()},l(i){e=T(i,"DIV",{class:!0});var m=v(e);o&&o.l(m),s=P(m),n&&n.l(m),m.forEach(u),this.h()},h(){S(e,"class","copy-or-filter svelte-1llgntb")},m(i,m){b(i,e,m),o&&o.m(e,null),d(e,s),n&&n.m(e,null),t=!0,l||(a=C(e,"click",be(ke(we))),l=!0)},p(i,m){i[1]?o?(o.p(i,m),m&2&&E(o,1)):(o=Be(i),o.c(),E(o,1),o.m(e,s)):o&&(pe(),$(o,1,1,()=>{o=null}),de()),i[2]?n?(n.p(i,m),m&4&&E(n,1)):(n=Ae(i),n.c(),E(n,1),n.m(e,null)):n&&(pe(),$(n,1,1,()=>{n=null}),de())},i(i){t||(E(o),E(n),t=!0)},o(i){$(o),$(n),t=!1},d(i){i&&u(e),o&&o.d(),n&&n.d(),l=!1,a()}}}function Be(r){let e,s=r[5],t,l,a,o=Ue(r);return{c(){e=k("button"),o.c()},l(n){e=T(n,"BUTTON",{});var i=v(e);o.l(i),i.forEach(u)},m(n,i){b(n,e,i),o.m(e,null),t=!0,l||(a=C(e,"click",be(ke(function(){Je(r[4])&&r[4].apply(this,arguments)}))),l=!0)},p(n,i){r=n,i&32&&he(s,s=r[5])?(pe(),$(o,1,1,we),de(),o=Ue(r),o.c(),E(o,1),o.m(e,null)):o.p(r,i)},i(n){t||(E(o),t=!0)},o(n){$(o),t=!1},d(n){n&&u(e),o.d(n),l=!1,a()}}}function Ue(r){let e,s;return e=new Re({props:{name:r[5]?"filter-solid":"filter",class:"h-4 w-4"}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,l){const a={};l&32&&(a.name=t[5]?"filter-solid":"filter"),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function Ae(r){let e,s,t,l,a;return s=new Re({props:{name:r[6]?"checkmark":"copy",stroke:"#000"}}),{c(){e=k("button"),J(s.$$.fragment)},l(o){e=T(o,"BUTTON",{});var n=v(e);V(s.$$.fragment,n),n.forEach(u)},m(o,n){b(o,e,n),j(s,e,null),t=!0,l||(a=C(e,"click",be(ke(r[9]))),l=!0)},p(o,n){const i={};n&64&&(i.name=o[6]?"checkmark":"copy"),s.$set(i)},i(o){t||(E(s.$$.fragment,o),t=!0)},o(o){$(s.$$.fragment,o),t=!1},d(o){o&&u(e),X(s),l=!1,a()}}}function yt(r){let e,s,t=r[0]&&Le(r);return{c(){t&&t.c(),e=He()},l(l){t&&t.l(l),e=He()},m(l,a){t&&t.m(l,a),b(l,e,a),s=!0},p(l,[a]){l[0]?t?(t.p(l,a),a&1&&E(t,1)):(t=Le(l),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(pe(),$(t,1,1,()=>{t=null}),de())},i(l){s||(E(t),s=!0)},o(l){$(t),s=!1},d(l){t&&t.d(l),l&&u(e)}}}function Et(r,e,s){let t,{show:l=!1}=e,{filterable:a=!0}=e,{copyable:o=!0}=e,{content:n}=e,{onFilter:i=we}=e,{filtered:m=!1}=e;const{copy:W,copied:D}=it(700);Qe(r,D,_=>s(6,t=_));const q=_=>W(_,n);return r.$$set=_=>{"show"in _&&s(0,l=_.show),"filterable"in _&&s(1,a=_.filterable),"copyable"in _&&s(2,o=_.copyable),"content"in _&&s(3,n=_.content),"onFilter"in _&&s(4,i=_.onFilter),"filtered"in _&&s(5,m=_.filtered)},[l,a,o,n,i,m,t,W,D,q]}class Oe extends ye{constructor(e){super(),Ee(this,e,Et,yt,he,{show:0,filterable:1,copyable:2,content:3,onFilter:4,filtered:5})}}function gt(r){var Se,$e,We;let e,s,t,l,a,o=r[0].id+"",n,i,m,W,D,q=G(r[0].startTime,r[1])+"",_,B,h,g,Q,c,w,y=r[0].name+"",R,U,F,K,M,te=G(r[0].endTime,r[1])+"",fe,ie,Y,le,se=G(r[0].startTime,r[1])+"",ue,ce,Z,re,oe=G(r[0].endTime,r[1])+"",me,A,ve,ge;return s=new ft({props:{status:r[0].status,delay:Ne(r[0].startTime)}}),m=new Oe({props:{show:r[2],content:r[0].id,filterable:!1}}),F=new Oe({props:{show:r[2],content:r[0].name,onFilter:r[12],filtered:(We=($e=(Se=r[4].url)==null?void 0:Se.searchParams)==null?void 0:$e.get("query"))==null?void 0:We.includes(r[0].name)}}),{c(){e=k("td"),J(s.$$.fragment),t=I(),l=k("td"),a=k("span"),n=H(o),i=I(),J(m.$$.fragment),W=I(),D=k("p"),_=H(q),B=I(),h=k("td"),g=k("h3"),Q=H("Workflow Name:"),c=I(),w=k("span"),R=H(y),U=I(),J(F.$$.fragment),K=I(),M=k("p"),fe=H(te),ie=I(),Y=k("td"),le=k("p"),ue=H(se),ce=I(),Z=k("td"),re=k("p"),me=H(oe),this.h()},l(f){e=T(f,"TD",{});var p=v(e);V(s.$$.fragment,p),p.forEach(u),t=P(f),l=T(f,"TD",{class:!0});var O=v(l);a=T(O,"SPAN",{class:!0});var x=v(a);n=N(x,o),x.forEach(u),i=P(O),V(m.$$.fragment,O),W=P(O),D=T(O,"P",{class:!0});var z=v(D);_=N(z,q),z.forEach(u),O.forEach(u),B=P(f),h=T(f,"TD",{class:!0});var L=v(h);g=T(L,"H3",{class:!0});var ae=v(g);Q=N(ae,"Workflow Name:"),ae.forEach(u),c=P(L),w=T(L,"SPAN",{class:!0});var ne=v(w);R=N(ne,y),ne.forEach(u),U=P(L),V(F.$$.fragment,L),K=P(L),M=T(L,"P",{class:!0});var Fe=v(M);fe=N(Fe,te),Fe.forEach(u),L.forEach(u),ie=P(f),Y=T(f,"TD",{class:!0});var De=v(Y);le=T(De,"P",{});var Ie=v(le);ue=N(Ie,se),Ie.forEach(u),De.forEach(u),ce=P(f),Z=T(f,"TD",{class:!0});var Pe=v(Z);re=T(Pe,"P",{});var qe=v(re);me=N(qe,oe),qe.forEach(u),Pe.forEach(u),this.h()},h(){S(a,"class","table-link svelte-si1lto"),S(D,"class","inline-time-cell svelte-si1lto"),S(l,"class","relative truncate"),S(g,"class","md:hidden"),S(w,"class","table-link svelte-si1lto"),S(M,"class","inline-time-cell svelte-si1lto"),S(h,"class","relative truncate"),S(Y,"class","time-cell svelte-si1lto"),S(Z,"class","time-cell svelte-si1lto")},m(f,p){b(f,e,p),j(s,e,null),b(f,t,p),b(f,l,p),d(l,a),d(a,n),d(l,i),j(m,l,null),d(l,W),d(l,D),d(D,_),b(f,B,p),b(f,h,p),d(h,g),d(g,Q),d(h,c),d(h,w),d(w,R),d(h,U),j(F,h,null),d(h,K),d(h,M),d(M,fe),b(f,ie,p),b(f,Y,p),d(Y,le),d(le,ue),b(f,ce,p),b(f,Z,p),d(Z,re),d(re,me),A=!0,ve||(ge=[C(l,"mouseover",r[7]),C(l,"focus",r[8]),C(l,"mouseleave",r[9]),C(l,"blur",r[10]),C(w,"click",be(ke(r[11]))),C(h,"mouseover",r[13]),C(h,"focus",r[14]),C(h,"mouseleave",r[15]),C(h,"blur",r[16])],ve=!0)},p(f,p){var L,ae,ne;const O={};p&1&&(O.status=f[0].status),p&1&&(O.delay=Ne(f[0].startTime)),s.$set(O),(!A||p&1)&&o!==(o=f[0].id+"")&&ee(n,o);const x={};p&4&&(x.show=f[2]),p&1&&(x.content=f[0].id),m.$set(x),(!A||p&3)&&q!==(q=G(f[0].startTime,f[1])+"")&&ee(_,q),(!A||p&1)&&y!==(y=f[0].name+"")&&ee(R,y);const z={};p&4&&(z.show=f[2]),p&1&&(z.content=f[0].name),p&1&&(z.onFilter=f[12]),p&17&&(z.filtered=(ne=(ae=(L=f[4].url)==null?void 0:L.searchParams)==null?void 0:ae.get("query"))==null?void 0:ne.includes(f[0].name)),F.$set(z),(!A||p&3)&&te!==(te=G(f[0].endTime,f[1])+"")&&ee(fe,te),(!A||p&3)&&se!==(se=G(f[0].startTime,f[1])+"")&&ee(ue,se),(!A||p&3)&&oe!==(oe=G(f[0].endTime,f[1])+"")&&ee(me,oe)},i(f){A||(E(s.$$.fragment,f),E(m.$$.fragment,f),E(F.$$.fragment,f),A=!0)},o(f){$(s.$$.fragment,f),$(m.$$.fragment,f),$(F.$$.fragment,f),A=!1},d(f){f&&u(e),X(s),f&&u(t),f&&u(l),X(m),f&&u(B),f&&u(h),X(F),f&&u(ie),f&&u(Y),f&&u(ce),f&&u(Z),ve=!1,Ve(ge)}}}function St(r){let e,s;return e=new Ye({props:{href:r[3],class:"workflow-summary-row",$$slots:{default:[gt]},$$scope:{ctx:r}}}),{c(){J(e.$$.fragment)},l(t){V(e.$$.fragment,t)},m(t,l){j(e,t,l),s=!0},p(t,[l]){const a={};l&8&&(a.href=t[3]),l&131095&&(a.$$scope={dirty:l,ctx:t}),e.$set(a)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){$(e.$$.fragment,t),s=!1},d(t){X(e,t)}}}function $t(r,e,s){let t,l;Qe(r,Ze,y=>s(4,l=y));let{namespace:a}=e,{workflow:o}=e,{timeFormat:n}=e,i=!1;const m=y=>{const R=Ce({timeRange:"All"}),U=l.url.searchParams.get("query"),F=vt(U!=null?U:R),K=(F==null?void 0:F.workflowType)===y?"":y,M=Ce({...F,workflowType:K});tt({url:l.url,parameter:"query",value:M,allowEmpty:!0})},W=()=>s(2,i=!0),D=()=>s(2,i=!0),q=()=>s(2,i=!1),_=()=>s(2,i=!1),B=()=>m(o.name),h=()=>m(o.name),g=()=>s(2,i=!0),Q=()=>s(2,i=!0),c=()=>s(2,i=!1),w=()=>s(2,i=!1);return r.$$set=y=>{"namespace"in y&&s(6,a=y.namespace),"workflow"in y&&s(0,o=y.workflow),"timeFormat"in y&&s(1,n=y.timeFormat)},r.$$.update=()=>{r.$$.dirty&65&&s(3,t=et({namespace:a,workflow:o.id,run:o.runId}))},[o,n,i,t,l,m,a,W,D,q,_,B,h,g,Q,c,w]}class Ot extends ye{constructor(e){super(),Ee(this,e,$t,St,he,{namespace:6,workflow:0,timeFormat:1})}}export{At as W,Ot as a,vt as t}; diff --git a/server/generated/ui/_app/immutable/pages/__layout-root.svelte-2f4f73cd.js b/server/generated/ui/_app/immutable/pages/__layout-root.svelte-5659399f.js similarity index 97% rename from server/generated/ui/_app/immutable/pages/__layout-root.svelte-2f4f73cd.js rename to server/generated/ui/_app/immutable/pages/__layout-root.svelte-5659399f.js index 47519e479e..08429e8f8d 100644 --- a/server/generated/ui/_app/immutable/pages/__layout-root.svelte-2f4f73cd.js +++ b/server/generated/ui/_app/immutable/pages/__layout-root.svelte-5659399f.js @@ -1 +1 @@ -import{X as se,S as z,i as P,s as q,e as y,b as N,E as A,h as v,N as X,C as G,V as Q,l as U,r as W,a as S,m as O,n as L,u as R,c as j,p as b,Y as x,M as k,T as ae,v as le,f as h,t as g,Z as H,_ as M,w as V,x as I,y as $,$ as J,B as E,g as fe,d as ue,I as ce,J as me,K as de,L as _e}from"../chunks/index-f283717a.js";import{g as pe}from"../chunks/get-namespace-a384fdef.js";import{s as ve}from"../chunks/search-attributes-9af734a4.js";import{r as Y,a as Z}from"../chunks/route-for-api-68bfde2a.js";import{n as he}from"../chunks/notifications-dddf88f8.js";import{p as ge}from"../chunks/paginated-773689c5.js";import{c as be,i as te}from"../chunks/version-check-75d52bcc.js";import{f as we,N as ke,E as ye}from"../chunks/error-boundary-828b07a2.js";import{f as Be}from"../chunks/settings-service-807323d3.js";/* empty css */import Ve from"./_header.svelte-396da1e5.js";import{p as re}from"../chunks/stores-62bcca1c.js";import{p as Ie}from"../chunks/persist-store-c4deb1a0.js";import{P as $e}from"../chunks/page-title-c652e2a5.js";import"../chunks/index-5dff130b.js";import"../chunks/route-for-4a4bbbc1.js";import"../chunks/get-public-path-6c4a8950.js";import"../chunks/is-network-error-5f9e2367.js";import"../chunks/is-function-45497f08.js";import"../chunks/get-api-origin-9f051405.js";import"../chunks/index-cf7c7b94.js";import"../chunks/error-73a2de77.js";import"../chunks/navigation-fbe70647.js";import"../chunks/singletons-eca981c1.js";import"../chunks/link-1679e5ab.js";import"../chunks/settings-16907be6.js";import"../chunks/icon-c6a60499.js";import"../chunks/feature-tag-e8d805df.js";import"../chunks/nav-open-bbd3ebaf.js";import"../chunks/_nav-row-674aaed1.js";import"../chunks/empty-state-5e402c94.js";import"../chunks/tooltip-558f0bf8.js";import"../chunks/copyable-ddc34383.js";import"../chunks/copy-to-clipboard-c6080acc.js";import"../chunks/data-encoder-status-f933fd93.js";import"../chunks/data-converter-config-49e426af.js";import"../chunks/is-http-d28111f6.js";import"../chunks/modal-90d17380.js";import"../chunks/button-397b3a8c.js";import"../chunks/badge-46845e47.js";/* empty css */import"../chunks/namespaces-bbdb5c9d.js";const Ee=(o,e)=>!o.auth.enabled||Boolean(e==null?void 0:e.email),Ne=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("search-attributes"),{request:e}).then(t=>(t!=null&&t.keys&&ve.set(t.keys),t))},Ce=async(o=fetch)=>{const e=await o("https://api.github.com/repos/temporalio/ui-server/releases"),t=await e.json();if(!e.ok)return;let n;if(t.length>0){const{tag_name:r}=t[0];n=r.replace("v","")}return n},ee={namespaces:[]};async function Te(o,e=fetch){if(o.runtimeEnvironment.isCloud)return ee;const t=await ge(async n=>Y(Z("namespaces"),{request:e,token:n,onError:()=>he.add("error","Unable to fetch namespaces")}));return t!=null?t:ee}const Ue=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("cluster"),{request:e}).then(t=>(be.set(t),t))};var F=(o=>(o[o.TemporalVersion=1]="TemporalVersion",o[o.UIVersion=2]="UIVersion",o))(F||{});const K=Ie("closedBanners",null),Oe=o=>{var t;let e=(t=se(K))!=null?t:[];e=[...e,o],e=e.slice(e.length-10,e.length),K.set(e)};function ne(o){let e,t,n,r,s,i,a,l,f,u;return{c(){e=U("section"),t=U("a"),n=W(o[2]),r=S(),s=U("button"),i=W("\u2715"),this.h()},l(c){e=O(c,"SECTION",{class:!0,"data-cy":!0});var d=L(e);t=O(d,"A",{href:!0,target:!0});var _=L(t);n=R(_,o[2]),_.forEach(v),r=j(d),s=O(d,"BUTTON",{class:!0,"data-cy":!0});var w=L(s);i=R(w,"\u2715"),w.forEach(v),d.forEach(v),this.h()},h(){b(t,"href",o[3]),b(t,"target","_blank"),b(s,"class","text-black-600 absolute top-0 right-0 mr-5"),b(s,"data-cy","close-banner"),b(e,"class",a=x(`relative block text-center leading-10 ${o[1]}`)+" svelte-1xgik0j"),b(e,"data-cy",l=o[5].dataCy)},m(c,d){N(c,e,d),k(e,t),k(t,n),k(e,r),k(e,s),k(s,i),f||(u=ae(s,"click",o[8]),f=!0)},p(c,d){d&4&&le(n,c[2]),d&8&&b(t,"href",c[3]),d&2&&a!==(a=x(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&b(e,"class",a),d&32&&l!==(l=c[5].dataCy)&&b(e,"data-cy",l)},d(c){c&&v(e),f=!1,u()}}}function Le(o){let e,t=o[4]&&ne(o);return{c(){t&&t.c(),e=y()},l(n){t&&t.l(n),e=y()},m(n,r){t&&t.m(n,r),N(n,e,r)},p(n,[r]){n[4]?t?t.p(n,r):(t=ne(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:A,o:A,d(n){t&&t.d(n),n&&v(e)}}}function De(o,e,t){let n,r;X(o,K,c=>t(7,r=c));let{key:s}=e,{severity:i}=e,{message:a}=e,{link:l}=e,{shownBanner:f}=e;const u=()=>Oe(s);return o.$$set=c=>{t(5,e=G(G({},e),Q(c))),"key"in c&&t(0,s=c.key),"severity"in c&&t(1,i=c.severity),"message"in c&&t(2,a=c.message),"link"in c&&t(3,l=c.link),"shownBanner"in c&&t(6,f=c.shownBanner)},o.$$.update=()=>{o.$$.dirty&129&&t(4,n=!(r!=null?r:[]).includes(s)),o.$$.dirty&80&&(n||t(6,f++,f))},e=Q(e),[s,i,a,l,n,e,f,r,u]}class oe extends z{constructor(e){super(),P(this,e,De,Le,q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Se(o){let e,t,n;function r(i){o[6](i)}let s={key:o[2],severity:o[1],message:o[5],link:o[3],dataCy:"temporal-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new oe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&1&&(t=!0,l.shownBanner=i[0],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function je(o){let e,t,n=o[4]&&Se(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[4]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}function ze(o,e,t){let n;X(o,re,D=>t(12,n=D));var r,s,i,a,l;let{shownBanner:f}=e;const{cluster:u}=n.stuff,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(r=u==null?void 0:u.versionInfo)!==null&&r!==void 0?r:{},w=(i=(s=u==null?void 0:u.versionInfo)===null||s===void 0?void 0:s.alerts)===null||i===void 0?void 0:i[0],m=w?c[w.severity]:c.Low,p=`server-v${_==null?void 0:_.version}`,C=`https://github.com/temporalio/temporal/releases/tag/v${(l=(a=u==null?void 0:u.versionInfo)===null||a===void 0?void 0:a.recommended)===null||l===void 0?void 0:l.version}`,B=te(d==null?void 0:d.version,_==null?void 0:_.version),T=m===c.Low?`\u{1F4E5} Temporal v${d==null?void 0:d.version} is available`:`\u{1F4E5} ${w==null?void 0:w.message}`;function ie(D){f=D,t(0,f)}return o.$$set=D=>{"shownBanner"in D&&t(0,f=D.shownBanner)},[f,m,p,C,B,T,ie]}class Pe extends z{constructor(e){super(),P(this,e,ze,je,q,{shownBanner:0})}}function qe(o){let e,t,n;function r(i){o[6](i)}let s={key:o[1],severity:He,message:o[2],link:o[4],dataCy:"ui-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new oe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&1&&(t=!0,l.shownBanner=i[0],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Fe(o){let e,t,n=o[3]&&qe(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[3]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}const He="low";function Me(o,e,t){let{shownBanner:n}=e,{uiVersionInfo:r}=e;const s=`ui-v${r==null?void 0:r.current}`,i=`\u{1F4E5} Temporal UI v${r==null?void 0:r.recommended} is available`,a=te(r==null?void 0:r.recommended,r==null?void 0:r.current),l=`https://github.com/temporalio/ui-server/releases/tag/v${r==null?void 0:r.recommended}`;function f(u){n=u,t(0,n)}return o.$$set=u=>{"shownBanner"in u&&t(0,n=u.shownBanner),"uiVersionInfo"in u&&t(5,r=u.uiVersionInfo)},[n,s,i,a,l,r,f]}class Je extends z{constructor(e){super(),P(this,e,Me,Fe,q,{shownBanner:0,uiVersionInfo:5})}}function Ke(o){let e,t,n,r;const s=[Ye,Xe],i=[];function a(l,f){return l[1]===F.TemporalVersion?0:l[1]===F.UIVersion?1:-1}return~(e=a(o))&&(t=i[e]=s[e](o)),{c(){t&&t.c(),n=y()},l(l){t&&t.l(l),n=y()},m(l,f){~e&&i[e].m(l,f),N(l,n,f),r=!0},p(l,f){let u=e;e=a(l),e===u?~e&&i[e].p(l,f):(t&&(fe(),g(i[u],1,1,()=>{i[u]=null}),ue()),~e?(t=i[e],t?t.p(l,f):(t=i[e]=s[e](l),t.c()),h(t,1),t.m(n.parentNode,n)):t=null)},i(l){r||(h(t),r=!0)},o(l){g(t),r=!1},d(l){~e&&i[e].d(l),l&&v(n)}}}function Xe(o){let e,t,n;function r(i){o[4](i)}let s={uiVersionInfo:o[0]};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Je({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};a&1&&(l.uiVersionInfo=i[0]),!t&&a&2&&(t=!0,l.shownBanner=i[1],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Ye(o){let e,t,n;function r(i){o[3](i)}let s={};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Pe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&2&&(t=!0,l.shownBanner=i[1],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Ze(o){let e,t,n=o[2]&&Ke(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[2]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}function Ae(o,e,t){let n;X(o,re,f=>t(5,n=f));let{uiVersionInfo:r}=e,s=F.TemporalVersion;const i=n.stuff.settings.notifyOnNewVersion;function a(f){s=f,t(1,s)}function l(f){s=f,t(1,s)}return o.$$set=f=>{"uiVersionInfo"in f&&t(0,r=f.uiVersionInfo)},[r,s,i,a,l]}class Ge extends z{constructor(e){super(),P(this,e,Ae,Ze,q,{uiVersionInfo:0})}}function Qe(o){let e;const t=o[2].default,n=ce(t,o,o[3],null);return{c(){n&&n.c()},l(r){n&&n.l(r)},m(r,s){n&&n.m(r,s),e=!0},p(r,s){n&&n.p&&(!e||s&8)&&me(n,t,r,r[3],e?_e(t,r[3],s,null):de(r[3]),null)},i(r){e||(h(n,r),e=!0)},o(r){g(n,r),e=!1},d(r){n&&n.d(r)}}}function We(o){let e,t,n,r,s,i,a,l,f,u,c,d,_,w;return e=new $e({}),r=new ke({}),a=new Ve({props:{user:o[0]}}),u=new Ge({props:{uiVersionInfo:o[1]}}),_=new ye({props:{onError:Re,$$slots:{default:[Qe]},$$scope:{ctx:o}}}),{c(){V(e.$$.fragment),t=S(),n=U("div"),V(r.$$.fragment),s=S(),i=U("div"),V(a.$$.fragment),l=S(),f=U("section"),V(u.$$.fragment),c=S(),d=U("div"),V(_.$$.fragment),this.h()},l(m){I(e.$$.fragment,m),t=j(m),n=O(m,"DIV",{class:!0});var p=L(n);I(r.$$.fragment,p),s=j(p),i=O(p,"DIV",{class:!0});var C=L(i);I(a.$$.fragment,C),C.forEach(v),l=j(p),f=O(p,"SECTION",{id:!0,class:!0});var B=L(f);I(u.$$.fragment,B),c=j(B),d=O(B,"DIV",{class:!0});var T=L(d);I(_.$$.fragment,T),T.forEach(v),B.forEach(v),p.forEach(v),this.h()},h(){b(i,"class","sticky top-0 z-20 h-screen w-auto"),b(d,"class","z-10 flex h-full flex-col gap-4 px-10 pb-10 pt-8"),b(f,"id","content"),b(f,"class","h-screen w-max flex-auto overflow-auto"),b(n,"class","flex h-screen w-screen flex-row")},m(m,p){$(e,m,p),N(m,t,p),N(m,n,p),$(r,n,null),k(n,s),k(n,i),$(a,i,null),k(n,l),k(n,f),$(u,f,null),k(f,c),k(f,d),$(_,d,null),w=!0},p(m,[p]){const C={};p&1&&(C.user=m[0]),a.$set(C);const B={};p&2&&(B.uiVersionInfo=m[1]),u.$set(B);const T={};p&8&&(T.$$scope={dirty:p,ctx:m}),_.$set(T)},i(m){w||(h(e.$$.fragment,m),h(r.$$.fragment,m),h(a.$$.fragment,m),h(u.$$.fragment,m),h(_.$$.fragment,m),w=!0)},o(m){g(e.$$.fragment,m),g(r.$$.fragment,m),g(a.$$.fragment,m),g(u.$$.fragment,m),g(_.$$.fragment,m),w=!1},d(m){E(e,m),m&&v(t),m&&v(n),E(r),E(a),E(u),E(_)}}}const Jn=async function({fetch:o}){const e=await Be(o),t=await we(o);if(!Ee(e,t))return{status:302,redirect:"/login"};const n=await Te(e,o),r=pe({namespaces:n==null?void 0:n.namespaces,settings:e}),s=await Ue(e,o);Ne(e);const i={current:e.version,recommended:e.notifyOnNewVersion?await Ce(o):void 0};return{props:{user:t,uiVersionInfo:i},stuff:{namespaces:n==null?void 0:n.namespaces,settings:{...e,defaultNamespace:r},cluster:s}}},Re=()=>{};function xe(o,e,t){let{$$slots:n={},$$scope:r}=e,{user:s}=e,{uiVersionInfo:i}=e;return o.$$set=a=>{"user"in a&&t(0,s=a.user),"uiVersionInfo"in a&&t(1,i=a.uiVersionInfo),"$$scope"in a&&t(3,r=a.$$scope)},[s,i,n,r]}class Kn extends z{constructor(e){super(),P(this,e,xe,We,q,{user:0,uiVersionInfo:1})}}export{Kn as default,Jn as load}; +import{X as se,S as z,i as P,s as q,e as y,b as N,E as A,h as v,N as X,C as G,V as Q,l as U,r as W,a as S,m as O,n as L,u as R,c as j,p as b,Y as x,M as k,T as ae,v as le,f as h,t as g,Z as H,_ as M,w as V,x as I,y as $,$ as J,B as E,g as fe,d as ue,I as ce,J as me,K as de,L as _e}from"../chunks/index-f283717a.js";import{g as pe}from"../chunks/get-namespace-a384fdef.js";import{s as ve}from"../chunks/search-attributes-9af734a4.js";import{r as Y,a as Z}from"../chunks/route-for-api-6372c71f.js";import{n as he}from"../chunks/notifications-dddf88f8.js";import{p as ge}from"../chunks/paginated-77f89502.js";import{c as be,i as te}from"../chunks/version-check-75d52bcc.js";import{f as we,N as ke,E as ye}from"../chunks/error-boundary-7db141b5.js";import{f as Be}from"../chunks/settings-service-54502f3f.js";/* empty css */import Ve from"./_header.svelte-396da1e5.js";import{p as re}from"../chunks/stores-62bcca1c.js";import{p as Ie}from"../chunks/persist-store-c4deb1a0.js";import{P as $e}from"../chunks/page-title-c652e2a5.js";import"../chunks/index-5dff130b.js";import"../chunks/route-for-4a4bbbc1.js";import"../chunks/get-public-path-6c4a8950.js";import"../chunks/is-network-error-5f9e2367.js";import"../chunks/is-function-45497f08.js";import"../chunks/get-api-origin-9f051405.js";import"../chunks/index-cf7c7b94.js";import"../chunks/error-73a2de77.js";import"../chunks/navigation-fbe70647.js";import"../chunks/singletons-eca981c1.js";import"../chunks/link-1679e5ab.js";import"../chunks/settings-16907be6.js";import"../chunks/icon-c6a60499.js";import"../chunks/feature-tag-e8d805df.js";import"../chunks/nav-open-bbd3ebaf.js";import"../chunks/_nav-row-674aaed1.js";import"../chunks/empty-state-5e402c94.js";import"../chunks/tooltip-558f0bf8.js";import"../chunks/copyable-ddc34383.js";import"../chunks/copy-to-clipboard-c6080acc.js";import"../chunks/data-encoder-status-f933fd93.js";import"../chunks/data-converter-config-49e426af.js";import"../chunks/is-http-d28111f6.js";import"../chunks/modal-90d17380.js";import"../chunks/button-397b3a8c.js";import"../chunks/badge-46845e47.js";/* empty css */import"../chunks/namespaces-bbdb5c9d.js";const Ee=(o,e)=>!o.auth.enabled||Boolean(e==null?void 0:e.email),Ne=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("search-attributes"),{request:e}).then(t=>(t!=null&&t.keys&&ve.set(t.keys),t))},Ce=async(o=fetch)=>{const e=await o("https://api.github.com/repos/temporalio/ui-server/releases"),t=await e.json();if(!e.ok)return;let n;if(t.length>0){const{tag_name:r}=t[0];n=r.replace("v","")}return n},ee={namespaces:[]};async function Te(o,e=fetch){if(o.runtimeEnvironment.isCloud)return ee;const t=await ge(async n=>Y(Z("namespaces"),{request:e,token:n,onError:()=>he.add("error","Unable to fetch namespaces")}));return t!=null?t:ee}const Ue=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("cluster"),{request:e}).then(t=>(be.set(t),t))};var F=(o=>(o[o.TemporalVersion=1]="TemporalVersion",o[o.UIVersion=2]="UIVersion",o))(F||{});const K=Ie("closedBanners",null),Oe=o=>{var t;let e=(t=se(K))!=null?t:[];e=[...e,o],e=e.slice(e.length-10,e.length),K.set(e)};function ne(o){let e,t,n,r,s,i,a,l,f,u;return{c(){e=U("section"),t=U("a"),n=W(o[2]),r=S(),s=U("button"),i=W("\u2715"),this.h()},l(c){e=O(c,"SECTION",{class:!0,"data-cy":!0});var d=L(e);t=O(d,"A",{href:!0,target:!0});var _=L(t);n=R(_,o[2]),_.forEach(v),r=j(d),s=O(d,"BUTTON",{class:!0,"data-cy":!0});var w=L(s);i=R(w,"\u2715"),w.forEach(v),d.forEach(v),this.h()},h(){b(t,"href",o[3]),b(t,"target","_blank"),b(s,"class","text-black-600 absolute top-0 right-0 mr-5"),b(s,"data-cy","close-banner"),b(e,"class",a=x(`relative block text-center leading-10 ${o[1]}`)+" svelte-1xgik0j"),b(e,"data-cy",l=o[5].dataCy)},m(c,d){N(c,e,d),k(e,t),k(t,n),k(e,r),k(e,s),k(s,i),f||(u=ae(s,"click",o[8]),f=!0)},p(c,d){d&4&&le(n,c[2]),d&8&&b(t,"href",c[3]),d&2&&a!==(a=x(`relative block text-center leading-10 ${c[1]}`)+" svelte-1xgik0j")&&b(e,"class",a),d&32&&l!==(l=c[5].dataCy)&&b(e,"data-cy",l)},d(c){c&&v(e),f=!1,u()}}}function Le(o){let e,t=o[4]&&ne(o);return{c(){t&&t.c(),e=y()},l(n){t&&t.l(n),e=y()},m(n,r){t&&t.m(n,r),N(n,e,r)},p(n,[r]){n[4]?t?t.p(n,r):(t=ne(n),t.c(),t.m(e.parentNode,e)):t&&(t.d(1),t=null)},i:A,o:A,d(n){t&&t.d(n),n&&v(e)}}}function De(o,e,t){let n,r;X(o,K,c=>t(7,r=c));let{key:s}=e,{severity:i}=e,{message:a}=e,{link:l}=e,{shownBanner:f}=e;const u=()=>Oe(s);return o.$$set=c=>{t(5,e=G(G({},e),Q(c))),"key"in c&&t(0,s=c.key),"severity"in c&&t(1,i=c.severity),"message"in c&&t(2,a=c.message),"link"in c&&t(3,l=c.link),"shownBanner"in c&&t(6,f=c.shownBanner)},o.$$.update=()=>{o.$$.dirty&129&&t(4,n=!(r!=null?r:[]).includes(s)),o.$$.dirty&80&&(n||t(6,f++,f))},e=Q(e),[s,i,a,l,n,e,f,r,u]}class oe extends z{constructor(e){super(),P(this,e,De,Le,q,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Se(o){let e,t,n;function r(i){o[6](i)}let s={key:o[2],severity:o[1],message:o[5],link:o[3],dataCy:"temporal-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new oe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&1&&(t=!0,l.shownBanner=i[0],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function je(o){let e,t,n=o[4]&&Se(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[4]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}function ze(o,e,t){let n;X(o,re,D=>t(12,n=D));var r,s,i,a,l;let{shownBanner:f}=e;const{cluster:u}=n.stuff,c={High:"high",Medium:"medium",Low:"low"},{recommended:d,current:_}=(r=u==null?void 0:u.versionInfo)!==null&&r!==void 0?r:{},w=(i=(s=u==null?void 0:u.versionInfo)===null||s===void 0?void 0:s.alerts)===null||i===void 0?void 0:i[0],m=w?c[w.severity]:c.Low,p=`server-v${_==null?void 0:_.version}`,C=`https://github.com/temporalio/temporal/releases/tag/v${(l=(a=u==null?void 0:u.versionInfo)===null||a===void 0?void 0:a.recommended)===null||l===void 0?void 0:l.version}`,B=te(d==null?void 0:d.version,_==null?void 0:_.version),T=m===c.Low?`\u{1F4E5} Temporal v${d==null?void 0:d.version} is available`:`\u{1F4E5} ${w==null?void 0:w.message}`;function ie(D){f=D,t(0,f)}return o.$$set=D=>{"shownBanner"in D&&t(0,f=D.shownBanner)},[f,m,p,C,B,T,ie]}class Pe extends z{constructor(e){super(),P(this,e,ze,je,q,{shownBanner:0})}}function qe(o){let e,t,n;function r(i){o[6](i)}let s={key:o[1],severity:He,message:o[2],link:o[4],dataCy:"ui-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new oe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&1&&(t=!0,l.shownBanner=i[0],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Fe(o){let e,t,n=o[3]&&qe(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[3]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}const He="low";function Me(o,e,t){let{shownBanner:n}=e,{uiVersionInfo:r}=e;const s=`ui-v${r==null?void 0:r.current}`,i=`\u{1F4E5} Temporal UI v${r==null?void 0:r.recommended} is available`,a=te(r==null?void 0:r.recommended,r==null?void 0:r.current),l=`https://github.com/temporalio/ui-server/releases/tag/v${r==null?void 0:r.recommended}`;function f(u){n=u,t(0,n)}return o.$$set=u=>{"shownBanner"in u&&t(0,n=u.shownBanner),"uiVersionInfo"in u&&t(5,r=u.uiVersionInfo)},[n,s,i,a,l,r,f]}class Je extends z{constructor(e){super(),P(this,e,Me,Fe,q,{shownBanner:0,uiVersionInfo:5})}}function Ke(o){let e,t,n,r;const s=[Ye,Xe],i=[];function a(l,f){return l[1]===F.TemporalVersion?0:l[1]===F.UIVersion?1:-1}return~(e=a(o))&&(t=i[e]=s[e](o)),{c(){t&&t.c(),n=y()},l(l){t&&t.l(l),n=y()},m(l,f){~e&&i[e].m(l,f),N(l,n,f),r=!0},p(l,f){let u=e;e=a(l),e===u?~e&&i[e].p(l,f):(t&&(fe(),g(i[u],1,1,()=>{i[u]=null}),ue()),~e?(t=i[e],t?t.p(l,f):(t=i[e]=s[e](l),t.c()),h(t,1),t.m(n.parentNode,n)):t=null)},i(l){r||(h(t),r=!0)},o(l){g(t),r=!1},d(l){~e&&i[e].d(l),l&&v(n)}}}function Xe(o){let e,t,n;function r(i){o[4](i)}let s={uiVersionInfo:o[0]};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Je({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};a&1&&(l.uiVersionInfo=i[0]),!t&&a&2&&(t=!0,l.shownBanner=i[1],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Ye(o){let e,t,n;function r(i){o[3](i)}let s={};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Pe({props:s}),H.push(()=>M(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),n=!0},p(i,a){const l={};!t&&a&2&&(t=!0,l.shownBanner=i[1],J(()=>t=!1)),e.$set(l)},i(i){n||(h(e.$$.fragment,i),n=!0)},o(i){g(e.$$.fragment,i),n=!1},d(i){E(e,i)}}}function Ze(o){let e,t,n=o[2]&&Ke(o);return{c(){n&&n.c(),e=y()},l(r){n&&n.l(r),e=y()},m(r,s){n&&n.m(r,s),N(r,e,s),t=!0},p(r,[s]){r[2]&&n.p(r,s)},i(r){t||(h(n),t=!0)},o(r){g(n),t=!1},d(r){n&&n.d(r),r&&v(e)}}}function Ae(o,e,t){let n;X(o,re,f=>t(5,n=f));let{uiVersionInfo:r}=e,s=F.TemporalVersion;const i=n.stuff.settings.notifyOnNewVersion;function a(f){s=f,t(1,s)}function l(f){s=f,t(1,s)}return o.$$set=f=>{"uiVersionInfo"in f&&t(0,r=f.uiVersionInfo)},[r,s,i,a,l]}class Ge extends z{constructor(e){super(),P(this,e,Ae,Ze,q,{uiVersionInfo:0})}}function Qe(o){let e;const t=o[2].default,n=ce(t,o,o[3],null);return{c(){n&&n.c()},l(r){n&&n.l(r)},m(r,s){n&&n.m(r,s),e=!0},p(r,s){n&&n.p&&(!e||s&8)&&me(n,t,r,r[3],e?_e(t,r[3],s,null):de(r[3]),null)},i(r){e||(h(n,r),e=!0)},o(r){g(n,r),e=!1},d(r){n&&n.d(r)}}}function We(o){let e,t,n,r,s,i,a,l,f,u,c,d,_,w;return e=new $e({}),r=new ke({}),a=new Ve({props:{user:o[0]}}),u=new Ge({props:{uiVersionInfo:o[1]}}),_=new ye({props:{onError:Re,$$slots:{default:[Qe]},$$scope:{ctx:o}}}),{c(){V(e.$$.fragment),t=S(),n=U("div"),V(r.$$.fragment),s=S(),i=U("div"),V(a.$$.fragment),l=S(),f=U("section"),V(u.$$.fragment),c=S(),d=U("div"),V(_.$$.fragment),this.h()},l(m){I(e.$$.fragment,m),t=j(m),n=O(m,"DIV",{class:!0});var p=L(n);I(r.$$.fragment,p),s=j(p),i=O(p,"DIV",{class:!0});var C=L(i);I(a.$$.fragment,C),C.forEach(v),l=j(p),f=O(p,"SECTION",{id:!0,class:!0});var B=L(f);I(u.$$.fragment,B),c=j(B),d=O(B,"DIV",{class:!0});var T=L(d);I(_.$$.fragment,T),T.forEach(v),B.forEach(v),p.forEach(v),this.h()},h(){b(i,"class","sticky top-0 z-20 h-screen w-auto"),b(d,"class","z-10 flex h-full flex-col gap-4 px-10 pb-10 pt-8"),b(f,"id","content"),b(f,"class","h-screen w-max flex-auto overflow-auto"),b(n,"class","flex h-screen w-screen flex-row")},m(m,p){$(e,m,p),N(m,t,p),N(m,n,p),$(r,n,null),k(n,s),k(n,i),$(a,i,null),k(n,l),k(n,f),$(u,f,null),k(f,c),k(f,d),$(_,d,null),w=!0},p(m,[p]){const C={};p&1&&(C.user=m[0]),a.$set(C);const B={};p&2&&(B.uiVersionInfo=m[1]),u.$set(B);const T={};p&8&&(T.$$scope={dirty:p,ctx:m}),_.$set(T)},i(m){w||(h(e.$$.fragment,m),h(r.$$.fragment,m),h(a.$$.fragment,m),h(u.$$.fragment,m),h(_.$$.fragment,m),w=!0)},o(m){g(e.$$.fragment,m),g(r.$$.fragment,m),g(a.$$.fragment,m),g(u.$$.fragment,m),g(_.$$.fragment,m),w=!1},d(m){E(e,m),m&&v(t),m&&v(n),E(r),E(a),E(u),E(_)}}}const Jn=async function({fetch:o}){const e=await Be(o),t=await we(o);if(!Ee(e,t))return{status:302,redirect:"/login"};const n=await Te(e,o),r=pe({namespaces:n==null?void 0:n.namespaces,settings:e}),s=await Ue(e,o);Ne(e);const i={current:e.version,recommended:e.notifyOnNewVersion?await Ce(o):void 0};return{props:{user:t,uiVersionInfo:i},stuff:{namespaces:n==null?void 0:n.namespaces,settings:{...e,defaultNamespace:r},cluster:s}}},Re=()=>{};function xe(o,e,t){let{$$slots:n={},$$scope:r}=e,{user:s}=e,{uiVersionInfo:i}=e;return o.$$set=a=>{"user"in a&&t(0,s=a.user),"uiVersionInfo"in a&&t(1,i=a.uiVersionInfo),"$$scope"in a&&t(3,r=a.$$scope)},[s,i,n,r]}class Kn extends z{constructor(e){super(),P(this,e,xe,We,q,{user:0,uiVersionInfo:1})}}export{Kn as default,Jn as load}; diff --git a/server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-ecc0f071.js b/server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-2d845361.js similarity index 95% rename from server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-ecc0f071.js rename to server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-2d845361.js index 1e6d57ff4c..3fa5b857bb 100644 --- a/server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-ecc0f071.js +++ b/server/generated/ui/_app/immutable/pages/import/__layout-import.svelte-2d845361.js @@ -1 +1 @@ -import{S as C,i as J,s as O,l as u,a as N,w as A,ah as U,m as f,h as l,c as S,n as I,x as D,p as n,M as c,b as B,y as K,f as T,t as k,B as L,I as j,J as F,K as G,L as H}from"../../chunks/index-f283717a.js";import{f as P,N as Q,E as R}from"../../chunks/error-boundary-828b07a2.js";import{f as W}from"../../chunks/settings-service-807323d3.js";/* empty css */import X from"./_import-header.svelte-be1e81ec.js";import"../../chunks/route-for-api-68bfde2a.js";import"../../chunks/route-for-4a4bbbc1.js";import"../../chunks/get-public-path-6c4a8950.js";import"../../chunks/index-5dff130b.js";import"../../chunks/notifications-dddf88f8.js";import"../../chunks/is-network-error-5f9e2367.js";import"../../chunks/is-function-45497f08.js";import"../../chunks/get-api-origin-9f051405.js";import"../../chunks/index-cf7c7b94.js";import"../../chunks/error-73a2de77.js";import"../../chunks/navigation-fbe70647.js";import"../../chunks/singletons-eca981c1.js";import"../../chunks/stores-62bcca1c.js";import"../../chunks/link-1679e5ab.js";import"../../chunks/settings-16907be6.js";import"../../chunks/icon-c6a60499.js";import"../../chunks/_nav-row-674aaed1.js";import"../../chunks/nav-open-bbd3ebaf.js";import"../../chunks/persist-store-c4deb1a0.js";import"../../chunks/tooltip-558f0bf8.js";import"../../chunks/copyable-ddc34383.js";import"../../chunks/copy-to-clipboard-c6080acc.js";function Y(m){let r;const s=m[0].default,e=j(s,m,m[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),r=!0},p(t,a){e&&e.p&&(!r||a&2)&&F(e,s,t,t[1],r?H(s,t[1],a,null):G(t[1]),null)},i(t){r||(T(e,t),r=!0)},o(t){k(e,t),r=!1},d(t){e&&e.d(t)}}}function Z(m){let r,s,e,t,a,y,E,p,$,x,v,_,M,g,w,h,b;return $=new Q({}),_=new X({}),h=new R({props:{onError:tt,$$slots:{default:[Y]},$$scope:{ctx:m}}}),{c(){r=u("link"),s=u("link"),e=u("meta"),t=u("meta"),a=u("meta"),y=u("meta"),E=N(),p=u("div"),A($.$$.fragment),x=N(),v=u("div"),A(_.$$.fragment),M=N(),g=u("section"),w=u("div"),A(h.$$.fragment),this.h()},l(o){const i=U('[data-svelte="svelte-15ltrtv"]',document.head);r=f(i,"LINK",{rel:!0,href:!0}),s=f(i,"LINK",{rel:!0,href:!0}),e=f(i,"META",{property:!0,content:!0}),t=f(i,"META",{property:!0,content:!0}),a=f(i,"META",{property:!0,content:!0}),y=f(i,"META",{property:!0,content:!0}),i.forEach(l),E=S(o),p=f(o,"DIV",{class:!0});var d=I(p);D($.$$.fragment,d),x=S(d),v=f(d,"DIV",{class:!0});var V=I(v);D(_.$$.fragment,V),V.forEach(l),M=S(d),g=f(d,"SECTION",{id:!0,class:!0});var q=I(g);w=f(q,"DIV",{class:!0});var z=I(w);D(h.$$.fragment,z),z.forEach(l),q.forEach(l),d.forEach(l),this.h()},h(){document.title="Temporal",n(r,"rel","manifest"),n(r,"href","/site.webmanifest"),n(s,"rel","apple-touch-icon"),n(s,"href","/apple-touch-icon.png"),n(e,"property","og:title"),n(e,"content","Temporal"),n(t,"property","og:type"),n(t,"content","website"),n(a,"property","og:url"),n(a,"content","https://temporal.io"),n(y,"property","og:image"),n(y,"content","/banner.png"),n(v,"class","sticky top-0 z-20 h-screen w-auto"),n(w,"class","z-10 flex h-full flex-col gap-4 px-10 pb-10 pt-8"),n(g,"id","content"),n(g,"class","h-screen w-max flex-auto overflow-auto"),n(p,"class","flex h-screen w-screen flex-row")},m(o,i){c(document.head,r),c(document.head,s),c(document.head,e),c(document.head,t),c(document.head,a),c(document.head,y),B(o,E,i),B(o,p,i),K($,p,null),c(p,x),c(p,v),K(_,v,null),c(p,M),c(p,g),c(g,w),K(h,w,null),b=!0},p(o,[i]){const d={};i&2&&(d.$$scope={dirty:i,ctx:o}),h.$set(d)},i(o){b||(T($.$$.fragment,o),T(_.$$.fragment,o),T(h.$$.fragment,o),b=!0)},o(o){k($.$$.fragment,o),k(_.$$.fragment,o),k(h.$$.fragment,o),b=!1},d(o){l(r),l(s),l(e),l(t),l(a),l(y),o&&l(E),o&&l(p),L($),L(_),L(h)}}}const Nt=async function({fetch:m}){const r=await W(m);return{props:{user:await P(m)},stuff:{settings:r}}},tt=()=>{};function et(m,r,s){let{$$slots:e={},$$scope:t}=r;return m.$$set=a=>{"$$scope"in a&&s(1,t=a.$$scope)},[e,t]}class At extends C{constructor(r){super(),J(this,r,et,Z,O,{})}}export{At as default,Nt as load}; +import{S as C,i as J,s as O,l as u,a as N,w as A,ah as U,m as f,h as l,c as S,n as I,x as D,p as n,M as c,b as B,y as K,f as T,t as k,B as L,I as j,J as F,K as G,L as H}from"../../chunks/index-f283717a.js";import{f as P,N as Q,E as R}from"../../chunks/error-boundary-7db141b5.js";import{f as W}from"../../chunks/settings-service-54502f3f.js";/* empty css */import X from"./_import-header.svelte-be1e81ec.js";import"../../chunks/route-for-api-6372c71f.js";import"../../chunks/route-for-4a4bbbc1.js";import"../../chunks/get-public-path-6c4a8950.js";import"../../chunks/index-5dff130b.js";import"../../chunks/notifications-dddf88f8.js";import"../../chunks/is-network-error-5f9e2367.js";import"../../chunks/is-function-45497f08.js";import"../../chunks/get-api-origin-9f051405.js";import"../../chunks/index-cf7c7b94.js";import"../../chunks/error-73a2de77.js";import"../../chunks/navigation-fbe70647.js";import"../../chunks/singletons-eca981c1.js";import"../../chunks/stores-62bcca1c.js";import"../../chunks/link-1679e5ab.js";import"../../chunks/settings-16907be6.js";import"../../chunks/icon-c6a60499.js";import"../../chunks/_nav-row-674aaed1.js";import"../../chunks/nav-open-bbd3ebaf.js";import"../../chunks/persist-store-c4deb1a0.js";import"../../chunks/tooltip-558f0bf8.js";import"../../chunks/copyable-ddc34383.js";import"../../chunks/copy-to-clipboard-c6080acc.js";function Y(m){let r;const s=m[0].default,e=j(s,m,m[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,a){e&&e.m(t,a),r=!0},p(t,a){e&&e.p&&(!r||a&2)&&F(e,s,t,t[1],r?H(s,t[1],a,null):G(t[1]),null)},i(t){r||(T(e,t),r=!0)},o(t){k(e,t),r=!1},d(t){e&&e.d(t)}}}function Z(m){let r,s,e,t,a,y,E,p,$,x,v,_,M,g,w,h,b;return $=new Q({}),_=new X({}),h=new R({props:{onError:tt,$$slots:{default:[Y]},$$scope:{ctx:m}}}),{c(){r=u("link"),s=u("link"),e=u("meta"),t=u("meta"),a=u("meta"),y=u("meta"),E=N(),p=u("div"),A($.$$.fragment),x=N(),v=u("div"),A(_.$$.fragment),M=N(),g=u("section"),w=u("div"),A(h.$$.fragment),this.h()},l(o){const i=U('[data-svelte="svelte-15ltrtv"]',document.head);r=f(i,"LINK",{rel:!0,href:!0}),s=f(i,"LINK",{rel:!0,href:!0}),e=f(i,"META",{property:!0,content:!0}),t=f(i,"META",{property:!0,content:!0}),a=f(i,"META",{property:!0,content:!0}),y=f(i,"META",{property:!0,content:!0}),i.forEach(l),E=S(o),p=f(o,"DIV",{class:!0});var d=I(p);D($.$$.fragment,d),x=S(d),v=f(d,"DIV",{class:!0});var V=I(v);D(_.$$.fragment,V),V.forEach(l),M=S(d),g=f(d,"SECTION",{id:!0,class:!0});var q=I(g);w=f(q,"DIV",{class:!0});var z=I(w);D(h.$$.fragment,z),z.forEach(l),q.forEach(l),d.forEach(l),this.h()},h(){document.title="Temporal",n(r,"rel","manifest"),n(r,"href","/site.webmanifest"),n(s,"rel","apple-touch-icon"),n(s,"href","/apple-touch-icon.png"),n(e,"property","og:title"),n(e,"content","Temporal"),n(t,"property","og:type"),n(t,"content","website"),n(a,"property","og:url"),n(a,"content","https://temporal.io"),n(y,"property","og:image"),n(y,"content","/banner.png"),n(v,"class","sticky top-0 z-20 h-screen w-auto"),n(w,"class","z-10 flex h-full flex-col gap-4 px-10 pb-10 pt-8"),n(g,"id","content"),n(g,"class","h-screen w-max flex-auto overflow-auto"),n(p,"class","flex h-screen w-screen flex-row")},m(o,i){c(document.head,r),c(document.head,s),c(document.head,e),c(document.head,t),c(document.head,a),c(document.head,y),B(o,E,i),B(o,p,i),K($,p,null),c(p,x),c(p,v),K(_,v,null),c(p,M),c(p,g),c(g,w),K(h,w,null),b=!0},p(o,[i]){const d={};i&2&&(d.$$scope={dirty:i,ctx:o}),h.$set(d)},i(o){b||(T($.$$.fragment,o),T(_.$$.fragment,o),T(h.$$.fragment,o),b=!0)},o(o){k($.$$.fragment,o),k(_.$$.fragment,o),k(h.$$.fragment,o),b=!1},d(o){l(r),l(s),l(e),l(t),l(a),l(y),o&&l(E),o&&l(p),L($),L(_),L(h)}}}const Nt=async function({fetch:m}){const r=await W(m);return{props:{user:await P(m)},stuff:{settings:r}}},tt=()=>{};function et(m,r,s){let{$$slots:e={},$$scope:t}=r;return m.$$set=a=>{"$$scope"in a&&s(1,t=a.$$scope)},[e,t]}class At extends C{constructor(r){super(),J(this,r,et,Z,O,{})}}export{At as default,Nt as load}; diff --git a/server/generated/ui/_app/immutable/pages/login/index@login.svelte-7de02516.js b/server/generated/ui/_app/immutable/pages/login/index@login.svelte-04302e77.js similarity index 94% rename from server/generated/ui/_app/immutable/pages/login/index@login.svelte-7de02516.js rename to server/generated/ui/_app/immutable/pages/login/index@login.svelte-04302e77.js index e96c7386d2..5ec2d985d7 100644 --- a/server/generated/ui/_app/immutable/pages/login/index@login.svelte-7de02516.js +++ b/server/generated/ui/_app/immutable/pages/login/index@login.svelte-04302e77.js @@ -1 +1 @@ -import{S as D,i as F,s as M,w as E,a as h,l as _,r as O,x as N,c as b,m as y,n as v,u as L,h as c,p as g,y as P,b as x,M as u,f as B,t as H,B as I,N as T}from"../../chunks/index-f283717a.js";import{f as U}from"../../chunks/settings-service-807323d3.js";import{p as V}from"../../chunks/route-for-4a4bbbc1.js";import{B as j}from"../../chunks/button-397b3a8c.js";import{p as z}from"../../chunks/stores-62bcca1c.js";import{g as G}from"../../chunks/navigation-fbe70647.js";import{N as J,H as K}from"../../chunks/hamburger-header-79dbf385.js";import{p as A}from"../../chunks/get-public-path-6c4a8950.js";import"../../chunks/settings-16907be6.js";import"../../chunks/index-5dff130b.js";import"../../chunks/get-api-origin-9f051405.js";import"../../chunks/route-for-api-68bfde2a.js";import"../../chunks/notifications-dddf88f8.js";import"../../chunks/is-network-error-5f9e2367.js";import"../../chunks/is-function-45497f08.js";import"../../chunks/icon-c6a60499.js";import"../../chunks/badge-46845e47.js";/* empty css */import"../../chunks/singletons-eca981c1.js";import"../../chunks/has-ae9b6b71.js";import"../../chunks/is-6159121b.js";import"../../chunks/data-encoder-status-f933fd93.js";import"../../chunks/data-converter-config-49e426af.js";import"../../chunks/persist-store-c4deb1a0.js";import"../../chunks/is-http-d28111f6.js";import"../../chunks/tooltip-558f0bf8.js";import"../../chunks/copyable-ddc34383.js";import"../../chunks/copy-to-clipboard-c6080acc.js";import"../../chunks/modal-90d17380.js";import"../../chunks/index-cf7c7b94.js";function Q(i){let e;return{c(){e=O("Continue to SSO")},l(o){e=L(o,"Continue to SSO")},m(o,a){x(o,e,a)},d(o){o&&c(e)}}}function R(i){let e,o,a,p,s,n,S,k,l,w,C,f,m,$;return e=new J({props:{href:A+"/",user:void 0}}),a=new K({props:{href:A+"/",user:void 0}}),m=new j({props:{dataCy:"login-button",variant:"login",icon:"lock",$$slots:{default:[Q]},$$scope:{ctx:i}}}),m.$on("click",i[2]),{c(){E(e.$$.fragment),o=h(),E(a.$$.fragment),p=h(),s=_("section"),n=_("h1"),S=O("Welcome back."),k=h(),l=_("p"),w=O("Let's get you signed in."),C=h(),f=_("div"),E(m.$$.fragment),this.h()},l(t){N(e.$$.fragment,t),o=b(t),N(a.$$.fragment,t),p=b(t),s=y(t,"SECTION",{class:!0});var r=v(s);n=y(r,"H1",{class:!0,"data-cy":!0});var d=v(n);S=L(d,"Welcome back."),d.forEach(c),k=b(r),l=y(r,"P",{class:!0,"data-cy":!0});var W=v(l);w=L(W,"Let's get you signed in."),W.forEach(c),C=b(r),f=y(r,"DIV",{class:!0});var q=v(f);N(m.$$.fragment,q),q.forEach(c),r.forEach(c),this.h()},h(){g(n,"class","text-8xl font-semibold"),g(n,"data-cy","login-title"),g(l,"class","my-7"),g(l,"data-cy","login-info"),g(f,"class","mx-auto"),g(s,"class","my-[20vh] text-center")},m(t,r){P(e,t,r),x(t,o,r),P(a,t,r),x(t,p,r),x(t,s,r),u(s,n),u(n,S),u(s,k),u(s,l),u(l,w),u(s,C),u(s,f),P(m,f,null),$=!0},p(t,[r]){const d={};r&8&&(d.$$scope={dirty:r,ctx:t}),m.$set(d)},i(t){$||(B(e.$$.fragment,t),B(a.$$.fragment,t),B(m.$$.fragment,t),$=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(m.$$.fragment,t),$=!1},d(t){I(e,t),t&&c(o),I(a,t),t&&c(p),t&&c(s),I(m)}}}const Nt=async function({fetch:i}){const e=await U(i);return e.auth.enabled?{props:{settings:e},stuff:{settings:e}}:{status:404}};function X(i,e,o){let a;T(i,z,n=>o(1,a=n));let{settings:p}=e;const s=()=>{G(V({settings:p,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return i.$$set=n=>{"settings"in n&&o(0,p=n.settings)},[p,a,s]}class Pt extends D{constructor(e){super(),F(this,e,X,R,M,{settings:0})}}export{Pt as default,Nt as load}; +import{S as D,i as F,s as M,w as E,a as h,l as _,r as O,x as N,c as b,m as y,n as v,u as L,h as c,p as g,y as P,b as x,M as u,f as B,t as H,B as I,N as T}from"../../chunks/index-f283717a.js";import{f as U}from"../../chunks/settings-service-54502f3f.js";import{p as V}from"../../chunks/route-for-4a4bbbc1.js";import{B as j}from"../../chunks/button-397b3a8c.js";import{p as z}from"../../chunks/stores-62bcca1c.js";import{g as G}from"../../chunks/navigation-fbe70647.js";import{N as J,H as K}from"../../chunks/hamburger-header-79dbf385.js";import{p as A}from"../../chunks/get-public-path-6c4a8950.js";import"../../chunks/settings-16907be6.js";import"../../chunks/index-5dff130b.js";import"../../chunks/get-api-origin-9f051405.js";import"../../chunks/route-for-api-6372c71f.js";import"../../chunks/notifications-dddf88f8.js";import"../../chunks/is-network-error-5f9e2367.js";import"../../chunks/is-function-45497f08.js";import"../../chunks/icon-c6a60499.js";import"../../chunks/badge-46845e47.js";/* empty css */import"../../chunks/singletons-eca981c1.js";import"../../chunks/has-ae9b6b71.js";import"../../chunks/is-6159121b.js";import"../../chunks/data-encoder-status-f933fd93.js";import"../../chunks/data-converter-config-49e426af.js";import"../../chunks/persist-store-c4deb1a0.js";import"../../chunks/is-http-d28111f6.js";import"../../chunks/tooltip-558f0bf8.js";import"../../chunks/copyable-ddc34383.js";import"../../chunks/copy-to-clipboard-c6080acc.js";import"../../chunks/modal-90d17380.js";import"../../chunks/index-cf7c7b94.js";function Q(i){let e;return{c(){e=O("Continue to SSO")},l(o){e=L(o,"Continue to SSO")},m(o,a){x(o,e,a)},d(o){o&&c(e)}}}function R(i){let e,o,a,p,s,n,S,k,l,w,C,f,m,$;return e=new J({props:{href:A+"/",user:void 0}}),a=new K({props:{href:A+"/",user:void 0}}),m=new j({props:{dataCy:"login-button",variant:"login",icon:"lock",$$slots:{default:[Q]},$$scope:{ctx:i}}}),m.$on("click",i[2]),{c(){E(e.$$.fragment),o=h(),E(a.$$.fragment),p=h(),s=_("section"),n=_("h1"),S=O("Welcome back."),k=h(),l=_("p"),w=O("Let's get you signed in."),C=h(),f=_("div"),E(m.$$.fragment),this.h()},l(t){N(e.$$.fragment,t),o=b(t),N(a.$$.fragment,t),p=b(t),s=y(t,"SECTION",{class:!0});var r=v(s);n=y(r,"H1",{class:!0,"data-cy":!0});var d=v(n);S=L(d,"Welcome back."),d.forEach(c),k=b(r),l=y(r,"P",{class:!0,"data-cy":!0});var W=v(l);w=L(W,"Let's get you signed in."),W.forEach(c),C=b(r),f=y(r,"DIV",{class:!0});var q=v(f);N(m.$$.fragment,q),q.forEach(c),r.forEach(c),this.h()},h(){g(n,"class","text-8xl font-semibold"),g(n,"data-cy","login-title"),g(l,"class","my-7"),g(l,"data-cy","login-info"),g(f,"class","mx-auto"),g(s,"class","my-[20vh] text-center")},m(t,r){P(e,t,r),x(t,o,r),P(a,t,r),x(t,p,r),x(t,s,r),u(s,n),u(n,S),u(s,k),u(s,l),u(l,w),u(s,C),u(s,f),P(m,f,null),$=!0},p(t,[r]){const d={};r&8&&(d.$$scope={dirty:r,ctx:t}),m.$set(d)},i(t){$||(B(e.$$.fragment,t),B(a.$$.fragment,t),B(m.$$.fragment,t),$=!0)},o(t){H(e.$$.fragment,t),H(a.$$.fragment,t),H(m.$$.fragment,t),$=!1},d(t){I(e,t),t&&c(o),I(a,t),t&&c(p),t&&c(s),I(m)}}}const Nt=async function({fetch:i}){const e=await U(i);return e.auth.enabled?{props:{settings:e},stuff:{settings:e}}:{status:404}};function X(i,e,o){let a;T(i,z,n=>o(1,a=n));let{settings:p}=e;const s=()=>{G(V({settings:p,searchParams:a.url.searchParams,originUrl:a.url.origin}))};return i.$$set=n=>{"settings"in n&&o(0,p=n.settings)},[p,a,s]}class Pt extends D{constructor(e){super(),F(this,e,X,R,M,{settings:0})}}export{Pt as default,Nt as load}; diff --git a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-91a95d1e.js b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-bf6535fb.js similarity index 98% rename from server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-91a95d1e.js rename to server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-bf6535fb.js index 47b1555ad0..b4242e1280 100644 --- a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-91a95d1e.js +++ b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/archival/index@root.svelte-bf6535fb.js @@ -1,3 +1,3 @@ -import{S as O,i as Q,s as U,w as S,a as T,e as B,x as C,c as F,y as I,b as v,t as y,d as q,f as w,B as V,h,N as G,g as D,l as W,r as E,m as N,n as H,u as A,p as P,M as g,E as X,ad as Y}from"../../../../chunks/index-f283717a.js";import{b as Z}from"../../../../chunks/workflow-service-d942142b.js";import{W as x,a as ee}from"../../../../chunks/workflows-summary-row-f343242c.js";import te from"./_workflow-filters.svelte-845c9442.js";import{P as le}from"../../../../chunks/pagination-d282538d.js";import{E as re}from"../../../../chunks/empty-state-5e402c94.js";import{C as M}from"../../../../chunks/code-block-79b577be.js";import{t as ae}from"../../../../chunks/time-format-e53b802e.js";import{P as ie}from"../../../../chunks/page-title-c652e2a5.js";import{p as oe}from"../../../../chunks/stores-62bcca1c.js";import"../../../../chunks/settings-16907be6.js";import"../../../../chunks/index-5dff130b.js";import"../../../../chunks/simplify-attributes-61797c15.js";import"../../../../chunks/format-date-e7563fe7.js";import"../../../../chunks/to-duration-a5f6615f.js";import"../../../../chunks/is-6159121b.js";import"../../../../chunks/route-for-api-68bfde2a.js";import"../../../../chunks/route-for-4a4bbbc1.js";import"../../../../chunks/get-public-path-6c4a8950.js";import"../../../../chunks/notifications-dddf88f8.js";import"../../../../chunks/is-network-error-5f9e2367.js";import"../../../../chunks/is-function-45497f08.js";import"../../../../chunks/get-api-origin-9f051405.js";import"../../../../chunks/table-row-f3dc657f.js";import"../../../../chunks/update-query-parameters-0d565146.js";import"../../../../chunks/navigation-fbe70647.js";import"../../../../chunks/singletons-eca981c1.js";import"../../../../chunks/workflow-status-0bcf7612.js";import"../../../../chunks/icon-c6a60499.js";import"../../../../chunks/copy-to-clipboard-c6080acc.js";import"../../../../chunks/simple-select-bb509320.js";import"../../../../chunks/filter-select-a0e13a2c.js";import"./_filter-input.svelte-40f7ad05.js";import"../../../../chunks/index-97e54b9f.js";import"../../../../chunks/search-637897b3.js";import"../../../../chunks/button-397b3a8c.js";import"../../../../chunks/badge-46845e47.js";/* empty css */import"../../../../chunks/persist-store-c4deb1a0.js";function J(p,t,i){const e=p.slice();return e[7]=t[i],e}function ne(p){let t,i,e,l,s,r,a,o,u,c,b,k,n,d,m;a=new M({props:{content:`tctl --namespace ${p[0]} namespace update --has enabled`,language:"text",inline:!0}});let _=!p[3]&&K(p);return{c(){t=W("h2"),i=E("This namespace is currently not enabled for archival."),e=T(),l=W("p"),s=E("Run this command to enable Archival for Event Histories:"),r=T(),S(a.$$.fragment),o=T(),_&&_.c(),u=T(),c=W("p"),b=E("For more details, please check out "),k=W("a"),n=E("Archival documentation"),d=E("."),this.h()},l(f){t=N(f,"H2",{class:!0,"data-cy":!0});var $=H(t);i=A($,"This namespace is currently not enabled for archival."),$.forEach(h),e=F(f),l=N(f,"P",{});var R=H(l);s=A(R,"Run this command to enable Archival for Event Histories:"),R.forEach(h),r=F(f),C(a.$$.fragment,f),o=F(f),_&&_.l(f),u=F(f),c=N(f,"P",{});var j=H(c);b=A(j,"For more details, please check out "),k=N(j,"A",{class:!0,href:!0,target:!0});var z=H(k);n=A(z,"Archival documentation"),z.forEach(h),d=A(j,"."),j.forEach(h),this.h()},h(){P(t,"class","text-2xl"),P(t,"data-cy","archived-disabled-title"),P(k,"class","text-blue-700 underline"),P(k,"href","https://docs.temporal.io/server/archive-data/"),P(k,"target","_blank")},m(f,$){v(f,t,$),g(t,i),v(f,e,$),v(f,l,$),g(l,s),v(f,r,$),I(a,f,$),v(f,o,$),_&&_.m(f,$),v(f,u,$),v(f,c,$),g(c,b),g(c,k),g(k,n),g(c,d),m=!0},p(f,$){const R={};$&1&&(R.content=`tctl --namespace ${f[0]} namespace update --has enabled`),a.$set(R),f[3]?_&&(D(),y(_,1,1,()=>{_=null}),q()):_?(_.p(f,$),$&8&&w(_,1)):(_=K(f),_.c(),w(_,1),_.m(u.parentNode,u))},i(f){m||(w(a.$$.fragment,f),w(_),m=!0)},o(f){y(a.$$.fragment,f),y(_),m=!1},d(f){f&&h(t),f&&h(e),f&&h(l),f&&h(r),V(a,f),f&&h(o),_&&_.d(f),f&&h(u),f&&h(c)}}}function se(p){let t,i,e,l,s,r,a,o,u,c,b,k,n,d;return a=new M({props:{content:`tctl --namespace ${p[0]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){t=W("h2"),i=E(`This namespace is currently enabled for archival but visibility is not +import{S as O,i as Q,s as U,w as S,a as T,e as B,x as C,c as F,y as I,b as v,t as y,d as q,f as w,B as V,h,N as G,g as D,l as W,r as E,m as N,n as H,u as A,p as P,M as g,E as X,ad as Y}from"../../../../chunks/index-f283717a.js";import{b as Z}from"../../../../chunks/workflow-service-52952a0f.js";import{W as x,a as ee}from"../../../../chunks/workflows-summary-row-bda45870.js";import te from"./_workflow-filters.svelte-845c9442.js";import{P as le}from"../../../../chunks/pagination-d282538d.js";import{E as re}from"../../../../chunks/empty-state-5e402c94.js";import{C as M}from"../../../../chunks/code-block-79b577be.js";import{t as ae}from"../../../../chunks/time-format-e53b802e.js";import{P as ie}from"../../../../chunks/page-title-c652e2a5.js";import{p as oe}from"../../../../chunks/stores-62bcca1c.js";import"../../../../chunks/settings-16907be6.js";import"../../../../chunks/index-5dff130b.js";import"../../../../chunks/simplify-attributes-61797c15.js";import"../../../../chunks/format-date-e7563fe7.js";import"../../../../chunks/to-duration-a5f6615f.js";import"../../../../chunks/is-6159121b.js";import"../../../../chunks/route-for-api-6372c71f.js";import"../../../../chunks/route-for-4a4bbbc1.js";import"../../../../chunks/get-public-path-6c4a8950.js";import"../../../../chunks/notifications-dddf88f8.js";import"../../../../chunks/is-network-error-5f9e2367.js";import"../../../../chunks/is-function-45497f08.js";import"../../../../chunks/get-api-origin-9f051405.js";import"../../../../chunks/table-row-f3dc657f.js";import"../../../../chunks/update-query-parameters-0d565146.js";import"../../../../chunks/navigation-fbe70647.js";import"../../../../chunks/singletons-eca981c1.js";import"../../../../chunks/workflow-status-0bcf7612.js";import"../../../../chunks/icon-c6a60499.js";import"../../../../chunks/copy-to-clipboard-c6080acc.js";import"../../../../chunks/simple-select-bb509320.js";import"../../../../chunks/filter-select-a0e13a2c.js";import"./_filter-input.svelte-40f7ad05.js";import"../../../../chunks/index-97e54b9f.js";import"../../../../chunks/search-637897b3.js";import"../../../../chunks/button-397b3a8c.js";import"../../../../chunks/badge-46845e47.js";/* empty css */import"../../../../chunks/persist-store-c4deb1a0.js";function J(p,t,i){const e=p.slice();return e[7]=t[i],e}function ne(p){let t,i,e,l,s,r,a,o,u,c,b,k,n,d,m;a=new M({props:{content:`tctl --namespace ${p[0]} namespace update --has enabled`,language:"text",inline:!0}});let _=!p[3]&&K(p);return{c(){t=W("h2"),i=E("This namespace is currently not enabled for archival."),e=T(),l=W("p"),s=E("Run this command to enable Archival for Event Histories:"),r=T(),S(a.$$.fragment),o=T(),_&&_.c(),u=T(),c=W("p"),b=E("For more details, please check out "),k=W("a"),n=E("Archival documentation"),d=E("."),this.h()},l(f){t=N(f,"H2",{class:!0,"data-cy":!0});var $=H(t);i=A($,"This namespace is currently not enabled for archival."),$.forEach(h),e=F(f),l=N(f,"P",{});var R=H(l);s=A(R,"Run this command to enable Archival for Event Histories:"),R.forEach(h),r=F(f),C(a.$$.fragment,f),o=F(f),_&&_.l(f),u=F(f),c=N(f,"P",{});var j=H(c);b=A(j,"For more details, please check out "),k=N(j,"A",{class:!0,href:!0,target:!0});var z=H(k);n=A(z,"Archival documentation"),z.forEach(h),d=A(j,"."),j.forEach(h),this.h()},h(){P(t,"class","text-2xl"),P(t,"data-cy","archived-disabled-title"),P(k,"class","text-blue-700 underline"),P(k,"href","https://docs.temporal.io/server/archive-data/"),P(k,"target","_blank")},m(f,$){v(f,t,$),g(t,i),v(f,e,$),v(f,l,$),g(l,s),v(f,r,$),I(a,f,$),v(f,o,$),_&&_.m(f,$),v(f,u,$),v(f,c,$),g(c,b),g(c,k),g(k,n),g(c,d),m=!0},p(f,$){const R={};$&1&&(R.content=`tctl --namespace ${f[0]} namespace update --has enabled`),a.$set(R),f[3]?_&&(D(),y(_,1,1,()=>{_=null}),q()):_?(_.p(f,$),$&8&&w(_,1)):(_=K(f),_.c(),w(_,1),_.m(u.parentNode,u))},i(f){m||(w(a.$$.fragment,f),w(_),m=!0)},o(f){y(a.$$.fragment,f),y(_),m=!1},d(f){f&&h(t),f&&h(e),f&&h(l),f&&h(r),V(a,f),f&&h(o),_&&_.d(f),f&&h(u),f&&h(c)}}}function se(p){let t,i,e,l,s,r,a,o,u,c,b,k,n,d;return a=new M({props:{content:`tctl --namespace ${p[0]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){t=W("h2"),i=E(`This namespace is currently enabled for archival but visibility is not enabled.`),e=T(),l=W("p"),s=E("To enable Visibility Archival:"),r=T(),S(a.$$.fragment),o=T(),u=W("p"),c=E("For more details, please check out "),b=W("a"),k=E("Archival documentation"),n=E("."),this.h()},l(m){t=N(m,"H2",{class:!0,"data-cy":!0});var _=H(t);i=A(_,`This namespace is currently enabled for archival but visibility is not enabled.`),_.forEach(h),e=F(m),l=N(m,"P",{});var f=H(l);s=A(f,"To enable Visibility Archival:"),f.forEach(h),r=F(m),C(a.$$.fragment,m),o=F(m),u=N(m,"P",{});var $=H(u);c=A($,"For more details, please check out "),b=N($,"A",{class:!0,href:!0,target:!0});var R=H(b);k=A(R,"Archival documentation"),R.forEach(h),n=A($,"."),$.forEach(h),this.h()},h(){P(t,"class","text-2xl"),P(t,"data-cy","visibility-disabled-title"),P(b,"class","text-blue-700 underline"),P(b,"href","https://docs.temporal.io/server/archive-data/"),P(b,"target","_blank")},m(m,_){v(m,t,_),g(t,i),v(m,e,_),v(m,l,_),g(l,s),v(m,r,_),I(a,m,_),v(m,o,_),v(m,u,_),g(u,c),g(u,b),g(b,k),g(u,n),d=!0},p(m,_){const f={};_&1&&(f.content=`tctl --namespace ${m[0]} namespace update -vas enabled`),a.$set(f)},i(m){d||(w(a.$$.fragment,m),d=!0)},o(m){y(a.$$.fragment,m),d=!1},d(m){m&&h(t),m&&h(e),m&&h(l),m&&h(r),V(a,m),m&&h(o),m&&h(u)}}}function ce(p){let t,i,e,l,s,r,a,o,u;l=new te({});const c=[me,fe],b=[];function k(n,d){var m;return(m=n[1])!=null&&m.length?0:1}return r=k(p),a=b[r]=c[r](p),{c(){t=W("h2"),i=E("Archived Workflows"),e=T(),S(l.$$.fragment),s=T(),a.c(),o=B(),this.h()},l(n){t=N(n,"H2",{class:!0,"data-cy":!0});var d=H(t);i=A(d,"Archived Workflows"),d.forEach(h),e=F(n),C(l.$$.fragment,n),s=F(n),a.l(n),o=B(),this.h()},h(){P(t,"class","text-2xl"),P(t,"data-cy","archived-enabled-title")},m(n,d){v(n,t,d),g(t,i),v(n,e,d),I(l,n,d),v(n,s,d),b[r].m(n,d),v(n,o,d),u=!0},p(n,d){let m=r;r=k(n),r===m?b[r].p(n,d):(D(),y(b[m],1,1,()=>{b[m]=null}),q(),a=b[r],a?a.p(n,d):(a=b[r]=c[r](n),a.c()),w(a,1),a.m(o.parentNode,o))},i(n){u||(w(l.$$.fragment,n),w(a),u=!0)},o(n){y(l.$$.fragment,n),y(a),u=!1},d(n){n&&h(t),n&&h(e),V(l,n),n&&h(s),b[r].d(n),n&&h(o)}}}function K(p){let t,i,e,l,s;return l=new M({props:{content:`tctl --namespace ${p[0]} namespace update -vas enabled`,language:"text",inline:!0}}),{c(){t=W("p"),i=E("To enable Visibility Archival:"),e=T(),S(l.$$.fragment)},l(r){t=N(r,"P",{});var a=H(t);i=A(a,"To enable Visibility Archival:"),a.forEach(h),e=F(r),C(l.$$.fragment,r)},m(r,a){v(r,t,a),g(t,i),v(r,e,a),I(l,r,a),s=!0},p(r,a){const o={};a&1&&(o.content=`tctl --namespace ${r[0]} namespace update -vas enabled`),l.$set(o)},i(r){s||(w(l.$$.fragment,r),s=!0)},o(r){y(l.$$.fragment,r),s=!1},d(r){r&&h(t),r&&h(e),V(l,r)}}}function fe(p){let t,i;return t=new re({props:{title:"No Workflows Found",content:"If you have filters applied, try adjusting them."}}),{c(){S(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,l){I(t,e,l),i=!0},p:X,i(e){i||(w(t.$$.fragment,e),i=!0)},o(e){y(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function me(p){let t,i;return t=new le({props:{items:p[1],$$slots:{default:[pe,({visibleItems:e})=>({6:e}),({visibleItems:e})=>e?64:0]},$$scope:{ctx:p}}}),{c(){S(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,l){I(t,e,l),i=!0},p(e,l){const s={};l&2&&(s.items=e[1]),l&1121&&(s.$$scope={dirty:l,ctx:e}),t.$set(s)},i(e){i||(w(t.$$.fragment,e),i=!0)},o(e){y(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function L(p){let t,i;return t=new ee({props:{workflow:p[7],namespace:p[0],timeFormat:p[5]}}),{c(){S(t.$$.fragment)},l(e){C(t.$$.fragment,e)},m(e,l){I(t,e,l),i=!0},p(e,l){const s={};l&64&&(s.workflow=e[7]),l&1&&(s.namespace=e[0]),l&32&&(s.timeFormat=e[5]),t.$set(s)},i(e){i||(w(t.$$.fragment,e),i=!0)},o(e){y(t.$$.fragment,e),i=!1},d(e){V(t,e)}}}function ue(p){let t,i,e=p[6],l=[];for(let r=0;ry(l[r],1,1,()=>{l[r]=null});return{c(){for(let r=0;r{o[n]=null}),q(),l=o[e],l?l.p(c,b):(l=o[e]=a[e](c),l.c()),w(l,1),l.m(s.parentNode,s))},i(c){r||(w(t.$$.fragment,c),w(l),r=!0)},o(c){y(t.$$.fragment,c),y(l),r=!1},d(c){V(t,c),c&&h(i),o[e].d(c),c&&h(s)}}}const tt=async function({params:p,url:t,stuff:i}){var e,l;const{searchParams:s}=t;s.has("time-range")||s.set("time-range","1 day");const r=p.namespace,a=s.get("workflow-id"),o=s.get("workflow-type"),u=s.get("time-range"),c=s.get("status"),b={workflowId:a,workflowType:o,closeTime:u,executionStatus:c},n=i.namespaces.find(f=>f.namespaceInfo.name===r),d=((e=n==null?void 0:n.config)===null||e===void 0?void 0:e.historyArchivalState)==="Enabled",m=((l=n==null?void 0:n.config)===null||l===void 0?void 0:l.visibilityArchivalState)==="Enabled",_=d&&m?await Z(r,b,fetch):null;return{props:{workflows:_?_.workflows:[],namespace:r,archivalEnabled:d,visibilityArchivalEnabled:m}}};function be(p,t,i){let e,l;G(p,oe,u=>i(4,e=u)),G(p,ae,u=>i(5,l=u));let{namespace:s}=t,{workflows:r}=t,{archivalEnabled:a=!1}=t,{visibilityArchivalEnabled:o=!1}=t;return p.$$set=u=>{"namespace"in u&&i(0,s=u.namespace),"workflows"in u&&i(1,r=u.workflows),"archivalEnabled"in u&&i(2,a=u.archivalEnabled),"visibilityArchivalEnabled"in u&&i(3,o=u.visibilityArchivalEnabled)},[s,r,a,o,e,l]}class lt extends O{constructor(t){super(),Q(this,t,be,_e,U,{namespace:0,workflows:1,archivalEnabled:2,visibilityArchivalEnabled:3})}}export{lt as default,tt as load}; diff --git a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-9c149880.js b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-35bf983e.js similarity index 99% rename from server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-9c149880.js rename to server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-35bf983e.js index 722e5618e2..6a6838fe18 100644 --- a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-9c149880.js +++ b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-35bf983e.js @@ -1,3 +1,3 @@ -import{S as ne,i as re,s as ae,e as Y,b as p,f as E,g as Ze,t as P,d as Qe,h as i,C as Ie,V as Re,I as Xe,l as g,m as $,n as b,p as v,R as pe,J as xe,K as et,L as tt,a4 as jl,a5 as Hl,r as R,a as T,u as S,c as M,M as _,v as K,E as q,w as W,x as N,y as U,B as L,N as Ye,a0 as yl,am as zl,a9 as nt,ac as Nl,ad as Ul,T as Fe,Y as gl,ab as Ol,aq as Gl,G as Jl,W as Ll,Z as Kl,_ as Yl,$ as Zl,a8 as at,q as Ql,aa as $l}from"../../../../../chunks/index-f283717a.js";import{p as Xl}from"../../../../../chunks/stores-62bcca1c.js";import{I as ft}from"../../../../../chunks/icon-c6a60499.js";import{m as ot,n as bl,c as ql}from"../../../../../chunks/route-for-4a4bbbc1.js";import{g as xl}from"../../../../../chunks/navigation-fbe70647.js";import{f as kl,d as es,u as ts,p as ls}from"../../../../../chunks/schedule-service-8d260234.js";import{f as Se}from"../../../../../chunks/format-date-e7563fe7.js";import{t as ut}from"../../../../../chunks/time-format-e53b802e.js";import{l as st}from"../../../../../chunks/schedules-b2607a9d.js";import{W as Fl}from"../../../../../chunks/workflow-status-0bcf7612.js";import{f as wl}from"../../../../../chunks/workflow-service-d942142b.js";import{E as ss}from"../../../../../chunks/empty-state-5e402c94.js";import{L as ns}from"../../../../../chunks/link-1679e5ab.js";import{S as rs}from"../../../../../chunks/schedule-frequency-d5b19d2e.js";import{M as El}from"../../../../../chunks/modal-90d17380.js";import{f as as}from"../../../../../chunks/index-cf7c7b94.js";/* empty css */import{B as os}from"../../../../../chunks/button-397b3a8c.js";import{L as Bl}from"../../../../../chunks/loading-1dce92da.js";import{P as fs}from"../../../../../chunks/page-title-c652e2a5.js";import"../../../../../chunks/get-public-path-6c4a8950.js";import"../../../../../chunks/singletons-eca981c1.js";import"../../../../../chunks/route-for-api-68bfde2a.js";import"../../../../../chunks/index-5dff130b.js";import"../../../../../chunks/notifications-dddf88f8.js";import"../../../../../chunks/is-network-error-5f9e2367.js";import"../../../../../chunks/is-function-45497f08.js";import"../../../../../chunks/get-api-origin-9f051405.js";import"../../../../../chunks/to-duration-a5f6615f.js";import"../../../../../chunks/is-6159121b.js";import"../../../../../chunks/persist-store-c4deb1a0.js";import"../../../../../chunks/settings-16907be6.js";import"../../../../../chunks/simplify-attributes-61797c15.js";import"../../../../../chunks/code-block-79b577be.js";import"../../../../../chunks/copy-to-clipboard-c6080acc.js";import"../../../../../chunks/badge-46845e47.js";/* empty css */function Il(n){let e,s,t,l;const o=n[7].default,r=Xe(o,n,n[6],null);return{c(){e=g("ul"),r&&r.c(),this.h()},l(a){e=$(a,"UL",{role:!0,class:!0,"aria-labelledby":!0,width:!0,id:!0});var f=b(e);r&&r.l(f),f.forEach(i),this.h()},h(){v(e,"role","menu"),v(e,"class",s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border border-gray-300 bg-white text-primary shadow "+n[3]+" "+n[5].class+" svelte-zt7cn"),v(e,"aria-labelledby",n[0]),v(e,"width",n[4]),v(e,"id",n[0]),pe(e,"dark",n[2])},m(a,f){p(a,e,f),r&&r.m(e,null),l=!0},p(a,f){r&&r.p&&(!l||f&64)&&xe(r,o,a,a[6],l?tt(o,a[6],f,null):et(a[6]),null),(!l||f&40&&s!==(s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border border-gray-300 bg-white text-primary shadow "+a[3]+" "+a[5].class+" svelte-zt7cn"))&&v(e,"class",s),(!l||f&1)&&v(e,"aria-labelledby",a[0]),(!l||f&1)&&v(e,"id",a[0]),f&44&&pe(e,"dark",a[2])},i(a){l||(E(r,a),t||jl(()=>{t=Hl(e,as,{duration:100}),t.start()}),l=!0)},o(a){P(r,a),l=!1},d(a){a&&i(e),r&&r.d(a)}}}function us(n){let e,s,t=n[1]&&Il(n);return{c(){t&&t.c(),e=Y()},l(l){t&&t.l(l),e=Y()},m(l,o){t&&t.m(l,o),p(l,e,o),s=!0},p(l,[o]){l[1]?t?(t.p(l,o),o&2&&E(t,1)):(t=Il(l),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(Ze(),P(t,1,1,()=>{t=null}),Qe())},i(l){s||(E(t),s=!0)},o(l){P(t),s=!1},d(l){t&&t.d(l),l&&i(e)}}}function is(n,e,s){let{$$slots:t={},$$scope:l}=e,{id:o}=e,{show:r=!1}=e,{dark:a=!1}=e,{position:f="left"}=e,u;return n.$$set=c=>{s(5,e=Ie(Ie({},e),Re(c))),"id"in c&&s(0,o=c.id),"show"in c&&s(1,r=c.show),"dark"in c&&s(2,a=c.dark),"position"in c&&s(3,f=c.position),"$$scope"in c&&s(6,l=c.$$scope)},e=Re(e),[o,r,a,f,u,e,l,t]}class cs extends ne{constructor(e){super(),re(this,e,is,us,ae,{id:0,show:1,dark:2,position:3})}}function ms(n){let e,s,t,l,o;return{c(){e=g("h2"),s=R("Memo"),t=T(),l=g("p"),o=R(n[0]),this.h()},l(r){e=$(r,"H2",{class:!0});var a=b(e);s=S(a,"Memo"),a.forEach(i),t=M(r),l=$(r,"P",{});var f=b(l);o=S(f,n[0]),f.forEach(i),this.h()},h(){v(e,"class","mb-4 text-2xl")},m(r,a){p(r,e,a),_(e,s),p(r,t,a),p(r,l,a),_(l,o)},p(r,[a]){a&1&&K(o,r[0])},i:q,o:q,d(r){r&&i(e),r&&i(t),r&&i(l)}}}function ds(n,e,s){let{notes:t=""}=e;return n.$$set=l=>{"notes"in l&&s(0,t=l.notes)},[t]}class hs extends ne{constructor(e){super(),re(this,e,ds,ms,ae,{notes:0})}}function _s(n){let e,s;const t=n[2].default,l=Xe(t,n,n[1],null);return{c(){e=g("div"),l&&l.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var r=b(e);l&&l.l(r),r.forEach(i),this.h()},h(){v(e,"class","panel svelte-iclf07"),pe(e,"error",n[0])},m(o,r){p(o,e,r),l&&l.m(e,null),s=!0},p(o,[r]){l&&l.p&&(!s||r&2)&&xe(l,t,o,o[1],s?tt(t,o[1],r,null):et(o[1]),null),r&1&&pe(e,"error",o[0])},i(o){s||(E(l,o),s=!0)},o(o){P(l,o),s=!1},d(o){o&&i(e),l&&l.d(o)}}}function ps(n,e,s){let{$$slots:t={},$$scope:l}=e,{error:o=!1}=e;return n.$$set=r=>{"error"in r&&s(0,o=r.error),"$$scope"in r&&s(1,l=r.$$scope)},[o,l,t]}class rt extends ne{constructor(e){super(),re(this,e,ps,_s,ae,{error:0})}}function Rl(n,e,s){const t=n.slice();return t[3]=e[s],t}function vs(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function gs(n){let e,s,t,l,o,r,a,f,u,c=Se(n[3].actualTime,n[2])+"",m,d;return t=new Fl({props:{status:n[6].status}}),r=new ns({props:{"sveltekit:prefetch":!0,href:bl({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[$s]},$$scope:{ctx:n}}}),{c(){e=g("div"),s=g("div"),W(t.$$.fragment),l=T(),o=g("div"),W(r.$$.fragment),a=T(),f=g("div"),u=g("p"),m=R(c),this.h()},l(h){e=$(h,"DIV",{class:!0});var k=b(e);s=$(k,"DIV",{class:!0});var A=b(s);N(t.$$.fragment,A),A.forEach(i),l=M(k),o=$(k,"DIV",{class:!0});var B=b(o);N(r.$$.fragment,B),B.forEach(i),a=M(k),f=$(k,"DIV",{class:!0});var H=b(f);u=$(H,"P",{});var z=b(u);m=S(z,c),z.forEach(i),H.forEach(i),k.forEach(i),this.h()},h(){v(s,"class","w-28"),v(o,"class","w-96"),v(f,"class","ml-auto"),v(e,"class","row svelte-1mikfkz")},m(h,k){p(h,e,k),_(e,s),U(t,s,null),_(e,l),_(e,o),U(r,o,null),_(e,a),_(e,f),_(f,u),_(u,m),d=!0},p(h,k){const A={};k&3&&(A.status=h[6].status),t.$set(A);const B={};k&3&&(B.href=bl({workflow:h[3].startWorkflowResult.workflowId,run:h[3].startWorkflowResult.runId,namespace:h[1]})),k&129&&(B.$$scope={dirty:k,ctx:h}),r.$set(B),(!d||k&5)&&c!==(c=Se(h[3].actualTime,h[2])+"")&&K(m,c)},i(h){d||(E(t.$$.fragment,h),E(r.$$.fragment,h),d=!0)},o(h){P(t.$$.fragment,h),P(r.$$.fragment,h),d=!1},d(h){h&&i(e),L(t),L(r)}}}function $s(n){let e=n[3].startWorkflowResult.workflowId+"",s;return{c(){s=R(e)},l(t){s=S(t,e)},m(t,l){p(t,s,l)},p(t,l){l&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&K(s,e)},d(t){t&&i(s)}}}function bs(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function Sl(n,e){let s,t,l,o,r={ctx:e,current:null,token:null,hasCatch:!1,pending:bs,then:gs,catch:vs,value:6,blocks:[,,,]};return nt(l=wl({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),r),{key:n,first:null,c(){s=Y(),t=Y(),r.block.c(),this.h()},l(a){s=Y(),t=Y(),r.block.l(a),this.h()},h(){this.first=s},m(a,f){p(a,s,f),p(a,t,f),r.block.m(a,r.anchor=f),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(a,f){e=a,r.ctx=e,f&3&&l!==(l=wl({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&nt(l,r)||Nl(r,e,f)},i(a){o||(E(r.block),o=!0)},o(a){for(let f=0;f<3;f+=1){const u=r.blocks[f];P(u)}o=!1},d(a){a&&i(s),a&&i(t),r.block.d(a),r.token=null,r=null}}}function Pl(n){let e,s;return e=new ss({props:{title:"No Recent Runs"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function ks(n){let e,s,t,l=[],o=new Map,r,a,f,u=n[0].slice(0,5);const c=d=>d[3].startWorkflowResult.workflowId;for(let d=0;d{m=null}),Qe()):m?h&1&&E(m,1):(m=Pl(),m.c(),E(m,1),m.m(a.parentNode,a))},i(d){if(!f){for(let h=0;hs(2,t=r));let{recentRuns:l=[]}=e,{namespace:o}=e;return n.$$set=r=>{"recentRuns"in r&&s(0,l=r.recentRuns),"namespace"in r&&s(1,o=r.namespace)},[l,o,t]}class Is extends ne{constructor(e){super(),re(this,e,Es,ws,ae,{recentRuns:0,namespace:1})}}function Dl(n,e,s){const t=n.slice();return t[2]=e[s],t}function Tl(n){let e,s,t=Se(n[2],n[1],"from now")+"",l,o;return{c(){e=g("div"),s=g("p"),l=R(t),o=T(),this.h()},l(r){e=$(r,"DIV",{class:!0});var a=b(e);s=$(a,"P",{});var f=b(s);l=S(f,t),f.forEach(i),o=M(a),a.forEach(i),this.h()},h(){v(e,"class","row svelte-kbuuws")},m(r,a){p(r,e,a),_(e,s),_(s,l),_(e,o)},p(r,a){a&3&&t!==(t=Se(r[2],r[1],"from now")+"")&&K(l,t)},d(r){r&&i(e)}}}function Rs(n){let e,s,t,l,o=n[0].slice(0,5),r=[];for(let a=0;as(1,t=o));let{futureRuns:l=[]}=e;return n.$$set=o=>{"futureRuns"in o&&s(0,l=o.futureRuns)},[l,t]}class Ds extends ne{constructor(e){super(),re(this,e,Ps,Ss,ae,{futureRuns:0})}}function Ml(n){var G,De,$e,fe,Ne,ue,be,ie,Ue,ke,ce,Le,we;let e,s,t=((De=(G=n[0])==null?void 0:G.startTime)!=null?De:"")+"",l,o,r,a,f=((fe=($e=n[0])==null?void 0:$e.endTime)!=null?fe:"")+"",u,c,m,d,h=((ue=(Ne=n[0])==null?void 0:Ne.jitter)!=null?ue:"")+"",k,A,B,H,z=((Ue=(ie=(be=n[0])==null?void 0:be.excludeCalendar)==null?void 0:ie[0])!=null?Ue:"")+"",ee,y,V,C,Q=((ce=(ke=n[1])==null?void 0:ke.remainingActions)!=null?ce:"")+"",O,ve,oe,Pe,X=((we=(Le=n[2])==null?void 0:Le.overlapPolicy)!=null?we:"")+"",ge;return{c(){e=g("p"),s=R("Schedule Start Time: "),l=R(t),o=T(),r=g("p"),a=R("Schedule End Time: "),u=R(f),c=T(),m=g("p"),d=R("Jitter: "),k=R(h),A=T(),B=g("p"),H=R("Exclusion Calendar: "),ee=R(z),y=T(),V=g("p"),C=R("Remaining Actions: "),O=R(Q),ve=T(),oe=g("p"),Pe=R("Overlap Policy: "),ge=R(X)},l(w){e=$(w,"P",{});var F=b(e);s=S(F,"Schedule Start Time: "),l=S(F,t),F.forEach(i),o=M(w),r=$(w,"P",{});var te=b(r);a=S(te,"Schedule End Time: "),u=S(te,f),te.forEach(i),c=M(w),m=$(w,"P",{});var x=b(m);d=S(x,"Jitter: "),k=S(x,h),x.forEach(i),A=M(w),B=$(w,"P",{});var me=b(B);H=S(me,"Exclusion Calendar: "),ee=S(me,z),me.forEach(i),y=M(w),V=$(w,"P",{});var Z=b(V);C=S(Z,"Remaining Actions: "),O=S(Z,Q),Z.forEach(i),ve=M(w),oe=$(w,"P",{});var de=b(oe);Pe=S(de,"Overlap Policy: "),ge=S(de,X),de.forEach(i)},m(w,F){p(w,e,F),_(e,s),_(e,l),p(w,o,F),p(w,r,F),_(r,a),_(r,u),p(w,c,F),p(w,m,F),_(m,d),_(m,k),p(w,A,F),p(w,B,F),_(B,H),_(B,ee),p(w,y,F),p(w,V,F),_(V,C),_(V,O),p(w,ve,F),p(w,oe,F),_(oe,Pe),_(oe,ge)},p(w,F){var te,x,me,Z,de,le,Ee,J,j,lt,Be,je,He;F&1&&t!==(t=((x=(te=w[0])==null?void 0:te.startTime)!=null?x:"")+"")&&K(l,t),F&1&&f!==(f=((Z=(me=w[0])==null?void 0:me.endTime)!=null?Z:"")+"")&&K(u,f),F&1&&h!==(h=((le=(de=w[0])==null?void 0:de.jitter)!=null?le:"")+"")&&K(k,h),F&1&&z!==(z=((j=(J=(Ee=w[0])==null?void 0:Ee.excludeCalendar)==null?void 0:J[0])!=null?j:"")+"")&&K(ee,z),F&2&&Q!==(Q=((Be=(lt=w[1])==null?void 0:lt.remainingActions)!=null?Be:"")+"")&&K(O,Q),F&4&&X!==(X=((He=(je=w[2])==null?void 0:je.overlapPolicy)!=null?He:"")+"")&&K(ge,X)},d(w){w&&i(e),w&&i(o),w&&i(r),w&&i(c),w&&i(m),w&&i(A),w&&i(B),w&&i(y),w&&i(V),w&&i(ve),w&&i(oe)}}}function Ts(n){let e,s,t,l,o,r,a,f;t=new ft({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let u=n[3]&&Ml(n);return{c(){e=g("p"),s=R("Advanced Settings "),W(t.$$.fragment),l=T(),u&&u.c(),o=Y(),this.h()},l(c){e=$(c,"P",{class:!0});var m=b(e);s=S(m,"Advanced Settings "),N(t.$$.fragment,m),m.forEach(i),l=M(c),u&&u.l(c),o=Y(),this.h()},h(){v(e,"class","settings svelte-7frpd7")},m(c,m){p(c,e,m),_(e,s),U(t,e,null),p(c,l,m),u&&u.m(c,m),p(c,o,m),r=!0,a||(f=Fe(e,"click",n[4]),a=!0)},p(c,[m]){const d={};m&8&&(d.name=c[3]?"chevron-up":"chevron-down"),t.$set(d),c[3]?u?u.p(c,m):(u=Ml(c),u.c(),u.m(o.parentNode,o)):u&&(u.d(1),u=null)},i(c){r||(E(t.$$.fragment,c),r=!0)},o(c){P(t.$$.fragment,c),r=!1},d(c){c&&i(e),L(t),c&&i(l),u&&u.d(c),c&&i(o),a=!1,f()}}}function Ms(n,e,s){let{spec:t}=e,{state:l}=e,{policies:o}=e,r=!1;const a=()=>s(3,r=!r);return n.$$set=f=>{"spec"in f&&s(0,t=f.spec),"state"in f&&s(1,l=f.state),"policies"in f&&s(2,o=f.policies)},[t,l,o,r,a]}class Vs extends ne{constructor(e){super(),re(this,e,Ms,Ts,ae,{spec:0,state:1,policies:2})}}function As(n){let e,s,t,l,o;return{c(){e=g("p"),s=R("Error Message"),t=T(),l=g("p"),o=R(n[0]),this.h()},l(r){e=$(r,"P",{class:!0});var a=b(e);s=S(a,"Error Message"),a.forEach(i),t=M(r),l=$(r,"P",{class:!0});var f=b(l);o=S(f,n[0]),f.forEach(i),this.h()},h(){v(e,"class","error-text svelte-1lke5yx"),v(l,"class","error-text svelte-1lke5yx")},m(r,a){p(r,e,a),_(e,s),p(r,t,a),p(r,l,a),_(l,o)},p(r,a){a&1&&K(o,r[0])},d(r){r&&i(e),r&&i(t),r&&i(l)}}}function Cs(n){let e,s;return e=new rt({props:{error:!0,$$slots:{default:[As]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&3&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Ws(n,e,s){let{error:t=""}=e;return n.$$set=l=>{"error"in l&&s(0,t=l.error)},[t]}class Ns extends ne{constructor(e){super(),re(this,e,Ws,Cs,ae,{error:0})}}function Us(n){let e,s,t,l,o,r;return o=new rs({props:{calendar:n[0],interval:n[1]}}),{c(){e=g("h2"),s=R("Frequency"),t=T(),l=g("div"),W(o.$$.fragment),this.h()},l(a){e=$(a,"H2",{class:!0});var f=b(e);s=S(f,"Frequency"),f.forEach(i),t=M(a),l=$(a,"DIV",{class:!0});var u=b(l);N(o.$$.fragment,u),u.forEach(i),this.h()},h(){v(e,"class","mb-4 text-2xl"),v(l,"class","pr-2")},m(a,f){p(a,e,f),_(e,s),p(a,t,f),p(a,l,f),U(o,l,null),r=!0},p(a,f){const u={};f&1&&(u.calendar=a[0]),f&2&&(u.interval=a[1]),o.$set(u)},i(a){r||(E(o.$$.fragment,a),r=!0)},o(a){P(o.$$.fragment,a),r=!1},d(a){a&&i(e),a&&i(t),a&&i(l),L(o)}}}function Ls(n){let e,s;return e=new rt({props:{$$slots:{default:[Us]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&7&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function qs(n,e,s){let{calendar:t}=e,{interval:l}=e;return n.$$set=o=>{"calendar"in o&&s(0,t=o.calendar),"interval"in o&&s(1,l=o.interval)},[t,l]}class Fs extends ne{constructor(e){super(),re(this,e,qs,Ls,ae,{calendar:0,interval:1})}}function Bs(n){let e,s,t;const l=n[2].default,o=Xe(l,n,n[1],null);return{c(){e=g("div"),o&&o.c(),this.h()},l(r){e=$(r,"DIV",{class:!0});var a=b(e);o&&o.l(a),a.forEach(i),this.h()},h(){v(e,"class",s="relative inline-block "+n[0].class)},m(r,a){p(r,e,a),o&&o.m(e,null),t=!0},p(r,[a]){o&&o.p&&(!t||a&2)&&xe(o,l,r,r[1],t?tt(l,r[1],a,null):et(r[1]),null),(!t||a&1&&s!==(s="relative inline-block "+r[0].class))&&v(e,"class",s)},i(r){t||(E(o,r),t=!0)},o(r){P(o,r),t=!1},d(r){r&&i(e),o&&o.d(r)}}}function js(n,e,s){let{$$slots:t={},$$scope:l}=e;return n.$$set=o=>{s(0,e=Ie(Ie({},e),Re(o))),"$$scope"in o&&s(1,l=o.$$scope)},e=Re(e),[e,l,t]}class Hs extends ne{constructor(e){super(),re(this,e,js,Bs,ae,{})}}const ys=n=>{const e=()=>{n.dispatchEvent(new CustomEvent("toggle-menu"))},s=l=>{var r;let o=(r=l.path)!=null&&r.length?l.path[0]:l.target;!o&&l.relatedTarget&&(o=l.relatedTarget),n&&!n.contains(o)&&(n.dispatchEvent(new CustomEvent("close-menu")),l.stopPropagation())},t=l=>{(l==null?void 0:l.key)==="Escape"&&n.dispatchEvent(new CustomEvent("close-menu"))};return n.setAttribute("tabindex","0"),n.addEventListener("click",e,!1),document.addEventListener("click",s,!1),document.addEventListener("keyup",t,!1),{destroy(){n.removeEventListener("click",e,!1),document.removeEventListener("click",s,!1),document.removeEventListener("keyup",t,!1)}}};function zs(n){let e,s,t,l,o,r;const a=n[8].default,f=Xe(a,n,n[7],null);return{c(){e=g("button"),f&&f.c(),this.h()},l(u){e=$(u,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-controls":!0,"aria-expanded":!0,class:!0});var c=b(e);f&&f.l(c),c.forEach(i),this.h()},h(){v(e,"type","button"),v(e,"aria-haspopup",s=!n[3]),v(e,"aria-controls",n[1]),v(e,"aria-expanded",n[0]),v(e,"class",t=gl(n[6].class)+" svelte-jjrza"),e.disabled=n[3],pe(e,"dark",n[2]),pe(e,"show",n[0])},m(u,c){p(u,e,c),f&&f.m(e,null),l=!0,o||(r=[Ol(ys.call(null,e)),Fe(e,"close-menu",n[4]),Fe(e,"toggle-menu",n[5]),Fe(e,"click",Gl(n[9]))],o=!0)},p(u,[c]){f&&f.p&&(!l||c&128)&&xe(f,a,u,u[7],l?tt(a,u[7],c,null):et(u[7]),null),(!l||c&8&&s!==(s=!u[3]))&&v(e,"aria-haspopup",s),(!l||c&2)&&v(e,"aria-controls",u[1]),(!l||c&1)&&v(e,"aria-expanded",u[0]),(!l||c&64&&t!==(t=gl(u[6].class)+" svelte-jjrza"))&&v(e,"class",t),(!l||c&8)&&(e.disabled=u[3]),c&68&&pe(e,"dark",u[2]),c&65&&pe(e,"show",u[0])},i(u){l||(E(f,u),l=!0)},o(u){P(f,u),l=!1},d(u){u&&i(e),f&&f.d(u),o=!1,Jl(r)}}}function Os(n,e,s){let{$$slots:t={},$$scope:l}=e,{show:o}=e,{controls:r}=e,{dark:a=!1}=e,{disabled:f=!1}=e;const u=()=>{!f&&s(0,o=!1)},c=()=>{!f&&s(0,o=!o)};function m(d){Ll.call(this,n,d)}return n.$$set=d=>{s(6,e=Ie(Ie({},e),Re(d))),"show"in d&&s(0,o=d.show),"controls"in d&&s(1,r=d.controls),"dark"in d&&s(2,a=d.dark),"disabled"in d&&s(3,f=d.disabled),"$$scope"in d&&s(7,l=d.$$scope)},e=Re(e),[o,r,a,f,u,c,e,l,t,m]}class Gs extends ne{constructor(e){super(),re(this,e,Os,zs,ae,{show:0,controls:1,dark:2,disabled:3})}}function Js(n){let e;return{c(){e=R(n[0])},l(s){e=S(s,n[0])},m(s,t){p(s,e,t)},p(s,t){t&1&&K(e,s[0])},d(s){s&&i(e)}}}function Ks(n){let e,s;return e=new ft({props:{name:"chevron-down"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:q,i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Ys(n){let e;const s=n[7].default,t=Xe(s,n,n[10],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&1024)&&xe(t,s,l,l[10],e?tt(s,l[10],o,null):et(l[10]),null)},i(l){e||(E(t,l),e=!0)},o(l){P(t,l),e=!1},d(l){t&&t.d(l)}}}function Zs(n){let e,s,t,l,o,r,a,f;s=new os({props:{href:n[4],variant:"primary",disabled:n[2],class:"segment left",$$slots:{default:[Js]},$$scope:{ctx:n}}}),s.$on("click",n[8]);function u(m){n[9](m)}let c={dark:!0,class:"segment right",controls:n[1],disabled:n[2],$$slots:{default:[Ks]},$$scope:{ctx:n}};return n[5]!==void 0&&(c.show=n[5]),l=new Gs({props:c}),Kl.push(()=>Yl(l,"show",u)),a=new cs({props:{class:"min-w-max",id:n[1],show:n[5],position:n[3],$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=g("div"),W(s.$$.fragment),t=T(),W(l.$$.fragment),r=T(),W(a.$$.fragment),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=b(e);N(s.$$.fragment,d),t=M(d),N(l.$$.fragment,d),d.forEach(i),r=M(m),N(a.$$.fragment,m),this.h()},h(){v(e,"class","split-button svelte-sgeaqx"),pe(e,"disabled",n[2])},m(m,d){p(m,e,d),U(s,e,null),_(e,t),U(l,e,null),p(m,r,d),U(a,m,d),f=!0},p(m,d){const h={};d&16&&(h.href=m[4]),d&4&&(h.disabled=m[2]),d&1025&&(h.$$scope={dirty:d,ctx:m}),s.$set(h);const k={};d&2&&(k.controls=m[1]),d&4&&(k.disabled=m[2]),d&1024&&(k.$$scope={dirty:d,ctx:m}),!o&&d&32&&(o=!0,k.show=m[5],Zl(()=>o=!1)),l.$set(k),d&4&&pe(e,"disabled",m[2]);const A={};d&2&&(A.id=m[1]),d&32&&(A.show=m[5]),d&8&&(A.position=m[3]),d&1024&&(A.$$scope={dirty:d,ctx:m}),a.$set(A)},i(m){f||(E(s.$$.fragment,m),E(l.$$.fragment,m),E(a.$$.fragment,m),f=!0)},o(m){P(s.$$.fragment,m),P(l.$$.fragment,m),P(a.$$.fragment,m),f=!1},d(m){m&&i(e),L(s),L(l),m&&i(r),L(a,m)}}}function Qs(n){let e,s;return e=new Hs({props:{class:n[6].class,$$slots:{default:[Zs]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&64&&(o.class=t[6].class),l&1087&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Xs(n,e,s){let{$$slots:t={},$$scope:l}=e,{label:o}=e,{id:r}=e,{disabled:a=!1}=e,{position:f="left"}=e,{href:u=""}=e,c=!1;function m(h){Ll.call(this,n,h)}function d(h){c=h,s(5,c)}return n.$$set=h=>{s(6,e=Ie(Ie({},e),Re(h))),"label"in h&&s(0,o=h.label),"id"in h&&s(1,r=h.id),"disabled"in h&&s(2,a=h.disabled),"position"in h&&s(3,f=h.position),"href"in h&&s(4,u=h.href),"$$scope"in h&&s(10,l=h.$$scope)},e=Re(e),[o,r,a,f,u,c,e,t,m,d,l]}class xs extends ne{constructor(e){super(),re(this,e,Xs,Qs,ae,{label:0,id:1,disabled:2,position:3,href:4})}}function Vl(n,e,s){const t=n.slice();return t[20]=e[s],t}function en(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function tn(n){let e,s,t,l;const o=[sn,ln],r=[];function a(f,u){return f[4]?0:1}return e=a(n),s=r[e]=o[e](n),{c(){s.c(),t=Y()},l(f){s.l(f),t=Y()},m(f,u){r[e].m(f,u),p(f,t,u),l=!0},p(f,u){let c=e;e=a(f),e===c?r[e].p(f,u):(Ze(),P(r[c],1,1,()=>{r[c]=null}),Qe(),s=r[e],s?s.p(f,u):(s=r[e]=o[e](f),s.c()),E(s,1),s.m(t.parentNode,t))},i(f){l||(E(s),l=!0)},o(f){P(s),l=!1},d(f){r[e].d(f),f&&i(t)}}}function ln(n){var Be,je,He,it,ct,mt,dt,ht,_t,pt,vt,gt,$t,bt,kt,wt,Et,It,Rt,St,Pt,Dt,Tt,Mt,Vt,At,Ct,Wt,Nt,Ut,Lt,qt,Ft,Bt,jt,Ht;let e,s,t,l,o,r,a,f,u,c,m,d,h,k,A,B,H,z=((ct=(it=(He=(je=(Be=n[19])==null?void 0:Be.schedule)==null?void 0:je.action)==null?void 0:He.startWorkflow)==null?void 0:it.workflowType)==null?void 0:ct.name)+"",ee,y,V,C,Q,O=Se((dt=(mt=n[19])==null?void 0:mt.info)==null?void 0:dt.createTime,n[6])+"",ve,oe,Pe,X,ge,G,De,$e,fe,Ne,ue,be,ie,Ue,ke,ce,Le,we,w,F,te,x,me,Z,de,le,Ee;l=new ft({props:{name:"chevron-left",class:"inline"}}),u=new Fl({props:{status:(ht=n[19])!=null&&ht.schedule.state.paused?"Paused":"Running"}});let J=((pt=(_t=n[19])==null?void 0:_t.info)==null?void 0:pt.updateTime)&&Al(n);X=new xs({props:{position:"right",label:($t=(gt=(vt=n[19])==null?void 0:vt.schedule)==null?void 0:gt.state)!=null&&$t.paused?"Unpause":"Pause",id:"pause-schedule-button",$$slots:{default:[nn]},$$scope:{ctx:n}}}),X.$on("click",n[12]);let j=((kt=(bt=n[19])==null?void 0:bt.info)==null?void 0:kt.invalidScheduleError)&&Wl(n);fe=new Fs({props:{calendar:(Rt=(It=(Et=(wt=n[19])==null?void 0:wt.schedule)==null?void 0:Et.spec)==null?void 0:It.calendar)==null?void 0:Rt[0],interval:(Tt=(Dt=(Pt=(St=n[19])==null?void 0:St.schedule)==null?void 0:Pt.spec)==null?void 0:Dt.interval)==null?void 0:Tt[0]}}),ie=new Is({props:{namespace:n[7],recentRuns:(Vt=(Mt=n[19])==null?void 0:Mt.info)==null?void 0:Vt.recentActions}}),ce=new Ds({props:{futureRuns:(Ct=(At=n[19])==null?void 0:At.info)==null?void 0:Ct.futureActionTimes}}),w=new Vs({props:{spec:(Nt=(Wt=n[19])==null?void 0:Wt.schedule)==null?void 0:Nt.spec,state:(Lt=(Ut=n[19])==null?void 0:Ut.schedule)==null?void 0:Lt.state,policies:(Ft=(qt=n[19])==null?void 0:qt.schedule)==null?void 0:Ft.policies}}),x=new hs({props:{notes:(Ht=(jt=(Bt=n[19])==null?void 0:Bt.schedule)==null?void 0:jt.state)==null?void 0:Ht.notes}});function lt(){return n[15](n[19])}return Z=new El({props:{open:n[1],confirmType:"primary",confirmText:n[19].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[an],title:[rn]},$$scope:{ctx:n}}}),Z.$on("cancelModal",n[14]),Z.$on("confirmModal",lt),le=new El({props:{open:n[2],confirmType:"destructive",confirmText:"Delete",$$slots:{content:[fn],title:[on]},$$scope:{ctx:n}}}),le.$on("cancelModal",n[16]),le.$on("confirmModal",n[17]),{c(){e=g("header"),s=g("main"),t=g("a"),W(l.$$.fragment),o=R("Back to Schedules"),r=T(),a=g("div"),f=g("h1"),W(u.$$.fragment),c=T(),m=g("span"),d=R(n[8]),h=T(),k=g("div"),A=g("p"),B=R(n[7]),H=T(),ee=R(z),y=T(),V=g("div"),C=g("p"),Q=R("Created: "),ve=R(O),oe=T(),J&&J.c(),Pe=T(),W(X.$$.fragment),ge=T(),G=g("div"),j&&j.c(),De=T(),$e=g("div"),W(fe.$$.fragment),Ne=T(),ue=g("div"),be=g("div"),W(ie.$$.fragment),Ue=T(),ke=g("div"),W(ce.$$.fragment),Le=T(),we=g("div"),W(w.$$.fragment),F=T(),te=g("div"),W(x.$$.fragment),me=T(),W(Z.$$.fragment),de=T(),W(le.$$.fragment),this.h()},l(I){e=$(I,"HEADER",{class:!0});var D=b(e);s=$(D,"MAIN",{class:!0});var he=b(s);t=$(he,"A",{href:!0,class:!0,style:!0});var Te=b(t);N(l.$$.fragment,Te),o=S(Te,"Back to Schedules"),Te.forEach(i),r=M(he),a=$(he,"DIV",{class:!0});var qe=b(a);f=$(qe,"H1",{class:!0});var Me=b(f);N(u.$$.fragment,Me),c=M(Me),m=$(Me,"SPAN",{class:!0});var ye=b(m);d=S(ye,n[8]),ye.forEach(i),Me.forEach(i),qe.forEach(i),h=M(he),k=$(he,"DIV",{class:!0});var Ve=b(k);A=$(Ve,"P",{});var Ae=b(A);B=S(Ae,n[7]),H=M(Ae),ee=S(Ae,z),Ae.forEach(i),Ve.forEach(i),y=M(he),V=$(he,"DIV",{class:!0});var _e=b(V);C=$(_e,"P",{});var Ce=b(C);Q=S(Ce,"Created: "),ve=S(Ce,O),Ce.forEach(i),oe=M(_e),J&&J.l(_e),_e.forEach(i),he.forEach(i),Pe=M(D),N(X.$$.fragment,D),D.forEach(i),ge=M(I),G=$(I,"DIV",{class:!0});var se=b(G);j&&j.l(se),De=M(se),$e=$(se,"DIV",{class:!0});var ze=b($e);N(fe.$$.fragment,ze),ze.forEach(i),Ne=M(se),ue=$(se,"DIV",{class:!0});var We=b(ue);be=$(We,"DIV",{class:!0});var Oe=b(be);N(ie.$$.fragment,Oe),Oe.forEach(i),Ue=M(We),ke=$(We,"DIV",{class:!0});var Ge=b(ke);N(ce.$$.fragment,Ge),Ge.forEach(i),We.forEach(i),Le=M(se),we=$(se,"DIV",{class:!0});var Je=b(we);N(w.$$.fragment,Je),Je.forEach(i),F=M(se),te=$(se,"DIV",{class:!0});var Ke=b(te);N(x.$$.fragment,Ke),Ke.forEach(i),se.forEach(i),me=M(I),N(Z.$$.fragment,I),de=M(I),N(le.$$.fragment,I),this.h()},h(){v(t,"href",ql({namespace:n[7]})),v(t,"class","absolute top-0 back-to-schedules svelte-1pupefa"),Ql(t,"left","-.5rem"),v(m,"class","font-medium select-all"),v(f,"class","text-2xl flex relative items-center gap-4"),v(a,"class","flex justify-between items-center mt-8"),v(k,"class","flex items-center text-sm"),v(V,"class","flex items-center gap-2 text-sm"),v(s,"class","flex flex-col gap-1 relative"),v(e,"class","flex flex-row justify-between gap-4 mb-8"),v($e,"class","w-full xl:w-1/2"),v(be,"class","w-full xl:w-3/4"),v(ke,"class","w-full xl:w-1/4"),v(ue,"class","flex flex-col xl:flex-row gap-4"),v(we,"class","w-full xl:w-1/2"),v(te,"class","w-full xl:w-1/2"),v(G,"class","flex flex-col gap-4 pb-24")},m(I,D){p(I,e,D),_(e,s),_(s,t),U(l,t,null),_(t,o),_(s,r),_(s,a),_(a,f),U(u,f,null),_(f,c),_(f,m),_(m,d),_(s,h),_(s,k),_(k,A),_(A,B),_(A,H),_(A,ee),_(s,y),_(s,V),_(V,C),_(C,Q),_(C,ve),_(V,oe),J&&J.m(V,null),_(e,Pe),U(X,e,null),p(I,ge,D),p(I,G,D),j&&j.m(G,null),_(G,De),_(G,$e),U(fe,$e,null),_(G,Ne),_(G,ue),_(ue,be),U(ie,be,null),_(ue,Ue),_(ue,ke),U(ce,ke,null),_(G,Le),_(G,we),U(w,we,null),_(G,F),_(G,te),U(x,te,null),p(I,me,D),U(Z,I,D),p(I,de,D),U(le,I,D),Ee=!0},p(I,D){var se,ze,We,Oe,Ge,Je,Ke,yt,zt,Ot,Gt,Jt,Kt,Yt,Zt,Qt,Xt,xt,el,tl,ll,sl,nl,rl,al,ol,fl,ul,il,cl,ml,dl,hl,_l,pl,vl;n=I;const he={};D&1&&(he.status=(se=n[19])!=null&&se.schedule.state.paused?"Paused":"Running"),u.$set(he),(!Ee||D&1)&&z!==(z=((Je=(Ge=(Oe=(We=(ze=n[19])==null?void 0:ze.schedule)==null?void 0:We.action)==null?void 0:Oe.startWorkflow)==null?void 0:Ge.workflowType)==null?void 0:Je.name)+"")&&K(ee,z),(!Ee||D&65)&&O!==(O=Se((yt=(Ke=n[19])==null?void 0:Ke.info)==null?void 0:yt.createTime,n[6])+"")&&K(ve,O),(Ot=(zt=n[19])==null?void 0:zt.info)!=null&&Ot.updateTime?J?J.p(n,D):(J=Al(n),J.c(),J.m(V,null)):J&&(J.d(1),J=null);const Te={};D&1&&(Te.label=(Kt=(Jt=(Gt=n[19])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?"Unpause":"Pause"),D&8388608&&(Te.$$scope={dirty:D,ctx:n}),X.$set(Te),(Zt=(Yt=n[19])==null?void 0:Yt.info)!=null&&Zt.invalidScheduleError?j?(j.p(n,D),D&1&&E(j,1)):(j=Wl(n),j.c(),E(j,1),j.m(G,De)):j&&(Ze(),P(j,1,1,()=>{j=null}),Qe());const qe={};D&1&&(qe.calendar=(el=(xt=(Xt=(Qt=n[19])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:xt.calendar)==null?void 0:el[0]),D&1&&(qe.interval=(nl=(sl=(ll=(tl=n[19])==null?void 0:tl.schedule)==null?void 0:ll.spec)==null?void 0:sl.interval)==null?void 0:nl[0]),fe.$set(qe);const Me={};D&1&&(Me.recentRuns=(al=(rl=n[19])==null?void 0:rl.info)==null?void 0:al.recentActions),ie.$set(Me);const ye={};D&1&&(ye.futureRuns=(fl=(ol=n[19])==null?void 0:ol.info)==null?void 0:fl.futureActionTimes),ce.$set(ye);const Ve={};D&1&&(Ve.spec=(il=(ul=n[19])==null?void 0:ul.schedule)==null?void 0:il.spec),D&1&&(Ve.state=(ml=(cl=n[19])==null?void 0:cl.schedule)==null?void 0:ml.state),D&1&&(Ve.policies=(hl=(dl=n[19])==null?void 0:dl.schedule)==null?void 0:hl.policies),w.$set(Ve);const Ae={};D&1&&(Ae.notes=(vl=(pl=(_l=n[19])==null?void 0:_l.schedule)==null?void 0:pl.state)==null?void 0:vl.notes),x.$set(Ae);const _e={};D&2&&(_e.open=n[1]),D&1&&(_e.confirmText=n[19].schedule.state.paused?"Unpause":"Pause"),D&8&&(_e.confirmDisabled=!n[3]),D&8388617&&(_e.$$scope={dirty:D,ctx:n}),Z.$set(_e);const Ce={};D&4&&(Ce.open=n[2]),D&8388608&&(Ce.$$scope={dirty:D,ctx:n}),le.$set(Ce)},i(I){Ee||(E(l.$$.fragment,I),E(u.$$.fragment,I),E(X.$$.fragment,I),E(j),E(fe.$$.fragment,I),E(ie.$$.fragment,I),E(ce.$$.fragment,I),E(w.$$.fragment,I),E(x.$$.fragment,I),E(Z.$$.fragment,I),E(le.$$.fragment,I),Ee=!0)},o(I){P(l.$$.fragment,I),P(u.$$.fragment,I),P(X.$$.fragment,I),P(j),P(fe.$$.fragment,I),P(ie.$$.fragment,I),P(ce.$$.fragment,I),P(w.$$.fragment,I),P(x.$$.fragment,I),P(Z.$$.fragment,I),P(le.$$.fragment,I),Ee=!1},d(I){I&&i(e),L(l),L(u),J&&J.d(),L(X),I&&i(ge),I&&i(G),j&&j.d(),L(fe),L(ie),L(ce),L(w),L(x),I&&i(me),L(Z,I),I&&i(de),L(le,I)}}}function sn(n){let e,s;return e=new Bl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:q,i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Al(n){var f,u;let e,s,t,l,o,r=Se((u=(f=n[19])==null?void 0:f.info)==null?void 0:u.updateTime,n[6])+"",a;return{c(){e=g("p"),s=R("-"),t=T(),l=g("p"),o=R("Last updated: "),a=R(r)},l(c){e=$(c,"P",{});var m=b(e);s=S(m,"-"),m.forEach(i),t=M(c),l=$(c,"P",{});var d=b(l);o=S(d,"Last updated: "),a=S(d,r),d.forEach(i)},m(c,m){p(c,e,m),_(e,s),p(c,t,m),p(c,l,m),_(l,o),_(l,a)},p(c,m){var d,h;m&65&&r!==(r=Se((h=(d=c[19])==null?void 0:d.info)==null?void 0:h.updateTime,c[6])+"")&&K(a,r)},d(c){c&&i(e),c&&i(t),c&&i(l)}}}function Cl(n){let e,s=n[20].label+"",t,l,o,r;return{c(){e=g("div"),t=R(s),l=T(),this.h()},l(a){e=$(a,"DIV",{class:!0});var f=b(e);t=S(f,s),l=M(f),f.forEach(i),this.h()},h(){var a;v(e,"class","cursor-pointer flex gap-2 p-4 items-center "+((a=n[20])==null?void 0:a.class)+" svelte-1pupefa")},m(a,f){p(a,e,f),_(e,t),_(e,l),o||(r=Fe(e,"click",n[20].onClick),o=!0)},p(a,f){n=a},d(a){a&&i(e),o=!1,r()}}}function nn(n){let e,s=n[11],t=[];for(let l=0;l{t=Hl(e,as,{duration:100}),t.start()}),l=!0)},o(a){P(r,a),l=!1},d(a){a&&i(e),r&&r.d(a)}}}function us(n){let e,s,t=n[1]&&Il(n);return{c(){t&&t.c(),e=Y()},l(l){t&&t.l(l),e=Y()},m(l,o){t&&t.m(l,o),p(l,e,o),s=!0},p(l,[o]){l[1]?t?(t.p(l,o),o&2&&E(t,1)):(t=Il(l),t.c(),E(t,1),t.m(e.parentNode,e)):t&&(Ze(),P(t,1,1,()=>{t=null}),Qe())},i(l){s||(E(t),s=!0)},o(l){P(t),s=!1},d(l){t&&t.d(l),l&&i(e)}}}function is(n,e,s){let{$$slots:t={},$$scope:l}=e,{id:o}=e,{show:r=!1}=e,{dark:a=!1}=e,{position:f="left"}=e,u;return n.$$set=c=>{s(5,e=Ie(Ie({},e),Re(c))),"id"in c&&s(0,o=c.id),"show"in c&&s(1,r=c.show),"dark"in c&&s(2,a=c.dark),"position"in c&&s(3,f=c.position),"$$scope"in c&&s(6,l=c.$$scope)},e=Re(e),[o,r,a,f,u,e,l,t]}class cs extends ne{constructor(e){super(),re(this,e,is,us,ae,{id:0,show:1,dark:2,position:3})}}function ms(n){let e,s,t,l,o;return{c(){e=g("h2"),s=R("Memo"),t=T(),l=g("p"),o=R(n[0]),this.h()},l(r){e=$(r,"H2",{class:!0});var a=b(e);s=S(a,"Memo"),a.forEach(i),t=M(r),l=$(r,"P",{});var f=b(l);o=S(f,n[0]),f.forEach(i),this.h()},h(){v(e,"class","mb-4 text-2xl")},m(r,a){p(r,e,a),_(e,s),p(r,t,a),p(r,l,a),_(l,o)},p(r,[a]){a&1&&K(o,r[0])},i:q,o:q,d(r){r&&i(e),r&&i(t),r&&i(l)}}}function ds(n,e,s){let{notes:t=""}=e;return n.$$set=l=>{"notes"in l&&s(0,t=l.notes)},[t]}class hs extends ne{constructor(e){super(),re(this,e,ds,ms,ae,{notes:0})}}function _s(n){let e,s;const t=n[2].default,l=Xe(t,n,n[1],null);return{c(){e=g("div"),l&&l.c(),this.h()},l(o){e=$(o,"DIV",{class:!0});var r=b(e);l&&l.l(r),r.forEach(i),this.h()},h(){v(e,"class","panel svelte-iclf07"),pe(e,"error",n[0])},m(o,r){p(o,e,r),l&&l.m(e,null),s=!0},p(o,[r]){l&&l.p&&(!s||r&2)&&xe(l,t,o,o[1],s?tt(t,o[1],r,null):et(o[1]),null),r&1&&pe(e,"error",o[0])},i(o){s||(E(l,o),s=!0)},o(o){P(l,o),s=!1},d(o){o&&i(e),l&&l.d(o)}}}function ps(n,e,s){let{$$slots:t={},$$scope:l}=e,{error:o=!1}=e;return n.$$set=r=>{"error"in r&&s(0,o=r.error),"$$scope"in r&&s(1,l=r.$$scope)},[o,l,t]}class rt extends ne{constructor(e){super(),re(this,e,ps,_s,ae,{error:0})}}function Rl(n,e,s){const t=n.slice();return t[3]=e[s],t}function vs(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function gs(n){let e,s,t,l,o,r,a,f,u,c=Se(n[3].actualTime,n[2])+"",m,d;return t=new Fl({props:{status:n[6].status}}),r=new ns({props:{"sveltekit:prefetch":!0,href:bl({workflow:n[3].startWorkflowResult.workflowId,run:n[3].startWorkflowResult.runId,namespace:n[1]}),$$slots:{default:[$s]},$$scope:{ctx:n}}}),{c(){e=g("div"),s=g("div"),W(t.$$.fragment),l=T(),o=g("div"),W(r.$$.fragment),a=T(),f=g("div"),u=g("p"),m=R(c),this.h()},l(h){e=$(h,"DIV",{class:!0});var k=b(e);s=$(k,"DIV",{class:!0});var A=b(s);N(t.$$.fragment,A),A.forEach(i),l=M(k),o=$(k,"DIV",{class:!0});var B=b(o);N(r.$$.fragment,B),B.forEach(i),a=M(k),f=$(k,"DIV",{class:!0});var H=b(f);u=$(H,"P",{});var z=b(u);m=S(z,c),z.forEach(i),H.forEach(i),k.forEach(i),this.h()},h(){v(s,"class","w-28"),v(o,"class","w-96"),v(f,"class","ml-auto"),v(e,"class","row svelte-1mikfkz")},m(h,k){p(h,e,k),_(e,s),U(t,s,null),_(e,l),_(e,o),U(r,o,null),_(e,a),_(e,f),_(f,u),_(u,m),d=!0},p(h,k){const A={};k&3&&(A.status=h[6].status),t.$set(A);const B={};k&3&&(B.href=bl({workflow:h[3].startWorkflowResult.workflowId,run:h[3].startWorkflowResult.runId,namespace:h[1]})),k&129&&(B.$$scope={dirty:k,ctx:h}),r.$set(B),(!d||k&5)&&c!==(c=Se(h[3].actualTime,h[2])+"")&&K(m,c)},i(h){d||(E(t.$$.fragment,h),E(r.$$.fragment,h),d=!0)},o(h){P(t.$$.fragment,h),P(r.$$.fragment,h),d=!1},d(h){h&&i(e),L(t),L(r)}}}function $s(n){let e=n[3].startWorkflowResult.workflowId+"",s;return{c(){s=R(e)},l(t){s=S(t,e)},m(t,l){p(t,s,l)},p(t,l){l&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&K(s,e)},d(t){t&&i(s)}}}function bs(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function Sl(n,e){let s,t,l,o,r={ctx:e,current:null,token:null,hasCatch:!1,pending:bs,then:gs,catch:vs,value:6,blocks:[,,,]};return nt(l=wl({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),r),{key:n,first:null,c(){s=Y(),t=Y(),r.block.c(),this.h()},l(a){s=Y(),t=Y(),r.block.l(a),this.h()},h(){this.first=s},m(a,f){p(a,s,f),p(a,t,f),r.block.m(a,r.anchor=f),r.mount=()=>t.parentNode,r.anchor=t,o=!0},p(a,f){e=a,r.ctx=e,f&3&&l!==(l=wl({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&nt(l,r)||Nl(r,e,f)},i(a){o||(E(r.block),o=!0)},o(a){for(let f=0;f<3;f+=1){const u=r.blocks[f];P(u)}o=!1},d(a){a&&i(s),a&&i(t),r.block.d(a),r.token=null,r=null}}}function Pl(n){let e,s;return e=new ss({props:{title:"No Recent Runs"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function ks(n){let e,s,t,l=[],o=new Map,r,a,f,u=n[0].slice(0,5);const c=d=>d[3].startWorkflowResult.workflowId;for(let d=0;d{m=null}),Qe()):m?h&1&&E(m,1):(m=Pl(),m.c(),E(m,1),m.m(a.parentNode,a))},i(d){if(!f){for(let h=0;hs(2,t=r));let{recentRuns:l=[]}=e,{namespace:o}=e;return n.$$set=r=>{"recentRuns"in r&&s(0,l=r.recentRuns),"namespace"in r&&s(1,o=r.namespace)},[l,o,t]}class Is extends ne{constructor(e){super(),re(this,e,Es,ws,ae,{recentRuns:0,namespace:1})}}function Dl(n,e,s){const t=n.slice();return t[2]=e[s],t}function Tl(n){let e,s,t=Se(n[2],n[1],"from now")+"",l,o;return{c(){e=g("div"),s=g("p"),l=R(t),o=T(),this.h()},l(r){e=$(r,"DIV",{class:!0});var a=b(e);s=$(a,"P",{});var f=b(s);l=S(f,t),f.forEach(i),o=M(a),a.forEach(i),this.h()},h(){v(e,"class","row svelte-kbuuws")},m(r,a){p(r,e,a),_(e,s),_(s,l),_(e,o)},p(r,a){a&3&&t!==(t=Se(r[2],r[1],"from now")+"")&&K(l,t)},d(r){r&&i(e)}}}function Rs(n){let e,s,t,l,o=n[0].slice(0,5),r=[];for(let a=0;as(1,t=o));let{futureRuns:l=[]}=e;return n.$$set=o=>{"futureRuns"in o&&s(0,l=o.futureRuns)},[l,t]}class Ds extends ne{constructor(e){super(),re(this,e,Ps,Ss,ae,{futureRuns:0})}}function Ml(n){var G,De,$e,fe,Ne,ue,be,ie,Ue,ke,ce,Le,we;let e,s,t=((De=(G=n[0])==null?void 0:G.startTime)!=null?De:"")+"",l,o,r,a,f=((fe=($e=n[0])==null?void 0:$e.endTime)!=null?fe:"")+"",u,c,m,d,h=((ue=(Ne=n[0])==null?void 0:Ne.jitter)!=null?ue:"")+"",k,A,B,H,z=((Ue=(ie=(be=n[0])==null?void 0:be.excludeCalendar)==null?void 0:ie[0])!=null?Ue:"")+"",ee,y,V,C,Q=((ce=(ke=n[1])==null?void 0:ke.remainingActions)!=null?ce:"")+"",O,ve,oe,Pe,X=((we=(Le=n[2])==null?void 0:Le.overlapPolicy)!=null?we:"")+"",ge;return{c(){e=g("p"),s=R("Schedule Start Time: "),l=R(t),o=T(),r=g("p"),a=R("Schedule End Time: "),u=R(f),c=T(),m=g("p"),d=R("Jitter: "),k=R(h),A=T(),B=g("p"),H=R("Exclusion Calendar: "),ee=R(z),y=T(),V=g("p"),C=R("Remaining Actions: "),O=R(Q),ve=T(),oe=g("p"),Pe=R("Overlap Policy: "),ge=R(X)},l(w){e=$(w,"P",{});var F=b(e);s=S(F,"Schedule Start Time: "),l=S(F,t),F.forEach(i),o=M(w),r=$(w,"P",{});var te=b(r);a=S(te,"Schedule End Time: "),u=S(te,f),te.forEach(i),c=M(w),m=$(w,"P",{});var x=b(m);d=S(x,"Jitter: "),k=S(x,h),x.forEach(i),A=M(w),B=$(w,"P",{});var me=b(B);H=S(me,"Exclusion Calendar: "),ee=S(me,z),me.forEach(i),y=M(w),V=$(w,"P",{});var Z=b(V);C=S(Z,"Remaining Actions: "),O=S(Z,Q),Z.forEach(i),ve=M(w),oe=$(w,"P",{});var de=b(oe);Pe=S(de,"Overlap Policy: "),ge=S(de,X),de.forEach(i)},m(w,F){p(w,e,F),_(e,s),_(e,l),p(w,o,F),p(w,r,F),_(r,a),_(r,u),p(w,c,F),p(w,m,F),_(m,d),_(m,k),p(w,A,F),p(w,B,F),_(B,H),_(B,ee),p(w,y,F),p(w,V,F),_(V,C),_(V,O),p(w,ve,F),p(w,oe,F),_(oe,Pe),_(oe,ge)},p(w,F){var te,x,me,Z,de,le,Ee,J,j,lt,Be,je,He;F&1&&t!==(t=((x=(te=w[0])==null?void 0:te.startTime)!=null?x:"")+"")&&K(l,t),F&1&&f!==(f=((Z=(me=w[0])==null?void 0:me.endTime)!=null?Z:"")+"")&&K(u,f),F&1&&h!==(h=((le=(de=w[0])==null?void 0:de.jitter)!=null?le:"")+"")&&K(k,h),F&1&&z!==(z=((j=(J=(Ee=w[0])==null?void 0:Ee.excludeCalendar)==null?void 0:J[0])!=null?j:"")+"")&&K(ee,z),F&2&&Q!==(Q=((Be=(lt=w[1])==null?void 0:lt.remainingActions)!=null?Be:"")+"")&&K(O,Q),F&4&&X!==(X=((He=(je=w[2])==null?void 0:je.overlapPolicy)!=null?He:"")+"")&&K(ge,X)},d(w){w&&i(e),w&&i(o),w&&i(r),w&&i(c),w&&i(m),w&&i(A),w&&i(B),w&&i(y),w&&i(V),w&&i(ve),w&&i(oe)}}}function Ts(n){let e,s,t,l,o,r,a,f;t=new ft({props:{class:"inline",name:n[3]?"chevron-up":"chevron-down"}});let u=n[3]&&Ml(n);return{c(){e=g("p"),s=R("Advanced Settings "),W(t.$$.fragment),l=T(),u&&u.c(),o=Y(),this.h()},l(c){e=$(c,"P",{class:!0});var m=b(e);s=S(m,"Advanced Settings "),N(t.$$.fragment,m),m.forEach(i),l=M(c),u&&u.l(c),o=Y(),this.h()},h(){v(e,"class","settings svelte-7frpd7")},m(c,m){p(c,e,m),_(e,s),U(t,e,null),p(c,l,m),u&&u.m(c,m),p(c,o,m),r=!0,a||(f=Fe(e,"click",n[4]),a=!0)},p(c,[m]){const d={};m&8&&(d.name=c[3]?"chevron-up":"chevron-down"),t.$set(d),c[3]?u?u.p(c,m):(u=Ml(c),u.c(),u.m(o.parentNode,o)):u&&(u.d(1),u=null)},i(c){r||(E(t.$$.fragment,c),r=!0)},o(c){P(t.$$.fragment,c),r=!1},d(c){c&&i(e),L(t),c&&i(l),u&&u.d(c),c&&i(o),a=!1,f()}}}function Ms(n,e,s){let{spec:t}=e,{state:l}=e,{policies:o}=e,r=!1;const a=()=>s(3,r=!r);return n.$$set=f=>{"spec"in f&&s(0,t=f.spec),"state"in f&&s(1,l=f.state),"policies"in f&&s(2,o=f.policies)},[t,l,o,r,a]}class Vs extends ne{constructor(e){super(),re(this,e,Ms,Ts,ae,{spec:0,state:1,policies:2})}}function As(n){let e,s,t,l,o;return{c(){e=g("p"),s=R("Error Message"),t=T(),l=g("p"),o=R(n[0]),this.h()},l(r){e=$(r,"P",{class:!0});var a=b(e);s=S(a,"Error Message"),a.forEach(i),t=M(r),l=$(r,"P",{class:!0});var f=b(l);o=S(f,n[0]),f.forEach(i),this.h()},h(){v(e,"class","error-text svelte-1lke5yx"),v(l,"class","error-text svelte-1lke5yx")},m(r,a){p(r,e,a),_(e,s),p(r,t,a),p(r,l,a),_(l,o)},p(r,a){a&1&&K(o,r[0])},d(r){r&&i(e),r&&i(t),r&&i(l)}}}function Cs(n){let e,s;return e=new rt({props:{error:!0,$$slots:{default:[As]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&3&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Ws(n,e,s){let{error:t=""}=e;return n.$$set=l=>{"error"in l&&s(0,t=l.error)},[t]}class Ns extends ne{constructor(e){super(),re(this,e,Ws,Cs,ae,{error:0})}}function Us(n){let e,s,t,l,o,r;return o=new rs({props:{calendar:n[0],interval:n[1]}}),{c(){e=g("h2"),s=R("Frequency"),t=T(),l=g("div"),W(o.$$.fragment),this.h()},l(a){e=$(a,"H2",{class:!0});var f=b(e);s=S(f,"Frequency"),f.forEach(i),t=M(a),l=$(a,"DIV",{class:!0});var u=b(l);N(o.$$.fragment,u),u.forEach(i),this.h()},h(){v(e,"class","mb-4 text-2xl"),v(l,"class","pr-2")},m(a,f){p(a,e,f),_(e,s),p(a,t,f),p(a,l,f),U(o,l,null),r=!0},p(a,f){const u={};f&1&&(u.calendar=a[0]),f&2&&(u.interval=a[1]),o.$set(u)},i(a){r||(E(o.$$.fragment,a),r=!0)},o(a){P(o.$$.fragment,a),r=!1},d(a){a&&i(e),a&&i(t),a&&i(l),L(o)}}}function Ls(n){let e,s;return e=new rt({props:{$$slots:{default:[Us]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&7&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function qs(n,e,s){let{calendar:t}=e,{interval:l}=e;return n.$$set=o=>{"calendar"in o&&s(0,t=o.calendar),"interval"in o&&s(1,l=o.interval)},[t,l]}class Fs extends ne{constructor(e){super(),re(this,e,qs,Ls,ae,{calendar:0,interval:1})}}function Bs(n){let e,s,t;const l=n[2].default,o=Xe(l,n,n[1],null);return{c(){e=g("div"),o&&o.c(),this.h()},l(r){e=$(r,"DIV",{class:!0});var a=b(e);o&&o.l(a),a.forEach(i),this.h()},h(){v(e,"class",s="relative inline-block "+n[0].class)},m(r,a){p(r,e,a),o&&o.m(e,null),t=!0},p(r,[a]){o&&o.p&&(!t||a&2)&&xe(o,l,r,r[1],t?tt(l,r[1],a,null):et(r[1]),null),(!t||a&1&&s!==(s="relative inline-block "+r[0].class))&&v(e,"class",s)},i(r){t||(E(o,r),t=!0)},o(r){P(o,r),t=!1},d(r){r&&i(e),o&&o.d(r)}}}function js(n,e,s){let{$$slots:t={},$$scope:l}=e;return n.$$set=o=>{s(0,e=Ie(Ie({},e),Re(o))),"$$scope"in o&&s(1,l=o.$$scope)},e=Re(e),[e,l,t]}class Hs extends ne{constructor(e){super(),re(this,e,js,Bs,ae,{})}}const ys=n=>{const e=()=>{n.dispatchEvent(new CustomEvent("toggle-menu"))},s=l=>{var r;let o=(r=l.path)!=null&&r.length?l.path[0]:l.target;!o&&l.relatedTarget&&(o=l.relatedTarget),n&&!n.contains(o)&&(n.dispatchEvent(new CustomEvent("close-menu")),l.stopPropagation())},t=l=>{(l==null?void 0:l.key)==="Escape"&&n.dispatchEvent(new CustomEvent("close-menu"))};return n.setAttribute("tabindex","0"),n.addEventListener("click",e,!1),document.addEventListener("click",s,!1),document.addEventListener("keyup",t,!1),{destroy(){n.removeEventListener("click",e,!1),document.removeEventListener("click",s,!1),document.removeEventListener("keyup",t,!1)}}};function zs(n){let e,s,t,l,o,r;const a=n[8].default,f=Xe(a,n,n[7],null);return{c(){e=g("button"),f&&f.c(),this.h()},l(u){e=$(u,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-controls":!0,"aria-expanded":!0,class:!0});var c=b(e);f&&f.l(c),c.forEach(i),this.h()},h(){v(e,"type","button"),v(e,"aria-haspopup",s=!n[3]),v(e,"aria-controls",n[1]),v(e,"aria-expanded",n[0]),v(e,"class",t=gl(n[6].class)+" svelte-jjrza"),e.disabled=n[3],pe(e,"dark",n[2]),pe(e,"show",n[0])},m(u,c){p(u,e,c),f&&f.m(e,null),l=!0,o||(r=[Ol(ys.call(null,e)),Fe(e,"close-menu",n[4]),Fe(e,"toggle-menu",n[5]),Fe(e,"click",Gl(n[9]))],o=!0)},p(u,[c]){f&&f.p&&(!l||c&128)&&xe(f,a,u,u[7],l?tt(a,u[7],c,null):et(u[7]),null),(!l||c&8&&s!==(s=!u[3]))&&v(e,"aria-haspopup",s),(!l||c&2)&&v(e,"aria-controls",u[1]),(!l||c&1)&&v(e,"aria-expanded",u[0]),(!l||c&64&&t!==(t=gl(u[6].class)+" svelte-jjrza"))&&v(e,"class",t),(!l||c&8)&&(e.disabled=u[3]),c&68&&pe(e,"dark",u[2]),c&65&&pe(e,"show",u[0])},i(u){l||(E(f,u),l=!0)},o(u){P(f,u),l=!1},d(u){u&&i(e),f&&f.d(u),o=!1,Jl(r)}}}function Os(n,e,s){let{$$slots:t={},$$scope:l}=e,{show:o}=e,{controls:r}=e,{dark:a=!1}=e,{disabled:f=!1}=e;const u=()=>{!f&&s(0,o=!1)},c=()=>{!f&&s(0,o=!o)};function m(d){Ll.call(this,n,d)}return n.$$set=d=>{s(6,e=Ie(Ie({},e),Re(d))),"show"in d&&s(0,o=d.show),"controls"in d&&s(1,r=d.controls),"dark"in d&&s(2,a=d.dark),"disabled"in d&&s(3,f=d.disabled),"$$scope"in d&&s(7,l=d.$$scope)},e=Re(e),[o,r,a,f,u,c,e,l,t,m]}class Gs extends ne{constructor(e){super(),re(this,e,Os,zs,ae,{show:0,controls:1,dark:2,disabled:3})}}function Js(n){let e;return{c(){e=R(n[0])},l(s){e=S(s,n[0])},m(s,t){p(s,e,t)},p(s,t){t&1&&K(e,s[0])},d(s){s&&i(e)}}}function Ks(n){let e,s;return e=new ft({props:{name:"chevron-down"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:q,i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Ys(n){let e;const s=n[7].default,t=Xe(s,n,n[10],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&1024)&&xe(t,s,l,l[10],e?tt(s,l[10],o,null):et(l[10]),null)},i(l){e||(E(t,l),e=!0)},o(l){P(t,l),e=!1},d(l){t&&t.d(l)}}}function Zs(n){let e,s,t,l,o,r,a,f;s=new os({props:{href:n[4],variant:"primary",disabled:n[2],class:"segment left",$$slots:{default:[Js]},$$scope:{ctx:n}}}),s.$on("click",n[8]);function u(m){n[9](m)}let c={dark:!0,class:"segment right",controls:n[1],disabled:n[2],$$slots:{default:[Ks]},$$scope:{ctx:n}};return n[5]!==void 0&&(c.show=n[5]),l=new Gs({props:c}),Kl.push(()=>Yl(l,"show",u)),a=new cs({props:{class:"min-w-max",id:n[1],show:n[5],position:n[3],$$slots:{default:[Ys]},$$scope:{ctx:n}}}),{c(){e=g("div"),W(s.$$.fragment),t=T(),W(l.$$.fragment),r=T(),W(a.$$.fragment),this.h()},l(m){e=$(m,"DIV",{class:!0});var d=b(e);N(s.$$.fragment,d),t=M(d),N(l.$$.fragment,d),d.forEach(i),r=M(m),N(a.$$.fragment,m),this.h()},h(){v(e,"class","split-button svelte-sgeaqx"),pe(e,"disabled",n[2])},m(m,d){p(m,e,d),U(s,e,null),_(e,t),U(l,e,null),p(m,r,d),U(a,m,d),f=!0},p(m,d){const h={};d&16&&(h.href=m[4]),d&4&&(h.disabled=m[2]),d&1025&&(h.$$scope={dirty:d,ctx:m}),s.$set(h);const k={};d&2&&(k.controls=m[1]),d&4&&(k.disabled=m[2]),d&1024&&(k.$$scope={dirty:d,ctx:m}),!o&&d&32&&(o=!0,k.show=m[5],Zl(()=>o=!1)),l.$set(k),d&4&&pe(e,"disabled",m[2]);const A={};d&2&&(A.id=m[1]),d&32&&(A.show=m[5]),d&8&&(A.position=m[3]),d&1024&&(A.$$scope={dirty:d,ctx:m}),a.$set(A)},i(m){f||(E(s.$$.fragment,m),E(l.$$.fragment,m),E(a.$$.fragment,m),f=!0)},o(m){P(s.$$.fragment,m),P(l.$$.fragment,m),P(a.$$.fragment,m),f=!1},d(m){m&&i(e),L(s),L(l),m&&i(r),L(a,m)}}}function Qs(n){let e,s;return e=new Hs({props:{class:n[6].class,$$slots:{default:[Zs]},$$scope:{ctx:n}}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p(t,[l]){const o={};l&64&&(o.class=t[6].class),l&1087&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Xs(n,e,s){let{$$slots:t={},$$scope:l}=e,{label:o}=e,{id:r}=e,{disabled:a=!1}=e,{position:f="left"}=e,{href:u=""}=e,c=!1;function m(h){Ll.call(this,n,h)}function d(h){c=h,s(5,c)}return n.$$set=h=>{s(6,e=Ie(Ie({},e),Re(h))),"label"in h&&s(0,o=h.label),"id"in h&&s(1,r=h.id),"disabled"in h&&s(2,a=h.disabled),"position"in h&&s(3,f=h.position),"href"in h&&s(4,u=h.href),"$$scope"in h&&s(10,l=h.$$scope)},e=Re(e),[o,r,a,f,u,c,e,t,m,d,l]}class xs extends ne{constructor(e){super(),re(this,e,Xs,Qs,ae,{label:0,id:1,disabled:2,position:3,href:4})}}function Vl(n,e,s){const t=n.slice();return t[20]=e[s],t}function en(n){return{c:q,l:q,m:q,p:q,i:q,o:q,d:q}}function tn(n){let e,s,t,l;const o=[sn,ln],r=[];function a(f,u){return f[4]?0:1}return e=a(n),s=r[e]=o[e](n),{c(){s.c(),t=Y()},l(f){s.l(f),t=Y()},m(f,u){r[e].m(f,u),p(f,t,u),l=!0},p(f,u){let c=e;e=a(f),e===c?r[e].p(f,u):(Ze(),P(r[c],1,1,()=>{r[c]=null}),Qe(),s=r[e],s?s.p(f,u):(s=r[e]=o[e](f),s.c()),E(s,1),s.m(t.parentNode,t))},i(f){l||(E(s),l=!0)},o(f){P(s),l=!1},d(f){r[e].d(f),f&&i(t)}}}function ln(n){var Be,je,He,it,ct,mt,dt,ht,_t,pt,vt,gt,$t,bt,kt,wt,Et,It,Rt,St,Pt,Dt,Tt,Mt,Vt,At,Ct,Wt,Nt,Ut,Lt,qt,Ft,Bt,jt,Ht;let e,s,t,l,o,r,a,f,u,c,m,d,h,k,A,B,H,z=((ct=(it=(He=(je=(Be=n[19])==null?void 0:Be.schedule)==null?void 0:je.action)==null?void 0:He.startWorkflow)==null?void 0:it.workflowType)==null?void 0:ct.name)+"",ee,y,V,C,Q,O=Se((dt=(mt=n[19])==null?void 0:mt.info)==null?void 0:dt.createTime,n[6])+"",ve,oe,Pe,X,ge,G,De,$e,fe,Ne,ue,be,ie,Ue,ke,ce,Le,we,w,F,te,x,me,Z,de,le,Ee;l=new ft({props:{name:"chevron-left",class:"inline"}}),u=new Fl({props:{status:(ht=n[19])!=null&&ht.schedule.state.paused?"Paused":"Running"}});let J=((pt=(_t=n[19])==null?void 0:_t.info)==null?void 0:pt.updateTime)&&Al(n);X=new xs({props:{position:"right",label:($t=(gt=(vt=n[19])==null?void 0:vt.schedule)==null?void 0:gt.state)!=null&&$t.paused?"Unpause":"Pause",id:"pause-schedule-button",$$slots:{default:[nn]},$$scope:{ctx:n}}}),X.$on("click",n[12]);let j=((kt=(bt=n[19])==null?void 0:bt.info)==null?void 0:kt.invalidScheduleError)&&Wl(n);fe=new Fs({props:{calendar:(Rt=(It=(Et=(wt=n[19])==null?void 0:wt.schedule)==null?void 0:Et.spec)==null?void 0:It.calendar)==null?void 0:Rt[0],interval:(Tt=(Dt=(Pt=(St=n[19])==null?void 0:St.schedule)==null?void 0:Pt.spec)==null?void 0:Dt.interval)==null?void 0:Tt[0]}}),ie=new Is({props:{namespace:n[7],recentRuns:(Vt=(Mt=n[19])==null?void 0:Mt.info)==null?void 0:Vt.recentActions}}),ce=new Ds({props:{futureRuns:(Ct=(At=n[19])==null?void 0:At.info)==null?void 0:Ct.futureActionTimes}}),w=new Vs({props:{spec:(Nt=(Wt=n[19])==null?void 0:Wt.schedule)==null?void 0:Nt.spec,state:(Lt=(Ut=n[19])==null?void 0:Ut.schedule)==null?void 0:Lt.state,policies:(Ft=(qt=n[19])==null?void 0:qt.schedule)==null?void 0:Ft.policies}}),x=new hs({props:{notes:(Ht=(jt=(Bt=n[19])==null?void 0:Bt.schedule)==null?void 0:jt.state)==null?void 0:Ht.notes}});function lt(){return n[15](n[19])}return Z=new El({props:{open:n[1],confirmType:"primary",confirmText:n[19].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!n[3],$$slots:{content:[an],title:[rn]},$$scope:{ctx:n}}}),Z.$on("cancelModal",n[14]),Z.$on("confirmModal",lt),le=new El({props:{open:n[2],confirmType:"destructive",confirmText:"Delete",$$slots:{content:[fn],title:[on]},$$scope:{ctx:n}}}),le.$on("cancelModal",n[16]),le.$on("confirmModal",n[17]),{c(){e=g("header"),s=g("main"),t=g("a"),W(l.$$.fragment),o=R("Back to Schedules"),r=T(),a=g("div"),f=g("h1"),W(u.$$.fragment),c=T(),m=g("span"),d=R(n[8]),h=T(),k=g("div"),A=g("p"),B=R(n[7]),H=T(),ee=R(z),y=T(),V=g("div"),C=g("p"),Q=R("Created: "),ve=R(O),oe=T(),J&&J.c(),Pe=T(),W(X.$$.fragment),ge=T(),G=g("div"),j&&j.c(),De=T(),$e=g("div"),W(fe.$$.fragment),Ne=T(),ue=g("div"),be=g("div"),W(ie.$$.fragment),Ue=T(),ke=g("div"),W(ce.$$.fragment),Le=T(),we=g("div"),W(w.$$.fragment),F=T(),te=g("div"),W(x.$$.fragment),me=T(),W(Z.$$.fragment),de=T(),W(le.$$.fragment),this.h()},l(I){e=$(I,"HEADER",{class:!0});var D=b(e);s=$(D,"MAIN",{class:!0});var he=b(s);t=$(he,"A",{href:!0,class:!0,style:!0});var Te=b(t);N(l.$$.fragment,Te),o=S(Te,"Back to Schedules"),Te.forEach(i),r=M(he),a=$(he,"DIV",{class:!0});var qe=b(a);f=$(qe,"H1",{class:!0});var Me=b(f);N(u.$$.fragment,Me),c=M(Me),m=$(Me,"SPAN",{class:!0});var ye=b(m);d=S(ye,n[8]),ye.forEach(i),Me.forEach(i),qe.forEach(i),h=M(he),k=$(he,"DIV",{class:!0});var Ve=b(k);A=$(Ve,"P",{});var Ae=b(A);B=S(Ae,n[7]),H=M(Ae),ee=S(Ae,z),Ae.forEach(i),Ve.forEach(i),y=M(he),V=$(he,"DIV",{class:!0});var _e=b(V);C=$(_e,"P",{});var Ce=b(C);Q=S(Ce,"Created: "),ve=S(Ce,O),Ce.forEach(i),oe=M(_e),J&&J.l(_e),_e.forEach(i),he.forEach(i),Pe=M(D),N(X.$$.fragment,D),D.forEach(i),ge=M(I),G=$(I,"DIV",{class:!0});var se=b(G);j&&j.l(se),De=M(se),$e=$(se,"DIV",{class:!0});var ze=b($e);N(fe.$$.fragment,ze),ze.forEach(i),Ne=M(se),ue=$(se,"DIV",{class:!0});var We=b(ue);be=$(We,"DIV",{class:!0});var Oe=b(be);N(ie.$$.fragment,Oe),Oe.forEach(i),Ue=M(We),ke=$(We,"DIV",{class:!0});var Ge=b(ke);N(ce.$$.fragment,Ge),Ge.forEach(i),We.forEach(i),Le=M(se),we=$(se,"DIV",{class:!0});var Je=b(we);N(w.$$.fragment,Je),Je.forEach(i),F=M(se),te=$(se,"DIV",{class:!0});var Ke=b(te);N(x.$$.fragment,Ke),Ke.forEach(i),se.forEach(i),me=M(I),N(Z.$$.fragment,I),de=M(I),N(le.$$.fragment,I),this.h()},h(){v(t,"href",ql({namespace:n[7]})),v(t,"class","absolute top-0 back-to-schedules svelte-1pupefa"),Ql(t,"left","-.5rem"),v(m,"class","font-medium select-all"),v(f,"class","text-2xl flex relative items-center gap-4"),v(a,"class","flex justify-between items-center mt-8"),v(k,"class","flex items-center text-sm"),v(V,"class","flex items-center gap-2 text-sm"),v(s,"class","flex flex-col gap-1 relative"),v(e,"class","flex flex-row justify-between gap-4 mb-8"),v($e,"class","w-full xl:w-1/2"),v(be,"class","w-full xl:w-3/4"),v(ke,"class","w-full xl:w-1/4"),v(ue,"class","flex flex-col xl:flex-row gap-4"),v(we,"class","w-full xl:w-1/2"),v(te,"class","w-full xl:w-1/2"),v(G,"class","flex flex-col gap-4 pb-24")},m(I,D){p(I,e,D),_(e,s),_(s,t),U(l,t,null),_(t,o),_(s,r),_(s,a),_(a,f),U(u,f,null),_(f,c),_(f,m),_(m,d),_(s,h),_(s,k),_(k,A),_(A,B),_(A,H),_(A,ee),_(s,y),_(s,V),_(V,C),_(C,Q),_(C,ve),_(V,oe),J&&J.m(V,null),_(e,Pe),U(X,e,null),p(I,ge,D),p(I,G,D),j&&j.m(G,null),_(G,De),_(G,$e),U(fe,$e,null),_(G,Ne),_(G,ue),_(ue,be),U(ie,be,null),_(ue,Ue),_(ue,ke),U(ce,ke,null),_(G,Le),_(G,we),U(w,we,null),_(G,F),_(G,te),U(x,te,null),p(I,me,D),U(Z,I,D),p(I,de,D),U(le,I,D),Ee=!0},p(I,D){var se,ze,We,Oe,Ge,Je,Ke,yt,zt,Ot,Gt,Jt,Kt,Yt,Zt,Qt,Xt,xt,el,tl,ll,sl,nl,rl,al,ol,fl,ul,il,cl,ml,dl,hl,_l,pl,vl;n=I;const he={};D&1&&(he.status=(se=n[19])!=null&&se.schedule.state.paused?"Paused":"Running"),u.$set(he),(!Ee||D&1)&&z!==(z=((Je=(Ge=(Oe=(We=(ze=n[19])==null?void 0:ze.schedule)==null?void 0:We.action)==null?void 0:Oe.startWorkflow)==null?void 0:Ge.workflowType)==null?void 0:Je.name)+"")&&K(ee,z),(!Ee||D&65)&&O!==(O=Se((yt=(Ke=n[19])==null?void 0:Ke.info)==null?void 0:yt.createTime,n[6])+"")&&K(ve,O),(Ot=(zt=n[19])==null?void 0:zt.info)!=null&&Ot.updateTime?J?J.p(n,D):(J=Al(n),J.c(),J.m(V,null)):J&&(J.d(1),J=null);const Te={};D&1&&(Te.label=(Kt=(Jt=(Gt=n[19])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?"Unpause":"Pause"),D&8388608&&(Te.$$scope={dirty:D,ctx:n}),X.$set(Te),(Zt=(Yt=n[19])==null?void 0:Yt.info)!=null&&Zt.invalidScheduleError?j?(j.p(n,D),D&1&&E(j,1)):(j=Wl(n),j.c(),E(j,1),j.m(G,De)):j&&(Ze(),P(j,1,1,()=>{j=null}),Qe());const qe={};D&1&&(qe.calendar=(el=(xt=(Xt=(Qt=n[19])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:xt.calendar)==null?void 0:el[0]),D&1&&(qe.interval=(nl=(sl=(ll=(tl=n[19])==null?void 0:tl.schedule)==null?void 0:ll.spec)==null?void 0:sl.interval)==null?void 0:nl[0]),fe.$set(qe);const Me={};D&1&&(Me.recentRuns=(al=(rl=n[19])==null?void 0:rl.info)==null?void 0:al.recentActions),ie.$set(Me);const ye={};D&1&&(ye.futureRuns=(fl=(ol=n[19])==null?void 0:ol.info)==null?void 0:fl.futureActionTimes),ce.$set(ye);const Ve={};D&1&&(Ve.spec=(il=(ul=n[19])==null?void 0:ul.schedule)==null?void 0:il.spec),D&1&&(Ve.state=(ml=(cl=n[19])==null?void 0:cl.schedule)==null?void 0:ml.state),D&1&&(Ve.policies=(hl=(dl=n[19])==null?void 0:dl.schedule)==null?void 0:hl.policies),w.$set(Ve);const Ae={};D&1&&(Ae.notes=(vl=(pl=(_l=n[19])==null?void 0:_l.schedule)==null?void 0:pl.state)==null?void 0:vl.notes),x.$set(Ae);const _e={};D&2&&(_e.open=n[1]),D&1&&(_e.confirmText=n[19].schedule.state.paused?"Unpause":"Pause"),D&8&&(_e.confirmDisabled=!n[3]),D&8388617&&(_e.$$scope={dirty:D,ctx:n}),Z.$set(_e);const Ce={};D&4&&(Ce.open=n[2]),D&8388608&&(Ce.$$scope={dirty:D,ctx:n}),le.$set(Ce)},i(I){Ee||(E(l.$$.fragment,I),E(u.$$.fragment,I),E(X.$$.fragment,I),E(j),E(fe.$$.fragment,I),E(ie.$$.fragment,I),E(ce.$$.fragment,I),E(w.$$.fragment,I),E(x.$$.fragment,I),E(Z.$$.fragment,I),E(le.$$.fragment,I),Ee=!0)},o(I){P(l.$$.fragment,I),P(u.$$.fragment,I),P(X.$$.fragment,I),P(j),P(fe.$$.fragment,I),P(ie.$$.fragment,I),P(ce.$$.fragment,I),P(w.$$.fragment,I),P(x.$$.fragment,I),P(Z.$$.fragment,I),P(le.$$.fragment,I),Ee=!1},d(I){I&&i(e),L(l),L(u),J&&J.d(),L(X),I&&i(ge),I&&i(G),j&&j.d(),L(fe),L(ie),L(ce),L(w),L(x),I&&i(me),L(Z,I),I&&i(de),L(le,I)}}}function sn(n){let e,s;return e=new Bl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:q,i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}function Al(n){var f,u;let e,s,t,l,o,r=Se((u=(f=n[19])==null?void 0:f.info)==null?void 0:u.updateTime,n[6])+"",a;return{c(){e=g("p"),s=R("-"),t=T(),l=g("p"),o=R("Last updated: "),a=R(r)},l(c){e=$(c,"P",{});var m=b(e);s=S(m,"-"),m.forEach(i),t=M(c),l=$(c,"P",{});var d=b(l);o=S(d,"Last updated: "),a=S(d,r),d.forEach(i)},m(c,m){p(c,e,m),_(e,s),p(c,t,m),p(c,l,m),_(l,o),_(l,a)},p(c,m){var d,h;m&65&&r!==(r=Se((h=(d=c[19])==null?void 0:d.info)==null?void 0:h.updateTime,c[6])+"")&&K(a,r)},d(c){c&&i(e),c&&i(t),c&&i(l)}}}function Cl(n){let e,s=n[20].label+"",t,l,o,r;return{c(){e=g("div"),t=R(s),l=T(),this.h()},l(a){e=$(a,"DIV",{class:!0});var f=b(e);t=S(f,s),l=M(f),f.forEach(i),this.h()},h(){var a;v(e,"class","cursor-pointer flex gap-2 p-4 items-center "+((a=n[20])==null?void 0:a.class)+" svelte-1pupefa")},m(a,f){p(a,e,f),_(e,t),_(e,l),o||(r=Fe(e,"click",n[20].onClick),o=!0)},p(a,f){n=a},d(a){a&&i(e),o=!1,r()}}}function nn(n){let e,s=n[11],t=[];for(let l=0;lt.parentNode,r.anchor=t,o=!0},p(a,[f]){n=a;const u={};f&32&&(u.url=n[5].url.href),e.$set(u),r.ctx=n,f&1&&l!==(l=n[0])&&nt(l,r)||Nl(r,n,f)},i(a){o||(E(e.$$.fragment,a),E(r.block),o=!0)},o(a){P(e.$$.fragment,a);for(let f=0;f<3;f+=1){const u=r.blocks[f];P(u)}o=!1},d(a){L(e,a),a&&i(s),a&&i(t),r.block.d(a),r.token=null,r=null}}}function mn(n,e,s){let t,l,o;Ye(n,st,C=>s(4,t=C)),Ye(n,Xl,C=>s(5,l=C)),Ye(n,ut,C=>s(6,o=C));let r=l.params.namespace,a=l.params.schedule;const f={namespace:r,scheduleId:ot(a)};let u=kl(f,fetch),c=!1,m=!1,d="";const h=async()=>{try{at(st,t=!0,t),await es({namespace:r,scheduleId:a}),setTimeout(()=>{xl(ql({namespace:r})),at(st,t=!1,t)},2e3)}catch{at(st,t=!1,t)}},k=async C=>{var Q,O;!((O=(Q=C==null?void 0:C.schedule)===null||Q===void 0?void 0:Q.state)===null||O===void 0)&&O.paused?await ts({namespace:r,scheduleId:a,reason:d}):await ls({namespace:r,scheduleId:a,reason:d}),s(0,u=kl(f,fetch)),s(1,c=!1),s(3,d="")};let A=[{label:"Delete Schedule",onClick:()=>s(2,m=!0),class:"text-red-500"}];const B=()=>s(1,c=!c);function H(){d=this.value,s(3,d)}return[u,c,m,d,t,l,o,r,a,h,k,A,B,H,()=>s(1,c=!1),C=>k(C),()=>s(2,m=!1),()=>h()]}class dn extends ne{constructor(e){super(),re(this,e,mn,cn,ae,{})}}function hn(n){let e,s;return e=new dn({}),{c(){W(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:q,i(t){s||(E(e.$$.fragment,t),s=!0)},o(t){P(e.$$.fragment,t),s=!1},d(t){L(e,t)}}}class Xn extends ne{constructor(e){super(),re(this,e,null,hn,ae,{})}}export{Xn as default}; diff --git a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-7a63cda2.js b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-3527c25d.js similarity index 98% rename from server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-7a63cda2.js rename to server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-3527c25d.js index 924bd945cc..754a586d81 100644 --- a/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-7a63cda2.js +++ b/server/generated/ui/_app/immutable/pages/namespaces/_namespace_/schedules/index.svelte-3527c25d.js @@ -1 +1 @@ -import{S as ue,i as ie,s as me,w as y,x as A,y as N,f as v,t as k,B,I as st,J as nt,K as at,L as ot,l as R,r as J,a as H,m as C,n as L,u as K,h as u,c as V,p as M,b as _,M as E,E as O,N as $e,v as fe,g as _e,d as he,ad as pe,Z as ft,_ as ct,a9 as Ze,e as le,$ as ut,ac as it}from"../../../../chunks/index-f283717a.js";import{E as mt}from"../../../../chunks/empty-state-5e402c94.js";import{P as $t}from"../../../../chunks/pagination-d282538d.js";import{B as lt}from"../../../../chunks/button-397b3a8c.js";import{B as pt}from"../../../../chunks/badge-46845e47.js";import{L as _t}from"../../../../chunks/loading-1dce92da.js";import{N as ht,I as dt}from"../../../../chunks/namespace-selector-decb53c4.js";import{p as rt}from"../../../../chunks/stores-62bcca1c.js";import{g as gt}from"../../../../chunks/navigation-fbe70647.js";import{q as bt,n as ze,s as wt}from"../../../../chunks/route-for-4a4bbbc1.js";import{a as vt}from"../../../../chunks/schedule-service-8d260234.js";import{P as kt}from"../../../../chunks/page-title-c652e2a5.js";import{T as St,a as Tt,b as Et}from"../../../../chunks/table-row-f3dc657f.js";import{t as It}from"../../../../chunks/time-format-e53b802e.js";import{f as ce}from"../../../../chunks/format-date-e7563fe7.js";import{W as Dt}from"../../../../chunks/workflow-status-0bcf7612.js";import{L as Rt}from"../../../../chunks/link-1679e5ab.js";import{S as Ct}from"../../../../chunks/schedule-frequency-d5b19d2e.js";import"../../../../chunks/icon-c6a60499.js";import"../../../../chunks/index-5dff130b.js";import"../../../../chunks/filter-select-a0e13a2c.js";import"../../../../chunks/update-query-parameters-0d565146.js";import"../../../../chunks/simple-select-bb509320.js";/* empty css */import"../../../../chunks/get-public-path-6c4a8950.js";import"../../../../chunks/copy-to-clipboard-c6080acc.js";/* empty css */import"../../../../chunks/nav-open-bbd3ebaf.js";import"../../../../chunks/persist-store-c4deb1a0.js";import"../../../../chunks/is-function-45497f08.js";import"../../../../chunks/feature-tag-e8d805df.js";import"../../../../chunks/singletons-eca981c1.js";import"../../../../chunks/route-for-api-68bfde2a.js";import"../../../../chunks/notifications-dddf88f8.js";import"../../../../chunks/is-network-error-5f9e2367.js";import"../../../../chunks/get-api-origin-9f051405.js";import"../../../../chunks/to-duration-a5f6615f.js";import"../../../../chunks/is-6159121b.js";import"../../../../chunks/code-block-79b577be.js";function Lt(s){let t;const l=s[0].default,e=st(l,s,s[1],null);return{c(){e&&e.c()},l(r){e&&e.l(r)},m(r,a){e&&e.m(r,a),t=!0},p(r,a){e&&e.p&&(!t||a&2)&&nt(e,l,r,r[1],t?ot(l,r[1],a,null):at(r[1]),null)},i(r){t||(v(e,r),t=!0)},o(r){k(e,r),t=!1},d(r){e&&e.d(r)}}}function Pt(s){let t,l,e,r,a,n,c,f,i,m,S,I,D,T;return{c(){t=R("th"),l=J("Status"),e=H(),r=R("th"),a=J("Schedule ID"),n=H(),c=R("th"),f=J("Workflow Type"),i=H(),m=R("th"),S=J("Recent Runs"),I=H(),D=R("th"),T=J("Upcoming Runs"),this.h()},l(p){t=C(p,"TH",{class:!0});var g=L(t);l=K(g,"Status"),g.forEach(u),e=V(p),r=C(p,"TH",{class:!0});var W=L(r);a=K(W,"Schedule ID"),W.forEach(u),n=V(p),c=C(p,"TH",{class:!0});var j=L(c);f=K(j,"Workflow Type"),j.forEach(u),i=V(p),m=C(p,"TH",{class:!0});var U=L(m);S=K(U,"Recent Runs"),U.forEach(u),I=V(p),D=C(p,"TH",{class:!0});var F=L(D);T=K(F,"Upcoming Runs"),F.forEach(u),this.h()},h(){M(t,"class","w-28 md:table-cell"),M(r,"class","hidden md:table-cell md:w-80 xl:w-auto"),M(c,"class","hidden md:table-cell md:w-60 xl:w-80"),M(m,"class","hidden xl:table-cell xl:w-60"),M(D,"class","hidden xl:table-cell xl:w-60")},m(p,g){_(p,t,g),E(t,l),_(p,e,g),_(p,r,g),E(r,a),_(p,n,g),_(p,c,g),E(c,f),_(p,i,g),_(p,m,g),E(m,S),_(p,I,g),_(p,D,g),E(D,T)},p:O,d(p){p&&u(t),p&&u(e),p&&u(r),p&&u(n),p&&u(c),p&&u(i),p&&u(m),p&&u(I),p&&u(D)}}}function Wt(s){let t,l;return t=new Tt({props:{slot:"headers",$$slots:{default:[Pt]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,r){N(t,e,r),l=!0},p(e,r){const a={};r&2&&(a.$$scope={dirty:r,ctx:e}),t.$set(a)},i(e){l||(v(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){B(t,e)}}}function qt(s){let t,l;return t=new St({props:{variant:"fancy",class:"w-full md:table-fixed",$$slots:{headers:[Wt],default:[Lt]},$$scope:{ctx:s}}}),{c(){y(t.$$.fragment)},l(e){A(t.$$.fragment,e)},m(e,r){N(t,e,r),l=!0},p(e,[r]){const a={};r&2&&(a.$$scope={dirty:r,ctx:e}),t.$set(a)},i(e){l||(v(t.$$.fragment,e),l=!0)},o(e){k(t.$$.fragment,e),l=!1},d(e){B(t,e)}}}function yt(s,t,l){let{$$slots:e={},$$scope:r}=t;return s.$$set=a=>{"$$scope"in a&&l(1,r=a.$$scope)},[e,r]}class At extends ue{constructor(t){super(),ie(this,t,yt,qt,me,{})}}function Oe(s,t,l){const e=s.slice();return e[5]=t[l],e}function Qe(s,t,l){const e=s.slice();return e[5]=t[l],e}function Nt(s){var e;let t=ce((e=s[5])==null?void 0:e.actualTime,s[1])+"",l;return{c(){l=J(t)},l(r){l=K(r,t)},m(r,a){_(r,l,a)},p(r,a){var n;a&3&&t!==(t=ce((n=r[5])==null?void 0:n.actualTime,r[1])+"")&&fe(l,t)},d(r){r&&u(l)}}}function Xe(s){var a,n,c,f;let t,l,e,r;return l=new Rt({props:{href:ze({namespace:s[2],workflow:(n=(a=s[5])==null?void 0:a.startWorkflowResult)==null?void 0:n.workflowId,run:(f=(c=s[5])==null?void 0:c.startWorkflowResult)==null?void 0:f.runId}),$$slots:{default:[Nt]},$$scope:{ctx:s}}}),{c(){t=R("p"),y(l.$$.fragment),e=H()},l(i){t=C(i,"P",{});var m=L(t);A(l.$$.fragment,m),e=V(m),m.forEach(u)},m(i,m){_(i,t,m),N(l,t,null),E(t,e),r=!0},p(i,m){var I,D,T,p;const S={};m&1&&(S.href=ze({namespace:i[2],workflow:(D=(I=i[5])==null?void 0:I.startWorkflowResult)==null?void 0:D.workflowId,run:(p=(T=i[5])==null?void 0:T.startWorkflowResult)==null?void 0:p.runId})),m&1027&&(S.$$scope={dirty:m,ctx:i}),l.$set(S)},i(i){r||(v(l.$$.fragment,i),r=!0)},o(i){k(l.$$.fragment,i),r=!1},d(i){i&&u(t),B(l)}}}function Ye(s){let t,l=ce(s[5],s[1],"from now")+"",e;return{c(){t=R("div"),e=J(l)},l(r){t=C(r,"DIV",{});var a=L(t);e=K(a,l),a.forEach(u)},m(r,a){_(r,t,a),E(t,e)},p(r,a){a&3&&l!==(l=ce(r[5],r[1],"from now")+"")&&fe(e,l)},d(r){r&&u(t)}}}function Bt(s){var q,$,h,Z,z,Y,x,de,ge,be,we,ve,ke,Se,Te,Ee,Ie,De,Re,Ce,Le;let t,l,e,r,a=s[0].scheduleId+"",n,c,f,i,m,S,I,D=((h=($=(q=s[0])==null?void 0:q.info)==null?void 0:$.workflowType)==null?void 0:h.name)+"",T,p,g,W,j,U;l=new Dt({props:{status:(z=(Z=s[0])==null?void 0:Z.info)!=null&&z.paused?"Paused":"Running"}}),m=new Ct({props:{calendar:(ge=(de=(x=(Y=s[0])==null?void 0:Y.info)==null?void 0:x.spec)==null?void 0:de.calendar)==null?void 0:ge[0],interval:(ke=(ve=(we=(be=s[0])==null?void 0:be.info)==null?void 0:we.spec)==null?void 0:ve.interval)==null?void 0:ke[0]}});let F=(Ie=(Ee=(Te=(Se=s[0])==null?void 0:Se.info)==null?void 0:Te.recentActions)==null?void 0:Ee.reverse().slice(0,5))!=null?Ie:[],b=[];for(let o=0;ok(b[o],1,1,()=>{b[o]=null});let X=(Le=(Ce=(Re=(De=s[0])==null?void 0:De.info)==null?void 0:Re.futureActionTimes)==null?void 0:Ce.slice(0,5))!=null?Le:[],P=[];for(let o=0;o