diff --git a/server/generated/ui/_app/assets/button-49221968.css b/server/generated/ui/_app/assets/button-49221968.css deleted file mode 100644 index cd16b52b60..0000000000 --- a/server/generated/ui/_app/assets/button-49221968.css +++ /dev/null @@ -1 +0,0 @@ -.button.svelte-1v6h8f4{align-items:center;border-radius:.25rem;display:flex;font-family:Poppins,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;gap:.5rem;justify-content:center;line-height:1.25rem;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.destructive.svelte-1v6h8f4,.login.svelte-1v6h8f4,.primary.svelte-1v6h8f4,.secondary.svelte-1v6h8f4{border-width:1px;padding:.5rem 1rem;transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.button.svelte-1v6h8f4:disabled{cursor:not-allowed}.large.svelte-1v6h8f4{font-size:1.125rem;line-height:1.75rem}.primary.svelte-1v6h8f4{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity));border-color:rgb(24 24 27/var(--tw-border-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.primary.svelte-1v6h8f4:disabled{opacity:.5}.primary.svelte-1v6h8f4:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity));border-color:rgb(29 78 216/var(--tw-border-opacity))}.primary.svelte-1v6h8f4:hover:enabled .badge{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity));color:rgb(244 244 245/var(--tw-text-opacity))}.secondary.svelte-1v6h8f4{--tw-border-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(39 39 42/var(--tw-border-opacity));color:rgb(39 39 42/var(--tw-text-opacity))}.secondary.svelte-1v6h8f4,.secondary.svelte-1v6h8f4:disabled{--tw-bg-opacity:1;--tw-text-opacity:1}.secondary.svelte-1v6h8f4:disabled{background-color:rgb(212 212 216/var(--tw-bg-opacity));color:rgb(24 24 27/var(--tw-text-opacity))}.secondary.svelte-1v6h8f4:hover:enabled{background-color:rgb(24 24 27/var(--tw-bg-opacity));border-color:rgb(24 24 27/var(--tw-border-opacity))}.destructive.svelte-1v6h8f4,.secondary.svelte-1v6h8f4:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.destructive.svelte-1v6h8f4{background-color:rgb(185 28 28/var(--tw-bg-opacity));border-color:rgb(185 28 28/var(--tw-border-opacity));padding-left:1.25rem;padding-right:1.25rem}.destructive.svelte-1v6h8f4:disabled{background-color:rgb(252 165 165/var(--tw-bg-opacity));color:rgb(127 29 29/var(--tw-text-opacity))}.destructive.svelte-1v6h8f4:disabled,.destructive.svelte-1v6h8f4:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;border-color:rgb(127 29 29/var(--tw-border-opacity))}.destructive.svelte-1v6h8f4:hover:enabled{background-color:rgb(127 29 29/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.link.svelte-1v6h8f4{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background-image:none;border-width:0;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;line-height:1.25rem;padding:0;-webkit-text-decoration-line:underline;text-decoration-line:underline}.selected.svelte-1v6h8f4{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(147 51 234/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.login.svelte-1v6h8f4{--tw-bg-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity));margin-left:auto;margin-right:auto;padding-bottom:1rem;padding-top:1rem}.thin.svelte-1v6h8f4{padding-bottom:.25rem;padding-top:.25rem} diff --git a/server/generated/ui/_app/assets/button-d1cf8db2.css b/server/generated/ui/_app/assets/button-d1cf8db2.css new file mode 100644 index 0000000000..0bb6efad92 --- /dev/null +++ b/server/generated/ui/_app/assets/button-d1cf8db2.css @@ -0,0 +1 @@ +.button.svelte-1u55sf0{align-items:center;border-radius:.25rem;display:flex;font-family:Poppins,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;gap:.5rem;justify-content:center;line-height:1.25rem;position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.destructive.svelte-1u55sf0,.login.svelte-1u55sf0,.primary.svelte-1u55sf0,.secondary.svelte-1u55sf0{border-width:1px;padding:.5rem 1rem;transition-duration:.15s;transition-property:color,background-color,border-color,fill,stroke,-webkit-text-decoration-color;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,-webkit-text-decoration-color;transition-timing-function:cubic-bezier(.4,0,.2,1)}.button.svelte-1u55sf0:disabled{cursor:not-allowed}.large.svelte-1u55sf0{font-size:1.125rem;line-height:1.75rem}.login.svelte-1u55sf0,.primary.svelte-1u55sf0{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(24 24 27/var(--tw-bg-opacity));border-color:rgb(24 24 27/var(--tw-border-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.primary.svelte-1u55sf0:disabled{opacity:.5}.primary.svelte-1u55sf0:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(29 78 216/var(--tw-bg-opacity));border-color:rgb(29 78 216/var(--tw-border-opacity))}.primary.svelte-1u55sf0:hover:enabled .badge{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(59 130 246/var(--tw-bg-opacity));color:rgb(244 244 245/var(--tw-text-opacity))}.secondary.svelte-1u55sf0{--tw-border-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(39 39 42/var(--tw-border-opacity));color:rgb(39 39 42/var(--tw-text-opacity))}.secondary.svelte-1u55sf0,.secondary.svelte-1u55sf0:disabled{--tw-bg-opacity:1;--tw-text-opacity:1}.secondary.svelte-1u55sf0:disabled{background-color:rgb(212 212 216/var(--tw-bg-opacity));color:rgb(24 24 27/var(--tw-text-opacity))}.secondary.svelte-1u55sf0:hover:enabled{background-color:rgb(24 24 27/var(--tw-bg-opacity));border-color:rgb(24 24 27/var(--tw-border-opacity))}.destructive.svelte-1u55sf0,.secondary.svelte-1u55sf0:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.destructive.svelte-1u55sf0{background-color:rgb(185 28 28/var(--tw-bg-opacity));border-color:rgb(185 28 28/var(--tw-border-opacity));padding-left:1.25rem;padding-right:1.25rem}.destructive.svelte-1u55sf0:disabled{background-color:rgb(252 165 165/var(--tw-bg-opacity));color:rgb(127 29 29/var(--tw-text-opacity))}.destructive.svelte-1u55sf0:disabled,.destructive.svelte-1u55sf0:hover:enabled{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;border-color:rgb(127 29 29/var(--tw-border-opacity))}.destructive.svelte-1u55sf0:hover:enabled{background-color:rgb(127 29 29/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.link.svelte-1u55sf0{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;background-image:none;border-width:0;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-size:.875rem;line-height:1.25rem;padding:0;-webkit-text-decoration-line:underline;text-decoration-line:underline}.selected.svelte-1u55sf0{--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(147 51 234/var(--tw-bg-opacity));color:rgb(255 255 255/var(--tw-text-opacity))}.login.svelte-1u55sf0{margin-left:auto;margin-right:auto}.thin.svelte-1u55sf0{padding-bottom:.25rem;padding-top:.25rem} diff --git a/server/generated/ui/_app/chunks/button-6823eb61.js b/server/generated/ui/_app/chunks/button-6823eb61.js new file mode 100644 index 0000000000..ec0fcde71d --- /dev/null +++ b/server/generated/ui/_app/chunks/button-6823eb61.js @@ -0,0 +1 @@ +import{S as ee,i as te,s as ae,l as H,g as p,n as k,o as y,p as w,q as v,d as _,C as J,V as K,W as L,e as S,w as B,c as C,a as E,x as A,R as m,y as U,B as z,I as D,k as I,m as N,b as h,M as j,T as G,J as Q,K as X,L as Y,t as oe,h as le,j as ie}from"./index-c85ade65.js";import{I as Z}from"./index-c8da0ebb.js";import{B as re}from"./badge-aff3796f.js";function se(o){let e,t,s,a,n,d,u=(o[9]||o[3])&&O(o);const i=o[15].default,b=D(i,o,o[18],null);return{c(){e=S("a"),u&&u.c(),t=I(),b&&b.c(),this.h()},l(l){e=C(l,"A",{href:!0,class:!0,"data-cy":!0,target:!0,disabled:!0});var r=E(e);u&&u.l(r),t=N(r),b&&b.l(r),r.forEach(_),this.h()},h(){h(e,"href",o[4]),h(e,"class",s="button "+o[1]+" "+o[11]+" svelte-1u55sf0"),h(e,"data-cy",o[12]),h(e,"target",o[5]),h(e,"disabled",o[0]),m(e,"selected",o[6]),m(e,"large",o[7]),m(e,"disabled",o[0]),m(e,"thin",o[2])},m(l,r){p(l,e,r),u&&u.m(e,null),j(e,t),b&&b.m(e,null),a=!0,n||(d=G(e,"click",o[17]),n=!0)},p(l,r){l[9]||l[3]?u?(u.p(l,r),r&520&&v(u,1)):(u=O(l),u.c(),v(u,1),u.m(e,t)):u&&(k(),y(u,1,1,()=>{u=null}),w()),b&&b.p&&(!a||r&262144)&&Q(b,i,l,l[18],a?Y(i,l[18],r,null):X(l[18]),null),(!a||r&16)&&h(e,"href",l[4]),(!a||r&2050&&s!==(s="button "+l[1]+" "+l[11]+" svelte-1u55sf0"))&&h(e,"class",s),(!a||r&4096)&&h(e,"data-cy",l[12]),(!a||r&32)&&h(e,"target",l[5]),(!a||r&1)&&h(e,"disabled",l[0]),r&2114&&m(e,"selected",l[6]),r&2178&&m(e,"large",l[7]),r&2051&&m(e,"disabled",l[0]),r&2054&&m(e,"thin",l[2])},i(l){a||(v(u),v(b,l),a=!0)},o(l){y(u),y(b,l),a=!1},d(l){l&&_(e),u&&u.d(),b&&b.d(l),n=!1,d()}}}function ne(o){let e,t,s,a,n,d,u,i=(o[9]||o[3])&&V(o);const b=o[15].default,l=D(b,o,o[18],null);let r=o[13]>0&&W(o);return{c(){e=S("button"),i&&i.c(),t=I(),l&&l.c(),s=I(),r&&r.c(),this.h()},l(c){e=C(c,"BUTTON",{class:!0,"data-cy":!0,type:!0});var g=E(e);i&&i.l(g),t=N(g),l&&l.l(g),s=N(g),r&&r.l(g),g.forEach(_),this.h()},h(){h(e,"class",a="button "+o[1]+" "+o[11]+" svelte-1u55sf0"),h(e,"data-cy",o[12]),h(e,"type",o[14]),e.disabled=o[0],m(e,"selected",o[6]),m(e,"large",o[7]),m(e,"thin",o[2])},m(c,g){p(c,e,g),i&&i.m(e,null),j(e,t),l&&l.m(e,null),j(e,s),r&&r.m(e,null),n=!0,d||(u=G(e,"click",o[16]),d=!0)},p(c,g){c[9]||c[3]?i?(i.p(c,g),g&520&&v(i,1)):(i=V(c),i.c(),v(i,1),i.m(e,t)):i&&(k(),y(i,1,1,()=>{i=null}),w()),l&&l.p&&(!n||g&262144)&&Q(l,b,c,c[18],n?Y(b,c[18],g,null):X(c[18]),null),c[13]>0?r?(r.p(c,g),g&8192&&v(r,1)):(r=W(c),r.c(),v(r,1),r.m(e,null)):r&&(k(),y(r,1,1,()=>{r=null}),w()),(!n||g&2050&&a!==(a="button "+c[1]+" "+c[11]+" svelte-1u55sf0"))&&h(e,"class",a),(!n||g&4096)&&h(e,"data-cy",c[12]),(!n||g&16384)&&h(e,"type",c[14]),(!n||g&1)&&(e.disabled=c[0]),g&2114&&m(e,"selected",c[6]),g&2178&&m(e,"large",c[7]),g&2054&&m(e,"thin",c[2])},i(c){n||(v(i),v(l,c),v(r),n=!0)},o(c){y(i),y(l,c),y(r),n=!1},d(c){c&&_(e),i&&i.d(),l&&l.d(c),r&&r.d(),d=!1,u()}}}function O(o){let e,t,s;return t=new Z({props:{scale:o[10],width:18,height:18,stroke:"currentcolor",name:o[3]?"spinner":o[9]}}),{c(){e=S("span"),B(t.$$.fragment),this.h()},l(a){e=C(a,"SPAN",{});var n=E(e);A(t.$$.fragment,n),n.forEach(_),this.h()},h(){m(e,"animate-spin",o[3])},m(a,n){p(a,e,n),U(t,e,null),s=!0},p(a,n){const d={};n&1024&&(d.scale=a[10]),n&520&&(d.name=a[3]?"spinner":a[9]),t.$set(d),n&8&&m(e,"animate-spin",a[3])},i(a){s||(v(t.$$.fragment,a),s=!0)},o(a){y(t.$$.fragment,a),s=!1},d(a){a&&_(e),z(t)}}}function V(o){let e,t,s;return t=new Z({props:{scale:o[10],stroke:"currentcolor",name:o[3]?"spinner":o[9]}}),{c(){e=S("span"),B(t.$$.fragment),this.h()},l(a){e=C(a,"SPAN",{});var n=E(e);A(t.$$.fragment,n),n.forEach(_),this.h()},h(){m(e,"animate-spin",o[3])},m(a,n){p(a,e,n),U(t,e,null),s=!0},p(a,n){const d={};n&1024&&(d.scale=a[10]),n&520&&(d.name=a[3]?"spinner":a[9]),t.$set(d),n&8&&m(e,"animate-spin",a[3])},i(a){s||(v(t.$$.fragment,a),s=!0)},o(a){y(t.$$.fragment,a),s=!1},d(a){a&&_(e),z(t)}}}function W(o){let e,t;return e=new re({props:{class:"badge absolute top-0 right-0 origin-bottom-left origin-bottom-left translate-y-[-10px] translate-x-[10px]",type:"count",$$slots:{default:[fe]},$$scope:{ctx:o}}}),{c(){B(e.$$.fragment)},l(s){A(e.$$.fragment,s)},m(s,a){U(e,s,a),t=!0},p(s,a){const n={};a&270336&&(n.$$scope={dirty:a,ctx:s}),e.$set(n)},i(s){t||(v(e.$$.fragment,s),t=!0)},o(s){y(e.$$.fragment,s),t=!1},d(s){z(e,s)}}}function fe(o){let e;return{c(){e=oe(o[13])},l(t){e=le(t,o[13])},m(t,s){p(t,e,s)},p(t,s){s&8192&&ie(e,t[13])},d(t){t&&_(e)}}}function ce(o){let e,t,s,a;const n=[ne,se],d=[];function u(i,b){return i[8]==="button"?0:1}return e=u(o),t=d[e]=n[e](o),{c(){t.c(),s=H()},l(i){t.l(i),s=H()},m(i,b){d[e].m(i,b),p(i,s,b),a=!0},p(i,[b]){let l=e;e=u(i),e===l?d[e].p(i,b):(k(),y(d[l],1,1,()=>{d[l]=null}),w(),t=d[e],t?t.p(i,b):(t=d[e]=n[e](i),t.c()),v(t,1),t.m(s.parentNode,s))},i(i){a||(v(t),a=!0)},o(i){y(t),a=!1},d(i){d[e].d(i),i&&_(s)}}}function ue(o,e,t){let{$$slots:s={},$$scope:a}=e,{disabled:n=!1}=e,{variant:d="primary"}=e,{thin:u=!1}=e,{loading:i=!1}=e,{href:b=null}=e,{target:l="_self"}=e,{active:r=!1}=e,{large:c=!1}=e,{as:g=b?"anchor":"button"}=e,{icon:M=""}=e,{iconScale:P=1}=e,{classes:R=e.class}=e,{dataCy:T=e.dataCy}=e,{count:q=0}=e,{type:F="button"}=e;function x(f){L.call(this,o,f)}function $(f){L.call(this,o,f)}return o.$$set=f=>{t(19,e=J(J({},e),K(f))),"disabled"in f&&t(0,n=f.disabled),"variant"in f&&t(1,d=f.variant),"thin"in f&&t(2,u=f.thin),"loading"in f&&t(3,i=f.loading),"href"in f&&t(4,b=f.href),"target"in f&&t(5,l=f.target),"active"in f&&t(6,r=f.active),"large"in f&&t(7,c=f.large),"as"in f&&t(8,g=f.as),"icon"in f&&t(9,M=f.icon),"iconScale"in f&&t(10,P=f.iconScale),"classes"in f&&t(11,R=f.classes),"dataCy"in f&&t(12,T=f.dataCy),"count"in f&&t(13,q=f.count),"type"in f&&t(14,F=f.type),"$$scope"in f&&t(18,a=f.$$scope)},e=K(e),[n,d,u,i,b,l,r,c,g,M,P,R,T,q,F,s,x,$,a]}class me extends ee{constructor(e){super(),te(this,e,ue,ce,ae,{disabled:0,variant:1,thin:2,loading:3,href:4,target:5,active:6,large:7,as:8,icon:9,iconScale:10,classes:11,dataCy:12,count:13,type:14})}}export{me as B}; diff --git a/server/generated/ui/_app/chunks/button-808d5fa7.js b/server/generated/ui/_app/chunks/button-808d5fa7.js deleted file mode 100644 index e6c2fd1a8b..0000000000 --- a/server/generated/ui/_app/chunks/button-808d5fa7.js +++ /dev/null @@ -1 +0,0 @@ -import{S as ee,i as te,s as ae,l as H,g as p,n as k,o as y,p as w,q as v,d as _,C as J,V as K,W as L,e as S,w as B,c as C,a as E,x as A,R as h,y as U,B as z,I as D,k as I,m as N,b as m,M as j,T as G,J as Q,K as X,L as Y,t as oe,h as le,j as ie}from"./index-c85ade65.js";import{I as Z}from"./index-c8da0ebb.js";import{B as re}from"./badge-aff3796f.js";function ne(o){let e,t,n,a,s,d,u=(o[9]||o[3])&&O(o);const i=o[15].default,b=D(i,o,o[18],null);return{c(){e=S("a"),u&&u.c(),t=I(),b&&b.c(),this.h()},l(l){e=C(l,"A",{href:!0,class:!0,"data-cy":!0,target:!0,disabled:!0});var r=E(e);u&&u.l(r),t=N(r),b&&b.l(r),r.forEach(_),this.h()},h(){m(e,"href",o[4]),m(e,"class",n="button "+o[1]+" "+o[11]+" svelte-1v6h8f4"),m(e,"data-cy",o[12]),m(e,"target",o[5]),m(e,"disabled",o[0]),h(e,"selected",o[6]),h(e,"large",o[7]),h(e,"disabled",o[0]),h(e,"thin",o[2])},m(l,r){p(l,e,r),u&&u.m(e,null),j(e,t),b&&b.m(e,null),a=!0,s||(d=G(e,"click",o[17]),s=!0)},p(l,r){l[9]||l[3]?u?(u.p(l,r),r&520&&v(u,1)):(u=O(l),u.c(),v(u,1),u.m(e,t)):u&&(k(),y(u,1,1,()=>{u=null}),w()),b&&b.p&&(!a||r&262144)&&Q(b,i,l,l[18],a?Y(i,l[18],r,null):X(l[18]),null),(!a||r&16)&&m(e,"href",l[4]),(!a||r&2050&&n!==(n="button "+l[1]+" "+l[11]+" svelte-1v6h8f4"))&&m(e,"class",n),(!a||r&4096)&&m(e,"data-cy",l[12]),(!a||r&32)&&m(e,"target",l[5]),(!a||r&1)&&m(e,"disabled",l[0]),r&2114&&h(e,"selected",l[6]),r&2178&&h(e,"large",l[7]),r&2051&&h(e,"disabled",l[0]),r&2054&&h(e,"thin",l[2])},i(l){a||(v(u),v(b,l),a=!0)},o(l){y(u),y(b,l),a=!1},d(l){l&&_(e),u&&u.d(),b&&b.d(l),s=!1,d()}}}function se(o){let e,t,n,a,s,d,u,i=(o[9]||o[3])&&V(o);const b=o[15].default,l=D(b,o,o[18],null);let r=o[13]>0&&W(o);return{c(){e=S("button"),i&&i.c(),t=I(),l&&l.c(),n=I(),r&&r.c(),this.h()},l(f){e=C(f,"BUTTON",{class:!0,"data-cy":!0,type:!0});var g=E(e);i&&i.l(g),t=N(g),l&&l.l(g),n=N(g),r&&r.l(g),g.forEach(_),this.h()},h(){m(e,"class",a="button "+o[1]+" "+o[11]+" svelte-1v6h8f4"),m(e,"data-cy",o[12]),m(e,"type",o[14]),e.disabled=o[0],h(e,"selected",o[6]),h(e,"large",o[7]),h(e,"thin",o[2])},m(f,g){p(f,e,g),i&&i.m(e,null),j(e,t),l&&l.m(e,null),j(e,n),r&&r.m(e,null),s=!0,d||(u=G(e,"click",o[16]),d=!0)},p(f,g){f[9]||f[3]?i?(i.p(f,g),g&520&&v(i,1)):(i=V(f),i.c(),v(i,1),i.m(e,t)):i&&(k(),y(i,1,1,()=>{i=null}),w()),l&&l.p&&(!s||g&262144)&&Q(l,b,f,f[18],s?Y(b,f[18],g,null):X(f[18]),null),f[13]>0?r?(r.p(f,g),g&8192&&v(r,1)):(r=W(f),r.c(),v(r,1),r.m(e,null)):r&&(k(),y(r,1,1,()=>{r=null}),w()),(!s||g&2050&&a!==(a="button "+f[1]+" "+f[11]+" svelte-1v6h8f4"))&&m(e,"class",a),(!s||g&4096)&&m(e,"data-cy",f[12]),(!s||g&16384)&&m(e,"type",f[14]),(!s||g&1)&&(e.disabled=f[0]),g&2114&&h(e,"selected",f[6]),g&2178&&h(e,"large",f[7]),g&2054&&h(e,"thin",f[2])},i(f){s||(v(i),v(l,f),v(r),s=!0)},o(f){y(i),y(l,f),y(r),s=!1},d(f){f&&_(e),i&&i.d(),l&&l.d(f),r&&r.d(),d=!1,u()}}}function O(o){let e,t,n;return t=new Z({props:{scale:o[10],width:18,height:18,stroke:"currentcolor",name:o[3]?"spinner":o[9]}}),{c(){e=S("span"),B(t.$$.fragment),this.h()},l(a){e=C(a,"SPAN",{});var s=E(e);A(t.$$.fragment,s),s.forEach(_),this.h()},h(){h(e,"animate-spin",o[3])},m(a,s){p(a,e,s),U(t,e,null),n=!0},p(a,s){const d={};s&1024&&(d.scale=a[10]),s&520&&(d.name=a[3]?"spinner":a[9]),t.$set(d),s&8&&h(e,"animate-spin",a[3])},i(a){n||(v(t.$$.fragment,a),n=!0)},o(a){y(t.$$.fragment,a),n=!1},d(a){a&&_(e),z(t)}}}function V(o){let e,t,n;return t=new Z({props:{scale:o[10],stroke:"currentcolor",name:o[3]?"spinner":o[9]}}),{c(){e=S("span"),B(t.$$.fragment),this.h()},l(a){e=C(a,"SPAN",{});var s=E(e);A(t.$$.fragment,s),s.forEach(_),this.h()},h(){h(e,"animate-spin",o[3])},m(a,s){p(a,e,s),U(t,e,null),n=!0},p(a,s){const d={};s&1024&&(d.scale=a[10]),s&520&&(d.name=a[3]?"spinner":a[9]),t.$set(d),s&8&&h(e,"animate-spin",a[3])},i(a){n||(v(t.$$.fragment,a),n=!0)},o(a){y(t.$$.fragment,a),n=!1},d(a){a&&_(e),z(t)}}}function W(o){let e,t;return e=new re({props:{class:"badge absolute top-0 right-0 origin-bottom-left origin-bottom-left translate-y-[-10px] translate-x-[10px]",type:"count",$$slots:{default:[ce]},$$scope:{ctx:o}}}),{c(){B(e.$$.fragment)},l(n){A(e.$$.fragment,n)},m(n,a){U(e,n,a),t=!0},p(n,a){const s={};a&270336&&(s.$$scope={dirty:a,ctx:n}),e.$set(s)},i(n){t||(v(e.$$.fragment,n),t=!0)},o(n){y(e.$$.fragment,n),t=!1},d(n){z(e,n)}}}function ce(o){let e;return{c(){e=oe(o[13])},l(t){e=le(t,o[13])},m(t,n){p(t,e,n)},p(t,n){n&8192&&ie(e,t[13])},d(t){t&&_(e)}}}function fe(o){let e,t,n,a;const s=[se,ne],d=[];function u(i,b){return i[8]==="button"?0:1}return e=u(o),t=d[e]=s[e](o),{c(){t.c(),n=H()},l(i){t.l(i),n=H()},m(i,b){d[e].m(i,b),p(i,n,b),a=!0},p(i,[b]){let l=e;e=u(i),e===l?d[e].p(i,b):(k(),y(d[l],1,1,()=>{d[l]=null}),w(),t=d[e],t?t.p(i,b):(t=d[e]=s[e](i),t.c()),v(t,1),t.m(n.parentNode,n))},i(i){a||(v(t),a=!0)},o(i){y(t),a=!1},d(i){d[e].d(i),i&&_(n)}}}function ue(o,e,t){let{$$slots:n={},$$scope:a}=e,{disabled:s=!1}=e,{variant:d="primary"}=e,{thin:u=!1}=e,{loading:i=!1}=e,{href:b=null}=e,{target:l="_self"}=e,{active:r=!1}=e,{large:f=!1}=e,{as:g=b?"anchor":"button"}=e,{icon:M=""}=e,{iconScale:P=1}=e,{classes:R=e.class}=e,{dataCy:T=e.dataCy}=e,{count:q=0}=e,{type:F="button"}=e;function x(c){L.call(this,o,c)}function $(c){L.call(this,o,c)}return o.$$set=c=>{t(19,e=J(J({},e),K(c))),"disabled"in c&&t(0,s=c.disabled),"variant"in c&&t(1,d=c.variant),"thin"in c&&t(2,u=c.thin),"loading"in c&&t(3,i=c.loading),"href"in c&&t(4,b=c.href),"target"in c&&t(5,l=c.target),"active"in c&&t(6,r=c.active),"large"in c&&t(7,f=c.large),"as"in c&&t(8,g=c.as),"icon"in c&&t(9,M=c.icon),"iconScale"in c&&t(10,P=c.iconScale),"classes"in c&&t(11,R=c.classes),"dataCy"in c&&t(12,T=c.dataCy),"count"in c&&t(13,q=c.count),"type"in c&&t(14,F=c.type),"$$scope"in c&&t(18,a=c.$$scope)},e=K(e),[s,d,u,i,b,l,r,f,g,M,P,R,T,q,F,n,x,$,a]}class he extends ee{constructor(e){super(),te(this,e,ue,fe,ae,{disabled:0,variant:1,thin:2,loading:3,href:4,target:5,active:6,large:7,as:8,icon:9,iconScale:10,classes:11,dataCy:12,count:13,type:14})}}export{he as B}; diff --git a/server/generated/ui/_app/chunks/data-encoder-status-631dfb3f.js b/server/generated/ui/_app/chunks/data-encoder-status-5dabd0ab.js similarity index 99% rename from server/generated/ui/_app/chunks/data-encoder-status-631dfb3f.js rename to server/generated/ui/_app/chunks/data-encoder-status-5dabd0ab.js index 80170caeab..ce7c0ac186 100644 --- a/server/generated/ui/_app/chunks/data-encoder-status-631dfb3f.js +++ b/server/generated/ui/_app/chunks/data-encoder-status-5dabd0ab.js @@ -1 +1 @@ -import{S as oe,i as le,s as se,H as x,w as R,x as U,y as V,q as y,o as w,B as H,N as X,e as k,t as M,c as v,a as C,h as L,d as p,b as h,g as S,M as g,E as K,k as D,m as I,n as G,p as J,a8 as F,j as Q,aa as j,T as q,l as A}from"./index-c85ade65.js";import{I as O}from"./index-c8da0ebb.js";import{d as ce}from"./index-203c0d43.js";import{p as ie}from"./stores-2c13cc16.js";import{d as Y,l as fe}from"./data-converter-config-b3e1b826.js";import{d as z,l as ue,v as de,a as pe}from"./is-http-249a0663.js";import{T as Z}from"./tooltip-0cd6d07a.js";import{M as _e}from"./modal-452aea0f.js";import{B as W}from"./button-808d5fa7.js";const ae=ce([ie,z,ue,Y,fe],([c,e,t,n,r])=>{var m,$;const l=c.params.namespace,s=(m=c.stuff.settings.codec)==null?void 0:m.endpoint,a=e||s,o=($=c.stuff.settings.codec)==null?void 0:$.accessToken;return{namespace:l,settingsEndpoint:s,endpoint:a,accessToken:o,hasNotRequested:a?t==="notRequested":r==="notRequested",hasError:a?t==="error":r==="error",hasSuccess:a?t==="success":r==="success",hasEndpointAndPortConfigured:a&&n,hasEndpointOrPortConfigured:a||n}});function me(c){let e,t;return{c(){e=k("h3"),t=M("Data Encoder"),this.h()},l(n){e=v(n,"H3",{slot:!0,"data-cy":!0});var r=C(e);t=L(r,"Data Encoder"),r.forEach(p),this.h()},h(){h(e,"slot","title"),h(e,"data-cy","data-encoder-title")},m(n,r){S(n,e,r),g(e,t)},p:K,d(n){n&&p(e)}}}function he(c){let e,t,n,r,l,s,a,o,f,i,u,d;o=new W({props:{variant:"secondary",dataCy:"data-encoder-set-endpoint",$$slots:{default:[ge]},$$scope:{ctx:c}}}),o.$on("click",c[8]);let _=c[4]&&ee(c);return{c(){e=k("div"),t=k("h3"),n=M("Remote Codec Endpoint"),r=D(),l=k("div"),s=k("input"),a=D(),R(o.$$.fragment),f=D(),_&&_.c(),this.h()},l(m){e=v(m,"DIV",{class:!0});var $=C(e);t=v($,"H3",{class:!0,"data-cy":!0});var b=C(t);n=L(b,"Remote Codec Endpoint"),b.forEach(p),r=I($),l=v($,"DIV",{class:!0});var T=C(l);s=v(T,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),a=I(T),U(o.$$.fragment,T),T.forEach(p),f=I($),_&&_.l($),$.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-endpoint-title"),h(s,"class","block w-80 rounded-md border border-gray-200 p-2"),h(s,"placeholder","Endpoint"),h(s,"data-cy","data-encoder-endpoint-input"),h(l,"class","flex items-center justify-between"),h(e,"class","mb-4")},m(m,$){S(m,e,$),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),j(s,c[2]),g(l,a),V(o,l,null),g(e,f),_&&_.m(e,null),i=!0,u||(d=q(s,"input",c[13]),u=!0)},p(m,$){$&4&&s.value!==m[2]&&j(s,m[2]);const b={};$&131072&&(b.$$scope={dirty:$,ctx:m}),o.$set(b),m[4]?_?_.p(m,$):(_=ee(m),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(m){i||(y(o.$$.fragment,m),i=!0)},o(m){w(o.$$.fragment,m),i=!1},d(m){m&&p(e),H(o),_&&_.d(),u=!1,d()}}}function $e(c){let e,t,n,r,l,s,a,o,f,i;const u=[ke,be],d=[];function _(b,T){return b[6]?0:1}s=_(c),a=d[s]=u[s](c);let m=c[4]&&te(c),$=c[7].settingsEndpoint&&ne(c);return{c(){e=k("div"),t=k("h3"),n=M("Remote Codec Endpoint"),r=D(),l=k("div"),a.c(),o=D(),m&&m.c(),f=D(),$&&$.c(),this.h()},l(b){e=v(b,"DIV",{class:!0});var T=C(e);t=v(T,"H3",{class:!0,"data-cy":!0});var E=C(t);n=L(E,"Remote Codec Endpoint"),E.forEach(p),r=I(T),l=v(T,"DIV",{class:!0});var P=C(l);a.l(P),P.forEach(p),o=I(T),m&&m.l(T),f=I(T),$&&$.l(T),T.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-endpoint-title"),h(l,"class","flex items-center justify-between"),h(e,"class","mb-4")},m(b,T){S(b,e,T),g(e,t),g(t,n),g(e,r),g(e,l),d[s].m(l,null),g(e,o),m&&m.m(e,null),g(e,f),$&&$.m(e,null),i=!0},p(b,T){let E=s;s=_(b),s===E?d[s].p(b,T):(G(),w(d[E],1,1,()=>{d[E]=null}),J(),a=d[s],a?a.p(b,T):(a=d[s]=u[s](b),a.c()),y(a,1),a.m(l,null)),b[4]?m?m.p(b,T):(m=te(b),m.c(),m.m(e,f)):m&&(m.d(1),m=null),b[7].settingsEndpoint?$?$.p(b,T):($=ne(b),$.c(),$.m(e,null)):$&&($.d(1),$=null)},i(b){i||(y(a),i=!0)},o(b){w(a),i=!1},d(b){b&&p(e),d[s].d(),m&&m.d(),$&&$.d()}}}function ge(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function ee(c){let e,t;return{c(){e=k("small"),t=M(c[4]),this.h()},l(n){e=v(n,"SMALL",{"data-cy":!0,class:!0});var r=C(e);t=L(r,c[4]),r.forEach(p),this.h()},h(){h(e,"data-cy","data-encoder-endpoint-error"),h(e,"class","text-red-700")},m(n,r){S(n,e,r),g(e,t)},p(n,r){r&16&&Q(t,n[4])},d(n){n&&p(e)}}}function be(c){let e,t,n,r,l,s;return n=new W({props:{variant:"secondary",dataCy:"data-encoder-set-endpoint",$$slots:{default:[ve]},$$scope:{ctx:c}}}),n.$on("click",c[8]),{c(){e=k("input"),t=D(),R(n.$$.fragment),this.h()},l(a){e=v(a,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),t=I(a),U(n.$$.fragment,a),this.h()},h(){h(e,"class","block w-80 rounded-md border border-gray-200 p-2"),h(e,"placeholder","Endpoint"),h(e,"data-cy","data-encoder-endpoint-input")},m(a,o){S(a,e,o),j(e,c[2]),S(a,t,o),V(n,a,o),r=!0,l||(s=q(e,"input",c[12]),l=!0)},p(a,o){o&4&&e.value!==a[2]&&j(e,a[2]);const f={};o&131072&&(f.$$scope={dirty:o,ctx:a}),n.$set(f)},i(a){r||(y(n.$$.fragment,a),r=!0)},o(a){w(n.$$.fragment,a),r=!1},d(a){a&&p(e),a&&p(t),H(n,a),l=!1,s()}}}function ke(c){let e,t=c[7].endpoint+"",n,r,l,s;return l=new W({props:{variant:"secondary",dataCy:"data-encoder-clear-endpoint",$$slots:{default:[Ee]},$$scope:{ctx:c}}}),l.$on("click",c[9]),{c(){e=k("p"),n=M(t),r=D(),R(l.$$.fragment),this.h()},l(a){e=v(a,"P",{"data-cy":!0});var o=C(e);n=L(o,t),o.forEach(p),r=I(a),U(l.$$.fragment,a),this.h()},h(){h(e,"data-cy","data-encoder-endpoint")},m(a,o){S(a,e,o),g(e,n),S(a,r,o),V(l,a,o),s=!0},p(a,o){(!s||o&128)&&t!==(t=a[7].endpoint+"")&&Q(n,t);const f={};o&131072&&(f.$$scope={dirty:o,ctx:a}),l.$set(f)},i(a){s||(y(l.$$.fragment,a),s=!0)},o(a){w(l.$$.fragment,a),s=!1},d(a){a&&p(e),a&&p(r),H(l,a)}}}function ve(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Ee(c){let e;return{c(){e=M("Clear")},l(t){e=L(t,"Clear")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function te(c){let e,t;return{c(){e=k("small"),t=M(c[4]),this.h()},l(n){e=v(n,"SMALL",{"data-cy":!0,class:!0});var r=C(e);t=L(r,c[4]),r.forEach(p),this.h()},h(){h(e,"data-cy","data-encoder-endpoint-error"),h(e,"class","text-red-700")},m(n,r){S(n,e,r),g(e,t)},p(n,r){r&16&&Q(t,n[4])},d(n){n&&p(e)}}}function ne(c){let e,t,n=c[7].settingsEndpoint+"",r,l,s,a,o,f,i=c[6]&&re();return{c(){e=k("div"),t=k("p"),r=M(n),l=D(),s=k("p"),a=M("Site setting"),o=D(),i&&i.c(),f=A(),this.h()},l(u){e=v(u,"DIV",{class:!0});var d=C(e);t=v(d,"P",{"data-cy":!0});var _=C(t);r=L(_,n),_.forEach(p),l=I(d),s=v(d,"P",{"data-cy":!0});var m=C(s);a=L(m,"Site setting"),m.forEach(p),d.forEach(p),o=I(u),i&&i.l(u),f=A(),this.h()},h(){h(t,"data-cy","data-encoder-site-endpoint"),h(s,"data-cy","data-encoder-site-settings"),h(e,"class","mt-4 flex items-center justify-between")},m(u,d){S(u,e,d),g(e,t),g(t,r),g(e,l),g(e,s),g(s,a),S(u,o,d),i&&i.m(u,d),S(u,f,d)},p(u,d){d&128&&n!==(n=u[7].settingsEndpoint+"")&&Q(r,n),u[6]?i||(i=re(),i.c(),i.m(f.parentNode,f)):i&&(i.d(1),i=null)},d(u){u&&p(e),u&&p(o),i&&i.d(u),u&&p(f)}}}function re(c){let e,t;return{c(){e=k("small"),t=M("Set endpoint overrides site setting endpoint."),this.h()},l(n){e=v(n,"SMALL",{class:!0,"data-cy":!0});var r=C(e);t=L(r,"Set endpoint overrides site setting endpoint."),r.forEach(p),this.h()},h(){h(e,"class","text-yellow-700"),h(e,"data-cy","data-encoder-endpoint-info")},m(n,r){S(n,e,r),g(e,t)},d(n){n&&p(e)}}}function ye(c){let e,t,n,r,l,s,a,o,f,i,u;return o=new W({props:{variant:"secondary",dataCy:"data-encoder-set-port",$$slots:{default:[Ce]},$$scope:{ctx:c}}}),o.$on("click",c[15]),{c(){e=k("div"),t=k("h3"),n=M("tctl plugin port"),r=D(),l=k("div"),s=k("input"),a=D(),R(o.$$.fragment),this.h()},l(d){e=v(d,"DIV",{class:!0});var _=C(e);t=v(_,"H3",{class:!0,"data-cy":!0});var m=C(t);n=L(m,"tctl plugin port"),m.forEach(p),r=I(_),l=v(_,"DIV",{class:!0});var $=C(l);s=v($,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),a=I($),U(o.$$.fragment,$),$.forEach(p),_.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-port-title"),h(s,"class","block w-80 rounded-md border border-gray-200 p-2"),h(s,"placeholder","Port"),h(s,"data-cy","data-encoder-port-input"),h(l,"class","flex items-center justify-between"),h(e,"class","my-4")},m(d,_){S(d,e,_),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),j(s,c[3]),g(l,a),V(o,l,null),f=!0,i||(u=q(s,"input",c[14]),i=!0)},p(d,_){_&8&&s.value!==d[3]&&j(s,d[3]);const m={};_&131072&&(m.$$scope={dirty:_,ctx:d}),o.$set(m)},i(d){f||(y(o.$$.fragment,d),f=!0)},o(d){w(o.$$.fragment,d),f=!1},d(d){d&&p(e),H(o),i=!1,u()}}}function we(c){let e,t,n,r,l,s,a,o,f,i;return f=new W({props:{variant:"secondary",dataCy:"data-encoder-clear-port",$$slots:{default:[Se]},$$scope:{ctx:c}}}),f.$on("click",c[10]),{c(){e=k("div"),t=k("h3"),n=M("tctl plugin port"),r=D(),l=k("div"),s=k("p"),a=M(c[5]),o=D(),R(f.$$.fragment),this.h()},l(u){e=v(u,"DIV",{class:!0});var d=C(e);t=v(d,"H3",{class:!0,"data-cy":!0});var _=C(t);n=L(_,"tctl plugin port"),_.forEach(p),r=I(d),l=v(d,"DIV",{class:!0});var m=C(l);s=v(m,"P",{"data-cy":!0});var $=C(s);a=L($,c[5]),$.forEach(p),o=I(m),U(f.$$.fragment,m),m.forEach(p),d.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-port-title"),h(s,"data-cy","data-encoder-port"),h(l,"class","flex items-center justify-between"),h(e,"class","my-4")},m(u,d){S(u,e,d),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),g(s,a),g(l,o),V(f,l,null),i=!0},p(u,d){(!i||d&32)&&Q(a,u[5]);const _={};d&131072&&(_.$$scope={dirty:d,ctx:u}),f.$set(_)},i(u){i||(y(f.$$.fragment,u),i=!0)},o(u){w(f.$$.fragment,u),i=!1},d(u){u&&p(e),H(f)}}}function Ce(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Se(c){let e;return{c(){e=M("Clear")},l(t){e=L(t,"Clear")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Te(c){let e,t,n,r,l,s,a,o,f,i,u;const d=[$e,he],_=[];function m(E,P){return E[7].endpoint?0:1}t=m(c),n=_[t]=d[t](c);const $=[we,ye],b=[];function T(E,P){return E[5]?0:1}return l=T(c),s=b[l]=$[l](c),{c(){e=k("div"),n.c(),r=D(),s.c(),a=D(),o=k("div"),f=k("small"),i=M("If both are set, the Remote Codec Endpoint will be used."),this.h()},l(E){e=v(E,"DIV",{slot:!0});var P=C(e);n.l(P),r=I(P),s.l(P),a=I(P),o=v(P,"DIV",{});var N=C(o);f=v(N,"SMALL",{"data-cy":!0});var B=C(f);i=L(B,"If both are set, the Remote Codec Endpoint will be used."),B.forEach(p),N.forEach(p),P.forEach(p),this.h()},h(){h(f,"data-cy","data-encoder-info"),h(e,"slot","content")},m(E,P){S(E,e,P),_[t].m(e,null),g(e,r),b[l].m(e,null),g(e,a),g(e,o),g(o,f),g(f,i),u=!0},p(E,P){let N=t;t=m(E),t===N?_[t].p(E,P):(G(),w(_[N],1,1,()=>{_[N]=null}),J(),n=_[t],n?n.p(E,P):(n=_[t]=d[t](E),n.c()),y(n,1),n.m(e,r));let B=l;l=T(E),l===B?b[l].p(E,P):(G(),w(b[B],1,1,()=>{b[B]=null}),J(),s=b[l],s?s.p(E,P):(s=b[l]=$[l](E),s.c()),y(s,1),s.m(e,a))},i(E){u||(y(n),y(s),u=!0)},o(E){w(n),w(s),u=!1},d(E){E&&p(e),_[t].d(),b[l].d()}}}function De(c){let e,t;return e=new _e({props:{open:c[0],hideConfirm:!0,$$slots:{content:[Te],title:[me]},$$scope:{ctx:c}}}),e.$on("cancelModal",function(){x(c[1])&&c[1].apply(this,arguments)}),e.$on("confirmModal",function(){x(c[1])&&c[1].apply(this,arguments)}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,[r]){c=n;const l={};r&1&&(l.open=c[0]),r&131324&&(l.$$scope={dirty:r,ctx:c}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ie(c,e,t){let n,r,l,s;X(c,Y,N=>t(5,r=N)),X(c,z,N=>t(6,l=N)),X(c,ae,N=>t(7,s=N));let{showSettings:a}=e,{accessToken:o}=e,{onCancel:f}=e,i="",u="";const d=()=>{pe(i)?(F(z,l=i,l),t(4,n="")):t(4,n="Endpoint must start with https:// to authenticate")},_=()=>{de(i)?o?d():(F(z,l=i,l),t(4,n="")):t(4,n="Endpoint must start with http:// or https://")},m=()=>{t(2,i=""),F(z,l=null,l)},$=()=>{t(3,u=""),F(Y,r=null,r)};function b(){i=this.value,t(2,i)}function T(){i=this.value,t(2,i)}function E(){u=this.value,t(3,u)}const P=()=>F(Y,r=u,r);return c.$$set=N=>{"showSettings"in N&&t(0,a=N.showSettings),"accessToken"in N&&t(11,o=N.accessToken),"onCancel"in N&&t(1,f=N.onCancel)},t(4,n=""),[a,f,i,u,n,r,l,s,_,m,$,o,b,T,E,P]}class Pe extends oe{constructor(e){super(),le(this,e,Ie,De,se,{showSettings:0,accessToken:11,onCancel:1})}}function Ne(c){let e,t;return e=new Z({props:{right:!0,text:"Configure data encoder",$$slots:{default:[Ue]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Re(c){let e,t,n,r;const l=[Me,He,Ve],s=[];function a(o,f){var i;return(i=o[1])!=null&&i.hasNotRequested?0:o[1].hasError?1:o[1].hasSuccess?2:-1}return~(e=a(c))&&(t=s[e]=l[e](c)),{c(){t&&t.c(),n=A()},l(o){t&&t.l(o),n=A()},m(o,f){~e&&s[e].m(o,f),S(o,n,f),r=!0},p(o,f){let i=e;e=a(o),e===i?~e&&s[e].p(o,f):(t&&(G(),w(s[i],1,1,()=>{s[i]=null}),J()),~e?(t=s[e],t?t.p(o,f):(t=s[e]=l[e](o),t.c()),y(t,1),t.m(n.parentNode,n)):t=null)},i(o){r||(y(t),r=!0)},o(o){w(t),r=!1},d(o){~e&&s[e].d(o),o&&p(n)}}}function Ue(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#e4e4e7"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#e4e4e7"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[6]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Ve(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder succesfully converted content",$$slots:{default:[Le]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function He(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder couldn't connect to the remote encoder",$$slots:{default:[Oe]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Me(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder is configured",$$slots:{default:[qe]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Le(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#4ade80"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#4ade80"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-success")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[5]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Oe(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#f87171"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#f87171"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-error")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[4]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function qe(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#bfdbfe"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#bfdbfe"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-configured")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[3]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Be(c){let e,t,n,r,l,s;e=new Pe({props:{showSettings:c[0],onCancel:c[2],accessToken:c[1].accessToken}});const a=[Re,Ne],o=[];function f(i,u){var d;return(d=i[1])!=null&&d.hasEndpointOrPortConfigured?0:1}return n=f(c),r=o[n]=a[n](c),{c(){R(e.$$.fragment),t=D(),r.c(),l=A()},l(i){U(e.$$.fragment,i),t=I(i),r.l(i),l=A()},m(i,u){V(e,i,u),S(i,t,u),o[n].m(i,u),S(i,l,u),s=!0},p(i,[u]){const d={};u&1&&(d.showSettings=i[0]),u&2&&(d.accessToken=i[1].accessToken),e.$set(d);let _=n;n=f(i),n===_?o[n].p(i,u):(G(),w(o[_],1,1,()=>{o[_]=null}),J(),r=o[n],r?r.p(i,u):(r=o[n]=a[n](i),r.c()),y(r,1),r.m(l.parentNode,l))},i(i){s||(y(e.$$.fragment,i),y(r),s=!0)},o(i){w(e.$$.fragment,i),w(r),s=!1},d(i){H(e,i),i&&p(t),o[n].d(i),i&&p(l)}}}function je(c,e,t){let n;X(c,ae,i=>t(1,n=i));let r=!1;return[r,n,()=>t(0,r=!1),()=>t(0,r=!0),()=>t(0,r=!0),()=>t(0,r=!0),()=>t(0,r=!0)]}class Ye extends oe{constructor(e){super(),le(this,e,je,Be,se,{})}}export{Ye as D}; +import{S as oe,i as le,s as se,H as x,w as R,x as U,y as V,q as y,o as w,B as H,N as X,e as k,t as M,c as v,a as C,h as L,d as p,b as h,g as S,M as g,E as K,k as D,m as I,n as G,p as J,a8 as F,j as Q,aa as j,T as q,l as A}from"./index-c85ade65.js";import{I as O}from"./index-c8da0ebb.js";import{d as ce}from"./index-203c0d43.js";import{p as ie}from"./stores-2c13cc16.js";import{d as Y,l as fe}from"./data-converter-config-b3e1b826.js";import{d as z,l as ue,v as de,a as pe}from"./is-http-249a0663.js";import{T as Z}from"./tooltip-0cd6d07a.js";import{M as _e}from"./modal-c93f492b.js";import{B as W}from"./button-6823eb61.js";const ae=ce([ie,z,ue,Y,fe],([c,e,t,n,r])=>{var m,$;const l=c.params.namespace,s=(m=c.stuff.settings.codec)==null?void 0:m.endpoint,a=e||s,o=($=c.stuff.settings.codec)==null?void 0:$.accessToken;return{namespace:l,settingsEndpoint:s,endpoint:a,accessToken:o,hasNotRequested:a?t==="notRequested":r==="notRequested",hasError:a?t==="error":r==="error",hasSuccess:a?t==="success":r==="success",hasEndpointAndPortConfigured:a&&n,hasEndpointOrPortConfigured:a||n}});function me(c){let e,t;return{c(){e=k("h3"),t=M("Data Encoder"),this.h()},l(n){e=v(n,"H3",{slot:!0,"data-cy":!0});var r=C(e);t=L(r,"Data Encoder"),r.forEach(p),this.h()},h(){h(e,"slot","title"),h(e,"data-cy","data-encoder-title")},m(n,r){S(n,e,r),g(e,t)},p:K,d(n){n&&p(e)}}}function he(c){let e,t,n,r,l,s,a,o,f,i,u,d;o=new W({props:{variant:"secondary",dataCy:"data-encoder-set-endpoint",$$slots:{default:[ge]},$$scope:{ctx:c}}}),o.$on("click",c[8]);let _=c[4]&&ee(c);return{c(){e=k("div"),t=k("h3"),n=M("Remote Codec Endpoint"),r=D(),l=k("div"),s=k("input"),a=D(),R(o.$$.fragment),f=D(),_&&_.c(),this.h()},l(m){e=v(m,"DIV",{class:!0});var $=C(e);t=v($,"H3",{class:!0,"data-cy":!0});var b=C(t);n=L(b,"Remote Codec Endpoint"),b.forEach(p),r=I($),l=v($,"DIV",{class:!0});var T=C(l);s=v(T,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),a=I(T),U(o.$$.fragment,T),T.forEach(p),f=I($),_&&_.l($),$.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-endpoint-title"),h(s,"class","block w-80 rounded-md border border-gray-200 p-2"),h(s,"placeholder","Endpoint"),h(s,"data-cy","data-encoder-endpoint-input"),h(l,"class","flex items-center justify-between"),h(e,"class","mb-4")},m(m,$){S(m,e,$),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),j(s,c[2]),g(l,a),V(o,l,null),g(e,f),_&&_.m(e,null),i=!0,u||(d=q(s,"input",c[13]),u=!0)},p(m,$){$&4&&s.value!==m[2]&&j(s,m[2]);const b={};$&131072&&(b.$$scope={dirty:$,ctx:m}),o.$set(b),m[4]?_?_.p(m,$):(_=ee(m),_.c(),_.m(e,null)):_&&(_.d(1),_=null)},i(m){i||(y(o.$$.fragment,m),i=!0)},o(m){w(o.$$.fragment,m),i=!1},d(m){m&&p(e),H(o),_&&_.d(),u=!1,d()}}}function $e(c){let e,t,n,r,l,s,a,o,f,i;const u=[ke,be],d=[];function _(b,T){return b[6]?0:1}s=_(c),a=d[s]=u[s](c);let m=c[4]&&te(c),$=c[7].settingsEndpoint&&ne(c);return{c(){e=k("div"),t=k("h3"),n=M("Remote Codec Endpoint"),r=D(),l=k("div"),a.c(),o=D(),m&&m.c(),f=D(),$&&$.c(),this.h()},l(b){e=v(b,"DIV",{class:!0});var T=C(e);t=v(T,"H3",{class:!0,"data-cy":!0});var E=C(t);n=L(E,"Remote Codec Endpoint"),E.forEach(p),r=I(T),l=v(T,"DIV",{class:!0});var P=C(l);a.l(P),P.forEach(p),o=I(T),m&&m.l(T),f=I(T),$&&$.l(T),T.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-endpoint-title"),h(l,"class","flex items-center justify-between"),h(e,"class","mb-4")},m(b,T){S(b,e,T),g(e,t),g(t,n),g(e,r),g(e,l),d[s].m(l,null),g(e,o),m&&m.m(e,null),g(e,f),$&&$.m(e,null),i=!0},p(b,T){let E=s;s=_(b),s===E?d[s].p(b,T):(G(),w(d[E],1,1,()=>{d[E]=null}),J(),a=d[s],a?a.p(b,T):(a=d[s]=u[s](b),a.c()),y(a,1),a.m(l,null)),b[4]?m?m.p(b,T):(m=te(b),m.c(),m.m(e,f)):m&&(m.d(1),m=null),b[7].settingsEndpoint?$?$.p(b,T):($=ne(b),$.c(),$.m(e,null)):$&&($.d(1),$=null)},i(b){i||(y(a),i=!0)},o(b){w(a),i=!1},d(b){b&&p(e),d[s].d(),m&&m.d(),$&&$.d()}}}function ge(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function ee(c){let e,t;return{c(){e=k("small"),t=M(c[4]),this.h()},l(n){e=v(n,"SMALL",{"data-cy":!0,class:!0});var r=C(e);t=L(r,c[4]),r.forEach(p),this.h()},h(){h(e,"data-cy","data-encoder-endpoint-error"),h(e,"class","text-red-700")},m(n,r){S(n,e,r),g(e,t)},p(n,r){r&16&&Q(t,n[4])},d(n){n&&p(e)}}}function be(c){let e,t,n,r,l,s;return n=new W({props:{variant:"secondary",dataCy:"data-encoder-set-endpoint",$$slots:{default:[ve]},$$scope:{ctx:c}}}),n.$on("click",c[8]),{c(){e=k("input"),t=D(),R(n.$$.fragment),this.h()},l(a){e=v(a,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),t=I(a),U(n.$$.fragment,a),this.h()},h(){h(e,"class","block w-80 rounded-md border border-gray-200 p-2"),h(e,"placeholder","Endpoint"),h(e,"data-cy","data-encoder-endpoint-input")},m(a,o){S(a,e,o),j(e,c[2]),S(a,t,o),V(n,a,o),r=!0,l||(s=q(e,"input",c[12]),l=!0)},p(a,o){o&4&&e.value!==a[2]&&j(e,a[2]);const f={};o&131072&&(f.$$scope={dirty:o,ctx:a}),n.$set(f)},i(a){r||(y(n.$$.fragment,a),r=!0)},o(a){w(n.$$.fragment,a),r=!1},d(a){a&&p(e),a&&p(t),H(n,a),l=!1,s()}}}function ke(c){let e,t=c[7].endpoint+"",n,r,l,s;return l=new W({props:{variant:"secondary",dataCy:"data-encoder-clear-endpoint",$$slots:{default:[Ee]},$$scope:{ctx:c}}}),l.$on("click",c[9]),{c(){e=k("p"),n=M(t),r=D(),R(l.$$.fragment),this.h()},l(a){e=v(a,"P",{"data-cy":!0});var o=C(e);n=L(o,t),o.forEach(p),r=I(a),U(l.$$.fragment,a),this.h()},h(){h(e,"data-cy","data-encoder-endpoint")},m(a,o){S(a,e,o),g(e,n),S(a,r,o),V(l,a,o),s=!0},p(a,o){(!s||o&128)&&t!==(t=a[7].endpoint+"")&&Q(n,t);const f={};o&131072&&(f.$$scope={dirty:o,ctx:a}),l.$set(f)},i(a){s||(y(l.$$.fragment,a),s=!0)},o(a){w(l.$$.fragment,a),s=!1},d(a){a&&p(e),a&&p(r),H(l,a)}}}function ve(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Ee(c){let e;return{c(){e=M("Clear")},l(t){e=L(t,"Clear")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function te(c){let e,t;return{c(){e=k("small"),t=M(c[4]),this.h()},l(n){e=v(n,"SMALL",{"data-cy":!0,class:!0});var r=C(e);t=L(r,c[4]),r.forEach(p),this.h()},h(){h(e,"data-cy","data-encoder-endpoint-error"),h(e,"class","text-red-700")},m(n,r){S(n,e,r),g(e,t)},p(n,r){r&16&&Q(t,n[4])},d(n){n&&p(e)}}}function ne(c){let e,t,n=c[7].settingsEndpoint+"",r,l,s,a,o,f,i=c[6]&&re();return{c(){e=k("div"),t=k("p"),r=M(n),l=D(),s=k("p"),a=M("Site setting"),o=D(),i&&i.c(),f=A(),this.h()},l(u){e=v(u,"DIV",{class:!0});var d=C(e);t=v(d,"P",{"data-cy":!0});var _=C(t);r=L(_,n),_.forEach(p),l=I(d),s=v(d,"P",{"data-cy":!0});var m=C(s);a=L(m,"Site setting"),m.forEach(p),d.forEach(p),o=I(u),i&&i.l(u),f=A(),this.h()},h(){h(t,"data-cy","data-encoder-site-endpoint"),h(s,"data-cy","data-encoder-site-settings"),h(e,"class","mt-4 flex items-center justify-between")},m(u,d){S(u,e,d),g(e,t),g(t,r),g(e,l),g(e,s),g(s,a),S(u,o,d),i&&i.m(u,d),S(u,f,d)},p(u,d){d&128&&n!==(n=u[7].settingsEndpoint+"")&&Q(r,n),u[6]?i||(i=re(),i.c(),i.m(f.parentNode,f)):i&&(i.d(1),i=null)},d(u){u&&p(e),u&&p(o),i&&i.d(u),u&&p(f)}}}function re(c){let e,t;return{c(){e=k("small"),t=M("Set endpoint overrides site setting endpoint."),this.h()},l(n){e=v(n,"SMALL",{class:!0,"data-cy":!0});var r=C(e);t=L(r,"Set endpoint overrides site setting endpoint."),r.forEach(p),this.h()},h(){h(e,"class","text-yellow-700"),h(e,"data-cy","data-encoder-endpoint-info")},m(n,r){S(n,e,r),g(e,t)},d(n){n&&p(e)}}}function ye(c){let e,t,n,r,l,s,a,o,f,i,u;return o=new W({props:{variant:"secondary",dataCy:"data-encoder-set-port",$$slots:{default:[Ce]},$$scope:{ctx:c}}}),o.$on("click",c[15]),{c(){e=k("div"),t=k("h3"),n=M("tctl plugin port"),r=D(),l=k("div"),s=k("input"),a=D(),R(o.$$.fragment),this.h()},l(d){e=v(d,"DIV",{class:!0});var _=C(e);t=v(_,"H3",{class:!0,"data-cy":!0});var m=C(t);n=L(m,"tctl plugin port"),m.forEach(p),r=I(_),l=v(_,"DIV",{class:!0});var $=C(l);s=v($,"INPUT",{class:!0,placeholder:!0,"data-cy":!0}),a=I($),U(o.$$.fragment,$),$.forEach(p),_.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-port-title"),h(s,"class","block w-80 rounded-md border border-gray-200 p-2"),h(s,"placeholder","Port"),h(s,"data-cy","data-encoder-port-input"),h(l,"class","flex items-center justify-between"),h(e,"class","my-4")},m(d,_){S(d,e,_),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),j(s,c[3]),g(l,a),V(o,l,null),f=!0,i||(u=q(s,"input",c[14]),i=!0)},p(d,_){_&8&&s.value!==d[3]&&j(s,d[3]);const m={};_&131072&&(m.$$scope={dirty:_,ctx:d}),o.$set(m)},i(d){f||(y(o.$$.fragment,d),f=!0)},o(d){w(o.$$.fragment,d),f=!1},d(d){d&&p(e),H(o),i=!1,u()}}}function we(c){let e,t,n,r,l,s,a,o,f,i;return f=new W({props:{variant:"secondary",dataCy:"data-encoder-clear-port",$$slots:{default:[Se]},$$scope:{ctx:c}}}),f.$on("click",c[10]),{c(){e=k("div"),t=k("h3"),n=M("tctl plugin port"),r=D(),l=k("div"),s=k("p"),a=M(c[5]),o=D(),R(f.$$.fragment),this.h()},l(u){e=v(u,"DIV",{class:!0});var d=C(e);t=v(d,"H3",{class:!0,"data-cy":!0});var _=C(t);n=L(_,"tctl plugin port"),_.forEach(p),r=I(d),l=v(d,"DIV",{class:!0});var m=C(l);s=v(m,"P",{"data-cy":!0});var $=C(s);a=L($,c[5]),$.forEach(p),o=I(m),U(f.$$.fragment,m),m.forEach(p),d.forEach(p),this.h()},h(){h(t,"class","font-medium"),h(t,"data-cy","data-encoder-port-title"),h(s,"data-cy","data-encoder-port"),h(l,"class","flex items-center justify-between"),h(e,"class","my-4")},m(u,d){S(u,e,d),g(e,t),g(t,n),g(e,r),g(e,l),g(l,s),g(s,a),g(l,o),V(f,l,null),i=!0},p(u,d){(!i||d&32)&&Q(a,u[5]);const _={};d&131072&&(_.$$scope={dirty:d,ctx:u}),f.$set(_)},i(u){i||(y(f.$$.fragment,u),i=!0)},o(u){w(f.$$.fragment,u),i=!1},d(u){u&&p(e),H(f)}}}function Ce(c){let e;return{c(){e=M("Set")},l(t){e=L(t,"Set")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Se(c){let e;return{c(){e=M("Clear")},l(t){e=L(t,"Clear")},m(t,n){S(t,e,n)},d(t){t&&p(e)}}}function Te(c){let e,t,n,r,l,s,a,o,f,i,u;const d=[$e,he],_=[];function m(E,P){return E[7].endpoint?0:1}t=m(c),n=_[t]=d[t](c);const $=[we,ye],b=[];function T(E,P){return E[5]?0:1}return l=T(c),s=b[l]=$[l](c),{c(){e=k("div"),n.c(),r=D(),s.c(),a=D(),o=k("div"),f=k("small"),i=M("If both are set, the Remote Codec Endpoint will be used."),this.h()},l(E){e=v(E,"DIV",{slot:!0});var P=C(e);n.l(P),r=I(P),s.l(P),a=I(P),o=v(P,"DIV",{});var N=C(o);f=v(N,"SMALL",{"data-cy":!0});var B=C(f);i=L(B,"If both are set, the Remote Codec Endpoint will be used."),B.forEach(p),N.forEach(p),P.forEach(p),this.h()},h(){h(f,"data-cy","data-encoder-info"),h(e,"slot","content")},m(E,P){S(E,e,P),_[t].m(e,null),g(e,r),b[l].m(e,null),g(e,a),g(e,o),g(o,f),g(f,i),u=!0},p(E,P){let N=t;t=m(E),t===N?_[t].p(E,P):(G(),w(_[N],1,1,()=>{_[N]=null}),J(),n=_[t],n?n.p(E,P):(n=_[t]=d[t](E),n.c()),y(n,1),n.m(e,r));let B=l;l=T(E),l===B?b[l].p(E,P):(G(),w(b[B],1,1,()=>{b[B]=null}),J(),s=b[l],s?s.p(E,P):(s=b[l]=$[l](E),s.c()),y(s,1),s.m(e,a))},i(E){u||(y(n),y(s),u=!0)},o(E){w(n),w(s),u=!1},d(E){E&&p(e),_[t].d(),b[l].d()}}}function De(c){let e,t;return e=new _e({props:{open:c[0],hideConfirm:!0,$$slots:{content:[Te],title:[me]},$$scope:{ctx:c}}}),e.$on("cancelModal",function(){x(c[1])&&c[1].apply(this,arguments)}),e.$on("confirmModal",function(){x(c[1])&&c[1].apply(this,arguments)}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,[r]){c=n;const l={};r&1&&(l.open=c[0]),r&131324&&(l.$$scope={dirty:r,ctx:c}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Ie(c,e,t){let n,r,l,s;X(c,Y,N=>t(5,r=N)),X(c,z,N=>t(6,l=N)),X(c,ae,N=>t(7,s=N));let{showSettings:a}=e,{accessToken:o}=e,{onCancel:f}=e,i="",u="";const d=()=>{pe(i)?(F(z,l=i,l),t(4,n="")):t(4,n="Endpoint must start with https:// to authenticate")},_=()=>{de(i)?o?d():(F(z,l=i,l),t(4,n="")):t(4,n="Endpoint must start with http:// or https://")},m=()=>{t(2,i=""),F(z,l=null,l)},$=()=>{t(3,u=""),F(Y,r=null,r)};function b(){i=this.value,t(2,i)}function T(){i=this.value,t(2,i)}function E(){u=this.value,t(3,u)}const P=()=>F(Y,r=u,r);return c.$$set=N=>{"showSettings"in N&&t(0,a=N.showSettings),"accessToken"in N&&t(11,o=N.accessToken),"onCancel"in N&&t(1,f=N.onCancel)},t(4,n=""),[a,f,i,u,n,r,l,s,_,m,$,o,b,T,E,P]}class Pe extends oe{constructor(e){super(),le(this,e,Ie,De,se,{showSettings:0,accessToken:11,onCancel:1})}}function Ne(c){let e,t;return e=new Z({props:{right:!0,text:"Configure data encoder",$$slots:{default:[Ue]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Re(c){let e,t,n,r;const l=[Me,He,Ve],s=[];function a(o,f){var i;return(i=o[1])!=null&&i.hasNotRequested?0:o[1].hasError?1:o[1].hasSuccess?2:-1}return~(e=a(c))&&(t=s[e]=l[e](c)),{c(){t&&t.c(),n=A()},l(o){t&&t.l(o),n=A()},m(o,f){~e&&s[e].m(o,f),S(o,n,f),r=!0},p(o,f){let i=e;e=a(o),e===i?~e&&s[e].p(o,f):(t&&(G(),w(s[i],1,1,()=>{s[i]=null}),J()),~e?(t=s[e],t?t.p(o,f):(t=s[e]=l[e](o),t.c()),y(t,1),t.m(n.parentNode,n)):t=null)},i(o){r||(y(t),r=!0)},o(o){w(t),r=!1},d(o){~e&&s[e].d(o),o&&p(n)}}}function Ue(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#e4e4e7"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#e4e4e7"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[6]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Ve(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder succesfully converted content",$$slots:{default:[Le]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function He(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder couldn't connect to the remote encoder",$$slots:{default:[Oe]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Me(c){let e,t;return e=new Z({props:{right:!0,text:"Data encoder is configured",$$slots:{default:[qe]},$$scope:{ctx:c}}}),{c(){R(e.$$.fragment)},l(n){U(e.$$.fragment,n)},m(n,r){V(e,n,r),t=!0},p(n,r){const l={};r&129&&(l.$$scope={dirty:r,ctx:n}),e.$set(l)},i(n){t||(y(e.$$.fragment,n),t=!0)},o(n){w(e.$$.fragment,n),t=!1},d(n){H(e,n)}}}function Le(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#4ade80"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#4ade80"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-success")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[5]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Oe(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#f87171"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#f87171"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-error")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[4]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function qe(c){let e,t,n,r,l,s,a;return t=new O({props:{name:"arrowDown",class:"-ml-1",fill:"#bfdbfe"}}),r=new O({props:{name:"arrowUp",class:"absolute left-1",fill:"#bfdbfe"}}),{c(){e=k("button"),R(t.$$.fragment),n=D(),R(r.$$.fragment),this.h()},l(o){e=v(o,"BUTTON",{class:!0,"data-cy":!0});var f=C(e);U(t.$$.fragment,f),n=I(f),U(r.$$.fragment,f),f.forEach(p),this.h()},h(){h(e,"class","relative flex cursor-pointer"),h(e,"data-cy","data-encoder-status-configured")},m(o,f){S(o,e,f),V(t,e,null),g(e,n),V(r,e,null),l=!0,s||(a=q(e,"click",c[3]),s=!0)},p:K,i(o){l||(y(t.$$.fragment,o),y(r.$$.fragment,o),l=!0)},o(o){w(t.$$.fragment,o),w(r.$$.fragment,o),l=!1},d(o){o&&p(e),H(t),H(r),s=!1,a()}}}function Be(c){let e,t,n,r,l,s;e=new Pe({props:{showSettings:c[0],onCancel:c[2],accessToken:c[1].accessToken}});const a=[Re,Ne],o=[];function f(i,u){var d;return(d=i[1])!=null&&d.hasEndpointOrPortConfigured?0:1}return n=f(c),r=o[n]=a[n](c),{c(){R(e.$$.fragment),t=D(),r.c(),l=A()},l(i){U(e.$$.fragment,i),t=I(i),r.l(i),l=A()},m(i,u){V(e,i,u),S(i,t,u),o[n].m(i,u),S(i,l,u),s=!0},p(i,[u]){const d={};u&1&&(d.showSettings=i[0]),u&2&&(d.accessToken=i[1].accessToken),e.$set(d);let _=n;n=f(i),n===_?o[n].p(i,u):(G(),w(o[_],1,1,()=>{o[_]=null}),J(),r=o[n],r?r.p(i,u):(r=o[n]=a[n](i),r.c()),y(r,1),r.m(l.parentNode,l))},i(i){s||(y(e.$$.fragment,i),y(r),s=!0)},o(i){w(e.$$.fragment,i),w(r),s=!1},d(i){H(e,i),i&&p(t),o[n].d(i),i&&p(l)}}}function je(c,e,t){let n;X(c,ae,i=>t(1,n=i));let r=!1;return[r,n,()=>t(0,r=!1),()=>t(0,r=!0),()=>t(0,r=!0),()=>t(0,r=!0),()=>t(0,r=!0)]}class Ye extends oe{constructor(e){super(),le(this,e,je,Be,se,{})}}export{Ye as D}; diff --git a/server/generated/ui/_app/chunks/hamburger-header-b691a839.js b/server/generated/ui/_app/chunks/hamburger-header-4788b554.js similarity index 99% rename from server/generated/ui/_app/chunks/hamburger-header-b691a839.js rename to server/generated/ui/_app/chunks/hamburger-header-4788b554.js index e05075d4b5..3c5f949856 100644 --- a/server/generated/ui/_app/chunks/hamburger-header-b691a839.js +++ b/server/generated/ui/_app/chunks/hamburger-header-4788b554.js @@ -1,3 +1,3 @@ -import{S as W,i as X,s as Y,e as y,w as S,t as _e,c as E,a as V,x as B,d as p,h as he,b as f,g as T,M as m,y as K,E as pe,q as I,o as z,B as J,N as ve,I as q,k as N,m as C,af as de,J as F,K as M,L as R,n as P,p as Q,a3 as be,a4 as we,a5 as ke,l as ee,T as xe}from"./index-c85ade65.js";import{a as U}from"./has-b7e06397.js";import{D as ue}from"./data-encoder-status-631dfb3f.js";import{I as me}from"./index-c8da0ebb.js";import{f as te}from"./index-39468d30.js";import{p as $e}from"./stores-2c13cc16.js";function ye(o){let e,a,s,i,_,h;return i=new me({props:{class:"",name:"feedback",color:"#e9d5ff",scale:.5}}),{c(){e=y("a"),a=y("div"),s=y("div"),S(i.$$.fragment),_=_e(` +import{S as W,i as X,s as Y,e as y,w as S,t as _e,c as E,a as V,x as B,d as p,h as he,b as f,g as T,M as m,y as K,E as pe,q as I,o as z,B as J,N as ve,I as q,k as N,m as C,af as de,J as F,K as M,L as R,n as P,p as Q,a3 as be,a4 as we,a5 as ke,l as ee,T as xe}from"./index-c85ade65.js";import{a as U}from"./has-b7e06397.js";import{D as ue}from"./data-encoder-status-5dabd0ab.js";import{I as me}from"./index-c8da0ebb.js";import{f as te}from"./index-39468d30.js";import{p as $e}from"./stores-2c13cc16.js";function ye(o){let e,a,s,i,_,h;return i=new me({props:{class:"",name:"feedback",color:"#e9d5ff",scale:.5}}),{c(){e=y("a"),a=y("div"),s=y("div"),S(i.$$.fragment),_=_e(` Give Feedback`),this.h()},l(n){e=E(n,"A",{href:!0,target:!0,"data-cy":!0});var d=V(e);a=E(d,"DIV",{class:!0});var k=V(a);s=E(k,"DIV",{class:!0});var b=V(s);B(i.$$.fragment,b),b.forEach(p),_=he(k,` Give Feedback`),k.forEach(p),d.forEach(p),this.h()},h(){f(s,"class","feedback-icon svelte-x1notn"),f(a,"class","feedback-button svelte-x1notn"),f(e,"href",o[0]),f(e,"target","_blank"),f(e,"data-cy","give-feedback")},m(n,d){T(n,e,d),m(e,a),m(a,s),K(i,s,null),m(a,_),h=!0},p:pe,i(n){h||(I(i.$$.fragment,n),h=!0)},o(n){z(i.$$.fragment,n),h=!1},d(n){n&&p(e),J(i)}}}function Ee(o,e,a){let s;return ve(o,$e,_=>a(1,s=_)),[s.stuff.settings.feedbackURL||"https://github.com/temporalio/ui/issues/new/choose"]}class ge extends W{constructor(e){super(),X(this,e,Ee,ye,Y,{})}}const Ie=o=>({}),se=o=>({}),je=o=>({}),ae=o=>({}),De=o=>({}),re=o=>({});function oe(o){let e,a;return e=new ue({}),{c(){S(e.$$.fragment)},l(s){B(e.$$.fragment,s)},m(s,i){K(e,s,i),a=!0},i(s){a||(I(e.$$.fragment,s),a=!0)},o(s){z(e.$$.fragment,s),a=!1},d(s){J(e,s)}}}function Ve(o){let e,a,s,i,_,h,n,d,k,b,H=U(o[1]),D,A,v,x;const $=o[3].logo,j=q($,o,o[2],re),c=o[3].links,t=q(c,o,o[2],ae);let r=H&&oe();A=new ge({});const u=o[3].user,w=q(u,o,o[2],se);return{c(){e=y("header"),a=y("div"),s=y("a"),i=y("img"),h=N(),j&&j.c(),n=N(),d=y("div"),t&&t.c(),k=N(),b=y("div"),r&&r.c(),D=N(),S(A.$$.fragment),v=N(),w&&w.c(),this.h()},l(l){e=E(l,"HEADER",{class:!0,"data-cy":!0});var g=V(e);a=E(g,"DIV",{class:!0});var G=V(a);s=E(G,"A",{href:!0,class:!0});var O=V(s);i=E(O,"IMG",{src:!0,alt:!0,class:!0}),O.forEach(p),h=C(G),j&&j.l(G),G.forEach(p),n=C(g),d=E(g,"DIV",{class:!0});var Z=V(d);t&&t.l(Z),Z.forEach(p),k=C(g),b=E(g,"DIV",{class:!0});var L=V(b);r&&r.l(L),D=C(L),B(A.$$.fragment,L),v=C(L),w&&w.l(L),L.forEach(p),g.forEach(p),this.h()},h(){de(i.src,_="/logo.svg")||f(i,"src",_),f(i,"alt","Temporal Logo"),f(i,"class","max-h-10"),f(s,"href",o[0]),f(s,"class","block"),f(a,"class","col-span-3 flex items-center gap-4"),f(d,"class","col-span-4 flex gap-4"),f(b,"class","col-span-5 col-end-13 flex items-center justify-end gap-4"),f(e,"class","navigation-header svelte-2ez36t"),f(e,"data-cy","navigation-header")},m(l,g){T(l,e,g),m(e,a),m(a,s),m(s,i),m(a,h),j&&j.m(a,null),m(e,n),m(e,d),t&&t.m(d,null),m(e,k),m(e,b),r&&r.m(b,null),m(b,D),K(A,b,null),m(b,v),w&&w.m(b,null),x=!0},p(l,[g]){(!x||g&1)&&f(s,"href",l[0]),j&&j.p&&(!x||g&4)&&F(j,$,l,l[2],x?R($,l[2],g,De):M(l[2]),re),t&&t.p&&(!x||g&4)&&F(t,c,l,l[2],x?R(c,l[2],g,je):M(l[2]),ae),g&2&&(H=U(l[1])),H?r?g&2&&I(r,1):(r=oe(),r.c(),I(r,1),r.m(b,D)):r&&(P(),z(r,1,1,()=>{r=null}),Q()),w&&w.p&&(!x||g&4)&&F(w,u,l,l[2],x?R(u,l[2],g,Ie):M(l[2]),se)},i(l){x||(I(j,l),I(t,l),I(r),I(A.$$.fragment,l),I(w,l),x=!0)},o(l){z(j,l),z(t,l),z(r),z(A.$$.fragment,l),z(w,l),x=!1},d(l){l&&p(e),j&&j.d(l),t&&t.d(l),r&&r.d(),J(A),w&&w.d(l)}}}function ze(o,e,a){let{$$slots:s={},$$scope:i}=e,{href:_}=e,{user:h}=e;return o.$$set=n=>{"href"in n&&a(0,_=n.href),"user"in n&&a(1,h=n.user),"$$scope"in n&&a(2,i=n.$$scope)},[_,h,i,s]}class Se extends W{constructor(e){super(),X(this,e,ze,Ve,Y,{href:0,user:1})}}const He=o=>({}),ne=o=>({}),Ae=o=>({}),le=o=>({}),Ne=o=>({}),ie=o=>({});function ce(o){let e,a;return e=new ue({}),{c(){S(e.$$.fragment)},l(s){B(e.$$.fragment,s)},m(s,i){K(e,s,i),a=!0},i(s){a||(I(e.$$.fragment,s),a=!0)},o(s){z(e.$$.fragment,s),a=!1},d(s){J(e,s)}}}function fe(o){let e,a,s,i,_,h,n,d,k,b,H,D;const A=o[4].action,v=q(A,o,o[3],ie),x=o[4].links,$=q(x,o,o[3],le);d=new ge({});const j=o[4].user,c=q(j,o,o[3],ne);return{c(){e=y("section"),a=y("div"),s=y("div"),v&&v.c(),i=N(),_=y("div"),$&&$.c(),h=N(),n=y("div"),S(d.$$.fragment),k=N(),c&&c.c(),this.h()},l(t){e=E(t,"SECTION",{class:!0});var r=V(e);a=E(r,"DIV",{class:!0});var u=V(a);s=E(u,"DIV",{class:!0});var w=V(s);v&&v.l(w),w.forEach(p),i=C(u),_=E(u,"DIV",{class:!0});var l=V(_);$&&$.l(l),l.forEach(p),h=C(u),n=E(u,"DIV",{class:!0});var g=V(n);B(d.$$.fragment,g),k=C(g),c&&c.l(g),g.forEach(p),u.forEach(p),r.forEach(p),this.h()},h(){f(s,"class","action w-5/6 md:w-2/3 lg:w-1/2"),f(_,"class","links mt-4 inline-block"),f(n,"class","absolute left-0 bottom-24"),f(a,"class","relative h-full"),f(e,"class","hamburger-menu svelte-wbgsjd")},m(t,r){T(t,e,r),m(e,a),m(a,s),v&&v.m(s,null),m(a,i),m(a,_),$&&$.m(_,null),m(a,h),m(a,n),K(d,n,null),m(n,k),c&&c.m(n,null),D=!0},p(t,r){v&&v.p&&(!D||r&8)&&F(v,A,t,t[3],D?R(A,t[3],r,Ne):M(t[3]),ie),$&&$.p&&(!D||r&8)&&F($,x,t,t[3],D?R(x,t[3],r,Ae):M(t[3]),le),c&&c.p&&(!D||r&8)&&F(c,j,t,t[3],D?R(j,t[3],r,He):M(t[3]),ne)},i(t){D||(I(v,t),I($,t),I(d.$$.fragment,t),I(c,t),be(()=>{H&&H.end(1),b=we(e,te,{x:-50,duration:250}),b.start()}),D=!0)},o(t){z(v,t),z($,t),z(d.$$.fragment,t),z(c,t),b&&b.invalidate(),H=ke(e,te,{x:-50,duration:250,delay:100}),D=!1},d(t){t&&p(e),v&&v.d(t),$&&$.d(t),J(d),c&&c.d(t),t&&H&&H.end()}}}function Ce(o){let e,a,s,i,_,h,n,d,k,b,H,D=U(o[1]),A,v,x,$,j;i=new me({props:{class:"cursor-pointer",name:o[2]?"navCollapse":"navExpand",color:"white"}});let c=D&&ce(),t=o[2]&&fe(o);return{c(){e=y("header"),a=y("div"),s=y("div"),S(i.$$.fragment),_=N(),h=y("div"),n=y("a"),d=y("img"),b=N(),H=y("div"),c&&c.c(),A=N(),t&&t.c(),v=ee(),this.h()},l(r){e=E(r,"HEADER",{class:!0,"data-cy":!0});var u=V(e);a=E(u,"DIV",{class:!0});var w=V(a);s=E(w,"DIV",{"data-cy":!0});var l=V(s);B(i.$$.fragment,l),l.forEach(p),w.forEach(p),_=C(u),h=E(u,"DIV",{class:!0});var g=V(h);n=E(g,"A",{href:!0,class:!0});var G=V(n);d=E(G,"IMG",{src:!0,alt:!0,class:!0}),G.forEach(p),g.forEach(p),b=C(u),H=E(u,"DIV",{class:!0});var O=V(H);c&&c.l(O),O.forEach(p),u.forEach(p),A=C(r),t&&t.l(r),v=ee(),this.h()},h(){f(s,"data-cy","hamburger-icon"),f(a,"class","col-span-4 flex justify-start gap-4"),de(d.src,k="/logo.svg")||f(d,"src",k),f(d,"alt","Temporal Logo"),f(d,"class","max-h-10 svelte-wbgsjd"),f(n,"href",o[0]),f(n,"class","block"),f(h,"class","col-span-4 flex justify-center gap-4"),f(H,"class","col-span-4 flex items-center justify-end gap-4"),f(e,"class","hamburger-header svelte-wbgsjd"),f(e,"data-cy","hamburger-header")},m(r,u){T(r,e,u),m(e,a),m(a,s),K(i,s,null),m(e,_),m(e,h),m(h,n),m(n,d),m(e,b),m(e,H),c&&c.m(H,null),T(r,A,u),t&&t.m(r,u),T(r,v,u),x=!0,$||(j=xe(s,"click",o[5]),$=!0)},p(r,[u]){const w={};u&4&&(w.name=r[2]?"navCollapse":"navExpand"),i.$set(w),(!x||u&1)&&f(n,"href",r[0]),u&2&&(D=U(r[1])),D?c?u&2&&I(c,1):(c=ce(),c.c(),I(c,1),c.m(H,null)):c&&(P(),z(c,1,1,()=>{c=null}),Q()),r[2]?t?(t.p(r,u),u&4&&I(t,1)):(t=fe(r),t.c(),I(t,1),t.m(v.parentNode,v)):t&&(P(),z(t,1,1,()=>{t=null}),Q())},i(r){x||(I(i.$$.fragment,r),I(c),I(t),x=!0)},o(r){z(i.$$.fragment,r),z(c),z(t),x=!1},d(r){r&&p(e),J(i),c&&c.d(),r&&p(A),t&&t.d(r),r&&p(v),$=!1,j()}}}function Ge(o,e,a){let s,{$$slots:i={},$$scope:_}=e,{href:h}=e,{user:n}=e;const d=()=>a(2,s=!s);return o.$$set=k=>{"href"in k&&a(0,h=k.href),"user"in k&&a(1,n=k.user),"$$scope"in k&&a(3,_=k.$$scope)},a(2,s=!1),[h,n,s,_,i,d]}class Be extends W{constructor(e){super(),X(this,e,Ge,Ce,Y,{href:0,user:1})}}export{Be as H,Se as N}; diff --git a/server/generated/ui/_app/chunks/modal-452aea0f.js b/server/generated/ui/_app/chunks/modal-c93f492b.js similarity index 98% rename from server/generated/ui/_app/chunks/modal-452aea0f.js rename to server/generated/ui/_app/chunks/modal-c93f492b.js index 1d4c6472db..1ea29ffeaa 100644 --- a/server/generated/ui/_app/chunks/modal-452aea0f.js +++ b/server/generated/ui/_app/chunks/modal-c93f492b.js @@ -1 +1 @@ -import{S as ce,i as fe,s as de,e as y,k as M,w as L,c as k,a as j,d as f,m as z,x as O,b as E,R as W,g as I,M as d,y as P,T as me,J as X,K as Y,L as Z,q as h,o as x,B as R,n as se,p as le,l as $,O as _e,I as ee,t as N,h as A,E as ie,j as ue}from"./index-c85ade65.js";import{I as he}from"./index-c8da0ebb.js";import{B as re}from"./button-808d5fa7.js";const ge=o=>({}),te=o=>({}),be=o=>({}),ne=o=>({});function ae(o){let e,a,t,n,i,g,T,v,C,w,D,m,_,V,l,H,F;g=new he({props:{name:"close"}});const J=o[7].title,B=ee(J,o,o[11],ne),b=B||pe(),K=o[7].content,S=ee(K,o,o[11],te),p=S||ve();_=new re({props:{variant:"secondary",$$slots:{default:[we]},$$scope:{ctx:o}}}),_.$on("click",o[9]);let r=!o[1]&&oe(o);return{c(){e=y("div"),a=y("div"),t=M(),n=y("div"),i=y("div"),L(g.$$.fragment),T=M(),v=y("div"),b&&b.c(),C=M(),w=y("div"),p&&p.c(),D=M(),m=y("div"),L(_.$$.fragment),V=M(),r&&r.c(),this.h()},l(s){e=k(s,"DIV",{class:!0});var c=j(e);a=k(c,"DIV",{class:!0}),j(a).forEach(f),t=z(c),n=k(c,"DIV",{class:!0});var u=j(n);i=k(u,"DIV",{class:!0});var G=j(i);O(g.$$.fragment,G),G.forEach(f),T=z(u),v=k(u,"DIV",{class:!0});var Q=j(v);b&&b.l(Q),Q.forEach(f),C=z(u),w=k(u,"DIV",{class:!0});var U=j(w);p&&p.l(U),U.forEach(f),D=z(u),m=k(u,"DIV",{class:!0});var q=j(m);O(_.$$.fragment,q),V=z(q),r&&r.l(q),q.forEach(f),u.forEach(f),c.forEach(f),this.h()},h(){E(a,"class","overlay svelte-197sb6j"),E(i,"class","float-right cursor-pointer p-6"),E(v,"class","title svelte-197sb6j"),E(w,"class","content svelte-197sb6j"),E(m,"class","flex items-center justify-end space-x-2 p-6"),E(n,"class","body svelte-197sb6j"),W(n,"large",o[5]),E(e,"class","modal svelte-197sb6j")},m(s,c){I(s,e,c),d(e,a),d(e,t),d(e,n),d(n,i),P(g,i,null),d(n,T),d(n,v),b&&b.m(v,null),d(n,C),d(n,w),p&&p.m(w,null),d(n,D),d(n,m),P(_,m,null),d(m,V),r&&r.m(m,null),l=!0,H||(F=me(i,"click",o[8]),H=!0)},p(s,c){B&&B.p&&(!l||c&2048)&&X(B,J,s,s[11],l?Z(J,s[11],c,be):Y(s[11]),ne),S&&S.p&&(!l||c&2048)&&X(S,K,s,s[11],l?Z(K,s[11],c,ge):Y(s[11]),te);const u={};c&2048&&(u.$$scope={dirty:c,ctx:s}),_.$set(u),s[1]?r&&(se(),x(r,1,1,()=>{r=null}),le()):r?(r.p(s,c),c&2&&h(r,1)):(r=oe(s),r.c(),h(r,1),r.m(m,null)),c&32&&W(n,"large",s[5])},i(s){l||(h(g.$$.fragment,s),h(b,s),h(p,s),h(_.$$.fragment,s),h(r),l=!0)},o(s){x(g.$$.fragment,s),x(b,s),x(p,s),x(_.$$.fragment,s),x(r),l=!1},d(s){s&&f(e),R(g),b&&b.d(s),p&&p.d(s),R(_),r&&r.d(),H=!1,F()}}}function pe(o){let e,a;return{c(){e=y("h3"),a=N("Title")},l(t){e=k(t,"H3",{});var n=j(e);a=A(n,"Title"),n.forEach(f)},m(t,n){I(t,e,n),d(e,a)},p:ie,d(t){t&&f(e)}}}function ve(o){let e,a;return{c(){e=y("span"),a=N("Content")},l(t){e=k(t,"SPAN",{});var n=j(e);a=A(n,"Content"),n.forEach(f)},m(t,n){I(t,e,n),d(e,a)},p:ie,d(t){t&&f(e)}}}function we(o){let e;return{c(){e=N("Cancel")},l(a){e=A(a,"Cancel")},m(a,t){I(a,e,t)},d(a){a&&f(e)}}}function oe(o){let e,a;return e=new re({props:{variant:o[3],disabled:o[4],$$slots:{default:[ye]},$$scope:{ctx:o}}}),e.$on("click",o[10]),{c(){L(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){P(e,t,n),a=!0},p(t,n){const i={};n&8&&(i.variant=t[3]),n&16&&(i.disabled=t[4]),n&2052&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){a||(h(e.$$.fragment,t),a=!0)},o(t){x(e.$$.fragment,t),a=!1},d(t){R(e,t)}}}function ye(o){let e;return{c(){e=N(o[2])},l(a){e=A(a,o[2])},m(a,t){I(a,e,t)},p(a,t){t&4&&ue(e,a[2])},d(a){a&&f(e)}}}function ke(o){let e,a,t=o[0]&&ae(o);return{c(){t&&t.c(),e=$()},l(n){t&&t.l(n),e=$()},m(n,i){t&&t.m(n,i),I(n,e,i),a=!0},p(n,[i]){n[0]?t?(t.p(n,i),i&1&&h(t,1)):(t=ae(n),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(se(),x(t,1,1,()=>{t=null}),le())},i(n){a||(h(t),a=!0)},o(n){x(t),a=!1},d(n){t&&t.d(n),n&&f(e)}}}function je(o,e,a){let{$$slots:t={},$$scope:n}=e,{open:i=!1}=e,{hideConfirm:g=!1}=e,{confirmText:T="Confirm"}=e,{confirmType:v="primary"}=e,{confirmDisabled:C=!1}=e,{large:w=!1}=e;const D=_e(),m=()=>D("cancelModal",{}),_=()=>D("cancelModal",{}),V=()=>D("confirmModal",{});return o.$$set=l=>{"open"in l&&a(0,i=l.open),"hideConfirm"in l&&a(1,g=l.hideConfirm),"confirmText"in l&&a(2,T=l.confirmText),"confirmType"in l&&a(3,v=l.confirmType),"confirmDisabled"in l&&a(4,C=l.confirmDisabled),"large"in l&&a(5,w=l.large),"$$scope"in l&&a(11,n=l.$$scope)},[i,g,T,v,C,w,D,t,m,_,V,n]}class Te extends ce{constructor(e){super(),fe(this,e,je,ke,de,{open:0,hideConfirm:1,confirmText:2,confirmType:3,confirmDisabled:4,large:5})}}export{Te as M}; +import{S as ce,i as fe,s as de,e as y,k as M,w as L,c as k,a as j,d as f,m as z,x as O,b as E,R as W,g as I,M as d,y as P,T as me,J as X,K as Y,L as Z,q as h,o as x,B as R,n as se,p as le,l as $,O as _e,I as ee,t as N,h as A,E as ie,j as ue}from"./index-c85ade65.js";import{I as he}from"./index-c8da0ebb.js";import{B as re}from"./button-6823eb61.js";const ge=o=>({}),te=o=>({}),be=o=>({}),ne=o=>({});function ae(o){let e,a,t,n,i,g,T,v,C,w,D,m,_,V,l,H,F;g=new he({props:{name:"close"}});const J=o[7].title,B=ee(J,o,o[11],ne),b=B||pe(),K=o[7].content,S=ee(K,o,o[11],te),p=S||ve();_=new re({props:{variant:"secondary",$$slots:{default:[we]},$$scope:{ctx:o}}}),_.$on("click",o[9]);let r=!o[1]&&oe(o);return{c(){e=y("div"),a=y("div"),t=M(),n=y("div"),i=y("div"),L(g.$$.fragment),T=M(),v=y("div"),b&&b.c(),C=M(),w=y("div"),p&&p.c(),D=M(),m=y("div"),L(_.$$.fragment),V=M(),r&&r.c(),this.h()},l(s){e=k(s,"DIV",{class:!0});var c=j(e);a=k(c,"DIV",{class:!0}),j(a).forEach(f),t=z(c),n=k(c,"DIV",{class:!0});var u=j(n);i=k(u,"DIV",{class:!0});var G=j(i);O(g.$$.fragment,G),G.forEach(f),T=z(u),v=k(u,"DIV",{class:!0});var Q=j(v);b&&b.l(Q),Q.forEach(f),C=z(u),w=k(u,"DIV",{class:!0});var U=j(w);p&&p.l(U),U.forEach(f),D=z(u),m=k(u,"DIV",{class:!0});var q=j(m);O(_.$$.fragment,q),V=z(q),r&&r.l(q),q.forEach(f),u.forEach(f),c.forEach(f),this.h()},h(){E(a,"class","overlay svelte-197sb6j"),E(i,"class","float-right cursor-pointer p-6"),E(v,"class","title svelte-197sb6j"),E(w,"class","content svelte-197sb6j"),E(m,"class","flex items-center justify-end space-x-2 p-6"),E(n,"class","body svelte-197sb6j"),W(n,"large",o[5]),E(e,"class","modal svelte-197sb6j")},m(s,c){I(s,e,c),d(e,a),d(e,t),d(e,n),d(n,i),P(g,i,null),d(n,T),d(n,v),b&&b.m(v,null),d(n,C),d(n,w),p&&p.m(w,null),d(n,D),d(n,m),P(_,m,null),d(m,V),r&&r.m(m,null),l=!0,H||(F=me(i,"click",o[8]),H=!0)},p(s,c){B&&B.p&&(!l||c&2048)&&X(B,J,s,s[11],l?Z(J,s[11],c,be):Y(s[11]),ne),S&&S.p&&(!l||c&2048)&&X(S,K,s,s[11],l?Z(K,s[11],c,ge):Y(s[11]),te);const u={};c&2048&&(u.$$scope={dirty:c,ctx:s}),_.$set(u),s[1]?r&&(se(),x(r,1,1,()=>{r=null}),le()):r?(r.p(s,c),c&2&&h(r,1)):(r=oe(s),r.c(),h(r,1),r.m(m,null)),c&32&&W(n,"large",s[5])},i(s){l||(h(g.$$.fragment,s),h(b,s),h(p,s),h(_.$$.fragment,s),h(r),l=!0)},o(s){x(g.$$.fragment,s),x(b,s),x(p,s),x(_.$$.fragment,s),x(r),l=!1},d(s){s&&f(e),R(g),b&&b.d(s),p&&p.d(s),R(_),r&&r.d(),H=!1,F()}}}function pe(o){let e,a;return{c(){e=y("h3"),a=N("Title")},l(t){e=k(t,"H3",{});var n=j(e);a=A(n,"Title"),n.forEach(f)},m(t,n){I(t,e,n),d(e,a)},p:ie,d(t){t&&f(e)}}}function ve(o){let e,a;return{c(){e=y("span"),a=N("Content")},l(t){e=k(t,"SPAN",{});var n=j(e);a=A(n,"Content"),n.forEach(f)},m(t,n){I(t,e,n),d(e,a)},p:ie,d(t){t&&f(e)}}}function we(o){let e;return{c(){e=N("Cancel")},l(a){e=A(a,"Cancel")},m(a,t){I(a,e,t)},d(a){a&&f(e)}}}function oe(o){let e,a;return e=new re({props:{variant:o[3],disabled:o[4],$$slots:{default:[ye]},$$scope:{ctx:o}}}),e.$on("click",o[10]),{c(){L(e.$$.fragment)},l(t){O(e.$$.fragment,t)},m(t,n){P(e,t,n),a=!0},p(t,n){const i={};n&8&&(i.variant=t[3]),n&16&&(i.disabled=t[4]),n&2052&&(i.$$scope={dirty:n,ctx:t}),e.$set(i)},i(t){a||(h(e.$$.fragment,t),a=!0)},o(t){x(e.$$.fragment,t),a=!1},d(t){R(e,t)}}}function ye(o){let e;return{c(){e=N(o[2])},l(a){e=A(a,o[2])},m(a,t){I(a,e,t)},p(a,t){t&4&&ue(e,a[2])},d(a){a&&f(e)}}}function ke(o){let e,a,t=o[0]&&ae(o);return{c(){t&&t.c(),e=$()},l(n){t&&t.l(n),e=$()},m(n,i){t&&t.m(n,i),I(n,e,i),a=!0},p(n,[i]){n[0]?t?(t.p(n,i),i&1&&h(t,1)):(t=ae(n),t.c(),h(t,1),t.m(e.parentNode,e)):t&&(se(),x(t,1,1,()=>{t=null}),le())},i(n){a||(h(t),a=!0)},o(n){x(t),a=!1},d(n){t&&t.d(n),n&&f(e)}}}function je(o,e,a){let{$$slots:t={},$$scope:n}=e,{open:i=!1}=e,{hideConfirm:g=!1}=e,{confirmText:T="Confirm"}=e,{confirmType:v="primary"}=e,{confirmDisabled:C=!1}=e,{large:w=!1}=e;const D=_e(),m=()=>D("cancelModal",{}),_=()=>D("cancelModal",{}),V=()=>D("confirmModal",{});return o.$$set=l=>{"open"in l&&a(0,i=l.open),"hideConfirm"in l&&a(1,g=l.hideConfirm),"confirmText"in l&&a(2,T=l.confirmText),"confirmType"in l&&a(3,v=l.confirmType),"confirmDisabled"in l&&a(4,C=l.confirmDisabled),"large"in l&&a(5,w=l.large),"$$scope"in l&&a(11,n=l.$$scope)},[i,g,T,v,C,w,D,t,m,_,V,n]}class Te extends ce{constructor(e){super(),fe(this,e,je,ke,de,{open:0,hideConfirm:1,confirmText:2,confirmType:3,confirmDisabled:4,large:5})}}export{Te as M}; diff --git a/server/generated/ui/_app/chunks/search-9c473caf.js b/server/generated/ui/_app/chunks/search-3dfcbd93.js similarity index 97% rename from server/generated/ui/_app/chunks/search-9c473caf.js rename to server/generated/ui/_app/chunks/search-3dfcbd93.js index b912d911c5..5cd5950d93 100644 --- a/server/generated/ui/_app/chunks/search-9c473caf.js +++ b/server/generated/ui/_app/chunks/search-3dfcbd93.js @@ -1 +1 @@ -import{S as O,i as P,s as R,w as U,x as j,y,q as p,o as S,B as A,e as k,k as q,t as D,c as w,a as B,m as E,h as F,d as v,b as u,g as G,M as h,T as C,aq as V,n as W,p as z,j as N,G as H,W as M}from"./index-c85ade65.js";import{I as J}from"./index-c8da0ebb.js";import{B as K}from"./button-808d5fa7.js";function T(l){let e,a;return e=new J({props:{name:"search",scale:.9,stroke:"gray",class:"ml-4 flex items-center"}}),{c(){U(e.$$.fragment)},l(t){j(e.$$.fragment,t)},m(t,m){y(e,t,m),a=!0},i(t){a||(p(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){A(e,t)}}}function Q(l){let e;return{c(){e=D(l[2])},l(a){e=F(a,l[2])},m(a,t){G(a,e,t)},p(a,t){t&4&&N(e,a[2])},d(a){a&&v(e)}}}function X(l){let e,a,t,m,_,i,b,d,c,f,n,I,o=l[4]&&T();return c=new K({props:{class:"m-2",type:"submit",$$slots:{default:[Q]},$$scope:{ctx:l}}}),{c(){e=k("form"),o&&o.c(),a=q(),t=k("label"),m=D(l[2]),_=q(),i=k("input"),b=q(),d=k("div"),U(c.$$.fragment),this.h()},l(r){e=w(r,"FORM",{class:!0});var s=B(e);o&&o.l(s),a=E(s),t=w(s,"LABEL",{for:!0,class:!0});var g=B(t);m=F(g,l[2]),g.forEach(v),_=E(s),i=w(s,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),b=E(s),d=w(s,"DIV",{});var L=B(d);j(c.$$.fragment,L),L.forEach(v),s.forEach(v),this.h()},h(){u(t,"for",l[5]),u(t,"class","hidden"),u(i,"id",l[5]),u(i,"type","text"),u(i,"class","w-full rounded-l-lg px-4 focus:outline-none"),u(i,"name",l[3]),i.value=l[1],u(i,"placeholder",l[0]),u(i,"autocomplete","off"),u(e,"class","relative flex items-center rounded-lg border-2 transition-colors focus-within:border-blue-700")},m(r,s){G(r,e,s),o&&o.m(e,null),h(e,a),h(e,t),h(t,m),h(e,_),h(e,i),h(e,b),h(e,d),y(c,d,null),f=!0,n||(I=[C(i,"input",l[7]),C(e,"submit",V(l[6]))],n=!0)},p(r,[s]){r[4]?o?s&16&&p(o,1):(o=T(),o.c(),p(o,1),o.m(e,a)):o&&(W(),S(o,1,1,()=>{o=null}),z()),(!f||s&4)&&N(m,r[2]),(!f||s&32)&&u(t,"for",r[5]),(!f||s&32)&&u(i,"id",r[5]),(!f||s&8)&&u(i,"name",r[3]),(!f||s&2&&i.value!==r[1])&&(i.value=r[1]),(!f||s&1)&&u(i,"placeholder",r[0]);const g={};s&260&&(g.$$scope={dirty:s,ctx:r}),c.$set(g)},i(r){f||(p(o),p(c.$$.fragment,r),f=!0)},o(r){S(o),S(c.$$.fragment,r),f=!1},d(r){r&&v(e),o&&o.d(),A(c),n=!1,H(I)}}}function Y(l,e,a){let{placeholder:t=""}=e,{value:m=""}=e,{label:_="Search"}=e,{name:i="query"}=e,{icon:b=!1}=e,{id:d=`${_.toLocaleUpperCase()}-input`}=e;function c(n){M.call(this,l,n)}function f(n){M.call(this,l,n)}return l.$$set=n=>{"placeholder"in n&&a(0,t=n.placeholder),"value"in n&&a(1,m=n.value),"label"in n&&a(2,_=n.label),"name"in n&&a(3,i=n.name),"icon"in n&&a(4,b=n.icon),"id"in n&&a(5,d=n.id)},[t,m,_,i,b,d,c,f]}class ee extends O{constructor(e){super(),P(this,e,Y,X,R,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{ee as S}; +import{S as O,i as P,s as R,w as U,x as j,y,q as p,o as S,B as A,e as k,k as q,t as D,c as w,a as B,m as E,h as F,d as v,b as u,g as G,M as h,T as C,aq as V,n as W,p as z,j as N,G as H,W as M}from"./index-c85ade65.js";import{I as J}from"./index-c8da0ebb.js";import{B as K}from"./button-6823eb61.js";function T(l){let e,a;return e=new J({props:{name:"search",scale:.9,stroke:"gray",class:"ml-4 flex items-center"}}),{c(){U(e.$$.fragment)},l(t){j(e.$$.fragment,t)},m(t,m){y(e,t,m),a=!0},i(t){a||(p(e.$$.fragment,t),a=!0)},o(t){S(e.$$.fragment,t),a=!1},d(t){A(e,t)}}}function Q(l){let e;return{c(){e=D(l[2])},l(a){e=F(a,l[2])},m(a,t){G(a,e,t)},p(a,t){t&4&&N(e,a[2])},d(a){a&&v(e)}}}function X(l){let e,a,t,m,_,i,b,d,c,f,n,I,o=l[4]&&T();return c=new K({props:{class:"m-2",type:"submit",$$slots:{default:[Q]},$$scope:{ctx:l}}}),{c(){e=k("form"),o&&o.c(),a=q(),t=k("label"),m=D(l[2]),_=q(),i=k("input"),b=q(),d=k("div"),U(c.$$.fragment),this.h()},l(r){e=w(r,"FORM",{class:!0});var s=B(e);o&&o.l(s),a=E(s),t=w(s,"LABEL",{for:!0,class:!0});var g=B(t);m=F(g,l[2]),g.forEach(v),_=E(s),i=w(s,"INPUT",{id:!0,type:!0,class:!0,name:!0,placeholder:!0,autocomplete:!0}),b=E(s),d=w(s,"DIV",{});var L=B(d);j(c.$$.fragment,L),L.forEach(v),s.forEach(v),this.h()},h(){u(t,"for",l[5]),u(t,"class","hidden"),u(i,"id",l[5]),u(i,"type","text"),u(i,"class","w-full rounded-l-lg px-4 focus:outline-none"),u(i,"name",l[3]),i.value=l[1],u(i,"placeholder",l[0]),u(i,"autocomplete","off"),u(e,"class","relative flex items-center rounded-lg border-2 transition-colors focus-within:border-blue-700")},m(r,s){G(r,e,s),o&&o.m(e,null),h(e,a),h(e,t),h(t,m),h(e,_),h(e,i),h(e,b),h(e,d),y(c,d,null),f=!0,n||(I=[C(i,"input",l[7]),C(e,"submit",V(l[6]))],n=!0)},p(r,[s]){r[4]?o?s&16&&p(o,1):(o=T(),o.c(),p(o,1),o.m(e,a)):o&&(W(),S(o,1,1,()=>{o=null}),z()),(!f||s&4)&&N(m,r[2]),(!f||s&32)&&u(t,"for",r[5]),(!f||s&32)&&u(i,"id",r[5]),(!f||s&8)&&u(i,"name",r[3]),(!f||s&2&&i.value!==r[1])&&(i.value=r[1]),(!f||s&1)&&u(i,"placeholder",r[0]);const g={};s&260&&(g.$$scope={dirty:s,ctx:r}),c.$set(g)},i(r){f||(p(o),p(c.$$.fragment,r),f=!0)},o(r){S(o),S(c.$$.fragment,r),f=!1},d(r){r&&v(e),o&&o.d(),A(c),n=!1,H(I)}}}function Y(l,e,a){let{placeholder:t=""}=e,{value:m=""}=e,{label:_="Search"}=e,{name:i="query"}=e,{icon:b=!1}=e,{id:d=`${_.toLocaleUpperCase()}-input`}=e;function c(n){M.call(this,l,n)}function f(n){M.call(this,l,n)}return l.$$set=n=>{"placeholder"in n&&a(0,t=n.placeholder),"value"in n&&a(1,m=n.value),"label"in n&&a(2,_=n.label),"name"in n&&a(3,i=n.name),"icon"in n&&a(4,b=n.icon),"id"in n&&a(5,d=n.id)},[t,m,_,i,b,d,c,f]}class ee extends O{constructor(e){super(),P(this,e,Y,X,R,{placeholder:0,value:1,label:2,name:3,icon:4,id:5})}}export{ee as S}; diff --git a/server/generated/ui/_app/manifest.json b/server/generated/ui/_app/manifest.json index 2a88d3fa5c..05f69798ef 100644 --- a/server/generated/ui/_app/manifest.json +++ b/server/generated/ui/_app/manifest.json @@ -1,6 +1,6 @@ { ".svelte-kit/runtime/client/start.js": { - "file": "start-e394cc49.js", + "file": "start-37022cb3.js", "src": ".svelte-kit/runtime/client/start.js", "isEntry": true, "imports": [ @@ -81,7 +81,7 @@ ] }, "src/routes/__layout-root.svelte": { - "file": "pages/__layout-root.svelte-6ea4d212.js", + "file": "pages/__layout-root.svelte-da7c225e.js", "src": "src/routes/__layout-root.svelte", "isEntry": true, "isDynamicEntry": true, @@ -118,11 +118,11 @@ "_tooltip-0cd6d07a.js", "_copyable-4c8a8b15.js", "_copy-to-clipboard-b8e3d18c.js", - "_data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js", "_data-converter-config-b3e1b826.js", "_is-http-249a0663.js", - "_modal-452aea0f.js", - "_button-808d5fa7.js", + "_modal-c93f492b.js", + "_button-6823eb61.js", "_badge-aff3796f.js", "_namespaces-04ab41f4.js" ], @@ -132,7 +132,7 @@ ] }, "src/routes/_header.svelte": { - "file": "pages/_header.svelte-22cd524a.js", + "file": "pages/_header.svelte-d4f210ad.js", "src": "src/routes/_header.svelte", "isEntry": true, "isDynamicEntry": true, @@ -148,7 +148,7 @@ "_empty-state-ebe0fe80.js", "_tooltip-0cd6d07a.js", "_feature-tag.svelte_svelte_type_style_lang-0f55e153.js", - "_data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js", "_namespaces-04ab41f4.js", "_get-api-origin-035631a4.js", "_singletons-d1fb5791.js", @@ -159,8 +159,8 @@ "_copy-to-clipboard-b8e3d18c.js", "_data-converter-config-b3e1b826.js", "_is-http-249a0663.js", - "_modal-452aea0f.js", - "_button-808d5fa7.js", + "_modal-c93f492b.js", + "_button-6823eb61.js", "_badge-aff3796f.js" ], "css": [ @@ -243,7 +243,7 @@ ] }, "src/routes/import/events/[namespace]/[workflow]/[run]/history/__layout@import.svelte": { - "file": "pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-13b05044.js", + "file": "pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-f9d82e58.js", "src": "src/routes/import/events/[namespace]/[workflow]/[run]/history/__layout@import.svelte", "isEntry": true, "isDynamicEntry": true, @@ -256,7 +256,7 @@ "_stores-2c13cc16.js", "_navigation-6709cf39.js", "_singletons-d1fb5791.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_badge-aff3796f.js", "_index-fe7d98f8.js", "_is-http-249a0663.js", @@ -276,7 +276,7 @@ ] }, "src/routes/import/_event-history-import.svelte": { - "file": "pages/import/_event-history-import.svelte-e15c6731.js", + "file": "pages/import/_event-history-import.svelte-1a072b62.js", "src": "src/routes/import/_event-history-import.svelte", "isEntry": true, "isDynamicEntry": true, @@ -284,7 +284,7 @@ "_index-c85ade65.js", "_route-for-28dfef1d.js", "_navigation-6709cf39.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_index-fe7d98f8.js", "_notifications-9d24bb07.js", "_import-events-cf01b60a.js", @@ -327,7 +327,7 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/__layout@root.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout@root.svelte-8b04afd1.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/__layout@root.svelte-7b8dea8e.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/__layout@root.svelte", "isEntry": true, "isDynamicEntry": true, @@ -344,8 +344,8 @@ "_workflow-status-2652a969.js", "_route-for-api-30acff55.js", "_notifications-9d24bb07.js", - "_button-808d5fa7.js", - "_modal-452aea0f.js", + "_button-6823eb61.js", + "_modal-c93f492b.js", "_events-service-03fddf2e.js", "_loading-67332923.js", "_index-203c0d43.js", @@ -555,7 +555,7 @@ ] }, "src/routes/import/events/index@import.svelte": { - "file": "pages/import/events/index@import.svelte-5a509e12.js", + "file": "pages/import/events/index@import.svelte-aa0e5e58.js", "src": "src/routes/import/events/index@import.svelte", "isEntry": true, "isDynamicEntry": true, @@ -567,7 +567,7 @@ "_route-for-28dfef1d.js", "_navigation-6709cf39.js", "_singletons-d1fb5791.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_index-c8da0ebb.js", "_badge-aff3796f.js", "_index-fe7d98f8.js", @@ -610,7 +610,7 @@ ] }, "src/routes/login/index@login.svelte": { - "file": "pages/login/index@login.svelte-9b57a358.js", + "file": "pages/login/index@login.svelte-2ee63328.js", "src": "src/routes/login/index@login.svelte", "isEntry": true, "isDynamicEntry": true, @@ -618,10 +618,10 @@ "_index-c85ade65.js", "_settings-service-97445e4d.js", "_route-for-28dfef1d.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_stores-2c13cc16.js", "_navigation-6709cf39.js", - "_hamburger-header-b691a839.js", + "_hamburger-header-4788b554.js", "_settings-3cc4c6ae.js", "_index-203c0d43.js", "_get-api-origin-035631a4.js", @@ -634,14 +634,14 @@ "_singletons-d1fb5791.js", "_has-b7e06397.js", "_is-419a79e8.js", - "_data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js", "_data-converter-config-b3e1b826.js", "_persist-store-9b44ce28.js", "_is-http-249a0663.js", "_tooltip-0cd6d07a.js", "_copyable-4c8a8b15.js", "_copy-to-clipboard-b8e3d18c.js", - "_modal-452aea0f.js", + "_modal-c93f492b.js", "_index-39468d30.js" ] }, @@ -664,7 +664,7 @@ ] }, "src/routes/namespaces/[namespace]/archival/_workflow-filters.svelte": { - "file": "pages/namespaces/_namespace_/archival/_workflow-filters.svelte-93bd8797.js", + "file": "pages/namespaces/_namespace_/archival/_workflow-filters.svelte-abe1e0e7.js", "src": "src/routes/namespaces/[namespace]/archival/_workflow-filters.svelte", "isEntry": true, "isDynamicEntry": true, @@ -676,14 +676,14 @@ "_select-ac515c57.js", "_filter-select-9395ecbe.js", "src/routes/namespaces/[namespace]/archival/_filter-input.svelte", - "_search-9c473caf.js", + "_search-3dfcbd93.js", "_time-format-99465e29.js", "_singletons-d1fb5791.js", "_is-419a79e8.js", "_update-query-parameters-94043e37.js", "_index-c0547148.js", "_index-c8da0ebb.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_badge-aff3796f.js", "_persist-store-9b44ce28.js", "_index-203c0d43.js", @@ -691,7 +691,7 @@ ] }, "src/routes/namespaces/[namespace]/archival/index@root.svelte": { - "file": "pages/namespaces/_namespace_/archival/index@root.svelte-78b0a7d2.js", + "file": "pages/namespaces/_namespace_/archival/index@root.svelte-93f56498.js", "src": "src/routes/namespaces/[namespace]/archival/index@root.svelte", "isEntry": true, "isDynamicEntry": true, @@ -728,8 +728,8 @@ "_filter-select-9395ecbe.js", "src/routes/namespaces/[namespace]/archival/_filter-input.svelte", "_index-c0547148.js", - "_search-9c473caf.js", - "_button-808d5fa7.js", + "_search-3dfcbd93.js", + "_button-6823eb61.js", "_badge-aff3796f.js", "_persist-store-9b44ce28.js" ] @@ -758,7 +758,7 @@ ] }, "src/routes/namespaces/[namespace]/schedules/[schedule]/index.svelte": { - "file": "pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-514123fd.js", + "file": "pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-dff9e825.js", "src": "src/routes/namespaces/[namespace]/schedules/[schedule]/index.svelte", "isEntry": true, "isDynamicEntry": true, @@ -777,7 +777,7 @@ "_empty-state-ebe0fe80.js", "_link-d95c4680.js", "_schedule-frequency-dc8435b4.js", - "_modal-452aea0f.js", + "_modal-c93f492b.js", "_index-39468d30.js", "_loading-67332923.js", "_page-title-de4dcecc.js", @@ -794,7 +794,7 @@ "_simplify-attributes-018c5a8d.js", "_code-block-b1ae99b6.js", "_copy-to-clipboard-b8e3d18c.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_badge-aff3796f.js" ], "css": [ @@ -802,7 +802,7 @@ ] }, "src/routes/namespaces/[namespace]/schedules/index.svelte": { - "file": "pages/namespaces/_namespace_/schedules/index.svelte-c50c746e.js", + "file": "pages/namespaces/_namespace_/schedules/index.svelte-3f23f604.js", "src": "src/routes/namespaces/[namespace]/schedules/index.svelte", "isEntry": true, "isDynamicEntry": true, @@ -810,7 +810,7 @@ "_index-c85ade65.js", "_empty-state-ebe0fe80.js", "_pagination-adb051b9.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_badge-aff3796f.js", "_loading-67332923.js", "_stores-2c13cc16.js", @@ -850,7 +850,7 @@ ] }, "src/routes/namespaces/[namespace]/schedules/new.svelte": { - "file": "pages/namespaces/_namespace_/schedules/new.svelte-92eb9059.js", + "file": "pages/namespaces/_namespace_/schedules/new.svelte-7ed43a68.js", "src": "src/routes/namespaces/[namespace]/schedules/new.svelte", "isEntry": true, "isDynamicEntry": true, @@ -862,7 +862,7 @@ "_index-c8da0ebb.js", "_stores-2c13cc16.js", "_route-for-28dfef1d.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_loading-67332923.js", "_page-title-de4dcecc.js", "_navigation-6709cf39.js", @@ -1081,7 +1081,7 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/query.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-9a264da9.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/query.svelte-54b0640a.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/query.svelte", "isEntry": true, "isDynamicEntry": true, @@ -1093,7 +1093,7 @@ "_code-block-b1ae99b6.js", "_select-ac515c57.js", "_empty-state-ebe0fe80.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_page-title-de4dcecc.js", "_loading-67332923.js", "_route-for-api-30acff55.js", @@ -1116,7 +1116,7 @@ ] }, "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace.svelte": { - "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-4b14e090.js", + "file": "pages/namespaces/_namespace_/workflows/_workflow_/_run_/stack-trace.svelte-5f610b29.js", "src": "src/routes/namespaces/[namespace]/workflows/[workflow]/[run]/stack-trace.svelte", "isEntry": true, "isDynamicEntry": true, @@ -1126,7 +1126,7 @@ "_workflow-run-8baf0083.js", "_query-service-8dbc7c6a.js", "_code-block-b1ae99b6.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_empty-state-ebe0fe80.js", "_page-title-de4dcecc.js", "_loading-67332923.js", @@ -1180,7 +1180,7 @@ ] }, "src/routes/namespaces/[namespace]/workflows/index@root.svelte": { - "file": "pages/namespaces/_namespace_/workflows/index@root.svelte-423cf1d2.js", + "file": "pages/namespaces/_namespace_/workflows/index@root.svelte-e7585e69.js", "src": "src/routes/namespaces/[namespace]/workflows/index@root.svelte", "isEntry": true, "isDynamicEntry": true, @@ -1200,7 +1200,7 @@ "_workflow-service-5c6fe49b.js", "_select-ac515c57.js", "_input-b813a209.js", - "_search-9c473caf.js", + "_search-3dfcbd93.js", "_nav-open-ad9d9abb.js", "_feature-tag.svelte_svelte_type_style_lang-0f55e153.js", "_index-c8da0ebb.js", @@ -1224,7 +1224,7 @@ "_notifications-9d24bb07.js", "_is-network-error-ac7c8caf.js", "_get-api-origin-035631a4.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_badge-aff3796f.js" ] }, @@ -1242,7 +1242,7 @@ ] }, "src/routes/signin/index@signin.svelte": { - "file": "pages/signin/index@signin.svelte-5082f3bf.js", + "file": "pages/signin/index@signin.svelte-e214c5a6.js", "src": "src/routes/signin/index@signin.svelte", "isEntry": true, "isDynamicEntry": true, @@ -1250,10 +1250,10 @@ "_index-c85ade65.js", "_settings-service-97445e4d.js", "_route-for-28dfef1d.js", - "_button-808d5fa7.js", + "_button-6823eb61.js", "_stores-2c13cc16.js", "_navigation-6709cf39.js", - "_hamburger-header-b691a839.js", + "_hamburger-header-4788b554.js", "_settings-3cc4c6ae.js", "_index-203c0d43.js", "_get-api-origin-035631a4.js", @@ -1266,14 +1266,14 @@ "_singletons-d1fb5791.js", "_has-b7e06397.js", "_is-419a79e8.js", - "_data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js", "_data-converter-config-b3e1b826.js", "_persist-store-9b44ce28.js", "_is-http-249a0663.js", "_tooltip-0cd6d07a.js", "_copyable-4c8a8b15.js", "_copy-to-clipboard-b8e3d18c.js", - "_modal-452aea0f.js", + "_modal-c93f492b.js", "_index-39468d30.js" ] }, @@ -1395,8 +1395,8 @@ "_route-for-28dfef1d.js": { "file": "chunks/route-for-28dfef1d.js" }, - "_data-encoder-status-631dfb3f.js": { - "file": "chunks/data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js": { + "file": "chunks/data-encoder-status-5dabd0ab.js", "imports": [ "_index-c85ade65.js", "_index-c8da0ebb.js", @@ -1405,8 +1405,8 @@ "_data-converter-config-b3e1b826.js", "_is-http-249a0663.js", "_tooltip-0cd6d07a.js", - "_modal-452aea0f.js", - "_button-808d5fa7.js" + "_modal-c93f492b.js", + "_button-6823eb61.js" ] }, "_namespaces-04ab41f4.js": { @@ -1512,26 +1512,26 @@ "_persist-store-9b44ce28.js" ] }, - "_modal-452aea0f.js": { - "file": "chunks/modal-452aea0f.js", + "_modal-c93f492b.js": { + "file": "chunks/modal-c93f492b.js", "imports": [ "_index-c85ade65.js", "_index-c8da0ebb.js", - "_button-808d5fa7.js" + "_button-6823eb61.js" ], "css": [ "assets/modal-3a862776.css" ] }, - "_button-808d5fa7.js": { - "file": "chunks/button-808d5fa7.js", + "_button-6823eb61.js": { + "file": "chunks/button-6823eb61.js", "imports": [ "_index-c85ade65.js", "_index-c8da0ebb.js", "_badge-aff3796f.js" ], "css": [ - "assets/button-49221968.css" + "assets/button-d1cf8db2.css" ] }, "_copy-to-clipboard-b8e3d18c.js": { @@ -1784,12 +1784,12 @@ "assets/dropdown-menu-bb7b2a34.css" ] }, - "_hamburger-header-b691a839.js": { - "file": "chunks/hamburger-header-b691a839.js", + "_hamburger-header-4788b554.js": { + "file": "chunks/hamburger-header-4788b554.js", "imports": [ "_index-c85ade65.js", "_has-b7e06397.js", - "_data-encoder-status-631dfb3f.js", + "_data-encoder-status-5dabd0ab.js", "_index-c8da0ebb.js", "_index-39468d30.js", "_stores-2c13cc16.js" @@ -1801,12 +1801,12 @@ "_index-c0547148.js": { "file": "chunks/index-c0547148.js" }, - "_search-9c473caf.js": { - "file": "chunks/search-9c473caf.js", + "_search-3dfcbd93.js": { + "file": "chunks/search-3dfcbd93.js", "imports": [ "_index-c85ade65.js", "_index-c8da0ebb.js", - "_button-808d5fa7.js" + "_button-6823eb61.js" ] }, "_workflows-summary-row-429afb28.js": { diff --git a/server/generated/ui/_app/pages/__layout-root.svelte-6ea4d212.js b/server/generated/ui/_app/pages/__layout-root.svelte-da7c225e.js similarity index 97% rename from server/generated/ui/_app/pages/__layout-root.svelte-6ea4d212.js rename to server/generated/ui/_app/pages/__layout-root.svelte-da7c225e.js index 502c17ddc0..ecef034b18 100644 --- a/server/generated/ui/_app/pages/__layout-root.svelte-6ea4d212.js +++ b/server/generated/ui/_app/pages/__layout-root.svelte-da7c225e.js @@ -1 +1 @@ -var ue=Object.defineProperty,ce=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var G=(o,e,n)=>e in o?ue(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,Q=(o,e)=>{for(var n in e||(e={}))de.call(e,n)&&G(o,n,e[n]);if(A)for(var n of A(e))_e.call(e,n)&&G(o,n,e[n]);return o},W=(o,e)=>ce(o,me(e));import{X as pe,S as q,i as z,s as P,e as j,t as R,k as D,c as U,a as O,h as x,d as v,m as S,b,Y as ee,g as N,M as k,T as ve,j as ge,l as y,E as ne,N as X,C as te,V as re,w as V,x as I,y as $,Z as H,q as g,o as h,B as E,_ as M,$ as J,n as he,p as be,I as we,J as ke,K as ye,L as Be}from"../chunks/index-c85ade65.js";import{g as Ve}from"../chunks/get-namespace-d07a8a35.js";import{s as Ie}from"../chunks/search-attributes-ffaf129d.js";import{r as Y,a as Z}from"../chunks/route-for-api-30acff55.js";import{n as $e}from"../chunks/notifications-9d24bb07.js";import{c as Ee,i as se}from"../chunks/version-check-cead3852.js";import{f as Ne,N as Ce,E as Te}from"../chunks/error-boundary-6dab3cea.js";import{f as je}from"../chunks/settings-service-97445e4d.js";/* empty css */import Ue from"./_header.svelte-22cd524a.js";import{p as ae}from"../chunks/stores-2c13cc16.js";import{p as Oe}from"../chunks/persist-store-9b44ce28.js";import{P as Le}from"../chunks/page-title-de4dcecc.js";import"../chunks/index-203c0d43.js";import"../chunks/route-for-28dfef1d.js";import"../chunks/is-network-error-ac7c8caf.js";import"../chunks/is-function-b969a126.js";import"../chunks/get-api-origin-035631a4.js";import"../chunks/index-39468d30.js";import"../chunks/error-b75375ac.js";import"../chunks/navigation-6709cf39.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/link-d95c4680.js";import"../chunks/settings-3cc4c6ae.js";import"../chunks/index-c8da0ebb.js";import"../chunks/feature-tag-28e49b41.js";import"../chunks/feature-tag.svelte_svelte_type_style_lang-0f55e153.js";import"../chunks/nav-open-ad9d9abb.js";import"../chunks/_nav-row-f0b46b6f.js";import"../chunks/empty-state-ebe0fe80.js";import"../chunks/tooltip-0cd6d07a.js";import"../chunks/copyable-4c8a8b15.js";import"../chunks/copy-to-clipboard-b8e3d18c.js";import"../chunks/data-encoder-status-631dfb3f.js";import"../chunks/data-converter-config-b3e1b826.js";import"../chunks/is-http-249a0663.js";import"../chunks/modal-452aea0f.js";import"../chunks/button-808d5fa7.js";import"../chunks/badge-aff3796f.js";import"../chunks/namespaces-04ab41f4.js";const De=(o,e)=>!o.auth.enabled||Boolean(e==null?void 0:e.email),Se=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("search-attributes"),{request:e}).then(n=>(n!=null&&n.keys&&Ie.set(n.keys),n))},qe=async(o=fetch)=>{const e=await o("https://api.github.com/repos/temporalio/ui-server/releases"),n=await e.json();if(!e.ok)return;let t;if(n.length>0){const{tag_name:r}=n[0];t=r.replace("v","")}return t},oe={namespaces:[]};async function ze(o,e=fetch){if(o.runtimeEnvironment.isCloud)return oe;const n=await Y(Z("namespaces"),{request:e,onError:()=>$e.add("error","Unable to fetch namespaces")});return n!=null?n:oe}const Pe=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("cluster"),{request:e}).then(n=>(Ee.set(n),n))};var F=(o=>(o[o.TemporalVersion=1]="TemporalVersion",o[o.UIVersion=2]="UIVersion",o))(F||{});const K=Oe("closedBanners",null),Fe=o=>{var n;let e=(n=pe(K))!=null?n:[];e=[...e,o],e=e.slice(e.length-10,e.length),K.set(e)};function ie(o){let e,n,t,r,s,i,a,l,f,u;return{c(){e=j("section"),n=j("a"),t=R(o[2]),r=D(),s=j("button"),i=R("\u2715"),this.h()},l(c){e=U(c,"SECTION",{class:!0,"data-cy":!0});var d=O(e);n=U(d,"A",{href:!0,target:!0});var _=O(n);t=x(_,o[2]),_.forEach(v),r=S(d),s=U(d,"BUTTON",{class:!0,"data-cy":!0});var w=O(s);i=x(w,"\u2715"),w.forEach(v),d.forEach(v),this.h()},h(){b(n,"href",o[3]),b(n,"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=ee(`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,n),k(n,t),k(e,r),k(e,s),k(s,i),f||(u=ve(s,"click",o[8]),f=!0)},p(c,d){d&4&&ge(t,c[2]),d&8&&b(n,"href",c[3]),d&2&&a!==(a=ee(`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 He(o){let e,n=o[4]&&ie(o);return{c(){n&&n.c(),e=y()},l(t){n&&n.l(t),e=y()},m(t,r){n&&n.m(t,r),N(t,e,r)},p(t,[r]){t[4]?n?n.p(t,r):(n=ie(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:ne,o:ne,d(t){n&&n.d(t),t&&v(e)}}}function Me(o,e,n){let t,r;X(o,K,c=>n(7,r=c));let{key:s}=e,{severity:i}=e,{message:a}=e,{link:l}=e,{shownBanner:f}=e;const u=()=>Fe(s);return o.$$set=c=>{n(5,e=te(te({},e),re(c))),"key"in c&&n(0,s=c.key),"severity"in c&&n(1,i=c.severity),"message"in c&&n(2,a=c.message),"link"in c&&n(3,l=c.link),"shownBanner"in c&&n(6,f=c.shownBanner)},o.$$.update=()=>{o.$$.dirty&129&&n(4,t=!(r!=null?r:[]).includes(s)),o.$$.dirty&80&&(t||n(6,f++,f))},e=re(e),[s,i,a,l,t,e,f,r,u]}class le extends q{constructor(e){super(),z(this,e,Me,He,P,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Je(o){let e,n,t;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 le({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&1&&(n=!0,l.shownBanner=i[0],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ke(o){let e,n,t=o[4]&&Je(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[4]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}function Xe(o,e,n){let t;X(o,ae,L=>n(12,t=L));var r,s,i,a,l;let{shownBanner:f}=e;const{cluster:u}=t.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=se(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 fe(L){f=L,n(0,f)}return o.$$set=L=>{"shownBanner"in L&&n(0,f=L.shownBanner)},[f,m,p,C,B,T,fe]}class Ye extends q{constructor(e){super(),z(this,e,Xe,Ke,P,{shownBanner:0})}}function Ze(o){let e,n,t;function r(i){o[6](i)}let s={key:o[1],severity:Ge,message:o[2],link:o[4],dataCy:"ui-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new le({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&1&&(n=!0,l.shownBanner=i[0],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ae(o){let e,n,t=o[3]&&Ze(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[3]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}const Ge="low";function Qe(o,e,n){let{shownBanner:t}=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=se(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){t=u,n(0,t)}return o.$$set=u=>{"shownBanner"in u&&n(0,t=u.shownBanner),"uiVersionInfo"in u&&n(5,r=u.uiVersionInfo)},[t,s,i,a,l,r,f]}class We extends q{constructor(e){super(),z(this,e,Qe,Ae,P,{shownBanner:0,uiVersionInfo:5})}}function Re(o){let e,n,t,r;const s=[en,xe],i=[];function a(l,f){return l[1]===F.TemporalVersion?0:l[1]===F.UIVersion?1:-1}return~(e=a(o))&&(n=i[e]=s[e](o)),{c(){n&&n.c(),t=y()},l(l){n&&n.l(l),t=y()},m(l,f){~e&&i[e].m(l,f),N(l,t,f),r=!0},p(l,f){let u=e;e=a(l),e===u?~e&&i[e].p(l,f):(n&&(he(),h(i[u],1,1,()=>{i[u]=null}),be()),~e?(n=i[e],n?n.p(l,f):(n=i[e]=s[e](l),n.c()),g(n,1),n.m(t.parentNode,t)):n=null)},i(l){r||(g(n),r=!0)},o(l){h(n),r=!1},d(l){~e&&i[e].d(l),l&&v(t)}}}function xe(o){let e,n,t;function r(i){o[4](i)}let s={uiVersionInfo:o[0]};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new We({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};a&1&&(l.uiVersionInfo=i[0]),!n&&a&2&&(n=!0,l.shownBanner=i[1],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function en(o){let e,n,t;function r(i){o[3](i)}let s={};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Ye({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&2&&(n=!0,l.shownBanner=i[1],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function nn(o){let e,n,t=o[2]&&Re(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[2]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}function tn(o,e,n){let t;X(o,ae,f=>n(5,t=f));let{uiVersionInfo:r}=e,s=F.TemporalVersion;const i=t.stuff.settings.notifyOnNewVersion;function a(f){s=f,n(1,s)}function l(f){s=f,n(1,s)}return o.$$set=f=>{"uiVersionInfo"in f&&n(0,r=f.uiVersionInfo)},[r,s,i,a,l]}class rn extends q{constructor(e){super(),z(this,e,tn,nn,P,{uiVersionInfo:0})}}function on(o){let e;const n=o[2].default,t=we(n,o,o[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){t&&t.p&&(!e||s&8)&&ke(t,n,r,r[3],e?Be(n,r[3],s,null):ye(r[3]),null)},i(r){e||(g(t,r),e=!0)},o(r){h(t,r),e=!1},d(r){t&&t.d(r)}}}function sn(o){let e,n,t,r,s,i,a,l,f,u,c,d,_,w;return e=new Le({}),r=new Ce({}),a=new Ue({props:{user:o[0]}}),u=new rn({props:{uiVersionInfo:o[1]}}),_=new Te({props:{onError:an,$$slots:{default:[on]},$$scope:{ctx:o}}}),{c(){V(e.$$.fragment),n=D(),t=j("div"),V(r.$$.fragment),s=D(),i=j("div"),V(a.$$.fragment),l=D(),f=j("section"),V(u.$$.fragment),c=D(),d=j("div"),V(_.$$.fragment),this.h()},l(m){I(e.$$.fragment,m),n=S(m),t=U(m,"DIV",{class:!0});var p=O(t);I(r.$$.fragment,p),s=S(p),i=U(p,"DIV",{class:!0});var C=O(i);I(a.$$.fragment,C),C.forEach(v),l=S(p),f=U(p,"SECTION",{id:!0,class:!0});var B=O(f);I(u.$$.fragment,B),c=S(B),d=U(B,"DIV",{class:!0});var T=O(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(t,"class","flex h-screen w-screen flex-row")},m(m,p){$(e,m,p),N(m,n,p),N(m,t,p),$(r,t,null),k(t,s),k(t,i),$(a,i,null),k(t,l),k(t,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||(g(e.$$.fragment,m),g(r.$$.fragment,m),g(a.$$.fragment,m),g(u.$$.fragment,m),g(_.$$.fragment,m),w=!0)},o(m){h(e.$$.fragment,m),h(r.$$.fragment,m),h(a.$$.fragment,m),h(u.$$.fragment,m),h(_.$$.fragment,m),w=!1},d(m){E(e,m),m&&v(n),m&&v(t),E(r),E(a),E(u),E(_)}}}const Qn=async function({fetch:o}){const e=await je(o),n=await Ne(o);if(!De(e,n))return{status:302,redirect:"/login"};const t=await ze(e,o),r=Ve({namespaces:t==null?void 0:t.namespaces,settings:e}),s=await Pe(e,o);Se(e);const i={current:e.version,recommended:e.notifyOnNewVersion?await qe(o):void 0};return{props:{user:n,uiVersionInfo:i},stuff:{namespaces:t==null?void 0:t.namespaces,settings:W(Q({},e),{defaultNamespace:r}),cluster:s}}},an=()=>{};function ln(o,e,n){let{$$slots:t={},$$scope:r}=e,{user:s}=e,{uiVersionInfo:i}=e;return o.$$set=a=>{"user"in a&&n(0,s=a.user),"uiVersionInfo"in a&&n(1,i=a.uiVersionInfo),"$$scope"in a&&n(3,r=a.$$scope)},[s,i,t,r]}class Wn extends q{constructor(e){super(),z(this,e,ln,sn,P,{user:0,uiVersionInfo:1})}}export{Wn as default,Qn as load}; +var ue=Object.defineProperty,ce=Object.defineProperties;var me=Object.getOwnPropertyDescriptors;var A=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,_e=Object.prototype.propertyIsEnumerable;var G=(o,e,n)=>e in o?ue(o,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):o[e]=n,Q=(o,e)=>{for(var n in e||(e={}))de.call(e,n)&&G(o,n,e[n]);if(A)for(var n of A(e))_e.call(e,n)&&G(o,n,e[n]);return o},W=(o,e)=>ce(o,me(e));import{X as pe,S as q,i as z,s as P,e as j,t as R,k as D,c as U,a as O,h as x,d as v,m as S,b,Y as ee,g as N,M as k,T as ve,j as ge,l as y,E as ne,N as X,C as te,V as re,w as V,x as I,y as $,Z as H,q as g,o as h,B as E,_ as M,$ as J,n as he,p as be,I as we,J as ke,K as ye,L as Be}from"../chunks/index-c85ade65.js";import{g as Ve}from"../chunks/get-namespace-d07a8a35.js";import{s as Ie}from"../chunks/search-attributes-ffaf129d.js";import{r as Y,a as Z}from"../chunks/route-for-api-30acff55.js";import{n as $e}from"../chunks/notifications-9d24bb07.js";import{c as Ee,i as se}from"../chunks/version-check-cead3852.js";import{f as Ne,N as Ce,E as Te}from"../chunks/error-boundary-6dab3cea.js";import{f as je}from"../chunks/settings-service-97445e4d.js";/* empty css */import Ue from"./_header.svelte-d4f210ad.js";import{p as ae}from"../chunks/stores-2c13cc16.js";import{p as Oe}from"../chunks/persist-store-9b44ce28.js";import{P as Le}from"../chunks/page-title-de4dcecc.js";import"../chunks/index-203c0d43.js";import"../chunks/route-for-28dfef1d.js";import"../chunks/is-network-error-ac7c8caf.js";import"../chunks/is-function-b969a126.js";import"../chunks/get-api-origin-035631a4.js";import"../chunks/index-39468d30.js";import"../chunks/error-b75375ac.js";import"../chunks/navigation-6709cf39.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/link-d95c4680.js";import"../chunks/settings-3cc4c6ae.js";import"../chunks/index-c8da0ebb.js";import"../chunks/feature-tag-28e49b41.js";import"../chunks/feature-tag.svelte_svelte_type_style_lang-0f55e153.js";import"../chunks/nav-open-ad9d9abb.js";import"../chunks/_nav-row-f0b46b6f.js";import"../chunks/empty-state-ebe0fe80.js";import"../chunks/tooltip-0cd6d07a.js";import"../chunks/copyable-4c8a8b15.js";import"../chunks/copy-to-clipboard-b8e3d18c.js";import"../chunks/data-encoder-status-5dabd0ab.js";import"../chunks/data-converter-config-b3e1b826.js";import"../chunks/is-http-249a0663.js";import"../chunks/modal-c93f492b.js";import"../chunks/button-6823eb61.js";import"../chunks/badge-aff3796f.js";import"../chunks/namespaces-04ab41f4.js";const De=(o,e)=>!o.auth.enabled||Boolean(e==null?void 0:e.email),Se=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("search-attributes"),{request:e}).then(n=>(n!=null&&n.keys&&Ie.set(n.keys),n))},qe=async(o=fetch)=>{const e=await o("https://api.github.com/repos/temporalio/ui-server/releases"),n=await e.json();if(!e.ok)return;let t;if(n.length>0){const{tag_name:r}=n[0];t=r.replace("v","")}return t},oe={namespaces:[]};async function ze(o,e=fetch){if(o.runtimeEnvironment.isCloud)return oe;const n=await Y(Z("namespaces"),{request:e,onError:()=>$e.add("error","Unable to fetch namespaces")});return n!=null?n:oe}const Pe=async(o,e=fetch)=>{if(!o.runtimeEnvironment.isCloud)return await Y(Z("cluster"),{request:e}).then(n=>(Ee.set(n),n))};var F=(o=>(o[o.TemporalVersion=1]="TemporalVersion",o[o.UIVersion=2]="UIVersion",o))(F||{});const K=Oe("closedBanners",null),Fe=o=>{var n;let e=(n=pe(K))!=null?n:[];e=[...e,o],e=e.slice(e.length-10,e.length),K.set(e)};function ie(o){let e,n,t,r,s,i,a,l,f,u;return{c(){e=j("section"),n=j("a"),t=R(o[2]),r=D(),s=j("button"),i=R("\u2715"),this.h()},l(c){e=U(c,"SECTION",{class:!0,"data-cy":!0});var d=O(e);n=U(d,"A",{href:!0,target:!0});var _=O(n);t=x(_,o[2]),_.forEach(v),r=S(d),s=U(d,"BUTTON",{class:!0,"data-cy":!0});var w=O(s);i=x(w,"\u2715"),w.forEach(v),d.forEach(v),this.h()},h(){b(n,"href",o[3]),b(n,"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=ee(`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,n),k(n,t),k(e,r),k(e,s),k(s,i),f||(u=ve(s,"click",o[8]),f=!0)},p(c,d){d&4&&ge(t,c[2]),d&8&&b(n,"href",c[3]),d&2&&a!==(a=ee(`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 He(o){let e,n=o[4]&&ie(o);return{c(){n&&n.c(),e=y()},l(t){n&&n.l(t),e=y()},m(t,r){n&&n.m(t,r),N(t,e,r)},p(t,[r]){t[4]?n?n.p(t,r):(n=ie(t),n.c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},i:ne,o:ne,d(t){n&&n.d(t),t&&v(e)}}}function Me(o,e,n){let t,r;X(o,K,c=>n(7,r=c));let{key:s}=e,{severity:i}=e,{message:a}=e,{link:l}=e,{shownBanner:f}=e;const u=()=>Fe(s);return o.$$set=c=>{n(5,e=te(te({},e),re(c))),"key"in c&&n(0,s=c.key),"severity"in c&&n(1,i=c.severity),"message"in c&&n(2,a=c.message),"link"in c&&n(3,l=c.link),"shownBanner"in c&&n(6,f=c.shownBanner)},o.$$.update=()=>{o.$$.dirty&129&&n(4,t=!(r!=null?r:[]).includes(s)),o.$$.dirty&80&&(t||n(6,f++,f))},e=re(e),[s,i,a,l,t,e,f,r,u]}class le extends q{constructor(e){super(),z(this,e,Me,He,P,{key:0,severity:1,message:2,link:3,shownBanner:6})}}function Je(o){let e,n,t;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 le({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&1&&(n=!0,l.shownBanner=i[0],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ke(o){let e,n,t=o[4]&&Je(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[4]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}function Xe(o,e,n){let t;X(o,ae,L=>n(12,t=L));var r,s,i,a,l;let{shownBanner:f}=e;const{cluster:u}=t.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=se(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 fe(L){f=L,n(0,f)}return o.$$set=L=>{"shownBanner"in L&&n(0,f=L.shownBanner)},[f,m,p,C,B,T,fe]}class Ye extends q{constructor(e){super(),z(this,e,Xe,Ke,P,{shownBanner:0})}}function Ze(o){let e,n,t;function r(i){o[6](i)}let s={key:o[1],severity:Ge,message:o[2],link:o[4],dataCy:"ui-version-banner"};return o[0]!==void 0&&(s.shownBanner=o[0]),e=new le({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&1&&(n=!0,l.shownBanner=i[0],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function Ae(o){let e,n,t=o[3]&&Ze(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[3]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}const Ge="low";function Qe(o,e,n){let{shownBanner:t}=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=se(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){t=u,n(0,t)}return o.$$set=u=>{"shownBanner"in u&&n(0,t=u.shownBanner),"uiVersionInfo"in u&&n(5,r=u.uiVersionInfo)},[t,s,i,a,l,r,f]}class We extends q{constructor(e){super(),z(this,e,Qe,Ae,P,{shownBanner:0,uiVersionInfo:5})}}function Re(o){let e,n,t,r;const s=[en,xe],i=[];function a(l,f){return l[1]===F.TemporalVersion?0:l[1]===F.UIVersion?1:-1}return~(e=a(o))&&(n=i[e]=s[e](o)),{c(){n&&n.c(),t=y()},l(l){n&&n.l(l),t=y()},m(l,f){~e&&i[e].m(l,f),N(l,t,f),r=!0},p(l,f){let u=e;e=a(l),e===u?~e&&i[e].p(l,f):(n&&(he(),h(i[u],1,1,()=>{i[u]=null}),be()),~e?(n=i[e],n?n.p(l,f):(n=i[e]=s[e](l),n.c()),g(n,1),n.m(t.parentNode,t)):n=null)},i(l){r||(g(n),r=!0)},o(l){h(n),r=!1},d(l){~e&&i[e].d(l),l&&v(t)}}}function xe(o){let e,n,t;function r(i){o[4](i)}let s={uiVersionInfo:o[0]};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new We({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};a&1&&(l.uiVersionInfo=i[0]),!n&&a&2&&(n=!0,l.shownBanner=i[1],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function en(o){let e,n,t;function r(i){o[3](i)}let s={};return o[1]!==void 0&&(s.shownBanner=o[1]),e=new Ye({props:s}),M.push(()=>J(e,"shownBanner",r)),{c(){V(e.$$.fragment)},l(i){I(e.$$.fragment,i)},m(i,a){$(e,i,a),t=!0},p(i,a){const l={};!n&&a&2&&(n=!0,l.shownBanner=i[1],H(()=>n=!1)),e.$set(l)},i(i){t||(g(e.$$.fragment,i),t=!0)},o(i){h(e.$$.fragment,i),t=!1},d(i){E(e,i)}}}function nn(o){let e,n,t=o[2]&&Re(o);return{c(){t&&t.c(),e=y()},l(r){t&&t.l(r),e=y()},m(r,s){t&&t.m(r,s),N(r,e,s),n=!0},p(r,[s]){r[2]&&t.p(r,s)},i(r){n||(g(t),n=!0)},o(r){h(t),n=!1},d(r){t&&t.d(r),r&&v(e)}}}function tn(o,e,n){let t;X(o,ae,f=>n(5,t=f));let{uiVersionInfo:r}=e,s=F.TemporalVersion;const i=t.stuff.settings.notifyOnNewVersion;function a(f){s=f,n(1,s)}function l(f){s=f,n(1,s)}return o.$$set=f=>{"uiVersionInfo"in f&&n(0,r=f.uiVersionInfo)},[r,s,i,a,l]}class rn extends q{constructor(e){super(),z(this,e,tn,nn,P,{uiVersionInfo:0})}}function on(o){let e;const n=o[2].default,t=we(n,o,o[3],null);return{c(){t&&t.c()},l(r){t&&t.l(r)},m(r,s){t&&t.m(r,s),e=!0},p(r,s){t&&t.p&&(!e||s&8)&&ke(t,n,r,r[3],e?Be(n,r[3],s,null):ye(r[3]),null)},i(r){e||(g(t,r),e=!0)},o(r){h(t,r),e=!1},d(r){t&&t.d(r)}}}function sn(o){let e,n,t,r,s,i,a,l,f,u,c,d,_,w;return e=new Le({}),r=new Ce({}),a=new Ue({props:{user:o[0]}}),u=new rn({props:{uiVersionInfo:o[1]}}),_=new Te({props:{onError:an,$$slots:{default:[on]},$$scope:{ctx:o}}}),{c(){V(e.$$.fragment),n=D(),t=j("div"),V(r.$$.fragment),s=D(),i=j("div"),V(a.$$.fragment),l=D(),f=j("section"),V(u.$$.fragment),c=D(),d=j("div"),V(_.$$.fragment),this.h()},l(m){I(e.$$.fragment,m),n=S(m),t=U(m,"DIV",{class:!0});var p=O(t);I(r.$$.fragment,p),s=S(p),i=U(p,"DIV",{class:!0});var C=O(i);I(a.$$.fragment,C),C.forEach(v),l=S(p),f=U(p,"SECTION",{id:!0,class:!0});var B=O(f);I(u.$$.fragment,B),c=S(B),d=U(B,"DIV",{class:!0});var T=O(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(t,"class","flex h-screen w-screen flex-row")},m(m,p){$(e,m,p),N(m,n,p),N(m,t,p),$(r,t,null),k(t,s),k(t,i),$(a,i,null),k(t,l),k(t,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||(g(e.$$.fragment,m),g(r.$$.fragment,m),g(a.$$.fragment,m),g(u.$$.fragment,m),g(_.$$.fragment,m),w=!0)},o(m){h(e.$$.fragment,m),h(r.$$.fragment,m),h(a.$$.fragment,m),h(u.$$.fragment,m),h(_.$$.fragment,m),w=!1},d(m){E(e,m),m&&v(n),m&&v(t),E(r),E(a),E(u),E(_)}}}const Qn=async function({fetch:o}){const e=await je(o),n=await Ne(o);if(!De(e,n))return{status:302,redirect:"/login"};const t=await ze(e,o),r=Ve({namespaces:t==null?void 0:t.namespaces,settings:e}),s=await Pe(e,o);Se(e);const i={current:e.version,recommended:e.notifyOnNewVersion?await qe(o):void 0};return{props:{user:n,uiVersionInfo:i},stuff:{namespaces:t==null?void 0:t.namespaces,settings:W(Q({},e),{defaultNamespace:r}),cluster:s}}},an=()=>{};function ln(o,e,n){let{$$slots:t={},$$scope:r}=e,{user:s}=e,{uiVersionInfo:i}=e;return o.$$set=a=>{"user"in a&&n(0,s=a.user),"uiVersionInfo"in a&&n(1,i=a.uiVersionInfo),"$$scope"in a&&n(3,r=a.$$scope)},[s,i,t,r]}class Wn extends q{constructor(e){super(),z(this,e,ln,sn,P,{user:0,uiVersionInfo:1})}}export{Wn as default,Qn as load}; diff --git a/server/generated/ui/_app/pages/_header.svelte-22cd524a.js b/server/generated/ui/_app/pages/_header.svelte-d4f210ad.js similarity index 99% rename from server/generated/ui/_app/pages/_header.svelte-22cd524a.js rename to server/generated/ui/_app/pages/_header.svelte-d4f210ad.js index 4af3dcc0cb..a107570361 100644 --- a/server/generated/ui/_app/pages/_header.svelte-22cd524a.js +++ b/server/generated/ui/_app/pages/_header.svelte-d4f210ad.js @@ -1,4 +1,4 @@ -import{S as K,i as J,s as Q,e as k,t as B,c as w,a as z,h as H,d as m,g as $,M as V,j as te,a9 as oe,k as y,w as N,m as P,x as I,b,y as E,aa as $e,ab as Se,T as ee,ac as ye,q as _,o as d,B as C,G as Pe,N as Y,v as Oe,O as Be,_ as He,E as S,l as O,n as q,p as T,R as U,ad as Ae,I as le,Y as qe,H as me,J as ne,K as se,L as ae,a8 as x,ae as Te,af as he,f as Ue}from"../chunks/index-c85ade65.js";import{p as pe}from"../chunks/stores-2c13cc16.js";import{a as We,g as fe}from"../chunks/navigation-6709cf39.js";import{r as Z,a as Ge,b as Me,c as Ye}from"../chunks/route-for-28dfef1d.js";import{I as W}from"../chunks/index-c8da0ebb.js";import{F as Ke}from"../chunks/feature-tag-28e49b41.js";import{n as ie,a as Je}from"../chunks/nav-open-ad9d9abb.js";import{N as Qe,a as G}from"../chunks/_nav-row-f0b46b6f.js";import{E as Re}from"../chunks/empty-state-ebe0fe80.js";import{T as X}from"../chunks/tooltip-0cd6d07a.js";import{v as Xe}from"../chunks/feature-tag.svelte_svelte_type_style_lang-0f55e153.js";import{D as Ze}from"../chunks/data-encoder-status-631dfb3f.js";import{l as ue}from"../chunks/namespaces-04ab41f4.js";import{g as xe}from"../chunks/get-api-origin-035631a4.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/persist-store-9b44ce28.js";import"../chunks/index-203c0d43.js";import"../chunks/is-function-b969a126.js";import"../chunks/copyable-4c8a8b15.js";import"../chunks/copy-to-clipboard-b8e3d18c.js";import"../chunks/data-converter-config-b3e1b826.js";import"../chunks/is-http-249a0663.js";import"../chunks/modal-452aea0f.js";import"../chunks/button-808d5fa7.js";import"../chunks/badge-aff3796f.js";function ve(a,e,n){const t=a.slice();return t[12]=e[n],t}function ge(a){let e,n,t=a[4].params.namespace+"",l;return{c(){e=k("p"),n=B("You are currently viewing "),l=B(t)},l(r){e=w(r,"P",{});var s=z(e);n=H(s,"You are currently viewing "),l=H(s,t),s.forEach(m)},m(r,s){$(r,e,s),V(e,n),V(e,l)},p(r,s){s&16&&t!==(t=r[4].params.namespace+"")&&te(l,t)},d(r){r&&m(e)}}}function et(a){return{c:S,l:S,m:S,p:S,i:S,o:S,d:S}}function tt(a){let e,n,t,l;const r=[nt,lt],s=[];function i(o,f){return o[11]?0:1}return e=i(a),n=s[e]=r[e](a),{c(){n.c(),t=O()},l(o){n.l(o),t=O()},m(o,f){s[e].m(o,f),$(o,t,f),l=!0},p(o,f){let u=e;e=i(o),e===u?s[e].p(o,f):(q(),d(s[u],1,1,()=>{s[u]=null}),T(),n=s[e],n?n.p(o,f):(n=s[e]=r[e](o),n.c()),_(n,1),n.m(t.parentNode,t))},i(o){l||(_(n),l=!0)},o(o){d(n),l=!1},d(o){s[e].d(o),o&&m(t)}}}function lt(a){let e,n;return e=new Re({props:{title:"Could not list Namespaces"}}),{c(){N(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:S,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){d(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function nt(a){let e,n,t=a[11].filter(a[8]),l=[];for(let i=0;id(l[i],1,1,()=>{l[i]=null});let s=null;return t.length||(s=be()),{c(){for(let i=0;i{s=null}),T()):(s=be(),s.c(),_(s,1),s.m(e.parentNode,e))}},i(i){if(!n){for(let o=0;o{p=null}),T()),(!f||j&10)&&r!==(r=a[12].namespace+"")&&te(s,r),(!f||j&10&&i!==(i=a[12].href))&&b(l,"href",i),j&26&&U(l,"active",a[12].namespace===((A=a[4].params)==null?void 0:A.namespace))},i(D){f||(_(p),f=!0)},o(D){d(p),f=!1},d(D){D&&m(e),p&&p.d(),u=!1,c()}}}function st(a){let e;return{c(){e=B("Loading ...")},l(n){e=H(n,"Loading ...")},m(n,t){$(n,e,t)},p:S,i:S,o:S,d(n){n&&m(e)}}}function at(a){var F;let e,n,t,l,r,s,i,o,f,u,c,p,g,h,D,j,v=((F=a[4].params)==null?void 0:F.namespace)&&ge(a);o=new W({props:{name:"search",scale:1}});let A={ctx:a,current:null,token:null,hasCatch:!1,pending:st,then:tt,catch:et,value:11,blocks:[,,,]};return oe(g=a[1],A),{c(){e=k("div"),n=k("h2"),t=B("Select a namespace"),l=y(),v&&v.c(),r=y(),s=k("div"),i=k("div"),N(o.$$.fragment),f=y(),u=k("input"),c=y(),p=k("ul"),A.block.c(),this.h()},l(L){e=w(L,"DIV",{class:!0});var R=z(e);n=w(R,"H2",{class:!0});var M=z(n);t=H(M,"Select a namespace"),M.forEach(m),l=P(R),v&&v.l(R),R.forEach(m),r=P(L),s=w(L,"DIV",{class:!0});var re=z(s);i=w(re,"DIV",{class:!0});var _e=z(i);I(o.$$.fragment,_e),_e.forEach(m),f=P(re),u=w(re,"INPUT",{class:!0,placeholder:!0}),re.forEach(m),c=P(L),p=w(L,"UL",{"data-cy":!0});var de=z(p);A.block.l(de),de.forEach(m),this.h()},h(){b(n,"class","text-2xl"),b(e,"class","prose mt-16 mb-8"),b(i,"class","ml-4 mr-2"),b(u,"class","w-full"),b(u,"placeholder","Search"),b(s,"class","mb-5 flex rounded-full border p-1 pr-4"),b(p,"data-cy","namespace-list")},m(L,R){$(L,e,R),V(e,n),V(n,t),V(e,l),v&&v.m(e,null),$(L,r,R),$(L,s,R),V(s,i),E(o,i,null),V(s,f),V(s,u),$e(u,a[3]),a[7](u),$(L,c,R),$(L,p,R),A.block.m(p,A.anchor=null),A.mount=()=>p,A.anchor=null,h=!0,D||(j=[Se(a[0].call(null,u)),ee(u,"input",a[6])],D=!0)},p(L,[R]){var M;a=L,(M=a[4].params)!=null&&M.namespace?v?v.p(a,R):(v=ge(a),v.c(),v.m(e,null)):v&&(v.d(1),v=null),R&8&&u.value!==a[3]&&$e(u,a[3]),A.ctx=a,R&2&&g!==(g=a[1])&&oe(g,A)||ye(A,a,R)},i(L){h||(_(o.$$.fragment,L),_(A.block),h=!0)},o(L){d(o.$$.fragment,L);for(let R=0;R<3;R+=1){const M=A.blocks[R];d(M)}h=!1},d(L){L&&m(e),v&&v.d(),L&&m(r),L&&m(s),C(o),a[7](null),L&&m(c),L&&m(p),A.block.d(),A.token=null,A=null,D=!1,Pe(j)}}}function rt(a,e,n){let t,l;Y(a,pe,h=>n(4,l=h));let{getNamespaceList:r=null}=e,s=null,i=null;Oe(()=>{n(1,s=r()),i.focus()});const o=Be();function f(h){const D=j=>{h&&!j.defaultPrevented&&j.key==="Escape"&&o("closeNamespaceList")};return document.addEventListener("keydown",D,!0),{destroy(){document.removeEventListener("keydown",D,!0)}}}function u(){t=this.value,n(3,t)}function c(h){He[h?"unshift":"push"](()=>{i=h,n(2,i)})}const p=({namespace:h})=>h.includes(t),g=h=>h==null?void 0:h.onClick();return a.$$set=h=>{"getNamespaceList"in h&&n(5,r=h.getNamespaceList)},n(3,t=""),[f,s,i,t,l,r,u,c,p,g]}class it extends K{constructor(e){super(),J(this,e,rt,at,Q,{getNamespaceList:5,rootDocumentHandler:0})}get rootDocumentHandler(){return this.$$.ctx[0]}}function ot(a){const e=n=>{a&&!a.contains(n.target)&&!n.defaultPrevented&&a.dispatchEvent(new CustomEvent("click-outside"))};return document.addEventListener("click",e,!0),{destroy(){document.removeEventListener("click",e,!0)}}}function ft(a){let e,n,t,l,r,s,i,o;l=new W({props:{name:"close",scale:1}});const f=a[4].default,u=le(f,a,a[3],null);return{c(){e=k("div"),n=k("div"),t=k("div"),N(l.$$.fragment),r=y(),u&&u.c(),this.h()},l(c){e=w(c,"DIV",{class:!0});var p=z(e);n=w(p,"DIV",{class:!0});var g=z(n);t=w(g,"DIV",{class:!0});var h=z(t);I(l.$$.fragment,h),h.forEach(m),g.forEach(m),r=P(p),u&&u.l(p),p.forEach(m),this.h()},h(){b(t,"class","absolute right-0 top-0 cursor-pointer"),b(n,"class","relative"),b(e,"class",qe(` +import{S as K,i as J,s as Q,e as k,t as B,c as w,a as z,h as H,d as m,g as $,M as V,j as te,a9 as oe,k as y,w as N,m as P,x as I,b,y as E,aa as $e,ab as Se,T as ee,ac as ye,q as _,o as d,B as C,G as Pe,N as Y,v as Oe,O as Be,_ as He,E as S,l as O,n as q,p as T,R as U,ad as Ae,I as le,Y as qe,H as me,J as ne,K as se,L as ae,a8 as x,ae as Te,af as he,f as Ue}from"../chunks/index-c85ade65.js";import{p as pe}from"../chunks/stores-2c13cc16.js";import{a as We,g as fe}from"../chunks/navigation-6709cf39.js";import{r as Z,a as Ge,b as Me,c as Ye}from"../chunks/route-for-28dfef1d.js";import{I as W}from"../chunks/index-c8da0ebb.js";import{F as Ke}from"../chunks/feature-tag-28e49b41.js";import{n as ie,a as Je}from"../chunks/nav-open-ad9d9abb.js";import{N as Qe,a as G}from"../chunks/_nav-row-f0b46b6f.js";import{E as Re}from"../chunks/empty-state-ebe0fe80.js";import{T as X}from"../chunks/tooltip-0cd6d07a.js";import{v as Xe}from"../chunks/feature-tag.svelte_svelte_type_style_lang-0f55e153.js";import{D as Ze}from"../chunks/data-encoder-status-5dabd0ab.js";import{l as ue}from"../chunks/namespaces-04ab41f4.js";import{g as xe}from"../chunks/get-api-origin-035631a4.js";import"../chunks/singletons-d1fb5791.js";import"../chunks/persist-store-9b44ce28.js";import"../chunks/index-203c0d43.js";import"../chunks/is-function-b969a126.js";import"../chunks/copyable-4c8a8b15.js";import"../chunks/copy-to-clipboard-b8e3d18c.js";import"../chunks/data-converter-config-b3e1b826.js";import"../chunks/is-http-249a0663.js";import"../chunks/modal-c93f492b.js";import"../chunks/button-6823eb61.js";import"../chunks/badge-aff3796f.js";function ve(a,e,n){const t=a.slice();return t[12]=e[n],t}function ge(a){let e,n,t=a[4].params.namespace+"",l;return{c(){e=k("p"),n=B("You are currently viewing "),l=B(t)},l(r){e=w(r,"P",{});var s=z(e);n=H(s,"You are currently viewing "),l=H(s,t),s.forEach(m)},m(r,s){$(r,e,s),V(e,n),V(e,l)},p(r,s){s&16&&t!==(t=r[4].params.namespace+"")&&te(l,t)},d(r){r&&m(e)}}}function et(a){return{c:S,l:S,m:S,p:S,i:S,o:S,d:S}}function tt(a){let e,n,t,l;const r=[nt,lt],s=[];function i(o,f){return o[11]?0:1}return e=i(a),n=s[e]=r[e](a),{c(){n.c(),t=O()},l(o){n.l(o),t=O()},m(o,f){s[e].m(o,f),$(o,t,f),l=!0},p(o,f){let u=e;e=i(o),e===u?s[e].p(o,f):(q(),d(s[u],1,1,()=>{s[u]=null}),T(),n=s[e],n?n.p(o,f):(n=s[e]=r[e](o),n.c()),_(n,1),n.m(t.parentNode,t))},i(o){l||(_(n),l=!0)},o(o){d(n),l=!1},d(o){s[e].d(o),o&&m(t)}}}function lt(a){let e,n;return e=new Re({props:{title:"Could not list Namespaces"}}),{c(){N(e.$$.fragment)},l(t){I(e.$$.fragment,t)},m(t,l){E(e,t,l),n=!0},p:S,i(t){n||(_(e.$$.fragment,t),n=!0)},o(t){d(e.$$.fragment,t),n=!1},d(t){C(e,t)}}}function nt(a){let e,n,t=a[11].filter(a[8]),l=[];for(let i=0;id(l[i],1,1,()=>{l[i]=null});let s=null;return t.length||(s=be()),{c(){for(let i=0;i{s=null}),T()):(s=be(),s.c(),_(s,1),s.m(e.parentNode,e))}},i(i){if(!n){for(let o=0;o{p=null}),T()),(!f||j&10)&&r!==(r=a[12].namespace+"")&&te(s,r),(!f||j&10&&i!==(i=a[12].href))&&b(l,"href",i),j&26&&U(l,"active",a[12].namespace===((A=a[4].params)==null?void 0:A.namespace))},i(D){f||(_(p),f=!0)},o(D){d(p),f=!1},d(D){D&&m(e),p&&p.d(),u=!1,c()}}}function st(a){let e;return{c(){e=B("Loading ...")},l(n){e=H(n,"Loading ...")},m(n,t){$(n,e,t)},p:S,i:S,o:S,d(n){n&&m(e)}}}function at(a){var F;let e,n,t,l,r,s,i,o,f,u,c,p,g,h,D,j,v=((F=a[4].params)==null?void 0:F.namespace)&&ge(a);o=new W({props:{name:"search",scale:1}});let A={ctx:a,current:null,token:null,hasCatch:!1,pending:st,then:tt,catch:et,value:11,blocks:[,,,]};return oe(g=a[1],A),{c(){e=k("div"),n=k("h2"),t=B("Select a namespace"),l=y(),v&&v.c(),r=y(),s=k("div"),i=k("div"),N(o.$$.fragment),f=y(),u=k("input"),c=y(),p=k("ul"),A.block.c(),this.h()},l(L){e=w(L,"DIV",{class:!0});var R=z(e);n=w(R,"H2",{class:!0});var M=z(n);t=H(M,"Select a namespace"),M.forEach(m),l=P(R),v&&v.l(R),R.forEach(m),r=P(L),s=w(L,"DIV",{class:!0});var re=z(s);i=w(re,"DIV",{class:!0});var _e=z(i);I(o.$$.fragment,_e),_e.forEach(m),f=P(re),u=w(re,"INPUT",{class:!0,placeholder:!0}),re.forEach(m),c=P(L),p=w(L,"UL",{"data-cy":!0});var de=z(p);A.block.l(de),de.forEach(m),this.h()},h(){b(n,"class","text-2xl"),b(e,"class","prose mt-16 mb-8"),b(i,"class","ml-4 mr-2"),b(u,"class","w-full"),b(u,"placeholder","Search"),b(s,"class","mb-5 flex rounded-full border p-1 pr-4"),b(p,"data-cy","namespace-list")},m(L,R){$(L,e,R),V(e,n),V(n,t),V(e,l),v&&v.m(e,null),$(L,r,R),$(L,s,R),V(s,i),E(o,i,null),V(s,f),V(s,u),$e(u,a[3]),a[7](u),$(L,c,R),$(L,p,R),A.block.m(p,A.anchor=null),A.mount=()=>p,A.anchor=null,h=!0,D||(j=[Se(a[0].call(null,u)),ee(u,"input",a[6])],D=!0)},p(L,[R]){var M;a=L,(M=a[4].params)!=null&&M.namespace?v?v.p(a,R):(v=ge(a),v.c(),v.m(e,null)):v&&(v.d(1),v=null),R&8&&u.value!==a[3]&&$e(u,a[3]),A.ctx=a,R&2&&g!==(g=a[1])&&oe(g,A)||ye(A,a,R)},i(L){h||(_(o.$$.fragment,L),_(A.block),h=!0)},o(L){d(o.$$.fragment,L);for(let R=0;R<3;R+=1){const M=A.blocks[R];d(M)}h=!1},d(L){L&&m(e),v&&v.d(),L&&m(r),L&&m(s),C(o),a[7](null),L&&m(c),L&&m(p),A.block.d(),A.token=null,A=null,D=!1,Pe(j)}}}function rt(a,e,n){let t,l;Y(a,pe,h=>n(4,l=h));let{getNamespaceList:r=null}=e,s=null,i=null;Oe(()=>{n(1,s=r()),i.focus()});const o=Be();function f(h){const D=j=>{h&&!j.defaultPrevented&&j.key==="Escape"&&o("closeNamespaceList")};return document.addEventListener("keydown",D,!0),{destroy(){document.removeEventListener("keydown",D,!0)}}}function u(){t=this.value,n(3,t)}function c(h){He[h?"unshift":"push"](()=>{i=h,n(2,i)})}const p=({namespace:h})=>h.includes(t),g=h=>h==null?void 0:h.onClick();return a.$$set=h=>{"getNamespaceList"in h&&n(5,r=h.getNamespaceList)},n(3,t=""),[f,s,i,t,l,r,u,c,p,g]}class it extends K{constructor(e){super(),J(this,e,rt,at,Q,{getNamespaceList:5,rootDocumentHandler:0})}get rootDocumentHandler(){return this.$$.ctx[0]}}function ot(a){const e=n=>{a&&!a.contains(n.target)&&!n.defaultPrevented&&a.dispatchEvent(new CustomEvent("click-outside"))};return document.addEventListener("click",e,!0),{destroy(){document.removeEventListener("click",e,!0)}}}function ft(a){let e,n,t,l,r,s,i,o;l=new W({props:{name:"close",scale:1}});const f=a[4].default,u=le(f,a,a[3],null);return{c(){e=k("div"),n=k("div"),t=k("div"),N(l.$$.fragment),r=y(),u&&u.c(),this.h()},l(c){e=w(c,"DIV",{class:!0});var p=z(e);n=w(p,"DIV",{class:!0});var g=z(n);t=w(g,"DIV",{class:!0});var h=z(t);I(l.$$.fragment,h),h.forEach(m),g.forEach(m),r=P(p),u&&u.l(p),p.forEach(m),this.h()},h(){b(t,"class","absolute right-0 top-0 cursor-pointer"),b(n,"class","relative"),b(e,"class",qe(` absolute right-[300px] z-10 diff --git a/server/generated/ui/_app/pages/import/_event-history-import.svelte-e15c6731.js b/server/generated/ui/_app/pages/import/_event-history-import.svelte-1a072b62.js similarity index 97% rename from server/generated/ui/_app/pages/import/_event-history-import.svelte-e15c6731.js rename to server/generated/ui/_app/pages/import/_event-history-import.svelte-1a072b62.js index 75f83c94c8..4a41da47c0 100644 --- a/server/generated/ui/_app/pages/import/_event-history-import.svelte-e15c6731.js +++ b/server/generated/ui/_app/pages/import/_event-history-import.svelte-1a072b62.js @@ -1 +1 @@ -import{S as $,i as y,s as h,e as g,k as b,w as S,c as w,m as N,x as C,b as c,g as u,y as E,T as x,q as O,o as T,d as f,B as k,t as F,h as I}from"../../chunks/index-c85ade65.js";import{f as U}from"../../chunks/route-for-28dfef1d.js";import{g as A}from"../../chunks/navigation-6709cf39.js";import{B}from"../../chunks/button-808d5fa7.js";import{t as J}from"../../chunks/index-fe7d98f8.js";import{n as v}from"../../chunks/notifications-9d24bb07.js";import{i as q,a as G}from"../../chunks/import-events-cf01b60a.js";import"../../chunks/singletons-d1fb5791.js";import"../../chunks/index-c8da0ebb.js";import"../../chunks/badge-aff3796f.js";import"../../chunks/is-http-249a0663.js";import"../../chunks/index-203c0d43.js";import"../../chunks/persist-store-9b44ce28.js";import"../../chunks/is-function-b969a126.js";import"../../chunks/data-converter-config-b3e1b826.js";import"../../chunks/atob-eb4fc9a1.js";import"../../chunks/format-date-ecf4453c.js";import"../../chunks/to-duration-6d22e6d2.js";import"../../chunks/is-419a79e8.js";import"../../chunks/get-event-categorization-7dc7b7dd.js";import"../../chunks/has-b7e06397.js";import"../../chunks/simplify-attributes-018c5a8d.js";const _={auth:{enabled:!1,options:[]},baseUrl:"base",codec:{},defaultNamespace:"namespace",showTemporalSystemNamespace:!1,notifyOnNewVersion:!1,feedbackURL:"",runtimeEnvironment:{isCloud:!1,isLocal:!0,envOverride:!1},version:"2.0.0"};function L(l){let t;return{c(){t=F("Import")},l(s){t=I(s,"Import")},m(s,o){u(s,t,o)},d(s){s&&f(t)}}}function R(l){let t,s,o,n,a,i;return o=new B({props:{icon:"fileUpload",$$slots:{default:[L]},$$scope:{ctx:l}}}),o.$on("click",l[1]),{c(){t=g("input"),s=b(),S(o.$$.fragment),this.h()},l(e){t=w(e,"INPUT",{class:!0,type:!0,accept:!0}),s=N(e),C(o.$$.fragment,e),this.h()},h(){c(t,"class","import-input block rounded-md border border-gray-200 p-2"),c(t,"type","file"),c(t,"accept",".json")},m(e,r){u(e,t,r),u(e,s,r),E(o,e,r),n=!0,a||(i=x(t,"change",l[0]),a=!0)},p(e,[r]){const m={};r&8&&(m.$$scope={dirty:r,ctx:e}),o.$set(m)},i(e){n||(O(o.$$.fragment,e),n=!0)},o(e){T(o.$$.fragment,e),n=!1},d(e){e&&f(t),e&&f(s),k(o,e),a=!1,i()}}}function j(l){let t;return[async n=>{var a;const i=n.target,e=(a=i==null?void 0:i.files)===null||a===void 0?void 0:a[0],r=new FileReader;e&&(r.readAsText(e),r.onload=()=>{var m,p;try{const d=(p=(m=r==null?void 0:r.result)===null||m===void 0?void 0:m.toString())!==null&&p!==void 0?p:"";t=JSON.parse(d)}catch{v.add("error","Could not parse JSON")}})},async()=>{try{const{events:n,eventGroups:a}=await J({response:Array.isArray(t)?t:t==null?void 0:t.events,namespace:_.defaultNamespace,settings:_});q.set(n),G.set(a);const i=U({importType:"events",view:"feed"});A(i)}catch(n){console.error(n),v.add("error","Could not create event history from JSON")}}]}class pt extends ${constructor(t){super(),y(this,t,j,R,h,{})}}export{pt as default}; +import{S as $,i as y,s as h,e as g,k as b,w as S,c as w,m as N,x as C,b as c,g as u,y as E,T as x,q as O,o as T,d as f,B as k,t as F,h as I}from"../../chunks/index-c85ade65.js";import{f as U}from"../../chunks/route-for-28dfef1d.js";import{g as A}from"../../chunks/navigation-6709cf39.js";import{B}from"../../chunks/button-6823eb61.js";import{t as J}from"../../chunks/index-fe7d98f8.js";import{n as v}from"../../chunks/notifications-9d24bb07.js";import{i as q,a as G}from"../../chunks/import-events-cf01b60a.js";import"../../chunks/singletons-d1fb5791.js";import"../../chunks/index-c8da0ebb.js";import"../../chunks/badge-aff3796f.js";import"../../chunks/is-http-249a0663.js";import"../../chunks/index-203c0d43.js";import"../../chunks/persist-store-9b44ce28.js";import"../../chunks/is-function-b969a126.js";import"../../chunks/data-converter-config-b3e1b826.js";import"../../chunks/atob-eb4fc9a1.js";import"../../chunks/format-date-ecf4453c.js";import"../../chunks/to-duration-6d22e6d2.js";import"../../chunks/is-419a79e8.js";import"../../chunks/get-event-categorization-7dc7b7dd.js";import"../../chunks/has-b7e06397.js";import"../../chunks/simplify-attributes-018c5a8d.js";const _={auth:{enabled:!1,options:[]},baseUrl:"base",codec:{},defaultNamespace:"namespace",showTemporalSystemNamespace:!1,notifyOnNewVersion:!1,feedbackURL:"",runtimeEnvironment:{isCloud:!1,isLocal:!0,envOverride:!1},version:"2.0.0"};function L(l){let t;return{c(){t=F("Import")},l(s){t=I(s,"Import")},m(s,o){u(s,t,o)},d(s){s&&f(t)}}}function R(l){let t,s,o,n,a,i;return o=new B({props:{icon:"fileUpload",$$slots:{default:[L]},$$scope:{ctx:l}}}),o.$on("click",l[1]),{c(){t=g("input"),s=b(),S(o.$$.fragment),this.h()},l(e){t=w(e,"INPUT",{class:!0,type:!0,accept:!0}),s=N(e),C(o.$$.fragment,e),this.h()},h(){c(t,"class","import-input block rounded-md border border-gray-200 p-2"),c(t,"type","file"),c(t,"accept",".json")},m(e,r){u(e,t,r),u(e,s,r),E(o,e,r),n=!0,a||(i=x(t,"change",l[0]),a=!0)},p(e,[r]){const m={};r&8&&(m.$$scope={dirty:r,ctx:e}),o.$set(m)},i(e){n||(O(o.$$.fragment,e),n=!0)},o(e){T(o.$$.fragment,e),n=!1},d(e){e&&f(t),e&&f(s),k(o,e),a=!1,i()}}}function j(l){let t;return[async n=>{var a;const i=n.target,e=(a=i==null?void 0:i.files)===null||a===void 0?void 0:a[0],r=new FileReader;e&&(r.readAsText(e),r.onload=()=>{var m,p;try{const d=(p=(m=r==null?void 0:r.result)===null||m===void 0?void 0:m.toString())!==null&&p!==void 0?p:"";t=JSON.parse(d)}catch{v.add("error","Could not parse JSON")}})},async()=>{try{const{events:n,eventGroups:a}=await J({response:Array.isArray(t)?t:t==null?void 0:t.events,namespace:_.defaultNamespace,settings:_});q.set(n),G.set(a);const i=U({importType:"events",view:"feed"});A(i)}catch(n){console.error(n),v.add("error","Could not create event history from JSON")}}]}class pt extends ${constructor(t){super(),y(this,t,j,R,h,{})}}export{pt as default}; diff --git a/server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-13b05044.js b/server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-f9d82e58.js similarity index 97% rename from server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-13b05044.js rename to server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-f9d82e58.js index 1bea5b0dce..c3ad7c37dd 100644 --- a/server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-13b05044.js +++ b/server/generated/ui/_app/pages/import/events/_namespace_/_workflow_/_run_/history/__layout@import.svelte-f9d82e58.js @@ -1 +1 @@ -import{S as L,i as M,s as z,I as G,e as b,t as J,k as N,w as S,c as w,a as E,h as O,d as f,m as j,x as C,b as v,g as I,M as g,y as V,J as P,K as Q,L as R,q as T,o as y,B as H}from"../../../../../../../chunks/index-c85ade65.js";import{f as A}from"../../../../../../../chunks/route-for-28dfef1d.js";import{T as U,a as D}from"../../../../../../../chunks/toggle-buttons-9d795aae.js";import W from"../../../../../_event-history-import.svelte-e15c6731.js";import"../../../../../../../chunks/index-c8da0ebb.js";import"../../../../../../../chunks/stores-2c13cc16.js";import"../../../../../../../chunks/navigation-6709cf39.js";import"../../../../../../../chunks/singletons-d1fb5791.js";import"../../../../../../../chunks/button-808d5fa7.js";import"../../../../../../../chunks/badge-aff3796f.js";import"../../../../../../../chunks/index-fe7d98f8.js";import"../../../../../../../chunks/is-http-249a0663.js";import"../../../../../../../chunks/index-203c0d43.js";import"../../../../../../../chunks/persist-store-9b44ce28.js";import"../../../../../../../chunks/is-function-b969a126.js";import"../../../../../../../chunks/data-converter-config-b3e1b826.js";import"../../../../../../../chunks/atob-eb4fc9a1.js";import"../../../../../../../chunks/format-date-ecf4453c.js";import"../../../../../../../chunks/to-duration-6d22e6d2.js";import"../../../../../../../chunks/is-419a79e8.js";import"../../../../../../../chunks/get-event-categorization-7dc7b7dd.js";import"../../../../../../../chunks/has-b7e06397.js";import"../../../../../../../chunks/simplify-attributes-018c5a8d.js";import"../../../../../../../chunks/notifications-9d24bb07.js";import"../../../../../../../chunks/import-events-cf01b60a.js";function X(i){let t;return{c(){t=J("Timeline")},l(s){t=O(s,"Timeline")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function Y(i){let t;return{c(){t=J("Compact")},l(s){t=O(s,"Compact")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function Z(i){let t;return{c(){t=J("JSON")},l(s){t=O(s,"JSON")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function tt(i){let t,s,o,p,a,$;return t=new D({props:{icon:"feed",href:A({importType:"events",view:"feed"}),$$slots:{default:[X]},$$scope:{ctx:i}}}),o=new D({props:{icon:"compact",href:A({importType:"events",view:"compact"}),$$slots:{default:[Y]},$$scope:{ctx:i}}}),a=new D({props:{icon:"json",href:A({importType:"events",view:"json"}),$$slots:{default:[Z]},$$scope:{ctx:i}}}),{c(){S(t.$$.fragment),s=N(),S(o.$$.fragment),p=N(),S(a.$$.fragment)},l(e){C(t.$$.fragment,e),s=j(e),C(o.$$.fragment,e),p=j(e),C(a.$$.fragment,e)},m(e,r){V(t,e,r),I(e,s,r),V(o,e,r),I(e,p,r),V(a,e,r),$=!0},p(e,r){const _={};r&2&&(_.$$scope={dirty:r,ctx:e}),t.$set(_);const c={};r&2&&(c.$$scope={dirty:r,ctx:e}),o.$set(c);const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),a.$set(u)},i(e){$||(T(t.$$.fragment,e),T(o.$$.fragment,e),T(a.$$.fragment,e),$=!0)},o(e){y(t.$$.fragment,e),y(o.$$.fragment,e),y(a.$$.fragment,e),$=!1},d(e){H(t,e),e&&f(s),H(o,e),e&&f(p),H(a,e)}}}function et(i){let t,s,o,p,a,$,e,r,_,c,u,q,h;e=new W({}),u=new U({props:{$$slots:{default:[tt]},$$scope:{ctx:i}}});const x=i[0].default,l=G(x,i,i[1],null);return{c(){t=b("section"),s=b("nav"),o=b("h3"),p=J("Event History"),a=N(),$=b("div"),S(e.$$.fragment),r=N(),_=b("nav"),c=b("div"),S(u.$$.fragment),q=N(),l&&l.c(),this.h()},l(n){t=w(n,"SECTION",{id:!0});var m=E(t);s=w(m,"NAV",{class:!0});var d=E(s);o=w(d,"H3",{class:!0});var k=E(o);p=O(k,"Event History"),k.forEach(f),a=j(d),$=w(d,"DIV",{class:!0});var B=E($);C(e.$$.fragment,B),B.forEach(f),d.forEach(f),r=j(m),_=w(m,"NAV",{class:!0});var F=E(_);c=w(F,"DIV",{id:!0,class:!0});var K=E(c);C(u.$$.fragment,K),K.forEach(f),F.forEach(f),q=j(m),l&&l.l(m),m.forEach(f),this.h()},h(){v(o,"class","text-lg font-medium"),v($,"class","flex gap-4"),v(s,"class","flex items-end justify-between gap-4 pb-4"),v(c,"id","event-view-toggle"),v(c,"class","flex gap-4"),v(_,"class","flex items-end justify-end gap-4 pb-4"),v(t,"id","event-history")},m(n,m){I(n,t,m),g(t,s),g(s,o),g(o,p),g(s,a),g(s,$),V(e,$,null),g(t,r),g(t,_),g(_,c),V(u,c,null),g(t,q),l&&l.m(t,null),h=!0},p(n,[m]){const d={};m&2&&(d.$$scope={dirty:m,ctx:n}),u.$set(d),l&&l.p&&(!h||m&2)&&P(l,x,n,n[1],h?R(x,n[1],m,null):Q(n[1]),null)},i(n){h||(T(e.$$.fragment,n),T(u.$$.fragment,n),T(l,n),h=!0)},o(n){y(e.$$.fragment,n),y(u.$$.fragment,n),y(l,n),h=!1},d(n){n&&f(t),H(e),H(u),l&&l.d(n)}}}function st(i,t,s){let{$$slots:o={},$$scope:p}=t;return i.$$set=a=>{"$$scope"in a&&s(1,p=a.$$scope)},[o,p]}class jt extends L{constructor(t){super(),M(this,t,st,et,z,{})}}export{jt as default}; +import{S as L,i as M,s as z,I as G,e as b,t as J,k as N,w as S,c as w,a as E,h as O,d as f,m as j,x as C,b as v,g as I,M as g,y as V,J as P,K as Q,L as R,q as T,o as y,B as H}from"../../../../../../../chunks/index-c85ade65.js";import{f as A}from"../../../../../../../chunks/route-for-28dfef1d.js";import{T as U,a as D}from"../../../../../../../chunks/toggle-buttons-9d795aae.js";import W from"../../../../../_event-history-import.svelte-1a072b62.js";import"../../../../../../../chunks/index-c8da0ebb.js";import"../../../../../../../chunks/stores-2c13cc16.js";import"../../../../../../../chunks/navigation-6709cf39.js";import"../../../../../../../chunks/singletons-d1fb5791.js";import"../../../../../../../chunks/button-6823eb61.js";import"../../../../../../../chunks/badge-aff3796f.js";import"../../../../../../../chunks/index-fe7d98f8.js";import"../../../../../../../chunks/is-http-249a0663.js";import"../../../../../../../chunks/index-203c0d43.js";import"../../../../../../../chunks/persist-store-9b44ce28.js";import"../../../../../../../chunks/is-function-b969a126.js";import"../../../../../../../chunks/data-converter-config-b3e1b826.js";import"../../../../../../../chunks/atob-eb4fc9a1.js";import"../../../../../../../chunks/format-date-ecf4453c.js";import"../../../../../../../chunks/to-duration-6d22e6d2.js";import"../../../../../../../chunks/is-419a79e8.js";import"../../../../../../../chunks/get-event-categorization-7dc7b7dd.js";import"../../../../../../../chunks/has-b7e06397.js";import"../../../../../../../chunks/simplify-attributes-018c5a8d.js";import"../../../../../../../chunks/notifications-9d24bb07.js";import"../../../../../../../chunks/import-events-cf01b60a.js";function X(i){let t;return{c(){t=J("Timeline")},l(s){t=O(s,"Timeline")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function Y(i){let t;return{c(){t=J("Compact")},l(s){t=O(s,"Compact")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function Z(i){let t;return{c(){t=J("JSON")},l(s){t=O(s,"JSON")},m(s,o){I(s,t,o)},d(s){s&&f(t)}}}function tt(i){let t,s,o,p,a,$;return t=new D({props:{icon:"feed",href:A({importType:"events",view:"feed"}),$$slots:{default:[X]},$$scope:{ctx:i}}}),o=new D({props:{icon:"compact",href:A({importType:"events",view:"compact"}),$$slots:{default:[Y]},$$scope:{ctx:i}}}),a=new D({props:{icon:"json",href:A({importType:"events",view:"json"}),$$slots:{default:[Z]},$$scope:{ctx:i}}}),{c(){S(t.$$.fragment),s=N(),S(o.$$.fragment),p=N(),S(a.$$.fragment)},l(e){C(t.$$.fragment,e),s=j(e),C(o.$$.fragment,e),p=j(e),C(a.$$.fragment,e)},m(e,r){V(t,e,r),I(e,s,r),V(o,e,r),I(e,p,r),V(a,e,r),$=!0},p(e,r){const _={};r&2&&(_.$$scope={dirty:r,ctx:e}),t.$set(_);const c={};r&2&&(c.$$scope={dirty:r,ctx:e}),o.$set(c);const u={};r&2&&(u.$$scope={dirty:r,ctx:e}),a.$set(u)},i(e){$||(T(t.$$.fragment,e),T(o.$$.fragment,e),T(a.$$.fragment,e),$=!0)},o(e){y(t.$$.fragment,e),y(o.$$.fragment,e),y(a.$$.fragment,e),$=!1},d(e){H(t,e),e&&f(s),H(o,e),e&&f(p),H(a,e)}}}function et(i){let t,s,o,p,a,$,e,r,_,c,u,q,h;e=new W({}),u=new U({props:{$$slots:{default:[tt]},$$scope:{ctx:i}}});const x=i[0].default,l=G(x,i,i[1],null);return{c(){t=b("section"),s=b("nav"),o=b("h3"),p=J("Event History"),a=N(),$=b("div"),S(e.$$.fragment),r=N(),_=b("nav"),c=b("div"),S(u.$$.fragment),q=N(),l&&l.c(),this.h()},l(n){t=w(n,"SECTION",{id:!0});var m=E(t);s=w(m,"NAV",{class:!0});var d=E(s);o=w(d,"H3",{class:!0});var k=E(o);p=O(k,"Event History"),k.forEach(f),a=j(d),$=w(d,"DIV",{class:!0});var B=E($);C(e.$$.fragment,B),B.forEach(f),d.forEach(f),r=j(m),_=w(m,"NAV",{class:!0});var F=E(_);c=w(F,"DIV",{id:!0,class:!0});var K=E(c);C(u.$$.fragment,K),K.forEach(f),F.forEach(f),q=j(m),l&&l.l(m),m.forEach(f),this.h()},h(){v(o,"class","text-lg font-medium"),v($,"class","flex gap-4"),v(s,"class","flex items-end justify-between gap-4 pb-4"),v(c,"id","event-view-toggle"),v(c,"class","flex gap-4"),v(_,"class","flex items-end justify-end gap-4 pb-4"),v(t,"id","event-history")},m(n,m){I(n,t,m),g(t,s),g(s,o),g(o,p),g(s,a),g(s,$),V(e,$,null),g(t,r),g(t,_),g(_,c),V(u,c,null),g(t,q),l&&l.m(t,null),h=!0},p(n,[m]){const d={};m&2&&(d.$$scope={dirty:m,ctx:n}),u.$set(d),l&&l.p&&(!h||m&2)&&P(l,x,n,n[1],h?R(x,n[1],m,null):Q(n[1]),null)},i(n){h||(T(e.$$.fragment,n),T(u.$$.fragment,n),T(l,n),h=!0)},o(n){y(e.$$.fragment,n),y(u.$$.fragment,n),y(l,n),h=!1},d(n){n&&f(t),H(e),H(u),l&&l.d(n)}}}function st(i,t,s){let{$$slots:o={},$$scope:p}=t;return i.$$set=a=>{"$$scope"in a&&s(1,p=a.$$scope)},[o,p]}class jt extends L{constructor(t){super(),M(this,t,st,et,z,{})}}export{jt as default}; diff --git a/server/generated/ui/_app/pages/import/events/index@import.svelte-5a509e12.js b/server/generated/ui/_app/pages/import/events/index@import.svelte-aa0e5e58.js similarity index 96% rename from server/generated/ui/_app/pages/import/events/index@import.svelte-5a509e12.js rename to server/generated/ui/_app/pages/import/events/index@import.svelte-aa0e5e58.js index 3084290bc9..ae40b5fd98 100644 --- a/server/generated/ui/_app/pages/import/events/index@import.svelte-5a509e12.js +++ b/server/generated/ui/_app/pages/import/events/index@import.svelte-aa0e5e58.js @@ -1 +1 @@ -import{S as rt,i as st,s as at,e as m,t as k,k as v,w as O,c,a as l,h as C,d as n,m as _,x as V,b as p,g as ot,M as t,y as D,q as T,o as q,B as G}from"../../../chunks/index-c85ade65.js";import nt from"../_event-history-import.svelte-e15c6731.js";import{C as tt}from"../../../chunks/code-block-b1ae99b6.js";import{L as it}from"../../../chunks/link-d95c4680.js";import"../../../chunks/route-for-28dfef1d.js";import"../../../chunks/navigation-6709cf39.js";import"../../../chunks/singletons-d1fb5791.js";import"../../../chunks/button-808d5fa7.js";import"../../../chunks/index-c8da0ebb.js";import"../../../chunks/badge-aff3796f.js";import"../../../chunks/index-fe7d98f8.js";import"../../../chunks/is-http-249a0663.js";import"../../../chunks/index-203c0d43.js";import"../../../chunks/persist-store-9b44ce28.js";import"../../../chunks/is-function-b969a126.js";import"../../../chunks/data-converter-config-b3e1b826.js";import"../../../chunks/atob-eb4fc9a1.js";import"../../../chunks/format-date-ecf4453c.js";import"../../../chunks/to-duration-6d22e6d2.js";import"../../../chunks/is-419a79e8.js";import"../../../chunks/get-event-categorization-7dc7b7dd.js";import"../../../chunks/has-b7e06397.js";import"../../../chunks/simplify-attributes-018c5a8d.js";import"../../../chunks/notifications-9d24bb07.js";import"../../../chunks/import-events-cf01b60a.js";import"../../../chunks/copy-to-clipboard-b8e3d18c.js";function mt(g){let e;return{c(){e=k("View in Github")},l(s){e=C(s,"View in Github")},m(s,i){ot(s,e,i)},d(s){s&&n(e)}}}function ct(g){let e,s,i,E,J,L,b,h,j,r,y,A,B,x,d,M,w,z,F,u,K,H,P,Q,$,S;return h=new nt({}),d=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[mt]},$$scope:{ctx:g}}}),u=new tt({props:{content:g[0]}}),$=new tt({props:{content:g[1]}}),{c(){e=m("section"),s=m("section"),i=m("nav"),E=m("h3"),J=k("Event History Import"),L=v(),b=m("div"),O(h.$$.fragment),j=v(),r=m("section"),y=m("code"),A=k("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),B=v(),x=m("div"),O(d.$$.fragment),M=v(),w=m("h3"),z=k("Expected JSON format"),F=v(),O(u.$$.fragment),K=v(),H=m("h4"),P=k("or"),Q=v(),O($.$$.fragment),this.h()},l(o){e=c(o,"SECTION",{class:!0});var f=l(e);s=c(f,"SECTION",{id:!0});var I=l(s);i=c(I,"NAV",{class:!0});var N=l(i);E=c(N,"H3",{class:!0});var R=l(E);J=C(R,"Event History Import"),R.forEach(n),L=_(N),b=c(N,"DIV",{class:!0});var U=l(b);V(h.$$.fragment,U),U.forEach(n),N.forEach(n),I.forEach(n),j=_(f),r=c(f,"SECTION",{class:!0});var a=l(r);y=c(a,"CODE",{class:!0});var W=l(y);A=C(W,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W.forEach(n),B=_(a),x=c(a,"DIV",{class:!0});var X=l(x);V(d.$$.fragment,X),X.forEach(n),M=_(a),w=c(a,"H3",{class:!0});var Y=l(w);z=C(Y,"Expected JSON format"),Y.forEach(n),F=_(a),V(u.$$.fragment,a),K=_(a),H=c(a,"H4",{class:!0});var Z=l(H);P=C(Z,"or"),Z.forEach(n),Q=_(a),V($.$$.fragment,a),a.forEach(n),f.forEach(n),this.h()},h(){p(E,"class","text-lg font-medium"),p(b,"class","flex gap-4"),p(i,"class","block items-center justify-between gap-4 pb-4 lg:flex"),p(s,"id","event-history"),p(y,"class","text-md bg-gray-200 p-2 font-medium"),p(x,"class","mt-4"),p(w,"class","mt-8 text-lg font-medium"),p(H,"class","text-md font-medium"),p(r,"class","w-full md:w-1/2"),p(e,"class","flex flex-col gap-4")},m(o,f){ot(o,e,f),t(e,s),t(s,i),t(i,E),t(E,J),t(i,L),t(i,b),D(h,b,null),t(e,j),t(e,r),t(r,y),t(y,A),t(r,B),t(r,x),D(d,x,null),t(r,M),t(r,w),t(w,z),t(r,F),D(u,r,null),t(r,K),t(r,H),t(H,P),t(r,Q),D($,r,null),S=!0},p(o,[f]){const I={};f&4&&(I.$$scope={dirty:f,ctx:o}),d.$set(I)},i(o){S||(T(h.$$.fragment,o),T(d.$$.fragment,o),T(u.$$.fragment,o),T($.$$.fragment,o),S=!0)},o(o){q(h.$$.fragment,o),q(d.$$.fragment,o),q(u.$$.fragment,o),q($.$$.fragment,o),S=!1},d(o){o&&n(e),G(h),G(d),G(u),G($)}}}const et="EventHistory";function lt(g){return[{events:[et]},[et]]}class Jt extends rt{constructor(e){super(),st(this,e,lt,ct,at,{})}}export{Jt as default}; +import{S as rt,i as st,s as at,e as m,t as k,k as v,w as O,c,a as l,h as C,d as n,m as _,x as V,b as p,g as ot,M as t,y as D,q as T,o as q,B as G}from"../../../chunks/index-c85ade65.js";import nt from"../_event-history-import.svelte-1a072b62.js";import{C as tt}from"../../../chunks/code-block-b1ae99b6.js";import{L as it}from"../../../chunks/link-d95c4680.js";import"../../../chunks/route-for-28dfef1d.js";import"../../../chunks/navigation-6709cf39.js";import"../../../chunks/singletons-d1fb5791.js";import"../../../chunks/button-6823eb61.js";import"../../../chunks/index-c8da0ebb.js";import"../../../chunks/badge-aff3796f.js";import"../../../chunks/index-fe7d98f8.js";import"../../../chunks/is-http-249a0663.js";import"../../../chunks/index-203c0d43.js";import"../../../chunks/persist-store-9b44ce28.js";import"../../../chunks/is-function-b969a126.js";import"../../../chunks/data-converter-config-b3e1b826.js";import"../../../chunks/atob-eb4fc9a1.js";import"../../../chunks/format-date-ecf4453c.js";import"../../../chunks/to-duration-6d22e6d2.js";import"../../../chunks/is-419a79e8.js";import"../../../chunks/get-event-categorization-7dc7b7dd.js";import"../../../chunks/has-b7e06397.js";import"../../../chunks/simplify-attributes-018c5a8d.js";import"../../../chunks/notifications-9d24bb07.js";import"../../../chunks/import-events-cf01b60a.js";import"../../../chunks/copy-to-clipboard-b8e3d18c.js";function mt(g){let e;return{c(){e=k("View in Github")},l(s){e=C(s,"View in Github")},m(s,i){ot(s,e,i)},d(s){s&&n(e)}}}function ct(g){let e,s,i,E,J,L,b,h,j,r,y,A,B,x,d,M,w,z,F,u,K,H,P,Q,$,S;return h=new nt({}),d=new it({props:{target:"_blank",href:"https://github.com/temporalio/api/blob/1cd0ac0bbd8e71c7bfc9fe1900c678b432e66e5b/temporal/api/history/v1/message.proto",class:"mb-8",$$slots:{default:[mt]},$$scope:{ctx:g}}}),u=new tt({props:{content:g[0]}}),$=new tt({props:{content:g[1]}}),{c(){e=m("section"),s=m("section"),i=m("nav"),E=m("h3"),J=k("Event History Import"),L=v(),b=m("div"),O(h.$$.fragment),j=v(),r=m("section"),y=m("code"),A=k("type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),B=v(),x=m("div"),O(d.$$.fragment),M=v(),w=m("h3"),z=k("Expected JSON format"),F=v(),O(u.$$.fragment),K=v(),H=m("h4"),P=k("or"),Q=v(),O($.$$.fragment),this.h()},l(o){e=c(o,"SECTION",{class:!0});var f=l(e);s=c(f,"SECTION",{id:!0});var I=l(s);i=c(I,"NAV",{class:!0});var N=l(i);E=c(N,"H3",{class:!0});var R=l(E);J=C(R,"Event History Import"),R.forEach(n),L=_(N),b=c(N,"DIV",{class:!0});var U=l(b);V(h.$$.fragment,U),U.forEach(n),N.forEach(n),I.forEach(n),j=_(f),r=c(f,"SECTION",{class:!0});var a=l(r);y=c(a,"CODE",{class:!0});var W=l(y);A=C(W,"type HistoryEvent = temporal.api.history.v1.IHistoryEvent"),W.forEach(n),B=_(a),x=c(a,"DIV",{class:!0});var X=l(x);V(d.$$.fragment,X),X.forEach(n),M=_(a),w=c(a,"H3",{class:!0});var Y=l(w);z=C(Y,"Expected JSON format"),Y.forEach(n),F=_(a),V(u.$$.fragment,a),K=_(a),H=c(a,"H4",{class:!0});var Z=l(H);P=C(Z,"or"),Z.forEach(n),Q=_(a),V($.$$.fragment,a),a.forEach(n),f.forEach(n),this.h()},h(){p(E,"class","text-lg font-medium"),p(b,"class","flex gap-4"),p(i,"class","block items-center justify-between gap-4 pb-4 lg:flex"),p(s,"id","event-history"),p(y,"class","text-md bg-gray-200 p-2 font-medium"),p(x,"class","mt-4"),p(w,"class","mt-8 text-lg font-medium"),p(H,"class","text-md font-medium"),p(r,"class","w-full md:w-1/2"),p(e,"class","flex flex-col gap-4")},m(o,f){ot(o,e,f),t(e,s),t(s,i),t(i,E),t(E,J),t(i,L),t(i,b),D(h,b,null),t(e,j),t(e,r),t(r,y),t(y,A),t(r,B),t(r,x),D(d,x,null),t(r,M),t(r,w),t(w,z),t(r,F),D(u,r,null),t(r,K),t(r,H),t(H,P),t(r,Q),D($,r,null),S=!0},p(o,[f]){const I={};f&4&&(I.$$scope={dirty:f,ctx:o}),d.$set(I)},i(o){S||(T(h.$$.fragment,o),T(d.$$.fragment,o),T(u.$$.fragment,o),T($.$$.fragment,o),S=!0)},o(o){q(h.$$.fragment,o),q(d.$$.fragment,o),q(u.$$.fragment,o),q($.$$.fragment,o),S=!1},d(o){o&&n(e),G(h),G(d),G(u),G($)}}}const et="EventHistory";function lt(g){return[{events:[et]},[et]]}class Jt extends rt{constructor(e){super(),st(this,e,lt,ct,at,{})}}export{Jt as default}; diff --git a/server/generated/ui/_app/pages/login/index@login.svelte-2ee63328.js b/server/generated/ui/_app/pages/login/index@login.svelte-2ee63328.js new file mode 100644 index 0000000000..adb2b80967 --- /dev/null +++ b/server/generated/ui/_app/pages/login/index@login.svelte-2ee63328.js @@ -0,0 +1 @@ +import{S as A,i as D,s as F,w as E,k as _,e as h,t as P,x as N,m as y,c as b,a as v,h as q,d as p,b as g,y as B,g as x,M as u,q as H,o as I,B as O,N as M}from"../../chunks/index-c85ade65.js";import{f as T}from"../../chunks/settings-service-97445e4d.js";import{o as U}from"../../chunks/route-for-28dfef1d.js";import{B as V}from"../../chunks/button-6823eb61.js";import{p as j}from"../../chunks/stores-2c13cc16.js";import{g as z}from"../../chunks/navigation-6709cf39.js";import{N as G,H as J}from"../../chunks/hamburger-header-4788b554.js";import"../../chunks/settings-3cc4c6ae.js";import"../../chunks/index-203c0d43.js";import"../../chunks/get-api-origin-035631a4.js";import"../../chunks/route-for-api-30acff55.js";import"../../chunks/notifications-9d24bb07.js";import"../../chunks/is-network-error-ac7c8caf.js";import"../../chunks/is-function-b969a126.js";import"../../chunks/index-c8da0ebb.js";import"../../chunks/badge-aff3796f.js";import"../../chunks/singletons-d1fb5791.js";import"../../chunks/has-b7e06397.js";import"../../chunks/is-419a79e8.js";import"../../chunks/data-encoder-status-5dabd0ab.js";import"../../chunks/data-converter-config-b3e1b826.js";import"../../chunks/persist-store-9b44ce28.js";import"../../chunks/is-http-249a0663.js";import"../../chunks/tooltip-0cd6d07a.js";import"../../chunks/copyable-4c8a8b15.js";import"../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../chunks/modal-c93f492b.js";import"../../chunks/index-39468d30.js";function K(i){let e;return{c(){e=P("Continue to SSO")},l(a){e=q(a,"Continue to SSO")},m(a,o){x(a,e,o)},d(a){a&&p(e)}}}function Q(i){let e,a,o,c,s,n,S,k,l,w,C,f,m,$;return e=new G({props:{href:"/",user:void 0}}),o=new J({props:{href:"/",user:void 0}}),m=new V({props:{dataCy:"login-button",variant:"login",icon:"lock",$$slots:{default:[K]},$$scope:{ctx:i}}}),m.$on("click",i[2]),{c(){E(e.$$.fragment),a=_(),E(o.$$.fragment),c=_(),s=h("section"),n=h("h1"),S=P("Welcome back."),k=_(),l=h("p"),w=P("Let's get you signed in."),C=_(),f=h("div"),E(m.$$.fragment),this.h()},l(t){N(e.$$.fragment,t),a=y(t),N(o.$$.fragment,t),c=y(t),s=b(t,"SECTION",{class:!0});var r=v(s);n=b(r,"H1",{class:!0,"data-cy":!0});var d=v(n);S=q(d,"Welcome back."),d.forEach(p),k=y(r),l=b(r,"P",{class:!0,"data-cy":!0});var L=v(l);w=q(L,"Let's get you signed in."),L.forEach(p),C=y(r),f=b(r,"DIV",{class:!0});var W=v(f);N(m.$$.fragment,W),W.forEach(p),r.forEach(p),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){B(e,t,r),x(t,a,r),B(o,t,r),x(t,c,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),B(m,f,null),$=!0},p(t,[r]){const d={};r&8&&(d.$$scope={dirty:r,ctx:t}),m.$set(d)},i(t){$||(H(e.$$.fragment,t),H(o.$$.fragment,t),H(m.$$.fragment,t),$=!0)},o(t){I(e.$$.fragment,t),I(o.$$.fragment,t),I(m.$$.fragment,t),$=!1},d(t){O(e,t),t&&p(a),O(o,t),t&&p(c),t&&p(s),O(m)}}}const wt=async function({fetch:i}){const e=await T(i);return e.auth.enabled?{props:{settings:e},stuff:{settings:e}}:{status:404}};function R(i,e,a){let o;M(i,j,n=>a(1,o=n));let{settings:c}=e;const s=()=>{z(U({settings:c,searchParams:o.url.searchParams,originUrl:o.url.origin}))};return i.$$set=n=>{"settings"in n&&a(0,c=n.settings)},[c,o,s]}class Ct extends A{constructor(e){super(),D(this,e,R,Q,F,{settings:0})}}export{Ct as default,wt as load}; diff --git a/server/generated/ui/_app/pages/login/index@login.svelte-9b57a358.js b/server/generated/ui/_app/pages/login/index@login.svelte-9b57a358.js deleted file mode 100644 index d147088eb6..0000000000 --- a/server/generated/ui/_app/pages/login/index@login.svelte-9b57a358.js +++ /dev/null @@ -1 +0,0 @@ -import{S as A,i as D,s as F,w as E,k as _,e as h,t as P,x as N,m as y,c as b,a as v,h as q,d as p,b as g,y as B,g as x,M as u,q as H,o as I,B as O,N as M}from"../../chunks/index-c85ade65.js";import{f as T}from"../../chunks/settings-service-97445e4d.js";import{o as U}from"../../chunks/route-for-28dfef1d.js";import{B as V}from"../../chunks/button-808d5fa7.js";import{p as j}from"../../chunks/stores-2c13cc16.js";import{g as z}from"../../chunks/navigation-6709cf39.js";import{N as G,H as J}from"../../chunks/hamburger-header-b691a839.js";import"../../chunks/settings-3cc4c6ae.js";import"../../chunks/index-203c0d43.js";import"../../chunks/get-api-origin-035631a4.js";import"../../chunks/route-for-api-30acff55.js";import"../../chunks/notifications-9d24bb07.js";import"../../chunks/is-network-error-ac7c8caf.js";import"../../chunks/is-function-b969a126.js";import"../../chunks/index-c8da0ebb.js";import"../../chunks/badge-aff3796f.js";import"../../chunks/singletons-d1fb5791.js";import"../../chunks/has-b7e06397.js";import"../../chunks/is-419a79e8.js";import"../../chunks/data-encoder-status-631dfb3f.js";import"../../chunks/data-converter-config-b3e1b826.js";import"../../chunks/persist-store-9b44ce28.js";import"../../chunks/is-http-249a0663.js";import"../../chunks/tooltip-0cd6d07a.js";import"../../chunks/copyable-4c8a8b15.js";import"../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../chunks/modal-452aea0f.js";import"../../chunks/index-39468d30.js";function K(i){let e;return{c(){e=P("Continue to SSO")},l(s){e=q(s,"Continue to SSO")},m(s,o){x(s,e,o)},d(s){s&&p(e)}}}function Q(i){let e,s,o,c,a,n,S,k,l,w,C,f,m,$;return e=new G({props:{href:"/",user:void 0}}),o=new J({props:{href:"/",user:void 0}}),m=new V({props:{dataCy:"login-button",login:!0,icon:"lock",$$slots:{default:[K]},$$scope:{ctx:i}}}),m.$on("click",i[2]),{c(){E(e.$$.fragment),s=_(),E(o.$$.fragment),c=_(),a=h("section"),n=h("h1"),S=P("Welcome back."),k=_(),l=h("p"),w=P("Let's get you signed in."),C=_(),f=h("div"),E(m.$$.fragment),this.h()},l(t){N(e.$$.fragment,t),s=y(t),N(o.$$.fragment,t),c=y(t),a=b(t,"SECTION",{class:!0});var r=v(a);n=b(r,"H1",{class:!0,"data-cy":!0});var d=v(n);S=q(d,"Welcome back."),d.forEach(p),k=y(r),l=b(r,"P",{class:!0,"data-cy":!0});var L=v(l);w=q(L,"Let's get you signed in."),L.forEach(p),C=y(r),f=b(r,"DIV",{class:!0});var W=v(f);N(m.$$.fragment,W),W.forEach(p),r.forEach(p),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(a,"class","my-[20vh] text-center")},m(t,r){B(e,t,r),x(t,s,r),B(o,t,r),x(t,c,r),x(t,a,r),u(a,n),u(n,S),u(a,k),u(a,l),u(l,w),u(a,C),u(a,f),B(m,f,null),$=!0},p(t,[r]){const d={};r&8&&(d.$$scope={dirty:r,ctx:t}),m.$set(d)},i(t){$||(H(e.$$.fragment,t),H(o.$$.fragment,t),H(m.$$.fragment,t),$=!0)},o(t){I(e.$$.fragment,t),I(o.$$.fragment,t),I(m.$$.fragment,t),$=!1},d(t){O(e,t),t&&p(s),O(o,t),t&&p(c),t&&p(a),O(m)}}}const wt=async function({fetch:i}){const e=await T(i);return e.auth.enabled?{props:{settings:e},stuff:{settings:e}}:{status:404}};function R(i,e,s){let o;M(i,j,n=>s(1,o=n));let{settings:c}=e;const a=()=>{z(U({settings:c,searchParams:o.url.searchParams,originUrl:o.url.origin}))};return i.$$set=n=>{"settings"in n&&s(0,c=n.settings)},[c,o,a]}class Ct extends A{constructor(e){super(),D(this,e,R,Q,F,{settings:0})}}export{Ct as default,wt as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-93bd8797.js b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-abe1e0e7.js similarity index 97% rename from server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-93bd8797.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-abe1e0e7.js index b88f12b5f1..b594f53089 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-93bd8797.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/_workflow-filters.svelte-abe1e0e7.js @@ -1 +1 @@ -import{S as ee,i as te,s as le,e as P,k as C,c as B,a as I,d as p,m as F,b as T,g as v,M as q,o as d,p as D,q as h,N as j,n as Q,t as A,h as E,T as X,aq as Y,_ as re,$ as ae,w as b,x as w,y,Z as ne,B as S,l as O,ad as se,a6 as oe,am as ie,E as x}from"../../../../chunks/index-c85ade65.js";import{p as ce}from"../../../../chunks/stores-2c13cc16.js";import{g as L}from"../../../../chunks/navigation-6709cf39.js";import{k as M}from"../../../../chunks/to-duration-6d22e6d2.js";import{S as fe,O as N}from"../../../../chunks/select-ac515c57.js";import{F as V}from"../../../../chunks/filter-select-9395ecbe.js";import Z from"./_filter-input.svelte-eb2dade6.js";import{S as ue}from"../../../../chunks/search-9c473caf.js";import{t as z}from"../../../../chunks/time-format-99465e29.js";import"../../../../chunks/singletons-d1fb5791.js";import"../../../../chunks/is-419a79e8.js";import"../../../../chunks/update-query-parameters-94043e37.js";import"../../../../chunks/index-c0547148.js";import"../../../../chunks/index-c8da0ebb.js";import"../../../../chunks/button-808d5fa7.js";import"../../../../chunks/badge-aff3796f.js";import"../../../../chunks/persist-store-9b44ce28.js";import"../../../../chunks/index-203c0d43.js";import"../../../../chunks/is-function-b969a126.js";function G(i,e,r){const t=i.slice();return t[7]=e[r][0],t[8]=e[r][1],t}function H(i,e,r){const t=i.slice();return t[8]=e[r],t}function me(i){let e,r,t,a,o;return{c(){e=P("a"),r=A("Advanced Search"),this.h()},l(s){e=B(s,"A",{href:!0,class:!0});var l=I(e);r=E(l,"Advanced Search"),l.forEach(p),this.h()},h(){T(e,"href",t=i[1].url.pathname+"?query"),T(e,"class","text-blue-700")},m(s,l){v(s,e,l),q(e,r),a||(o=X(e,"click",Y(i[5]("advanced"))),a=!0)},p(s,l){l&2&&t!==(t=s[1].url.pathname+"?query")&&T(e,"href",t)},d(s){s&&p(e),a=!1,o()}}}function $e(i){let e,r,t,a,o;return{c(){e=P("a"),r=A("Basic Search"),this.h()},l(s){e=B(s,"A",{href:!0,class:!0});var l=I(e);r=E(l,"Basic Search"),l.forEach(p),this.h()},h(){T(e,"href",t=i[1].url.pathname),T(e,"class","text-blue-700")},m(s,l){v(s,e,l),q(e,r),a||(o=X(e,"click",Y(i[5]("basic"))),a=!0)},p(s,l){l&2&&t!==(t=s[1].url.pathname)&&T(e,"href",t)},d(s){s&&p(e),a=!1,o()}}}function pe(i){let e,r,t,a,o,s,l,n,f,u,_,k;r=new Z({props:{parameter:"workflow-id",name:"Workflow ID",value:Te}}),a=new Z({props:{parameter:"workflow-type",name:"Workflow Type",value:qe}}),s=new V({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[de]},$$scope:{ctx:i}}}),n=new V({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[ve]},$$scope:{ctx:i}}});function m(c){i[6](c)}let g={id:"filter-by-relative-time",$$slots:{default:[ye]},$$scope:{ctx:i}};return i[2]!==void 0&&(g.value=i[2]),u=new fe({props:g}),re.push(()=>ae(u,"value",m)),{c(){e=P("div"),b(r.$$.fragment),t=C(),b(a.$$.fragment),o=C(),b(s.$$.fragment),l=C(),b(n.$$.fragment),f=C(),b(u.$$.fragment),this.h()},l(c){e=B(c,"DIV",{class:!0});var $=I(e);w(r.$$.fragment,$),t=F($),w(a.$$.fragment,$),o=F($),w(s.$$.fragment,$),l=F($),w(n.$$.fragment,$),f=F($),w(u.$$.fragment,$),$.forEach(p),this.h()},h(){T(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(c,$){v(c,e,$),y(r,e,null),q(e,t),y(a,e,null),q(e,o),y(s,e,null),q(e,l),y(n,e,null),q(e,f),y(u,e,null),k=!0},p(c,$){const R={};$&8192&&(R.$$scope={dirty:$,ctx:c}),s.$set(R);const U={};$&8192&&(U.$$scope={dirty:$,ctx:c}),n.$set(U);const W={};$&8192&&(W.$$scope={dirty:$,ctx:c}),!_&&$&4&&(_=!0,W.value=c[2],ne(()=>_=!1)),u.$set(W)},i(c){k||(h(r.$$.fragment,c),h(a.$$.fragment,c),h(s.$$.fragment,c),h(n.$$.fragment,c),h(u.$$.fragment,c),k=!0)},o(c){d(r.$$.fragment,c),d(a.$$.fragment,c),d(s.$$.fragment,c),d(n.$$.fragment,c),d(u.$$.fragment,c),k=!1},d(c){c&&p(e),S(r),S(a),S(s),S(n),S(u)}}}function _e(i){let e,r;return e=new ue({props:{icon:!0,placeholder:"Query\u2026",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){b(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,a){y(e,t,a),r=!0},p(t,a){const o={};a&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){r||(h(e.$$.fragment,t),r=!0)},o(t){d(e.$$.fragment,t),r=!1},d(t){S(e,t)}}}function he(i){let e=i[8]+"",r;return{c(){r=A(e)},l(t){r=E(t,e)},m(t,a){v(t,r,a)},p:x,d(t){t&&p(r)}}}function J(i){let e,r;return e=new N({props:{value:i[8],$$slots:{default:[he]},$$scope:{ctx:i}}}),{c(){b(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,a){y(e,t,a),r=!0},p(t,a){const o={};a&8192&&(o.$$scope={dirty:a,ctx:t}),e.$set(o)},i(t){r||(h(e.$$.fragment,t),r=!0)},o(t){d(e.$$.fragment,t),r=!1},d(t){S(e,t)}}}function de(i){let e,r,t=M,a=[];for(let s=0;sd(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;sl[7];for(let l=0;l{_[c]=null}),D(),o=_[a],o?o.p(m,g):(o=_[a]=u[a](m),o.c()),h(o,1),o.m(e,null))},i(m){s||(h(o),s=!0)},o(m){d(o),s=!1},d(m){m&&p(e),f.d(),_[a].d()}}}let Te="",qe="";function Ce(i,e,r){let t,a;j(i,ce,u=>r(1,t=u)),j(i,z,u=>r(2,a=u));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let s=t.url.searchParams.has("query");const l=u=>{const k=new FormData(u.target).get("query");t.url.searchParams.set("query",String(k)),L(t.url.toString())},n=u=>_=>{const k=_.target;r(0,s=u==="advanced"),s||t.url.searchParams.delete("query"),L(k.href)};function f(u){a=u,z.set(a)}return[s,t,a,o,l,n,f]}class Ge extends ee{constructor(e){super(),te(this,e,Ce,Se,le,{})}}export{Ge as default}; +import{S as ee,i as te,s as le,e as P,k as C,c as B,a as I,d as p,m as F,b as T,g as v,M as q,o as d,p as D,q as h,N as j,n as Q,t as A,h as E,T as X,aq as Y,_ as re,$ as ae,w as b,x as w,y,Z as ne,B as S,l as O,ad as se,a6 as oe,am as ie,E as x}from"../../../../chunks/index-c85ade65.js";import{p as ce}from"../../../../chunks/stores-2c13cc16.js";import{g as L}from"../../../../chunks/navigation-6709cf39.js";import{k as M}from"../../../../chunks/to-duration-6d22e6d2.js";import{S as fe,O as N}from"../../../../chunks/select-ac515c57.js";import{F as V}from"../../../../chunks/filter-select-9395ecbe.js";import Z from"./_filter-input.svelte-eb2dade6.js";import{S as ue}from"../../../../chunks/search-3dfcbd93.js";import{t as z}from"../../../../chunks/time-format-99465e29.js";import"../../../../chunks/singletons-d1fb5791.js";import"../../../../chunks/is-419a79e8.js";import"../../../../chunks/update-query-parameters-94043e37.js";import"../../../../chunks/index-c0547148.js";import"../../../../chunks/index-c8da0ebb.js";import"../../../../chunks/button-6823eb61.js";import"../../../../chunks/badge-aff3796f.js";import"../../../../chunks/persist-store-9b44ce28.js";import"../../../../chunks/index-203c0d43.js";import"../../../../chunks/is-function-b969a126.js";function G(i,e,r){const t=i.slice();return t[7]=e[r][0],t[8]=e[r][1],t}function H(i,e,r){const t=i.slice();return t[8]=e[r],t}function me(i){let e,r,t,a,o;return{c(){e=P("a"),r=A("Advanced Search"),this.h()},l(s){e=B(s,"A",{href:!0,class:!0});var l=I(e);r=E(l,"Advanced Search"),l.forEach(p),this.h()},h(){T(e,"href",t=i[1].url.pathname+"?query"),T(e,"class","text-blue-700")},m(s,l){v(s,e,l),q(e,r),a||(o=X(e,"click",Y(i[5]("advanced"))),a=!0)},p(s,l){l&2&&t!==(t=s[1].url.pathname+"?query")&&T(e,"href",t)},d(s){s&&p(e),a=!1,o()}}}function $e(i){let e,r,t,a,o;return{c(){e=P("a"),r=A("Basic Search"),this.h()},l(s){e=B(s,"A",{href:!0,class:!0});var l=I(e);r=E(l,"Basic Search"),l.forEach(p),this.h()},h(){T(e,"href",t=i[1].url.pathname),T(e,"class","text-blue-700")},m(s,l){v(s,e,l),q(e,r),a||(o=X(e,"click",Y(i[5]("basic"))),a=!0)},p(s,l){l&2&&t!==(t=s[1].url.pathname)&&T(e,"href",t)},d(s){s&&p(e),a=!1,o()}}}function pe(i){let e,r,t,a,o,s,l,n,f,u,_,k;r=new Z({props:{parameter:"workflow-id",name:"Workflow ID",value:Te}}),a=new Z({props:{parameter:"workflow-type",name:"Workflow Type",value:qe}}),s=new V({props:{label:"Time Range",parameter:"time-range",value:"24 hours",$$slots:{default:[de]},$$scope:{ctx:i}}}),n=new V({props:{label:"Workflow Status",parameter:"status",value:null,$$slots:{default:[ve]},$$scope:{ctx:i}}});function m(c){i[6](c)}let g={id:"filter-by-relative-time",$$slots:{default:[ye]},$$scope:{ctx:i}};return i[2]!==void 0&&(g.value=i[2]),u=new fe({props:g}),re.push(()=>ae(u,"value",m)),{c(){e=P("div"),b(r.$$.fragment),t=C(),b(a.$$.fragment),o=C(),b(s.$$.fragment),l=C(),b(n.$$.fragment),f=C(),b(u.$$.fragment),this.h()},l(c){e=B(c,"DIV",{class:!0});var $=I(e);w(r.$$.fragment,$),t=F($),w(a.$$.fragment,$),o=F($),w(s.$$.fragment,$),l=F($),w(n.$$.fragment,$),f=F($),w(u.$$.fragment,$),$.forEach(p),this.h()},h(){T(e,"class","grid grid-cols-1 gap-4 sm:grid-cols-2 md:grid-cols-5")},m(c,$){v(c,e,$),y(r,e,null),q(e,t),y(a,e,null),q(e,o),y(s,e,null),q(e,l),y(n,e,null),q(e,f),y(u,e,null),k=!0},p(c,$){const R={};$&8192&&(R.$$scope={dirty:$,ctx:c}),s.$set(R);const U={};$&8192&&(U.$$scope={dirty:$,ctx:c}),n.$set(U);const W={};$&8192&&(W.$$scope={dirty:$,ctx:c}),!_&&$&4&&(_=!0,W.value=c[2],ne(()=>_=!1)),u.$set(W)},i(c){k||(h(r.$$.fragment,c),h(a.$$.fragment,c),h(s.$$.fragment,c),h(n.$$.fragment,c),h(u.$$.fragment,c),k=!0)},o(c){d(r.$$.fragment,c),d(a.$$.fragment,c),d(s.$$.fragment,c),d(n.$$.fragment,c),d(u.$$.fragment,c),k=!1},d(c){c&&p(e),S(r),S(a),S(s),S(n),S(u)}}}function _e(i){let e,r;return e=new ue({props:{icon:!0,placeholder:"Query\u2026",value:i[1].url.searchParams.get("query")}}),e.$on("submit",i[4]),{c(){b(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,a){y(e,t,a),r=!0},p(t,a){const o={};a&2&&(o.value=t[1].url.searchParams.get("query")),e.$set(o)},i(t){r||(h(e.$$.fragment,t),r=!0)},o(t){d(e.$$.fragment,t),r=!1},d(t){S(e,t)}}}function he(i){let e=i[8]+"",r;return{c(){r=A(e)},l(t){r=E(t,e)},m(t,a){v(t,r,a)},p:x,d(t){t&&p(r)}}}function J(i){let e,r;return e=new N({props:{value:i[8],$$slots:{default:[he]},$$scope:{ctx:i}}}),{c(){b(e.$$.fragment)},l(t){w(e.$$.fragment,t)},m(t,a){y(e,t,a),r=!0},p(t,a){const o={};a&8192&&(o.$$scope={dirty:a,ctx:t}),e.$set(o)},i(t){r||(h(e.$$.fragment,t),r=!0)},o(t){d(e.$$.fragment,t),r=!1},d(t){S(e,t)}}}function de(i){let e,r,t=M,a=[];for(let s=0;sd(a[s],1,1,()=>{a[s]=null});return{c(){for(let s=0;sl[7];for(let l=0;l{_[c]=null}),D(),o=_[a],o?o.p(m,g):(o=_[a]=u[a](m),o.c()),h(o,1),o.m(e,null))},i(m){s||(h(o),s=!0)},o(m){d(o),s=!1},d(m){m&&p(e),f.d(),_[a].d()}}}let Te="",qe="";function Ce(i,e,r){let t,a;j(i,ce,u=>r(1,t=u)),j(i,z,u=>r(2,a=u));const o={All:null,"Timed Out":"TimedOut",Completed:"Completed",Failed:"Failed","Continued as New":"ContinuedAsNew",Canceled:"Canceled",Terminated:"Terminated"};let s=t.url.searchParams.has("query");const l=u=>{const k=new FormData(u.target).get("query");t.url.searchParams.set("query",String(k)),L(t.url.toString())},n=u=>_=>{const k=_.target;r(0,s=u==="advanced"),s||t.url.searchParams.delete("query"),L(k.href)};function f(u){a=u,z.set(a)}return[s,t,a,o,l,n,f]}class Ge extends ee{constructor(e){super(),te(this,e,Ce,Se,le,{})}}export{Ge as default}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-78b0a7d2.js b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-93f56498.js similarity index 98% rename from server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-78b0a7d2.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-93f56498.js index 0cf4c44a23..8107a4e0ef 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-78b0a7d2.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/archival/index@root.svelte-93f56498.js @@ -1,3 +1,3 @@ -import{S as O,i as Q,s as U,w as S,k as T,l as q,x as C,m as F,y as I,g as v,o as y,p as j,q as w,B as V,d as h,N as G,n as D,e as W,t as E,c as N,a as H,h as A,M as g,b as P,E as X,ad as Y}from"../../../../chunks/index-c85ade65.js";import{b as Z}from"../../../../chunks/workflow-service-5c6fe49b.js";import{W as x,a as ee}from"../../../../chunks/workflows-summary-row-429afb28.js";import te from"./_workflow-filters.svelte-93bd8797.js";import{P as le}from"../../../../chunks/pagination-adb051b9.js";import{E as re}from"../../../../chunks/empty-state-ebe0fe80.js";import{C as M}from"../../../../chunks/code-block-b1ae99b6.js";import{t as ae}from"../../../../chunks/time-format-99465e29.js";import{P as ie}from"../../../../chunks/page-title-de4dcecc.js";import{p as oe}from"../../../../chunks/stores-2c13cc16.js";import"../../../../chunks/simplify-attributes-018c5a8d.js";import"../../../../chunks/format-date-ecf4453c.js";import"../../../../chunks/to-duration-6d22e6d2.js";import"../../../../chunks/is-419a79e8.js";import"../../../../chunks/route-for-api-30acff55.js";import"../../../../chunks/route-for-28dfef1d.js";import"../../../../chunks/index-203c0d43.js";import"../../../../chunks/notifications-9d24bb07.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/is-function-b969a126.js";import"../../../../chunks/get-api-origin-035631a4.js";import"../../../../chunks/table-row-64bde76e.js";import"../../../../chunks/update-query-parameters-94043e37.js";import"../../../../chunks/navigation-6709cf39.js";import"../../../../chunks/singletons-d1fb5791.js";import"../../../../chunks/workflow-status-2652a969.js";import"../../../../chunks/index-c8da0ebb.js";import"../../../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../../../chunks/select-ac515c57.js";import"../../../../chunks/filter-select-9395ecbe.js";import"./_filter-input.svelte-eb2dade6.js";import"../../../../chunks/index-c0547148.js";import"../../../../chunks/search-9c473caf.js";import"../../../../chunks/button-808d5fa7.js";import"../../../../chunks/badge-aff3796f.js";import"../../../../chunks/persist-store-9b44ce28.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 B=H(c);b=A(B,"For more details, please check out "),k=N(B,"A",{class:!0,href:!0,target:!0});var z=H(k);n=A(z,"Archival documentation"),z.forEach(h),d=A(B,"."),B.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}),j()):_?(_.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,k as T,l as q,x as C,m as F,y as I,g as v,o as y,p as j,q as w,B as V,d as h,N as G,n as D,e as W,t as E,c as N,a as H,h as A,M as g,b as P,E as X,ad as Y}from"../../../../chunks/index-c85ade65.js";import{b as Z}from"../../../../chunks/workflow-service-5c6fe49b.js";import{W as x,a as ee}from"../../../../chunks/workflows-summary-row-429afb28.js";import te from"./_workflow-filters.svelte-abe1e0e7.js";import{P as le}from"../../../../chunks/pagination-adb051b9.js";import{E as re}from"../../../../chunks/empty-state-ebe0fe80.js";import{C as M}from"../../../../chunks/code-block-b1ae99b6.js";import{t as ae}from"../../../../chunks/time-format-99465e29.js";import{P as ie}from"../../../../chunks/page-title-de4dcecc.js";import{p as oe}from"../../../../chunks/stores-2c13cc16.js";import"../../../../chunks/simplify-attributes-018c5a8d.js";import"../../../../chunks/format-date-ecf4453c.js";import"../../../../chunks/to-duration-6d22e6d2.js";import"../../../../chunks/is-419a79e8.js";import"../../../../chunks/route-for-api-30acff55.js";import"../../../../chunks/route-for-28dfef1d.js";import"../../../../chunks/index-203c0d43.js";import"../../../../chunks/notifications-9d24bb07.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/is-function-b969a126.js";import"../../../../chunks/get-api-origin-035631a4.js";import"../../../../chunks/table-row-64bde76e.js";import"../../../../chunks/update-query-parameters-94043e37.js";import"../../../../chunks/navigation-6709cf39.js";import"../../../../chunks/singletons-d1fb5791.js";import"../../../../chunks/workflow-status-2652a969.js";import"../../../../chunks/index-c8da0ebb.js";import"../../../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../../../chunks/select-ac515c57.js";import"../../../../chunks/filter-select-9395ecbe.js";import"./_filter-input.svelte-eb2dade6.js";import"../../../../chunks/index-c0547148.js";import"../../../../chunks/search-3dfcbd93.js";import"../../../../chunks/button-6823eb61.js";import"../../../../chunks/badge-aff3796f.js";import"../../../../chunks/persist-store-9b44ce28.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 B=H(c);b=A(B,"For more details, please check out "),k=N(B,"A",{class:!0,href:!0,target:!0});var z=H(k);n=A(z,"Archival documentation"),z.forEach(h),d=A(B,"."),B.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}),j()):_?(_.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=q(),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=q(),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}),j(),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}),j(),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 Ze=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 xe extends O{constructor(t){super(),Q(this,t,be,_e,U,{namespace:0,workflows:1,archivalEnabled:2,visibilityArchivalEnabled:3})}}export{xe as default,Ze as load}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-514123fd.js b/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-dff9e825.js similarity index 99% rename from server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-514123fd.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-dff9e825.js index fe2fb0ab0f..279bb39352 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-514123fd.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/_schedule_/index.svelte-dff9e825.js @@ -1,3 +1,3 @@ -import{S as ne,i as ae,s as oe,e as v,t as E,k as D,c as g,a as w,h as S,d as u,m as T,b as _,g as b,M as m,j as K,E as W,I as Xe,R as re,J as xe,K as et,L as tt,q as I,o as R,w as A,x as N,y as U,B as C,N as Ye,l as Y,a9 as rt,ac as Ul,n as Ze,a6 as jl,am as Fl,p as Qe,ad as Cl,T as Le,C as Se,V as Ie,Y as gl,ab as Bl,G as Hl,W as Wl,a3 as Ol,a4 as Gl,_ as Jl,$ as Kl,Z as Yl,a8 as at,f as Zl,aa as bl}from"../../../../../chunks/index-c85ade65.js";import{p as Ql}from"../../../../../chunks/stores-2c13cc16.js";import{I as it}from"../../../../../chunks/index-c8da0ebb.js";import{m as ot,n as wl,c as ql}from"../../../../../chunks/route-for-28dfef1d.js";import{g as Xl}from"../../../../../chunks/navigation-6709cf39.js";import{f as kl,d as xl,u as es,p as ts}from"../../../../../chunks/schedule-service-d2aca162.js";import{f as ye}from"../../../../../chunks/format-date-ecf4453c.js";import{t as ft}from"../../../../../chunks/time-format-99465e29.js";import{l as st}from"../../../../../chunks/schedules-bacf8ee7.js";import{W as Ll}from"../../../../../chunks/workflow-status-2652a969.js";import{f as $l}from"../../../../../chunks/workflow-service-5c6fe49b.js";import{E as ls}from"../../../../../chunks/empty-state-ebe0fe80.js";import{L as ss}from"../../../../../chunks/link-d95c4680.js";import{S as rs}from"../../../../../chunks/schedule-frequency-dc8435b4.js";import{M as El}from"../../../../../chunks/modal-452aea0f.js";import{f as ns}from"../../../../../chunks/index-39468d30.js";import{L as zl}from"../../../../../chunks/loading-67332923.js";import{P as as}from"../../../../../chunks/page-title-de4dcecc.js";import"../../../../../chunks/singletons-d1fb5791.js";import"../../../../../chunks/route-for-api-30acff55.js";import"../../../../../chunks/index-203c0d43.js";import"../../../../../chunks/notifications-9d24bb07.js";import"../../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../../chunks/is-function-b969a126.js";import"../../../../../chunks/get-api-origin-035631a4.js";import"../../../../../chunks/to-duration-6d22e6d2.js";import"../../../../../chunks/is-419a79e8.js";import"../../../../../chunks/persist-store-9b44ce28.js";import"../../../../../chunks/simplify-attributes-018c5a8d.js";import"../../../../../chunks/code-block-b1ae99b6.js";import"../../../../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../../../../chunks/button-808d5fa7.js";import"../../../../../chunks/badge-aff3796f.js";function os(r){let e,s,t,l,o;return{c(){e=v("h2"),s=E("Memo"),t=D(),l=v("p"),o=E(r[0]),this.h()},l(n){e=g(n,"H2",{class:!0});var a=w(e);s=S(a,"Memo"),a.forEach(u),t=T(n),l=g(n,"P",{});var i=w(l);o=S(i,r[0]),i.forEach(u),this.h()},h(){_(e,"class","mb-4 text-2xl")},m(n,a){b(n,e,a),m(e,s),b(n,t,a),b(n,l,a),m(l,o)},p(n,[a]){a&1&&K(o,n[0])},i:W,o:W,d(n){n&&u(e),n&&u(t),n&&u(l)}}}function is(r,e,s){let{notes:t=""}=e;return r.$$set=l=>{"notes"in l&&s(0,t=l.notes)},[t]}class fs extends ne{constructor(e){super(),ae(this,e,is,os,oe,{notes:0})}}function us(r){let e,s;const t=r[2].default,l=Xe(t,r,r[1],null);return{c(){e=v("div"),l&&l.c(),this.h()},l(o){e=g(o,"DIV",{class:!0});var n=w(e);l&&l.l(n),n.forEach(u),this.h()},h(){_(e,"class","panel svelte-iclf07"),re(e,"error",r[0])},m(o,n){b(o,e,n),l&&l.m(e,null),s=!0},p(o,[n]){l&&l.p&&(!s||n&2)&&xe(l,t,o,o[1],s?tt(t,o[1],n,null):et(o[1]),null),n&1&&re(e,"error",o[0])},i(o){s||(I(l,o),s=!0)},o(o){R(l,o),s=!1},d(o){o&&u(e),l&&l.d(o)}}}function cs(r,e,s){let{$$slots:t={},$$scope:l}=e,{error:o=!1}=e;return r.$$set=n=>{"error"in n&&s(0,o=n.error),"$$scope"in n&&s(1,l=n.$$scope)},[o,l,t]}class nt extends ne{constructor(e){super(),ae(this,e,cs,us,oe,{error:0})}}function Sl(r,e,s){const t=r.slice();return t[3]=e[s],t}function ds(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function ms(r){let e,s,t,l,o,n,a,i,f,c=ye(r[3].actualTime,r[2])+"",d,p;return t=new Ll({props:{status:r[6].status}}),n=new ss({props:{"sveltekit:prefetch":!0,href:wl({workflow:r[3].startWorkflowResult.workflowId,run:r[3].startWorkflowResult.runId,namespace:r[1]}),$$slots:{default:[hs]},$$scope:{ctx:r}}}),{c(){e=v("div"),s=v("div"),A(t.$$.fragment),l=D(),o=v("div"),A(n.$$.fragment),a=D(),i=v("div"),f=v("p"),d=E(c),this.h()},l(h){e=g(h,"DIV",{class:!0});var y=w(e);s=g(y,"DIV",{class:!0});var L=w(s);N(t.$$.fragment,L),L.forEach(u),l=T(y),o=g(y,"DIV",{class:!0});var z=w(o);N(n.$$.fragment,z),z.forEach(u),a=T(y),i=g(y,"DIV",{class:!0});var F=w(i);f=g(F,"P",{});var H=w(f);d=S(H,c),H.forEach(u),F.forEach(u),y.forEach(u),this.h()},h(){_(s,"class","w-28"),_(o,"class","w-96"),_(i,"class","ml-auto"),_(e,"class","row svelte-1mikfkz")},m(h,y){b(h,e,y),m(e,s),U(t,s,null),m(e,l),m(e,o),U(n,o,null),m(e,a),m(e,i),m(i,f),m(f,d),p=!0},p(h,y){const L={};y&3&&(L.status=h[6].status),t.$set(L);const z={};y&3&&(z.href=wl({workflow:h[3].startWorkflowResult.workflowId,run:h[3].startWorkflowResult.runId,namespace:h[1]})),y&129&&(z.$$scope={dirty:y,ctx:h}),n.$set(z),(!p||y&5)&&c!==(c=ye(h[3].actualTime,h[2])+"")&&K(d,c)},i(h){p||(I(t.$$.fragment,h),I(n.$$.fragment,h),p=!0)},o(h){R(t.$$.fragment,h),R(n.$$.fragment,h),p=!1},d(h){h&&u(e),C(t),C(n)}}}function hs(r){let e=r[3].startWorkflowResult.workflowId+"",s;return{c(){s=E(e)},l(t){s=S(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&K(s,e)},d(t){t&&u(s)}}}function ps(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function Il(r,e){let s,t,l,o,n={ctx:e,current:null,token:null,hasCatch:!1,pending:ps,then:ms,catch:ds,value:6,blocks:[,,,]};return rt(l=$l({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),n),{key:r,first:null,c(){s=Y(),t=Y(),n.block.c(),this.h()},l(a){s=Y(),t=Y(),n.block.l(a),this.h()},h(){this.first=s},m(a,i){b(a,s,i),b(a,t,i),n.block.m(a,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,o=!0},p(a,i){e=a,n.ctx=e,i&3&&l!==(l=$l({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&rt(l,n)||Ul(n,e,i)},i(a){o||(I(n.block),o=!0)},o(a){for(let i=0;i<3;i+=1){const f=n.blocks[i];R(f)}o=!1},d(a){a&&u(s),a&&u(t),n.block.d(a),n.token=null,n=null}}}function yl(r){let e,s;return e=new ls({props:{title:"No Recent Runs"}}),{c(){A(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function _s(r){let e,s,t,l=[],o=new Map,n,a,i,f=r[0].slice(0,5);const c=p=>p[3].startWorkflowResult.workflowId;for(let p=0;p{d=null}),Qe()):d?h&1&&I(d,1):(d=yl(),d.c(),I(d,1),d.m(a.parentNode,a))},i(p){if(!i){for(let h=0;hs(2,t=n));let{recentRuns:l=[]}=e,{namespace:o}=e;return r.$$set=n=>{"recentRuns"in n&&s(0,l=n.recentRuns),"namespace"in n&&s(1,o=n.namespace)},[l,o,t]}class bs extends ne{constructor(e){super(),ae(this,e,gs,vs,oe,{recentRuns:0,namespace:1})}}function Rl(r,e,s){const t=r.slice();return t[2]=e[s],t}function Pl(r){let e,s,t=ye(r[2],r[1],"from now")+"",l,o;return{c(){e=v("div"),s=v("p"),l=E(t),o=D(),this.h()},l(n){e=g(n,"DIV",{class:!0});var a=w(e);s=g(a,"P",{});var i=w(s);l=S(i,t),i.forEach(u),o=T(a),a.forEach(u),this.h()},h(){_(e,"class","row svelte-kbuuws")},m(n,a){b(n,e,a),m(e,s),m(s,l),m(e,o)},p(n,a){a&3&&t!==(t=ye(n[2],n[1],"from now")+"")&&K(l,t)},d(n){n&&u(e)}}}function ws(r){let e,s,t,l,o=r[0].slice(0,5),n=[];for(let a=0;as(1,t=o));let{futureRuns:l=[]}=e;return r.$$set=o=>{"futureRuns"in o&&s(0,l=o.futureRuns)},[l,t]}class Es extends ne{constructor(e){super(),ae(this,e,$s,ks,oe,{futureRuns:0})}}function Dl(r){var G,Pe,be,fe,Ue,ue,we,ce,Ce,ke,de,We,$e;let e,s,t=((Pe=(G=r[0])==null?void 0:G.startTime)!=null?Pe:"")+"",l,o,n,a,i=((fe=(be=r[0])==null?void 0:be.endTime)!=null?fe:"")+"",f,c,d,p,h=((ue=(Ue=r[0])==null?void 0:Ue.jitter)!=null?ue:"")+"",y,L,z,F,H=((Ce=(ce=(we=r[0])==null?void 0:we.excludeCalendar)==null?void 0:ce[0])!=null?Ce:"")+"",ee,B,M,V,Q=((de=(ke=r[1])==null?void 0:ke.remainingActions)!=null?de:"")+"",O,ve,ie,Re,X=(($e=(We=r[2])==null?void 0:We.overlapPolicy)!=null?$e:"")+"",ge;return{c(){e=v("p"),s=E("Schedule Start Time: "),l=E(t),o=D(),n=v("p"),a=E("Schedule End Time: "),f=E(i),c=D(),d=v("p"),p=E("Jitter: "),y=E(h),L=D(),z=v("p"),F=E("Exclusion Calendar: "),ee=E(H),B=D(),M=v("p"),V=E("Remaining Actions: "),O=E(Q),ve=D(),ie=v("p"),Re=E("Overlap Policy: "),ge=E(X)},l(k){e=g(k,"P",{});var q=w(e);s=S(q,"Schedule Start Time: "),l=S(q,t),q.forEach(u),o=T(k),n=g(k,"P",{});var te=w(n);a=S(te,"Schedule End Time: "),f=S(te,i),te.forEach(u),c=T(k),d=g(k,"P",{});var x=w(d);p=S(x,"Jitter: "),y=S(x,h),x.forEach(u),L=T(k),z=g(k,"P",{});var me=w(z);F=S(me,"Exclusion Calendar: "),ee=S(me,H),me.forEach(u),B=T(k),M=g(k,"P",{});var Z=w(M);V=S(Z,"Remaining Actions: "),O=S(Z,Q),Z.forEach(u),ve=T(k),ie=g(k,"P",{});var he=w(ie);Re=S(he,"Overlap Policy: "),ge=S(he,X),he.forEach(u)},m(k,q){b(k,e,q),m(e,s),m(e,l),b(k,o,q),b(k,n,q),m(n,a),m(n,f),b(k,c,q),b(k,d,q),m(d,p),m(d,y),b(k,L,q),b(k,z,q),m(z,F),m(z,ee),b(k,B,q),b(k,M,q),m(M,V),m(M,O),b(k,ve,q),b(k,ie,q),m(ie,Re),m(ie,ge)},p(k,q){var te,x,me,Z,he,le,Ee,J,j,lt,ze,je,Fe;q&1&&t!==(t=((x=(te=k[0])==null?void 0:te.startTime)!=null?x:"")+"")&&K(l,t),q&1&&i!==(i=((Z=(me=k[0])==null?void 0:me.endTime)!=null?Z:"")+"")&&K(f,i),q&1&&h!==(h=((le=(he=k[0])==null?void 0:he.jitter)!=null?le:"")+"")&&K(y,h),q&1&&H!==(H=((j=(J=(Ee=k[0])==null?void 0:Ee.excludeCalendar)==null?void 0:J[0])!=null?j:"")+"")&&K(ee,H),q&2&&Q!==(Q=((ze=(lt=k[1])==null?void 0:lt.remainingActions)!=null?ze:"")+"")&&K(O,Q),q&4&&X!==(X=((Fe=(je=k[2])==null?void 0:je.overlapPolicy)!=null?Fe:"")+"")&&K(ge,X)},d(k){k&&u(e),k&&u(o),k&&u(n),k&&u(c),k&&u(d),k&&u(L),k&&u(z),k&&u(B),k&&u(M),k&&u(ve),k&&u(ie)}}}function Ss(r){let e,s,t,l,o,n,a,i;t=new it({props:{class:"inline",name:r[3]?"caretUp":"caretDown"}});let f=r[3]&&Dl(r);return{c(){e=v("p"),s=E("Advanced Settings "),A(t.$$.fragment),l=D(),f&&f.c(),o=Y(),this.h()},l(c){e=g(c,"P",{class:!0});var d=w(e);s=S(d,"Advanced Settings "),N(t.$$.fragment,d),d.forEach(u),l=T(c),f&&f.l(c),o=Y(),this.h()},h(){_(e,"class","settings svelte-7frpd7")},m(c,d){b(c,e,d),m(e,s),U(t,e,null),b(c,l,d),f&&f.m(c,d),b(c,o,d),n=!0,a||(i=Le(e,"click",r[4]),a=!0)},p(c,[d]){const p={};d&8&&(p.name=c[3]?"caretUp":"caretDown"),t.$set(p),c[3]?f?f.p(c,d):(f=Dl(c),f.c(),f.m(o.parentNode,o)):f&&(f.d(1),f=null)},i(c){n||(I(t.$$.fragment,c),n=!0)},o(c){R(t.$$.fragment,c),n=!1},d(c){c&&u(e),C(t),c&&u(l),f&&f.d(c),c&&u(o),a=!1,i()}}}function Is(r,e,s){let{spec:t}=e,{state:l}=e,{policies:o}=e,n=!1;const a=()=>s(3,n=!n);return r.$$set=i=>{"spec"in i&&s(0,t=i.spec),"state"in i&&s(1,l=i.state),"policies"in i&&s(2,o=i.policies)},[t,l,o,n,a]}class ys extends ne{constructor(e){super(),ae(this,e,Is,Ss,oe,{spec:0,state:1,policies:2})}}function Rs(r){let e,s,t,l,o;return{c(){e=v("p"),s=E("Error Message"),t=D(),l=v("p"),o=E(r[0]),this.h()},l(n){e=g(n,"P",{class:!0});var a=w(e);s=S(a,"Error Message"),a.forEach(u),t=T(n),l=g(n,"P",{class:!0});var i=w(l);o=S(i,r[0]),i.forEach(u),this.h()},h(){_(e,"class","error-text svelte-1lke5yx"),_(l,"class","error-text svelte-1lke5yx")},m(n,a){b(n,e,a),m(e,s),b(n,t,a),b(n,l,a),m(l,o)},p(n,a){a&1&&K(o,n[0])},d(n){n&&u(e),n&&u(t),n&&u(l)}}}function Ps(r){let e,s;return e=new nt({props:{error:!0,$$slots:{default:[Rs]},$$scope:{ctx:r}}}),{c(){A(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||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Ds(r,e,s){let{error:t=""}=e;return r.$$set=l=>{"error"in l&&s(0,t=l.error)},[t]}class Ts extends ne{constructor(e){super(),ae(this,e,Ds,Ps,oe,{error:0})}}function Ms(r){let e,s,t,l,o,n;return o=new rs({props:{calendar:r[0],interval:r[1]}}),{c(){e=v("h2"),s=E("Frequency"),t=D(),l=v("div"),A(o.$$.fragment),this.h()},l(a){e=g(a,"H2",{class:!0});var i=w(e);s=S(i,"Frequency"),i.forEach(u),t=T(a),l=g(a,"DIV",{class:!0});var f=w(l);N(o.$$.fragment,f),f.forEach(u),this.h()},h(){_(e,"class","mb-4 text-2xl"),_(l,"class","pr-2")},m(a,i){b(a,e,i),m(e,s),b(a,t,i),b(a,l,i),U(o,l,null),n=!0},p(a,i){const f={};i&1&&(f.calendar=a[0]),i&2&&(f.interval=a[1]),o.$set(f)},i(a){n||(I(o.$$.fragment,a),n=!0)},o(a){R(o.$$.fragment,a),n=!1},d(a){a&&u(e),a&&u(t),a&&u(l),C(o)}}}function Vs(r){let e,s;return e=new nt({props:{$$slots:{default:[Ms]},$$scope:{ctx:r}}}),{c(){A(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||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function As(r,e,s){let{calendar:t}=e,{interval:l}=e;return r.$$set=o=>{"calendar"in o&&s(0,t=o.calendar),"interval"in o&&s(1,l=o.interval)},[t,l]}class Ns extends ne{constructor(e){super(),ae(this,e,As,Vs,oe,{calendar:0,interval:1})}}function Us(r){let e,s,t;const l=r[2].default,o=Xe(l,r,r[1],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(n){e=g(n,"DIV",{class:!0});var a=w(e);o&&o.l(a),a.forEach(u),this.h()},h(){_(e,"class",s="relative inline-block "+r[0].class)},m(n,a){b(n,e,a),o&&o.m(e,null),t=!0},p(n,[a]){o&&o.p&&(!t||a&2)&&xe(o,l,n,n[1],t?tt(l,n[1],a,null):et(n[1]),null),(!t||a&1&&s!==(s="relative inline-block "+n[0].class))&&_(e,"class",s)},i(n){t||(I(o,n),t=!0)},o(n){R(o,n),t=!1},d(n){n&&u(e),o&&o.d(n)}}}function Cs(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=o=>{s(0,e=Se(Se({},e),Ie(o))),"$$scope"in o&&s(1,l=o.$$scope)},e=Ie(e),[e,l,t]}class Ws extends ne{constructor(e){super(),ae(this,e,Cs,Us,oe,{})}}const qs=r=>{const e=l=>{r.dispatchEvent(new CustomEvent("toggle-menu")),l.stopPropagation()},s=l=>{var n;let o=(n=l.path)!=null&&n.length?l.path[0]:l.target;!o&&l.relatedTarget&&(o=l.relatedTarget),r&&!r.contains(o)&&!l.defaultPrevented&&(r.dispatchEvent(new CustomEvent("close-menu")),l.stopPropagation())},t=l=>{(l==null?void 0:l.key)==="Escape"&&r.dispatchEvent(new CustomEvent("close-menu"))};return r.setAttribute("tabindex","0"),r.addEventListener("click",e,!1),document.addEventListener("click",s,!1),document.addEventListener("keyup",t,!1),{destroy(){r.removeEventListener("click",e,!1),document.removeEventListener("click",s,!1),document.removeEventListener("keyup",t,!1)}}};function Ls(r){let e,s,t,l,o,n;const a=r[8].default,i=Xe(a,r,r[7],null);return{c(){e=v("button"),i&&i.c(),this.h()},l(f){e=g(f,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-controls":!0,"aria-expanded":!0,class:!0});var c=w(e);i&&i.l(c),c.forEach(u),this.h()},h(){_(e,"type","button"),_(e,"aria-haspopup",s=!r[3]),_(e,"aria-controls",r[1]),_(e,"aria-expanded",r[0]),_(e,"class",t=gl(r[6].class)+" svelte-6vunh2"),e.disabled=r[3],re(e,"dark",r[2])},m(f,c){b(f,e,c),i&&i.m(e,null),l=!0,o||(n=[Bl(qs.call(null,e)),Le(e,"close-menu",r[4]),Le(e,"toggle-menu",r[5]),Le(e,"click",r[9])],o=!0)},p(f,[c]){i&&i.p&&(!l||c&128)&&xe(i,a,f,f[7],l?tt(a,f[7],c,null):et(f[7]),null),(!l||c&8&&s!==(s=!f[3]))&&_(e,"aria-haspopup",s),(!l||c&2)&&_(e,"aria-controls",f[1]),(!l||c&1)&&_(e,"aria-expanded",f[0]),(!l||c&64&&t!==(t=gl(f[6].class)+" svelte-6vunh2"))&&_(e,"class",t),(!l||c&8)&&(e.disabled=f[3]),c&68&&re(e,"dark",f[2])},i(f){l||(I(i,f),l=!0)},o(f){R(i,f),l=!1},d(f){f&&u(e),i&&i.d(f),o=!1,Hl(n)}}}function zs(r,e,s){let{$$slots:t={},$$scope:l}=e,{show:o}=e,{controls:n}=e,{dark:a=!1}=e,{disabled:i=!1}=e;const f=()=>{!i&&s(0,o=!1)},c=()=>{!i&&s(0,o=!o)};function d(p){Wl.call(this,r,p)}return r.$$set=p=>{s(6,e=Se(Se({},e),Ie(p))),"show"in p&&s(0,o=p.show),"controls"in p&&s(1,n=p.controls),"dark"in p&&s(2,a=p.dark),"disabled"in p&&s(3,i=p.disabled),"$$scope"in p&&s(7,l=p.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,l,t,d]}class js extends ne{constructor(e){super(),ae(this,e,zs,Ls,oe,{show:0,controls:1,dark:2,disabled:3})}}function Tl(r){let e,s,t,l;const o=r[8].default,n=Xe(o,r,r[7],null);return{c(){e=v("ul"),n&&n.c(),this.h()},l(a){e=g(a,"UL",{role:!0,class:!0,"aria-labelledby":!0,width:!0,id:!0});var i=w(e);n&&n.l(i),i.forEach(u),this.h()},h(){_(e,"role","menu"),_(e,"class",s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border bg-white text-gray-900 shadow "+r[6].class+" svelte-zt7cn"),_(e,"aria-labelledby",r[0]),_(e,"width",r[5]),_(e,"id",r[0]),re(e,"dark",r[2]),re(e,"left",r[3]),re(e,"right",r[4])},m(a,i){b(a,e,i),n&&n.m(e,null),l=!0},p(a,i){n&&n.p&&(!l||i&128)&&xe(n,o,a,a[7],l?tt(o,a[7],i,null):et(a[7]),null),(!l||i&64&&s!==(s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border bg-white text-gray-900 shadow "+a[6].class+" svelte-zt7cn"))&&_(e,"class",s),(!l||i&1)&&_(e,"aria-labelledby",a[0]),(!l||i&1)&&_(e,"id",a[0]),i&68&&re(e,"dark",a[2]),i&72&&re(e,"left",a[3]),i&80&&re(e,"right",a[4])},i(a){l||(I(n,a),t||Ol(()=>{t=Gl(e,ns,{duration:100}),t.start()}),l=!0)},o(a){R(n,a),l=!1},d(a){a&&u(e),n&&n.d(a)}}}function Fs(r){let e,s,t=r[1]&&Tl(r);return{c(){t&&t.c(),e=Y()},l(l){t&&t.l(l),e=Y()},m(l,o){t&&t.m(l,o),b(l,e,o),s=!0},p(l,[o]){l[1]?t?(t.p(l,o),o&2&&I(t,1)):(t=Tl(l),t.c(),I(t,1),t.m(e.parentNode,e)):t&&(Ze(),R(t,1,1,()=>{t=null}),Qe())},i(l){s||(I(t),s=!0)},o(l){R(t),s=!1},d(l){t&&t.d(l),l&&u(e)}}}function Bs(r,e,s){let{$$slots:t={},$$scope:l}=e,{id:o}=e,{show:n=!1}=e,{dark:a=!1}=e,{left:i=!0}=e,{right:f=!1}=e,c;return r.$$set=d=>{s(6,e=Se(Se({},e),Ie(d))),"id"in d&&s(0,o=d.id),"show"in d&&s(1,n=d.show),"dark"in d&&s(2,a=d.dark),"left"in d&&s(3,i=d.left),"right"in d&&s(4,f=d.right),"$$scope"in d&&s(7,l=d.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,l,t]}class Hs extends ne{constructor(e){super(),ae(this,e,Bs,Fs,oe,{id:0,show:1,dark:2,left:3,right:4})}}function Os(r){let e,s,t,l,o,n,a;return n=new it({props:{stroke:"currentcolor",name:"caretDown"}}),{c(){e=v("div"),s=v("button"),t=E(r[0]),l=D(),o=v("div"),A(n.$$.fragment),this.h()},l(i){e=g(i,"DIV",{class:!0});var f=w(e);s=g(f,"BUTTON",{tabindex:!0,class:!0});var c=w(s);t=S(c,r[0]),c.forEach(u),l=T(f),o=g(f,"DIV",{class:!0});var d=w(o);N(n.$$.fragment,d),d.forEach(u),f.forEach(u),this.h()},h(){_(s,"tabindex","-1"),s.disabled=r[2],_(s,"class","segment rounded-l px-4 svelte-1qvrfkf"),_(o,"class","segment rounded-r px-2 svelte-1qvrfkf"),_(e,"class","split-button svelte-1qvrfkf"),re(e,"disabled",r[2])},m(i,f){b(i,e,f),m(e,s),m(s,t),m(e,l),m(e,o),U(n,o,null),a=!0},p(i,f){(!a||f&1)&&K(t,i[0]),(!a||f&4)&&(s.disabled=i[2]),f&4&&re(e,"disabled",i[2])},i(i){a||(I(n.$$.fragment,i),a=!0)},o(i){R(n.$$.fragment,i),a=!1},d(i){i&&u(e),C(n)}}}function Gs(r){let e;const s=r[7].default,t=Xe(s,r,r[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||(I(t,l),e=!0)},o(l){R(t,l),e=!1},d(l){t&&t.d(l)}}}function Js(r){let e,s,t,l,o;function n(i){r[8](i)}let a={controls:r[1],class:r[6].class,disabled:r[2],$$slots:{default:[Os]},$$scope:{ctx:r}};return r[5]!==void 0&&(a.show=r[5]),e=new js({props:a}),Jl.push(()=>Kl(e,"show",n)),e.$on("click",r[9]),l=new Hs({props:{class:"split-button-menu",id:r[1],show:r[5],left:r[3],right:r[4],$$slots:{default:[Gs]},$$scope:{ctx:r}}}),{c(){A(e.$$.fragment),t=D(),A(l.$$.fragment)},l(i){N(e.$$.fragment,i),t=T(i),N(l.$$.fragment,i)},m(i,f){U(e,i,f),b(i,t,f),U(l,i,f),o=!0},p(i,f){const c={};f&2&&(c.controls=i[1]),f&64&&(c.class=i[6].class),f&4&&(c.disabled=i[2]),f&1029&&(c.$$scope={dirty:f,ctx:i}),!s&&f&32&&(s=!0,c.show=i[5],Yl(()=>s=!1)),e.$set(c);const d={};f&2&&(d.id=i[1]),f&32&&(d.show=i[5]),f&8&&(d.left=i[3]),f&16&&(d.right=i[4]),f&1024&&(d.$$scope={dirty:f,ctx:i}),l.$set(d)},i(i){o||(I(e.$$.fragment,i),I(l.$$.fragment,i),o=!0)},o(i){R(e.$$.fragment,i),R(l.$$.fragment,i),o=!1},d(i){C(e,i),i&&u(t),C(l,i)}}}function Ks(r){let e,s;return e=new Ws({props:{class:r[6].class,$$slots:{default:[Js]},$$scope:{ctx:r}}}),{c(){A(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&1151&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Ys(r,e,s){let{$$slots:t={},$$scope:l}=e,{label:o}=e,{id:n}=e,{disabled:a=!1}=e,{left:i=!1}=e,{right:f=!1}=e,c=!1;function d(h){c=h,s(5,c)}function p(h){Wl.call(this,r,h)}return r.$$set=h=>{s(6,e=Se(Se({},e),Ie(h))),"label"in h&&s(0,o=h.label),"id"in h&&s(1,n=h.id),"disabled"in h&&s(2,a=h.disabled),"left"in h&&s(3,i=h.left),"right"in h&&s(4,f=h.right),"$$scope"in h&&s(10,l=h.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,t,d,p,l]}class Zs extends ne{constructor(e){super(),ae(this,e,Ys,Ks,oe,{label:0,id:1,disabled:2,left:3,right:4})}}function Ml(r,e,s){const t=r.slice();return t[20]=e[s],t}function Qs(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function Xs(r){let e,s,t,l;const o=[er,xs],n=[];function a(i,f){return i[4]?0:1}return e=a(r),s=n[e]=o[e](r),{c(){s.c(),t=Y()},l(i){s.l(i),t=Y()},m(i,f){n[e].m(i,f),b(i,t,f),l=!0},p(i,f){let c=e;e=a(i),e===c?n[e].p(i,f):(Ze(),R(n[c],1,1,()=>{n[c]=null}),Qe(),s=n[e],s?s.p(i,f):(s=n[e]=o[e](i),s.c()),I(s,1),s.m(t.parentNode,t))},i(i){l||(I(s),l=!0)},o(i){R(s),l=!1},d(i){n[e].d(i),i&&u(t)}}}function xs(r){var ze,je,Fe,ut,ct,dt,mt,ht,pt,_t,vt,gt,bt,wt,kt,$t,Et,St,It,yt,Rt,Pt,Dt,Tt,Mt,Vt,At,Nt,Ut,Ct,Wt,qt,Lt,zt,jt,Ft;let e,s,t,l,o,n,a,i,f,c,d,p,h,y,L,z,F,H=((ct=(ut=(Fe=(je=(ze=r[19])==null?void 0:ze.schedule)==null?void 0:je.action)==null?void 0:Fe.startWorkflow)==null?void 0:ut.workflowType)==null?void 0:ct.name)+"",ee,B,M,V,Q,O=ye((mt=(dt=r[19])==null?void 0:dt.info)==null?void 0:mt.createTime,r[6])+"",ve,ie,Re,X,ge,G,Pe,be,fe,Ue,ue,we,ce,Ce,ke,de,We,$e,k,q,te,x,me,Z,he,le,Ee;l=new it({props:{scale:.8,name:"caretLeft",class:"inline"}}),f=new Ll({props:{status:(ht=r[19])!=null&&ht.schedule.state.paused?"Paused":"Running"}});let J=((_t=(pt=r[19])==null?void 0:pt.info)==null?void 0:_t.updateTime)&&Vl(r);X=new Zs({props:{right:!0,label:(bt=(gt=(vt=r[19])==null?void 0:vt.schedule)==null?void 0:gt.state)!=null&&bt.paused?"Unpause":"Pause",id:"pause-schedule-button",$$slots:{default:[tr]},$$scope:{ctx:r}}}),X.$on("click",r[12]);let j=((kt=(wt=r[19])==null?void 0:wt.info)==null?void 0:kt.invalidScheduleError)&&Nl(r);fe=new Ns({props:{calendar:(It=(St=(Et=($t=r[19])==null?void 0:$t.schedule)==null?void 0:Et.spec)==null?void 0:St.calendar)==null?void 0:It[0],interval:(Dt=(Pt=(Rt=(yt=r[19])==null?void 0:yt.schedule)==null?void 0:Rt.spec)==null?void 0:Pt.interval)==null?void 0:Dt[0]}}),ce=new bs({props:{namespace:r[7],recentRuns:(Mt=(Tt=r[19])==null?void 0:Tt.info)==null?void 0:Mt.recentActions}}),de=new Es({props:{futureRuns:(At=(Vt=r[19])==null?void 0:Vt.info)==null?void 0:At.futureActionTimes}}),k=new ys({props:{spec:(Ut=(Nt=r[19])==null?void 0:Nt.schedule)==null?void 0:Ut.spec,state:(Wt=(Ct=r[19])==null?void 0:Ct.schedule)==null?void 0:Wt.state,policies:(Lt=(qt=r[19])==null?void 0:qt.schedule)==null?void 0:Lt.policies}}),x=new fs({props:{notes:(Ft=(jt=(zt=r[19])==null?void 0:zt.schedule)==null?void 0:jt.state)==null?void 0:Ft.notes}});function lt(){return r[15](r[19])}return Z=new El({props:{open:r[1],confirmType:"primary",confirmText:r[19].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!r[3],$$slots:{content:[sr],title:[lr]},$$scope:{ctx:r}}}),Z.$on("cancelModal",r[14]),Z.$on("confirmModal",lt),le=new El({props:{open:r[2],confirmType:"destructive",confirmText:"Delete",$$slots:{content:[nr],title:[rr]},$$scope:{ctx:r}}}),le.$on("cancelModal",r[16]),le.$on("confirmModal",r[17]),{c(){e=v("header"),s=v("main"),t=v("a"),A(l.$$.fragment),o=E("Back to Schedules"),n=D(),a=v("div"),i=v("h1"),A(f.$$.fragment),c=D(),d=v("span"),p=E(r[8]),h=D(),y=v("div"),L=v("p"),z=E(r[7]),F=D(),ee=E(H),B=D(),M=v("div"),V=v("p"),Q=E("Created: "),ve=E(O),ie=D(),J&&J.c(),Re=D(),A(X.$$.fragment),ge=D(),G=v("div"),j&&j.c(),Pe=D(),be=v("div"),A(fe.$$.fragment),Ue=D(),ue=v("div"),we=v("div"),A(ce.$$.fragment),Ce=D(),ke=v("div"),A(de.$$.fragment),We=D(),$e=v("div"),A(k.$$.fragment),q=D(),te=v("div"),A(x.$$.fragment),me=D(),A(Z.$$.fragment),he=D(),A(le.$$.fragment),this.h()},l($){e=g($,"HEADER",{class:!0});var P=w(e);s=g(P,"MAIN",{class:!0});var pe=w(s);t=g(pe,"A",{href:!0,class:!0,style:!0});var De=w(t);N(l.$$.fragment,De),o=S(De,"Back to Schedules"),De.forEach(u),n=T(pe),a=g(pe,"DIV",{class:!0});var qe=w(a);i=g(qe,"H1",{class:!0});var Te=w(i);N(f.$$.fragment,Te),c=T(Te),d=g(Te,"SPAN",{class:!0});var Be=w(d);p=S(Be,r[8]),Be.forEach(u),Te.forEach(u),qe.forEach(u),h=T(pe),y=g(pe,"DIV",{class:!0});var Me=w(y);L=g(Me,"P",{});var Ve=w(L);z=S(Ve,r[7]),F=T(Ve),ee=S(Ve,H),Ve.forEach(u),Me.forEach(u),B=T(pe),M=g(pe,"DIV",{class:!0});var _e=w(M);V=g(_e,"P",{});var Ae=w(V);Q=S(Ae,"Created: "),ve=S(Ae,O),Ae.forEach(u),ie=T(_e),J&&J.l(_e),_e.forEach(u),pe.forEach(u),Re=T(P),N(X.$$.fragment,P),P.forEach(u),ge=T($),G=g($,"DIV",{class:!0});var se=w(G);j&&j.l(se),Pe=T(se),be=g(se,"DIV",{class:!0});var He=w(be);N(fe.$$.fragment,He),He.forEach(u),Ue=T(se),ue=g(se,"DIV",{class:!0});var Ne=w(ue);we=g(Ne,"DIV",{class:!0});var Oe=w(we);N(ce.$$.fragment,Oe),Oe.forEach(u),Ce=T(Ne),ke=g(Ne,"DIV",{class:!0});var Ge=w(ke);N(de.$$.fragment,Ge),Ge.forEach(u),Ne.forEach(u),We=T(se),$e=g(se,"DIV",{class:!0});var Je=w($e);N(k.$$.fragment,Je),Je.forEach(u),q=T(se),te=g(se,"DIV",{class:!0});var Ke=w(te);N(x.$$.fragment,Ke),Ke.forEach(u),se.forEach(u),me=T($),N(Z.$$.fragment,$),he=T($),N(le.$$.fragment,$),this.h()},h(){_(t,"href",ql({namespace:r[7]})),_(t,"class","absolute top-0 back-to-workflows"),Zl(t,"left","-.5rem"),_(d,"class","font-medium select-all"),_(i,"class","text-2xl flex relative items-center gap-4"),_(a,"class","flex justify-between items-center mt-8"),_(y,"class","flex items-center text-sm"),_(M,"class","flex items-center gap-2 text-sm"),_(s,"class","flex flex-col gap-1 relative"),_(e,"class","flex flex-row justify-between gap-4 mb-8"),_(be,"class","w-full xl:w-1/2"),_(we,"class","w-full xl:w-3/4"),_(ke,"class","w-full xl:w-1/4"),_(ue,"class","flex flex-col xl:flex-row gap-4"),_($e,"class","w-full xl:w-1/2"),_(te,"class","w-full xl:w-1/2"),_(G,"class","flex flex-col gap-4 pb-24")},m($,P){b($,e,P),m(e,s),m(s,t),U(l,t,null),m(t,o),m(s,n),m(s,a),m(a,i),U(f,i,null),m(i,c),m(i,d),m(d,p),m(s,h),m(s,y),m(y,L),m(L,z),m(L,F),m(L,ee),m(s,B),m(s,M),m(M,V),m(V,Q),m(V,ve),m(M,ie),J&&J.m(M,null),m(e,Re),U(X,e,null),b($,ge,P),b($,G,P),j&&j.m(G,null),m(G,Pe),m(G,be),U(fe,be,null),m(G,Ue),m(G,ue),m(ue,we),U(ce,we,null),m(ue,Ce),m(ue,ke),U(de,ke,null),m(G,We),m(G,$e),U(k,$e,null),m(G,q),m(G,te),U(x,te,null),b($,me,P),U(Z,$,P),b($,he,P),U(le,$,P),Ee=!0},p($,P){var se,He,Ne,Oe,Ge,Je,Ke,Bt,Ht,Ot,Gt,Jt,Kt,Yt,Zt,Qt,Xt,xt,el,tl,ll,sl,rl,nl,al,ol,il,fl,ul,cl,dl,ml,hl,pl,_l,vl;r=$;const pe={};P&1&&(pe.status=(se=r[19])!=null&&se.schedule.state.paused?"Paused":"Running"),f.$set(pe),(!Ee||P&1)&&H!==(H=((Je=(Ge=(Oe=(Ne=(He=r[19])==null?void 0:He.schedule)==null?void 0:Ne.action)==null?void 0:Oe.startWorkflow)==null?void 0:Ge.workflowType)==null?void 0:Je.name)+"")&&K(ee,H),(!Ee||P&65)&&O!==(O=ye((Bt=(Ke=r[19])==null?void 0:Ke.info)==null?void 0:Bt.createTime,r[6])+"")&&K(ve,O),(Ot=(Ht=r[19])==null?void 0:Ht.info)!=null&&Ot.updateTime?J?J.p(r,P):(J=Vl(r),J.c(),J.m(M,null)):J&&(J.d(1),J=null);const De={};P&1&&(De.label=(Kt=(Jt=(Gt=r[19])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?"Unpause":"Pause"),P&8388608&&(De.$$scope={dirty:P,ctx:r}),X.$set(De),(Zt=(Yt=r[19])==null?void 0:Yt.info)!=null&&Zt.invalidScheduleError?j?(j.p(r,P),P&1&&I(j,1)):(j=Nl(r),j.c(),I(j,1),j.m(G,Pe)):j&&(Ze(),R(j,1,1,()=>{j=null}),Qe());const qe={};P&1&&(qe.calendar=(el=(xt=(Xt=(Qt=r[19])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:xt.calendar)==null?void 0:el[0]),P&1&&(qe.interval=(rl=(sl=(ll=(tl=r[19])==null?void 0:tl.schedule)==null?void 0:ll.spec)==null?void 0:sl.interval)==null?void 0:rl[0]),fe.$set(qe);const Te={};P&1&&(Te.recentRuns=(al=(nl=r[19])==null?void 0:nl.info)==null?void 0:al.recentActions),ce.$set(Te);const Be={};P&1&&(Be.futureRuns=(il=(ol=r[19])==null?void 0:ol.info)==null?void 0:il.futureActionTimes),de.$set(Be);const Me={};P&1&&(Me.spec=(ul=(fl=r[19])==null?void 0:fl.schedule)==null?void 0:ul.spec),P&1&&(Me.state=(dl=(cl=r[19])==null?void 0:cl.schedule)==null?void 0:dl.state),P&1&&(Me.policies=(hl=(ml=r[19])==null?void 0:ml.schedule)==null?void 0:hl.policies),k.$set(Me);const Ve={};P&1&&(Ve.notes=(vl=(_l=(pl=r[19])==null?void 0:pl.schedule)==null?void 0:_l.state)==null?void 0:vl.notes),x.$set(Ve);const _e={};P&2&&(_e.open=r[1]),P&1&&(_e.confirmText=r[19].schedule.state.paused?"Unpause":"Pause"),P&8&&(_e.confirmDisabled=!r[3]),P&8388617&&(_e.$$scope={dirty:P,ctx:r}),Z.$set(_e);const Ae={};P&4&&(Ae.open=r[2]),P&8388608&&(Ae.$$scope={dirty:P,ctx:r}),le.$set(Ae)},i($){Ee||(I(l.$$.fragment,$),I(f.$$.fragment,$),I(X.$$.fragment,$),I(j),I(fe.$$.fragment,$),I(ce.$$.fragment,$),I(de.$$.fragment,$),I(k.$$.fragment,$),I(x.$$.fragment,$),I(Z.$$.fragment,$),I(le.$$.fragment,$),Ee=!0)},o($){R(l.$$.fragment,$),R(f.$$.fragment,$),R(X.$$.fragment,$),R(j),R(fe.$$.fragment,$),R(ce.$$.fragment,$),R(de.$$.fragment,$),R(k.$$.fragment,$),R(x.$$.fragment,$),R(Z.$$.fragment,$),R(le.$$.fragment,$),Ee=!1},d($){$&&u(e),C(l),C(f),J&&J.d(),C(X),$&&u(ge),$&&u(G),j&&j.d(),C(fe),C(ce),C(de),C(k),C(x),$&&u(me),C(Z,$),$&&u(he),C(le,$)}}}function er(r){let e,s;return e=new zl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){A(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:W,i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Vl(r){var i,f;let e,s,t,l,o,n=ye((f=(i=r[19])==null?void 0:i.info)==null?void 0:f.updateTime,r[6])+"",a;return{c(){e=v("p"),s=E("-"),t=D(),l=v("p"),o=E("Last updated: "),a=E(n)},l(c){e=g(c,"P",{});var d=w(e);s=S(d,"-"),d.forEach(u),t=T(c),l=g(c,"P",{});var p=w(l);o=S(p,"Last updated: "),a=S(p,n),p.forEach(u)},m(c,d){b(c,e,d),m(e,s),b(c,t,d),b(c,l,d),m(l,o),m(l,a)},p(c,d){var p,h;d&65&&n!==(n=ye((h=(p=c[19])==null?void 0:p.info)==null?void 0:h.updateTime,c[6])+"")&&K(a,n)},d(c){c&&u(e),c&&u(t),c&&u(l)}}}function Al(r){let e,s=r[20].label+"",t,l,o,n,a;return{c(){e=v("div"),t=E(s),l=D(),this.h()},l(i){e=g(i,"DIV",{class:!0});var f=w(e);t=S(f,s),l=T(f),f.forEach(u),this.h()},h(){var i;_(e,"class",o="cursor-pointer flex gap-2 items-center "+((i=r[20])==null?void 0:i.class))},m(i,f){b(i,e,f),m(e,t),m(e,l),n||(a=Le(e,"click",r[20].onClick),n=!0)},p(i,f){r=i},d(i){i&&u(e),n=!1,a()}}}function tr(r){let e,s=r[11],t=[];for(let l=0;l{"notes"in l&&s(0,t=l.notes)},[t]}class fs extends ne{constructor(e){super(),ae(this,e,is,os,oe,{notes:0})}}function us(r){let e,s;const t=r[2].default,l=Xe(t,r,r[1],null);return{c(){e=v("div"),l&&l.c(),this.h()},l(o){e=g(o,"DIV",{class:!0});var n=w(e);l&&l.l(n),n.forEach(u),this.h()},h(){_(e,"class","panel svelte-iclf07"),re(e,"error",r[0])},m(o,n){b(o,e,n),l&&l.m(e,null),s=!0},p(o,[n]){l&&l.p&&(!s||n&2)&&xe(l,t,o,o[1],s?tt(t,o[1],n,null):et(o[1]),null),n&1&&re(e,"error",o[0])},i(o){s||(I(l,o),s=!0)},o(o){R(l,o),s=!1},d(o){o&&u(e),l&&l.d(o)}}}function cs(r,e,s){let{$$slots:t={},$$scope:l}=e,{error:o=!1}=e;return r.$$set=n=>{"error"in n&&s(0,o=n.error),"$$scope"in n&&s(1,l=n.$$scope)},[o,l,t]}class nt extends ne{constructor(e){super(),ae(this,e,cs,us,oe,{error:0})}}function Sl(r,e,s){const t=r.slice();return t[3]=e[s],t}function ds(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function ms(r){let e,s,t,l,o,n,a,i,f,c=ye(r[3].actualTime,r[2])+"",d,p;return t=new Ll({props:{status:r[6].status}}),n=new ss({props:{"sveltekit:prefetch":!0,href:wl({workflow:r[3].startWorkflowResult.workflowId,run:r[3].startWorkflowResult.runId,namespace:r[1]}),$$slots:{default:[hs]},$$scope:{ctx:r}}}),{c(){e=v("div"),s=v("div"),A(t.$$.fragment),l=D(),o=v("div"),A(n.$$.fragment),a=D(),i=v("div"),f=v("p"),d=E(c),this.h()},l(h){e=g(h,"DIV",{class:!0});var y=w(e);s=g(y,"DIV",{class:!0});var L=w(s);N(t.$$.fragment,L),L.forEach(u),l=T(y),o=g(y,"DIV",{class:!0});var z=w(o);N(n.$$.fragment,z),z.forEach(u),a=T(y),i=g(y,"DIV",{class:!0});var F=w(i);f=g(F,"P",{});var H=w(f);d=S(H,c),H.forEach(u),F.forEach(u),y.forEach(u),this.h()},h(){_(s,"class","w-28"),_(o,"class","w-96"),_(i,"class","ml-auto"),_(e,"class","row svelte-1mikfkz")},m(h,y){b(h,e,y),m(e,s),U(t,s,null),m(e,l),m(e,o),U(n,o,null),m(e,a),m(e,i),m(i,f),m(f,d),p=!0},p(h,y){const L={};y&3&&(L.status=h[6].status),t.$set(L);const z={};y&3&&(z.href=wl({workflow:h[3].startWorkflowResult.workflowId,run:h[3].startWorkflowResult.runId,namespace:h[1]})),y&129&&(z.$$scope={dirty:y,ctx:h}),n.$set(z),(!p||y&5)&&c!==(c=ye(h[3].actualTime,h[2])+"")&&K(d,c)},i(h){p||(I(t.$$.fragment,h),I(n.$$.fragment,h),p=!0)},o(h){R(t.$$.fragment,h),R(n.$$.fragment,h),p=!1},d(h){h&&u(e),C(t),C(n)}}}function hs(r){let e=r[3].startWorkflowResult.workflowId+"",s;return{c(){s=E(e)},l(t){s=S(t,e)},m(t,l){b(t,s,l)},p(t,l){l&1&&e!==(e=t[3].startWorkflowResult.workflowId+"")&&K(s,e)},d(t){t&&u(s)}}}function ps(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function Il(r,e){let s,t,l,o,n={ctx:e,current:null,token:null,hasCatch:!1,pending:ps,then:ms,catch:ds,value:6,blocks:[,,,]};return rt(l=$l({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch),n),{key:r,first:null,c(){s=Y(),t=Y(),n.block.c(),this.h()},l(a){s=Y(),t=Y(),n.block.l(a),this.h()},h(){this.first=s},m(a,i){b(a,s,i),b(a,t,i),n.block.m(a,n.anchor=i),n.mount=()=>t.parentNode,n.anchor=t,o=!0},p(a,i){e=a,n.ctx=e,i&3&&l!==(l=$l({namespace:e[1],workflowId:ot(e[3].startWorkflowResult.workflowId),runId:e[3].startWorkflowResult.runId},fetch))&&rt(l,n)||Ul(n,e,i)},i(a){o||(I(n.block),o=!0)},o(a){for(let i=0;i<3;i+=1){const f=n.blocks[i];R(f)}o=!1},d(a){a&&u(s),a&&u(t),n.block.d(a),n.token=null,n=null}}}function yl(r){let e,s;return e=new ls({props:{title:"No Recent Runs"}}),{c(){A(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function _s(r){let e,s,t,l=[],o=new Map,n,a,i,f=r[0].slice(0,5);const c=p=>p[3].startWorkflowResult.workflowId;for(let p=0;p{d=null}),Qe()):d?h&1&&I(d,1):(d=yl(),d.c(),I(d,1),d.m(a.parentNode,a))},i(p){if(!i){for(let h=0;hs(2,t=n));let{recentRuns:l=[]}=e,{namespace:o}=e;return r.$$set=n=>{"recentRuns"in n&&s(0,l=n.recentRuns),"namespace"in n&&s(1,o=n.namespace)},[l,o,t]}class bs extends ne{constructor(e){super(),ae(this,e,gs,vs,oe,{recentRuns:0,namespace:1})}}function Rl(r,e,s){const t=r.slice();return t[2]=e[s],t}function Pl(r){let e,s,t=ye(r[2],r[1],"from now")+"",l,o;return{c(){e=v("div"),s=v("p"),l=E(t),o=D(),this.h()},l(n){e=g(n,"DIV",{class:!0});var a=w(e);s=g(a,"P",{});var i=w(s);l=S(i,t),i.forEach(u),o=T(a),a.forEach(u),this.h()},h(){_(e,"class","row svelte-kbuuws")},m(n,a){b(n,e,a),m(e,s),m(s,l),m(e,o)},p(n,a){a&3&&t!==(t=ye(n[2],n[1],"from now")+"")&&K(l,t)},d(n){n&&u(e)}}}function ws(r){let e,s,t,l,o=r[0].slice(0,5),n=[];for(let a=0;as(1,t=o));let{futureRuns:l=[]}=e;return r.$$set=o=>{"futureRuns"in o&&s(0,l=o.futureRuns)},[l,t]}class Es extends ne{constructor(e){super(),ae(this,e,$s,ks,oe,{futureRuns:0})}}function Dl(r){var G,Pe,be,fe,Ue,ue,we,ce,Ce,ke,de,We,$e;let e,s,t=((Pe=(G=r[0])==null?void 0:G.startTime)!=null?Pe:"")+"",l,o,n,a,i=((fe=(be=r[0])==null?void 0:be.endTime)!=null?fe:"")+"",f,c,d,p,h=((ue=(Ue=r[0])==null?void 0:Ue.jitter)!=null?ue:"")+"",y,L,z,F,H=((Ce=(ce=(we=r[0])==null?void 0:we.excludeCalendar)==null?void 0:ce[0])!=null?Ce:"")+"",ee,B,M,V,Q=((de=(ke=r[1])==null?void 0:ke.remainingActions)!=null?de:"")+"",O,ve,ie,Re,X=(($e=(We=r[2])==null?void 0:We.overlapPolicy)!=null?$e:"")+"",ge;return{c(){e=v("p"),s=E("Schedule Start Time: "),l=E(t),o=D(),n=v("p"),a=E("Schedule End Time: "),f=E(i),c=D(),d=v("p"),p=E("Jitter: "),y=E(h),L=D(),z=v("p"),F=E("Exclusion Calendar: "),ee=E(H),B=D(),M=v("p"),V=E("Remaining Actions: "),O=E(Q),ve=D(),ie=v("p"),Re=E("Overlap Policy: "),ge=E(X)},l(k){e=g(k,"P",{});var q=w(e);s=S(q,"Schedule Start Time: "),l=S(q,t),q.forEach(u),o=T(k),n=g(k,"P",{});var te=w(n);a=S(te,"Schedule End Time: "),f=S(te,i),te.forEach(u),c=T(k),d=g(k,"P",{});var x=w(d);p=S(x,"Jitter: "),y=S(x,h),x.forEach(u),L=T(k),z=g(k,"P",{});var me=w(z);F=S(me,"Exclusion Calendar: "),ee=S(me,H),me.forEach(u),B=T(k),M=g(k,"P",{});var Z=w(M);V=S(Z,"Remaining Actions: "),O=S(Z,Q),Z.forEach(u),ve=T(k),ie=g(k,"P",{});var he=w(ie);Re=S(he,"Overlap Policy: "),ge=S(he,X),he.forEach(u)},m(k,q){b(k,e,q),m(e,s),m(e,l),b(k,o,q),b(k,n,q),m(n,a),m(n,f),b(k,c,q),b(k,d,q),m(d,p),m(d,y),b(k,L,q),b(k,z,q),m(z,F),m(z,ee),b(k,B,q),b(k,M,q),m(M,V),m(M,O),b(k,ve,q),b(k,ie,q),m(ie,Re),m(ie,ge)},p(k,q){var te,x,me,Z,he,le,Ee,J,j,lt,ze,je,Fe;q&1&&t!==(t=((x=(te=k[0])==null?void 0:te.startTime)!=null?x:"")+"")&&K(l,t),q&1&&i!==(i=((Z=(me=k[0])==null?void 0:me.endTime)!=null?Z:"")+"")&&K(f,i),q&1&&h!==(h=((le=(he=k[0])==null?void 0:he.jitter)!=null?le:"")+"")&&K(y,h),q&1&&H!==(H=((j=(J=(Ee=k[0])==null?void 0:Ee.excludeCalendar)==null?void 0:J[0])!=null?j:"")+"")&&K(ee,H),q&2&&Q!==(Q=((ze=(lt=k[1])==null?void 0:lt.remainingActions)!=null?ze:"")+"")&&K(O,Q),q&4&&X!==(X=((Fe=(je=k[2])==null?void 0:je.overlapPolicy)!=null?Fe:"")+"")&&K(ge,X)},d(k){k&&u(e),k&&u(o),k&&u(n),k&&u(c),k&&u(d),k&&u(L),k&&u(z),k&&u(B),k&&u(M),k&&u(ve),k&&u(ie)}}}function Ss(r){let e,s,t,l,o,n,a,i;t=new it({props:{class:"inline",name:r[3]?"caretUp":"caretDown"}});let f=r[3]&&Dl(r);return{c(){e=v("p"),s=E("Advanced Settings "),A(t.$$.fragment),l=D(),f&&f.c(),o=Y(),this.h()},l(c){e=g(c,"P",{class:!0});var d=w(e);s=S(d,"Advanced Settings "),N(t.$$.fragment,d),d.forEach(u),l=T(c),f&&f.l(c),o=Y(),this.h()},h(){_(e,"class","settings svelte-7frpd7")},m(c,d){b(c,e,d),m(e,s),U(t,e,null),b(c,l,d),f&&f.m(c,d),b(c,o,d),n=!0,a||(i=Le(e,"click",r[4]),a=!0)},p(c,[d]){const p={};d&8&&(p.name=c[3]?"caretUp":"caretDown"),t.$set(p),c[3]?f?f.p(c,d):(f=Dl(c),f.c(),f.m(o.parentNode,o)):f&&(f.d(1),f=null)},i(c){n||(I(t.$$.fragment,c),n=!0)},o(c){R(t.$$.fragment,c),n=!1},d(c){c&&u(e),C(t),c&&u(l),f&&f.d(c),c&&u(o),a=!1,i()}}}function Is(r,e,s){let{spec:t}=e,{state:l}=e,{policies:o}=e,n=!1;const a=()=>s(3,n=!n);return r.$$set=i=>{"spec"in i&&s(0,t=i.spec),"state"in i&&s(1,l=i.state),"policies"in i&&s(2,o=i.policies)},[t,l,o,n,a]}class ys extends ne{constructor(e){super(),ae(this,e,Is,Ss,oe,{spec:0,state:1,policies:2})}}function Rs(r){let e,s,t,l,o;return{c(){e=v("p"),s=E("Error Message"),t=D(),l=v("p"),o=E(r[0]),this.h()},l(n){e=g(n,"P",{class:!0});var a=w(e);s=S(a,"Error Message"),a.forEach(u),t=T(n),l=g(n,"P",{class:!0});var i=w(l);o=S(i,r[0]),i.forEach(u),this.h()},h(){_(e,"class","error-text svelte-1lke5yx"),_(l,"class","error-text svelte-1lke5yx")},m(n,a){b(n,e,a),m(e,s),b(n,t,a),b(n,l,a),m(l,o)},p(n,a){a&1&&K(o,n[0])},d(n){n&&u(e),n&&u(t),n&&u(l)}}}function Ps(r){let e,s;return e=new nt({props:{error:!0,$$slots:{default:[Rs]},$$scope:{ctx:r}}}),{c(){A(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||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Ds(r,e,s){let{error:t=""}=e;return r.$$set=l=>{"error"in l&&s(0,t=l.error)},[t]}class Ts extends ne{constructor(e){super(),ae(this,e,Ds,Ps,oe,{error:0})}}function Ms(r){let e,s,t,l,o,n;return o=new rs({props:{calendar:r[0],interval:r[1]}}),{c(){e=v("h2"),s=E("Frequency"),t=D(),l=v("div"),A(o.$$.fragment),this.h()},l(a){e=g(a,"H2",{class:!0});var i=w(e);s=S(i,"Frequency"),i.forEach(u),t=T(a),l=g(a,"DIV",{class:!0});var f=w(l);N(o.$$.fragment,f),f.forEach(u),this.h()},h(){_(e,"class","mb-4 text-2xl"),_(l,"class","pr-2")},m(a,i){b(a,e,i),m(e,s),b(a,t,i),b(a,l,i),U(o,l,null),n=!0},p(a,i){const f={};i&1&&(f.calendar=a[0]),i&2&&(f.interval=a[1]),o.$set(f)},i(a){n||(I(o.$$.fragment,a),n=!0)},o(a){R(o.$$.fragment,a),n=!1},d(a){a&&u(e),a&&u(t),a&&u(l),C(o)}}}function Vs(r){let e,s;return e=new nt({props:{$$slots:{default:[Ms]},$$scope:{ctx:r}}}),{c(){A(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||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function As(r,e,s){let{calendar:t}=e,{interval:l}=e;return r.$$set=o=>{"calendar"in o&&s(0,t=o.calendar),"interval"in o&&s(1,l=o.interval)},[t,l]}class Ns extends ne{constructor(e){super(),ae(this,e,As,Vs,oe,{calendar:0,interval:1})}}function Us(r){let e,s,t;const l=r[2].default,o=Xe(l,r,r[1],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(n){e=g(n,"DIV",{class:!0});var a=w(e);o&&o.l(a),a.forEach(u),this.h()},h(){_(e,"class",s="relative inline-block "+r[0].class)},m(n,a){b(n,e,a),o&&o.m(e,null),t=!0},p(n,[a]){o&&o.p&&(!t||a&2)&&xe(o,l,n,n[1],t?tt(l,n[1],a,null):et(n[1]),null),(!t||a&1&&s!==(s="relative inline-block "+n[0].class))&&_(e,"class",s)},i(n){t||(I(o,n),t=!0)},o(n){R(o,n),t=!1},d(n){n&&u(e),o&&o.d(n)}}}function Cs(r,e,s){let{$$slots:t={},$$scope:l}=e;return r.$$set=o=>{s(0,e=Se(Se({},e),Ie(o))),"$$scope"in o&&s(1,l=o.$$scope)},e=Ie(e),[e,l,t]}class Ws extends ne{constructor(e){super(),ae(this,e,Cs,Us,oe,{})}}const qs=r=>{const e=l=>{r.dispatchEvent(new CustomEvent("toggle-menu")),l.stopPropagation()},s=l=>{var n;let o=(n=l.path)!=null&&n.length?l.path[0]:l.target;!o&&l.relatedTarget&&(o=l.relatedTarget),r&&!r.contains(o)&&!l.defaultPrevented&&(r.dispatchEvent(new CustomEvent("close-menu")),l.stopPropagation())},t=l=>{(l==null?void 0:l.key)==="Escape"&&r.dispatchEvent(new CustomEvent("close-menu"))};return r.setAttribute("tabindex","0"),r.addEventListener("click",e,!1),document.addEventListener("click",s,!1),document.addEventListener("keyup",t,!1),{destroy(){r.removeEventListener("click",e,!1),document.removeEventListener("click",s,!1),document.removeEventListener("keyup",t,!1)}}};function Ls(r){let e,s,t,l,o,n;const a=r[8].default,i=Xe(a,r,r[7],null);return{c(){e=v("button"),i&&i.c(),this.h()},l(f){e=g(f,"BUTTON",{type:!0,"aria-haspopup":!0,"aria-controls":!0,"aria-expanded":!0,class:!0});var c=w(e);i&&i.l(c),c.forEach(u),this.h()},h(){_(e,"type","button"),_(e,"aria-haspopup",s=!r[3]),_(e,"aria-controls",r[1]),_(e,"aria-expanded",r[0]),_(e,"class",t=gl(r[6].class)+" svelte-6vunh2"),e.disabled=r[3],re(e,"dark",r[2])},m(f,c){b(f,e,c),i&&i.m(e,null),l=!0,o||(n=[Bl(qs.call(null,e)),Le(e,"close-menu",r[4]),Le(e,"toggle-menu",r[5]),Le(e,"click",r[9])],o=!0)},p(f,[c]){i&&i.p&&(!l||c&128)&&xe(i,a,f,f[7],l?tt(a,f[7],c,null):et(f[7]),null),(!l||c&8&&s!==(s=!f[3]))&&_(e,"aria-haspopup",s),(!l||c&2)&&_(e,"aria-controls",f[1]),(!l||c&1)&&_(e,"aria-expanded",f[0]),(!l||c&64&&t!==(t=gl(f[6].class)+" svelte-6vunh2"))&&_(e,"class",t),(!l||c&8)&&(e.disabled=f[3]),c&68&&re(e,"dark",f[2])},i(f){l||(I(i,f),l=!0)},o(f){R(i,f),l=!1},d(f){f&&u(e),i&&i.d(f),o=!1,Hl(n)}}}function zs(r,e,s){let{$$slots:t={},$$scope:l}=e,{show:o}=e,{controls:n}=e,{dark:a=!1}=e,{disabled:i=!1}=e;const f=()=>{!i&&s(0,o=!1)},c=()=>{!i&&s(0,o=!o)};function d(p){Wl.call(this,r,p)}return r.$$set=p=>{s(6,e=Se(Se({},e),Ie(p))),"show"in p&&s(0,o=p.show),"controls"in p&&s(1,n=p.controls),"dark"in p&&s(2,a=p.dark),"disabled"in p&&s(3,i=p.disabled),"$$scope"in p&&s(7,l=p.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,l,t,d]}class js extends ne{constructor(e){super(),ae(this,e,zs,Ls,oe,{show:0,controls:1,dark:2,disabled:3})}}function Tl(r){let e,s,t,l;const o=r[8].default,n=Xe(o,r,r[7],null);return{c(){e=v("ul"),n&&n.c(),this.h()},l(a){e=g(a,"UL",{role:!0,class:!0,"aria-labelledby":!0,width:!0,id:!0});var i=w(e);n&&n.l(i),i.forEach(u),this.h()},h(){_(e,"role","menu"),_(e,"class",s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border bg-white text-gray-900 shadow "+r[6].class+" svelte-zt7cn"),_(e,"aria-labelledby",r[0]),_(e,"width",r[5]),_(e,"id",r[0]),re(e,"dark",r[2]),re(e,"left",r[3]),re(e,"right",r[4])},m(a,i){b(a,e,i),n&&n.m(e,null),l=!0},p(a,i){n&&n.p&&(!l||i&128)&&xe(n,o,a,a[7],l?tt(o,a[7],i,null):et(a[7]),null),(!l||i&64&&s!==(s="absolute z-50 mt-1 w-full list-none overflow-y-scroll rounded border bg-white text-gray-900 shadow "+a[6].class+" svelte-zt7cn"))&&_(e,"class",s),(!l||i&1)&&_(e,"aria-labelledby",a[0]),(!l||i&1)&&_(e,"id",a[0]),i&68&&re(e,"dark",a[2]),i&72&&re(e,"left",a[3]),i&80&&re(e,"right",a[4])},i(a){l||(I(n,a),t||Ol(()=>{t=Gl(e,ns,{duration:100}),t.start()}),l=!0)},o(a){R(n,a),l=!1},d(a){a&&u(e),n&&n.d(a)}}}function Fs(r){let e,s,t=r[1]&&Tl(r);return{c(){t&&t.c(),e=Y()},l(l){t&&t.l(l),e=Y()},m(l,o){t&&t.m(l,o),b(l,e,o),s=!0},p(l,[o]){l[1]?t?(t.p(l,o),o&2&&I(t,1)):(t=Tl(l),t.c(),I(t,1),t.m(e.parentNode,e)):t&&(Ze(),R(t,1,1,()=>{t=null}),Qe())},i(l){s||(I(t),s=!0)},o(l){R(t),s=!1},d(l){t&&t.d(l),l&&u(e)}}}function Bs(r,e,s){let{$$slots:t={},$$scope:l}=e,{id:o}=e,{show:n=!1}=e,{dark:a=!1}=e,{left:i=!0}=e,{right:f=!1}=e,c;return r.$$set=d=>{s(6,e=Se(Se({},e),Ie(d))),"id"in d&&s(0,o=d.id),"show"in d&&s(1,n=d.show),"dark"in d&&s(2,a=d.dark),"left"in d&&s(3,i=d.left),"right"in d&&s(4,f=d.right),"$$scope"in d&&s(7,l=d.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,l,t]}class Hs extends ne{constructor(e){super(),ae(this,e,Bs,Fs,oe,{id:0,show:1,dark:2,left:3,right:4})}}function Os(r){let e,s,t,l,o,n,a;return n=new it({props:{stroke:"currentcolor",name:"caretDown"}}),{c(){e=v("div"),s=v("button"),t=E(r[0]),l=D(),o=v("div"),A(n.$$.fragment),this.h()},l(i){e=g(i,"DIV",{class:!0});var f=w(e);s=g(f,"BUTTON",{tabindex:!0,class:!0});var c=w(s);t=S(c,r[0]),c.forEach(u),l=T(f),o=g(f,"DIV",{class:!0});var d=w(o);N(n.$$.fragment,d),d.forEach(u),f.forEach(u),this.h()},h(){_(s,"tabindex","-1"),s.disabled=r[2],_(s,"class","segment rounded-l px-4 svelte-1qvrfkf"),_(o,"class","segment rounded-r px-2 svelte-1qvrfkf"),_(e,"class","split-button svelte-1qvrfkf"),re(e,"disabled",r[2])},m(i,f){b(i,e,f),m(e,s),m(s,t),m(e,l),m(e,o),U(n,o,null),a=!0},p(i,f){(!a||f&1)&&K(t,i[0]),(!a||f&4)&&(s.disabled=i[2]),f&4&&re(e,"disabled",i[2])},i(i){a||(I(n.$$.fragment,i),a=!0)},o(i){R(n.$$.fragment,i),a=!1},d(i){i&&u(e),C(n)}}}function Gs(r){let e;const s=r[7].default,t=Xe(s,r,r[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||(I(t,l),e=!0)},o(l){R(t,l),e=!1},d(l){t&&t.d(l)}}}function Js(r){let e,s,t,l,o;function n(i){r[8](i)}let a={controls:r[1],class:r[6].class,disabled:r[2],$$slots:{default:[Os]},$$scope:{ctx:r}};return r[5]!==void 0&&(a.show=r[5]),e=new js({props:a}),Jl.push(()=>Kl(e,"show",n)),e.$on("click",r[9]),l=new Hs({props:{class:"split-button-menu",id:r[1],show:r[5],left:r[3],right:r[4],$$slots:{default:[Gs]},$$scope:{ctx:r}}}),{c(){A(e.$$.fragment),t=D(),A(l.$$.fragment)},l(i){N(e.$$.fragment,i),t=T(i),N(l.$$.fragment,i)},m(i,f){U(e,i,f),b(i,t,f),U(l,i,f),o=!0},p(i,f){const c={};f&2&&(c.controls=i[1]),f&64&&(c.class=i[6].class),f&4&&(c.disabled=i[2]),f&1029&&(c.$$scope={dirty:f,ctx:i}),!s&&f&32&&(s=!0,c.show=i[5],Yl(()=>s=!1)),e.$set(c);const d={};f&2&&(d.id=i[1]),f&32&&(d.show=i[5]),f&8&&(d.left=i[3]),f&16&&(d.right=i[4]),f&1024&&(d.$$scope={dirty:f,ctx:i}),l.$set(d)},i(i){o||(I(e.$$.fragment,i),I(l.$$.fragment,i),o=!0)},o(i){R(e.$$.fragment,i),R(l.$$.fragment,i),o=!1},d(i){C(e,i),i&&u(t),C(l,i)}}}function Ks(r){let e,s;return e=new Ws({props:{class:r[6].class,$$slots:{default:[Js]},$$scope:{ctx:r}}}),{c(){A(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&1151&&(o.$$scope={dirty:l,ctx:t}),e.$set(o)},i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Ys(r,e,s){let{$$slots:t={},$$scope:l}=e,{label:o}=e,{id:n}=e,{disabled:a=!1}=e,{left:i=!1}=e,{right:f=!1}=e,c=!1;function d(h){c=h,s(5,c)}function p(h){Wl.call(this,r,h)}return r.$$set=h=>{s(6,e=Se(Se({},e),Ie(h))),"label"in h&&s(0,o=h.label),"id"in h&&s(1,n=h.id),"disabled"in h&&s(2,a=h.disabled),"left"in h&&s(3,i=h.left),"right"in h&&s(4,f=h.right),"$$scope"in h&&s(10,l=h.$$scope)},e=Ie(e),[o,n,a,i,f,c,e,t,d,p,l]}class Zs extends ne{constructor(e){super(),ae(this,e,Ys,Ks,oe,{label:0,id:1,disabled:2,left:3,right:4})}}function Ml(r,e,s){const t=r.slice();return t[20]=e[s],t}function Qs(r){return{c:W,l:W,m:W,p:W,i:W,o:W,d:W}}function Xs(r){let e,s,t,l;const o=[er,xs],n=[];function a(i,f){return i[4]?0:1}return e=a(r),s=n[e]=o[e](r),{c(){s.c(),t=Y()},l(i){s.l(i),t=Y()},m(i,f){n[e].m(i,f),b(i,t,f),l=!0},p(i,f){let c=e;e=a(i),e===c?n[e].p(i,f):(Ze(),R(n[c],1,1,()=>{n[c]=null}),Qe(),s=n[e],s?s.p(i,f):(s=n[e]=o[e](i),s.c()),I(s,1),s.m(t.parentNode,t))},i(i){l||(I(s),l=!0)},o(i){R(s),l=!1},d(i){n[e].d(i),i&&u(t)}}}function xs(r){var ze,je,Fe,ut,ct,dt,mt,ht,pt,_t,vt,gt,bt,wt,kt,$t,Et,St,It,yt,Rt,Pt,Dt,Tt,Mt,Vt,At,Nt,Ut,Ct,Wt,qt,Lt,zt,jt,Ft;let e,s,t,l,o,n,a,i,f,c,d,p,h,y,L,z,F,H=((ct=(ut=(Fe=(je=(ze=r[19])==null?void 0:ze.schedule)==null?void 0:je.action)==null?void 0:Fe.startWorkflow)==null?void 0:ut.workflowType)==null?void 0:ct.name)+"",ee,B,M,V,Q,O=ye((mt=(dt=r[19])==null?void 0:dt.info)==null?void 0:mt.createTime,r[6])+"",ve,ie,Re,X,ge,G,Pe,be,fe,Ue,ue,we,ce,Ce,ke,de,We,$e,k,q,te,x,me,Z,he,le,Ee;l=new it({props:{scale:.8,name:"caretLeft",class:"inline"}}),f=new Ll({props:{status:(ht=r[19])!=null&&ht.schedule.state.paused?"Paused":"Running"}});let J=((_t=(pt=r[19])==null?void 0:pt.info)==null?void 0:_t.updateTime)&&Vl(r);X=new Zs({props:{right:!0,label:(bt=(gt=(vt=r[19])==null?void 0:vt.schedule)==null?void 0:gt.state)!=null&&bt.paused?"Unpause":"Pause",id:"pause-schedule-button",$$slots:{default:[tr]},$$scope:{ctx:r}}}),X.$on("click",r[12]);let j=((kt=(wt=r[19])==null?void 0:wt.info)==null?void 0:kt.invalidScheduleError)&&Nl(r);fe=new Ns({props:{calendar:(It=(St=(Et=($t=r[19])==null?void 0:$t.schedule)==null?void 0:Et.spec)==null?void 0:St.calendar)==null?void 0:It[0],interval:(Dt=(Pt=(Rt=(yt=r[19])==null?void 0:yt.schedule)==null?void 0:Rt.spec)==null?void 0:Pt.interval)==null?void 0:Dt[0]}}),ce=new bs({props:{namespace:r[7],recentRuns:(Mt=(Tt=r[19])==null?void 0:Tt.info)==null?void 0:Mt.recentActions}}),de=new Es({props:{futureRuns:(At=(Vt=r[19])==null?void 0:Vt.info)==null?void 0:At.futureActionTimes}}),k=new ys({props:{spec:(Ut=(Nt=r[19])==null?void 0:Nt.schedule)==null?void 0:Ut.spec,state:(Wt=(Ct=r[19])==null?void 0:Ct.schedule)==null?void 0:Wt.state,policies:(Lt=(qt=r[19])==null?void 0:qt.schedule)==null?void 0:Lt.policies}}),x=new fs({props:{notes:(Ft=(jt=(zt=r[19])==null?void 0:zt.schedule)==null?void 0:jt.state)==null?void 0:Ft.notes}});function lt(){return r[15](r[19])}return Z=new El({props:{open:r[1],confirmType:"primary",confirmText:r[19].schedule.state.paused?"Unpause":"Pause",confirmDisabled:!r[3],$$slots:{content:[sr],title:[lr]},$$scope:{ctx:r}}}),Z.$on("cancelModal",r[14]),Z.$on("confirmModal",lt),le=new El({props:{open:r[2],confirmType:"destructive",confirmText:"Delete",$$slots:{content:[nr],title:[rr]},$$scope:{ctx:r}}}),le.$on("cancelModal",r[16]),le.$on("confirmModal",r[17]),{c(){e=v("header"),s=v("main"),t=v("a"),A(l.$$.fragment),o=E("Back to Schedules"),n=D(),a=v("div"),i=v("h1"),A(f.$$.fragment),c=D(),d=v("span"),p=E(r[8]),h=D(),y=v("div"),L=v("p"),z=E(r[7]),F=D(),ee=E(H),B=D(),M=v("div"),V=v("p"),Q=E("Created: "),ve=E(O),ie=D(),J&&J.c(),Re=D(),A(X.$$.fragment),ge=D(),G=v("div"),j&&j.c(),Pe=D(),be=v("div"),A(fe.$$.fragment),Ue=D(),ue=v("div"),we=v("div"),A(ce.$$.fragment),Ce=D(),ke=v("div"),A(de.$$.fragment),We=D(),$e=v("div"),A(k.$$.fragment),q=D(),te=v("div"),A(x.$$.fragment),me=D(),A(Z.$$.fragment),he=D(),A(le.$$.fragment),this.h()},l($){e=g($,"HEADER",{class:!0});var P=w(e);s=g(P,"MAIN",{class:!0});var pe=w(s);t=g(pe,"A",{href:!0,class:!0,style:!0});var De=w(t);N(l.$$.fragment,De),o=S(De,"Back to Schedules"),De.forEach(u),n=T(pe),a=g(pe,"DIV",{class:!0});var qe=w(a);i=g(qe,"H1",{class:!0});var Te=w(i);N(f.$$.fragment,Te),c=T(Te),d=g(Te,"SPAN",{class:!0});var Be=w(d);p=S(Be,r[8]),Be.forEach(u),Te.forEach(u),qe.forEach(u),h=T(pe),y=g(pe,"DIV",{class:!0});var Me=w(y);L=g(Me,"P",{});var Ve=w(L);z=S(Ve,r[7]),F=T(Ve),ee=S(Ve,H),Ve.forEach(u),Me.forEach(u),B=T(pe),M=g(pe,"DIV",{class:!0});var _e=w(M);V=g(_e,"P",{});var Ae=w(V);Q=S(Ae,"Created: "),ve=S(Ae,O),Ae.forEach(u),ie=T(_e),J&&J.l(_e),_e.forEach(u),pe.forEach(u),Re=T(P),N(X.$$.fragment,P),P.forEach(u),ge=T($),G=g($,"DIV",{class:!0});var se=w(G);j&&j.l(se),Pe=T(se),be=g(se,"DIV",{class:!0});var He=w(be);N(fe.$$.fragment,He),He.forEach(u),Ue=T(se),ue=g(se,"DIV",{class:!0});var Ne=w(ue);we=g(Ne,"DIV",{class:!0});var Oe=w(we);N(ce.$$.fragment,Oe),Oe.forEach(u),Ce=T(Ne),ke=g(Ne,"DIV",{class:!0});var Ge=w(ke);N(de.$$.fragment,Ge),Ge.forEach(u),Ne.forEach(u),We=T(se),$e=g(se,"DIV",{class:!0});var Je=w($e);N(k.$$.fragment,Je),Je.forEach(u),q=T(se),te=g(se,"DIV",{class:!0});var Ke=w(te);N(x.$$.fragment,Ke),Ke.forEach(u),se.forEach(u),me=T($),N(Z.$$.fragment,$),he=T($),N(le.$$.fragment,$),this.h()},h(){_(t,"href",ql({namespace:r[7]})),_(t,"class","absolute top-0 back-to-workflows"),Zl(t,"left","-.5rem"),_(d,"class","font-medium select-all"),_(i,"class","text-2xl flex relative items-center gap-4"),_(a,"class","flex justify-between items-center mt-8"),_(y,"class","flex items-center text-sm"),_(M,"class","flex items-center gap-2 text-sm"),_(s,"class","flex flex-col gap-1 relative"),_(e,"class","flex flex-row justify-between gap-4 mb-8"),_(be,"class","w-full xl:w-1/2"),_(we,"class","w-full xl:w-3/4"),_(ke,"class","w-full xl:w-1/4"),_(ue,"class","flex flex-col xl:flex-row gap-4"),_($e,"class","w-full xl:w-1/2"),_(te,"class","w-full xl:w-1/2"),_(G,"class","flex flex-col gap-4 pb-24")},m($,P){b($,e,P),m(e,s),m(s,t),U(l,t,null),m(t,o),m(s,n),m(s,a),m(a,i),U(f,i,null),m(i,c),m(i,d),m(d,p),m(s,h),m(s,y),m(y,L),m(L,z),m(L,F),m(L,ee),m(s,B),m(s,M),m(M,V),m(V,Q),m(V,ve),m(M,ie),J&&J.m(M,null),m(e,Re),U(X,e,null),b($,ge,P),b($,G,P),j&&j.m(G,null),m(G,Pe),m(G,be),U(fe,be,null),m(G,Ue),m(G,ue),m(ue,we),U(ce,we,null),m(ue,Ce),m(ue,ke),U(de,ke,null),m(G,We),m(G,$e),U(k,$e,null),m(G,q),m(G,te),U(x,te,null),b($,me,P),U(Z,$,P),b($,he,P),U(le,$,P),Ee=!0},p($,P){var se,He,Ne,Oe,Ge,Je,Ke,Bt,Ht,Ot,Gt,Jt,Kt,Yt,Zt,Qt,Xt,xt,el,tl,ll,sl,rl,nl,al,ol,il,fl,ul,cl,dl,ml,hl,pl,_l,vl;r=$;const pe={};P&1&&(pe.status=(se=r[19])!=null&&se.schedule.state.paused?"Paused":"Running"),f.$set(pe),(!Ee||P&1)&&H!==(H=((Je=(Ge=(Oe=(Ne=(He=r[19])==null?void 0:He.schedule)==null?void 0:Ne.action)==null?void 0:Oe.startWorkflow)==null?void 0:Ge.workflowType)==null?void 0:Je.name)+"")&&K(ee,H),(!Ee||P&65)&&O!==(O=ye((Bt=(Ke=r[19])==null?void 0:Ke.info)==null?void 0:Bt.createTime,r[6])+"")&&K(ve,O),(Ot=(Ht=r[19])==null?void 0:Ht.info)!=null&&Ot.updateTime?J?J.p(r,P):(J=Vl(r),J.c(),J.m(M,null)):J&&(J.d(1),J=null);const De={};P&1&&(De.label=(Kt=(Jt=(Gt=r[19])==null?void 0:Gt.schedule)==null?void 0:Jt.state)!=null&&Kt.paused?"Unpause":"Pause"),P&8388608&&(De.$$scope={dirty:P,ctx:r}),X.$set(De),(Zt=(Yt=r[19])==null?void 0:Yt.info)!=null&&Zt.invalidScheduleError?j?(j.p(r,P),P&1&&I(j,1)):(j=Nl(r),j.c(),I(j,1),j.m(G,Pe)):j&&(Ze(),R(j,1,1,()=>{j=null}),Qe());const qe={};P&1&&(qe.calendar=(el=(xt=(Xt=(Qt=r[19])==null?void 0:Qt.schedule)==null?void 0:Xt.spec)==null?void 0:xt.calendar)==null?void 0:el[0]),P&1&&(qe.interval=(rl=(sl=(ll=(tl=r[19])==null?void 0:tl.schedule)==null?void 0:ll.spec)==null?void 0:sl.interval)==null?void 0:rl[0]),fe.$set(qe);const Te={};P&1&&(Te.recentRuns=(al=(nl=r[19])==null?void 0:nl.info)==null?void 0:al.recentActions),ce.$set(Te);const Be={};P&1&&(Be.futureRuns=(il=(ol=r[19])==null?void 0:ol.info)==null?void 0:il.futureActionTimes),de.$set(Be);const Me={};P&1&&(Me.spec=(ul=(fl=r[19])==null?void 0:fl.schedule)==null?void 0:ul.spec),P&1&&(Me.state=(dl=(cl=r[19])==null?void 0:cl.schedule)==null?void 0:dl.state),P&1&&(Me.policies=(hl=(ml=r[19])==null?void 0:ml.schedule)==null?void 0:hl.policies),k.$set(Me);const Ve={};P&1&&(Ve.notes=(vl=(_l=(pl=r[19])==null?void 0:pl.schedule)==null?void 0:_l.state)==null?void 0:vl.notes),x.$set(Ve);const _e={};P&2&&(_e.open=r[1]),P&1&&(_e.confirmText=r[19].schedule.state.paused?"Unpause":"Pause"),P&8&&(_e.confirmDisabled=!r[3]),P&8388617&&(_e.$$scope={dirty:P,ctx:r}),Z.$set(_e);const Ae={};P&4&&(Ae.open=r[2]),P&8388608&&(Ae.$$scope={dirty:P,ctx:r}),le.$set(Ae)},i($){Ee||(I(l.$$.fragment,$),I(f.$$.fragment,$),I(X.$$.fragment,$),I(j),I(fe.$$.fragment,$),I(ce.$$.fragment,$),I(de.$$.fragment,$),I(k.$$.fragment,$),I(x.$$.fragment,$),I(Z.$$.fragment,$),I(le.$$.fragment,$),Ee=!0)},o($){R(l.$$.fragment,$),R(f.$$.fragment,$),R(X.$$.fragment,$),R(j),R(fe.$$.fragment,$),R(ce.$$.fragment,$),R(de.$$.fragment,$),R(k.$$.fragment,$),R(x.$$.fragment,$),R(Z.$$.fragment,$),R(le.$$.fragment,$),Ee=!1},d($){$&&u(e),C(l),C(f),J&&J.d(),C(X),$&&u(ge),$&&u(G),j&&j.d(),C(fe),C(ce),C(de),C(k),C(x),$&&u(me),C(Z,$),$&&u(he),C(le,$)}}}function er(r){let e,s;return e=new zl({props:{title:"Deleting Schedule...",class:"my-2"}}),{c(){A(e.$$.fragment)},l(t){N(e.$$.fragment,t)},m(t,l){U(e,t,l),s=!0},p:W,i(t){s||(I(e.$$.fragment,t),s=!0)},o(t){R(e.$$.fragment,t),s=!1},d(t){C(e,t)}}}function Vl(r){var i,f;let e,s,t,l,o,n=ye((f=(i=r[19])==null?void 0:i.info)==null?void 0:f.updateTime,r[6])+"",a;return{c(){e=v("p"),s=E("-"),t=D(),l=v("p"),o=E("Last updated: "),a=E(n)},l(c){e=g(c,"P",{});var d=w(e);s=S(d,"-"),d.forEach(u),t=T(c),l=g(c,"P",{});var p=w(l);o=S(p,"Last updated: "),a=S(p,n),p.forEach(u)},m(c,d){b(c,e,d),m(e,s),b(c,t,d),b(c,l,d),m(l,o),m(l,a)},p(c,d){var p,h;d&65&&n!==(n=ye((h=(p=c[19])==null?void 0:p.info)==null?void 0:h.updateTime,c[6])+"")&&K(a,n)},d(c){c&&u(e),c&&u(t),c&&u(l)}}}function Al(r){let e,s=r[20].label+"",t,l,o,n,a;return{c(){e=v("div"),t=E(s),l=D(),this.h()},l(i){e=g(i,"DIV",{class:!0});var f=w(e);t=S(f,s),l=T(f),f.forEach(u),this.h()},h(){var i;_(e,"class",o="cursor-pointer flex gap-2 items-center "+((i=r[20])==null?void 0:i.class))},m(i,f){b(i,e,f),m(e,t),m(e,l),n||(a=Le(e,"click",r[20].onClick),n=!0)},p(i,f){r=i},d(i){i&&u(e),n=!1,a()}}}function tr(r){let e,s=r[11],t=[];for(let l=0;lt.parentNode,n.anchor=t,o=!0},p(a,[i]){r=a;const f={};i&32&&(f.url=r[5].url.href),e.$set(f),n.ctx=r,i&1&&l!==(l=r[0])&&rt(l,n)||Ul(n,r,i)},i(a){o||(I(e.$$.fragment,a),I(n.block),o=!0)},o(a){R(e.$$.fragment,a);for(let i=0;i<3;i+=1){const f=n.blocks[i];R(f)}o=!1},d(a){C(e,a),a&&u(s),a&&u(t),n.block.d(a),n.token=null,n=null}}}function ir(r,e,s){let t,l,o;Ye(r,st,V=>s(4,t=V)),Ye(r,Ql,V=>s(5,l=V)),Ye(r,ft,V=>s(6,o=V));let n=l.params.namespace,a=l.params.schedule;const i={namespace:n,scheduleId:ot(a)};let f=kl(i,fetch),c=!1,d=!1,p="";const h=async()=>{try{at(st,t=!0,t),await xl({namespace:n,scheduleId:a}),setTimeout(()=>{Xl(ql({namespace:n})),at(st,t=!1,t)},2e3)}catch{at(st,t=!1,t)}},y=async V=>{var Q,O;!((O=(Q=V==null?void 0:V.schedule)===null||Q===void 0?void 0:Q.state)===null||O===void 0)&&O.paused?await es({namespace:n,scheduleId:a,reason:p}):await ts({namespace:n,scheduleId:a,reason:p}),s(0,f=kl(i,fetch)),s(1,c=!1),s(3,p="")};let L=[{label:"Delete Schedule",onClick:()=>s(2,d=!0),class:"text-red-500"}];const z=()=>s(1,c=!c);function F(){p=this.value,s(3,p)}return[f,c,d,p,t,l,o,n,a,h,y,L,z,F,()=>s(1,c=!1),V=>y(V),()=>s(2,d=!1),()=>h()]}class Fr extends ne{constructor(e){super(),ae(this,e,ir,or,oe,{})}}export{Fr as default}; diff --git a/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-c50c746e.js b/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-3f23f604.js similarity index 99% rename from server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-c50c746e.js rename to server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-3f23f604.js index 00e3b0f615..c4fe00ccb4 100644 --- a/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-c50c746e.js +++ b/server/generated/ui/_app/pages/namespaces/_namespace_/schedules/index.svelte-3f23f604.js @@ -1 +1 @@ -import{S as ie,i as ce,s as fe,e as T,t as G,k as W,c as V,a as j,h as O,m as F,d as p,b as S,g as A,M as v,j as x,q as w,l as K,n as X,o as k,B as N,p as Y,w as B,y as q,I as _t,a6 as ft,am as ut,J as $t,K as gt,L as vt,x as M,ad as ue,N as se,R as Ke,T as bt,_ as wt,$ as kt,E as Z,a9 as Ze,Z as yt,ac as It}from"../../../../chunks/index-c85ade65.js";import{E as Dt}from"../../../../chunks/empty-state-ebe0fe80.js";import{P as Et}from"../../../../chunks/pagination-adb051b9.js";import{B as mt}from"../../../../chunks/button-808d5fa7.js";import{B as St}from"../../../../chunks/badge-aff3796f.js";import{L as Tt}from"../../../../chunks/loading-67332923.js";import{p as dt}from"../../../../chunks/stores-2c13cc16.js";import{t as pt,s as Vt}from"../../../../chunks/time-format-99465e29.js";import{f as ne}from"../../../../chunks/format-date-ecf4453c.js";import{n as Qe,p as jt,q as Ct}from"../../../../chunks/route-for-28dfef1d.js";import{W as ht}from"../../../../chunks/workflow-status-2652a969.js";import{L as Rt}from"../../../../chunks/link-d95c4680.js";import{S as Lt}from"../../../../chunks/schedule-frequency-dc8435b4.js";import{I as At}from"../../../../chunks/index-c8da0ebb.js";import{D as Pt}from"../../../../chunks/dropdown-menu-113a799b.js";import{I as Wt}from"../../../../chunks/input-b813a209.js";import{g as Ft}from"../../../../chunks/navigation-6709cf39.js";import"../../../../chunks/nav-open-ad9d9abb.js";import"../../../../chunks/feature-tag.svelte_svelte_type_style_lang-0f55e153.js";import{a as Nt}from"../../../../chunks/schedule-service-d2aca162.js";import{P as Bt}from"../../../../chunks/page-title-de4dcecc.js";import"../../../../chunks/index-203c0d43.js";import"../../../../chunks/filter-select-9395ecbe.js";import"../../../../chunks/update-query-parameters-94043e37.js";import"../../../../chunks/select-ac515c57.js";import"../../../../chunks/persist-store-9b44ce28.js";import"../../../../chunks/is-function-b969a126.js";import"../../../../chunks/to-duration-6d22e6d2.js";import"../../../../chunks/is-419a79e8.js";import"../../../../chunks/code-block-b1ae99b6.js";import"../../../../chunks/copy-to-clipboard-b8e3d18c.js";import"../../../../chunks/index-39468d30.js";import"../../../../chunks/singletons-d1fb5791.js";import"../../../../chunks/route-for-api-30acff55.js";import"../../../../chunks/notifications-9d24bb07.js";import"../../../../chunks/is-network-error-ac7c8caf.js";import"../../../../chunks/get-api-origin-035631a4.js";function Xe(s,e,l){const t=s.slice();return t[3]=e[l],t}function Ye(s){let e,l,t;var r=s[3].filter;function i(o){return{}}return r&&(e=new r(i())),{c(){e&&B(e.$$.fragment),l=K()},l(o){e&&M(e.$$.fragment,o),l=K()},m(o,n){e&&q(e,o,n),A(o,l,n),t=!0},p(o,n){if(r!==(r=o[3].filter)){if(e){X();const a=e;k(a.$$.fragment,1,0,()=>{N(a,1)}),Y()}r?(e=new r(i()),B(e.$$.fragment),w(e.$$.fragment,1),q(e,l.parentNode,l)):e=null}},i(o){t||(e&&w(e.$$.fragment,o),t=!0)},o(o){e&&k(e.$$.fragment,o),t=!1},d(o){o&&p(l),e&&N(e,o)}}}function xe(s,e){let l,t=e[3].label+"",r,i,o,n,a,c=e[0].filter&&Ye(e);return{key:s,first:null,c(){l=T("div"),r=G(t),i=W(),c&&c.c(),o=W(),this.h()},l(f){l=V(f,"DIV",{class:!0});var d=j(l);r=O(d,t),i=F(d),c&&c.l(d),o=F(d),d.forEach(p),this.h()},h(){S(l,"class",n="table-header table-cell "+e[3].classes+" svelte-o6jx5"),this.first=l},m(f,d){A(f,l,d),v(l,r),v(l,i),c&&c.m(l,null),v(l,o),a=!0},p(f,d){e=f,(!a||d&1)&&t!==(t=e[3].label+"")&&x(r,t),e[0].filter?c?(c.p(e,d),d&1&&w(c,1)):(c=Ye(e),c.c(),w(c,1),c.m(l,o)):c&&(X(),k(c,1,1,()=>{c=null}),Y()),(!a||d&1&&n!==(n="table-header table-cell "+e[3].classes+" svelte-o6jx5"))&&S(l,"class",n)},i(f){a||(w(c),a=!0)},o(f){k(c),a=!1},d(f){f&&p(l),c&&c.d()}}}function qt(s){let e,l,t,r=[],i=new Map,o,n,a,c=s[0][0].label+"",f,d,P,_,C=s[0];const E=$=>$[3].key;for(let $=0;${"columns"in o&&l(0,i=o.columns),"$$scope"in o&&l(1,r=o.$$scope)},[i,r,t]}class Ut extends ie{constructor(e){super(),ce(this,e,Mt,qt,fe,{columns:0})}}function et(s,e,l){const t=s.slice();return t[5]=e[l],t}function tt(s,e,l){const t=s.slice();return t[5]=e[l],t}function zt(s){var t;let e=ne((t=s[5])==null?void 0:t.actualTime,s[1])+"",l;return{c(){l=G(e)},l(r){l=O(r,e)},m(r,i){A(r,l,i)},p(r,i){var o;i&3&&e!==(e=ne((o=r[5])==null?void 0:o.actualTime,r[1])+"")&&x(l,e)},d(r){r&&p(l)}}}function lt(s){var i,o,n,a;let e,l,t,r;return l=new Rt({props:{href:Qe({namespace:s[2],workflow:(o=(i=s[5])==null?void 0:i.startWorkflowResult)==null?void 0:o.workflowId,run:(a=(n=s[5])==null?void 0:n.startWorkflowResult)==null?void 0:a.runId}),$$slots:{default:[zt]},$$scope:{ctx:s}}}),{c(){e=T("p"),B(l.$$.fragment),t=W()},l(c){e=V(c,"P",{});var f=j(e);M(l.$$.fragment,f),t=F(f),f.forEach(p)},m(c,f){A(c,e,f),q(l,e,null),v(e,t),r=!0},p(c,f){var P,_,C,E;const d={};f&1&&(d.href=Qe({namespace:c[2],workflow:(_=(P=c[5])==null?void 0:P.startWorkflowResult)==null?void 0:_.workflowId,run:(E=(C=c[5])==null?void 0:C.startWorkflowResult)==null?void 0:E.runId})),f&1027&&(d.$$scope={dirty:f,ctx:c}),l.$set(d)},i(c){r||(w(l.$$.fragment,c),r=!0)},o(c){k(l.$$.fragment,c),r=!1},d(c){c&&p(e),N(l)}}}function rt(s){let e,l=ne(s[5],s[1],"from now")+"",t;return{c(){e=T("div"),t=G(l)},l(r){e=V(r,"DIV",{});var i=j(e);t=O(i,l),i.forEach(p)},m(r,i){A(r,e,i),v(e,t)},p(r,i){i&3&&l!==(l=ne(r[5],r[1],"from now")+"")&&x(t,l)},d(r){r&&p(e)}}}function Gt(s){var me,de,pe,he,_e,$e,ge,ve,be,we,ke,ye,Ie,De,Ee,Se,Te,Ve,je,Ce,Re;let e,l,t,r,i,o=s[0].scheduleId+"",n,a,c,f,d,P,_,C=((pe=(de=(me=s[0])==null?void 0:me.info)==null?void 0:de.workflowType)==null?void 0:pe.name)+"",E,R,D,$,m,u;t=new ht({props:{status:(_e=(he=s[0])==null?void 0:he.info)!=null&&_e.paused?"Paused":"Running"}}),d=new Lt({props:{calendar:(be=(ve=(ge=($e=s[0])==null?void 0:$e.info)==null?void 0:ge.spec)==null?void 0:ve.calendar)==null?void 0:be[0],interval:(Ie=(ye=(ke=(we=s[0])==null?void 0:we.info)==null?void 0:ke.spec)==null?void 0:ye.interval)==null?void 0:Ie[0]}});let g=(Te=(Se=(Ee=(De=s[0])==null?void 0:De.info)==null?void 0:Ee.recentActions)==null?void 0:Se.reverse().slice(0,5))!=null?Te:[],b=[];for(let h=0;hk(b[h],1,1,()=>{b[h]=null});let z=(Re=(Ce=(je=(Ve=s[0])==null?void 0:Ve.info)==null?void 0:je.futureActionTimes)==null?void 0:Ce.slice(0,5))!=null?Re:[],L=[];for(let h=0;h